/* =========================================================================
   Sidework — concept product (fictional scheduling app for small service
   teams). Interactive prototype by Snyder Creative Studio. Phone-first;
   the desktop dashboard layout (sidebar + top bar) starts at 900px.
   ========================================================================= */
:root {
  --bg: #f2f2f7; --card: #ffffff; --ink: #0b0b0c; --ink-2: #3a3a3c; --muted: #6e6e73; --muted-2: #aeaeb2;
  --line: #e5e5ea; --line-2: #d1d1d6; --accent: #ff5a1f; --accent-soft: #fff1eb; --accent-ink: #b8400f;
  --green: #34c759; --green-soft: #e3f4e6; --green-ink: #1d6b31; --blue: #3b82f6; --gray-soft: #ececf0;
  --crew-a: #ffd8c8; --crew-a-ink: #7a2d0c; --crew-b: #d7e8ff; --crew-b-ink: #1c3d70; --crew-c: #dff2df; --crew-c-ink: #1f5a2a;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --r: 16px; --r-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.18); --tab-h: 84px; --top-h: 56px;
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --card: #161618; --ink: #f5f5f7; --ink-2: #d1d1d6; --muted: #8e8e93; --muted-2: #636366;
  --line: #2c2c2e; --line-2: #3a3a3c; --accent-soft: #3a2118; --accent-ink: #ffb08f; --green-soft: #17331d; --green-ink: #7ddc8e; --gray-soft: #2c2c2e;
  --crew-a: #4a2a1c; --crew-a-ink: #ffc2a8; --crew-b: #1c2e4a; --crew-b-ink: #a9c8ff; --crew-c: #1c3a22; --crew-c-ink: #a9e5b3;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- App frame ---------- */
.app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.app.is-login .sidebar, .app.is-login .topbar, .app.is-login .tabbar { display: none; }
.sidebar { display: none; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@supports not (background: color-mix(in srgb, red, blue)) { .topbar { background: var(--bg); } }
.topbar .t { font-size: 17px; font-weight: 600; }
.topbar .l { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.topbar .l .chev { width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.topbar .right { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); position: relative; transition: background 0.2s var(--ease); }
.icon-btn:hover { background: var(--gray-soft); }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.icon-btn .dot[data-n="0"] { display: none; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-style: normal; background: var(--crew-a); color: var(--crew-a-ink); flex: none; }
.av.b { background: var(--crew-b); color: var(--crew-b-ink); } .av.c { background: var(--crew-c); color: var(--crew-c-ink); } .av.g { background: var(--gray-soft); color: var(--muted); }
.av.lg { width: 56px; height: 56px; font-size: 18px; } .av.xl { width: 72px; height: 72px; font-size: 24px; }
.avs { display: flex; } .avs .av { width: 28px; height: 28px; font-size: 10px; box-shadow: 0 0 0 2px var(--card); margin-left: -8px; } .avs .av:first-child { margin-left: 0; }

.view { padding: 8px 16px calc(var(--tab-h) + 24px); max-width: 100%; }
.view > * { animation: fade 0.35s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--tab-h); background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
@supports not (background: color-mix(in srgb, red, blue)) { .tabbar { background: var(--card); } }
.tabbar a { display: grid; justify-items: center; align-content: start; gap: 5px; font-size: 10px; font-weight: 600; color: var(--muted); padding-top: 6px; min-height: 44px; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.is-on { color: var(--accent); }

/* ---------- Common blocks ---------- */
.greet small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.greet h1 { font-size: 34px; letter-spacing: -0.03em; font-weight: 700; line-height: 1.05; margin-top: 4px; }
.h1 { font-size: 28px; letter-spacing: -0.03em; font-weight: 700; line-height: 1.1; }
.h2 { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 0 10px; }
.h2 b { font-size: 20px; letter-spacing: -0.02em; font-weight: 700; }
.h2 a, .h2 button { font-size: 14px; color: var(--accent); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.stat { display: block; background: var(--card); border-radius: var(--r); padding: 14px; text-align: left; transition: transform 0.2s var(--ease); }
.stat:active { transform: scale(0.98); }
.stat b { display: block; font-size: 28px; letter-spacing: -0.03em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.stat.hot b { color: var(--accent); }
.card { background: var(--card); border-radius: var(--r); padding: 16px 18px; }
.card + .card { margin-top: 10px; }
.card .ct { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.jobs { display: grid; gap: 10px; }
.job { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; background: var(--card); border-radius: var(--r); padding: 14px; width: 100%; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.job:hover { box-shadow: var(--shadow); } .job:active { transform: scale(0.99); }
.job time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; color: var(--muted); }
.job time b { display: block; color: var(--ink); font-size: 15px; }
.job .who b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.job .who small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.job.is-done .who b { color: var(--muted); text-decoration: line-through; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.pill.gray { background: var(--gray-soft); color: var(--muted); } .pill.green { background: var(--green-soft); color: var(--green-ink); } .pill.blue { background: var(--crew-b); color: var(--crew-b-ink); }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; transition: transform 0.15s var(--ease), opacity 0.15s var(--ease); white-space: nowrap; }
:root[data-theme="dark"] .btn { color: #0b0b0c; }
.btn:active { transform: scale(0.98); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* Search + filters */
.search { position: relative; margin-top: 12px; }
.search input { width: 100%; height: 44px; border: 0; border-radius: 12px; background: var(--card); padding: 0 14px 0 40px; font-size: 15px; outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.search input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); background: var(--card); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { color: #0b0b0c; }

/* Job detail */
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.jobd h1 { font-size: 26px; letter-spacing: -0.025em; font-weight: 700; line-height: 1.1; margin-top: 10px; }
.jobd .addr { font-size: 14px; color: var(--muted); margin-top: 6px; }
.map { height: 120px; border-radius: 12px; margin-top: 14px; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0/28px 28px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/28px 28px, var(--bg); position: relative; overflow: hidden; }
.map::before { content: ""; position: absolute; left: 20%; right: 10%; top: 55%; height: 5px; border-radius: 3px; background: var(--line-2); transform: rotate(-8deg); }
.map::after { content: ""; position: absolute; left: 58%; top: 34%; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 90, 31, 0.2); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.kv small { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.kv b { display: block; font-size: 15px; font-weight: 600; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; font-size: 15px; border-top: 1px solid var(--line); }
.check:first-of-type { border-top: 0; }
.check i { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); flex: none; position: relative; transition: background 0.15s var(--ease), border-color 0.15s var(--ease); }
.check[aria-checked="true"] i { background: var(--ink); border-color: var(--ink); }
.check[aria-checked="true"] i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border-right: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(45deg); }
.check[aria-checked="true"] span { color: var(--muted); text-decoration: line-through; }
.progress { height: 6px; border-radius: 3px; background: var(--gray-soft); overflow: hidden; margin: 6px 0 14px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width 0.4s var(--ease); }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photos i, .photos button { display: block; aspect-ratio: 1; border-radius: 10px; background: var(--gray-soft); }
.photos button { background: none; box-shadow: inset 0 0 0 1.5px var(--line-2); position: relative; }
.photos button::before, .photos button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--muted); transform: translate(-50%, -50%); }
.photos button::after { transform: translate(-50%, -50%) rotate(90deg); }
.photos i.new { background: linear-gradient(135deg, #cfd8dc, #90a4ae); animation: fade 0.4s var(--ease); }
.notes { width: 100%; min-height: 84px; border: 0; border-radius: 10px; background: var(--bg); padding: 12px; resize: vertical; outline: none; }
.notes:focus { box-shadow: inset 0 0 0 2px var(--accent); }

/* Schedule */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.day { display: grid; justify-items: center; gap: 6px; padding: 10px 0; border-radius: 14px; font-size: 11px; font-weight: 600; color: var(--muted); }
.day b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--muted-2); }
.day[aria-pressed="true"] b { color: var(--bg); }
.crews { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.crew { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--card); transition: opacity 0.2s var(--ease); }
.crew i { width: 9px; height: 9px; border-radius: 50%; }
.crew[aria-pressed="false"] { opacity: 0.45; }
.tl { position: relative; margin-top: 18px; display: grid; grid-template-columns: 44px 1fr; }
.tl .hr { font-size: 11px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; height: 64px; }
.tl .slot { height: 64px; border-top: 1px solid var(--line); position: relative; }
.blk { position: absolute; left: 0; right: 0; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; text-align: left; transition: transform 0.15s var(--ease); }
.blk:hover { transform: scale(1.01); }
.blk small { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.75; margin-top: 2px; }
.blk.a { background: var(--crew-a); color: var(--crew-a-ink); } .blk.b { background: var(--crew-b); color: var(--crew-b-ink); } .blk.c { background: var(--crew-c); color: var(--crew-c-ink); }

/* Messages */
.threads { display: grid; gap: 2px; background: var(--card); border-radius: var(--r); overflow: hidden; margin-top: 12px; }
.thread { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; width: 100%; border-top: 1px solid var(--line); }
.thread:first-child { border-top: 0; }
.thread .av { width: 44px; height: 44px; font-size: 13px; }
.thread b { display: block; font-size: 15px; font-weight: 600; }
.thread small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread time { font-size: 12px; color: var(--muted); }
.thread.is-unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: 1px; }
.msgs { display: grid; gap: 8px; padding: 8px 0 12px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; background: var(--card); font-size: 15px; line-height: 1.4; animation: fade 0.3s var(--ease); }
.msg.me { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.msg.them { border-bottom-left-radius: 6px; }
.msg time { display: block; font-size: 11px; opacity: 0.6; margin-top: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.composer { position: sticky; bottom: calc(var(--tab-h) + 8px); display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; background: var(--bg); }
.composer input { height: 46px; border: 0; border-radius: 14px; background: var(--card); padding: 0 14px; outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.composer input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.composer button { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; }

/* Team */
.people { display: grid; gap: 10px; margin-top: 12px; }
.person { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: var(--card); border-radius: var(--r); padding: 14px; width: 100%; }
.person .av { width: 44px; height: 44px; font-size: 13px; }
.person b { display: block; font-size: 15px; font-weight: 600; }
.person small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Settings */
.profile { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 8px 0 4px; }
.profile b { display: block; font-size: 20px; letter-spacing: -0.02em; font-weight: 700; }
.profile small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.grp-l { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding: 22px 4px 8px; }
.grp { background: var(--card); border-radius: 18px; overflow: hidden; }
.rowi { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; min-height: 52px; padding: 0 16px; border-top: 1px solid var(--line); font-size: 16px; width: 100%; }
.rowi:first-child { border-top: 0; }
.rowi i { width: 30px; height: 30px; border-radius: 9px; background: var(--muted-2); }
.rowi i.o { background: var(--accent); } .rowi i.k { background: var(--ink); } .rowi i.g { background: var(--green); } .rowi i.b { background: var(--blue); } .rowi i.p { background: #8e8e93; }
.rowi .val { font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.rowi .chev { width: 9px; height: 9px; border-right: 2px solid var(--muted-2); border-top: 2px solid var(--muted-2); transform: rotate(45deg); }
.tog { width: 51px; height: 31px; border-radius: 999px; background: var(--green); position: relative; transition: background 0.2s var(--ease); flex: none; }
.tog::after { content: ""; position: absolute; top: 2px; left: 22px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: left 0.2s var(--ease); }
.tog[aria-checked="false"] { background: var(--line-2); } .tog[aria-checked="false"]::after { left: 2px; }
.seg { display: inline-grid; grid-auto-flow: column; padding: 3px; border-radius: 10px; background: var(--gray-soft); }
.seg button { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }

/* Shared concept note sits above the fixed tab bar on phones */
.scs-concept-note { padding-bottom: calc(30px + var(--tab-h)); }

/* Login */
.login { min-height: 100vh; display: grid; align-content: center; padding: 40px 24px; max-width: 440px; margin: 0 auto; }
.mark { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); position: relative; }
.mark::after { content: ""; position: absolute; left: 14px; right: 14px; top: 26px; height: 5px; border-radius: 3px; background: var(--accent); box-shadow: 0 -10px 0 var(--bg), 0 10px 0 var(--bg); }
.login h1 { font-size: 36px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin-top: 26px; }
.login .lead { font-size: 16px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.form { display: grid; gap: 10px; margin-top: 26px; }
.field input, .field select { width: 100%; height: 50px; border: 0; border-radius: 14px; background: var(--card); padding: 0 16px; font-size: 16px; outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.field input:focus, .field select:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.field label { display: block; font-size: 13px; font-weight: 600; margin: 8px 0 6px; }
.login .fine { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.login .or { text-align: center; font-size: 12px; color: var(--muted-2); margin: 6px 0; }

/* Modal + slide-over panel + toast */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.4); display: grid; place-items: end center; padding: 0; animation: fade 0.2s var(--ease); }
.modal { width: 100%; max-width: 480px; background: var(--card); border-radius: 22px 22px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; animation: up 0.3s var(--ease); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; }
.modal h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.modal p { color: var(--muted); margin-top: 6px; line-height: 1.5; }
.modal .actions { margin-top: 22px; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 400px); z-index: 61; background: var(--bg); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2); padding: 16px; overflow: auto; animation: slide 0.3s var(--ease); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.notif { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 14px; background: var(--card); border-radius: 14px; margin-bottom: 8px; }
.notif i { width: 36px; height: 36px; border-radius: 10px; background: var(--gray-soft); display: grid; place-items: center; font-style: normal; }
.notif i.o { background: var(--accent-soft); color: var(--accent-ink); } .notif i.g { background: var(--green-soft); color: var(--green-ink); } .notif i.b { background: var(--crew-b); color: var(--crew-b-ink); }
.notif b { display: block; font-size: 14.5px; font-weight: 600; }
.notif small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.notif.is-read { opacity: 0.6; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 14px); transform: translate(-50%, 10px); z-index: 80; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s; white-space: nowrap; box-shadow: var(--shadow); }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }

/* =========================================================================
   Desktop dashboard layout
   ========================================================================= */
@media (min-width: 900px) {
  :root { --tab-h: 0px; }
  .app { grid-template-columns: 240px 1fr; grid-template-rows: auto 1fr; }
  .app.is-login { display: block; }
  .sidebar { display: flex; flex-direction: column; grid-row: 1 / -1; position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--card); }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
  .sidebar .brand .mark { width: 30px; height: 30px; border-radius: 9px; }
  .sidebar .brand .mark::after { left: 7px; right: 7px; top: 13px; height: 3px; box-shadow: 0 -6px 0 var(--card), 0 6px 0 var(--card); }
  .sidebar nav { margin-top: 26px; display: grid; gap: 2px; }
  .sidebar nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 11px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background 0.15s var(--ease); }
  .sidebar nav a svg { width: 20px; height: 20px; color: var(--muted); }
  .sidebar nav a:hover { background: var(--bg); }
  .sidebar nav a.is-on { background: var(--bg); color: var(--ink); font-weight: 600; }
  .sidebar nav a.is-on svg { color: var(--accent); }
  .sidebar nav a .dot { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
  .sidebar nav a .dot[data-n="0"] { display: none; }
  .sidebar .user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; }
  .sidebar .user b { display: block; font-size: 14px; font-weight: 600; }
  .sidebar .user small { display: block; font-size: 12px; color: var(--muted); }
  .sidebar .concept { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--bg); font-size: 11.5px; line-height: 1.45; color: var(--muted); }
  .sidebar .concept b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
  .sidebar .concept a { color: var(--accent); font-weight: 600; }
  .topbar { grid-column: 2; padding: 0 32px; height: 64px; }
  .topbar .t { font-size: 15px; color: var(--muted); font-weight: 500; }
  .topbar .l { display: none; }
  .topbar .gsearch { flex: 1; max-width: 420px; margin: 0 24px; }
  .topbar .gsearch .search { margin: 0; }
  .view { grid-column: 2; padding: 12px 32px 48px; max-width: 1100px; width: 100%; }
  .tabbar { display: none; }
  .greet h1 { font-size: 40px; }
  .stats { max-width: 560px; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .two-col > * + * { margin-top: 0; }
  .jobd-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: start; }
  .map { height: 200px; }
  .actions { max-width: 480px; }
  .overlay { place-items: center; padding: 24px; }
  .modal { border-radius: 22px; padding: 26px 26px 26px; }
  .modal::before { display: none; }
  .composer { bottom: 0; }
  .toast { bottom: 28px; }
  .login { min-height: 100vh; }
  .login-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .login-split .art { background: var(--ink); color: #fff; display: grid; align-content: end; padding: 48px; }
  .login-split .art h2 { font-size: 34px; letter-spacing: -0.03em; font-weight: 700; line-height: 1.1; max-width: 14ch; }
  .login-split .art p { color: #a1a1a6; margin-top: 12px; max-width: 42ch; line-height: 1.55; }
  .login-split .art .stats { max-width: 420px; margin-top: 28px; }
  .login-split .art .stat { background: #1c1c1e; color: #fff; }
  .login-split .art .stat small { color: #a1a1a6; }
}
@media (max-width: 899px) { .login-split .art { display: none; } .gsearch { display: none; } }
@media (prefers-reduced-motion: reduce) { .view > *, .overlay, .modal, .panel, .msg, .toast { animation: none; transition: none; } }
