@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/pjs-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/pjs-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/pjs-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/pjs-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/pjs-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --sidebar: #1d2125;
  --sidebar-text: #9fadbc;
  --sidebar-active: #579dff;
  --text: #172b4d;
  --muted: #626f86;
  --border: #dcdfe4;
  --blue: #0c66e4;
  --blue-light: #e9f2ff;
  --green: #1f845a;
  --green-light: #dcfff1;
  --amber: #974f0c;
  --amber-light: #fff7d6;
  --red: #c9372c;
  --red-light: #ffeceb;
  --purple: #6e5dc6;
  --purple-light: #f3f0ff;
  --shadow: 0 1px 3px rgba(9, 30, 66, 0.12);
  --radius: 8px;
  font-size: 15px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 0.93rem; }
select, input[type=checkbox], input[type=date] { cursor: pointer; }
a { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sidebar :focus-visible { outline-color: var(--sidebar-active); }
svg.ic { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; background: var(--sidebar); color: var(--sidebar-text);
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 20;
}
.sidebar .brand {
  padding: 18px 20px; font-weight: 700; font-size: 1.05rem; color: #fff;
  display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #31383e;
}
.sidebar .brand .logo {
  width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #579dff, #8f7ee7);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.sidebar nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 7px;
  color: var(--sidebar-text); text-decoration: none; font-size: 0.93rem; font-weight: 500;
}
.sidebar nav a:hover { background: #282e33; color: #fff; }
.sidebar nav a.active { background: #1c2b41; color: var(--sidebar-active); }
.sidebar nav a .ico { width: 20px; text-align: center; }
.sidebar .userbox {
  padding: 14px 16px; border-top: 1px solid #31383e; display: flex; align-items: center; gap: 10px;
}
.sidebar .userbox .uname { color: #fff; font-size: 0.9rem; font-weight: 600; line-height: 1.2; }
.sidebar .userbox .urole { font-size: 0.75rem; }
.sidebar .userbox button {
  margin-left: auto; background: none; border: 1px solid #444c53; color: var(--sidebar-text);
  border-radius: 6px; padding: 4px 9px; font-size: 0.78rem;
}
.sidebar .userbox button:hover { border-color: #6b7681; color: #fff; }

.main { margin-left: 230px; flex: 1; padding: 26px 32px; max-width: 1400px; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.45rem; font-weight: 700; }
.page-head .sub { color: var(--muted); font-size: 0.9rem; }
.page-head .spacer { flex: 1; }

/* ---------- avatar ---------- */
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.avatar.sm { width: 24px; height: 24px; font-size: 0.65rem; }

/* ---------- buttons ---------- */
.btn {
  border: none; border-radius: 7px; padding: 9px 16px; font-size: 0.9rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #0055cc; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn.ghost:hover { background: #f0f1f3; }
.btn.danger { background: var(--red-light); color: var(--red); }
.btn.sm { padding: 5px 11px; font-size: 0.82rem; }

/* ---------- cards / panels ---------- */
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.grid { display: grid; gap: 16px; }

/* ---------- release banner ---------- */
.release-banner {
  background: linear-gradient(120deg, #1d2125 0%, #1c2b41 100%); color: #fff;
  border-radius: var(--radius); padding: 16px 22px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.release-banner .rb-left { display: flex; align-items: center; gap: 14px; }
.release-banner .rb-ic {
  width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, #579dff, #8f7ee7);
  display: flex; align-items: center; justify-content: center;
}
.release-banner .rb-name { font-weight: 800; font-size: 1.05rem; }
.release-banner .rb-sub { color: #9fadbc; font-size: 0.85rem; margin-top: 2px; }
.release-banner .rb-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.release-banner .rb-readiness { text-align: right; }
.release-banner .rb-num { font-size: 1.6rem; font-weight: 800; }
.release-banner .rb-lbl { display: block; font-size: 0.72rem; color: #9fadbc; text-transform: uppercase; letter-spacing: 0.5px; }
.rag-badge {
  padding: 6px 13px; border-radius: 20px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.3px;
  max-width: 340px;
}

/* ---------- misc new ---------- */
.due-chip {
  display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; font-weight: 600;
  color: var(--muted); background: #f0f1f3; border-radius: 5px; padding: 2px 6px;
}
.due-chip.late { color: var(--red); background: var(--red-light); }
.missing-row { margin-bottom: 12px; font-size: 0.85rem; color: var(--red); font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.notice-warn { background: var(--amber-light); color: var(--amber); border-radius: 8px; padding: 10px 13px; font-size: 0.87rem; margin-bottom: 14px; }
.card h3 svg.ic { color: var(--muted); }
.btn svg.ic { vertical-align: -2px; }
a.btn { text-decoration: none; }

/* ---------- dashboard ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px;
}
.stat .num { font-size: 1.7rem; font-weight: 800; margin-top: 2px; }
.stat .lbl { color: var(--muted); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-grid .full { grid-column: 1 / -1; }
.card h3 { font-size: 1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h3 .count { color: var(--muted); font-weight: 500; font-size: 0.85rem; }

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 0.88rem; }
.bar-row .bl { width: 110px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { flex: 1; height: 18px; background: #f0f1f3; border-radius: 5px; overflow: hidden; display: flex; }
.bar-row .fill { height: 100%; border-radius: 5px 0 0 5px; }
.bar-row .bv { width: 60px; text-align: right; color: var(--muted); font-size: 0.8rem; flex-shrink: 0; }

.progress-wrap { margin: 6px 0 4px; }
.progress-track { height: 10px; background: #f0f1f3; border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); border-radius: 6px; }

.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; line-height: 1.45; }
.mini-item .when { color: var(--muted); font-size: 0.76rem; white-space: nowrap; }
.empty { color: var(--muted); font-size: 0.88rem; padding: 10px 0; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; padding: 2.5px 9px; border-radius: 20px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2px; white-space: nowrap;
}
.st-backlog { background: #f0f1f3; color: var(--muted); }
.st-todo { background: var(--blue-light); color: var(--blue); }
.st-inprogress { background: var(--amber-light); color: var(--amber); }
.st-review { background: var(--purple-light); color: var(--purple); }
.st-done { background: var(--green-light); color: var(--green); }
.pr-critical { background: var(--red-light); color: var(--red); }
.pr-high { background: #ffe8e0; color: #b34000; }
.pr-medium { background: var(--amber-light); color: var(--amber); }
.pr-low { background: var(--blue-light); color: var(--blue); }
.ty-story { background: var(--green-light); color: var(--green); }
.ty-task { background: var(--blue-light); color: var(--blue); }
.ty-bug { background: var(--red-light); color: var(--red); }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(215px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 20px; }
.col { background: #ecedf0; border-radius: var(--radius); padding: 10px; min-height: 200px; }
.col h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted);
  padding: 4px 6px 10px; display: flex; justify-content: space-between;
}
.col.dragover { outline: 2px dashed var(--blue); outline-offset: -2px; background: var(--blue-light); }
.issue-card {
  background: #fff; border-radius: 7px; box-shadow: var(--shadow); padding: 11px 12px;
  margin-bottom: 8px; cursor: pointer; border: 1px solid transparent;
}
.issue-card:hover { border-color: var(--blue); }
.issue-card .t { font-size: 0.88rem; line-height: 1.35; margin-bottom: 9px; }
.issue-card .meta { display: flex; align-items: center; gap: 7px; }
.issue-card .key { color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.issue-card .meta .avatar { margin-left: auto; }
.issue-card.dragging { opacity: 0.4; }

/* ---------- table / sheet ---------- */
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters select, .filters input[type=text], .filters input[type=date] {
  padding: 8px 11px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text);
}
.filters input[type=text] { min-width: 210px; }
.tbl-wrap { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th {
  text-align: left; padding: 11px 14px; font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted); border-bottom: 2px solid var(--border); white-space: nowrap;
  position: sticky; top: 0; background: var(--panel);
}
td { padding: 10px 14px; border-bottom: 1px solid #eef0f2; vertical-align: middle; }
tr:hover td { background: #f7f8fa; }
tr.clickable { cursor: pointer; }
td .cell-title { font-weight: 500; }
td select.inline {
  border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 6px; max-width: 140px;
}
td select.inline:hover { border-color: var(--border); background: #fff; }

/* ---------- standup ---------- */
.standup-grid { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
.standup-form label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 13px 0 5px; text-transform: uppercase; letter-spacing: 0.4px; }
.standup-form textarea, .standup-form input {
  width: 100%; border: 1px solid var(--border); border-radius: 7px; padding: 9px 11px; resize: vertical;
}
.standup-form textarea { min-height: 64px; }
.standup-entry { border-bottom: 1px solid #eef0f2; padding: 13px 0; }
.standup-entry:last-child { border-bottom: none; }
.standup-entry .head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.standup-entry .head .d { color: var(--muted); font-size: 0.8rem; margin-left: auto; }
.standup-entry .sec { font-size: 0.87rem; margin: 4px 0; line-height: 1.45; white-space: pre-wrap; }
.standup-entry .sec b { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.3px; }
.standup-entry .sec.blocker { background: var(--red-light); border-radius: 6px; padding: 7px 10px; }

/* ---------- checklist ---------- */
.cl-cat { margin-bottom: 22px; }
.cl-cat h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 8px; }
.cl-item {
  display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 7px;
  box-shadow: var(--shadow); padding: 11px 14px; margin-bottom: 7px;
}
.cl-item input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--green); cursor: pointer; flex-shrink: 0; }
.cl-item .t { flex: 1; font-size: 0.9rem; }
.cl-item.done .t { text-decoration: line-through; color: var(--muted); }
.cl-item .due { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.cl-item .due.late { color: var(--red); font-weight: 700; }
.cl-item select.inline { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 3px 5px; font-size: 0.82rem; color: var(--muted); }
.cl-item select.inline:hover { border-color: var(--border); }
.cl-item .x { background: none; border: none; color: #b6bcc4; font-size: 1rem; padding: 2px 6px; }
.cl-item .x:hover { color: var(--red); }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(9, 30, 66, 0.5); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 10px; width: 100%; max-width: 640px; padding: 24px 26px;
  box-shadow: 0 8px 32px rgba(9, 30, 66, 0.3);
}
.modal h2 { font-size: 1.15rem; margin-bottom: 16px; }
.modal .frow { margin-bottom: 13px; }
.modal .frow label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.4px; }
.modal input, .modal select, .modal textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 7px; padding: 9px 11px;
}
.modal textarea { min-height: 80px; resize: vertical; }
.modal .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .cols3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- issue detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.detail-desc { white-space: pre-wrap; line-height: 1.55; font-size: 0.92rem; color: var(--text); }
.side-field { margin-bottom: 13px; }
.side-field .k { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.side-field select, .side-field input { width: 100%; border: 1px solid var(--border); border-radius: 7px; padding: 7px 10px; background: #fff; }
.comment { display: flex; gap: 10px; margin-bottom: 14px; }
.comment .body { background: #f7f8fa; border-radius: 8px; padding: 9px 13px; font-size: 0.89rem; flex: 1; line-height: 1.45; white-space: pre-wrap; }
.comment .who { font-weight: 700; font-size: 0.8rem; margin-bottom: 3px; }
.comment .when { color: var(--muted); font-weight: 400; font-size: 0.74rem; margin-left: 7px; }
.comment-box { display: flex; gap: 10px; margin-top: 14px; }
.comment-box textarea { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; min-height: 44px; resize: vertical; }

/* ---------- login ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1d2125 0%, #1c2b41 100%);
}
.login-card { background: #fff; border-radius: 14px; padding: 38px 36px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.login-card .logo-big {
  width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(135deg, #579dff, #8f7ee7);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px;
}
.login-card h1 { text-align: center; font-size: 1.35rem; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }
.login-card label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 14px 0 5px; }
.login-card input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; font-size: 0.95rem; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 22px; padding: 12px; font-size: 0.97rem; }
.login-err { background: var(--red-light); color: var(--red); border-radius: 8px; padding: 10px 13px; font-size: 0.87rem; margin-top: 14px; display: none; }

/* ---------- clickable rows / tiles ---------- */
[data-href] { cursor: pointer; }
.stat[data-href]:hover { box-shadow: 0 3px 10px rgba(9, 30, 66, 0.18); }
.bar-row[data-href] { border-radius: 6px; padding: 2px 4px; margin-left: -4px; margin-right: -4px; }
.bar-row[data-href]:hover { background: #f0f1f3; }
.mini-item[data-href] { border-radius: 7px; padding: 4px 6px; margin: -2px -6px 5px; }
.mini-item[data-href]:hover { background: #f0f1f3; }
.rb-readiness[data-href]:hover .rb-num { text-decoration: underline; }

/* ---------- attachments ---------- */
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.att-tile {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 10px; position: relative;
}
.att-tile:hover { border-color: var(--blue); }
.att-preview {
  width: 46px; height: 46px; border-radius: 7px; background: #f0f1f3; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.att-preview img { width: 100%; height: 100%; object-fit: cover; }
.att-icon { color: var(--muted); display: flex; }
.att-meta { min-width: 0; flex: 1; }
.att-name {
  color: var(--text); text-decoration: none; font-size: 0.85rem; font-weight: 600;
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.att-name:hover { color: var(--blue); }
.att-sub { color: var(--muted); font-size: 0.73rem; margin-top: 2px; }
.att-del {
  border: none; background: none; color: #b6bcc4; padding: 3px; display: flex; border-radius: 5px;
}
.att-del:hover { color: var(--red); background: var(--red-light); }

/* ---------- comment actions ---------- */
.c-actions { margin-left: 8px; opacity: 0; display: inline-flex; gap: 3px; }
.comment:hover .c-actions { opacity: 1; }
.c-actions button { border: none; background: none; color: #9aa3ad; padding: 2px 4px; border-radius: 4px; display: inline-flex; }
.c-actions button:hover { color: var(--blue); background: var(--blue-light); }
.c-actions .c-del:hover { color: var(--red); background: var(--red-light); }

/* ---------- popover / bottom sheet ---------- */
.popover {
  position: absolute; z-index: 60; background: #fff; border-radius: 10px;
  box-shadow: 0 8px 30px rgba(9, 30, 66, 0.25); padding: 6px; min-width: 170px;
  display: flex; flex-direction: column; gap: 2px;
}
.popover.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; top: auto; border-radius: 16px 16px 0 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); gap: 6px;
}
.pop-item { background: none; border: none; text-align: left; padding: 8px 10px; border-radius: 7px; display: flex; }
.pop-item:hover, .pop-item.on { background: #f0f1f3; }
.popover.sheet .pop-item { padding: 12px 10px; }

/* ---------- quick add ---------- */
.qadd-wrap { padding: 2px; }
.qadd {
  width: 100%; border: 1px dashed transparent; border-radius: 7px; padding: 8px 10px;
  background: transparent; font-size: 0.85rem; color: var(--text);
}
.qadd::placeholder { color: #98a1ad; }
.qadd:hover { border-color: var(--border); background: #fff; }
.qadd:focus { border: 1px solid var(--blue); background: #fff; outline: none; }

/* ---------- chips ---------- */
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 5px 13px;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-add { border-style: dashed; }

/* ---------- board card buttons ---------- */
.st-btn, .claim-btn {
  border: none; background: #f0f1f3; border-radius: 6px; padding: 3px 6px;
  color: var(--muted); display: inline-flex; align-items: center;
}
.st-btn:hover, .claim-btn:hover { background: var(--blue-light); color: var(--blue); }
.issue-card .meta .st-btn { margin-left: 2px; }
.issue-card .meta .avatar, .issue-card .meta .claim-btn { margin-left: auto; }
button.st-tap { border: none; cursor: pointer; font-family: inherit; }
button.st-tap:hover { filter: brightness(0.95); }
.key-copy {
  border: none; background: none; color: var(--muted); font-weight: 600; font-size: inherit;
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 5px;
}
.key-copy:hover { background: var(--blue-light); color: var(--blue); }
.key-copy svg.ic { opacity: 0; }
tr:hover .key-copy svg.ic { opacity: 1; }

/* ---------- notifications ---------- */
.notif-badge {
  background: var(--red); color: #fff; border-radius: 10px; font-size: 0.68rem; font-weight: 800;
  padding: 1px 6px; margin-left: 6px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px;
}
.notif-item {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 10px; border-radius: 8px;
  text-decoration: none; color: var(--text); border-bottom: 1px solid #eef0f2; position: relative;
  cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f7f8fa; }
.notif-item.unread { background: var(--blue-light); }
.notif-item .nbody { flex: 1; font-size: 0.9rem; line-height: 1.4; }
.notif-item .ndetail { color: var(--muted); font-size: 0.84rem; margin-top: 2px; }
.notif-item .when { color: var(--muted); font-size: 0.75rem; margin-top: 3px; }
.notif-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 8px; flex-shrink: 0; }

/* ---------- standup banner + prefill ---------- */
.standup-banner {
  display: flex; align-items: center; gap: 8px; background: var(--amber-light); color: var(--amber);
  border-radius: 9px; padding: 10px 15px; margin-bottom: 16px; font-size: 0.9rem; font-weight: 600;
}
.standup-banner a { color: var(--amber); font-weight: 800; }
.standup-banner button { margin-left: auto; background: none; border: none; color: var(--amber); display: flex; }
.yday-box { background: #f7f8fa; border-radius: 8px; padding: 10px 13px; margin-bottom: 6px; font-size: 0.85rem; }
.yday-head { font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); margin-bottom: 5px; }
.yday-line { margin: 3px 0; line-height: 1.4; }
.yday-line b { color: var(--muted); }

/* ---------- mentions + links ---------- */
.mention { background: var(--purple-light); color: var(--purple); border-radius: 4px; padding: 0 4px; font-weight: 700; }
.mention-drop {
  position: absolute; bottom: 100%; left: 0; margin-bottom: 6px; background: #fff; border-radius: 10px;
  box-shadow: 0 8px 30px rgba(9, 30, 66, 0.25); padding: 5px; z-index: 60; min-width: 200px;
}
.mention-opt {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none;
  border: none; padding: 7px 9px; border-radius: 7px; font-size: 0.88rem;
}
.mention-opt:hover { background: #f0f1f3; }
.ext-link { color: var(--blue); word-break: break-all; }

/* ---------- toast ---------- */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #1d2125; color: #fff; padding: 11px 20px; border-radius: 8px; font-size: 0.9rem;
  transition: transform 0.25s; z-index: 100; box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sidebar { width: 62px; }
  .sidebar .brand span:not(.logo), .sidebar nav a .txt, .sidebar .userbox .meta-txt { display: none; }
  .sidebar nav a { justify-content: center; }
  .sidebar .userbox { justify-content: center; }
  .sidebar .userbox button { margin-left: 0; }
  .main { margin-left: 62px; padding: 18px 14px; }
  .dash-grid, .standup-grid, .detail-grid { grid-template-columns: 1fr; }
  .modal .cols, .modal .cols3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .board { grid-template-columns: repeat(5, 78vw); scroll-snap-type: x mandatory; }
  .board .col { scroll-snap-align: start; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .release-banner .rb-right { width: 100%; justify-content: space-between; }
  .page-head h1 { font-size: 1.2rem; }
  th:nth-child(8), td:nth-child(8), th:nth-child(9), td:nth-child(9) { display: none; }
}
