/* Webloop HQ — stil Apple: font de sistem, liste grupate, materiale translucide, luminos/întunecat după sistem. */

@font-face { font-family: "InterVar"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "InterVar"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "InterVar", "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "InterVar", "Segoe UI Variable Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, "InterVar", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #F2F2F7; --bg-2: #FFFFFF; --bg-3: #F2F2F7;
  --fill: rgba(120,120,128,.14); --fill-2: rgba(120,120,128,.08);
  --label: #000; --label-2: rgba(60,60,67,.62); --label-3: rgba(60,60,67,.32);
  --sep: rgba(60,60,67,.16); --sep-opaque: #D1D1D6;
  --tint: #7C3AED; --green: #34C759; --orange: #FF9500; --red: #FF3B30; --purple: #AF52DE; --yellow: #FFCC00; --gray: #8E8E93;
  --material: rgba(250,250,250,.78); --material-strong: rgba(255,255,255,.9); --sidebar: rgba(236,236,241,.82);
  --alert-bg: rgba(246,246,246,.94); --seg-on: #FFFFFF;
  --edge: rgba(60,60,67,.42); --grid-dot: rgba(60,60,67,.2); --card-border: rgba(0,0,0,.05);
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 0 0 .5px rgba(0,0,0,.03);
  --shadow-2: 0 6px 22px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  --shadow-3: 0 22px 70px rgba(0,0,0,.2), 0 2px 10px rgba(0,0,0,.08);
  --ease: cubic-bezier(.32,.72,0,1);
  --tl-name: 230px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --bg-2: #1C1C1E; --bg-3: #2C2C2E;
    --fill: rgba(118,118,128,.26); --fill-2: rgba(118,118,128,.16);
    --label: #FFF; --label-2: rgba(235,235,245,.62); --label-3: rgba(235,235,245,.32);
    --sep: rgba(84,84,88,.6); --sep-opaque: #38383A;
    --tint: #8B5CF6; --green: #30D158; --orange: #FF9F0A; --red: #FF453A; --purple: #BF5AF2; --yellow: #FFD60A; --gray: #98989D;
    --material: rgba(28,28,30,.76); --material-strong: rgba(44,44,46,.92); --sidebar: rgba(28,28,30,.86);
    --alert-bg: rgba(40,40,42,.94); --seg-on: #636366;
    --edge: rgba(235,235,245,.42); --grid-dot: rgba(235,235,245,.14); --card-border: rgba(255,255,255,.07);
    --shadow-1: none; --shadow-2: 0 8px 28px rgba(0,0,0,.55); --shadow-3: 0 24px 80px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--label); font: 15px/1.4 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -0.006em; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--tint); -webkit-tap-highlight-color: transparent; }
.ic { width: 20px; height: 20px; flex: none; display: block; }
.hidden { display: none !important; }
.grow { flex: 1; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--fill); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::selection { background: color-mix(in srgb, var(--tint) 30%, transparent); }

/* ---------- pornire ---------- */
#boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 300; transition: opacity .3s; }
#boot.gone { opacity: 0; pointer-events: none; }
.spin { width: 28px; height: 28px; border: 3px solid var(--fill); border-top-color: var(--tint); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- structură ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 12px; background: var(--sidebar); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); border-right: 1px solid var(--sep); }
.sb-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.sb-title b { display: block; font-size: 15px; font-weight: 600; }
.sb-title small { display: block; font-size: 12px; color: var(--label-2); }
.app-icon { width: 30px; height: 30px; border-radius: 7.5px; display: grid; place-items: center; background: #07060A; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14); flex: none; }
.app-icon.big { width: 76px; height: 76px; border-radius: 18px; font-size: 36px; margin: 0 auto 16px; box-shadow: 0 8px 24px rgba(124,58,237,.32); }
.app-icon img { width: 72%; height: 72%; display: block; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--label); text-decoration: none; font-size: 14px; font-weight: 500; }
.sb-item .ic { color: var(--tint); width: 19px; height: 19px; }
.sb-item.on { background: var(--fill); }
.sb-count { margin-left: auto; font-size: 13px; color: var(--label-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.sb-spacer { flex: 1; }
.sb-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-align: left; width: 100%; }
.sb-me .ic { color: var(--label-2); width: 18px; }
.sb-me-text { flex: 1; min-width: 0; }
.sb-me-text b { display: block; font-size: 14px; font-weight: 600; }
.sb-me-text small { display: block; font-size: 12px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; }
.tabbar { display: none; }
.demo-chip { position: fixed; right: 14px; bottom: 14px; z-index: 30; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 8px; pointer-events: none; }

/* ---------- antet ecran (large title) ---------- */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 32px 14px; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); }
.topbar h1 { font: 700 34px/1.12 var(--font-display); letter-spacing: -0.024em; }
.tb-text { min-width: 0; }
.tb-text p { color: var(--label-2); font-size: 15px; margin-top: 3px; }
.tb-text p::first-letter { text-transform: uppercase; }
.tb-actions { display: flex; align-items: center; gap: 10px; }
.page { padding: 4px 32px 48px; max-width: 1180px; }
.page.wide { max-width: none; }

/* ---------- butoane ---------- */
.round-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--tint); transition: background .15s; }
.round-btn .ic { width: 20px; height: 20px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--tint); transition: background .15s; flex: none; }
.icon-btn.on { background: color-mix(in srgb, var(--tint) 14%, transparent); }
.icon-btn.subtle { color: var(--label-3); width: 28px; height: 28px; }
.icon-btn.subtle .ic { width: 16px; height: 16px; }
.link-btn { color: var(--tint); font-size: 16px; padding: 6px 4px; text-decoration: none; display: inline-block; }
.link-btn.strong { font-weight: 600; }
.inline-link { color: var(--tint); font: inherit; padding: 0; }
.btn-primary { display: block; width: 100%; height: 48px; border-radius: 12px; background: var(--tint); color: #fff; font-size: 16px; font-weight: 600; transition: filter .15s, transform .1s; }
.btn-primary:active { transform: scale(.985); }
.btn-primary:disabled { opacity: .6; }
.btn-tinted { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, transparent); font-weight: 600; }
.btn-tinted .ic { width: 18px; height: 18px; }
.danger-btn { display: block; width: 100%; margin-top: 8px; padding: 13px; border-radius: 12px; background: var(--bg-2); color: var(--red); font-size: 16px; font-weight: 500; box-shadow: var(--shadow-1); }
.more-btn { width: 100%; padding: 8px; border-radius: 10px; color: var(--tint); font-size: 13px; font-weight: 500; }
@media (hover: hover) {
  .round-btn:hover, .icon-btn:hover { background: var(--fill); }
  .icon-btn.on:hover { background: color-mix(in srgb, var(--tint) 20%, transparent); }
  .sb-item:not(.on):hover, .sb-me:hover { background: var(--fill-2); }
  .btn-primary:hover { filter: brightness(1.06); }
  .row:hover, .nrow:not(.on):hover { background: var(--fill-2); }
  .pcard:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
  .chip:hover:not(.on) { background: color-mix(in srgb, var(--label) 12%, transparent); }
  .tool:hover:not(.on), .bd-selbar button:hover, .bd-zoom button:hover { background: var(--fill); }
  .menu:not(.sheet-menu) .menu-item:hover { background: var(--tint); color: #fff; }
  .menu:not(.sheet-menu) .menu-item.destructive:hover { background: var(--red); color: #fff; }
  .menu:not(.sheet-menu) .menu-item:hover .menu-check { color: #fff; }
  .btile:hover .btile-prev { box-shadow: var(--shadow-2); }
  .cd:hover .cd-handle { opacity: 1; }
}

/* ---------- segmented control ---------- */
.seg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.seg-btn { padding: 5px 14px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--label); white-space: nowrap; transition: background .2s, box-shadow .2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg-btn.on { background: var(--seg-on); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); font-weight: 600; }
.seg.small .seg-btn { padding: 4px 11px; }
.seg.stages { display: flex; width: 100%; margin-bottom: 20px; }
.seg.stages .seg-btn { flex: 1; padding: 7px 4px; }
.seg .dot { width: 7px; height: 7px; }

/* ---------- elemente mici ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }
.pill.red { color: var(--red); background: color-mix(in srgb, var(--red) 13%, transparent); }
.pill.orange { color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.pill.gray { color: var(--label-2); background: var(--fill-2); }
.av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; flex: none; }
.av.sm { width: 22px; height: 22px; font-size: 10px; }
.av-pair { display: inline-flex; flex: none; }
.av-pair .av + .av { margin-left: -7px; box-shadow: 0 0 0 2px var(--bg-2); }
.bar { height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; margin: 10px 0 9px; }
.bar i { display: block; height: 100%; border-radius: 2px; transition: width .5s var(--ease); }
.bar.thin { height: 3px; margin: 7px 0 1px; }
.search { display: flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 10px; height: 36px; padding: 0 10px; flex: 1; max-width: 340px; }
.search-ic .ic { width: 16px; height: 16px; color: var(--label-2); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; height: 100%; }
.search input::-webkit-search-cancel-button { opacity: .5; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.tags { padding-top: 8px; }
.chip { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--fill); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; transition: background .15s; }
.chip .dot { width: 7px; height: 7px; }
.chip.on { background: var(--tint); color: #fff; }
.chip.tag { color: var(--tint); background: color-mix(in srgb, var(--tint) 10%, transparent); }
.chip.tag.on { background: var(--tint); color: #fff; }

/* ---------- liste grupate (inset grouped) ---------- */
.group { margin-top: 24px; }
.group-title { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; font: 700 19px/1.25 var(--font-display); letter-spacing: -0.016em; }
.group-note { margin-left: auto; font: 400 14px var(--font); color: var(--label-2); letter-spacing: 0; }
.group-link { margin-left: auto; font: 400 15px var(--font); color: var(--tint); text-decoration: none; letter-spacing: 0; }
.list { background: var(--bg-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); }
.list.padded { padding: 4px 16px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 16px; min-height: 50px; text-align: left; position: relative; color: var(--label); text-decoration: none; cursor: pointer; transition: background .12s; }
.row + .row::before, .row + .add-task::before, .add-task + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.row:active { background: var(--fill-2); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-title.tint { color: var(--tint); font-weight: 500; }
.row-sub { font-size: 13px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--label-3); flex: none; }
.chev .ic { width: 15px; height: 15px; }
.empty-row { padding: 14px 16px; color: var(--label-2); font-size: 14px; }
.empty-big { text-align: center; color: var(--label-2); padding: 64px 20px; font-size: 15px; line-height: 1.6; }
.empty-big .ic { display: inline-block; width: 17px; height: 17px; vertical-align: -3px; color: var(--tint); }
.more-row { justify-content: center; color: var(--tint); font-size: 14px; min-height: 42px; }

/* bifă ca în Reminders */
.check { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--label-3); display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s, transform .15s; }
.check .ic { width: 13px; height: 13px; color: #fff; opacity: 0; stroke-width: 3; transition: opacity .15s; }
.check.on { background: var(--tint); border-color: var(--tint); }
.check.on .ic { opacity: 1; }
.check:active { transform: scale(.9); }
.check.ghost { border: 0; color: var(--tint); }
.check.ghost .ic { opacity: 1; color: var(--tint); width: 20px; height: 20px; stroke-width: 2; }
.task.done .row-title { color: var(--label-2); text-decoration: line-through; }
.task .row-main[data-act] { cursor: pointer; }

/* noutăți */
.feed-item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--sep); }
.composer + .feed-item, .feed-item:first-child { border-top: 0; }
.feed-body { min-width: 0; flex: 1; }
.feed-text { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.feed-meta { font-size: 12px; color: var(--label-2); margin-top: 3px; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--sep); }
.composer input { flex: 1; min-width: 0; height: 36px; border-radius: 18px; border: 0; background: var(--bg-3); padding: 0 14px; font-size: 15px; }
.composer select { height: 36px; max-width: 150px; border-radius: 18px; border: 0; background: var(--bg-3); padding: 0 10px; font-size: 13px; color: var(--label-2); }
.send-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: #fff; display: grid; place-items: center; flex: none; }
.send-btn .ic { width: 18px; height: 18px; stroke-width: 2.4; }

/* ---------- Acasă ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.tile { background: var(--bg-2); border-radius: 16px; padding: 14px 16px 16px; box-shadow: var(--shadow-1); min-width: 0; }
.tile-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.tile-val { font: 700 30px/1.15 var(--font-rounded); letter-spacing: -0.02em; margin-top: 8px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sub { font-size: 13px; color: var(--label-2); margin-top: 2px; }
.tile-sub.warn { color: var(--red); font-weight: 500; }
.inv-row { cursor: default; }
.inv-nums { display: flex; gap: 18px; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.inv-nums span { display: flex; flex-direction: column; min-width: 34px; }
.inv-nums b { font: 700 20px/1.1 var(--font-rounded); }
.inv-nums small { font-size: 11px; color: var(--label-2); }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-grid .col { min-width: 0; }

/* lista zilei */
.today { margin: 4px 0 26px; }
.today-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 4px 10px; }
.today-title h2 { font: 700 24px/1.2 var(--font-display); letter-spacing: -0.02em; }
.today-who { color: var(--label-2); font-weight: 600; }
.today-title p { font-size: 13px; color: var(--label-2); margin-top: 2px; }
.today-nav { display: flex; align-items: center; gap: 4px; }
.today-nav .seg { margin-right: 6px; }
.pill-btn { height: 30px; padding: 0 12px; border-radius: 15px; background: color-mix(in srgb, var(--tint) 12%, transparent); color: var(--tint); font-size: 13px; font-weight: 600; }
.add-task input#todo-new { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; height: 28px; }
.warn-text { color: var(--orange); font-weight: 500; }
.by-claude { color: #D97757; font-weight: 500; }
.inline-link.muted { color: var(--label-2); }

/* ---------- Proiecte: stadii ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(172px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: color-mix(in srgb, var(--label) 3.5%, transparent); border-radius: 16px; padding: 10px; min-height: 140px; transition: background .15s, box-shadow .15s; }
.kcol.over { background: color-mix(in srgb, var(--tint) 9%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tint) 40%, transparent); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-size: 14px; font-weight: 600; }
.kcol-head .count { margin-left: auto; color: var(--label-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.kcol-list { display: flex; flex-direction: column; gap: 10px; }
.kcol-empty { font-size: 13px; color: var(--label-3); text-align: center; padding: 20px 8px; border: 1.5px dashed var(--sep); border-radius: 12px; }
.pcard { background: var(--bg-2); border-radius: 14px; padding: 12px 14px 11px; box-shadow: var(--shadow-1), 0 0 0 .5px var(--card-border); cursor: pointer; transition: box-shadow .2s, transform .2s, opacity .2s; }
.pcard.dragging { opacity: .4; }
.pc-title { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.pc-sub { font-size: 13px; color: var(--label-2); margin-top: 2px; }
.pc-next { font-size: 13px; line-height: 1.4; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; align-items: center; gap: 8px; }
.pc-pct { font-size: 12px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.stage-list { display: none; }

/* ---------- Proiecte: termene ---------- */
.card { background: var(--bg-2); border-radius: 16px; box-shadow: var(--shadow-1); }
.tl { overflow-x: auto; padding: 8px 0 4px; }
.tl-grid { position: relative; min-width: 920px; padding-top: 22px; }
.tl-head { display: grid; margin-left: var(--tl-name); font-size: 11px; color: var(--label-2); padding: 0 0 8px; border-bottom: 1px solid var(--sep); font-variant-numeric: tabular-nums; }
.tl-head span { white-space: nowrap; overflow: visible; }
.tl-row { display: grid; grid-template-columns: var(--tl-name) 1fr; align-items: stretch; border-bottom: 1px solid var(--sep); min-height: 56px; }
.tl-row:last-child { border-bottom: 0; }
.tl-name { position: sticky; left: 0; z-index: 3; background: var(--bg-2); text-align: left; padding: 8px 14px 8px 18px; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.tl-name b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-name small { font-size: 12px; color: var(--label-2); }
.tl-track { position: relative; }
.tl-bar { position: absolute; top: 16px; height: 24px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--c) 22%, transparent); min-width: 10px; text-align: left; }
.tl-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); border-radius: 12px; opacity: .9; }
.tl-bar span { position: relative; font-size: 11px; font-weight: 700; line-height: 24px; padding: 0 9px; color: var(--label); }
.tl-bar.open { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--c) 18%, transparent) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.tl-today { position: absolute; top: 22px; bottom: 0; width: 2px; margin-left: -1px; background: var(--red); z-index: 2; pointer-events: none; }
.tl-today span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #fff; background: var(--red); padding: 1px 7px; border-radius: 6px; }

/* ---------- Notițe ---------- */
.split { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: 100vh; }
.list-pane { border-right: 1px solid var(--sep); overflow-y: auto; background: var(--bg); }
.list-pane .topbar { padding: 22px 18px 10px; }
.list-pane .topbar h1 { font-size: 28px; }
.list-scroll { padding: 0 14px 28px; }
.list-scroll .search { max-width: none; }
.list-pane .group { margin-top: 20px; }
.list-pane .group-title { font-size: 15px; margin-bottom: 6px; }
.nrow { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; text-decoration: none; color: var(--label); position: relative; transition: background .12s; }
.nrow + .nrow::before { content: ""; position: absolute; top: 0; left: 32px; right: 0; height: 1px; background: var(--sep); }
.nrow.on { background: color-mix(in srgb, var(--tint) 13%, transparent); }
.nrow.on + .nrow::before, .nrow.on::before { opacity: 0; }
.nrow .dot { margin-top: 6px; }
.nrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nrow-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nrow-sub { font-size: 13px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nrow-sub b { font-weight: 500; color: var(--label); margin-right: 4px; }
.nrow-tags { font-size: 12px; color: var(--tint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-pane { overflow-y: auto; background: var(--bg-2); min-width: 0; }
.pane-empty { height: 100%; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--label-2); text-align: center; padding: 24px; }
.pane-empty > .ic { width: 46px; height: 46px; color: var(--label-3); }

/* editorul */
.ne { display: flex; flex-direction: column; min-height: 100%; background: var(--bg-2); }
.ne-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: var(--material); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); }
.ne-status { font-size: 12px; color: var(--label-2); margin-right: 6px; white-space: nowrap; }
.ne-done { margin-left: 6px; }
.back-btn { display: inline-flex; align-items: center; gap: 1px; color: var(--tint); font-size: 16px; text-decoration: none; margin-left: -6px; }
.back-btn .ic { width: 22px; height: 22px; }
.split .ne .back-btn { display: none; }
.ne-scroll { width: 100%; max-width: 780px; margin: 0 auto; padding: 6px 44px 72px; }
.ne-date { text-align: center; font-size: 12px; color: var(--label-2); margin: 4px 0 16px; }
.ne-remote { background: color-mix(in srgb, var(--orange) 15%, transparent); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.ne-title { display: block; width: 100%; border: 0; background: transparent; font: 700 30px/1.2 var(--font-display); letter-spacing: -0.022em; padding: 0; }
.ne-title::placeholder { color: var(--label-3); }
.ne-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 20px; }
.meta-chip { height: 28px; border-radius: 14px; padding: 0 10px; background: var(--fill); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; max-width: 260px; color: var(--label); }
.meta-chip .ic { width: 14px; height: 14px; color: var(--label-2); }
.meta-chip .ell { min-width: 0; }
.meta-chip.tag { color: var(--tint); background: color-mix(in srgb, var(--tint) 11%, transparent); padding-right: 4px; }
.meta-chip .x { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.meta-chip .x .ic { width: 12px; height: 12px; color: var(--tint); }
.tag-input { border: 0; background: transparent; font-size: 13px; width: 110px; height: 28px; padding: 0 6px; }
.ne-text { display: block; width: 100%; border: 0; resize: none; background: transparent; font: 17px/1.6 var(--font); min-height: 180px; padding: 0; overflow: hidden; }
.ne-text::placeholder { color: var(--label-3); }
.md { font-size: 17px; line-height: 1.6; cursor: text; min-height: 120px; overflow-wrap: anywhere; }
.md > *:first-child { margin-top: 0; }
.md h2 { font: 700 23px/1.3 var(--font-display); letter-spacing: -0.018em; margin: 24px 0 8px; }
.md h3 { font: 700 19px/1.3 var(--font-display); margin: 20px 0 6px; }
.md h4 { font-size: 17px; font-weight: 700; margin: 16px 0 4px; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 24px; }
.md li { margin: 3px 0; }
.md li.todo { list-style: none; margin-left: -24px; display: flex; gap: 10px; align-items: flex-start; }
.md .cb { width: 21px; height: 21px; border-radius: 50%; border: 1.6px solid var(--label-3); flex: none; margin-top: 3px; cursor: pointer; position: relative; transition: background .15s, border-color .15s; }
.md li.done .cb { background: var(--tint); border-color: var(--tint); }
.md li.done .cb::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.md li.done > span:last-child { color: var(--label-2); text-decoration: line-through; }
.md a { color: var(--tint); text-decoration: none; }
.md a:hover { text-decoration: underline; }
.md a.wl { background: color-mix(in srgb, var(--tint) 11%, transparent); border-radius: 6px; padding: 0 5px; font-weight: 500; cursor: pointer; }
.md a.wl:hover { text-decoration: none; background: color-mix(in srgb, var(--tint) 18%, transparent); }
.md a.wl-missing { color: var(--label-2); background: transparent; border-bottom: 1.5px dashed var(--label-3); border-radius: 0; padding: 0; }
.md code { font: .88em var(--mono); background: var(--fill); padding: 1px 5px; border-radius: 5px; }
.md pre { background: var(--fill-2); padding: 12px 14px; border-radius: 10px; overflow: auto; margin: 0 0 12px; }
.md pre code { background: none; padding: 0; font-size: 14px; }
.md blockquote { border-left: 3px solid var(--tint); padding-left: 12px; color: var(--label-2); margin: 0 0 12px; }
.md hr { border: 0; height: 1px; background: var(--sep); margin: 20px 0; }
.md img { max-width: 100%; border-radius: 10px; }
.md .placeholder { color: var(--label-3); }
.ne-ac { position: sticky; bottom: 14px; z-index: 6; background: var(--bg-2); border-radius: 12px; box-shadow: var(--shadow-3), 0 0 0 .5px var(--sep); padding: 6px; margin-top: 10px; }
.ac-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 15px; }
.ac-item.on { background: var(--tint); color: #fff; }
.ac-hint { font-size: 13px; color: var(--label-2); padding: 8px 10px; }
.ne-links:not(:empty) { margin-top: 40px; border-top: 1px solid var(--sep); padding-top: 6px; }
.ne-sec h4 { font-size: 13px; font-weight: 600; color: var(--label-2); margin: 14px 0 8px; }
.ne-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--fill); font-size: 14px; color: var(--label); text-decoration: none; max-width: 100%; }
.link-chip .ic { width: 14px; height: 14px; color: var(--label-2); }
.link-chip.missing { color: var(--label-2); background: transparent; box-shadow: inset 0 0 0 1px var(--sep); }

/* ---------- Table: listă ---------- */
.btiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 6px; }
.btile { display: block; text-decoration: none; color: var(--label); }
.btile-prev { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background-color: var(--bg-2); background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.3px); background-size: 14px 14px; box-shadow: var(--shadow-1), 0 0 0 .5px var(--card-border); transition: box-shadow .2s; display: grid; place-items: center; }
.btile-prev svg { width: 100%; height: 100%; display: block; }
.btile-prev.empty span { color: var(--label-3); font-size: 13px; }
.pv-card { fill: var(--bg-2); stroke: var(--sep-opaque); stroke-width: 2; }
.pv-text { fill: var(--fill); }
.pv-line { stroke: var(--edge); stroke-width: 4; }
.btile-meta { padding: 10px 4px 0; }
.btile-meta b { display: block; font-size: 15px; font-weight: 600; }
.btile-meta small { display: block; font-size: 13px; color: var(--label-2); margin-top: 1px; }

/* ---------- Table: pânza ---------- */
.bd { position: relative; height: 100vh; overflow: hidden; background: var(--bg); }
.bd-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--material); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); border-bottom: 1px solid var(--sep); }
.bd-name { font-size: 17px; font-weight: 600; border: 0; background: transparent; padding: 4px 8px; border-radius: 8px; min-width: 120px; max-width: 50vw; }
.bd-name:focus { background: var(--fill); }
.bd-canvas { position: absolute; inset: 0; overflow: hidden; touch-action: none; background-color: var(--bg); background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.2px); background-size: 22px 22px; user-select: none; -webkit-user-select: none; }
.bd-canvas.panning { cursor: grabbing; }
.bd-canvas.link-mode { cursor: crosshair; }
.bd-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.bd-svg { position: absolute; overflow: visible; pointer-events: none; }
.bd-svg .hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.bd-svg .line { fill: none; stroke: var(--edge); stroke-width: 2; }
.bd-svg .edge.on .line { stroke: var(--tint); stroke-width: 2.6; }
.bd-svg .arr { fill: none; stroke: var(--edge); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bd-svg .arr.on { stroke: var(--tint); }
.bd-svg .temp { fill: none; stroke: var(--tint); stroke-width: 2; stroke-dasharray: 6 5; }
.bd-labels, .bd-cards { position: absolute; left: 0; top: 0; }
.edge-label { position: absolute; transform: translate(-50%, -50%); background: var(--bg-2); border-radius: 10px; padding: 2px 9px; font-size: 12px; font-weight: 500; color: var(--label-2); white-space: nowrap; box-shadow: 0 0 0 1px var(--sep); cursor: pointer; }
.edge-label.on { color: var(--tint); box-shadow: 0 0 0 1.5px var(--tint); }
.cd { position: absolute; background: var(--bg-2); border-radius: 16px; padding: 12px 14px 14px; box-shadow: var(--shadow-2), 0 0 0 1px var(--card-border); cursor: grab; transition: box-shadow .2s, transform .15s; }
.cd.sel { box-shadow: 0 0 0 2.5px var(--tint), var(--shadow-2); }
.cd.lift { transform: scale(1.03); box-shadow: var(--shadow-3); cursor: grabbing; }
.cd.linking { outline: 2.5px dashed var(--tint); outline-offset: 4px; }
.cd.target { outline: 2.5px solid var(--tint); outline-offset: 4px; }
.cd.editing { cursor: default; box-shadow: 0 0 0 2.5px var(--tint), var(--shadow-2); }
.cd-type { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--label-2); margin-bottom: 6px; }
.cd-type .dot { width: 7px; height: 7px; }
.cd-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cd-text { font-size: 13px; line-height: 1.45; color: var(--label-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cd-tags { font-size: 12px; color: var(--tint); margin-top: 8px; }
.cd-input { width: 100%; border: 0; background: transparent; font-size: 15.5px; font-weight: 600; padding: 2px 0; }
.cd-hint { font-size: 11px; color: var(--label-3); margin-top: 6px; }
.cd-handle { position: absolute; right: -8px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 50%; background: var(--bg-2); border: 2.5px solid var(--tint); opacity: 0; cursor: crosshair; transition: opacity .15s, transform .15s; }
.cd-handle:hover { transform: scale(1.25); }
.cd.sel .cd-handle { opacity: 1; }
@media (hover: none) { .cd-handle { display: none; } }
.bd-empty { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); text-align: center; color: var(--label-2); display: flex; flex-direction: column; gap: 4px; pointer-events: none; max-width: 300px; }
.bd-empty b { color: var(--label); font-size: 17px; }
.bd-hint { position: absolute; top: 68px; left: 50%; transform: translateX(-50%); z-index: 12; background: var(--label); color: var(--bg-2); padding: 8px 14px; border-radius: 18px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-2); white-space: nowrap; }
.bd-selbar { position: absolute; z-index: 11; transform: translate(-50%, -100%); display: flex; gap: 2px; padding: 4px; background: var(--material-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 12px; box-shadow: var(--shadow-2), 0 0 0 .5px var(--sep); }
.bd-selbar button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.bd-selbar button .ic { width: 16px; height: 16px; color: var(--tint); }
.bd-selbar .destructive, .bd-selbar .destructive .ic { color: var(--red); }
.bd-tools { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 2px; padding: 6px; background: var(--material); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); border-radius: 18px; box-shadow: var(--shadow-2), 0 0 0 .5px var(--sep); }
.tool { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 12px; border-radius: 12px; font-size: 11px; font-weight: 500; min-width: 66px; }
.tool .ic { width: 22px; height: 22px; color: var(--tint); }
.tool.on { background: var(--tint); color: #fff; }
.tool.on .ic { color: #fff; }
.bd-zoom { position: absolute; left: 20px; bottom: 20px; z-index: 10; display: flex; align-items: center; background: var(--material); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 12px; box-shadow: var(--shadow-2), 0 0 0 .5px var(--sep); padding: 3px; }
.bd-zoom button { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--tint); }
.bd-zoom button .ic { width: 16px; height: 16px; }
.bd-zoom span { font-size: 12px; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; color: var(--label-2); }

/* ---------- Colaboratori ---------- */
.plogo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font: 700 12px var(--font-rounded); flex: none; }
.type-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); white-space: nowrap; flex: none; }
.type-badge.unset { color: var(--label-2); background: var(--fill-2); }
.pill.green { color: var(--green); background: color-mix(in srgb, var(--green) 13%, transparent); }
.chart { padding: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 280px) 1fr 34px; align-items: center; gap: 16px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; transition: background .12s; }
.bar-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bar-text b { font-size: 15px; font-weight: 600; }
.bar-text small { font-size: 12px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar { display: flex; height: 14px; border-radius: 7px; background: var(--fill-2); overflow: hidden; }
.hbar i { display: block; height: 100%; transition: width .5s var(--ease); }
.hbar i.off { opacity: .3; }
.bar-num { font: 700 19px var(--font-rounded); text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: inline-flex; align-items: center; gap: 5px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--label-2); margin-left: 8px; }
.lg.off { opacity: .3; }
.sheet-hint { font-size: 13px; color: var(--label-2); margin: -10px 4px 18px; line-height: 1.4; }
.form-row .unit { color: var(--label-2); }
.row.summary { background: var(--fill-2); cursor: default; }
.form-row .meta-chip { margin-left: auto; max-width: 60%; }
@media (hover: hover) { .bar-row:hover { background: var(--fill-2); } }

/* ---------- sheet-uri ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0); transition: background .3s; pointer-events: none; }
.sheet-wrap.on { background: rgba(0,0,0,.32); pointer-events: auto; }
.sheet { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 64px); background: var(--bg); border-radius: 14px; box-shadow: var(--shadow-3); overflow: auto; transform: translateY(26px) scale(.98); opacity: 0; transition: transform .38s var(--ease), opacity .25s; overscroll-behavior: contain; }
.sheet-wrap.wide .sheet { width: min(820px, calc(100vw - 32px)); background: var(--bg-2); height: min(860px, calc(100vh - 64px)); }
.sheet-wrap.on .sheet { transform: none; opacity: 1; }
.sheet-grab { display: none; }
.sheet .ne { min-height: 100%; }
.sh-nav { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 16px; background: var(--material); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); border-bottom: 1px solid var(--sep); }
.sh-nav > :first-child { justify-self: start; }
.sh-nav > :last-child { justify-self: end; }
.sh-title { font-weight: 600; font-size: 16px; text-align: center; }
.sh-body { padding: 18px 20px 28px; }
.sh-body > .search { max-width: none; margin-bottom: 14px; }
.big-input { display: block; width: 100%; border: 0; background: transparent; font: 700 26px/1.2 var(--font-display); letter-spacing: -0.02em; padding: 2px 2px; resize: none; overflow: hidden; min-height: 36px; }
.big-input::placeholder, .sub-input::placeholder { color: var(--label-3); }
.sub-input { display: block; width: 100%; border: 0; background: transparent; font-size: 16px; color: var(--label-2); padding: 4px 2px 16px; }
.form-group { background: var(--bg-2); border-radius: 12px; overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-1); }
.form-group.padded { padding: 0 16px; }
.form-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 46px; position: relative; }
.form-row + .form-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.form-row label { font-size: 15px; min-width: 110px; flex: none; }
.form-row label b { color: var(--tint); margin-left: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.form-row input:not([type=range]), .form-row textarea { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; text-align: right; }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--label-3); }
.form-row.col { flex-direction: column; align-items: stretch; gap: 6px; }
.form-row.col label { min-width: 0; }
.form-row.col textarea { text-align: left; resize: vertical; line-height: 1.45; }
.form-row input[type=date] { color: var(--label); text-align: right; min-height: 26px; }
.form-row input[type=range] { width: 100%; accent-color: var(--tint); }
.form-row .seg { flex: none; }
.sec-title { font-size: 13px; font-weight: 600; color: var(--label-2); margin: 0 4px 8px; }
.sh-foot { font-size: 12px; color: var(--label-2); text-align: center; margin-top: 16px; min-height: 16px; }
.add-task { gap: 10px; }
.add-task input#task-new { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; }
.add-task select, .add-task input[type=date] { font-size: 13px; color: var(--label-2); background: var(--fill-2); border: 0; border-radius: 8px; padding: 5px 6px; flex: none; }
.add-task input[type=date] { width: 132px; }

/* ---------- alerte și meniuri ---------- */
.alert-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0); transition: background .2s; }
.alert-wrap.on { background: rgba(0,0,0,.28); }
.alert { width: 290px; background: var(--alert-bg); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); border-radius: 14px; overflow: hidden; text-align: center; transform: scale(1.08); opacity: 0; transition: transform .25s var(--ease), opacity .2s; box-shadow: var(--shadow-3); }
.alert-wrap.on .alert { transform: none; opacity: 1; }
.alert-body { padding: 20px 16px 16px; }
.alert-body h3 { font-size: 17px; font-weight: 600; }
.alert-body p { font-size: 13px; margin-top: 4px; line-height: 1.4; }
.alert-input { width: 100%; margin-top: 14px; height: 34px; border-radius: 8px; border: 1px solid var(--sep); padding: 0 10px; background: var(--bg-2); font-size: 15px; }
.alert-btns { display: flex; border-top: 1px solid var(--sep); }
.alert-btns button { flex: 1; height: 46px; font-size: 17px; color: var(--tint); }
.alert-btns button + button { border-left: 1px solid var(--sep); }
.alert-btns .strong { font-weight: 600; }
.alert-btns .destructive { color: var(--red); font-weight: 600; }
.menu-wrap { position: fixed; inset: 0; z-index: 90; }
.menu { position: absolute; min-width: 220px; max-height: 60vh; overflow-y: auto; background: var(--alert-bg); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); border-radius: 12px; box-shadow: var(--shadow-3), 0 0 0 .5px var(--sep); padding: 5px; opacity: 0; transform: scale(.96); transform-origin: top right; transition: opacity .15s, transform .15s; }
.menu-wrap.on .menu { opacity: 1; transform: none; }
.menu-title { font-size: 12px; color: var(--label-2); padding: 6px 10px 4px; font-weight: 600; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; font-size: 14px; text-align: left; color: var(--label); }
.menu-item .ic { width: 17px; height: 17px; color: var(--label-2); }
.menu-item .dot { margin: 0 4px; }
.menu-item.destructive, .menu-item.destructive .ic { color: var(--red); }
.menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-check { color: var(--tint); }
.menu-check .ic { width: 16px; height: 16px; color: inherit; }
.menu-cancel { display: none; }

/* ---------- toast ---------- */
.toast { position: fixed; top: 14px; left: 50%; z-index: 200; transform: translate(-50%, -160%); opacity: 0; background: var(--material-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--label); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-2), 0 0 0 .5px var(--sep); font-size: 14px; font-weight: 500; transition: transform .4s var(--ease), opacity .3s; max-width: calc(100vw - 32px); text-align: center; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast.err { color: var(--red); }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(380px, 100%); text-align: center; }
.auth-card h1 { font: 700 28px var(--font-display); letter-spacing: -0.02em; }
.auth-sub { color: var(--label-2); margin: 6px 0 24px; font-size: 15px; line-height: 1.45; }
.field-group { background: var(--bg-2); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1); text-align: left; }
.field-group input { display: block; width: 100%; height: 50px; border: 0; padding: 0 16px; font-size: 17px; background: transparent; }
.field-group input + input { border-top: 1px solid var(--sep); }
.auth-msg { min-height: 20px; font-size: 14px; margin: 12px 0; line-height: 1.4; color: var(--label-2); }
.auth-msg.err { color: var(--red); }
.auth-msg.ok { color: var(--green); }
.auth-links { display: flex; justify-content: center; gap: 18px; margin-top: 18px; }
.auth-links .link-btn { font-size: 15px; }

/* ================= TELEFON ================= */
@media (max-width: 899px) {
  body { font-size: 16px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 7px 0 calc(6px + env(safe-area-inset-bottom)); background: var(--material); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); border-top: 1px solid var(--sep); }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--gray); text-decoration: none; }
  .tab .ic { width: 25px; height: 25px; }
  .tab.on { color: var(--tint); }
  .main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .main.has-id { padding-bottom: 0; }
  .main.has-id ~ .tabbar { display: none; }
  .demo-chip { bottom: calc(70px + env(safe-area-inset-bottom)); right: 10px; }
  .main.has-id ~ .demo-chip { bottom: 10px; }

  .topbar { padding: calc(12px + env(safe-area-inset-top)) 16px 10px; }
  .topbar h1 { font-size: 30px; }
  .tb-text p { font-size: 14px; }
  .page { padding: 2px 16px 24px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px 14px 14px; }
  .tile-val { font-size: 24px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .row-title { font-size: 16px; }
  .composer select { max-width: 110px; }

  .scr-projects .topbar { align-items: center; }
  .scr-projects .tb-actions { width: 100%; justify-content: space-between; }
  .toolbar { gap: 10px; margin-bottom: 6px; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .kanban { display: none; }
  .stage-list { display: block; }
  .stage-list .group:first-child { margin-top: 12px; }
  .stage-list .row { align-items: center; }
  :root { --tl-name: 140px; }
  .tl-grid { min-width: 720px; }
  .tl-name b { font-size: 13px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

  .split { grid-template-columns: minmax(0, 1fr); height: auto; }
  .list-pane { border-right: 0; overflow: visible; }
  .list-pane .topbar { padding: calc(12px + env(safe-area-inset-top)) 16px 10px; }
  .list-scroll { padding: 0 16px 24px; }
  .note-pane { display: none; }
  .scr-notes.has-id .list-pane { display: none; }
  .scr-notes.has-id .note-pane { display: block; min-height: 100vh; }
  .split .ne .back-btn { display: inline-flex; }
  .ne-bar { padding: calc(8px + env(safe-area-inset-top)) 10px 8px; }
  .ne-scroll { padding: 4px 18px 120px; }
  .ne-title { font-size: 27px; }
  .md, .ne-text { font-size: 17px; }

  .btiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .bar-row { grid-template-columns: minmax(0, 1fr) 84px 26px; gap: 10px; padding: 10px 8px; }
  .row .type-badge { display: none; }
  .bd { height: 100vh; height: 100dvh; }
  .bd-top { padding: calc(8px + env(safe-area-inset-top)) 10px 8px; }
  .bd-tools { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .tool { min-width: 0; padding: 6px 9px; font-size: 10px; }
  .tool span { white-space: nowrap; }
  .big-input { font-size: 23px; }
  .bd-zoom { display: none; }

  .sheet-wrap { align-items: flex-end; }
  .sheet, .sheet-wrap.wide .sheet { width: 100%; max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); height: calc(100dvh - 36px); border-radius: 14px 14px 0 0; transform: translateY(100%); opacity: 1; }
  .sheet-grab { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--label-3); margin: 6px auto 0; position: absolute; left: 50%; transform: translateX(-50%); z-index: 4; }
  .sheet { position: relative; }
  .sh-nav { padding-top: 14px; }
  .sh-body { padding: 14px 16px calc(32px + env(safe-area-inset-bottom)); }
  .form-row label { min-width: 92px; }
  .seg.stages .seg-btn { font-size: 12px; padding: 7px 2px; gap: 4px; }
  .seg.stages .dot { display: none; }
  .add-task { flex-wrap: wrap; }
  .add-task input#task-new { flex-basis: calc(100% - 40px); }

  .menu-wrap.sheet-style { display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(0,0,0,0); transition: background .25s; }
  .menu-wrap.sheet-style.on { background: rgba(0,0,0,.3); }
  .sheet-style .menu { position: static; width: 100%; max-height: 70vh; border-radius: 14px; padding: 0; transform: translateY(110%); opacity: 1; transition: transform .35s var(--ease); }
  .sheet-style.on .menu { transform: none; }
  .sheet-style .menu-title { text-align: center; padding: 12px 16px 8px; font-size: 13px; }
  .sheet-style .menu-item { padding: 16px 18px; font-size: 17px; border-radius: 0; position: relative; }
  .sheet-style .menu-item + .menu-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--sep); }
  .sheet-style .menu-item .ic { width: 22px; height: 22px; color: var(--tint); }
  .sheet-style .menu-item.destructive .ic { color: var(--red); }
  .menu-cancel { display: block; margin-top: 8px; height: 56px; width: 100%; border-radius: 14px; background: var(--bg-2); font-size: 17px; font-weight: 600; color: var(--tint); transform: translateY(150%); transition: transform .35s var(--ease); }
  .sheet-style.on .menu-cancel { transform: none; }
  .toast { top: calc(10px + env(safe-area-inset-top)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
