/* ProjectPulse — single stylesheet */
:root {
  --bg: #f4f5f8; --panel: #fff; --ink: #161a23; --ink-2: #4a5263; --muted: #8a92a3; --line: #e6e8ee; --line-2: #f0f1f5;
  --brand: #e0127f; --brand-2: #fdeaf4; --brand-grad: linear-gradient(90deg, #ED1590, #FB5C28); --green: #12a150; --green-bg: #e5f6ec; --amber: #c27a00; --amber-bg: #fff3dc;
  --red: #d93a3a; --red-bg: #fde9e9; --blue: #2563eb; --blue-bg: #e6eeff; --gray-bg: #eef0f3;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; } h2 { font-size: 20px; } h3 { font-size: 15px; }
small { font-size: 12px; } .muted { color: var(--muted); } .small { font-size: 12.5px; }
.green { color: var(--green); } .red { color: var(--red); } .amber { color: var(--amber); }
.right { text-align: right; } .nowrap { white-space: nowrap; } .pad { padding: 14px 18px; margin: 0; }

/* layout */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: none; background: #11131a; color: #c9cdd8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; padding: 4px 10px 18px; }
.brand:hover { text-decoration: none; } .brand.big { color: var(--ink); font-size: 20px; justify-content: center; padding-bottom: 8px; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff; display: grid; place-items: center; font-weight: 700; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #b7bccb; font-weight: 500; }
.sidebar nav a:hover { background: #1c1f29; color: #fff; text-decoration: none; }
.sidebar nav a.on { background: #262a38; color: #fff; box-shadow: inset 3px 0 0 #ED1590; }
.sidebar nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidebar .count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; padding: 0 7px; border-radius: 10px; font-weight: 600; }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6b7183; padding: 16px 10px 6px; }
.me { display: flex; gap: 10px; align-items: center; padding: 12px 8px 0; border-top: 1px solid #232733; margin-top: 10px; }
.me strong { display: block; color: #fff; font-size: 13px; } .me small { color: #858b9c; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 12px; } .top-right form { margin: 0; }
.menu-btn { display: none; border: 0; background: none; font-size: 20px; cursor: pointer; }
.role-chip { font-size: 12px; font-weight: 600; background: var(--brand-2); color: var(--brand); padding: 3px 10px; border-radius: 20px; }
.link { color: var(--ink-2); font-weight: 500; }
.content { padding: 24px 28px 40px; max-width: 1400px; width: 100%; }
.notice { color: var(--muted); font-size: 12px; text-align: center; margin-top: 30px; }

/* timer pill */
.timer-pill { display: flex; align-items: center; gap: 8px; background: var(--green-bg); color: var(--green); padding: 4px 6px 4px 12px; border-radius: 20px; font-size: 13px; }
.timer-pill a { color: var(--green); font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer-pill b { font-variant-numeric: tabular-nums; }
.timer-pill button { border: 0; background: var(--green); color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 10px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1000px 520px at 50% -10%, #ffe3ef, var(--bg)); }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border-radius: 16px; box-shadow: 0 10px 40px rgba(20, 24, 60, .08); padding: 32px; text-align: center; }
.auth-card form { text-align: left; margin-top: 18px; } .auth-card h2 { margin-top: 10px; }
.auth-wrap > .flash { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 10; }

/* cards & grid */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card.pad { padding: 16px 18px; } .card.pad h3 { margin-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.col { min-width: 0; }
.empty { text-align: center; padding: 36px 20px; } .empty p { color: var(--muted); }
.greet { margin-bottom: 18px; } .greet p { margin: 2px 0 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-top: 3px solid var(--line); }
.stat span { color: var(--muted); font-size: 12.5px; font-weight: 500; display: block; }
.stat strong { display: block; font-size: 24px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); }
.stat.green { border-top-color: var(--green); } .stat.amber { border-top-color: var(--amber); } .stat.red { border-top-color: var(--red); }
.stats.mini { padding: 0 18px 16px; margin: 0; } .stats.mini .stat { box-shadow: none; background: #fafbfc; border-top-width: 1px; }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfc; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th.right, .table td.right { text-align: right; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; } .table tr.clickable:hover td { background: #fafbff; }
.table tr.dim td { color: var(--muted); } .table tr.editing td { background: #fafbff; }
.table.kv th { width: 40%; background: none; font-size: 13px; color: var(--ink-2); font-weight: 500; white-space: normal; border-bottom: 1px solid var(--line-2); }
.table.kv td { word-break: break-word; }

/* forms */
input, select, textarea { font: inherit; color: inherit; border: 1px solid #d6d9e1; border-radius: 8px; padding: 8px 10px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid #fbc7e2; border-color: var(--brand); }
input[type=range] { padding: 0; border: 0; accent-color: var(--brand); }
input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: 13px; color: var(--ink-2); }
label.inl { flex-direction: row; align-items: center; gap: 6px; }
label.chk { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.form-card { padding: 20px 22px; } .form-card h3 { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.section-title { margin-top: 24px; }
.ms-row { display: grid; grid-template-columns: 1fr 170px auto auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.card.filters { margin-bottom: 18px; }
form.inline { display: inline; margin: 0; }
.review { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; } .review input { width: 140px; padding: 5px 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 8px; border: 1px solid #d6d9e1; background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; background: #f6f7f9; }
.btn.primary { background: var(--brand-grad); border-color: transparent; color: #fff; } .btn.primary:hover { filter: brightness(1.06); background: var(--brand-grad); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); } .btn.ghost:hover { background: var(--gray-bg); }
.red-text { color: var(--red) !important; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; } .btn.block { width: 100%; justify-content: center; padding: 10px; }

/* toolbar, tabs, segments */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.toolbar .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { color: var(--muted); font-weight: 500; margin-bottom: 4px; } .content > .crumbs { margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--gray-bg); border-radius: 9px; padding: 3px; }
.seg a { padding: 5px 12px; border-radius: 7px; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.seg a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); } .seg a:hover { text-decoration: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 10px 14px; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); } .tabs a:hover { text-decoration: none; }

/* flash */
.flash { padding: 10px 14px; border-radius: 9px; margin-bottom: 14px; font-weight: 500; border: 1px solid; }
.flash.ok { background: var(--green-bg); color: #0b6b36; border-color: #bfe8cf; }
.flash.err { background: var(--red-bg); color: #a32222; border-color: #f5c6c6; }
.flash.warn { background: var(--amber-bg); color: #8a5600; border-color: #f4dca8; }

/* badges */
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: var(--gray-bg); color: var(--ink-2); white-space: nowrap; }
.b-planned { background: var(--gray-bg); color: #555e70; } .b-in-progress { background: var(--blue-bg); color: var(--blue); }
.b-on-hold { background: var(--amber-bg); color: var(--amber); } .b-completed, .b-approved { background: var(--green-bg); color: var(--green); }
.b-cancelled { background: #f1f1f1; color: #888; } .b-rejected { background: var(--red-bg); color: var(--red); } .b-pending { background: var(--amber-bg); color: var(--amber); }
.b-p-low { background: #f0f2f5; color: #6b7280; } .b-p-medium { background: var(--blue-bg); color: var(--blue); }
.b-p-high { background: var(--amber-bg); color: var(--amber); } .b-p-critical { background: var(--red-bg); color: var(--red); }
.b-r-admin, .b-admin { background: #f1e8ff; color: #7c3aed; } .b-r-hr { background: #ffe8f3; color: #c2185b; } .b-r-employee { background: var(--blue-bg); color: var(--blue); }
.b-h-public { background: var(--green-bg); color: var(--green); } .b-h-optional { background: var(--amber-bg); color: var(--amber); } .b-h-company { background: var(--brand-2); color: var(--brand); }
.badges { display: flex; gap: 6px; margin-bottom: 6px; }

/* avatars & people */
.avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ffe1ef, #ffd9c7); color: #b3105f; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; vertical-align: middle; margin-right: 6px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.me .avatar { background: #2b3040; color: #fff; }
.st { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: #b8bdc8; }
.st.online { background: var(--green); } .st.idle { background: #f2b200; } .st.away { background: #b8bdc8; }
.people { list-style: none; margin: 0; padding: 6px 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px 18px; }
.people li > div { flex: 1; min-width: 0; } .people strong { display: block; font-size: 13.5px; } .people small { color: var(--muted); }
.since { font-size: 12px; color: var(--muted); white-space: nowrap; }
.more { display: block; padding: 10px 18px; border-top: 1px solid var(--line-2); font-weight: 600; font-size: 13px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 16px; }
.person { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.person strong, .person small { display: block; } .person small { color: var(--muted); }
.person.off { opacity: .7; } .person.off .avatar { filter: grayscale(1); }
.dot-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12px; }
.dot-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot-label.online { color: var(--green); } .dot-label.idle { color: var(--amber); } .dot-label.away { color: var(--muted); }

/* timeline bar */
.tl { position: relative; height: 10px; background: #eceef3; border-radius: 6px; margin: 6px 0; }
.tl-fill { position: absolute; inset: 0 auto 0 0; background: var(--brand-grad); border-radius: 6px; }
.tl.overdue .tl-fill { background: linear-gradient(90deg, #f87171, #dc2626); }
.tl-today { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }
.tl-ms { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #fff; border: 2px solid var(--amber); transform: rotate(45deg); }
.tl-ms.done { background: var(--green); border-color: var(--green); }
.tl-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); gap: 8px; }
.tl-big { padding: 4px 18px 16px; } .tl-big .tl { height: 14px; }
.proj-row { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line-2); color: inherit; }
.proj-row:hover { background: #fafbff; text-decoration: none; }
.proj-top { display: flex; justify-content: space-between; gap: 10px; }
.proj-head { display: flex; justify-content: space-between; gap: 14px; padding: 16px 18px 6px; flex-wrap: wrap; }
.proj-head p { margin: 0; }
.desc { padding: 14px 18px; border-top: 1px solid var(--line-2); color: var(--ink-2); }

/* gantt */
.gantt { padding: 10px 0 14px; }
.g-head, .g-row { display: flex; align-items: center; }
.g-label { width: 230px; flex: none; padding: 6px 16px; overflow: hidden; }
.g-label a { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.g-label small { color: var(--muted); }
.g-track { position: relative; flex: 1; height: 34px; margin-right: 16px; border-bottom: 1px solid var(--line-2); }
.g-head .g-track { display: flex; height: auto; background: none; border-bottom: 1px solid var(--line); }
.g-head .g-track span { font-size: 11.5px; color: var(--muted); padding: 4px 6px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.g-bar { position: absolute; top: 9px; height: 16px; border-radius: 5px; background: #c7d4f5; overflow: hidden; }
.g-bar span { display: block; height: 100%; background: rgba(0, 0, 0, .18); }
.g-bar.b-in-progress { background: #93b4f7; } .g-bar.b-completed { background: #8fd5ad; } .g-bar.b-on-hold { background: #f6cf7c; }
.g-bar.b-planned { background: #cfd4de; } .g-bar.b-cancelled { background: #e2e2e2; } .g-bar.late { outline: 2px solid var(--red); }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 2; }
.g-ms { position: absolute; top: 12px; width: 10px; height: 10px; margin-left: -5px; background: #fff; border: 2px solid var(--amber); transform: rotate(45deg); z-index: 3; }
.g-ms.done { background: var(--green); border-color: var(--green); }
.g-row:hover { background: #fafbff; }
.g-legend { display: flex; gap: 16px; padding: 10px 16px 0; font-size: 12px; color: var(--muted); }
.g-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.lg-today { background: var(--red); width: 2px !important; } .lg-ms { border: 2px solid var(--amber); transform: rotate(45deg); } .lg-ms.done { background: var(--green); border-color: var(--green); } .lg-late { outline: 2px solid var(--red); background: #93b4f7; }

/* milestones list */
.ms-timeline { list-style: none; margin: 0; padding: 10px 18px; }
.ms-timeline li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ms-timeline li:last-child { border: 0; }
.ms-timeline strong, .ms-timeline small { display: block; } .ms-timeline small { color: var(--muted); }
.ms-timeline li.done strong { text-decoration: line-through; color: var(--muted); }
.ms-timeline li.late small { color: var(--red); }
.ms-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #c5cad5; background: #fff; cursor: pointer; color: #fff; font-weight: 700; display: grid; place-items: center; padding: 0; }
.ms-timeline li.done .ms-check { background: var(--green); border-color: var(--green); }
.notes { list-style: none; margin: 0; padding: 0 18px 10px; }
.notes li { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.notes p { margin: 4px 0 0; color: var(--ink-2); }

/* status bars */
.status-bars { padding: 10px 18px 16px; }
.sbar { display: grid; grid-template-columns: 130px 1fr 60px; gap: 10px; align-items: center; padding: 5px 0; color: var(--ink); }
.sbar:hover { text-decoration: none; } .sbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sbar b { text-align: right; font-variant-numeric: tabular-nums; }
.sbar-track { height: 8px; background: #eef0f4; border-radius: 4px; overflow: hidden; }
.sbar-fill { height: 100%; border-radius: 4px; }
.sbar-fill.b-planned { background: #9aa3b5; } .sbar-fill.b-in-progress { background: var(--blue); } .sbar-fill.b-on-hold { background: #e0a100; }
.sbar-fill.b-completed { background: var(--green); } .sbar-fill.b-cancelled { background: #c6c6c6; }

/* screen time split bar */
.split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #eef0f4; margin-bottom: 3px; }
.split.big { height: 18px; border-radius: 6px; margin: 4px 0 10px; }
.s-active { background: var(--green); } .s-idle { background: #f2b200; } .s-away { background: #b8bdc8; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* leave balance */
.bal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px 18px; }
.bal-grid.wide { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.bal { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.bal span { display: block; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.bal strong { display: block; font-size: 26px; font-weight: 700; color: var(--brand); }
.bal small { color: var(--muted); }
.meter { height: 5px; background: #eef0f4; border-radius: 3px; margin-top: 8px; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--brand-grad); }

/* holidays */
.hol-list { list-style: none; margin: 0; padding: 6px 0; }
.hol-list li { display: flex; gap: 12px; align-items: center; padding: 8px 18px; }
.hol-list strong, .hol-list small { display: block; } .hol-list small { color: var(--muted); }
.cal { width: 42px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 10.5px; text-transform: uppercase; color: var(--red); font-weight: 600; line-height: 1.2; padding: 4px 0; flex: none; }
.cal b { display: block; font-size: 17px; color: var(--ink); }

/* attendance */
.att { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.a-P { background: var(--green-bg); color: var(--green); } .a-HD { background: #eaf6d9; color: #5b8a12; }
.a-L { background: var(--blue-bg); color: var(--blue); } .a-HL { background: #e9f0ff; color: #4f7be0; }
.a-H { background: #f3e8ff; color: #7c3aed; } .a-W { background: #f1f2f5; color: #9aa1af; }
.a-A { background: var(--red-bg); color: var(--red); } .a--, .a- { background: transparent; color: var(--muted); }
.att-grid-wrap { overflow-x: auto; }
.att-grid { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.att-grid th, .att-grid td { border: 1px solid var(--line-2); padding: 4px 2px; text-align: center; min-width: 30px; }
.att-grid th { background: #fafbfc; font-weight: 600; color: var(--ink-2); }
.att-grid th small { display: block; font-weight: 500; color: var(--muted); font-size: 10px; }
.att-grid th.off { background: #f3f4f7; color: var(--muted); } .att-grid th.today { background: var(--brand-2); color: var(--brand); }
.att-grid .att { padding: 2px 3px; min-width: 22px; font-size: 10.5px; }
.att-grid .sticky { position: sticky; left: 0; background: #fff; text-align: left; min-width: 170px; padding: 6px 10px; z-index: 1; }
.att-grid .sticky strong, .att-grid .sticky small { display: block; } .att-grid .sticky small { color: var(--muted); }
.att-grid .num { font-weight: 700; padding: 4px 8px; }

/* responsive */
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } .form-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .sidebar { position: fixed; left: -260px; z-index: 20; transition: left .2s; } .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .menu-btn { display: block; } .topbar { padding: 12px 16px; } .content { padding: 16px; }
  .top-right .link, .role-chip { display: none; } .timer-pill a { display: none; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; }
  .ms-row { grid-template-columns: 1fr 1fr; } .g-label { width: 130px; }
}

/* ---------- brand / logo ---------- */
.brand { gap: 10px; padding: 2px 8px 18px; }
.brand-icon { width: 34px; height: 34px; flex: none; }
.brand-word { height: 22px; width: auto; }
.auth-logo { height: 110px; width: auto; margin: 0 auto 6px; display: block; }
.sidebar .count.soft { background: #2c3141; color: #fff; }

/* ---------- tasks ---------- */
.tab-count { background: var(--gray-bg); color: var(--ink-2); font-size: 11px; padding: 1px 7px; border-radius: 10px; margin-left: 4px; }
.tabs a.on .tab-count { background: var(--brand-2); color: var(--brand); }
.add-task { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; }
.add-task .grow { flex: 1 1 280px; }
.grow { flex: 1; min-width: 0; }
.task-title { color: var(--ink); font-weight: 600; } .task-title:hover { color: var(--brand); }
.done-row .task-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.ms-check.on { background: var(--green); border-color: var(--green); }
.tasks-table td { padding-top: 8px; padding-bottom: 8px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; margin-right: 6px; }
.push { margin-left: auto; }
.st-select { padding: 3px 6px; font-size: 12px; font-weight: 600; border-radius: 6px; }
.b-t-to-do, .st-select.t-to-do { background: #f1f2f5; color: #555e70; }
.b-t-in-progress, .st-select.t-in-progress { background: var(--blue-bg); color: var(--blue); border-color: #c9d8ff; }
.b-t-in-review, .st-select.t-in-review { background: #f1e8ff; color: #7c3aed; border-color: #ddc9ff; }
.b-t-blocked, .st-select.t-blocked { background: var(--red-bg); color: var(--red); border-color: #f5c6c6; }
.b-t-done, .st-select.t-done { background: var(--green-bg); color: var(--green); border-color: #bfe8cf; }
.task-head { padding: 18px 18px 10px; } .task-head h2 { margin-bottom: 8px; }
.struck { text-decoration: line-through; color: var(--muted); }

/* board */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; }
.board-col { background: #eceef3; border-radius: 12px; padding: 10px; min-height: 120px; }
.board-head { font-weight: 700; font-size: 13px; padding: 4px 6px 10px; display: flex; justify-content: space-between; }
.board-head span { background: #fff; border-radius: 10px; padding: 0 8px; font-size: 12px; color: var(--ink-2); }
.board-head.t-in-progress { color: var(--blue); } .board-head.t-in-review { color: #7c3aed; } .board-head.t-blocked { color: var(--red); } .board-head.t-done { color: var(--green); }
.board-card { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.board-card .task-title { display: block; margin-bottom: 8px; line-height: 1.35; }
.board-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.board-move { display: flex; gap: 6px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* timeline for long projects: scroll horizontally beyond ~8 months */
.gantt .g-scroll { overflow-x: auto; }
.gantt.wide .g-head, .gantt.wide .g-row { min-width: calc(230px + var(--months) * 90px); }
.g-ms.faint { opacity: .55; }
.g-bar.b-t-to-do { background: #cfd4de; } .g-bar.b-t-in-progress { background: #93b4f7; } .g-bar.b-t-in-review { background: #c4a6fb; }
.g-bar.b-t-blocked { background: #f5a3a3; } .g-bar.b-t-done { background: #8fd5ad; }

/* in-app search/activity */
.search-chip { display: inline-block; background: var(--brand-2); color: var(--brand); font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 20px; margin-left: 6px; }
.consent { background: #fff7fb; border: 1px solid #f6d6e7; color: #8a3d64; border-radius: 10px; padding: 11px 14px; font-size: 12.5px; line-height: 1.5; margin-top: 16px; text-align: left; }
.consent b { color: #6f2f4e; }

/* browser activity admin */
.token-box { background: #11131a; color: #7CFFB2; border-radius: 8px; padding: 14px 16px; font-size: 15px; word-break: break-all; }
.token-box code { color: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--brand-2); color: var(--brand); border-radius: 20px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
.chip b { margin-left: 4px; }
.help-steps { margin: 10px 0; padding-left: 20px; line-height: 1.7; }
.help-steps code { background: var(--gray-bg); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* breaks */
.break-menu { position: relative; }
.break-pop { display: none; position: absolute; right: 0; top: 36px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(20,24,60,.12); padding: 6px; z-index: 20; min-width: 150px; }
.break-pop.open { display: block; }
.break-pop form { margin: 0; }
.break-opt { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.break-opt:hover { background: var(--brand-2); color: var(--brand); }
.break-resume { display: flex; align-items: center; gap: 8px; }
.on-break { background: var(--amber-bg); color: var(--amber); font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 20px; }
.on-break b { font-variant-numeric: tabular-nums; }
.break-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--amber-bg); border: 1px solid #f4dca8; color: #8a5600; padding: 10px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; }
.dot-label.break { color: var(--amber); }
.st.break { background: #f2b200; }
