/* Console pieces added for the real build: sign-in gate, forms, confirmations, states. Loaded after app.css. */
body.booting { background: var(--canvas); }
.noscript { padding: 40px; text-align: center; color: var(--ink-2); }
.skip { position: absolute; left: 8px; top: -40px; z-index: 60; background: var(--btn); color: var(--on-btn); padding: 8px 12px; border-radius: var(--r-s); }
.skip:focus { top: 8px; }
.main:focus { outline: none; }
.org-name, .proj-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.switch .avatar { width: 20px; height: 20px; border-radius: 6px; font-size: 9.5px; }
.sw-it .avatar { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.sw-it.muted { color: var(--ink-2); }
.pop.from-right { transform-origin: top right; }
.nav-scrim { display: none; }
.btn.lg { height: 40px; padding: 0 18px; font-size: 14px; justify-content: center; border-radius: 9px; }
.btn.danger-fill { background: var(--bad); border-color: transparent; color: #fff; }
.btn.danger-fill:hover { filter: brightness(.95); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
.btn.busy { pointer-events: none; opacity: .7; }
.gated { display: inline-flex; cursor: not-allowed; border-radius: var(--r-s); }
.gated:focus-visible { box-shadow: var(--focus); }

/* sign-in gate */
body.signed-out { background: var(--canvas); }
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 24px; }
.gate-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.gate-card h1 { font: 600 26px/1.15 var(--serif); letter-spacing: -.012em; margin: 10px 0 0; }
.gate-card p { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
.gate-card .btn { width: 100%; }
.gate-note { background: var(--accent-wash); color: var(--ink) !important; padding: 10px 12px; border-radius: var(--r-m); font-size: 13px !important; }
.gate-fine { font-size: 12.5px !important; color: var(--ink-3) !important; margin: 6px 0 0 !important; text-align: center; }
.gate-foot { display: flex; gap: 18px; font-size: 12.5px; }
.gate-foot a { color: var(--ink-3); }
.brand-mark.lg { width: 40px; height: 40px; border-radius: 11px; }
.brand-mark.lg svg { width: 24px; height: 24px; }

/* loading */
.loading { display: flex; gap: 6px; justify-content: center; padding: 60px 0; }
.loading i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: dot 1s var(--ease) infinite; }
.loading i:nth-child(2) { animation-delay: .15s; } .loading i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* empty states */
.empty { text-align: center; padding: 44px 24px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; }
.empty-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); margin-bottom: 14px; }
.empty-ic .i { width: 20px; height: 20px; }
.empty-ic.bad { background: var(--bad-wash); color: var(--bad-ink); }
.empty h3 { font: 600 18px/1.3 var(--serif); color: var(--ink); margin: 0 0 6px; }
.empty p { margin: 0; max-width: 52ch; }
.empty-a { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-err { font-size: 12px; color: var(--bad-ink); min-height: 0; }
.field-err:empty { display: none; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.form-err { background: var(--bad-wash); color: var(--bad-ink); padding: 9px 12px; border-radius: var(--r-m); font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.check input { margin: 2px 0 0; accent-color: var(--accent); width: 15px; height: 15px; }
.check span small { display: block; color: var(--ink-3); font-size: 12px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r-m); cursor: pointer; background: var(--panel); }
.choice:hover { border-color: var(--ink-4); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.choice input { margin: 3px 0 0; accent-color: var(--accent); }
.choice b { font-weight: 550; display: block; }
.choice small { color: var(--ink-3); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 6px 0 10px; border-radius: 13px; background: var(--sunk); font-size: 12.5px; }
.chip button { border: 0; background: none; color: var(--ink-3); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; padding: 0; }
.chip button:hover { background: var(--press); color: var(--ink); }
.chip .i { width: 12px; height: 12px; }

/* "the request this makes" */
details.eq { border-top: 1px solid var(--line); padding-top: 10px; }
details.eq summary { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); cursor: pointer; list-style: none; border-radius: var(--r-s); padding: 2px 4px; margin-left: -4px; }
details.eq summary::-webkit-details-marker { display: none; }
details.eq summary:hover { color: var(--ink); }
details.eq .code { margin-top: 8px; font-size: 11.5px; }

/* confirm popover */
.confirm { width: 300px; }
.confirm-b { padding: 14px; }
.confirm-b b { display: block; font-weight: 600; margin-bottom: 4px; }
.confirm-b p { margin: 0; color: var(--ink-2); font-size: 12.5px; }
.confirm-a { justify-content: flex-end; margin-top: 12px; }

/* account popover */
.acct { width: 260px; padding: 6px; }
.acct-h { display: flex; gap: 10px; align-items: center; padding: 10px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-h .avatar { width: 32px; height: 32px; font-size: 12px; }
.acct-h b { display: block; font-weight: 600; }
.acct-h small { color: var(--ink-3); font-size: 12px; }
.acct-l a, .acct-l button { display: flex; align-items: center; gap: 9px; width: 100%; height: 32px; padding: 0 8px; border: 0; background: none; border-radius: 7px; color: var(--ink); font-size: 13px; }
.acct-l a:hover, .acct-l button:hover { background: var(--hover); text-decoration: none; }
.acct-l .i { color: var(--ink-3); }

/* palette extras */
.pal-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-none { padding: 28px 16px; text-align: center; color: var(--ink-2); }
.pal-tip { margin-left: auto; }

/* modal width */
.modal.wide { width: min(640px, calc(100vw - 24px)); }
.modal-b .say { font-size: 15px; }
.modal-steps { display: flex; gap: 6px; padding: 14px 20px 0; }
.modal-steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); }
.modal-steps i.on { background: var(--accent); }

/* toast kinds */
.toast.bad .i { color: #FF9B83; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }

/* key-value lists inside pages */
.kv-panel dl.kv { grid-template-columns: 180px 1fr; padding: 4px 0; }
.who { font-size: 12px; color: var(--ink-3); }

@media (max-width: 760px) {
  .nav-scrim { display: block; position: fixed; inset: 48px 0 0 0; background: var(--scrim); z-index: 31; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-scrim.on { opacity: 1; pointer-events: auto; }
  .form-row { grid-template-columns: 1fr; }
  .gate-card { padding: 28px 20px 22px; }
  .org-name { display: none; }
  .proj-name { max-width: 140px; }
  .pal-tip { display: none; }
  .kv-panel dl.kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv-panel dl.kv dd { margin-bottom: 8px; }
}
/* overview */
a.stat { color: inherit; text-decoration: none; display: block; }
a.stat:hover { background: var(--hover); text-decoration: none; }
.stat-l .i { width: 14px; height: 14px; color: var(--ink-3); }
.stat-v.muted-v { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; padding: 6px 0 3px; }
.ov { margin-top: 16px; }
.mt { margin-top: 12px; }
.plan-n { font: 600 18px/1.3 var(--serif); margin: 0 0 4px; }
.panel-b > p { margin: 0; }
ol.feed { list-style: none; margin: 0; padding: 6px 8px 8px; }
ol.feed li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; padding: 8px; border-radius: 8px; }
ol.feed li p { margin: 2px 0 0; }
ol.feed time { font-size: 12px; color: var(--ink-3); padding-top: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.feed-ic .avatar { width: 24px; height: 24px; font-size: 10px; }
.avatar.sq { border-radius: 6px; }
img.avatar { object-fit: cover; background: var(--sunk); }
.gate-note.bad { background: var(--bad-wash); color: var(--bad-ink) !important; }
.nav a.credit-chip { display: block; height: auto; padding: 10px 10px 9px; margin: 0 2px 4px; font-weight: 400; }
.nav a.credit-chip:hover { background: var(--canvas); }
.sheet { visibility: hidden; transition: transform .32s var(--ease), visibility 0s linear .32s; }
.sheet.on { visibility: visible; transition: transform .32s var(--ease), visibility 0s; }
.row-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.tbl tbody tr[data-sa] { cursor: default; }
.tbl tbody tr[data-sa]:hover td { background: none; }
.secret .btn { font: 500 12.5px/1 var(--sans); }
.modal { max-height: calc(100vh - 24px); overflow-y: auto; }
@media (max-width: 760px) { .top-r #theme { display: none; } .top { gap: 6px; padding: 0 8px; } .switch { padding: 0 6px; min-width: 0; } }
.pal-in input:focus-visible, .pal-in input:focus { box-shadow: none; outline: none; }
@media (max-width: 760px) { .shell { grid-template-columns: minmax(0, 1fr); } .top { min-width: 0; } .switch { min-width: 0; overflow: hidden; flex: 0 1 auto; } .switch .avatar { flex: none; } .proj-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .main { min-width: 0; } }
/* the site wordmark */
.brand { padding: 4px 8px; }
.mark { display: inline-flex; align-items: baseline; column-gap: .28em; font: 600 15px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.mark i { display: inline-block; width: .28em; height: .28em; border-radius: 50%; background: var(--verm); margin-left: .08em; }
.mark.lg { font-size: 22px; margin-bottom: 8px; }
@media (max-width: 760px) { .top .mark { flex-direction: column; row-gap: 2px; font-size: 12.5px; align-items: flex-start; } .top .crumb-sep.hide-s { display: none; } }
/* overview balance */
.ov { align-items: stretch; }
.ov-side > .panel:last-child { flex: 1; }
.ov-row { margin-top: 16px; }
/* row motion */
.tbl tbody tr.fresh td { animation: rowin .32s var(--rise), fresh 1.8s var(--ease); }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }
.tbl tbody tr.leaving td { animation: rowout .24s var(--ease) forwards; }
@keyframes rowout { to { opacity: 0; transform: translateX(14px); } }
.feed li.fresh { animation: rowin .32s var(--rise); }
.seg button[aria-checked="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgba(35, 31, 43, .12), 0 0 0 .5px var(--line-2); }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn[aria-disabled="true"]:hover { background: var(--panel); }
.btn.primary[aria-disabled="true"]:hover { background: var(--btn); }
.choice:has(input:checked) small { color: var(--ink-2); }
.panel-h { min-height: 40px; }
.ov > .panel.ov-main:not(:has(ol.feed)) { align-self: start; }
.sw-it[aria-current="true"] .t small, .pal-it[aria-selected="true"] .d { color: var(--ink-2); }
