/* Genau Media — Task List */
:root {
  --bg: #0f1114;
  --side: #111317;
  --main: #15171b;
  --cell: #1a1d22;
  --grid: #0f1114;
  --line: #272b33;
  --text: #eceef2;
  --text-2: #9aa0aa;
  --text-3: #7d838e;
  --today: oklch(0.86 0.12 85);
  --row-h: 36px;
  --cols: 40px minmax(280px, 1fr) 44px 80px 140px 124px 136px 100px 100px 112px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
input, textarea { font: inherit; }
input::placeholder, textarea::placeholder { color: #686e79; }
::selection { background: #3a4152; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2b2f37; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }

.ms { font-family: 'Material Symbols Rounded'; font-size: 18px; line-height: 1; font-weight: normal; font-style: normal; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; user-select: none; flex: none; font-feature-settings: 'liga'; }
.muted { color: var(--text-3); }

.app { height: 100vh; display: flex; font-size: 13px; overflow: hidden; background: var(--bg); }
.app.comfortable { --row-h: 44px; }

/* Avatars */
.av { border-radius: 50%; color: #111317; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.av20 { width: 20px; height: 20px; font-size: 8.5px; }
.av22 { width: 22px; height: 22px; font-size: 9.5px; }
.av24 { width: 24px; height: 24px; font-size: 10px; }
.av26 { width: 26px; height: 26px; font-size: 10px; }
.av28 { width: 28px; height: 28px; font-size: 10px; }

.icon-btn { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #8d939e; flex: none; }
.icon-btn:hover { background: #1f2228; color: var(--text); }
.icon-btn.lg { width: 32px; height: 32px; border-radius: 8px; color: var(--text-2); }
.icon-btn.lg .ms { font-size: 20px; }
.pill-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--text); color: #111317; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* Sidebar */
.sidebar { flex: none; width: 248px; overflow: hidden; background: var(--side); border-right: 1px solid #1d2026; transition: width .26s var(--ease); }
.app.side-closed .sidebar { width: 0; border-right-color: transparent; }
.side-inner { width: 248px; height: 100%; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 12px; overflow-y: auto; }
.ws { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; }
.ws-mark { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--text); color: #111317; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; letter-spacing: -0.04em; padding-bottom: 2px; }
.ws-name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.nav { width: 100%; height: 32px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 8px; border-radius: 7px; color: #c9cdd4; }
.nav:hover { background: rgba(255, 255, 255, 0.045); }
.nav.active { background: #23262e; color: #f2f3f5; }
.nav .ms { color: #8d939e; }
.nav.client { height: 30px; }
.nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sw { width: 9px; height: 9px; margin: 0 4.5px; border-radius: 2px; flex: none; }
.side-h { padding: 18px 8px 6px; font-size: 11.5px; font-weight: 500; color: #6f7581; }
.side-fill { flex: 1; min-height: 16px; }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 10px 4px 0 8px; border-top: 1px solid #1d2026; }
.side-user { flex: 1; font-size: 12.5px; color: #c9cdd4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Main + header */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--main); }
.board-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.titles { display: flex; flex-direction: column; min-width: 0; }
.crumb { font-size: 12px; color: var(--text-3); }
.title-row { display: flex; align-items: center; gap: 6px; }
h1 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.star .ms { color: var(--text-3); }
.star.on .ms { color: var(--today); font-variation-settings: 'FILL' 1; }

/* Toolbar */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 20px 12px; }
.btn-primary { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 8px; border-radius: 8px; background: var(--text); color: #111317; font-weight: 600; }
.btn-primary:hover { background: #fff; }
.search { height: 32px; width: 220px; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #111317; }
.search:focus-within { border-color: #4a505b; }
.search .ms { font-size: 17px; }
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; color: var(--text); font-size: 13px; }
.mini-x { width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #8d939e; }
.mini-x .ms { font-size: 15px; }
.mini-x:hover { background: #23262e; color: var(--text); }
.people { display: flex; align-items: center; padding-left: 6px; }
.person { width: 28px; height: 28px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--main); color: #111317; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: opacity .15s, transform .15s; }
.person.dim { opacity: .4; }
.person.on { box-shadow: 0 0 0 1.5px var(--text); }
.person:hover { opacity: 1; transform: translateY(-1px); }
.vdiv { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.tbtn { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 8px; border-radius: 8px; border: 1px solid var(--line); color: #d9dce1; }
.tbtn:hover { background: rgba(255, 255, 255, 0.045); }
.tbtn.active { background: #23262e; border-color: #3a3f49; }
.tbtn .ms { color: var(--text-2); }
.tdot { color: #6f7581; }
.tval { color: #f2f3f5; font-weight: 500; }
.spacer { flex: 1; }
.count { font-size: 12.5px; color: #8a909b; font-variant-numeric: tabular-nums; }

/* Active filter chips */
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px; }
.chips:empty { display: none; }
.chip { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; border-radius: 999px; background: #1f2228; border: 1px solid #2c3039; font-size: 12px; color: #d9dce1; }
.chip-x { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #8d939e; }
.chip-x .ms { font-size: 14px; }
.chip-x:hover { background: #2c3039; color: var(--text); }
.link-btn { height: 26px; padding: 0 8px; font-size: 12px; color: #8d939e; }
.link-btn:hover { color: var(--text); }

/* Table */
.table-wrap { flex: 1; min-height: 0; overflow: auto; margin: 0 20px 20px; border: 1px solid #22252c; border-radius: 10px; background: var(--grid); }
.table { min-width: 1156px; }
.thead, .row, .addrow { display: grid; grid-template-columns: var(--cols); }
.thead { position: sticky; top: 0; z-index: 3; height: 36px; background: var(--main); border-bottom: 1px solid var(--grid); color: var(--text-2); font-size: 12px; font-weight: 500; }
.c { display: flex; align-items: center; min-width: 0; border-right: 1px solid var(--grid); }
.c:last-child { border-right: 0; }
.center { justify-content: center; }
.pad { padding: 0 12px; }
.sticky0 { position: sticky; left: 0; z-index: 1; background: inherit; justify-content: center; }
.sticky1 { position: sticky; left: 40px; z-index: 1; background: inherit; }
.hsort { display: flex; align-items: center; gap: 4px; height: 24px; }
.hsort:hover { color: var(--text); }
.hsort .ms { font-size: 14px; opacity: 0; }
.hsort.on .ms { opacity: 1; }

.row { height: var(--row-h); background-color: var(--cell); border-bottom: 1px solid var(--grid); }
.row.is-open { background-color: #20242b; }
.row.is-selected { background-color: #212635; }
.row:hover { background-image: linear-gradient(rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.035)); }

.cb { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #4a4f59; display: flex; align-items: center; justify-content: center; color: #111317; }
.cb .ms { font-size: 14px; opacity: 0; font-variation-settings: 'wght' 600; }
.cb:hover { border-color: #8b919c; }
.cb.on { background: var(--text); border-color: var(--text); }
.cb.on .ms { opacity: 1; }

.c-task { gap: 8px; padding: 0 8px 0 12px; cursor: pointer; }
.task-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e6e8ec; }
.open-pill { flex: none; height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 7px 0 5px; border-radius: 6px; border: 1px solid #343842; color: #b4b9c2; font-size: 11.5px; opacity: 0; transition: opacity .12s; }
.open-pill .ms { font-size: 14px; }
.row:hover .open-pill { opacity: 1; }

.upd { position: relative; width: 32px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #8d939e; }
.upd:hover { background: rgba(255, 255, 255, 0.07); }
.upd.unread { color: var(--text); }
.upd-badge { position: absolute; right: 0; bottom: 1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #3a3f49; color: #d0d3d9; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.upd.unread .upd-badge { background: var(--text); color: #111317; }
.upd-add { opacity: .3; transition: opacity .12s; }
.row:hover .upd-add { opacity: .8; }

.hov { cursor: pointer; }
.hov:hover { background: rgba(255, 255, 255, 0.04); }
.fill { justify-content: center; padding: 0 8px; cursor: pointer; font-size: 12.5px; font-weight: 500; }
.fill:hover { filter: brightness(1.08); }
.fill.client { letter-spacing: 0.01em; }
.fill.client:hover { filter: brightness(1.12); }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-date { justify-content: center; font-variant-numeric: tabular-nums; }
.c-created { gap: 8px; padding: 0 12px; color: #a4a9b4; font-variant-numeric: tabular-nums; }

.addrow { height: var(--row-h); background: #16181d; border-bottom: 1px solid var(--grid); }
.addrow .sticky1 { padding: 0 12px; }
.addrow input { width: 100%; height: 100%; background: transparent; border: 0; outline: none; color: var(--text); font-size: 13px; }
.addrow .rest { grid-column: 3 / -1; }

.ghead { display: flex; align-items: center; height: 46px; padding-top: 6px; }
.ghead-in { position: sticky; left: 0; display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.gtoggle { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #a4a9b4; }
.gtoggle .ms { font-size: 20px; }
.gtoggle:hover { background: #1f2228; color: var(--text); }
.gsw { flex: none; color: #111317; font-size: 9.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.glabel { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; }
.gcount { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.gdue { font-size: 12px; color: var(--today); white-space: nowrap; }
.gspace { height: 16px; }

.empty { position: sticky; left: 0; width: 420px; max-width: 100%; padding: 56px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.empty .ms { font-size: 24px; color: #6f7581; }
.empty-title { font-size: 15px; font-weight: 600; }
.empty-sub { color: #8a909b; line-height: 1.5; }
.btn-ghost { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid #2c3039; color: var(--text); margin-top: 6px; }
.btn-ghost:hover { background: #1f2228; }

/* Drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100vw; z-index: 40; display: flex; flex-direction: column; background: #16181d; border-left: 1px solid #262a31; transform: translateX(104%); transition: transform .3s var(--ease); }
.drawer.open { transform: none; box-shadow: -30px 0 60px rgba(0, 0, 0, 0.35); }
.dr-head { flex: none; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 20px; border-bottom: 1px solid #22252c; }
.dr-code { font-family: 'Geist Mono', monospace; font-size: 12px; color: #8a909b; }
.dr-crumb { font-size: 12px; color: #8a909b; }
.dr-sep { color: #4a4f59; }
.dr-head .icon-btn { width: 32px; height: 32px; border-radius: 8px; color: var(--text-2); }
.dr-head .icon-btn:hover { background: #23262e; }
.dr-head .danger:hover { color: oklch(0.78 0.14 25); }
.dr-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 24px; }
.dr-title { display: block; width: calc(100% + 16px); margin: 0 -8px; padding: 6px 8px; resize: none; background: transparent; border: 0; border-radius: 8px; outline: none; color: #f2f3f5; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; }
.dr-title:focus { background: #1c1f25; }
.props { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; row-gap: 2px; margin: 14px 0 24px; }
.prop-l { font-size: 12.5px; color: #8a909b; }
.prop-v { min-height: 36px; display: flex; align-items: center; gap: 8px; }
.prop-v.static { color: #b4b9c2; }
.prop-person { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 4px; margin-left: -4px; border-radius: 7px; color: #e6e8ec; }
.prop-person:hover, .prop-date:hover { background: #1f2228; }
.prop-chip { height: 28px; padding: 0 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500; border: 1px solid transparent; }
.prop-chip:hover { filter: brightness(1.08); }
.prop-chip.empty { border: 1px dashed #3a3f49; color: #8a909b; }
.prop-date { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 6px; margin-left: -6px; border-radius: 7px; }
.prop-date .ms { font-size: 17px; color: #8d939e; }
.sec-h { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.sec-h.upd-h { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 4px; }
.sec-h .sub { font-size: 12px; font-weight: 400; color: var(--text-3); }
.dr-desc { display: block; width: 100%; min-height: 76px; resize: vertical; padding: 10px 12px; background: #111317; border: 1px solid #262a31; border-radius: 10px; outline: none; color: #e6e8ec; font-size: 13px; line-height: 1.55; }
.dr-desc:focus { border-color: #4a505b; }
.no-upd { margin-top: 8px; padding: 16px; border: 1px dashed #2c3039; border-radius: 10px; color: #8a909b; line-height: 1.5; }
.upd-item { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid #22252c; }
.upd-main { flex: 1; min-width: 0; }
.upd-meta { display: flex; align-items: baseline; gap: 8px; }
.upd-name { font-weight: 600; color: var(--text); }
.upd-at { font-size: 12px; color: var(--text-3); }
.upd-text { margin-top: 4px; color: #d0d3d9; line-height: 1.55; white-space: pre-wrap; text-wrap: pretty; }
.composer-wrap { flex: none; padding: 12px 16px 16px; border-top: 1px solid #22252c; background: var(--main); }
.composer { padding: 8px 8px 8px 12px; border: 1px solid #2c3039; border-radius: 10px; background: #111317; }
.composer:focus-within { border-color: #4a505b; }
.composer textarea { display: block; width: 100%; resize: none; background: transparent; border: 0; outline: none; color: var(--text); font-size: 13px; line-height: 1.5; padding: 0; }
.composer-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.composer-hint { font-size: 11.5px; color: #686e79; }
.btn-post { height: 28px; padding: 0 12px; border-radius: 7px; background: #2a2e36; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.btn-post.ready { background: var(--text); color: #111317; }

/* Bulk bar */
.bulk { position: fixed; left: 50%; bottom: 22px; z-index: 45; display: flex; align-items: center; gap: 2px; padding: 6px; background: var(--text); color: #111317; border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transform: translate(-50%, 24px); transition: transform .24s var(--ease), opacity .2s; }
.bulk.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.bulk-n { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 7px; background: #111317; color: var(--text); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.bulk-l { padding: 0 12px 0 6px; font-weight: 500; }
.bulk-div { width: 1px; height: 20px; background: #c6c9cf; margin: 0 4px; }
.bulk-btn { height: 30px; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 7px; font-weight: 500; }
.bulk-btn:hover { background: #d8dbe0; }
.bulk-btn .ms { font-size: 17px; }
.bulk-btn.danger { color: oklch(0.5 0.17 25); padding-left: 8px; }
.bulk-btn.danger:hover { background: #f3dcd8; }
.bulk-btn.x { width: 30px; padding: 0; justify-content: center; }
.bulk-btn.x .ms { font-size: 18px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #23262e; border: 1px solid #343842; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); font-size: 12.5px; color: var(--text); white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s, transform .24s var(--ease), bottom .24s; }
.toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast.lifted { bottom: 80px; }
.toast-undo { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.toast-undo:hover { color: #fff; }

/* Popovers */
.pop-overlay { position: fixed; inset: 0; z-index: 50; }
.pop { position: fixed; z-index: 51; overflow-y: auto; padding: 6px; background: #1c1f25; border: 1px solid #2e323b; border-radius: 10px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3); }
.pop-title { padding: 6px 8px 8px; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.pop-head { display: flex; align-items: center; padding: 6px 8px 2px; font-weight: 600; }
.pop-head .link-btn { height: auto; padding: 0; margin-left: auto; color: var(--text-2); }
.opt { width: 100%; height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 8px; border-radius: 7px; color: #e6e8ec; }
.opt:hover { background: #262a32; }
.opt .check { font-size: 17px; opacity: 0; color: var(--text); }
.opt.cur .check { opacity: 1; }
.opt-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-hint { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.optchip { height: 24px; display: flex; align-items: center; padding: 0 10px; border-radius: 5px; font-size: 12.5px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.optchip.none { border: 1px dashed #3a3f49; color: var(--text-2); }
.pop-div { height: 1px; background: #2a2e36; margin: 6px 2px; }
.pop-date { padding: 0 6px 6px; }
.pop-date input { width: 100%; height: 32px; padding: 0 8px; background: #111317; border: 1px solid #2c3039; border-radius: 7px; color: var(--text); font-size: 13px; color-scheme: dark; outline: none; }
.fsec { padding: 10px 8px 4px; }
.fsec-t { font-size: 11.5px; font-weight: 500; color: var(--text-3); margin-bottom: 7px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid #2c3039; color: #b4b9c2; font-size: 12px; }
.fchip:hover { border-color: #6a707b; }
.fchip.on { background: #2a2f39; border-color: #8b919c; color: #f2f3f5; }
