/* NTL Work Tracker — navy & green, clean and visual. */
:root {
  --navy: #0E2A4F; --navy2: #12447F; --navy3: #1B3A66; --green: #2F9E44; --green2: #40C057; --green-soft: #E8F6EC;
  --bg: #EEF3F9; --card: #FFFFFF; --ink: #14213D; --ink2: #334155; --muted: #64748B; --faint: #94A3B8;
  --line: #E3E9F2; --line2: #EEF2F7; --red: #DC2626; --red-soft: #FDECEC; --amber: #D97706; --amber-soft: #FEF5E1;
  --blue-soft: #EAF1FB; --radius: 16px; --shadow: 0 1px 2px rgba(14,42,79,.04), 0 8px 24px rgba(14,42,79,.06);
  --shadow-lg: 0 24px 60px rgba(8,22,42,.22); --head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 14px; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--navy2); text-decoration: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- motion */
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes growX { from { transform: scaleX(0); } }
@keyframes growY { from { transform: scaleY(0); } }
@keyframes ring { from { stroke-dashoffset: var(--c); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); } 70% { box-shadow: 0 0 0 8px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
@keyframes pulseG { 0% { box-shadow: 0 0 0 0 rgba(47,158,68,.5); } 70% { box-shadow: 0 0 0 8px rgba(47,158,68,0); } 100% { box-shadow: 0 0 0 0 rgba(47,158,68,0); } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes bootbar { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(18px,-14px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.boot { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; }
.boot img { width: 56px; height: 56px; }
.boot-bar { width: 140px; height: 3px; background: #DCE5F0; border-radius: 3px; position: relative; overflow: hidden; }
.boot-bar::after { content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, var(--navy2), var(--green)); animation: bootbar 1s ease-in-out infinite; }

/* ---------------------------------------------------------------- shell */
.shell { display: flex; min-height: 100vh; }
.side {
  width: var(--side); flex: none; position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column;
  background: radial-gradient(120% 60% at 0% 0%, #17406F 0%, rgba(23,64,111,0) 60%), linear-gradient(180deg, #0E2A4F 0%, #0A2140 100%);
  color: #CFE0F5; padding: 16px 12px; transition: width .22s ease;
}
.side::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, rgba(64,192,87,.5), rgba(255,255,255,.04) 40%); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; }
.brand-chip { background: #fff; border-radius: 12px; padding: 6px; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); flex: none; }
.brand-chip img { width: 30px; height: 30px; display: block; }
.brand-name { font-family: var(--head); font-weight: 800; color: #fff; font-size: 15.5px; line-height: 1.15; }
.brand-sub { font-size: 9.5px; letter-spacing: 2.2px; color: #8FB0D6; font-weight: 700; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.nav-label { font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: #6F8DB3; font-weight: 700; padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: #BFD3EC; font-weight: 600; font-size: 13.5px;
  border: 0; background: transparent; text-align: left; width: 100%; position: relative; transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.on { background: linear-gradient(90deg, rgba(64,192,87,.22), rgba(64,192,87,.04)); color: #fff; }
.nav-item.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green2); box-shadow: 0 0 12px var(--green2); }
.nav-item .count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,.12); color: #fff; }
.nav-item .count.red { background: var(--red); animation: pulse 2s infinite; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.timer-pill { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(64,192,87,.14); border: 1px solid rgba(64,192,87,.35); color: #DFF5E4; font-size: 12.5px; }
.timer-pill b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; color: #fff; }
.timer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green2); animation: pulseG 1.6s infinite; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); }
.me-name { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-role { font-size: 11px; color: #8FB0D6; text-transform: capitalize; }
.icon-btn { border: 0; background: transparent; color: inherit; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.shell.mini { --side: 76px; }
.shell.mini .side .hide-mini { display: none !important; }
.shell.mini .nav-item { justify-content: center; padding: 11px 0; }
.shell.mini .nav-item .count { position: absolute; top: 3px; right: 6px; padding: 1px 5px; font-size: 9.5px; }
.shell.mini .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.shell.mini .me { justify-content: center; padding: 6px; }
.shell.mini .timer-pill { justify-content: center; padding: 10px 0; }

.main { flex: 1; min-width: 0; margin-left: var(--side); transition: margin-left .22s ease; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 28px;
  background: rgba(238,243,249,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(227,233,242,.8);
}
.topbar h1 { font-size: 21px; font-weight: 800; color: var(--navy); }
.topbar .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn {
  display: flex; align-items: center; gap: 10px; min-width: 250px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--faint); box-shadow: var(--shadow); font-size: 13px;
}
.search-btn:hover { border-color: #BFD0E6; }
.kbd { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: #F8FAFC; }
.content { padding: 24px 28px 48px; max-width: 1560px; animation: fade .25s ease both; }
.mob-menu { display: none; }

@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .22s ease; width: 248px; }
  .shell.open .side { transform: none; box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .mob-menu { display: grid; color: var(--navy); }
  .search-btn { min-width: 0; }
  .search-btn .hide-sm, .hide-sm { display: none !important; }
  .content { padding: 16px; }
  .topbar { padding: 12px 16px; }
}

/* ---------------------------------------------------------------- buttons & inputs */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 11px; padding: 9px 15px; font-weight: 600; font-size: 13px;
  border: 1px solid var(--line); background: #fff; color: var(--ink2); transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap;
}
.btn:not(:disabled):hover { border-color: #C6D5E8; box-shadow: 0 4px 12px rgba(14,42,79,.08); }
.btn:not(:disabled):active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--navy2), var(--navy)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(18,68,127,.28); }
.btn.primary:not(:disabled):hover { box-shadow: 0 8px 22px rgba(18,68,127,.38); filter: brightness(1.08); }
.btn.green { background: linear-gradient(135deg, var(--green2), var(--green)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(47,158,68,.28); }
.btn.danger { color: var(--red); }
.btn.danger:not(:disabled):hover { background: var(--red-soft); border-color: #F7C6C6; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: #fff; }
.btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.btn.icon { padding: 8px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.spin.dark { border-color: #DCE5F0; border-top-color: var(--navy2); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.field > label .req { color: var(--red); }
.input {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: #FBFCFE; outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus { border-color: #7FA6D6; box-shadow: 0 0 0 4px rgba(18,68,127,.10); background: #fff; }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.45; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.err { background: var(--red-soft); color: #B91C1C; border: 1px solid #F7C6C6; padding: 10px 12px; border-radius: 11px; font-size: 13px; }

/* choice pills (category / priority pickers) */
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.choice:hover { border-color: #BFD0E6; }
.choice.on { color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(14,42,79,.15); }
.choice .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px 20px; animation: up .45s cubic-bezier(.2,.7,.2,1) both; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 15px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 9px; }
.card-head h3::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--navy2), var(--green)); }
.card-head .hint { font-size: 12px; color: var(--muted); }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 18px; }
.grid > * { animation-delay: calc(var(--i, 0) * 60ms); }
.g-kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
@media (max-width: 1280px) { .g-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .g-2, .g-21, .g-12, .g-3 { grid-template-columns: 1fr; } .g-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .g-kpi { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.b { font-weight: 700; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* KPI tiles */
.kpi { position: relative; overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; padding: 18px; }
.kpi:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,42,79,.12); border-color: #CFDCEC; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--tone-soft); opacity: .9; }
.kpi-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.kpi-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); }
.kpi-label { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.kpi-value { font-family: var(--head); font-size: 34px; font-weight: 800; color: var(--navy); margin-top: 14px; line-height: 1; position: relative; z-index: 1; letter-spacing: -.02em; }
.kpi-value small { font-size: 15px; color: var(--muted); font-weight: 700; margin-left: 3px; }
.kpi-foot { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; min-height: 18px; }
.kpi.alert .kpi-value { color: var(--red); }
.trend-up { color: var(--green); font-weight: 700; }
.trend-down { color: var(--red); font-weight: 700; }
.spark { position: absolute; right: 14px; bottom: 14px; z-index: 1; opacity: .9; }

/* hero */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 22px 26px; color: #fff; margin-bottom: 18px; animation: up .4s ease both;
  background: radial-gradient(60% 120% at 100% 0%, rgba(64,192,87,.45) 0%, rgba(64,192,87,0) 60%), linear-gradient(120deg, #0E2A4F 0%, #12447F 70%, #1E6B5A 100%);
  box-shadow: 0 16px 40px rgba(14,42,79,.25);
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); animation: float 9s ease-in-out infinite; }
.hero::before { width: 220px; height: 220px; right: 12%; top: -90px; }
.hero::after { width: 140px; height: 140px; right: 2%; bottom: -70px; animation-delay: -4s; }
.hero h2 { font-size: 22px; font-weight: 800; }
.hero p { margin: 6px 0 0; color: #CFE0F5; font-size: 13.5px; }
.hero .row { position: relative; z-index: 1; }
.hero-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 10px 14px; min-width: 120px; backdrop-filter: blur(6px); }
.hero-stat b { display: block; font-family: var(--head); font-size: 20px; }
.hero-stat span { font-size: 11.5px; color: #CFE0F5; }

/* pills / badges */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; line-height: 1.5; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge-flag { display: inline-flex; align-items: center; gap: 4px; color: #fff; background: var(--red); border-radius: 20px; padding: 2px 8px; font-size: 11px; font-weight: 700; animation: pulse 2s infinite; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; background: linear-gradient(135deg, var(--navy2), var(--green)); }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.lg { width: 36px; height: 36px; font-size: 13px; }
.due { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.due.overdue { color: var(--red); }
.due.week { color: var(--amber); }
.due.done { color: var(--green); }

/* progress */
.bar { height: 8px; border-radius: 8px; background: var(--line2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 8px; transform-origin: left; animation: growX .9s cubic-bezier(.2,.7,.2,1) both; transition: width .5s ease; }

/* ---------------------------------------------------------------- toolbar & filters */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.searchbox { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-width: 190px; flex: 1; max-width: 300px; box-shadow: var(--shadow); color: var(--faint); }
.searchbox input { border: 0; outline: none; padding: 10px 0; flex: 1; background: transparent; color: var(--ink); min-width: 0; }
.searchbox:focus-within { border-color: #7FA6D6; box-shadow: 0 0 0 4px rgba(18,68,127,.10); }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 12px; border: 1px dashed #C6D3E4; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.dd-btn.active { border-style: solid; border-color: var(--navy2); background: var(--blue-soft); color: var(--navy2); }
.dd-btn .n { background: var(--navy2); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; animation: pop .16s ease both; max-height: 340px; overflow: auto; }
.dd-menu.right { left: auto; right: 0; }
.dd-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; border: 0; background: transparent; text-align: left; font-size: 13px; color: var(--ink2); }
.dd-item:hover { background: #F3F6FB; }
.dd-check { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #B8C6D9; display: grid; place-items: center; flex: none; color: #fff; }
.dd-check.on { background: var(--navy2); border-color: var(--navy2); }
.dd-sep { height: 1px; background: var(--line2); margin: 6px 4px; }
.seg { display: inline-flex; background: #E2EAF4; border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(14,42,79,.12); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink2); cursor: pointer; user-select: none; }
.toggle .sw { width: 34px; height: 20px; border-radius: 20px; background: #CBD5E1; position: relative; transition: background .2s; }
.toggle .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on .sw { background: var(--red); }
.toggle.on .sw::after { transform: translateX(14px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-soft); color: var(--navy2); border-radius: 20px; padding: 4px 6px 4px 10px; font-size: 12px; font-weight: 600; }
.chip button { border: 0; background: rgba(18,68,127,.12); color: var(--navy2); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; padding: 0; }

/* bulk bar */
.bulk { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 10px 12px 10px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .2s ease both; }
.bulk .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.bulk .btn:hover { background: rgba(255,255,255,.18); }
.bulk .btn.danger { color: #FCA5A5; }
.bulk select.input { background-color: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); padding: 7px 30px 7px 10px; font-size: 12.5px; }
.bulk select.input option { color: var(--ink); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); animation: up .4s ease both; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.t th { position: sticky; top: 0; z-index: 1; background: #F7F9FC; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.t th.sortable { cursor: pointer; }
.t th.sortable:hover { color: var(--navy2); }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .12s; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr:hover { background: #F8FBFF; }
.t tbody tr.sel { background: #EEF4FD; }
.t tbody tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.t tbody tr.warn td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.t tfoot td { background: var(--green-soft); font-weight: 700; color: var(--navy); border-top: 1px solid #CDE9D4; padding: 11px 12px; }
.cb { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #B8C6D9; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; color: #fff; transition: all .12s; }
.cb.on { background: var(--navy2); border-color: var(--navy2); }
.cb.part { background: var(--navy2); border-color: var(--navy2); }
.group-row td { background: #F3F7FC; font-weight: 700; color: var(--navy); font-size: 12.5px; padding: 8px 12px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-soft), var(--green-soft)); color: var(--navy2); }
.empty h4 { color: var(--navy); font-size: 15px; margin-bottom: 4px; }

/* ---------------------------------------------------------------- goal cards */
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.goal-card { position: relative; cursor: pointer; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; }
.goal-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(14,42,79,.12); border-color: #CFDCEC; }
.goal-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cat); }
.goal-card.overdue { border-color: #F5C2C2; }
.goal-card.week { border-color: #F6DDAE; }
.goal-title { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--navy); line-height: 1.3; }
.goal-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.goal-foot { display: flex; align-items: center; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.mini-tasks { display: flex; flex-direction: column; gap: 5px; }
.mini-task { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); }
.mini-task.done { color: var(--faint); text-decoration: line-through; }

/* ---------------------------------------------------------------- board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.lane { background: #E6EDF6; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; transition: background .15s, box-shadow .15s; }
.lane.over { background: #DCE8F7; box-shadow: inset 0 0 0 2px var(--navy2); }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-weight: 700; font-size: 13px; color: var(--navy); }
.lane-head .n { margin-left: auto; background: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px; color: var(--muted); }
.lane-card { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 12px; cursor: grab; box-shadow: 0 1px 2px rgba(14,42,79,.05); transition: transform .15s, box-shadow .15s; animation: pop .25s ease both; }
.lane-card:hover { box-shadow: 0 8px 20px rgba(14,42,79,.12); transform: translateY(-2px); }
.lane-card.dragging { opacity: .45; transform: rotate(2deg); }
.lane-card.flag { border-left: 3px solid var(--red); }

/* ---------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10,25,48,.42); backdrop-filter: blur(3px); animation: fade .15s ease both; display: grid; place-items: center; padding: 20px; }
.modal { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .22s cubic-bezier(.2,.7,.2,1) both; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line2); }
.modal-head h3 { font-size: 17px; color: var(--navy); }
.modal-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy2), var(--green)); color: #fff; }
.modal-body { padding: 20px 22px; overflow: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line2); display: flex; gap: 10px; justify-content: flex-end; align-items: center; background: #FAFBFD; border-radius: 0 0 20px 20px; }
.drawer-wrap { position: fixed; inset: 0; z-index: 55; background: rgba(10,25,48,.32); animation: fade .15s ease both; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(620px, 100vw); background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideIn .26s cubic-bezier(.2,.7,.2,1) both; }
.drawer-head { padding: 20px 24px 0; }
.drawer-body { padding: 18px 24px 28px; overflow: auto; flex: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 16px; }
.tabs button { border: 0; background: transparent; padding: 10px 12px; font-weight: 600; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--navy); border-color: var(--green); }
.tabs .n { background: var(--line2); border-radius: 10px; padding: 0 6px; font-size: 11px; }

.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 14px 12px 16px; box-shadow: var(--shadow-lg); animation: pop .25s ease both; font-size: 13.5px; max-width: 420px; }
.toast.bad { background: #7F1D1D; }
.toast .ok { width: 24px; height: 24px; border-radius: 50%; background: var(--green2); display: grid; place-items: center; flex: none; }
.toast button.undo { border: 0; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; padding: 6px 10px; border-radius: 9px; display: inline-flex; gap: 6px; align-items: center; }
.toast button.undo:hover { background: rgba(255,255,255,.24); }

/* command palette */
.palette { width: 100%; max-width: 620px; align-self: start; margin-top: 10vh; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease both; }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line2); color: var(--faint); }
.palette-in input { border: 0; outline: none; flex: 1; font-size: 16px; color: var(--ink); }
.palette-list { max-height: 420px; overflow: auto; padding: 6px; }
.palette-group { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 10px 12px 4px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.palette-item.on { background: var(--blue-soft); }
.palette-item .pi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #F1F5FA; color: var(--navy2); flex: none; }
.palette-foot { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--line2); font-size: 11.5px; color: var(--muted); background: #FAFBFD; }

/* ---------------------------------------------------------------- charts */
.chart-legend { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.legend-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink2); padding: 4px 6px; border-radius: 8px; cursor: default; transition: background .12s; }
.legend-row.click { cursor: pointer; }
.legend-row.click:hover { background: #F3F6FB; }
.legend-row .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-row b { margin-left: auto; color: var(--navy); font-variant-numeric: tabular-nums; }
.hbar-row { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; font-size: 12.5px; padding: 4px 0; }
.hbar-row .lbl { color: var(--ink2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 14px; border-radius: 7px; background: var(--line2); display: flex; overflow: hidden; }
.hbar-track > i { height: 100%; transform-origin: left; animation: growX .9s cubic-bezier(.2,.7,.2,1) both; }
.hbar-row .v { text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--navy); color: #fff; padding: 7px 10px; border-radius: 9px; font-size: 12px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.col-bar { transform-origin: bottom; animation: growY .8s cubic-bezier(.2,.7,.2,1) both; transition: opacity .15s; }
.col-bar:hover { opacity: .8; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); gap: 3px; }
.heat i { width: 13px; height: 13px; border-radius: 3px; background: #E9EFF6; transition: transform .1s; }
.heat i:hover { transform: scale(1.35); outline: 1px solid var(--navy2); }

/* goal progress list on dashboard */
.gp-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.gp-row:hover { background: #F5F8FC; }

/* timeline / feed */
.feed { display: flex; flex-direction: column; }
.feed-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 0; position: relative; }
.feed-item:not(:last-child)::before { content: ''; position: absolute; left: 13.5px; top: 34px; bottom: -4px; width: 1px; background: var(--line); }
.feed-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--navy2); }
.feed-text { min-width: 0; font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.feed-text b { color: var(--navy); }

/* sub-task checklist */
.task-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; transition: border-color .15s, background .15s; }
.task-row:hover { border-color: var(--line); background: #FBFCFE; }
.task-row.done .task-title > .inline-in, .task-row.done .task-title > span { text-decoration: line-through; color: var(--faint); }
.task-row.overdue { border-color: #F5C2C2; background: #FFF8F8; }
.task-row.week { border-color: #F6DDAE; background: #FFFCF4; }
.tick { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #B8C6D9; background: #fff; display: grid; place-items: center; color: #fff; flex: none; padding: 0; transition: all .15s; }
.tick:hover { border-color: var(--green); }
.tick.on { background: var(--green); border-color: var(--green); animation: pop .2s ease; }
.task-title { flex: 1; min-width: 0; font-size: 13.5px; }
.inline-in { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 4px 6px; outline: none; width: 100%; }
.inline-in:hover { border-color: var(--line); }
.inline-in:focus { border-color: #7FA6D6; background: #fff; }
.mini-select { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 6px; font-size: 12px; outline: none; }

/* timesheet */
.quick { display: grid; grid-template-columns: 150px minmax(180px, 2fr) minmax(150px, 1.3fr) 150px 110px minmax(120px, 1.2fr) auto; gap: 10px; align-items: end; }
@media (max-width: 1280px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } .quick .q-act { grid-column: span 2; } }
@media (max-width: 640px) { .quick { grid-template-columns: 1fr; } .quick .q-act { grid-column: auto; } }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: #FBFCFE; overflow: hidden; }
.stepper button { border: 0; background: transparent; width: 30px; height: 40px; font-size: 16px; color: var(--navy2); font-weight: 700; }
.stepper button:hover { background: var(--blue-soft); }
.stepper input { border: 0; width: 100%; min-width: 0; text-align: center; background: transparent; outline: none; font-weight: 700; color: var(--navy); }
.week-nav { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; box-shadow: var(--shadow); }
.week-nav span { padding: 0 10px; font-weight: 700; color: var(--navy); font-size: 13px; min-width: 170px; text-align: center; }
.week-nav button { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--navy2); }
.week-nav button:hover { background: var(--blue-soft); }
.wk-grid td.cell { text-align: center; font-variant-numeric: tabular-nums; }
.wk-grid td.cell span { display: inline-block; min-width: 40px; padding: 4px 6px; border-radius: 8px; font-weight: 600; }
.wk-grid th.today, .wk-grid td.today { background: #F2FAF4; }
.day-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 150px; padding-top: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .5px; padding-bottom: 4px; }
.cal-d { border-radius: 12px; min-height: 74px; padding: 8px; border: 1px solid var(--line2); background: #fff; display: flex; flex-direction: column; gap: 4px; position: relative; transition: transform .12s, box-shadow .12s; cursor: pointer; }
.cal-d:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(14,42,79,.1); }
.cal-d.out { opacity: .35; cursor: default; }
.cal-d.today { outline: 2px solid var(--green); }
.cal-d .dn { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cal-d .hv { font-family: var(--head); font-weight: 800; font-size: 17px; color: var(--navy); margin-top: auto; }
.cal-d .stripe { display: flex; height: 4px; border-radius: 4px; overflow: hidden; }
.weekend { background: #FAFBFD !important; }

/* login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(60% 50% at 80% 10%, rgba(64,192,87,.45), rgba(64,192,87,0) 70%), radial-gradient(50% 50% at 10% 90%, rgba(18,68,127,.9), rgba(18,68,127,0)), linear-gradient(140deg, #0A2140, #0E2A4F 50%, #12447F); }
.auth-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.auth-art > * { position: relative; }
.auth-art h1 { font-size: 40px; font-weight: 800; line-height: 1.1; max-width: 460px; }
.auth-art h1 span { background: linear-gradient(90deg, #7EE29A, #40C057); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.auth-feat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px; backdrop-filter: blur(6px); animation: up .5s ease both; }
.auth-feat b { display: block; margin: 8px 0 2px; font-size: 13.5px; }
.auth-feat span { font-size: 12px; color: #BFD3EC; }
.auth-form { display: grid; place-items: center; padding: 32px; background: #fff; }
.auth-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; animation: up .4s ease both; }
.auth-box img.logo { width: 150px; margin-bottom: 4px; }
.auth-box h2 { font-size: 24px; color: var(--navy); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

.section-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.section-title h3 { font-size: 15px; color: var(--navy); }
.stat-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.stat { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, border-color .15s; animation: up .4s ease both; }
.stat:hover { transform: translateY(-2px); border-color: #CFDCEC; }
.stat.on { border-color: var(--navy2); background: var(--blue-soft); }
.stat .sv { font-family: var(--head); font-size: 20px; font-weight: 800; color: var(--navy); }
.stat .sl { font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.stat .si { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.desc { white-space: pre-wrap; line-height: 1.55; color: var(--ink2); font-size: 13.5px; background: #F8FAFD; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line2); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kv > div { background: #F8FAFD; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; }
.kv .k { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 5px; }
.kv .v { font-weight: 600; color: var(--navy); font-size: 13.5px; }
@media (max-width: 640px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1560px) { .toolbar .seg.compact .hide-sm { display: none; } }
.toolbar select.input { width: auto; min-width: 170px; }
.hero-stat { flex: 1 1 130px; }
