/* LIGHTHOUSE — 70% quiet surface / 30% maximum accent.
   System fonts only. No external requests or bundled font files. */
/* User reference palette, 2026-10-27: cool paper, cyan light, teal actions.
   Text and action roles stay darker than decorative cyan for readability. */
:root {
  --ease: cubic-bezier(.2,.8,.2,1);
  --side: 204px;
  --radius: 14px;
  --sans: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  --serif: 'Libre Baskerville',Georgia,'Times New Roman',serif;
  --mono: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:has(dialog[open]) {
  overflow: hidden;
}
button,input,select,textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button,a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
button:focus-visible,a:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 4px;
}
input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 1px;
}
::selection {
  background: var(--brand-container);
  color: var(--lh-text);
}
h1,h2,h3,p {
  margin-top: 0;
}
h1,h2,h3 {
  font-weight: 620;
  letter-spacing: -.04em;
}
h1 {
  line-height: 1.04;
}
h2 {
  font-size: 24px;
  line-height: 1.22;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
}
p {
  line-height: 1.7;
}
em.display-serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.055em;
}
svg.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button svg {
  pointer-events: none;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.micro {
  font-size: 10px;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}
.red {
  --accent: var(--red);
  --tint: var(--red-soft);
}
.blue {
  --accent: var(--blue);
  --tint: var(--blue-soft);
}
.green {
  --accent: var(--green);
  --tint: var(--green-soft);
}
.violet {
  --accent: var(--violet);
  --tint: var(--violet-soft);
}
.accent {
  color: var(--accent,var(--blue));
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 220px;
  z-index: 200;
  background: var(--ink);
  color: var(--on-brand);
  padding: 10px 20px;
}
.skip-link:focus {
  top: 8px;
}
.sidebar {
  width: var(--side);
  height: 100dvh;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 26px 14px 14px;
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.logo {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 1px 10px 0;
  font-weight: 760;
  letter-spacing: -.7px;
  font-size: 19px;
  line-height: 1.1;
}
.logo svg {
  width: 26px;
  height: 34px;
}
.logo .v {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .1em;
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.sidebar-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--subtle);
  margin: 25px 13px 12px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  height: 43px;
  display: flex;
  gap: 13px;
  align-items: center;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--muted);
  transition: background .16s,color .16s;
  position: relative;
  font-size: 13px;
}
.nav-item:hover {
  background: var(--soft);
  color: var(--ink);
}
.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 650;
}
.nav-item.active:before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 3px;
  position: absolute;
  left: -14px;
  background: var(--brand);
}
.nav-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
}
.sidebar-art {
  height: 190px;
  position: relative;
  overflow: hidden;
  margin: auto -14px 0;
  pointer-events: none;
}
.sidebar-art img {
  width: 182px;
  position: absolute;
  top: 20px;
  right: -18px;
  opacity: .32;
  mix-blend-mode: multiply;
  transform: rotate(-15deg);
}
.sidebar-manifesto {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  position: relative;
  padding: 20px 25px 0;
  z-index: 1;
  color: var(--muted);
}
.side-bottom {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}


.avatar {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  background: var(--line);
  border-radius: 50%;
  font-weight: 650;
  font-size: 11px;
  overflow: hidden;
  flex-shrink: 0;
  letter-spacing: -.03em;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.small-avatar {
  height: 28px;
  width: 28px;
  font-size: 10px;
}
.side-bottom .icon {
  width: 16px;
  height: 16px;
}


/* Single desktop profile entrance: persistent avatar + name + tier account card. */
.sidebar .logo,.sidebar-label,.sidebar nav,.side-bottom { flex-shrink: 0; }
.sidebar-art { min-height: 0; }
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 70px;
  padding: 13px 10px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.sidebar-account:hover {
  background: var(--soft);
  border-color: var(--line);
}
.sidebar-account.active {
  background: var(--soft);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.sidebar-account:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 3px;
}
.sidebar-account .avatar {
  width: 36px;
  height: 36px;
  background: var(--brand-strong);
  color: var(--on-brand);
  font-size: 12px;
  box-shadow: 0 0 0 2px rgba(var(--lh-white-rgb),.8);
}
.sidebar-account-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.sidebar-account-name {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.015em;
}
.sidebar-account-tier {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-strong);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}
.account-tier-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.side-bottom .sidebar-account-chevron {
  width: 13px;
  height: 13px;
  color: var(--brand-strong);
}

.app-shell {
  margin-left: var(--side);
  min-height: 100vh;
}
.topbar {
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--lh-canvas-rgb),.95);
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(14px);
}
.crumb {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.crumb b {
  color: var(--ink);
  font-weight: 550;
}
.crumb svg {
  width: 14px;
  height: 14px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}


kbd {
  font-family: var(--sans);
  font-size: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  padding: 0 4px;
  color: var(--subtle);
  margin-left: auto;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  transition: background .15s,transform .15s;
}
.icon-btn:hover {
  background: var(--soft);
}
.icon-btn:active {
  transform: scale(.95);
}
.icon-btn .icon {
  width: 19px;
  height: 19px;
}
.icon-btn.outline {
  border-color: var(--line);
  background: var(--elevated);
}
.unread-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  top: 5px;
  right: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--paper);
}
.demo-pill {
  font-size: 10px;
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 20px;
  padding: 4px 8px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.demo-pill:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}
.main {
  max-width: 1570px;
  margin: auto;
  padding: 33px 36px 36px;
  min-height: calc(100vh - 125px);
}
.main:focus {
  outline: 0;
}
.site-footer {
  max-width: 1570px;
  margin: 0 auto;
  padding: 22px 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 10px;
}
.site-footer span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .07em;
}
.site-footer a:hover {
  color: var(--ink);
}
.btn {
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 550;
  transition: background .17s,border-color .17s,transform .17s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--soft);
  border-color: var(--line);
}
.btn:active {
  transform: scale(.98);
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn.primary {
  background: var(--brand-action);
  color: var(--on-brand);
  border-color: var(--brand-action);
}
.btn.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.btn.light {
  background: var(--elevated);
}
.btn.danger {
  color: var(--lh-danger);
  background: var(--lh-dangerSoft);
  border-color: var(--lh-danger);
}
.btn.pill {
  border-radius: 30px;
}
.btn.small-btn {
  height: 33px;
  padding: 0 12px;
  font-size: 11px;
}
.btn.wide {
  width: 100%;
}
.btn.text-btn {
  border-color: transparent;
  height: auto;
  padding: 4px 0;
  font-weight: 500;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.text-link {
  font-size: 12px;
  border: 0;
  padding: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 30px 0 17px;
}
.section-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.045em;
}
.section-head .descriptor {
  font-size: 11px;
  color: var(--muted);
  margin-left: 14px;
  font-weight: 400;
  letter-spacing: 0;
}
.section-head .title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 29px;
}
.page-heading h1 {
  font-size: clamp(32px,3.4vw,52px);
  font-weight: 640;
  letter-spacing: -.065em;
  margin: 0 0 13px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.rule {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.badge {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tint,var(--soft));
  color: var(--accent,var(--muted));
  border-radius: 5px;
  padding: 4px 7px;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
}
.badge .icon {
  width: 12px;
  height: 12px;
}
.badge.neutral {
  background: var(--soft);
  color: var(--muted);
}
.badge.pending {
  color: var(--lh-warning);
  background: var(--lh-warningSoft);
}
.badge.success {
  color: var(--brand-strong);
  background: var(--brand-soft);
}
.badge.error {
  color: var(--lh-danger);
  background: var(--lh-dangerSoft);
}
.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-weight: 750;
  border-radius: 50%;
  background: var(--lh-inverseSurface);
  color: var(--on-brand);
  font-size: 14px;
  letter-spacing: -.08em;
  flex-shrink: 0;
  font-family: var(--sans);
}
.brand-mark.muted-mark {
  background: var(--soft);
  color: var(--ink);
}
.brand-mark.large {
  width: 47px;
  height: 47px;
  font-size: 20px;
}
.brand-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  height: 41px;
  background: var(--elevated);
}
.input-wrap:focus-within {
  border-color: var(--brand);
}
.input-wrap .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.input-wrap input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}
.input-wrap input:focus-visible {
  outline: none;
}
.select {
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--elevated);
  padding: 0 30px 0 12px;
  font-size: 11px;
  color: var(--ink);
  max-width: 100%;
}
.segmented {
  display: flex;
  gap: 3px;
  background: var(--soft);
  border-radius: 8px;
  padding: 3px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  overflow: auto;
}
.segmented button {
  height: 32px;
  padding: 0 14px;
  flex-shrink: 0;
  font-size: 11px;
  border: 0;
  background: none;
  border-radius: 5px;
  color: var(--muted);
  transition: color .15s,background .15s;
}
.segmented button.active {
  background: var(--elevated);
  color: var(--brand-strong);
  box-shadow: 0 1px 4px color-mix(in srgb,var(--lh-shadow) 6.275%,transparent);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  min-width: 0;
}
.field label {
  font-weight: 550;
  font-size: 12px;
}
.field label small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.field input,.field textarea,.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--elevated);
  border-radius: 7px;
  min-height: 43px;
  padding: 10px 12px;
  outline: 0;
  font-size: 13px;
  color: var(--ink);
  transition: border .15s;
}
.field input:focus,.field textarea:focus {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 3px var(--lh-border);
}
.field textarea {
  min-height: 113px;
  resize: vertical;
  line-height: 1.7;
}
.field .hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.field [aria-invalid=true] {
  border-color: var(--red) !important;
}
.field-error,.form-error {
  font-size: 11px;
  color: var(--lh-danger);
  line-height: 1.6;
}
.form-error {
  padding: 11px 14px;
  background: var(--lh-dangerSoft);
  border-radius: 6px;
  margin: 12px 0;
}
.field-error:empty,.form-error:empty {
  display: none;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}
.check-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--lh-accent);
  flex-shrink: 0;
  margin: 2px 0 0;
}
.panel {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.panel h3 {
  margin-bottom: 16px;
}
.panel.soft {
  background: var(--soft);
  border-color: transparent;
}
.info-note {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 13px 15px;
  background: var(--soft);
  border-radius: 7px;
}
.info-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
.info-note.warning {
  color: var(--lh-warning);
  background: var(--lh-warningSoft);
}
.empty-state {
  padding: 70px 20px;
  text-align: center;
  grid-column: 1/-1;
}
.empty-state > .icon {
  /* Direct child only: an inner .btn .icon must keep its 16px control size. */
  width: 22px;
  height: 22px;
  padding: 17px;
  box-sizing: content-box;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 16px;
  color: var(--muted);
}
.empty-state h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.progress-bar {
  height: 4px;
  background: var(--soft);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--brand-gradient);
  border-radius: 4px;
  transition: width .5s var(--ease);
}
.stat-number {
  font-size: 31px;
  letter-spacing: -.055em;
  line-height: 1.2;
  font-weight: 570;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.status-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.toast-stack {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 80px);
  transform: translateX(-50%);
  z-index: 150;
  display: grid;
  gap: 9px;
  width: max-content;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--on-brand);
  padding: 13px 18px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  box-shadow: 0 8px 30px color-mix(in srgb,var(--lh-shadow) 12.549%,transparent);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  animation: toast-in .25s var(--ease);
  pointer-events: auto;
}
.toast .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.toast.error .icon {
  color: var(--lh-danger);
}
.toast button {
  color: inherit;
  background: none;
  border: 0;
  display: grid;
  place-items: center;
  margin-left: 10px;
}
.storage-warning {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--lh-warningSoft);
  color: var(--lh-warning);
  font-size: 12px;
  padding: 7px;
  z-index: 200;
  text-align: center;
}
.mobile-nav {
  display: none;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 21px;
}
.back-btn .icon {
  width: 14px;
  height: 14px;
}
.detail-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .06em;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.dialog-top h2 {
  font-size: 20px;
  margin: 0;
}
.modal {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  padding: 26px;
  max-width: min(570px,calc(100vw - 30px));
  width: 100%;
  max-height: calc(100dvh - 50px);
  overflow: auto;
  box-shadow: 0 25px 100px color-mix(in srgb,var(--lh-shadow) 18.824%,transparent);
}
.modal::backdrop,.drawer::backdrop {
  background: color-mix(in srgb,var(--lh-brand) 21.961%,transparent);
  backdrop-filter: blur(4px);
}

.modal p {
  color: var(--muted);
  font-size: 13px;
}
.modal .actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 23px;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(590px,100%);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 27px 31px;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-left: 1px solid var(--line);
  overflow-y: auto;
  box-shadow: -15px 0 70px color-mix(in srgb,var(--lh-shadow) 8.235%,transparent);
}
.drawer .dialog-top {
  margin-bottom: 27px;
}
.drawer h1 {
  font-size: 34px;
  letter-spacing: -.06em;
  line-height: 1.14;
  margin: 18px 0;
}
.drawer .mini-art {
  height: 160px;
  background: var(--soft);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  margin: 24px 0;
}
.drawer .mini-art img {
  position: absolute;
  width: 230px;
  right: -10px;
  top: -45px;
  mix-blend-mode: multiply;
  opacity: .7;
}
.drawer .mini-art .art-word {
  position: absolute;
  left: 23px;
  bottom: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1.02;
}
.drawer .detail-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.drawer .detail-summary {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 21px 0;
}
.detail-summary b {
  font-weight: 560;
  font-size: 23px;
  letter-spacing: -.04em;
}
.detail-summary small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.detail-summary b small {
  display: inline;
}
.drawer-footer {
  position: sticky;
  bottom: -27px;
  background: var(--paper);
  padding: 18px 0 21px;
  border-top: 1px solid var(--line);
  margin-top: 23px;
  z-index: 2;
}
.drawer-footer .button-row .btn {
  flex: 1;
}
.requirement-list {
  list-style: none;
  padding: 0;
  counter-reset: r;
}
.requirement-list li {
  counter-increment: r;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 15px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.requirement-list li:before {
  content: counter(r,decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  padding-top: 3px;
}
.detail-accordion {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.detail-accordion summary {
  cursor: pointer;
  font-size: 12px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-accordion summary:after {
  content: "+";
  color: var(--muted);
  font-size: 18px;
}
.detail-accordion[open] summary:after {
  content: "−";
}
.detail-accordion p {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}








.spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
.skeleton {
  background: linear-gradient(90deg,var(--soft) 25%,var(--surface) 50%,var(--soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
.page-enter {
  animation: page-enter .3s var(--ease);
}
.reveal {
  opacity: 1;
}
.reveal.is-pending {
  opacity: 0;
  transform: translateY(13px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .48s var(--ease),transform .48s var(--ease);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes page-enter {
  from {
    opacity: .35;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop-check {
  0% {
    transform: scale(.75);
    opacity: 0;
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: none;
    opacity: 1;
  }
}


.logo .v {
  white-space: nowrap;
}

/* Brand is not a task category. Destructive actions retain warning/error colors. */
a:not(.btn):hover { text-decoration-color: var(--brand); }
.sidebar .logo svg { color: var(--ink); }
.nav-count { color: var(--brand-strong); border-color: var(--brand-line); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand-strong); }
