/* BellFrog v1.77 presentation changes. Loaded after emerald.css; delete this file's
   <link> in index.html to roll back the look without touching any workflow code. */

/* 1. Landscape tablets (touch screens 1001–1400 px wide) use the compact rail
      instead of the full desktop sidebar, matching portrait tablets. */
@media screen and (pointer: coarse) and (min-width: 1001px) and (max-width: 1400px) {
  :root { --rail: 124px; }
  .quick-nav { padding: 14px 8px; gap: 5px; }
  .quick-nav-button { flex-direction: column; gap: 4px; min-height: 62px; padding: 7px 4px; position: relative; }
  .quick-nav-button > span:not(.quick-nav-art):not(.quick-nav-count) { font-size: .75rem; text-align: center; }
  .quick-nav-count { position: absolute; right: 7px; top: 4px; }
  .brand-row { flex-direction: column; padding: 3px 0 15px; gap: 0; }
  .brand-row strong { font-size: 1.12rem; }
  .brand-row .brand-art { width: 38px; height: 38px; flex-basis: 38px; }
}

/* 2. Portrait tablets: Ideas / Checklist / Shift Notes live at the bottom of the rail. */
@media screen and (min-width: 600px) and (max-width: 1000px) {
  .sidebar-utilities { gap: 6px; padding-top: 12px; }
  .sidebar-utilities .small-button { justify-content: center; min-height: 44px; padding: 6px 4px; font-size: .74rem; line-height: 1.2; white-space: normal; text-align: center; }
  .sidebar-utilities .header-feedback-button span:last-child { display: inline; }
  .portal-header { flex-wrap: nowrap; }
}

/* 3. Tasks board on touch tablets: compact heading, and New Task becomes a floating
      button so the first tasks are visible without scrolling. */
@media screen and (pointer: coarse) and (min-width: 600px) {
  #tasks-view .section-heading { margin-bottom: 12px; }
  #tasks-view .section-heading::before { flex-basis: 52px; height: 48px; }
  #tasks-view .section-heading h1 { font-size: 1.6rem; }
  #tasks-view .section-heading .eyebrow { margin-bottom: 2px; }
  #tasks-view .new-task-launch { display: contents; }
  #tasks-view .new-task-launch > div:first-child { display: none; }
  #tasks-view .task-launch-actions { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; gap: 10px; }
  #tasks-view .task-launch-actions > button { min-height: 56px; padding: 0 22px; border-radius: 999px; font-size: 1.02rem; box-shadow: 0 10px 24px rgb(7 52 38 / 28%); }
  #tasks-view .task-tabs { margin-top: 0; }
  #tasks-view .task-list { padding-bottom: 92px; }
}

/* 4. Bell dashboard "Up next" card. */
@media screen {
  .next-task-panel { margin: 20px 0 22px; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
  .next-task-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .next-task-heading h2 { margin: 0; color: var(--ink); font-size: 1.2rem; letter-spacing: -.02em; }
  .next-task-heading .eyebrow { margin-bottom: 3px; }
  .next-task-heading .secondary-button { width: auto; min-height: 44px; padding: 8px 16px; flex: 0 0 auto; }
  .next-task-card .task-item { margin: 0; }
  .next-task-card .task-empty { margin: 0; }
}
@media screen and (max-width: 599px) {
  .next-task-panel { padding: 14px; }
  .next-task-heading h2 { font-size: 1.05rem; }
}

/* 5. Front Desk on wide desk screens: live task column beside the console. */
@media screen {
  .front-desk-live-tasks { display: none; }
}
@media screen and (min-width: 1360px) {
  .front-desk-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 20px; align-items: start; }
  .front-desk-main { min-width: 0; }
  #front-desk-view .front-desk-launch { flex-direction: column; align-items: stretch; gap: 12px; }
  #front-desk-view .front-desk-launch .task-launch-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  #front-desk-view .front-desk-launch .task-launch-actions > button { width: 100%; min-width: 0; min-height: 44px; grid-column: auto; }
  .front-desk-live-tasks { display: block; position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); }
  .front-desk-live-tasks .front-desk-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
  .front-desk-live-tasks .front-desk-panel-heading h2 { margin: 0; }
  .front-desk-live-tasks .front-desk-panel-heading .secondary-button { width: auto; min-height: 40px; padding: 7px 12px; }
  .front-desk-live-task-list { display: grid; gap: 8px; }
  .front-desk-live-task { display: grid; gap: 4px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 12px; background: var(--surface-soft); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
  .front-desk-live-task:hover { border-color: var(--forest); }
  .front-desk-live-task.accepted { border-left-color: var(--frog-green); }
  .front-desk-live-task.in-progress { border-left-color: #c98a1b; }
  .front-desk-live-task.urgent { border-color: var(--error); border-left-color: var(--error); }
  .front-desk-live-task-title { font-weight: 800; line-height: 1.3; }
  .front-desk-live-task-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .82rem; }
  .front-desk-live-task-status { color: var(--forest); font-size: .8rem; font-weight: 800; }
  .front-desk-live-task.waiting .front-desk-live-task-status { color: var(--gold); }
}
