/* Tokens, pills, chips and card shadows follow ~/REPO/tangency-quadrant/public/assets/css/app.css */
:root {
  --bg: #ffffff; --ghost: #f1f2f5; --ink: #1c1c1e; --slate: #555a6a; --hairline: #e5e5e5;
  --iris: #3859ff; --iris-tint: #d9e0ff; --amber: #fde050; --danger: #c0352b;
  --radius-lg: 16px; --radius-md: 12px; --radius-sm: 6px; --pill: 160px;
  --shadow-card: 0 0 2px rgba(26,27,30,.08), 0 2px 4px rgba(34,36,40,.06), 0 4px 6px rgba(60,63,73,.04);
  --shadow-pop: 0 8px 12px rgba(26,27,30,.12), 0 4px 6px rgba(60,63,73,.04);
  --font-body: 'Noto Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Roobert PRO Medium', -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; }
button { cursor: pointer; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--hairline); flex: none; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--amber); display: grid; place-items: center; font: 700 15px var(--font-body); }
.brand-title { font: 700 17px var(--font-body); letter-spacing: -.02em; }
.brand-sub { font-size: 13px; color: var(--slate); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.git-pill { font-size: 13px; color: var(--slate); }
.git-pill.warn { color: var(--danger); }
.btn-pill { min-height: 44px; padding: 0 18px; border: none; border-radius: var(--pill); background: var(--iris); color: #fff; box-shadow: var(--shadow-pop); font: 700 14px var(--font-body); }
.btn-pill:disabled { opacity: .6; cursor: progress; }
.btn-ghost { min-height: 36px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--hairline); background: none; color: var(--slate); font: 700 13px var(--font-body); }
.btn-ghost:hover { color: var(--iris); border-color: var(--iris); }

.chips { display: flex; gap: 8px; padding: 12px 20px; overflow-x: auto; flex: none; }
.chip { min-height: 40px; padding: 0 16px; border: none; border-radius: var(--pill); background: var(--ghost); color: var(--slate); display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--font-body); white-space: nowrap; flex: none; }
.chip .count { opacity: .65; }
.chip.active { background: var(--iris); color: #fff; }

.board { flex: 1; min-height: 0; display: flex; gap: 14px; padding: 4px 20px 24px; overflow: auto; scroll-snap-type: x proximity; }
.col { flex: 0 0 290px; display: flex; flex-direction: column; background: var(--ghost); border-radius: var(--radius-lg); padding: 12px; min-height: 120px; scroll-snap-align: start; }
.col.over { outline: 2px dashed var(--iris); outline-offset: -4px; }
.col-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; font: 700 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.col-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); }
.col[data-s="ready"] .col-dot { background: var(--iris); }
.col[data-s="doing"] .col-dot { background: var(--amber); }
.col[data-s="review"] .col-dot { background: var(--iris-tint); box-shadow: 0 0 0 1px var(--iris); }
.col[data-s="done"] .col-dot { background: var(--ink); }
.pill { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--pill); background: var(--iris-tint); color: var(--iris); font: 700 12px/24px var(--font-body); text-align: center; letter-spacing: 0; }
.col-body { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; }
.empty { padding: 16px 8px; text-align: center; font-size: 13px; color: var(--slate); }

.card { background: #fff; border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-card); cursor: grab; display: flex; flex-direction: column; gap: 8px; }
.card.dragging { opacity: .4; }
.card:hover { box-shadow: var(--shadow-pop); }
.card-repo { align-self: flex-start; padding: 4px 9px; border-radius: var(--radius-sm); background: var(--iris-tint); color: var(--iris); font: 700 11px var(--font-body); }
.card-title { font: 500 16px/1.3 var(--font-head); letter-spacing: -.01em; }
.card-meta { font-size: 13px; color: var(--slate); }
.progress { height: 6px; background: var(--ghost); border-radius: var(--pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--iris); border-radius: var(--pill); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--slate); }

.overlay { position: fixed; inset: 0; background: rgba(28,28,30,.42); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 41; box-shadow: var(--shadow-pop); transform: translateX(100%); transition: transform .22s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.panel.open { transform: none; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 8px; }
.panel-title { font: 500 22px/1.25 var(--font-head); letter-spacing: -.02em; }
.panel-close { width: 40px; height: 40px; flex: none; border: none; border-radius: var(--pill); background: var(--ghost); color: var(--slate); font-size: 20px; }
.panel-body { flex: 1; overflow-y: auto; padding: 0 20px 24px; }
.panel-file { font: 400 12px ui-monospace, Menlo, monospace; color: var(--slate); word-break: break-all; }
.label { margin: 22px 0 8px; font: 700 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.field { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: #fff; color: var(--ink); }
.session { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--ghost); border-radius: var(--radius-md); }
.session-info { flex: 1; min-width: 0; font-size: 13px; }
.session-info code { font: 400 12px ui-monospace, Menlo, monospace; }
.session-note { color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row { display: flex; flex-direction: column; gap: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(560px, 92vw); padding: 12px 18px; border-radius: var(--radius-md); background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

@media (max-width: 640px) {
  .col { flex-basis: 84vw; }
  .brand-sub { display: none; }
}

.field.area { min-height: 96px; padding: 10px 12px; resize: vertical; font-family: inherit; }
.badge { margin-left: 8px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--iris-tint); color: var(--iris); font: 700 11px var(--font-body); }
.btn-pill.btn-secondary { background: var(--iris-tint); color: var(--iris); box-shadow: none; }
@media (max-width: 640px) { .topbar-actions .git-pill { display: none; } }
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted, inherit); }
