/* Petromix · Follow-ups card
   Scoped under .fu. Responsive to its own width (container query).

   The supplied follow-ups.css, with these changes for the app:
   · no Google Fonts @import — Barlow, Barlow Condensed and IBM Plex Mono are
     self-hosted by advisor.css, so the card looks the same offline;
   · a baseline so the app's own button / heading rules cannot leak in;
   · customer, contact and note take their direction from their own text, so
     an Arabic company name in the English card (and the reverse) reads right;
   · the offer chip stays on one line (the app's offer numbers are longer);
   · the FRI / SAT labels are #7D858F (4.7:1) instead of #5B636D (2.9:1),
     which fails WCAG AA — the app's contrast suite checks every screen;
   · a LIGHT theme (the design is dark-only): white card, dark text, and the
     red, green, blue and yellow used as TEXT darkened for white. */

.fu {
  --fu-acc: #FFC20E;
  --fu-ink: #121417;
  --fu-card: #17191C;
  --fu-raised: #1E2125;
  --fu-sunk: #0F1113;
  --fu-line: rgba(255,255,255,.07);
  --fu-line-2: rgba(255,255,255,.12);
  --fu-text: #FFFFFF;
  --fu-text-2: #B9C0C7;
  --fu-muted: #8F98A2;
  --fu-faint: #5B636D;
  --fu-red: #F04438;
  --fu-green: #2FB36B;
  --fu-font: "Barlow", system-ui, sans-serif;
  --fu-cond: "Barlow Condensed", "Barlow", sans-serif;
  --fu-mono: "IBM Plex Mono", ui-monospace, monospace;

  container-type: inline-size;
  box-sizing: border-box;
  display: flex; flex-direction: column;
  background: var(--fu-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  color: var(--fu-text);
  font-family: var(--fu-font);
  -webkit-font-smoothing: antialiased;
  /* baseline: the design was drawn on browser defaults */
  font-size: 16px; line-height: normal; letter-spacing: normal; text-align: left;
}
.fu *, .fu *::before, .fu *::after { box-sizing: border-box; }
:where(.fu) :where(button, input, textarea, select) { font-family: inherit; line-height: normal; letter-spacing: normal; }
.fu h2, .fu h3, .fu p { margin: 0; }
.fu h2, .fu h3 { font-family: inherit; letter-spacing: normal; color: inherit; }
.fu [hidden] { display: none !important; }
.fu :focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.fu-num { font-variant-numeric: tabular-nums; }
.fu-k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fu-muted); }

/* ---------- Buttons ---------- */
.fu-btn { height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--fu-line-2); background: transparent; color: var(--fu-text); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .15s, border-color .15s, transform .12s; }
.fu-btn:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.24); }
.fu-btn:active { transform: scale(.97); }
.fu-btn--acc { border: 0; background: var(--fu-acc); color: var(--fu-ink); font-weight: 800; }
.fu-btn--acc:hover { background: var(--fu-acc); filter: brightness(1.06); }
.fu-icon-btn { width: 44px; padding: 0; }
.fu-btn svg { flex: none; }

/* ---------- Header ---------- */
.fu-head { padding: 20px 22px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fu-title { font-size: 22px; line-height: 1.1; font-weight: 800; }
.fu-sum { margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--fu-text-2); }
.fu-sum b { color: var(--fu-text); font-weight: 800; }
.fu-sum .is-red { color: var(--fu-red); }
.fu-sum i { width: 3px; height: 3px; border-radius: 50%; background: var(--fu-faint); }
.fu-head-actions { display: flex; gap: 8px; }

/* ---------- Calendar ---------- */
.fu-cal { padding: 0 22px 14px; border-bottom: 1px solid var(--fu-line); }
.fu-cal-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.fu-month { font-size: 16px; font-weight: 800; margin-right: auto; }
.fu-cal-bar .fu-btn { height: 36px; }
.fu-cal-bar .fu-icon-btn { width: 36px; }
.fu-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.fu-dow { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--fu-muted); padding: 2px 0 4px; }
/* #7D858F, not the design's --fu-faint (#5B636D): that measures 2.9:1 on the
   card and WCAG AA needs 4.5:1. This is 4.7:1, still dimmer than the weekdays. */
.fu-dow.is-weekend { color: #7D858F; }
.fu-day { position: relative; height: 48px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--fu-text); font-family: var(--fu-cond); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transition: background-color .12s, border-color .12s; }
.fu-day:hover { background: rgba(255,255,255,.05); }
.fu-day.is-weekend { color: var(--fu-muted); }
.fu-day.is-out { color: var(--fu-faint); opacity: .6; }
.fu-day.is-today { border-color: var(--fu-acc); }
.fu-day[aria-pressed="true"] { background: var(--fu-acc); border-color: var(--fu-acc); color: var(--fu-ink); }
.fu-dots { display: flex; gap: 3px; height: 5px; }
.fu-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--fu-acc); }
.fu-dots i.is-late { background: var(--fu-red); }
.fu-day[aria-pressed="true"] .fu-dots i { background: var(--fu-ink); }
.fu-expand { margin-top: 6px; width: 100%; height: 28px; border: 0; background: transparent; color: var(--fu-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.fu-expand:hover { color: var(--fu-text); }
.fu-expand svg { transition: transform .2s; }
.fu-expand[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Tabs ---------- */
.fu-tabs-row { padding: 14px 22px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fu-tabs { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; background: var(--fu-sunk); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.fu-tab { height: 38px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--fu-text-2); font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fu-tab:hover { color: #FFFFFF; }
.fu-tab[aria-selected="true"] { background: #2A2E33; color: #FFFFFF; }
.fu-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--fu-raised); color: var(--fu-text-2); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.fu-badge.is-red { background: var(--fu-red); color: #FFFFFF; }
.fu-list-title { font-size: 14px; font-weight: 700; color: var(--fu-text-2); }

/* ---------- List ---------- */
.fu-list { padding: 4px 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.fu-group { margin: 8px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fu-muted); }
.fu-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 12px; background: var(--fu-raised); border: 1px solid var(--fu-line); transition: opacity .25s, transform .25s; }
.fu-item.is-late { border-color: rgba(240,68,56,.35); }
.fu-item.is-done { opacity: .55; }
.fu-item.is-leaving { opacity: 0; transform: translateX(16px); }
.fu-when { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.fu-time { font-family: var(--fu-cond); font-size: 22px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.fu-late { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--fu-red); text-transform: uppercase; }
.fu-when small { font-size: 11px; font-weight: 600; color: var(--fu-muted); }
.fu-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fu-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fu-type { height: 22px; padding: 0 8px; border-radius: 4px; flex: none; display: inline-flex; align-items: center; gap: 5px; font-family: var(--fu-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.07); color: var(--fu-text-2); }
.fu-type.t-visit { background: rgba(59,200,255,.12); color: #7FD8FF; }
.fu-type.t-quote { background: rgba(255,194,14,.12); color: var(--fu-acc); }
.fu-cust { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-item.is-done .fu-cust { text-decoration: line-through; }
.fu-contact { font-size: 13px; font-weight: 600; color: var(--fu-muted); }
.fu-note { font-size: 14px; line-height: 1.45; color: var(--fu-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fu-cust, .fu-contact, .fu-note { unicode-bidi: plaintext; }
.fu-offer { align-self: flex-start; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--fu-line-2); background: transparent; color: var(--fu-text); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-variant-numeric: tabular-nums; }
.fu-offer:hover { border-color: var(--fu-acc); }
.fu-offer span { color: var(--fu-muted); font-weight: 600; }
/* The app's offer numbers (AR-261003-K7Q) are longer than the design's #386: one line, never wrapped inside the 28px chip. */
.fu-offer { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.fu-actions .fu-btn { height: 40px; padding: 0 12px; font-size: 13px; }
.fu-actions .fu-done { border-color: rgba(47,179,107,.45); color: #7EE0A8; }
.fu-actions .fu-done:hover { background: rgba(47,179,107,.12); border-color: var(--fu-green); }

.fu-empty { padding: 28px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.fu-empty-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--fu-raised); border: 1px solid var(--fu-line); display: flex; align-items: center; justify-content: center; color: var(--fu-green); margin-bottom: 4px; }
.fu-empty strong { font-size: 16px; font-weight: 800; }
.fu-empty p { font-size: 13px; color: var(--fu-muted); max-width: 300px; line-height: 1.5; }
.fu-empty .fu-btn { margin-top: 6px; }

.fu-done-toggle { margin-top: 4px; height: 40px; border: 0; background: transparent; color: var(--fu-muted); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 0; }
.fu-done-toggle:hover { color: var(--fu-text); }

/* ---------- Quick add ---------- */
.fu-form { padding: 16px 22px 20px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--fu-line); background: #1A1D20; }
.fu-form-head { display: flex; justify-content: space-between; align-items: center; }
.fu-form-head h3 { font-size: 16px; font-weight: 800; }
.fu-field { display: flex; flex-direction: column; gap: 6px; }
.fu-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fu-input { height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--fu-line-2); background: var(--fu-sunk); color: var(--fu-text); font-size: 15px; width: 100%; color-scheme: dark; }
textarea.fu-input { height: 72px; padding: 10px 12px; resize: vertical; line-height: 1.4; }
.fu-input:focus { outline: none; border-color: var(--fu-acc); box-shadow: 0 0 0 3px rgba(255,194,14,.25); }
.fu-input.is-invalid { border-color: var(--fu-red); }
.fu-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fu-chip { height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fu-line-2); background: transparent; color: var(--fu-text-2); font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fu-chip:hover { color: #FFFFFF; }
.fu-chip[aria-pressed="true"] { background: var(--fu-acc); border-color: var(--fu-acc); color: var(--fu-ink); }
.fu-form-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Toast ---------- */
.fu-toast { position: relative; margin: 0 22px 16px; padding: 10px 12px 10px 14px; border-radius: 10px; background: #2A2E33; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.fu-toast button { margin-left: auto; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--fu-acc); font-size: 13px; font-weight: 800; cursor: pointer; }

/* ---------- Narrow ---------- */
.fu-tab-short { display: none; }
@container (max-width: 520px) {
  .fu-tab-long { display: none; } .fu-tab-short { display: inline; }
  .fu-head { flex-wrap: nowrap; align-items: flex-start; }
  .fu-head-actions .fu-btn--acc { padding: 0 12px; }
  .fu-cust { white-space: normal; }
  .fu-who { align-items: flex-start; flex-wrap: wrap; row-gap: 4px; }
  .fu-head { padding: 18px 16px 14px; }
  .fu-cal, .fu-tabs-row, .fu-list, .fu-form { padding-left: 16px; padding-right: 16px; }
  .fu-toast { margin-left: 16px; margin-right: 16px; }
  .fu-head-actions .fu-cal-label { display: none; }
  .fu-head-actions .fu-cal-btn { width: 44px; padding: 0; }
  .fu-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .fu-tab { justify-content: center; padding: 0 6px; height: 42px; }
  .fu-list-title { display: none; }
  .fu-item { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .fu-time { font-size: 20px; }
  .fu-actions .fu-btn { flex: 1; padding: 0 8px; }
  .fu-actions .fu-lbl-opt { display: none; }
  .fu-day { height: 44px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .fu *, .fu *::before, .fu *::after { transition: none !important; }
}

/* ---------- Light theme ---------- */
:root[data-scheme="light"] .fu {
  --fu-card: #FFFFFF; --fu-raised: #F4F5F7; --fu-sunk: #EEF0F2;
  --fu-line: rgba(18,20,23,.08); --fu-line-2: rgba(18,20,23,.16);
  --fu-text: #121417; --fu-text-2: #3B424A; --fu-muted: #5B636D; --fu-faint: #6B737C;
  border-color: rgba(18,20,23,.09);
  box-shadow: 0 1px 2px rgba(18,20,23,.05), 0 10px 28px -16px rgba(18,20,23,.18);
}
:root[data-scheme="light"] .fu :focus-visible { outline-color: #121417; }
:root[data-scheme="light"] .fu-btn:hover { background: rgba(18,20,23,.05); border-color: rgba(18,20,23,.24); }
:root[data-scheme="light"] .fu-day:hover { background: rgba(18,20,23,.05); }
:root[data-scheme="light"] .fu-dow.is-weekend { color: #6B737C; }
:root[data-scheme="light"] .fu-tabs { border-color: rgba(18,20,23,.08); }
:root[data-scheme="light"] .fu-tab:hover, :root[data-scheme="light"] .fu-chip:hover { color: #121417; }
:root[data-scheme="light"] .fu-tab[aria-selected="true"] { background: #FFFFFF; color: #121417; box-shadow: 0 1px 3px rgba(18,20,23,.14); }
:root[data-scheme="light"] .fu-sum .is-red, :root[data-scheme="light"] .fu-late { color: #B42318; }
:root[data-scheme="light"] .fu-type { background: rgba(18,20,23,.06); }
:root[data-scheme="light"] .fu-type.t-visit { background: rgba(59,200,255,.16); color: #0B5E80; }
:root[data-scheme="light"] .fu-type.t-quote { background: rgba(255,194,14,.2); color: #8A5A00; }
:root[data-scheme="light"] .fu-actions .fu-done { color: #17703F; border-color: rgba(47,179,107,.55); }
:root[data-scheme="light"] .fu-form { background: #F7F8F9; }
:root[data-scheme="light"] .fu-input { background: #FFFFFF; color-scheme: light; }
:root[data-scheme="light"] .fu-toast { background: #121417; color: #FFFFFF; }


/* ══ The planner (v4.174) ═════════════════════════════════════════════════════ */
.fu-dots i.is-done { background: var(--fu-green); }
.fu-day[aria-pressed="true"] .fu-dots i.is-done, .fu-day[aria-pressed="true"] .fu-dots i.is-late { background: var(--fu-ink); }
.fu-views { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--fu-sunk); border: 1px solid var(--fu-line); border-radius: 10px; }
.fu-view { height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--fu-text-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.fu-view[aria-pressed="true"] { background: #2A2E33; color: #FFFFFF; }
.fu-legend span { display: inline-flex; align-items: center; }
.fu-legend { margin: 8px 0 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--fu-muted); align-items: center; }
.fu-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fu-acc); margin-right: 5px; }
.fu-legend i.is-late { background: var(--fu-red); } .fu-legend i.is-done { background: var(--fu-green); }

.fu-banner { margin: 0 22px 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,194,14,.08); border: 1px solid rgba(255,194,14,.28); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fu-banner.is-warn { background: rgba(255,255,255,.04); border-color: var(--fu-line-2); }
.fu-banner-ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,194,14,.14); color: var(--fu-acc); display: grid; place-items: center; flex: none; }
.fu-banner > div { flex: 1 1 200px; min-width: 0; }
.fu-banner strong { font-size: 14px; font-weight: 800; display: block; margin-bottom: 2px; }
.fu-banner p { font-size: 13px; line-height: 1.45; color: var(--fu-text-2); }

.fu-pill { height: 20px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .02em; background: rgba(255,255,255,.08); color: var(--fu-text-2); white-space: nowrap; }
.fu-pill.is-overdue { background: rgba(240,68,56,.16); color: #FF9A92; }
.fu-pill.is-due-soon { background: rgba(255,194,14,.16); color: var(--fu-acc); }
.fu-pill.is-completed { background: rgba(47,179,107,.16); color: #7EE0A8; }
.fu-pill.is-resch { background: rgba(59,200,255,.14); color: #7FD8FF; }
.fu-pill.is-pri-high { background: rgba(255,150,30,.16); color: #FFB45C; }
.fu-pill.is-pri-urgent { background: var(--fu-red); color: #FFFFFF; }
.fu-who { flex-wrap: wrap; row-gap: 4px; }
.fu-type.t-sample { background: rgba(167,139,250,.16); color: #C4B5FD; }
.fu-type.t-task { background: rgba(47,179,107,.14); color: #7EE0A8; }
.fu-wd { white-space: nowrap; }
.fu-open { padding: 0; border: 0; background: transparent; color: inherit; text-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; font: inherit; }
.fu-open:hover .fu-cust { text-decoration: underline; text-underline-offset: 3px; }
.fu-cust { white-space: normal; overflow-wrap: anywhere; }
.fu-ttl { font-size: 14px; font-weight: 600; color: var(--fu-text-2); overflow-wrap: anywhere; }
.fu-item.is-urgent { border-color: rgba(240,68,56,.55); box-shadow: inset 3px 0 0 var(--fu-red); }
.fu-rem { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--fu-muted); }
.fu-rem.is-fired { color: #7EE0A8; } .fu-rem.is-off { opacity: .8; }

.fu-more-wrap { position: relative; margin-inline-start: auto; }
.fu-actions .fu-more-wrap .fu-btn { flex: none; width: 40px; padding: 0; }
.fu-menu { position: absolute; z-index: 20; inset-inline-end: 0; bottom: calc(100% + 6px); min-width: 230px; padding: 6px; border-radius: 12px; background: #23272C; border: 1px solid var(--fu-line-2); box-shadow: 0 14px 34px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.fu-mi { height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--fu-text); font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; text-align: start; white-space: nowrap; }
.fu-mi:hover { background: rgba(255,255,255,.07); }
.fu-mi.is-danger { color: #FF9A92; }
.fu-err { font-size: 12.5px; font-weight: 700; color: #FF9A92; }
.fu-hint { font-size: 13px; color: var(--fu-muted); line-height: 1.45; margin: 8px 0 0; }
select.fu-input { appearance: auto; }
.fu-btn--danger { border-color: rgba(240,68,56,.5); color: #FF9A92; }
.fu-btn--danger:hover { background: rgba(240,68,56,.12); border-color: var(--fu-red); }
.fu-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* dialogs live on the page, so they carry their own colours */
.fu-ov { --fu-acc: #FFC20E; --fu-ink: #121417; --fu-raised: #1E2125; --fu-sunk: #0F1113; --fu-line: rgba(255,255,255,.07); --fu-line-2: rgba(255,255,255,.14); --fu-text: #FFFFFF; --fu-text-2: #B9C0C7; --fu-muted: #9AA3AD; --fu-red: #F04438; --fu-green: #2FB36B;
  position: fixed; inset: 0; z-index: 2147482000; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; padding: 0; font-family: "Barlow", system-ui, sans-serif; color: var(--fu-text); }
.fu-ov *, .fu-ov *::before { box-sizing: border-box; }
.fu-ov__p { width: min(520px, 100%); max-height: 88vh; overflow-y: auto; background: #17191C; border: 1px solid var(--fu-line-2); border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 640px) { .fu-ov { align-items: center; } .fu-ov__p { border-radius: 18px; } }
.fu-ov__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.fu-ov__h h3 { margin: 0; font-size: 19px; font-weight: 800; overflow-wrap: anywhere; } .fu-ov__h p { margin: 3px 0 0; font-size: 13px; color: var(--fu-muted); }
.fu-ov__x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--fu-line-2); background: transparent; color: var(--fu-text); display: grid; place-items: center; cursor: pointer; flex: none; }
.fu-ov .fu-btn { height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--fu-line-2); background: transparent; color: var(--fu-text); font-size: 14px; font-weight: 700; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; }
.fu-ov .fu-btn--acc { border: 0; background: var(--fu-acc); color: var(--fu-ink); font-weight: 800; }
.fu-ov .fu-done { border-color: rgba(47,179,107,.45); color: #7EE0A8; }
.fu-ov .fu-btn--danger { border-color: rgba(240,68,56,.5); color: #FF9A92; }
.fu-ov .fu-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fu-ov .fu-chip { height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fu-line-2); background: transparent; color: var(--fu-text-2); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.fu-ov .fu-input { height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--fu-line-2); background: var(--fu-sunk); color: var(--fu-text); font-size: 15px; width: 100%; color-scheme: dark; font-family: inherit; }
.fu-ov .fu-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fu-ov .fu-err { color: #FF9A92; font-size: 12.5px; font-weight: 700; margin: 8px 0 0; } .fu-ov .fu-err:empty { display: none; }
.fu-ov .fu-hint { font-size: 13px; color: var(--fu-muted); margin: 10px 0 0; }
.fu-ov__a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; } .fu-ov__a .fu-btn { flex: 1 1 auto; }
.fu-ov__a--col { flex-direction: column; } .fu-ov__a--col .fu-btn { width: 100%; }
.fu-snz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fu-dl { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; }
.fu-dl dt { color: var(--fu-muted); font-weight: 700; } .fu-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fu-hist { margin: 14px 0 0; padding: 12px 0 0 18px; border-top: 1px solid var(--fu-line); font-size: 13px; color: var(--fu-muted); display: grid; gap: 4px; }

.fu--page { max-width: 880px; margin-inline: auto; }
@container (max-width: 520px) {
  .fu-banner { margin-inline: 16px; }
  .fu-actions .fu-btn:not(.fu-icon-btn) { flex: 1 1 auto; }
  .fu-actions .fu-more-wrap { margin-inline-start: 0; }
  .fu-menu { inset-inline-end: 0; }
  .fu-tab { gap: 5px; padding: 0 4px; }
  .fu-views { margin-top: 8px; }
}

:root[data-scheme="light"] .fu-view[aria-pressed="true"] { background: #FFFFFF; color: #121417; box-shadow: 0 1px 3px rgba(18,20,23,.14); }
:root[data-scheme="light"] .fu-banner { background: rgba(255,194,14,.14); border-color: rgba(138,90,0,.3); }
:root[data-scheme="light"] .fu-banner.is-warn { background: #F4F5F7; border-color: rgba(18,20,23,.14); }
:root[data-scheme="light"] .fu-banner-ic { color: #8A5A00; background: rgba(255,194,14,.28); }
:root[data-scheme="light"] .fu-pill { background: rgba(18,20,23,.07); }
:root[data-scheme="light"] .fu-pill.is-overdue { color: #B42318; background: rgba(240,68,56,.12); }
:root[data-scheme="light"] .fu-pill.is-due-soon { color: #8A5A00; background: rgba(255,194,14,.28); }
:root[data-scheme="light"] .fu-pill.is-completed { color: #17703F; background: rgba(47,179,107,.16); }
:root[data-scheme="light"] .fu-pill.is-resch { color: #0B5E80; background: rgba(59,200,255,.2); }
:root[data-scheme="light"] .fu-pill.is-pri-high { color: #8A4A00; background: rgba(255,150,30,.2); }
:root[data-scheme="light"] .fu-type.t-sample { color: #5B3FB5; background: rgba(167,139,250,.2); }
:root[data-scheme="light"] .fu-type.t-task { color: #17703F; background: rgba(47,179,107,.16); }
:root[data-scheme="light"] .fu-rem.is-fired { color: #17703F; }
:root[data-scheme="light"] .fu-menu { background: #FFFFFF; box-shadow: 0 14px 34px rgba(18,20,23,.22); }
:root[data-scheme="light"] .fu-mi:hover { background: rgba(18,20,23,.06); }
:root[data-scheme="light"] .fu-mi.is-danger, :root[data-scheme="light"] .fu-err, :root[data-scheme="light"] .fu-btn--danger { color: #B42318; }
:root[data-scheme="light"] .fu-ov { --fu-text: #121417; --fu-text-2: #3B424A; --fu-muted: #5B636D; --fu-sunk: #EEF0F2; --fu-line: rgba(18,20,23,.08); --fu-line-2: rgba(18,20,23,.18); background: rgba(18,20,23,.4); }
:root[data-scheme="light"] .fu-ov__p { background: #FFFFFF; }
:root[data-scheme="light"] .fu-ov .fu-input { background: #FFFFFF; color-scheme: light; }
:root[data-scheme="light"] .fu-ov .fu-done { color: #17703F; }
:root[data-scheme="light"] .fu-ov .fu-btn--danger, :root[data-scheme="light"] .fu-ov .fu-err { color: #B42318; }
.fu-tel { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
