/* =====================================================================
   SORTED Team · calm workspace
   Soft sage + cream, gentle contrast, roomy spacing. "Evening mode"
   is a low-glare dark version for late shifts.
   Layout: sidebar on laptops, bottom bar + "More" sheet on phones.
   ===================================================================== */

/* ---------- calm palette (re-maps the shared site colours) ---------- */
body.team-app {
  --bg: #f3f5f0;          /* page: soft sage-white */
  --surface: #ffffff;     /* cards */
  --surface-2: #f7f9f5;   /* inner boxes */
  --line: #e2e8df;
  --ink: #26332c;
  --muted: #6c7a71;
  --primary: #3d7558;     /* calm sage green */
  --primary-ink: #ffffff;
  --primary-soft: #e4efe7;
  --accent: #f4e6cf;      /* warm sand */
  --accent-ink: #7a5520;
  --warn-bg: #fff6e2; --warn-line: #f0dcae; --warn-ink: #8a5c12;
  --bad-bg: #fbeef0;  --bad-line: #efc9cf;  --bad-ink: #9c3f4d;
  --good-bg: #edf6ef; --good-line: #cfe4d5; --good-ink: #2f6a4a;
  --info-bg: #edf2fa; --info-ink: #3f5f8f;
  --shadow: 0 1px 2px rgba(38, 51, 44, .04), 0 8px 24px -16px rgba(38, 51, 44, .18);
  --radius: 18px;
  /* shared site variables, softened */
  --paper: var(--surface); --tint: var(--primary-soft); --green: var(--primary); --green-900: #2c4a3b;
  --berry: #c45a67; --berry-dark: var(--bad-ink); --gold: #d9a441; --leaf: #6aa37f;
  background: var(--bg); color: var(--ink); font-size: 15.5px;
}
html[data-theme="dark"] body.team-app {
  --bg: #131c18; --surface: #1b2621; --surface-2: #213029; --line: #2c3b33;
  --ink: #e4ebe6; --muted: #9db0a5; --primary: #86c3a0; --primary-ink: #10241a; --primary-soft: #23382d;
  --accent: #3a3224; --accent-ink: #f0d9b0;
  --warn-bg: #33291a; --warn-line: #57462a; --warn-ink: #f2d39a;
  --bad-bg: #3a2327; --bad-line: #5a333a; --bad-ink: #f3b5be;
  --good-bg: #1f3428; --good-line: #2e4d3b; --good-ink: #a9dcbd;
  --info-bg: #1e2a3a; --info-ink: #a9c3ea;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -16px rgba(0, 0, 0, .6);
  --green-900: #22362b; --berry: #e08a95; --gold: #e5b860; --leaf: #86c3a0;
}
html[data-theme="dark"] { color-scheme: dark; }
body.team-app h1, body.team-app h2, body.team-app h3 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
body.team-app .small, body.team-app .ord-sub, body.team-app .app-when { color: var(--muted); }
body.team-app input, body.team-app select, body.team-app textarea {
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; min-height: 44px; font-size: 16px; }
body.team-app input:focus, body.team-app select:focus, body.team-app textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
body.team-app :focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
body.team-app .btn { border-radius: 14px; box-shadow: none; }
body.team-app .btn-green { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
body.team-app .btn-green:hover { filter: brightness(1.05); }
body.team-app .btn-ghost, body.team-app .btn-light { background: var(--surface); color: var(--primary); border-color: var(--line); }
body.team-app .btn-berry { background: var(--berry); border-color: var(--berry); }
body.team-app .btn-soft-red { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-line); }
body.team-app .btn-text { color: var(--primary); }
body.team-app .form-error { background: var(--bad-bg); color: var(--bad-ink); border: 1px solid var(--bad-line); border-radius: 12px; }

[hidden] { display: none !important; }

/* ---------- layout ---------- */
.tside { display: none; }
.tbody { min-height: 100vh; }
body.team-app .team-main { max-width: 1060px; margin: 0 auto; padding: 8px 16px 110px; }
.ttop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s; }
.ttop.scrolled { border-bottom-color: var(--line); }
.ttop-kicker { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ttop h1 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.ttop-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
body:not(.signed-in) .ttop, body:not(.signed-in) .tbottom { display: none; }

@media (min-width: 960px) {
  body.team-app.signed-in .tside { display: flex; }
  body.team-app.signed-in .tbody { margin-left: 264px; }
  body.team-app.signed-in .tbottom { display: none; }
  .ttop { padding: 16px 32px 12px; }
  .ttop h1 { font-size: 1.6rem; }
  body.team-app .team-main { padding: 6px 32px 60px; }
}

/* sidebar */
.tside { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 40; flex-direction: column; gap: 14px; padding: 18px 14px 14px;
  background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.tside-logo img { width: 128px; height: auto; display: block; margin: 2px 8px 0; }
html[data-theme="dark"] .tside-logo img, html[data-theme="dark"] .login-logo { filter: brightness(1.6) saturate(.8); }
.tme { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.tme-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 1rem "Bricolage Grotesque", sans-serif;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent)); color: var(--primary); }
.tme-text { display: grid; min-width: 0; }
.tme-text b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.team-app .tme .role-badge { background: none; padding: 0; font-size: .78rem; color: var(--muted); font-weight: 600; }

.tnav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow: visible; }
.tnav .tgroup { margin: 12px 10px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tnav .tgroup:first-child { margin-top: 2px; }
.tnav button { display: flex !important; align-items: center; justify-content: flex-start !important; gap: 11px; width: 100%; padding: 10px 12px !important;
  border: 0 !important; border-radius: 12px; background: transparent !important; color: var(--ink) !important; font: 600 .93rem Inter, system-ui, sans-serif !important;
  text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.tnav button[hidden] { display: none !important; }
.tnav button:hover { background: var(--surface-2) !important; }
.tnav button[aria-selected="true"] { background: var(--primary-soft) !important; color: var(--primary) !important; }
.tnav button .ico { width: 20px; height: 20px; flex: none; opacity: .85; }
.tnav button .lbl { flex: 1; }
.tnav .count { margin-left: auto; }
.tside-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.tfoot-btn { display: block; text-align: left; padding: 9px 12px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: 600 .86rem Inter, sans-serif; text-decoration: none; cursor: pointer; }
.tfoot-btn:hover { background: var(--surface-2); color: var(--ink); }
.tfoot-btn.danger:hover { color: var(--bad-ink); }

/* counts */
body.team-app .count { background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; font-size: .74rem; font-weight: 700; min-width: 22px; text-align: center; }
body.team-app .count.has { background: var(--berry); color: #fff; }
body.team-app .count.zero { display: none; }

/* bottom bar (phone) */
.tbottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px 6px max(8px, env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(0, 0, 0, .35); }
.tb-btn { position: relative; display: grid; justify-items: center; gap: 3px; padding: 7px 2px 5px; border: 0; background: none; border-radius: 14px;
  color: var(--muted); font: 600 .7rem Inter, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tb-btn .ico { width: 23px; height: 23px; }
.tb-btn[aria-current="page"] { color: var(--primary); }
.tb-btn[aria-current="page"]::before { content: ""; position: absolute; top: 3px; width: 46px; height: 30px; border-radius: 999px; background: var(--primary-soft); z-index: -1; }
.tb-btn .tb-dot { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--berry); color: #fff; font-size: .62rem; display: grid; place-items: center; }

/* "More" sheet (phone) */
.tsheet { position: fixed; inset: 0; z-index: 60; background: rgba(15, 25, 20, .35); display: flex; align-items: flex-end; opacity: 0; transition: opacity .25s; }
.tsheet.open { opacity: 1; }
.tsheet-card { width: 100%; max-height: 86vh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 8px 16px max(18px, env(safe-area-inset-bottom));
  transform: translateY(30px); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.tsheet.open .tsheet-card { transform: none; }
.tsheet-grab { width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 4px auto 12px; }
.tsheet h3 { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 4px 8px; font-family: Inter, sans-serif; }
.tsheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ts-btn { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: 600 .78rem Inter, sans-serif; text-align: center; cursor: pointer; }
.ts-btn .ico { width: 24px; height: 24px; color: var(--primary); }
.ts-btn[aria-current="page"] { border-color: var(--primary); background: var(--primary-soft); }
.ts-btn .tb-dot { position: absolute; top: 8px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--berry); color: #fff; font-size: .64rem; display: grid; place-items: center; }
.tsheet-row { display: flex; gap: 8px; margin-top: 16px; }
.tsheet-row button, .tsheet-row a { flex: 1; text-align: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .86rem Inter, sans-serif; text-decoration: none; cursor: pointer; }

/* section intro + tools */
.sec-intro { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 6px 0 12px; box-shadow: var(--shadow); }
.sec-intro[hidden] { display: none; }
.sec-intro .ico { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 1px; }
.sec-intro p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.sec-intro p b { color: var(--ink); }
.sec-intro .steps { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.sec-intro .steps span { font-size: .74rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); padding: 3px 9px; border-radius: 999px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 600 .8rem Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.tool:hover { border-color: var(--primary); color: var(--primary); }
.tool .ico { width: 17px; height: 17px; }
.tool.on { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary); }
.tool-search { position: relative; }
.tool-search input { height: 38px; min-height: 0; width: 170px; padding: 0 12px 0 34px; font-size: .88rem; border-radius: 12px; }
.tool-search .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.tool-date input { height: 38px; min-height: 0; width: 148px; padding: 0 10px; font-size: .86rem; border-radius: 12px; }
@media (max-width: 959px) {
  .ttop { flex-wrap: wrap; }
  .ttop-tools { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .ttop-tools::-webkit-scrollbar { display: none; }
  .tool .tlbl { display: none; }
  .tool-search { flex: 1; min-width: 150px; }
  .tool-search input { width: 100%; }
}
.filter-hidden { display: none !important; }
.no-match { text-align: center; color: var(--muted); padding: 18px; }

/* ---------- home ("My day") ---------- */
.hm-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 20px 18px; margin: 6px 0 14px;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent)); border: 1px solid var(--line); }
.hm-hero h2 { margin: 0 0 4px; font-size: clamp(1.5rem, 5vw, 2rem); }
.hm-hero p { margin: 0; color: var(--muted); max-width: 46ch; }
.hm-hero .hm-date { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.hm-hero img { position: absolute; right: -6px; bottom: -14px; width: 110px; opacity: .95; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18)); transform: rotate(-12deg); }
@media (min-width: 700px) { .hm-hero { padding: 26px 28px; } .hm-hero img { width: 150px; right: 18px; bottom: -22px; } }
.hm-role { display: flex; gap: 10px; align-items: center; margin: 12px 0 0; font-size: .86rem; color: var(--ink); }
.hm-role b { background: var(--surface); padding: 4px 10px; border-radius: 999px; font-size: .78rem; color: var(--primary); }
.hm-status { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.hm-ring { --p: 0; width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 .8rem Inter, sans-serif; color: var(--primary);
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 78% 100%), conic-gradient(var(--primary) calc(var(--p) * 1%), var(--surface-2) 0); transition: --p .6s; }
.hm-status p { margin: 0; font-size: .92rem; }
.hm-status small { color: var(--muted); }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
@media (min-width: 760px) { .hm-steps { grid-template-columns: 1fr 1fr; } }
.hm-step { counter-increment: st; }
.hm-step button { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); color: var(--ink);
  font: inherit; transition: transform .2s, border-color .2s; }
.hm-step button:hover { transform: translateY(-2px); border-color: var(--primary); }
.hm-step .n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.hm-step .n .ico { width: 20px; height: 20px; }
.hm-step b { display: block; font-size: 1rem; }
.hm-step small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.hm-step .k { font: 700 .8rem Inter, sans-serif; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.hm-step .k.todo { background: var(--warn-bg); color: var(--warn-ink); }
.hm-step .k.ok { background: var(--good-bg); color: var(--good-ink); }
.hm-step .seq { font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.hm-tip { margin: 14px 0 0; font-size: .86rem; color: var(--muted); text-align: center; }

/* ---------- re-skin existing pieces (calmer) ---------- */
body.team-app .login-card { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); margin-top: 8vh; }
body.team-app .login-logo { width: 150px; height: auto; display: block; margin-bottom: 14px; }
body.team-app .loading { color: var(--muted); }
body.team-app .app-card, body.team-app .ord-card, body.team-app .plan-card, body.team-app .progress-card, body.team-app .tile, body.team-app .cust-row,
body.team-app .inbox-card, body.team-app .rating-row, body.team-app .stage, body.team-app .empty {
  background: var(--surface); border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
body.team-app .ord-card.proj { background: var(--surface-2); box-shadow: none; }
body.team-app .fact, body.team-app .pay-line, body.team-app .crm-list li, body.team-app .route-list li, body.team-app .lead-notes, body.team-app .inbox-card .msg { background: var(--surface-2); }
body.team-app .fact strong { color: var(--ink); }
body.team-app .app-notes { background: var(--warn-bg); border-left-color: var(--gold); color: var(--ink); }
body.team-app .chip-link { background: var(--surface); border-color: var(--line); color: var(--primary); }
body.team-app .chip-link.wa { background: var(--good-bg); border-color: var(--good-line); color: var(--good-ink); }
body.team-app .totals, body.team-app .buy-card { background: var(--primary-soft); color: var(--ink); border: 1px solid var(--line); }
body.team-app .totals li strong, body.team-app .buy-card h2 { color: var(--ink); }
body.team-app .totals .t-note, body.team-app .buy-card .sub, body.team-app .buy-row .need { color: var(--muted); }
body.team-app .totals .t-all { border-top-color: var(--line); }
body.team-app .buy-row { border-top-color: var(--line); }
body.team-app .buy-row .buy { color: var(--primary); }
body.team-app .buy-row.total .buy { color: var(--ink); }
body.team-app .tile.good { background: var(--good-bg); border-color: var(--good-line); }
body.team-app .tile.warn, body.team-app .alerts li, body.team-app .lead.overdue { background: var(--warn-bg); border-color: var(--warn-line); }
body.team-app .issue, body.team-app .iq-card { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
body.team-app .stop.done { background: var(--good-bg); border-color: var(--good-line); }
body.team-app .t-value { color: var(--ink); }
body.team-app .ptable td { border-top-color: var(--line); }
body.team-app .ptable tr:hover td { background: var(--surface-2); }
body.team-app .tabs { background: var(--surface); border-color: var(--line); top: 74px; box-shadow: var(--shadow); }
body.team-app .tabs button[aria-selected="true"] { background: var(--primary); color: var(--primary-ink); }
body.team-app .type-chips button { background: var(--surface); border-color: var(--line); }
body.team-app .type-chips button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
body.team-app .date-strip { margin: 0 -16px 10px; padding: 2px 16px 6px; }
body.team-app .date-chip { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
body.team-app .date-chip[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
body.team-app .toolbar { margin: 4px 0 8px; }
body.team-app .chip.placed, body.team-app .chip.pending { background: var(--warn-bg); color: var(--warn-ink); }
body.team-app .chip.confirmed, body.team-app .chip.delivered { background: var(--good-bg); color: var(--good-ink); }
body.team-app .chip.unavailable { background: var(--bad-bg); color: var(--bad-ink); }
body.team-app .toast { background: var(--ink); color: var(--bg); bottom: calc(84px + env(safe-area-inset-bottom)); border-radius: 14px; }
@media (min-width: 960px) { body.team-app .toast { bottom: 24px; left: calc(50% + 132px); } }
body.team-app .c-bar { fill: var(--leaf); }
body.team-app .c-bar.today { fill: var(--primary); }
body.team-app .mini-bars .mb i { background: var(--leaf); }
html[data-theme="dark"] body.team-app .leaflet-container { filter: brightness(.85) contrast(1.05); }

/* wider screens: cards side by side where it helps */
@media (min-width: 1100px) {
  body.team-app .app-list { grid-template-columns: 1fr 1fr; align-items: start; }
  body.team-app #help-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
}

/* gentle entrance when switching sections */
body.team-app #app-view > div:not([hidden]) { animation: secIn .35s cubic-bezier(.2, .8, .2, 1) backwards; }   /* "backwards": no transform left behind, so fixed bars stay fixed */
@keyframes secIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.team-app * { animation: none !important; transition: none !important; } }

/* ---------- store counter (POS) ---------- */
.pos { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1100px) { .pos { grid-template-columns: minmax(0, 1fr) 400px; } .pos-cart { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; } }
.pos-find { display: grid; gap: 8px; margin-bottom: 10px; }
.pos-find input { width: 100%; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; }
.pos-tile { position: relative; display: grid; justify-items: start; gap: 2px; text-align: left; padding: 8px 8px 10px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.pos-tile:hover { border-color: var(--primary); }
.pos-tile:active { transform: scale(.97); }
.pos-tile.in { border-color: var(--primary); background: var(--primary-soft); }
.pos-tile.off { opacity: .55; }
.pos-tile img, .pos-tile .pt-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; font-size: 2rem; margin-bottom: 4px; }
.pt-name { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.pt-size { font-size: .76rem; color: var(--muted); }
.pt-price { font-weight: 700; color: var(--primary); font-size: .86rem; margin-top: 2px; }
.pt-qty { position: absolute; top: 12px; right: 12px; background: var(--primary); color: var(--primary-ink); font: 700 .74rem Inter, sans-serif; padding: 3px 8px; border-radius: 999px; }
.pos-held { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.pos-held p { margin: 0 6px 0 0; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pos-cart { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-head h3 { margin: 0; font-size: 1.1rem; }
.pc-head h3 span { font: 600 .8rem Inter, sans-serif; color: var(--muted); margin-left: 4px; }
.pc-head .tool { height: 32px; padding: 0 10px; }
.pc-head .tool[disabled] { opacity: .4; cursor: default; }
.pc-empty { text-align: center; color: var(--muted); padding: 18px 8px; margin: 0; background: var(--surface-2); border-radius: 14px; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cl { background: var(--surface-2); border-radius: 14px; padding: 9px 10px; }
.cl-top { display: flex; justify-content: space-between; gap: 8px; }
.cl-top b { font-size: .92rem; }
.cl-amt { font-weight: 800; white-space: nowrap; }
.cl-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cl-sub { flex: 1; font-size: .78rem; color: var(--muted); min-width: 0; }
.stepper { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 34px; height: 36px; border: 0; background: none; font: 700 1.1rem Inter, sans-serif; color: var(--primary); cursor: pointer; }
body.team-app .stepper input { width: 52px; min-height: 0; height: 36px; border: 0; border-radius: 0; text-align: center; padding: 0 2px; font-weight: 700; box-shadow: none; }
.stepper .u { font-size: .72rem; color: var(--muted); padding-right: 4px; }
.cl-more { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.cl-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; align-items: end; }
.cl-edit label, .pc-grid label, .pc-sec label, .pc-pay label, .pc-note, .bm-share label, .bl-dates label, .bm-sec label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.cl-edit input, .pc-grid input, .pc-pay input, .pc-note input { width: 100%; }
.btn-text.danger { color: var(--bad-ink); }
.keypad { background: var(--surface-2); border-radius: 16px; padding: 8px; }
.kp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.kp-quick:empty { display: none; }
.kp-quick button, .cash-quick button { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--primary); font: 700 .82rem Inter, sans-serif; cursor: pointer; }
.kp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kp-keys button { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 1.15rem Inter, sans-serif; cursor: pointer; }
.kp-keys button:active { background: var(--primary-soft); }
.kp-for { margin: 6px 2px 0; font-size: .74rem; color: var(--muted); text-align: center; }
@media (max-width: 1099px) { .keypad .kp-keys button { height: 42px; } }
.pc-sec { border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.pc-sec summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.pc-sec summary small { color: var(--muted); font-weight: 500; }
.pc-sec.flat { padding: 8px 10px; }
.pc-sec.flat label { grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.pc-sec.flat .seg { display: inline-flex; margin-left: 6px; }
.seg button { height: 30px; min-width: 34px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; cursor: pointer; }
.seg button:first-child { border-radius: 9px 0 0 9px; } .seg button:last-child { border-radius: 0 9px 9px 0; }
.seg button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pc-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.pc-check { display: flex !important; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600 !important; color: var(--ink) !important; }
.pc-check input { width: 18px; height: 18px; min-height: 0; }
.pc-match { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pc-match button { border: 1px dashed var(--primary); background: var(--primary-soft); color: var(--primary); border-radius: 10px; padding: 6px 10px; font: 600 .8rem Inter, sans-serif; cursor: pointer; }
.pc-tot { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 2px 0; padding: 10px 12px; border-radius: 14px; background: var(--primary-soft); }
.pc-tot dt { color: var(--muted); font-size: .88rem; } .pc-tot dd { margin: 0; text-align: right; font-weight: 600; }
.pc-tot .g { font: 800 1.45rem "Bricolage Grotesque", sans-serif; color: var(--ink); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.pay-modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 8px; }
.pay-modes button { height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .74rem Inter, sans-serif; cursor: pointer; padding: 0 2px; }
.pay-modes button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.cash-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.change { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--good-bg); color: var(--good-ink); font-size: 1rem; text-align: center; }
.change b { font-size: 1.3rem; }
.change.short { background: var(--warn-bg); color: var(--warn-ink); }
.pc-go { min-height: 54px; font-size: 1.05rem; }
.pos-bar { display: none; }
@media (max-width: 1099px) {
  .pos-bar:not(:empty) { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 44; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 8px 8px 14px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
  body.team-app.signed-in.pos-open .team-main { padding-bottom: 170px; }
}
@media (min-width: 960px) and (max-width: 1099px) { .pos-bar:not(:empty) { bottom: 16px; left: 280px; } }
.bill-btn { margin-top: 6px; }

/* bills list, products, settings */
.bl-range { margin-bottom: 8px; }
.bl-dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 8px; }
.ptable tr.void td { opacity: .55; text-decoration: line-through; }
.ptable tr.void td:last-child { text-decoration: none; opacity: 1; }
.pr-row { cursor: pointer; }
.bs-grid { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1100px) { .bs-grid { grid-template-columns: 1fr 1fr; } .bs-grid > :last-child { position: sticky; top: 84px; } }
.bs-grid .edit-grid label, .pr-form .edit-grid label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.bs-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.alerts-lite { background: var(--info-bg); color: var(--info-ink); border-radius: 12px; padding: 8px 12px; font-size: .86rem; }

/* modal */
.pm-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(15, 25, 20, .45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.pm-wrap.open { opacity: 1; }
.pm { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; padding: 14px 16px max(18px, env(safe-area-inset-bottom));
  transform: translateY(24px); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.pm.wide { max-width: 860px; }
.pm-wrap.open .pm { transform: none; }
@media (min-width: 700px) { .pm-wrap { align-items: center; } .pm { border-radius: 22px; } }
.pm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.pm-head h3 { margin: 0; font-size: 1.15rem; }
.pm-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 1rem; }
.bm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bm-top b { flex: 1; }
.bm-top > span:last-child { font: 800 1.3rem "Bricolage Grotesque", sans-serif; }
.bm-st { font: 700 .74rem Inter, sans-serif; padding: 4px 10px; border-radius: 999px; background: var(--good-bg); color: var(--good-ink); }
.bm-st.due { background: var(--warn-bg); color: var(--warn-ink); } .bm-st.void { background: var(--bad-bg); color: var(--bad-ink); }
.bm-frame { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.bm-share { margin: 10px 0 6px; }
.bm-share input { width: 100%; }
.bm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bm-acts .btn { min-height: 46px; font-size: .9rem; padding: 8px 10px; }
body.team-app .btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.bm-new { margin-top: 10px; min-height: 52px; }
.bm-sec { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.bm-sec h4 { margin: 0; font-size: .95rem; }
.bm-sec summary { cursor: pointer; font-weight: 700; color: var(--bad-ink); }

/* ---------- marketing & sales ---------- */
.mk-grid { display: grid; gap: 12px; margin-top: 12px; align-items: start; }
@media (min-width: 900px) { .mk-grid { grid-template-columns: 1fr 1fr; } }
.mk-grid > .plan-card { margin-bottom: 0; }
.fn-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto minmax(64px, auto); gap: 8px; align-items: center; padding: 5px 0; font-size: .88rem; }
.fn-lbl { color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fn-lbl small { color: var(--gold); }
.fn-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: block; }
.fn-bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.fn-bar.warn i { background: var(--berry); opacity: .7; }
.fn-row b { font-variant-numeric: tabular-nums; text-align: right; min-width: 28px; }
.fn-conv { font-size: .74rem; color: var(--muted); text-align: right; }
.fn-row.cmp .fn-bar i { background: #9fb3a7; }
.fn-row.cmp.ours .fn-bar i { background: var(--primary); }
.fn-row.cmp.ours .fn-lbl { color: var(--primary); }
.mk-attn { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mk-attn li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.mk-attn li.warn { background: var(--warn-bg); }
.mk-attn li b { font-size: 1.1rem; min-width: 24px; }
.mk-attn li .btn-text { margin-left: auto; }
.mk-attn:empty::after { content: "All clear 🌿"; color: var(--muted); }
.mk-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-feed li { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: .88rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mk-feed li:last-child { border-bottom: 0; }
.mk-feed li > span { color: var(--muted); font-size: .8rem; }
.muted { color: var(--muted); }
.mk-bar { flex-wrap: wrap; gap: 8px; }
.mk-stages { margin-bottom: 8px; }
.mk-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 6px; }
.mk-list { display: grid; gap: 10px; }
@media (min-width: 1100px) { .mk-list { grid-template-columns: 1fr 1fr; } }
.mk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
body.team-app .mk-card.overdue { border-color: var(--warn-line); background: var(--surface); box-shadow: inset 4px 0 0 var(--gold), var(--shadow); }
.mk-top { display: flex; align-items: flex-start; gap: 8px; }
.mk-name { flex: 1; min-width: 0; display: grid; }
.mk-name b { font-size: 1rem; }
.mk-name small { color: var(--muted); font-size: .8rem; }
.mk-next { margin: 4px 0 8px; font-size: .84rem; font-weight: 600; }
.mk-card.overdue .mk-next { color: var(--warn-ink); }
.prio { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--muted); }
.prio.hot { background: #d0583f; } .prio.warm { background: #d9a441; } .prio.cold { background: #7d9db8; }
.stage-chip { font: 700 .7rem Inter, sans-serif; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); text-transform: capitalize; }
.stage-chip.s-contacted { background: var(--info-bg); color: var(--info-ink); }
.stage-chip.s-interested, .stage-chip.s-sampling { background: var(--warn-bg); color: var(--warn-ink); }
.stage-chip.s-negotiating { background: #f6e6ea; color: #8a3a4a; }
html[data-theme="dark"] .stage-chip.s-negotiating { background: #3a2329; color: #f0b7c2; }
.stage-chip.s-won, .stage-chip.s-regular, .stage-chip.c-active { background: var(--good-bg); color: var(--good-ink); }
.stage-chip.s-lost, .stage-chip.s-not_now, .stage-chip.c-done, .stage-chip.c-paused { background: var(--surface-2); color: var(--muted); }
.mk-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.mk-col { background: var(--surface-2); border-radius: 16px; padding: 8px; display: grid; align-content: start; gap: 8px; scroll-snap-align: start; min-height: 140px; }
.mk-col h4 { margin: 2px 4px 2px; font-size: .86rem; display: flex; justify-content: space-between; }
.mk-col h4 span { color: var(--muted); }
.mk-mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; grid-template-columns: 12px 1fr; gap: 2px 6px; align-items: start; box-shadow: var(--shadow); }
.mk-mini .prio { margin-top: 5px; }
.mk-mini-name { border: 0; background: none; padding: 0; text-align: left; font: 700 .88rem Inter, sans-serif; color: var(--ink); cursor: pointer; }
.mk-mini small { grid-column: 2; color: var(--muted); font-size: .74rem; }
.mk-move { grid-column: 1 / -1; display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.mk-move button { border: 1px solid var(--line); background: var(--surface-2); color: var(--primary); border-radius: 9px; padding: 4px 8px; font: 600 .72rem Inter, sans-serif; cursor: pointer; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 10px; vertical-align: middle; }
.ld-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ld-head .prio { margin-top: 0; }
.ld-facts { display: grid; grid-template-columns: 120px 1fr; gap: 4px 10px; margin: 10px 0; font-size: .9rem; }
.ld-facts dt { color: var(--muted); }
.ld-facts dd { margin: 0; }
.ld-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ld-h { margin: 16px 0 8px; font-size: 1rem; }
.kind-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.kind-chips label { cursor: pointer; }
.kind-chips input { position: absolute; opacity: 0; pointer-events: none; }
.kind-chips span { display: inline-block; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: 600 .84rem Inter, sans-serif; }
.kind-chips input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.kind-chips input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); }
.mk-camps { display: grid; gap: 10px; margin-bottom: 12px; }
@media (min-width: 900px) { .mk-camps { grid-template-columns: 1fr 1fr; } }
.mk-camp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.mk-camp p { margin: 0; }
.cp-spend { display: grid; gap: 4px; font-size: .84rem; color: var(--muted); }
.cp-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.cp-metrics div { background: var(--surface-2); border-radius: 10px; padding: 6px 8px; display: grid; }
.cp-metrics small { color: var(--muted); font-size: .7rem; }
.cp-metrics b { font-size: .98rem; }
.ln-out { width: 100%; margin-top: 8px; font-size: .82rem !important; }
.contact-grid.one { grid-template-columns: 1fr; }
.soc-list { display: grid; gap: 8px; }
.soc { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); text-decoration: none; }
.soc:hover { border-color: var(--primary); }
.soc-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-size: 1.2rem; }
.soc b { display: block; } .soc small { color: var(--muted); font-size: .8rem; word-break: break-all; }
.soc-go { color: var(--primary); font-weight: 700; font-size: .84rem; }
.tp-row { border-top: 1px solid var(--line); padding: 8px 0; }
.tp-row p { margin: 4px 0; white-space: pre-line; }
.bc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.bc-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; }
.bc-list li.done { opacity: .55; }

/* ---------- printing a day sheet ---------- */
@media print {
  .tside, .tbottom, .ttop-tools, .tsheet, .toast, .date-strip, .toolbar .btn-text, .sec-intro, .actions, .contact-row, .drv-row { display: none !important; }
  body.team-app.signed-in .tbody { margin: 0 !important; }
  .ttop { position: static; background: none; }
  body.team-app { background: #fff; --surface: #fff; --surface-2: #fff; --shadow: none; color: #000; }
  body.team-app .team-main { max-width: none; padding: 0; }
  .ord-card, .plan-card, .app-card { break-inside: avoid; }
}

/* =====================================================================
   Marketing autopilot: AI coach, Found targets, Market watch
   ===================================================================== */
.ai-brief { background: linear-gradient(135deg, var(--primary-soft), var(--surface) 70%); border: 1px solid var(--good-line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.ai-brief-top { display: flex; gap: 12px; align-items: flex-start; }
.ai-brief-top small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.ai-brief h3 { margin: 2px 0 6px; font-size: 1.15rem; line-height: 1.35; }
.ai-brief p { margin: 6px 0; line-height: 1.55; }
.ai-spark { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-size: 1.1rem; }
.ai-watch { margin: 10px 0 4px; }
.ai-acts, .rec-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.rec-acts { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
.rec-acts .small:first-child { margin-right: auto; }
.ai-running { margin: 10px 0 0; font-size: .88rem; color: var(--info-ink); background: var(--info-bg); border-radius: 12px; padding: 8px 12px; }
.recs { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 1100px) { .recs { grid-template-columns: 1fr 1fr; } }
.rec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rec.doing { box-shadow: inset 4px 0 0 var(--primary), var(--shadow); }
.rec-top { display: flex; gap: 10px; align-items: flex-start; }
.rec-top h4 { margin: 4px 0 0; font-size: 1rem; line-height: 1.35; }
.rec-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; }
.rec-area { font: 700 .7rem Inter, sans-serif; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.rec-area.a-followups, .rec-area.a-sampling { background: var(--warn-bg); color: var(--warn-ink); }
.rec-area.a-leads, .rec-area.a-retention { background: var(--good-bg); color: var(--good-ink); }
.rec-area.a-pricing, .rec-area.a-competition, .rec-area.a-product { background: var(--accent); color: var(--accent-ink); }
.rec-area.a-campaign, .rec-area.a-content { background: var(--info-bg); color: var(--info-ink); }
.rec-steps { margin: 8px 0 4px; padding-left: 20px; line-height: 1.55; font-size: .92rem; }
.rec-steps li { margin: 2px 0; }
.rec-impact { margin: 6px 0 0; font-weight: 600; color: var(--good-ink); font-size: .9rem; }
.ai-done summary { cursor: pointer; font-weight: 600; }
.ai-jobs { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.ai-jobs li { display: flex; gap: 10px; align-items: flex-start; }
.ai-ic { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
.ai-budget { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; margin: 10px 0; font-size: .9rem; }
.ai-budget .fn-bar { grid-column: 1 / -1; }
.run-done { color: var(--good-ink); } .run-failed { color: var(--bad-ink); } .run-running { color: var(--info-ink); }
body.team-app .danger { color: var(--bad-ink); }

.pf-bulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 10px; }
.mk-card.pros { display: flex; flex-direction: column; gap: 4px; }
.mk-card.pros.berry { box-shadow: inset 4px 0 0 var(--berry), var(--shadow); }
.mk-card.pros .mk-top input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); }
.fit { min-width: 38px; height: 30px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.fit.mid { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.fit.hi { background: var(--good-bg); color: var(--good-ink); border-color: var(--good-line); }
.berry-line { margin: 4px 0 0; font-weight: 600; color: var(--berry-dark); font-size: .92rem; }

.mw-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 10px; }
.mw-nums div { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.mw-nums small { display: block; color: var(--muted); font-size: .75rem; }
.mw-nums b { font-size: 1.05rem; }
.mw-spark { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin: 4px 0 6px; }
.mw-spark i { flex: 1; min-width: 4px; background: var(--primary); opacity: .55; border-radius: 4px 4px 0 0; }
.mw-spark i:last-child { opacity: 1; }
b.up { color: var(--bad-ink); } b.down { color: var(--good-ink); }
.mw-news { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 900px) { .mw-news { grid-template-columns: 1fr 1fr; } }
.news { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.news p { margin: 4px 0 0; }
.news-tag { display: block; font: 700 .72rem Inter, sans-serif; margin-bottom: 4px; color: var(--info-ink); }
.news.threat { border-color: var(--warn-line); } .news.threat .news-tag { color: var(--warn-ink); }
.news.opportunity { border-color: var(--good-line); } .news.opportunity .news-tag { color: var(--good-ink); }
.ph-prev { max-width: 100%; max-height: 220px; border-radius: 12px; margin: 8px 0; object-fit: contain; }
.ph-row { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 10px 0; }
.mk-feed.ai-runs li { grid-template-columns: 26px 1fr; }
.mk-feed.ai-runs li > span { font-weight: 800; text-align: center; }
.mw-acts { margin: 0 0 14px; }
.mw-acts .small { flex: 1 1 220px; }

/* Direct UPI payments */
.upi-card .upi-amt { font-size: 1.3rem; font-weight: 800; white-space: nowrap; }
.upi-utr { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.upi-utr span { font: 700 .72rem Inter, sans-serif; color: var(--muted); }
.upi-utr b { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em; flex: 1; }
.upi-how ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.upi-how summary { cursor: pointer; }
.upi-banner { margin: 0 0 12px; }
.pc-qr { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.pc-qr > div { width: 132px; height: 132px; flex: none; }
.upi-qr-box { background: #fff; border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.upi-qr-box svg { width: 100%; height: 100%; display: block; }
.bs-pay { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 8px; }
.bs-pay legend { font-weight: 700; padding: 0 6px; }
.bs-pay .pc-check { align-items: flex-start; }
