/* TechHarbor Work. One stylesheet, no build step.
   Theme: every colour is a light-dark() pair; the theme toggle only flips color-scheme. */

:root {
  color-scheme: light dark;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: light-dark(#F7F8FA, #08090A);
  --card: light-dark(#FFFFFF, #0F1012);
  --raised: light-dark(#F1F3F6, #17181C);
  --hover: light-dark(rgba(15, 23, 42, .04), rgba(255, 255, 255, .04));
  --fg: light-dark(#111827, #F2F3F4);
  --fg-2: light-dark(#4B5563, #A3A8AE);
  --muted: light-dark(#6B7280, #8A8F98);
  --faint: light-dark(#9CA3AF, #5A5E66);
  --line: light-dark(rgba(15, 23, 42, .09), rgba(255, 255, 255, .08));
  --line-2: light-dark(rgba(15, 23, 42, .18), rgba(255, 255, 255, .16));
  --accent: light-dark(#4C59CC, #6F7BE6);
  --accent-solid: light-dark(#4C59CC, #5E6AD2);
  --accent-solid-hover: light-dark(#3F4BB8, #6C78E0);
  --accent-soft: light-dark(rgba(76, 89, 204, .09), rgba(94, 106, 210, .16));
  --ok: light-dark(#15803D, #3FB95F);
  --ok-soft: light-dark(rgba(22, 163, 74, .10), rgba(63, 185, 95, .13));
  --warn: light-dark(#B45309, #F0A63A);
  --warn-soft: light-dark(rgba(217, 119, 6, .10), rgba(240, 166, 58, .13));
  --err: light-dark(#C81E1E, #F2637A);
  --err-soft: light-dark(rgba(220, 38, 38, .08), rgba(242, 99, 122, .13));
  --input: light-dark(#FFFFFF, #0B0C0E);
  --glass: light-dark(rgba(247, 248, 250, .82), rgba(8, 9, 10, .78));
  --ring: light-dark(rgba(76, 89, 204, .28), rgba(111, 123, 230, .4));
  --shadow: light-dark(0 1px 2px rgba(15, 23, 42, .05), none);
  --pop: light-dark(0 8px 28px rgba(15, 23, 42, .14), 0 10px 32px rgba(0, 0, 0, .6));
  --src-linear: light-dark(#0369A1, #5CC4F5);
  --src-slack: light-dark(#7C3AED, #B98AF7);
  --src-email: light-dark(#B45309, #F0A63A);
  --task-hover: light-dark(#F3F4F7, #17181C);
  --r: 10px;
  --r-s: 6px;
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 14px; font-weight: 600; letter-spacing: -.005em; display: flex; align-items: center; gap: 8px; }
h4 { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
small { font-size: .8em; font-weight: 500; color: var(--muted); margin-left: 1px; }
code { font: 12px var(--mono); background: var(--raised); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
svg { flex: none; vertical-align: -2px; }
.num, .count, .dt { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 160px; min-width: 0; }
.push { margin-left: auto; }
html.js .nojs { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- header */
.devbanner {
  background: #B4123A; color: #fff; text-align: center; font-size: 10.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 12px;
}
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap;
  min-height: 48px; padding: 6px 24px; background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 650; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 5px; }
.mainnav { display: flex; gap: 2px; }
.mainnav a {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-s);
  color: var(--muted); font-weight: 500; font-size: 13.5px; transition: color .12s, background .12s;
}
.mainnav a:hover { color: var(--fg); background: var(--hover); text-decoration: none; }
.mainnav a.on { color: var(--fg); background: var(--raised); }
.navcount {
  min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-solid); color: #fff;
  font-size: 11px; font-weight: 650; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.who { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; font-size: 13px; }
.me { display: flex; align-items: center; gap: 7px; color: var(--fg-2); }
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.role {
  font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; line-height: 16px;
}
.iconbtn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r-s);
  background: none; color: var(--muted); cursor: pointer;
}
.iconbtn:hover { background: var(--hover); color: var(--fg); }
button.link { border: 0; background: none; padding: 4px 2px; color: var(--muted); font: inherit; cursor: pointer; }
button.link:hover { color: var(--fg); }

main { max-width: 1160px; margin: 0 auto; padding: 26px 24px 80px; }
main.has-bulk { padding-bottom: 120px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

/* ---------------------------------------------------------------- controls */
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]), select, textarea {
  height: 32px; padding: 0 10px; background: var(--input); border: 1px solid var(--line-2); border-radius: var(--r-s);
  min-width: 0; max-width: 100%; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 8px 10px; width: 100%; resize: vertical; line-height: 1.45; }
select { padding-right: 6px; cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:not([type=checkbox]):hover, select:hover, textarea:hover { border-color: var(--faint); }
input:not([type=checkbox]):focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
input[type=checkbox] { width: 15px; height: 15px; margin: 0; accent-color: var(--accent-solid); cursor: pointer; }
label { font-size: 12px; font-weight: 500; color: var(--muted); }
label.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-2); cursor: pointer; white-space: nowrap; }
label.stackl { display: grid; gap: 5px; }

.btn, .mini {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-s);
  font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s, color .12s;
}
.btn { height: 32px; padding: 0 14px; border: 1px solid transparent; background: var(--accent-solid); color: #fff; font-size: 13.5px; }
.btn:hover { background: var(--accent-solid-hover); text-decoration: none; }
.btn.secondary { background: var(--card); border-color: var(--line-2); color: var(--fg); }
.btn.secondary:hover { background: var(--raised); }
.btn.block { width: 100%; height: 36px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.mini { height: 26px; padding: 0 9px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg); font-size: 12.5px; }
.mini:hover { background: var(--raised); text-decoration: none; }
.mini.quiet { border-color: transparent; background: none; color: var(--muted); }
.mini.quiet:hover { background: var(--hover); color: var(--fg); }
.mini.ok { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.mini.ok:hover { background: var(--ok); color: light-dark(#fff, #08090A); }
.mini.danger { border-color: transparent; background: var(--err-soft); color: var(--err); }
.mini.danger:hover { background: var(--err); color: #fff; }
.btn:active, .mini:active { transform: translateY(.5px); }

form.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
form.stack, .stack { display: grid; gap: 10px; margin: 0; }

.tabs { display: inline-flex; gap: 2px; padding: 2px; background: var(--raised); border-radius: 8px; }
.tabs a { padding: 4px 12px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.tabs a:hover { color: var(--fg); text-decoration: none; }
.tabs a.on { background: var(--card); color: var(--fg); box-shadow: 0 0 0 1px var(--line), var(--shadow); }

.badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; flex: none;
  background: var(--raised); color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
}
.badge.src { background: color-mix(in srgb, currentColor 12%, transparent); }
.src-linear { color: var(--src-linear); }
.src-slack { color: var(--src-slack); }
.src-email { color: var(--src-email); }
.count {
  display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--raised); color: var(--muted);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; letter-spacing: 0;
}
.count.warn { background: var(--warn-soft); color: var(--warn); }
.count.big { font-size: 12px; line-height: 20px; min-width: 22px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
a.ext { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; color: var(--faint); flex: none; vertical-align: -4px; }
a.ext:hover { color: var(--accent); background: var(--hover); }
.sdot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--faint); }
.sdot.in_progress { border-color: var(--warn); background: conic-gradient(var(--warn) 0 50%, transparent 0); }
.sdot.done { border-color: var(--ok); background: var(--ok); }

.flash {
  margin: 0 0 16px; padding: 8px 12px; border-radius: var(--r-s); font-size: 13px; font-weight: 500;
  background: var(--ok-soft); color: var(--ok); animation: drop .18s ease-out;
}
.flash.err { background: var(--err-soft); color: var(--err); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.empty-note { padding: 18px 4px; color: var(--muted); }
.okline { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 13px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 14px;
}
.card > h3 { margin-bottom: 12px; }
.card.narrow { max-width: 380px; margin: 9vh auto 0; padding: 28px; }
.card.scroll { overflow-x: auto; }
.h3-right { margin-left: auto; color: var(--fg-2); font-weight: 600; }
.h3-note { color: var(--muted); font-weight: 400; font-size: 12.5px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

details > summary { cursor: pointer; list-style: none; user-select: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---------------------------------------------------------------- login */
.login { display: grid; gap: 10px; }
.login .logo { border-radius: 9px; }
.login h1 { font-size: 19px; }
.login .tagline { margin: -8px 0 6px; }
.login form { margin: 0; }
.login hr.sep { margin: 8px 0; width: 100%; }
.seplabel { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

/* ---------------------------------------------------------------- board */
h2.client {
  margin: 26px 0 10px; font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.bar + h2.client { margin-top: 4px; }
.proj {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.proj-h { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 96px 8px 16px; }
.proj-meta { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.proj.empty { background: none; box-shadow: none; border-style: dashed; }
.proj.empty h3 { color: var(--fg-2); font-weight: 500; }
.newtask > summary {
  position: absolute; top: 9px; right: 10px; height: 26px; padding: 0 9px; border-radius: var(--r-s);
  display: inline-flex; align-items: center; color: var(--muted); font-size: 12.5px; font-weight: 500;
}
.newtask > summary:hover, .newtask[open] > summary { background: var(--hover); color: var(--fg); }
.newtask > form { padding: 2px 16px 14px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.col { padding: 10px 8px 10px; min-width: 0; }
.col + .col { border-left: 1px solid var(--line); }
.col h4 { padding: 2px 8px 8px; }
.col.none h4 { color: var(--faint); }
.donecol > summary h4::after { content: "›"; margin-left: auto; font-size: 14px; line-height: 1; color: var(--faint); transition: transform .12s; }
.donecol[open] > summary h4::after { transform: rotate(90deg); }
.donecol > summary:hover h4 { color: var(--fg); }
ul.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.task { position: relative; padding: 7px 8px 6px; border-radius: 8px; transition: background .1s; }
.task:hover, .task:focus-within { background: var(--task-hover); }
.t-main { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; padding-right: 24px; }
.t-main .sdot { align-self: center; margin: 0 1px; }
.t-title { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.task.done .t-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.t-main .badge, .t-main a.ext { align-self: center; }
.t-desc { margin: 2px 0 0 18px; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; white-space: pre-line; }
.t-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin: 3px 0 0 18px; min-height: 26px; }
.t-meta { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.t-actions { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; }
.assign { display: flex; align-items: center; gap: 4px; margin: 0 0 0 -6px; }
select.ghost {
  height: 24px; padding: 0 2px 0 5px; border-color: transparent; background: none; color: var(--fg-2); font-size: 12.5px; font-weight: 500;
}
select.ghost { field-sizing: content; }
select.ghost.unset { color: var(--muted); font-weight: 400; }
select.ghost:hover { border-color: var(--line-2); background: var(--input); }
@media (hover: hover) {
  /* Actions sit over the right end of the meta row and only show on hover / keyboard focus: no layout shift. */
  .t-foot { position: relative; flex-wrap: nowrap; }
  .t-meta { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .t-actions {
    position: absolute; right: -2px; top: 0; bottom: 0; padding-left: 28px; opacity: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--task-hover) 24px);
  }
  .task:hover .t-actions, .task:focus-within .t-actions { opacity: 1; pointer-events: auto; }
}
details.edit > summary {
  position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: var(--r-s); color: var(--faint);
}
details.edit > summary:hover, details.edit[open] > summary { background: var(--raised); color: var(--fg); }
@media (hover: hover) {
  details.edit > summary { opacity: 0; }
  :is(.task, .entry):hover details.edit > summary, details.edit[open] > summary, details.edit > summary:focus-visible { opacity: 1; }
}
details.edit > form { margin: 8px 0 4px 18px; }

/* ---------------------------------------------------------------- log */
.week { display: flex; align-items: stretch; gap: 6px; margin-bottom: 10px; }
.wnav {
  display: grid; place-items: center; width: 30px; border-radius: 8px; color: var(--muted); font-size: 20px; line-height: 1; flex: none;
}
.wnav:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.days {
  flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden;
}
.day {
  display: grid; grid-template-rows: auto 30px auto; justify-items: center; gap: 4px; padding: 9px 4px 8px;
  color: var(--fg); position: relative; transition: background .1s;
}
.day + .day { border-left: 1px solid var(--line); }
.day:hover { background: var(--hover); text-decoration: none; }
.day.sel { background: var(--accent-soft); }
.day.sel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-solid); }
.dn { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dn b { color: var(--fg-2); font-weight: 650; }
.day.today .dn, .day.today .dn b { color: var(--accent); }
.day.wkend .dn { color: var(--faint); }
.dbar { align-self: end; width: 18px; border-radius: 3px 3px 1px 1px; background: var(--accent-solid); opacity: .85; }
.dbar.l0 { height: 2px; background: var(--line-2); border-radius: 1px; }
.dbar.l1 { height: 5px; } .dbar.l2 { height: 9px; } .dbar.l3 { height: 13px; } .dbar.l4 { height: 16px; }
.dbar.l5 { height: 20px; } .dbar.l6 { height: 23px; } .dbar.l7 { height: 27px; } .dbar.l8 { height: 30px; }
.dt { font-size: 13px; font-weight: 650; }
.dt.zero { color: var(--faint); font-weight: 500; }
.weekline { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 2px 14px; font-size: 13px; }
.weekline strong { font-weight: 600; }

.entryform {
  display: grid; grid-template-columns: minmax(0, 5fr) 84px minmax(0, 6fr) auto; gap: 6px 10px; align-items: end; margin: 0;
  grid-template-areas: "task hours note go" "chips chips chips chips";
}
.f-task { grid-area: task; } .f-hours { grid-area: hours; } .f-note { grid-area: note; } .f-go { grid-area: go; }
.entryform label { display: grid; gap: 5px; min-width: 0; }
.entryform select, .entryform input { width: 100%; }
.qchips { grid-area: chips; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.qchip {
  height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--fg-2);
  font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer;
}
.qchip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.hint { margin-left: 6px; color: var(--faint); font-size: 11.5px; }
.entry { position: relative; padding: 9px 34px 9px 0; border-top: 1px solid var(--line); }
.card > h3 + .entry { border-top: 0; padding-top: 2px; }
.eh { display: flex; align-items: baseline; gap: 14px; }
.e-hours { flex: none; width: 46px; text-align: right; font-size: 15px; font-weight: 650; }
.e-body { min-width: 0; }
.crumb { color: var(--muted); }
.crumb::after { content: "/"; margin: 0 6px; color: var(--faint); }
.crumb:last-child::after { content: none; }
.crumb.last { color: var(--fg); font-weight: 500; }
.e-note { color: var(--fg-2); font-size: 13px; overflow-wrap: anywhere; }
.entry details.edit > summary { top: 8px; right: 0; }
.entry details.edit > form { margin: 12px 0 0 60px; }
.e-del { margin: 8px 0 2px 60px; }

/* ---------------------------------------------------------------- hours */
.stat { display: flex; align-items: baseline; gap: 8px; }
.stat-n { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.stat-l { color: var(--muted); font-size: 12.5px; }
.filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.filters label { display: grid; gap: 5px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; padding: 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td, table.meters tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--hover); }
th.num, td.num { text-align: right; }
td.num { font-variant-numeric: tabular-nums; }
.card > table { margin: 0 -10px; width: calc(100% + 20px); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mcell { width: 38%; vertical-align: middle; }
.meter { display: block; height: 6px; min-width: 2px; border-radius: 3px; background: var(--accent-solid); opacity: .8; }
.w0 { width: 1%; } .w1 { width: 5%; } .w2 { width: 10%; } .w3 { width: 15%; } .w4 { width: 20%; } .w5 { width: 25%; }
.w6 { width: 30%; } .w7 { width: 35%; } .w8 { width: 40%; } .w9 { width: 45%; } .w10 { width: 50%; } .w11 { width: 55%; }
.w12 { width: 60%; } .w13 { width: 65%; } .w14 { width: 70%; } .w15 { width: 75%; } .w16 { width: 80%; } .w17 { width: 85%; }
.w18 { width: 90%; } .w19 { width: 95%; } .w20 { width: 100%; }
tr.daynote td { background: var(--raised); color: var(--fg-2); font-size: 13px; }
tr.daynote:hover td { background: var(--raised); }
td.date { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--fg-2); }
.dn-tag { margin-right: 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.gapday {
  display: inline-block; margin: 0 4px 4px 0; padding: 1px 7px; border-radius: 4px; background: var(--warn-soft); color: var(--warn);
  font-size: 12px; font-weight: 500;
}

/* ---------------------------------------------------------------- inbox */
.item { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.card > h3 + .item, .card > .item:first-child { border-top: 0; padding-top: 2px; }
.item > .chk { align-self: flex-start; padding-top: 3px; }
.i-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.i-text { flex: 1 1 300px; min-width: 0; }
.i-title { font-weight: 500; overflow-wrap: anywhere; }
.i-meta { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.actions { display: flex; align-items: center; gap: 4px; flex: none; }
.snippet {
  margin-top: 6px; padding: 2px 0 2px 10px; border-left: 2px solid var(--line-2); color: var(--fg-2); font-size: 13px;
  overflow-wrap: anywhere; white-space: pre-line;
}
.editbefore { margin-top: 6px; }
.editbefore > summary { display: inline-block; color: var(--muted); font-size: 12.5px; }
.editbefore > summary:hover { color: var(--fg); }
.editbefore > summary::before { content: "›"; display: inline-block; margin-right: 5px; transition: transform .12s; }
.editbefore[open] > summary::before { transform: rotate(90deg); }
.editbefore[open] { display: grid; gap: 10px; max-width: 560px; }
.editbefore input, .editbefore select { width: 100%; }
.bulkbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 15; display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); padding: 8px 10px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--pop);
}
.bulk-n { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bulk-n:not(:empty) { padding: 0 6px; }

/* ---------------------------------------------------------------- admin */
form.row { padding: 5px 0; }
form.row .cl { width: 64px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card h4 { margin: 16px 0 6px; }
.urow { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.u-id { flex: 1 1 200px; min-width: 0; }
.u-token { flex: 1 1 220px; min-width: 0; font-size: 12.5px; }
.u-token > summary { color: var(--muted); display: inline-block; }
.u-token > summary:hover { color: var(--fg); }
.u-token[open] > summary { margin-bottom: 4px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  .col.none { display: none; }
  .cols2 { grid-template-columns: 1fr; }
  .entryform { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "task task" "hours chips" "note note" "go go"; }
  .entryform .qchips { margin: 0; align-self: end; min-height: 32px; }
  .entryform .f-go { margin-top: 4px; }
  .entry details.edit > form, .e-del { margin-left: 0; }
}
@media (max-width: 560px) {
  .top { padding: 6px 14px; }
  main { padding: 18px 14px 80px; }
  .mainnav { order: 3; width: 100%; overflow-x: auto; }
  .mename, .who .role { display: none; }
  .proj-meta { display: none; }
  .dn { font-size: 10px; letter-spacing: 0; text-align: center; }
  .dn b { display: block; font-size: 13px; }
  .dbar { width: 12px; }
  .wnav { width: 22px; }
  .card { padding: 14px; }
  .hint { display: none; }
  .bulkbar { left: 12px; right: 12px; transform: none; }
}
