:root {
  color-scheme: dark;
  --bg: #080909;
  --surface: #10110f;
  --surface-2: #171713;
  --surface-3: #222019;
  --card: #24221e;
  --card-hover: #2d2922;
  --border: #332d23;
  --border-strong: #665439;
  --text: #e9e1d4;
  --muted: #a59b8d;
  --subtle: #766d60;
  --accent: #b59043;
  --accent-strong: #d0aa57;
  --accent-soft: rgba(181, 144, 67, .15);
  --danger: #ff7b72;
  --success: #50c878;
  --shadow: 0 18px 50px rgba(0, 0, 0, .52);
  --radius: 10px;
  --header-height: 58px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--bg); color: var(--text); font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.app-shell { height: 100%; display: grid; grid-template-rows: var(--header-height) 54px 1fr; }
.app-header, .board-header { display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--border); }
.app-header { position: relative; justify-content: space-between; background: rgba(7, 8, 7, .97); }
.app-header::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(181,144,67,.45) 18%, rgba(181,144,67,.45) 82%, transparent); pointer-events: none; }
.board-header { background: linear-gradient(180deg, #11110f, #0d0e0c); gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; color: var(--text); font-family: Georgia, Cambria, "Times New Roman", serif; font-weight: 500; font-size: 17px; letter-spacing: .025em; cursor: pointer; padding: 4px 6px; }
.brand-logo { width: 38px; height: 38px; display: block; border: 1px solid rgba(181,144,67,.72); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(181,144,67,.08), 0 5px 16px rgba(0,0,0,.55); }
.header-actions, .board-identity, .board-tools { display: flex; align-items: center; gap: 8px; }
.header-actions { flex: 1; justify-content: flex-end; }
.sync-status { height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; background: #11120f; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 750; }
.sync-status:hover { border-color: var(--border-strong); color: var(--text); }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.sync-status.syncing .sync-dot { background: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.sync-status.synced .sync-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(80,200,120,.12); }
.sync-status.error .sync-dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(255,123,114,.12); }
.search-box { width: min(360px, 36vw); height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #11120f; color: var(--muted); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 2px 5px; font-size: 11px; color: var(--muted); }
.button, .icon-button { border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.button { min-height: 36px; padding: 7px 12px; font-weight: 650; }
.button:hover, .icon-button:hover { border-color: var(--border-strong); }
.button:active, .icon-button:active { transform: translateY(1px); }
.button-primary { background: linear-gradient(180deg, #c39d4e, #a98138); color: #151109; border-color: #d1ae64; box-shadow: inset 0 1px rgba(255,255,255,.16); }
.button-primary:hover { background: linear-gradient(180deg, #d0aa57, #b68d3d); border-color: #e0bd70; }
.button-quiet { background: var(--surface-3); color: var(--text); }
.button-danger { background: rgba(255, 123, 114, .12); color: var(--danger); border-color: rgba(255, 123, 114, .2); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: transparent; color: var(--muted); font-size: 18px; }
.icon-button.small { width: 28px; height: 28px; font-size: 16px; }
.full { width: 100%; }
.board-identity { min-width: 220px; max-width: 560px; }
.board-switcher { max-width: 340px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-family: Georgia, Cambria, "Times New Roman", serif; font-weight: 750; font-size: 17px; letter-spacing: .015em; }
.board-switcher:hover { background: var(--surface-3); }
.board-switcher #activeBoardName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-dot { width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chevron { color: var(--muted); }
.mod-link { min-width: 0; max-width: 260px; margin-right: 10px; overflow: hidden; color: #d6b66e; font-size: 13px; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.mod-link:hover { color: #f0d493; text-decoration: underline; text-underline-offset: 3px; }
.mod-link::after { content: " ↗"; color: var(--muted); font-size: 10px; }
.view-tabs { align-self: stretch; display: flex; align-items: stretch; gap: 4px; }
.view-tab { position: relative; min-width: 72px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 650; }
.view-tab.triage-tab { min-width: 96px; }
.release-filter { max-width: 150px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); padding: 8px 28px 8px 10px; font: inherit; font-size: 12px; }
.view-tab:hover { color: var(--text); background: rgba(255,255,255,.025); }
.view-tab.active { color: #f0dfbb; }
.view-tab.active::after { content: ""; position: absolute; height: 3px; left: 12px; right: 12px; bottom: 0; border-radius: 3px 3px 0 0; background: var(--accent); }
.board-tools { margin-left: auto; }
.main-content { min-height: 0; position: relative; overflow: hidden; background: radial-gradient(circle at 18% -10%, rgba(105,79,35,.14) 0, transparent 35%), radial-gradient(circle at 85% 110%, rgba(72,56,29,.08), transparent 38%), var(--bg); }

.empty-state { height: 100%; display: grid; place-items: center; padding: 32px; text-align: center; }
.empty-card { width: min(460px, 100%); padding: 42px; border: 1px solid var(--border-strong); border-radius: 16px; background: linear-gradient(145deg, rgba(33,31,25,.96), rgba(15,16,14,.96)); box-shadow: var(--shadow); }
.empty-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); font-size: 34px; }
.empty-card h1 { margin: 0 0 8px; font-family: Georgia, Cambria, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.empty-card p { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }

.board-canvas { height: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 22px; overflow-x: auto; overflow-y: hidden; }
.list-column { width: 294px; max-height: calc(100% - 2px); flex: 0 0 294px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, #191914, #151612); box-shadow: 0 8px 26px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.015); }
.list-column.drag-over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.list-header { display: flex; align-items: center; gap: 7px; padding: 12px 11px 8px 14px; cursor: grab; }
.list-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Georgia, Cambria, "Times New Roman", serif; font-weight: 600; font-size: 15px; letter-spacing: .012em; }
.list-count { color: var(--subtle); font-size: 12px; }
.list-menu { position: relative; }
.list-menu-content { position: absolute; z-index: 20; top: 32px; right: 0; width: 170px; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-3); box-shadow: var(--shadow); }
.list-menu-content button, .menu-popover button { width: 100%; border: 0; border-radius: 6px; background: transparent; text-align: left; padding: 9px; cursor: pointer; }
.list-menu-content button:hover, .menu-popover button:hover { background: rgba(255,255,255,.06); }
.card-list { min-height: 18px; padding: 4px 8px; overflow-y: auto; }
.task-card { position: relative; padding: 0; margin-bottom: 8px; overflow: hidden; border: 1px solid #393126; border-radius: 9px; background: var(--card); cursor: grab; box-shadow: 0 3px 8px rgba(0,0,0,.28); }
.task-card:hover { background: var(--card-hover); border-color: var(--border-strong); }
.task-card.dragging { opacity: .45; }
.task-card.promoted-card { cursor: pointer; }
.card-cover { display: block; width: 100%; max-height: 190px; padding: 0; overflow: hidden; border: 0; border-bottom: 1px solid #51432f; background: #11120f; cursor: zoom-in; }
.card-cover img { display: block; width: 100%; max-height: 190px; object-fit: cover; transition: transform .2s ease, filter .2s ease; }
.card-cover:hover img { transform: scale(1.015); filter: brightness(1.08); }
.card-label { width: 38px; height: 5px; display: block; margin-bottom: 8px; border-radius: 999px; }
.label-blue { background: #579dff; } .label-purple { background: #9f8fef; } .label-green { background: #4bce97; }
.label-yellow { background: #e2b203; } .label-red { background: #f87168; }
.task-title { min-height: 41px; padding: 11px 11px 10px; border-bottom: 1px solid #51432f; background: linear-gradient(145deg, #332f27, #292720); line-height: 1.35; font-weight: 720; overflow-wrap: anywhere; }
.task-card:hover .task-title { background: linear-gradient(145deg, #3d372c, #302d25); }
.task-title-row { display: flex; align-items: flex-start; gap: 7px; }
.task-title-row > span:last-child { min-width: 0; }
.card-body { min-height: 7px; background: rgba(7, 8, 7, .27); }
.card-meta { display: flex; align-items: center; gap: 9px; padding: 9px 10px 10px; color: var(--muted); font-size: 12px; }
.due-date { padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.05); }
.due-date.overdue { color: #ffd1ce; background: rgba(255,123,114,.18); }
.check-count.done { color: var(--success); }
.add-card-button { margin: 3px 8px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; padding: 9px; cursor: pointer; }
.add-card-button:hover { background: var(--surface-3); color: var(--text); }
.add-list-card { width: 294px; flex: 0 0 294px; }
.add-list-button { width: 100%; min-height: 46px; border: 1px dashed var(--border-strong); border-radius: 11px; background: rgba(23,23,19,.72); color: var(--muted); text-align: left; padding: 12px 14px; cursor: pointer; }
.add-list-button:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

.promoted-column { border-color: rgba(75, 206, 151, .35); }
.promoted-note { padding: 0 14px 8px; color: var(--muted); font-size: 11px; }
.stage-marker { width: 9px; height: 9px; flex: none; border-radius: 3px; }
.triage-view { height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.triage-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 22px; border-bottom: 1px solid var(--border); background: rgba(16, 17, 15, .9); }
.triage-intro strong { font-family: Georgia, Cambria, "Times New Roman", serif; color: #ead9b7; font-weight: 600; letter-spacing: .02em; }
.triage-intro div { display: flex; align-items: baseline; gap: 12px; }
.triage-intro span { color: var(--muted); font-size: 12px; }
.triage-canvas { padding-top: 16px; }
.triage-column { border-top-width: 3px; }
.triage-column.stage-raw { border-top-color: #579dff; }
.triage-column.stage-review { border-top-color: #e2b203; }
.triage-column.stage-clean, .triage-column.stage-resolved { border-top-color: #4bce97; }
.triage-column.stage-suggestions { border-top-color: #9f8fef; }
.triage-column.stage-noise { border-top-color: #f87168; }
.fixed-header { cursor: default; }
.purge-stage-button { min-height: 25px; padding: 3px 7px; border: 1px solid rgba(255,123,114,.25); border-radius: 6px; background: rgba(255,123,114,.08); color: #ffaaa4; cursor: pointer; font-size: 10px; font-weight: 800; }
.purge-stage-button:hover:not(:disabled) { border-color: rgba(255,123,114,.62); background: rgba(255,123,114,.16); color: #ffd1ce; }
.purge-stage-button:disabled { border-color: var(--border); background: transparent; color: var(--subtle); cursor: default; opacity: .55; }

.table-view, .calendar-view, .releases-view { height: 100%; padding: 22px; overflow: auto; }
.releases-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.releases-header h2 { margin: 0 0 5px; color: var(--text); font-family: Georgia, serif; font-size: 24px; }
.releases-header p { margin: 0; color: var(--muted); font-size: 12px; }
.release-grid { display: grid; gap: 12px; max-width: 920px; }
.release-card { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); padding: 15px; }
.release-card.published { border-left-color: #4bce97; }
.release-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.release-version { display: flex; align-items: center; gap: 9px; }
.release-version h3 { margin: 0; color: var(--text); font-size: 18px; }
.release-status { border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); padding: 3px 7px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.release-card.published .release-status { background: rgba(75,206,151,.12); color: #9de5bd; }
.release-card time { display: block; margin-top: 6px; color: var(--subtle); font-size: 10px; }
.release-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.release-actions .button { padding: 7px 10px; }
.release-card details { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.release-card summary { color: var(--muted); cursor: pointer; font-size: 12px; }
.release-card-list { display: grid; gap: 5px; margin: 9px 0 0; padding: 0; list-style: none; }
.release-card-list button { width: 100%; border: 0; border-radius: 6px; background: transparent; color: var(--text); padding: 7px 8px; text-align: left; cursor: pointer; }
.release-card-list button:hover { background: rgba(255,255,255,.04); color: var(--accent-strong); }
.release-empty { color: var(--subtle); font-size: 12px; }
.revision-history { max-width: 920px; margin-top: 24px; border-top: 1px solid var(--border); padding-top: 18px; }
.revision-history > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.revision-history h3 { margin: 0; color: var(--text); font-family: Georgia, serif; }
.revision-history p { margin: 0; color: var(--subtle); font-size: 11px; }
.revision-list { display: grid; gap: 7px; margin-top: 12px; }
.revision-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 9px 11px; }
.revision-row strong, .revision-row time { display: block; }
.revision-row strong { font-size: 12px; }
.revision-row time { margin-top: 3px; color: var(--subtle); font-size: 10px; }
.data-panel { max-width: 1240px; margin: 0 auto; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 14px; background: var(--surface-2); color: var(--muted); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.data-table td { padding: 13px 14px; border-top: 1px solid var(--border); }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: rgba(255,255,255,.025); }
.label-pill { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; }
.label-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calendar-header h2 { margin: 0; font-family: Georgia, Cambria, "Times New Roman", serif; color: #ead9b7; font-weight: 500; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.calendar-weekday { padding: 9px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.calendar-day { min-height: 120px; padding: 8px; border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
.calendar-day.muted { background: rgba(0,0,0,.13); color: var(--subtle); }
.calendar-day.today .day-number { background: var(--accent); color: #071020; }
.day-number { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 5px; font-size: 12px; }
.calendar-card { padding: 5px 7px; margin-top: 4px; border-left: 3px solid var(--accent); border-radius: 4px; background: var(--surface-3); font-size: 12px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.popover { position: fixed; z-index: 100; width: 310px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow); }
.popover-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.popover-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.board-list { max-height: 310px; margin-bottom: 10px; overflow-y: auto; }
.board-list-item { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; padding: 10px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.board-list-item:hover, .board-list-item.active { background: var(--surface-3); color: var(--text); }
.board-list-item .board-dot { width: 8px; height: 8px; }
.menu-popover { width: 190px; padding: 6px; }
.account-popover { width: 280px; }
.account-popover .button { margin-top: 8px; }
.account-email { margin: 0 0 5px; overflow: hidden; color: var(--text); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.account-message { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.danger-text { color: var(--danger) !important; }

.priority-badge { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 27px; height: 19px; padding: 0 5px; border: 1px solid transparent; border-radius: 5px; font-size: 10px; font-weight: 850; line-height: 1; letter-spacing: .02em; }
.priority-p0 { color: #ffd7df; background: rgba(173, 46, 72, .28); border-color: rgba(221, 70, 96, .62); }
.priority-p1 { color: #ffd1ce; background: rgba(248, 113, 104, .22); border-color: rgba(248, 113, 104, .55); }
.priority-p2 { color: #fff0a8; background: rgba(226, 178, 3, .19); border-color: rgba(226, 178, 3, .5); }
.priority-p3 { color: #bdf4d4; background: rgba(75, 206, 151, .18); border-color: rgba(75, 206, 151, .48); }

.card-context-menu { position: fixed; z-index: 300; width: 220px; padding: 7px; border: 1px solid var(--border-strong); border-radius: 11px; background: rgba(29, 28, 23, .98); box-shadow: 0 20px 55px rgba(0,0,0,.58); backdrop-filter: blur(10px); }
.card-context-menu button { width: 100%; min-height: 34px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text); padding: 7px 9px; text-align: left; cursor: pointer; }
.card-context-menu button:hover { background: rgba(255,255,255,.07); }
.card-context-menu button > span:first-child { width: 18px; color: var(--muted); text-align: center; }
.context-card-name { padding: 7px 9px 9px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.context-divider { height: 1px; margin: 5px 3px; background: var(--border); }
.context-label { padding: 4px 9px 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.priority-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 0 5px 5px; }
.priority-options .priority-choice { min-width: 0; min-height: 29px; justify-content: center; padding: 4px; border: 1px solid transparent; font-size: 10px; font-weight: 850; text-align: center; }
.priority-options .priority-choice.selected { box-shadow: 0 0 0 2px var(--accent); }
.card-context-menu .resolved-action { color: #9de5bd; }
.card-context-menu .resolved-action span { color: #4bce97 !important; }

.modal { width: min(760px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border-strong); border-radius: 14px; background: linear-gradient(145deg, #1b1a16, #141511); color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(3, 5, 9, .74); backdrop-filter: blur(3px); }
.small-modal { width: min(450px, calc(100vw - 32px)); padding: 18px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-header h2 { margin: 0 0 18px; font-family: Georgia, Cambria, "Times New Roman", serif; color: #ead9b7; font-weight: 500; }
.modal-intro { max-width: 350px; margin: -10px 0 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.auth-message { min-height: 18px; margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.auth-message.error { color: #ffaaa4; }
.auth-message.success { color: #9de5bd; }
.auth-actions { flex-wrap: wrap; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 18px; }
.field-label, .section-label { display: block; margin: 11px 0 7px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.field-hint { margin: 9px 0 0; color: var(--subtle); font-size: 11px; }
.text-input, .description-input { width: 100%; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface); color: var(--text); padding: 9px 10px; }
.text-input:focus, .description-input:focus, .card-title-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.text-input.large { font-size: 16px; padding: 11px; }
.card-modal { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
.card-modal:focus { outline: none; }
.card-modal > form { display: flex; max-height: calc(100vh - 34px); flex-direction: column; }
.card-modal-header { padding: 20px 22px 12px; }
.card-title-wrap { position: relative; flex: 1; padding-left: 32px; }
.card-title-icon { position: absolute; left: 2px; top: 5px; color: var(--muted); font-size: 19px; }
.card-title-input { width: 100%; border: 1px solid transparent; border-radius: 7px; outline: 0; background: transparent; color: #eadfcd; font-family: Georgia, Cambria, "Times New Roman", serif; font-size: 22px; font-weight: 600; padding: 4px 6px; }
.card-location { margin: 2px 7px 0; color: var(--muted); font-size: 12px; }
.card-modal-body { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; min-height: 0; padding: 6px 24px 10px 54px; overflow-y: auto; }
.description-input { min-height: 130px; resize: vertical; line-height: 1.5; }
.description-input.compact { min-height: 76px; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.card-sidebar .button { margin-bottom: 8px; text-align: left; }
.cover-image-actions { margin: -1px 0 10px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.025); }
.cover-url-field { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.cover-image-actions .text-input { width: 100%; min-width: 0; }
.cover-image-actions .button { margin: 7px 0 0; text-align: center; }
.cover-option-divider { display: block; margin: 7px 0 0; color: var(--subtle); font-size: 10px; text-align: center; text-transform: uppercase; }
.cover-image-actions small { display: block; margin-top: 7px; color: var(--subtle); font-size: 10px; line-height: 1.35; }
.file-cover-button { box-sizing: border-box; cursor: pointer; }
.visually-hidden { position: fixed !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.checklist-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.checklist-heading .section-label { margin-bottom: 7px; }
#checklistProgress { color: var(--muted); font-size: 12px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s; }
.checklist-items { margin-top: 8px; }
.checklist-row { display: grid; grid-template-columns: 22px 1fr 28px; align-items: center; gap: 7px; padding: 5px 0; }
.checklist-row input[type="text"] { border: 0; border-bottom: 1px solid transparent; outline: 0; background: transparent; color: var(--text); padding: 5px 2px; }
.checklist-row input[type="text"]:focus { border-bottom-color: var(--accent); }
.checklist-row.completed input[type="text"] { color: var(--muted); text-decoration: line-through; }
.checklist-add { display: flex; gap: 8px; margin-top: 8px; }
.card-modal > form > .modal-actions { padding: 16px 22px 20px; }
.card-detail-section { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); }
.detail-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.detail-section-heading .section-label { margin-top: 0; }
.detail-section-heading > span:last-child { color: var(--subtle); font-size: 11px; text-align: right; }
.bug-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-block { display: block; margin-top: 10px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.attachment-list, .comment-list { display: grid; gap: 8px; }
.attachment-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 30px; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.025); padding: 7px 8px; }
.attachment-row.image-attachment { grid-template-columns: 116px minmax(0, 1fr) 30px; align-items: stretch; }
.attachment-row a { min-width: 0; color: var(--text); text-decoration: none; }
.attachment-row a:hover strong { color: var(--accent-strong); text-decoration: underline; }
.attachment-row strong, .attachment-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-row small { margin-top: 2px; color: var(--subtle); font-size: 10px; }
.attachment-icon { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent-strong); }
.attachment-info { min-width: 0; align-self: center; }
.attachment-preview { width: 116px; height: 74px; padding: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 7px; background: #0d0e0c; cursor: zoom-in; }
.attachment-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.attachment-preview.image-error { display: none; }
.cover-choice { margin-top: 8px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.cover-choice:hover, .cover-choice.active { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.attachment-add { display: grid; grid-template-columns: minmax(120px, .65fr) minmax(180px, 1.35fr) auto; gap: 8px; margin-top: 8px; }
.comment-entry { border-left: 2px solid var(--border-strong); padding: 7px 10px; background: rgba(255,255,255,.02); }
.comment-entry p { margin: 0; line-height: 1.45; white-space: pre-wrap; }
.comment-entry time, .activity-list time { display: block; margin-top: 5px; color: var(--subtle); font-size: 10px; }
.comment-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 8px; }
.comment-add .description-input { min-height: 66px; }
.empty-detail { margin: 3px 0; color: var(--subtle); font-size: 12px; }
.activity-section { margin: 18px 0 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.activity-section summary { color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; }
.activity-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.activity-list li { border-left: 2px solid #5f5238; padding-left: 10px; color: var(--muted); font-size: 12px; }
.image-viewer-dialog { width: min(1180px, calc(100vw - 28px)); height: min(860px, calc(100vh - 28px)); padding: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 13px; background: #090a09; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.78); }
.image-viewer-dialog::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(5px); }
.image-viewer-toolbar { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--border); background: #141511; }
.image-viewer-toolbar > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer-toolbar > span { display: flex; align-items: center; gap: 8px; }
.image-viewer-canvas { height: calc(100% - 54px); display: grid; place-items: center; padding: 18px; overflow: auto; background: radial-gradient(circle, #1b1b18 0, #080908 70%); }
.image-viewer-canvas img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 12px 45px rgba(0,0,0,.55); }

.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 8px; background: #242119; box-shadow: var(--shadow); }
.app-shell ::selection { color: #0c0b08; background: #cfaa59; }
* { scrollbar-color: #6f5930 #11120f; scrollbar-width: thin; }
.hidden { display: none !important; }
.no-results { padding: 40px; text-align: center; color: var(--muted); }

@media (max-width: 760px) {
  .search-box { width: 42px; }
  .search-box input, .search-box kbd { display: none; }
  .sync-status { width: 32px; justify-content: center; padding: 0; }
  .sync-status #syncStatusText { display: none; }
  .board-identity { min-width: 0; flex: none; }
  .mod-link { max-width: 110px; }
  .board-header { gap: 6px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
  .board-header::-webkit-scrollbar { display: none; }
  .board-tools .button { display: none; }
  .view-tab { min-width: 60px; }
  .view-tab.triage-tab { min-width: 82px; }
  .triage-intro { align-items: flex-start; padding: 10px 12px; }
  .triage-intro div { display: block; }
  .triage-intro span { display: block; margin-top: 3px; }
  .card-modal-body { grid-template-columns: 1fr; padding: 6px 20px 0; }
  .card-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .card-sidebar .section-label { grid-column: 1 / -1; }
  .cover-image-actions { grid-column: 1 / -1; }
  .releases-header { align-items: flex-start; flex-direction: column; }
  .bug-meta-grid, .result-grid { grid-template-columns: 1fr; }
  .attachment-add { grid-template-columns: 1fr; }
  .attachment-row.image-attachment { grid-template-columns: 88px minmax(0, 1fr) 30px; }
  .attachment-preview { width: 88px; height: 66px; }
  .comment-add { grid-template-columns: 1fr; }
  .image-viewer-toolbar .button { display: none; }
}
