:root {
  color-scheme: dark;
  --page: #131617;
  --bar: #191c1e;
  --well: #1b1e20;
  --raised: #25292b;
  --border: #393e40;
  --text: #f2f4ef;
  --dim: #b7bfbb;
  --muted: #9da6a2;
  --accent: #c6f474;
  --amber: #f4c679;
  --radius: .65rem;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  background: var(--page);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; font-weight: 620; }
button:disabled { opacity: .58; cursor: wait; }
button, input, textarea, select, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); }
input, textarea, select {
  width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: .45rem;
  background-color: var(--page); color: var(--text); padding: .62rem .75rem;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: #829567; }
textarea { resize: vertical; }
select {
  appearance: none; padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 49%, #acb3ae 50%, #acb3ae 68%, transparent 69%),
    linear-gradient(-45deg, transparent 49%, #acb3ae 50%, #acb3ae 68%, transparent 69%);
  background-position: right 1.02rem center, right .75rem center;
  background-repeat: no-repeat; background-size: .29rem .35rem;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.15rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 680; }
h2 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -.035em; }
.topbar { background: var(--bar); border-bottom: 1px solid var(--border); }
.topbar-inner, .workspace { max-width: 100rem; margin-inline: auto; padding-inline: clamp(1.05rem, 4vw, 4rem); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4.25rem; }
.wordmark { display: flex; align-items: center; gap: .65rem; font-size: 1.12rem; font-weight: 730; letter-spacing: -.045em; white-space: nowrap; }
.monogram { display: flex; align-items: end; gap: .15rem; width: 1.9rem; height: 1.5rem; transform: skew(-19deg); }
.monogram i { width: .43rem; background: var(--accent); height: 1rem; }
.monogram i:nth-child(2) { height: 1.4rem; }
.monogram i:nth-child(3) { height: 1.15rem; }
.account, .heading-row, .form-pair, .dialog-heading, .dialog-footer { display: flex; align-items: center; gap: .8rem; }
.account { font-size: .875rem; flex-wrap: wrap; justify-content: flex-end; }
.studio-action { color: var(--accent); background: #273021; border: 1px solid #687c51; border-radius: .45rem; padding: .43rem .75rem; }
.studio-action:hover { background: #333f29; }
.sync { display: inline-flex; align-items: center; gap: .45rem; color: var(--dim); }
.sync::before { content: ""; width: .48rem; height: .48rem; background: var(--amber); border-radius: 50%; }
.sync.online::before { background: var(--accent); }
.identity {
  display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; overflow-wrap: anywhere;
  padding: .3rem .6rem; border: 1px solid var(--border); border-radius: .45rem; background: transparent;
}
.identity:hover { background: var(--raised); border-color: #68716d; }
.identity::after { content: ""; height: .33rem; width: .33rem; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-.1rem) rotate(45deg); }
.primary, .secondary, .quiet, .close { border-radius: .45rem; padding: .6rem .9rem; line-height: 1.45; }
.primary { color: #17220d; background: var(--accent); border: 1px solid var(--accent); }
.primary:hover:enabled { background: #d3ff8c; }
.secondary { background: var(--raised); border: 1px solid #49504c; }
.secondary:hover:enabled { background: #303632; }
.quiet, .close { background: transparent; color: var(--dim); border: 1px solid transparent; }
.quiet { font-size: .875rem; }
.quiet:hover, .close:hover { color: var(--text); background: var(--raised); }
.loading { padding: clamp(2rem, 6vw, 5rem); color: var(--dim); text-align: center; }
.loading button { margin-top: 1rem; }
.auth { padding: clamp(2.2rem, 10vh, 7rem) 1rem; display: grid; justify-items: center; }
.login-panel {
  width: min(100%, 30rem); padding: clamp(1.35rem, 4vw, 2.45rem);
  background: var(--well); border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 .8rem 2.5rem #0002;
}
.panel-line { display: block; width: 2.5rem; height: .25rem; background: var(--accent); margin-bottom: 1.45rem; }
.login-panel h1 { font-size: 2.12rem; }
.login-panel h1 + p { color: var(--dim); margin: .85rem 0 1.5rem; }
.login-panel label, #ticket-form > label, .form-pair label { display: block; font-size: .875rem; font-weight: 620; }
.login-panel label, #ticket-form > label { margin: .9rem 0 .35rem; }
.login-panel > .primary { margin-top: 1.35rem; width: 100%; }
.key-row { display: flex; gap: .45rem; align-items: stretch; }
.key-row input { min-width: 0; font-family: "Cascadia Mono", Consolas, monospace; }
.key-row button { font-size: .875rem; }
.workspace { padding-top: clamp(2rem, 5.2vw, 4.6rem); padding-bottom: 4rem; }
.heading-row { justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.summary { color: var(--dim); margin-top: .55rem; }
.add-ticket { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.plus { position: relative; display: inline-block; width: 1rem; height: 1rem; }
.plus::before, .plus::after { position: absolute; content: ""; width: .78rem; height: 2px; left: .11rem; top: calc(50% - 1px); background: currentColor; }
.plus::after { transform: rotate(90deg); }
.filters { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.completion-report { margin: clamp(1rem, 2.5vw, 2rem) 0 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--well); }
.completion-report summary { display: flex; align-items: center; gap: .65rem; padding: .65rem .9rem; cursor: pointer; border-radius: inherit; }
.completion-report summary::-webkit-details-marker { display: none; }
.completion-report summary::before { content: ""; flex: none; width: .38rem; height: .38rem; border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.completion-report[open] summary::before { transform: rotate(135deg); }
.completion-report summary strong { font-size: .9375rem; }
.completion-report summary span { color: var(--muted); font-size: .8125rem; margin-left: auto; }
.completion-body { padding: .9rem clamp(.35rem, 2vw, 1.25rem) .8rem; border-top: 1px solid var(--border); }
.completion-period { display: flex; align-items: center; gap: .65rem; margin: 0 .35rem .8rem; font-size: .875rem; }
.completion-period label { color: var(--dim); }
.completion-period select { width: auto; min-width: 7rem; padding-block: .4rem; }
.completion-loading { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .6rem; padding-inline: .35rem; font-size: .875rem; color: var(--dim); }
.completion-loading > * { margin-bottom: .75rem; }
.completion-loading button { padding: .35rem .65rem; }
.completion-days { margin: 0; padding: 0; border: 0; min-width: 0; }
.completion-days legend { margin: 0 .35rem .5rem; padding: 0; font-size: .8125rem; color: var(--dim); }
.completion-scroll { overflow-x: auto; padding: 2px; scrollbar-color: #647169 var(--bar); }
.completion-columns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(var(--completion-day-width, 2.7rem), 1fr); gap: .35rem; }
.completion-day { position: relative; min-width: 0; cursor: pointer; }
.completion-face { display: grid; padding: 1.25rem .05rem .35rem; gap: .3rem; text-align: center; border-radius: .3rem; }
.completion-day:hover .completion-face { background: var(--raised); }
.completion-day input:checked + .completion-face { background: #2b3426; }
.completion-day input:focus-visible + .completion-face { outline: 2px solid var(--accent); outline-offset: 0; }
.completion-plot { display: flex; align-items: end; justify-content: center; gap: .35rem; padding-inline: .2rem; height: 4.5rem; border-bottom: 1px solid var(--border); }
.completion-bar { flex: 1; position: relative; max-width: 1.85rem; min-height: 2px; }
.completion-tower { display: block; height: 100%; min-height: 2px; border-radius: .2rem .2rem 0 0; outline: 1px solid #aeb8b0; }
.completion-tower, .completion-swatch { background-image: repeating-linear-gradient(-45deg, transparent 0 2px, #0006 2px 3.5px, #fff5 3.5px 4.5px); }
.completion-reverse { background-image: repeating-linear-gradient(45deg, transparent 0 2px, #0007 2px 3.5px, #fff6 3.5px 4.5px); }
.completion-fine { background-image: repeating-linear-gradient(-45deg, transparent 0 4px, #0008 4px 6px, #fff8 6px 7px); }
.completion-cross { background-image: repeating-linear-gradient(45deg, #0007 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, #fff9 0 1px, transparent 1px 6px); }
.completion-unknown { background-image: repeating-linear-gradient(-45deg, transparent 0 2px, #2d342f 2px 4px); }
.completion-bar.zero, .completion-bar.unmeasured { min-height: 0; border-top: 1px solid var(--muted); background: transparent; }
.completion-bar.zero { box-shadow: 0 1px 0 #9fa8a1; }
.completion-bar.unmeasured { border-top-style: dashed; }
.completion-value { position: absolute; bottom: calc(100% + .12rem); left: 50%; transform: translateX(-50%); font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--text); }
.completion-date { color: var(--dim); font-size: .75rem; line-height: 1.25; }
.completion-calendar { max-width: 34rem; margin: 0 .35rem .85rem; }
.calendar-navigation { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; margin: .2rem 0 .65rem; }
.calendar-navigation select { justify-self: center; width: auto; max-width: 100%; min-width: 0; font-size: .9375rem; font-weight: 620; }
.calendar-arrow { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; }
.calendar-arrow::before { content: ""; width: .44rem; height: .44rem; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
#calendar-prev::before { transform: rotate(-135deg); }
.calendar-arrow:disabled, .calendar-day:disabled { opacity: .42; cursor: default; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.calendar-weekdays { margin-bottom: .3rem; color: var(--muted); font-size: .75rem; text-align: center; }
.calendar-day { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: start; gap: .25rem; min-width: 0; min-height: 3.2rem; padding: .35rem; background: var(--page); border: 1px solid var(--border); border-radius: .35rem; text-align: left; }
.calendar-day:hover:enabled { background: var(--raised); border-color: #70816a; }
.calendar-day[aria-pressed="true"]:enabled { border-color: var(--accent); background: #2b3426; }
.calendar-day:focus-visible { z-index: 1; outline-offset: 1px; }
.calendar-number, .calendar-count { font-variant-numeric: tabular-nums; line-height: 1.25; }
.calendar-number { font-weight: 620; font-size: .875rem; }
.calendar-count { align-self: start; justify-self: end; padding: .03rem .25rem; border-radius: .3rem; font-size: .75rem; background: #34432c; color: var(--accent); }
.calendar-colors { grid-column: 1 / -1; align-self: end; display: flex; gap: 2px; width: 100%; min-width: 0; overflow: hidden; }
.calendar-colors > i { flex: 0 1 .85rem; min-width: 0; height: .28rem; border-radius: .2rem; background: var(--person-color, var(--muted)); box-shadow: inset 0 0 0 .5px #afbab2; }
.calendar-day.unmeasured { border-style: dashed; color: var(--muted); }
@media (min-width: 62rem) {
  .completion-layout.with-calendar { display: grid; grid-template-columns: minmax(24rem,34rem) minmax(0,1fr); align-items: start; gap: clamp(1.25rem,3vw,3rem); }
  .with-calendar .completion-inspector { padding-top: 1.15rem; }
  .with-calendar .completion-key { margin-top: 0; }
}
.completion-detail, .completion-since { margin: .55rem .35rem 0; font-size: .875rem; }
.completion-key { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .8rem; margin: .85rem .35rem 0; padding-bottom: .65rem; border-bottom: 1px solid var(--border); }
.completion-key > p { font-size: .8125rem; color: var(--muted); }
.completion-legend { display: flex; flex-wrap: wrap; gap: .3rem .85rem; margin: 0; padding: 0; list-style: none; }
.completion-legend li, .completion-person { display: flex; align-items: center; gap: .35rem; min-width: 0; overflow-wrap: anywhere; font-size: .875rem; }
.completion-swatch { display: inline-block; flex: none; width: .9rem; height: .9rem; border: 1px solid #afbab2; border-radius: .2rem; }
.completion-legend-count, .completion-person-count { color: var(--dim); font-size: .8125rem; font-weight: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
.completion-detail { font-weight: 620; }
.completion-tickets, .completion-group-tickets { padding: 0; list-style: none; }
.completion-tickets { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .65rem; margin: .65rem .35rem; }
.completion-person { font-weight: 620; }
.completion-group-tickets { margin: .25rem 0 0; }
.completion-group-tickets li { display: flex; align-items: baseline; gap: .5rem; margin-top: .15rem; overflow-wrap: anywhere; font-size: .875rem; }
.completion-tag { display: inline-block; padding: 0 .35rem; border: 1px solid var(--border); border-radius: .3rem; color: var(--dim); font-size: .75rem; white-space: nowrap; }
.completion-tag-note { margin: .55rem .35rem; color: var(--dim); font-size: .8125rem; }
.completion-since { margin-top: .2rem; color: var(--muted); font-size: .8125rem; }
.search { position: relative; width: min(100%, 18rem); }
.search input { padding-left: 2.3rem; }
.search-icon { position: absolute; left: .8rem; top: 50%; width: .78rem; height: .78rem; border: 1.5px solid var(--muted); border-radius: 50%; transform: translateY(-60%); pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: .39rem; height: 1.5px; background: var(--muted); top: 100%; left: 80%; transform: rotate(45deg); }
.filter { display: grid; gap: .25rem; min-width: 9rem; max-width: min(100%, 21rem); }
.filter > span { font-size: .875rem; color: var(--dim); }
.filters input, .filters select { background-color: var(--bar); font-size: .9375rem; min-height: 2.6rem; }
.lanes { display: grid; gap: 1rem; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
.lane { min-width: 0; border: 1px solid #323739; border-radius: var(--radius); background-color: var(--well); overflow: hidden; }
.lane-head { display: flex; align-items: center; gap: .55rem; padding: .9rem 1rem; border-bottom: 1px solid #323739; }
.lane h2 { font-size: 1.05rem; letter-spacing: -.02em; }
.lane-icon { display: inline-block; border: 1.7px dashed #b6beba; border-radius: 50%; width: .88rem; height: .88rem; }
.lane.doing .lane-icon { border: 1.7px solid var(--amber); background: linear-gradient(90deg,var(--amber) 50%,transparent 50%); }
.lane.done .lane-icon { position: relative; border: none; background: var(--accent); }
.lane.done .lane-icon::after { content:""; position: absolute; left: 26%; top: 18%; width: 26%; height: 42%; border: solid #233014; border-width: 0 1.5px 1.5px 0; transform: rotate(44deg); }
.count { font: .81rem/1.6 "Cascadia Mono", Consolas, monospace; padding: 0 .4rem; color: var(--dim); background: var(--raised); border: 1px solid var(--border); border-radius: .35rem; }
.lane-body { display: grid; gap: .65rem; padding: .75rem; }
.empty { display: grid; place-items: center; text-align: center; padding: 1.5rem 1rem; min-height: 7rem; color: var(--muted); font-size: .9375rem; border: 1px dashed var(--border); border-radius: .45rem; }
.ticket { text-align: left; width: 100%; display: grid; gap: .78rem; padding: .95rem; background: var(--raised); border: 1px solid #3c4143; border-radius: .48rem; min-width: 0; }
.ticket:hover { background: #2b3031; border-color: #626d66; }
.ticket-top, .ticket-bottom { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.ticket-top { justify-content: space-between; }
.ticket-id { color: var(--muted); font: .79rem/1.4 "Cascadia Mono", Consolas, monospace; white-space: nowrap; }
.project { font-size: .8rem; font-weight: 500; padding: .12rem .45rem; color: #d2dacf; background: #343a35; border-radius: .32rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ticket-title { font-size: 1rem; font-weight: 620; line-height: 1.35; overflow-wrap: anywhere; }
.ticket-bottom { font-size: .875rem; font-weight: 450; color: var(--dim); overflow-wrap: anywhere; }
.avatar { flex: none; width: 1.55rem; height: 1.55rem; border: 1px solid #535d55; border-radius: 50%; display: grid; place-items: center; background: #333c35; color: #d3dfd1; font-size: .75rem; font-weight: 640; }
.avatar.unassigned { background: transparent; color: var(--muted); border-style: dashed; }
dialog { padding: 0; background: var(--well); color: var(--text); width: min(35rem, calc(100% - 1.5rem)); max-height: 90dvh; border: 1px solid #4a514c; border-radius: .9rem; box-shadow: 0 1.6rem 5rem #0005; }
dialog::backdrop { background: #080b0acc; }
#ticket-form { padding: clamp(1.15rem, 4vw, 1.8rem); }
.dialog-heading { justify-content: space-between; }
.close { width: 2.15rem; height: 2.15rem; padding: 0; font-size: 1.7rem; line-height: 1; }
.edit-meta { font-size: .875rem; color: var(--dim); margin-top: .38rem; overflow-wrap: anywhere; }
.form-pair { margin-top: .9rem; align-items: start; }
.form-pair label { flex: 1; min-width: 0; }
.form-pair select { margin-top: .35rem; font-size: 1rem; font-weight: normal; }
.dialog-footer { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--border); justify-content: flex-end; flex-wrap: wrap; }
.secondary.danger { color: #ffb6b0; border-color: #89514e; }
.secondary.danger:hover:enabled { background: #472e2c; }
#delete-ticket { margin-right: auto; }
#delete-target { margin-top: .75rem; overflow-wrap: anywhere; }
#delete-feedback { margin: 0 0 .75rem; }
.notice, .conflict { border: 1px solid #7e6043; background: #362d24; color: #f6d8b7; padding: .7rem .8rem; margin-top: .9rem; border-radius: .4rem; font-size: .9375rem; overflow-wrap: anywhere; }
.conflict p, .conflict details, .conflict button { margin-top: .45rem; }
.conflict summary { cursor: pointer; }
.conflict dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .65rem; margin: .5rem 0; }
.conflict dt { font-weight: 620; }
.conflict dd { margin: 0; white-space: pre-wrap; min-width: 0; overflow-wrap: anywhere; }
.visually-hidden { position: absolute; height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.board-actions, .auth-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.board-actions { justify-content: flex-end; flex-shrink: 0; }
.heading-row h1 { overflow-wrap: anywhere; }
.auth-toggle { font-size: .9375rem; color: var(--dim); margin-top: 1.1rem; }
.text-btn { border: 0; padding: .2rem 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: .21rem; }
.legacy { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--dim); }
.legacy summary { cursor: pointer; }
.legacy p, .legacy button { margin-top: .8rem; }
#login-form > button { width: 100%; margin-top: 1.2rem; }
.board-directory { max-width: 67rem; }
.directory-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.5rem; margin-bottom: clamp(1.35rem, 3vw, 2rem); }
.directory-meta { display: flex; align-items: center; gap: .3rem; margin-top: .35rem; font-size: .9375rem; color: var(--dim); }
.directory-refresh { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; }
.directory-refresh span { font: 1.4rem/1 "Segoe UI Symbol", system-ui, sans-serif; }
.directory-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.directory-actions .primary { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
#hub-error { margin: 0 0 1rem; }
.board-list { list-style: none; margin: 0; padding: 0; border-block: 1px solid var(--border); }
.board-list:empty { display: none; }
.board-list li + li { border-top: 1px solid var(--border); }
.board-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .95rem; min-height: 4.5rem; padding: .8rem .7rem; color: var(--text); text-decoration: none; }
.board-link:hover, .board-link:focus-visible { background: var(--well); }
.board-link:focus-visible { outline-offset: -2px; }
.board-icon { position: relative; display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border: 1px solid #485144; border-radius: .55rem; background: #232a23; color: #b6d59a; }
.board-icon::before { content: ""; width: 1.12rem; height: .85rem; border: 1.5px solid currentColor; border-radius: .15rem; }
.board-icon::after { content: ""; position: absolute; width: 1px; height: .8rem; transform: translateX(-.2rem); background: currentColor; box-shadow: .4rem 0 currentColor; }
.board-name { overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.35; }
.board-role { color: var(--dim); font-size: .875rem; }
.board-chevron { width: .44rem; height: .44rem; border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); margin: 0 .25rem 0 .4rem; }
.board-link:hover .board-chevron, .board-link:focus-visible .board-chevron { border-color: var(--accent); }
.board-empty { border-top: 1px solid var(--border); padding: 1.65rem .15rem; }
.board-empty h2, .incoming h2 { font-size: 1.15rem; }
.board-empty p { margin-top: .35rem; color: var(--dim); font-size: .9375rem; }
.hub-dialog { width: min(29rem, calc(100% - 1.5rem)); }
.settings label { display: block; margin: 1rem 0 .35rem; font-size: .875rem; font-weight: 620; }
.settings section > button { margin-top: 1rem; }
.incoming { margin-bottom: 1.5rem; padding: 1rem 1.15rem; border: 1px solid #495640; border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--well); }
.invitation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: .7rem; }
.invitation + .invitation { border-top: 1px solid var(--border); padding-top: .7rem; }
.invitation > div { min-width: 0; }
.invitation strong { overflow-wrap: anywhere; }
.invitation p, .settings section > p { font-size: .9375rem; color: var(--dim); }
.settings { padding: clamp(1.15rem,4vw,1.8rem); }
.settings h2 { overflow-wrap: anywhere; min-width: 0; }
.settings .close { flex-shrink: 0; }
.settings section { border-top: 1px solid var(--border); margin-top: 1.2rem; padding-top: 1.2rem; }
.settings section > p { margin-top: .5rem; }
.settings .key-row button { flex-shrink: 0; }
.settings .linked-game { display: grid; gap: .12rem; overflow-wrap: anywhere; }
.linked-game strong { color: var(--text); }
.linked-game span, #game-owner > p:first-child { color: var(--dim); font-size: .9375rem; }
#game-owner > p:first-child, #game-promote, #game-remove, #game-form button { margin-top: .75rem; }
.pair-context, #pair-no-board > p, .pair-success p { margin-top: .75rem; color: var(--dim); overflow-wrap: anywhere; }
.pair-steps { margin: 1.15rem 0 0; padding-left: 1.5rem; }
.pair-steps li { padding-left: .25rem; margin-bottom: .6rem; }
.pair-steps li::marker { color: var(--accent); font-weight: 650; }
.pair-row { display: flex; align-items: stretch; gap: .55rem; flex-wrap: wrap; }
.pair-row input { flex: 1 1 10rem; font-family: "Cascadia Mono", Consolas, monospace; letter-spacing: .14em; }
.pair-success, #pair-no-board button { margin-top: 1rem; }
.pair-success button, .manual-studio button#make-key { margin-top: .7rem; }
.install-link { color: var(--accent); text-underline-offset: .2em; display: inline-block; margin-top: .65rem; }
.manual-studio summary { cursor: pointer; font-weight: 620; }
.manual-studio > p { margin-top: .6rem; color: var(--dim); font-size: .9375rem; }
.member-list { list-style: none; margin: .55rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.member-list li { display: flex; align-items: center; gap: .4rem; max-width: 100%; font-size: .875rem; border-radius: .4rem; border: 1px solid var(--border); background: var(--raised); padding: .25rem .55rem; overflow-wrap: anywhere; }
.member-list .avatar { width: 1.35rem; height: 1.35rem; font-size: .68rem; }
.account-color { width: min(30rem, calc(100% - 1.5rem)); }
.color-help { color: var(--dim); margin-top: .5rem; font-size: .9375rem; }
.color-preview { display: flex; align-items: center; gap: .65rem; margin: 1.25rem 0; padding: .8rem; background: var(--page); border: 1px solid var(--border); border-radius: .5rem; }
.color-preview strong { overflow-wrap: anywhere; }
.color-preview .avatar { width: 2rem; height: 2rem; font-size: .85rem; }
.color-value { margin-left: auto; font: .78rem "Cascadia Mono", Consolas, monospace; color: var(--muted); }
.account-color fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.account-color legend { margin-bottom: .5rem; padding: 0; font-size: .875rem; font-weight: 620; }
.color-palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr)); gap: .4rem; }
.color-option { display: flex; align-items: center; gap: .35rem; padding: .45rem; border: 1px solid var(--border); border-radius: .4rem; font-size: .8125rem; background: var(--raised); }
.color-option:hover:enabled { border-color: var(--muted); }
.color-option[aria-pressed="true"] { border-color: var(--accent); }
.color-sample { display: grid; place-items: center; flex: none; width: 1rem; height: 1rem; border-radius: 50%; }
.color-option[aria-pressed="true"] .color-sample::after { content: ""; border: solid #111; border-width: 0 2px 2px 0; width: .21rem; height: .45rem; transform: translateY(-.06rem) rotate(45deg); }
.settings .custom-color { display: inline-flex; align-items: center; gap: .5rem; margin: .85rem 0 0; color: var(--dim); cursor: pointer; }
.custom-color input { flex: none; width: 2.5rem; height: 1.9rem; padding: .12rem .2rem; cursor: pointer; }
@media (max-width: 52rem) {
  .lanes { gap: .6rem; }
  .lane-head { padding: .85rem .75rem; }
  .lane-body { padding: .5rem; }
  .ticket { padding: .75rem; }
}
@media (max-width: 43rem) {
  .directory-actions { width: 100%; }
  .directory-actions button { padding: .5rem .7rem; font-size: .9375rem; }
  .board-link { grid-template-columns: auto minmax(0, 1fr) auto; gap: .12rem .75rem; padding-inline: .35rem; }
  .board-icon { grid-area: 1 / 1 / span 2; }
  .board-name { grid-area: 1 / 2; align-self: end; }
  .board-role { grid-area: 2 / 2; align-self: start; font-size: .8125rem; }
  .board-chevron { grid-area: 1 / 3 / span 2; }
  .completion-plot { height: 3.75rem; }
  .lanes { grid-template-columns: 1fr; gap: 1rem; }
  .topbar-inner { flex-wrap: wrap; padding-block: .7rem; }
  .account { gap: .25rem .55rem; }
  .heading-row { align-items: start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
  .search { flex-basis: 100%; width: 100%; }
  .filter { min-width: 0; flex: 1; }
  .empty { min-height: 4.2rem; padding: .8rem; }
}
@media (max-width: 30rem) {
  .calendar-days, .calendar-weekdays { gap: .15rem; }
  .calendar-day { display: flex; flex-direction: column; align-items: flex-start; min-height: 3rem; gap: .1rem; padding: .23rem; }
  .calendar-count { padding-inline: .16rem; }
  .calendar-colors { margin-top: auto; }
}
@media (max-width: 25rem) {
  .account { width: 100%; justify-content: flex-start; }
  .form-pair { display: grid; }
}
