.wrap.wide { max-width: 1160px; padding-block: 32px 64px; }
.link { background: none; border: 0; font: inherit; cursor: pointer; }
.lede { color: var(--muted); }
.gsi { margin-top: 24px; min-height: 44px; }
.note { color: var(--muted); font-size: .9rem; }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; }
.head .btn { cursor: pointer; }
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.filters .n { font-family: var(--font-data); font-weight: 400; margin-left: 6px; opacity: .8; }
#q { font: inherit; font-size: .95rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; min-width: 0; width: 260px; max-width: 100%; }
.table-wrap { position: relative; overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-alt); }
th[data-sort] { cursor: pointer; user-select: none; }
th[aria-sort="ascending"]::after { content: " ↑"; }
th[aria-sort="descending"]::after { content: " ↓"; }
td.mono { font-family: var(--font-data); font-size: .82rem; }
td .copy { margin-left: 6px; font-size: .78rem; color: var(--brand); padding: 2px 6px; border-radius: 6px; }
td .copy:hover { background: var(--brand-soft); }
.muted { color: var(--muted); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface-alt); color: var(--muted); }
.pill.Approved { background: var(--brand-soft); color: var(--brand); }
.pill.Added { background: var(--brand); color: var(--on-brand); }
.pill.Rejected { color: var(--danger); }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.acts button, .acts a {
  text-decoration: none;
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
}
.acts button.yes { border-color: var(--brand); color: var(--brand); }
.acts button.no { color: var(--danger); }
.acts button[disabled] { opacity: .5; cursor: default; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0;
  background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .9rem;
}
.tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { white-space: nowrap; }
.tabs button { font: inherit; font-weight: 700; cursor: pointer; padding: 10px 16px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--brand); }
.tabs .n:not(:empty) { font-family: var(--font-data); font-size: .78rem; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: var(--on-brand); }
.inbox { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.message { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.message.Done { opacity: .65; }
.message .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .85rem; color: var(--muted); }
.message .meta .from { font-family: var(--font-data); color: var(--fg); }
.message .body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.message .acts { justify-content: flex-start; }
.pill.Problem { background: rgba(255, 138, 92, .18); color: #C2552D; }
.pill.Privacy { background: var(--brand-soft); color: var(--brand); }
.pill.due.soon { background: rgba(255, 138, 92, .18); color: #C2552D; }
.pill.due.overdue { background: #E5484D; color: #fff; }
.pill.App { background: var(--surface-alt); }
[hidden] { display: none !important; }
.pill.Blocker { background: rgba(255, 138, 92, .18); color: #C2552D; }
.inline { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }
#b-q { font: inherit; font-size: .95rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; width: 260px; max-width: 100%; }
.head .btn, .btn { cursor: pointer; }

/* Board */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.column { background: var(--surface-alt); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.column h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 4px 6px; display: flex; gap: 8px; align-items: baseline; }
.column h2 .n { font-family: var(--font-data); font-weight: 400; }
.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: grab; display: flex; flex-direction: column; gap: 6px; }
.tcard:hover, .tcard:focus-visible { border-color: var(--brand); outline: none; }
.tcard.Story { border-left-color: var(--brand); }
.tcard.Bug { border-left-color: #E5484D; }
.tcard.done .title { opacity: .6; }
.tcard.dragging { opacity: .4; }
.tcard .facts, .tcard .foot { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tcard .num { font-family: var(--font-data); font-size: .78rem; color: var(--muted); }
.tcard .title { margin: 0; font-weight: 700; font-size: .92rem; overflow-wrap: anywhere; }
.tcard .parent { margin: 0; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .foot { font-size: .78rem; color: var(--muted); }
.tcard .foot .ref { font-family: var(--font-data); }
.tcard .pill { font-size: .68rem; padding: 1px 8px; }
.pill.type.Story { background: var(--brand-soft); color: var(--brand); }
.pill.type.Bug { background: rgba(229, 72, 77, .14); color: #C7363B; }
.pill.prio.High { background: rgba(255, 138, 92, .18); color: #C2552D; }
.pill.prio.Urgent { background: #E5484D; color: #fff; }
.pill.prio.Low { opacity: .7; }
.pill.Public { border: 1px solid var(--brand); color: var(--brand); background: none; }
#drop-marker { height: 4px; border-radius: 2px; background: var(--brand); list-style: none; }
.add-card { font: inherit; font-size: .85rem; color: var(--muted); background: none; border: 1px dashed var(--line); border-radius: 10px; padding: 6px; cursor: pointer; }
.add-card:hover { color: var(--brand); border-color: var(--brand); }

/* Ticket dialog */
dialog.ticket { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--line); border-radius: 20px; padding: 0; background: var(--bg); color: var(--fg); }
dialog.ticket::backdrop { background: rgba(10, 8, 20, .5); }
dialog.ticket form { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; }
dialog.ticket header, dialog.ticket footer { display: flex; align-items: center; gap: 12px; }
dialog.ticket header h2 { margin: 0; font-size: 1rem; font-family: var(--font-data); flex: 1; }
dialog.ticket footer { justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
dialog.ticket footer .muted { flex: 1; font-size: .8rem; }
dialog.ticket h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
dialog.ticket input:not([type="checkbox"]):not([type="file"]), dialog.ticket select, dialog.ticket textarea {
  font: inherit; font-size: .9rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; min-width: 0; width: 100%; box-sizing: border-box;
}
dialog.ticket .t-title { font-size: 1.15rem; font-weight: 700; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.t-grid label, .t-public { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 700; }
.t-public small { font-weight: 400; }
.t-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.x { font: inherit; font-size: 1.4rem; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.x:hover { color: var(--fg); background: var(--surface-alt); }
.danger { font: inherit; font-size: .85rem; font-weight: 700; background: none; border: 0; color: var(--danger); cursor: pointer; margin-right: auto; }
.editor { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.editor .tools { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); }
.editor .tools button { font: inherit; font-size: .8rem; background: none; border: 0; border-radius: 6px; padding: 4px 8px; cursor: pointer; color: var(--fg); }
.editor .tools button:hover { background: var(--surface-alt); }
.editor .text { min-height: 140px; max-height: 50vh; overflow-y: auto; padding: 10px 14px; outline: none; overflow-wrap: anywhere; }
.editor .text:empty::before { content: "Describe it: what, why, how to check it’s done. Paste screenshots straight in."; color: var(--muted); }
.editor .text h2 { font-size: 1.1rem; } .editor .text h3 { font-size: 1rem; }
.editor .text blockquote { border-left: 3px solid var(--line); margin: 8px 0; padding-left: 12px; color: var(--muted); }
.editor .text pre, .editor .text code { font-family: var(--font-data); font-size: .85rem; background: var(--surface-alt); border-radius: 6px; }
.editor .text pre { padding: 8px 10px; white-space: pre-wrap; }
.editor .text a { color: var(--brand); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.files:empty { display: none; }
.files figure { margin: 0; position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.files img, .files video { display: block; width: 100%; height: 110px; object-fit: cover; background: #000; }
.files figcaption { font-size: .72rem; color: var(--muted); padding: 4px 8px; font-family: var(--font-data); }
.files .x { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1rem; }
.add-file { margin-top: 10px; display: inline-block; cursor: pointer; }
.progress { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .82rem; }
.progress:empty { display: none; }
.progress li { display: flex; gap: 10px; align-items: center; }
.progress .name { flex: 0 1 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-data); }
.progress progress { flex: 0 0 120px; accent-color: var(--brand); }
.progress .failed .what { color: var(--danger); }
#t-children { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#t-children li { display: flex; gap: 8px; align-items: center; }
#t-children li .link { text-align: left; color: var(--fg); flex: 1; overflow-wrap: anywhere; }
#t-children li .link:hover { color: var(--brand); }
#t-children li.done .link { text-decoration: line-through; opacity: .6; }
.add-sub { display: flex; gap: 8px; }
@media (max-width: 640px) { dialog.ticket form { padding: 16px; } .board { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; } .column { scroll-snap-align: start; } }
.files .from-report { border-style: dashed; }
.message .attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.message .attachments a { position: relative; display: block; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.message .attachments img, .message .attachments video { width: 100%; height: 100%; object-fit: cover; display: block; }
.message .attachments .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.4rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }

/* Visitors */
#tab-visitors .head .filters { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; font-size: .82rem; }
.stat .label { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.chart-box { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 8px; }
.chart { display: flex; align-items: stretch; gap: 2px; height: 180px; }
.chart .col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; position: relative; padding-bottom: 20px; }
.chart .bar { background: var(--brand-soft); border-radius: 4px 4px 0 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 1px; }
.chart .bar .in { background: var(--brand); width: 100%; flex: none; }
.chart .tick { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--muted); white-space: nowrap; font-family: var(--font-data); }
.legend { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: .8rem; }
.legend span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.legend .key-views { background: var(--brand-soft); border: 1px solid var(--line); }
.legend .key-visitors { background: var(--brand); margin-left: 8px; }
.tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 16px; }
.top { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 6px 6px; min-width: 0; }
.top h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 12px 6px; }
.top .note { margin: 6px 12px; }
.top table { table-layout: fixed; }
.top th { background: none; padding: 6px 12px; }
.top td { padding: 6px 12px; border-bottom: 0; }
.top th:first-child { width: auto; }
.top .n { width: 72px; text-align: right; font-family: var(--font-data); font-size: .82rem; }
.top td.key { position: relative; overflow: hidden; text-overflow: ellipsis; }
.top td.key .fill { position: absolute; inset: 3px auto 3px 0; background: var(--brand-soft); border-radius: 6px; z-index: 0; }
.top td.key span:last-child { position: relative; font-family: var(--font-data); font-size: .82rem; }
@media (max-width: 640px) { .tops { grid-template-columns: 1fr; } .chart { height: 140px; } }

/* What's new: the versions, the editor and how the app shows it. */
.releases { display: grid; grid-template-columns: 180px minmax(0, 1fr) 280px; gap: 20px; margin-top: 16px; align-items: start; }
.r-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.r-list button { width: 100%; text-align: left; font: inherit; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.r-list button[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.r-list .muted { grid-column: 1 / -1; font-size: .78rem; }
.pill { font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-alt); color: var(--muted); align-self: center; }
.pill.on { background: var(--brand-soft); color: var(--brand); }
.r-editor { display: flex; flex-direction: column; gap: 14px; }
.r-top { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; }
.r-editor label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 700; }
.r-editor input, .r-editor textarea { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.r-editor input { width: 140px; font-family: var(--font-data); }
.r-editor textarea { resize: vertical; line-height: 1.5; }
.r-langs { display: flex; flex-direction: column; gap: 12px; }
.r-lang { display: flex; justify-content: space-between; }
.count { font-family: var(--font-data); font-weight: 400; color: var(--muted); }
.count.over { color: var(--danger); font-weight: 700; }
.r-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.r-preview { position: sticky; top: 16px; }
.phone { border-radius: 32px; border: 1px solid var(--line); background: var(--surface-alt); padding: 120px 10px 10px; }
.phone .sheet { background: var(--surface); border-radius: 24px; padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.phone .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; }
.phone .r-tabs button { font-size: .72rem; padding: 2px 10px; }
.phone h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.phone ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.phone .fallback { list-style: none; margin-left: -18px; color: var(--muted); font-size: .8rem; }
.phone .got { text-align: center; padding: 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: .9rem; }
@media (max-width: 1000px) { .releases { grid-template-columns: 1fr; } .r-preview { position: static; } }
