:root {
  --ink: #202421;
  --paper: #ffffff;
  --white: #ffffff;
  --muted: #626864;
  --green: #178447;
  --green-dark: #0e6434;
  --green-soft: #e6f2eb;
  --gray-soft: #f2f4f3;
  --line-soft: #cbd2ce;
  --negative: #707873;
  --danger: #9b3030;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: #fff; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.ideas-header { grid-template-columns: minmax(0, auto) minmax(0, 1fr); max-width: 980px; }
.ideas-header nav { justify-self: end; }

.ideas-main { width: min(100%, 980px); min-height: 70vh; margin: 0 auto; padding: 34px 16px 72px; }
.ideas-hero { padding: 8px 0 28px; }
.ideas-hero h1 { max-width: 13ch; margin: 12px 0 16px; font-size: 64px; line-height: .94; overflow-wrap: break-word; }
.ideas-hero > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 19px; font-weight: 700; line-height: 1.5; }

.view-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: 8px; padding: 4px; background: #fff; }
.view-tabs button { min-height: 48px; border: 0; border-radius: 5px; padding: 8px; color: var(--ink); background: transparent; font-weight: 900; }
.view-tabs button[aria-selected="true"] { color: #fff; background: var(--ink); }
.view-tabs button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

#browsePanel, #suggestPanel, #workspacePanel { padding-top: 32px; }
.board-heading, .workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.board-heading h2, .form-intro h2, .workspace-heading h2 { margin: 8px 0 0; font-size: 46px; line-height: 1; }
.board-note { margin: 14px 0 20px; color: var(--muted); font-size: 13px; font-weight: 700; }
.secondary-action, .primary-action, .primary-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 7px; padding: 0 16px; text-align: center; text-decoration: none; font-weight: 900; }
.secondary-action { color: var(--ink); background: #fff; }
.primary-action, .primary-link { color: #fff; background: var(--green); box-shadow: 3px 3px 0 var(--ink); }
.primary-action:disabled, .secondary-action:disabled { cursor: wait; opacity: .62; }
.text-action { min-height: 42px; border: 0; border-bottom: 2px solid var(--ink); padding: 0; color: var(--ink); background: transparent; font-size: 12px; font-weight: 900; }

.board-controls { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .55fr) minmax(150px, .42fr); gap: 10px; margin-bottom: 18px; }
.board-controls label { display: grid; min-width: 0; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 900; }
.board-controls input, .board-controls select { width: 100%; min-width: 0; min-height: 48px; border: 2px solid var(--ink); border-radius: 7px; padding: 0 11px; color: var(--ink); background: #fff; font-size: 16px; font-weight: 750; }

.ideas-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.loading-state, .empty-board, .workspace-empty { grid-column: 1 / -1; border: 2px dashed #aeb7b1; border-radius: 8px; padding: 30px 18px; color: var(--muted); background: var(--gray-soft); text-align: center; font-weight: 800; }
.empty-board button, .empty-board a { display: inline-flex; min-height: 44px; align-items: center; border: 0; border-bottom: 2px solid var(--green); padding: 0; color: var(--ink); background: transparent; text-decoration: none; font-weight: 900; }

.idea-card { display: flex; min-width: 0; flex-direction: column; border: 2px solid var(--ink); border-radius: 8px; padding: 18px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.idea-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scope-badge, .status-badge { display: inline-flex; min-height: 28px; max-width: 100%; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 9px; font-family: "Space Mono", monospace; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.scope-badge { color: #fff; background: var(--green); }
.status-badge { color: var(--ink); background: var(--green-soft); }
.idea-date { color: var(--muted); font-family: "Space Mono", monospace; font-size: 9px; text-align: right; text-transform: uppercase; }
.idea-category { display: inline-flex; width: max-content; max-width: 100%; margin-top: 12px; border-left: 3px solid var(--green); padding: 3px 7px; color: var(--muted); background: #eef3f0; font-size: 11px; font-weight: 900; line-height: 1.25; }
.idea-card h3, .proposal-preview h3 { margin: 14px 0 8px; font-size: 25px; line-height: 1.06; overflow-wrap: anywhere; }
.idea-card h3 a { text-decoration: none; }
.idea-card h3 a:hover { color: var(--green-dark); }
.idea-description { margin: 0; color: #3f4642; font-size: 16px; font-weight: 650; line-height: 1.5; white-space: pre-wrap; }
.clamp-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.idea-byline { margin: 12px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.idea-signal-row { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; color: var(--muted); font-family: "Space Mono", monospace; font-size: 9px; text-transform: uppercase; }
.idea-card .card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 18px; }
.vote-button { min-height: 48px; border: 2px solid var(--ink); border-radius: 7px; padding: 8px 10px; color: var(--ink); background: #fff; font-weight: 900; }
.vote-button strong { margin-left: 4px; color: var(--muted); }
.vote-button.yes[aria-pressed="true"] { color: #fff; background: var(--green); }
.vote-button.no[aria-pressed="true"] { color: #fff; background: var(--negative); }
.vote-button[aria-pressed="true"] strong { color: #fff; }
.vote-meter { display: grid; grid-template-columns: var(--yes-share, 0%) 1fr; height: 7px; overflow: hidden; border-radius: 999px; background: var(--negative); }
.vote-meter span { background: var(--green); }
.vote-summary { margin: 7px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; }

.form-intro { max-width: 760px; }
.form-intro > p:last-child { color: var(--muted); font-weight: 700; line-height: 1.5; }
.draft-toolbar { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.draft-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 850; }
.draft-state > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-soft); }
.draft-state[data-state="saved"] > span { background: var(--green); }
.draft-state[data-state="saving"] > span { background: #d8a421; }
.draft-state[data-state="error"] > span { background: var(--danger); }

.wizard-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 0; padding: 0; list-style: none; }
.wizard-progress li { position: relative; min-width: 0; }
.wizard-progress li::before { position: absolute; top: 18px; right: 50%; left: -50%; height: 3px; background: var(--line-soft); content: ""; }
.wizard-progress li:first-child::before { display: none; }
.wizard-progress li.complete::before, .wizard-progress li.active::before { background: var(--green); }
.wizard-progress button { position: relative; z-index: 1; display: grid; width: 100%; min-width: 0; justify-items: center; gap: 7px; border: 0; padding: 0 4px; color: var(--muted); background: transparent; }
.wizard-progress button span { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid var(--line-soft); border-radius: 50%; background: #fff; font-family: "Space Mono", monospace; font-size: 11px; }
.wizard-progress button strong { overflow: hidden; max-width: 100%; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wizard-progress .active button, .wizard-progress .complete button { color: var(--ink); }
.wizard-progress .active button span { border-color: var(--ink); color: #fff; background: var(--green); box-shadow: 2px 2px 0 var(--ink); }
.wizard-progress .complete button span { border-color: var(--green); color: #fff; background: var(--green); }

.suggestion-form { margin-top: 28px; }
.wizard-step { display: grid; gap: 20px; max-width: 800px; margin: 0 auto; border-top: 3px solid var(--ink); padding-top: 24px; }
.step-heading { display: grid; gap: 7px; }
.step-heading > span { color: var(--green); font-family: "Space Mono", monospace; font-size: 10px; text-transform: uppercase; }
.step-heading h3 { margin: 0; font-size: 36px; line-height: 1; }
.step-heading p { margin: 0; color: var(--muted); font-weight: 700; line-height: 1.45; }
.suggestion-form label, .suggestion-form fieldset { display: grid; min-width: 0; gap: 8px; margin: 0; border: 0; padding: 0; font-size: 14px; font-weight: 900; }
.suggestion-form legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 900; }
.suggestion-form input:not([type="checkbox"]):not([type="radio"]), .suggestion-form textarea, .suggestion-form select { width: 100%; min-width: 0; min-height: 50px; border: 2px solid var(--ink); border-radius: 7px; padding: 12px; color: var(--ink); background: #fff; font-size: 16px; font-weight: 650; outline: none; }
.suggestion-form textarea { resize: vertical; line-height: 1.5; }
.suggestion-form input:focus, .suggestion-form textarea:focus, .suggestion-form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 132, 71, .16); }
.field-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.field-meta span:last-child { flex: 0 0 auto; font-family: "Space Mono", monospace; font-size: 9px; }
.field-help, .optional { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.45; }
.optional { margin-left: 4px; }
.writing-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -10px; }
.writing-tools button { min-height: 40px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 12px; color: var(--ink); background: var(--gray-soft); font-size: 11px; font-weight: 900; }
.writing-tools button:hover { color: #fff; background: var(--ink); }
.scope-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scope-options label { position: relative; }
.scope-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.scope-options span { display: flex; min-height: 50px; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 7px; background: #fff; }
.scope-options input:checked + span { color: #fff; background: var(--ink); }
.scope-options input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.jurisdiction-note { border-left: 5px solid var(--green); padding: 14px 16px; background: var(--green-soft); }
.jurisdiction-note strong { display: block; margin-bottom: 4px; font-size: 15px; }
.jurisdiction-note p { margin: 0; color: #46514a; font-size: 13px; font-weight: 700; line-height: 1.5; }
.similar-ideas { border: 2px solid var(--ink); border-radius: 8px; padding: 16px; background: var(--green-soft); }
.similar-ideas > div:first-child { display: grid; gap: 3px; }
.similar-ideas > div:first-child span { color: var(--muted); font-size: 12px; font-weight: 700; }
#similarIdeasList { display: grid; gap: 8px; margin: 14px 0; }
.similar-match { display: grid; gap: 3px; border: 1.5px solid var(--ink); border-radius: 7px; padding: 12px; background: #fff; text-decoration: none; }
.similar-match span { color: var(--green-dark); font-family: "Space Mono", monospace; font-size: 9px; text-transform: uppercase; }
.similar-match strong { line-height: 1.2; }
.similar-match small { color: var(--muted); line-height: 1.35; }
.proposal-preview { border: 2px solid var(--ink); border-radius: 8px; padding: 18px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.confirmation-row { display: grid !important; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 10px !important; border-top: 1px solid var(--line-soft); padding-top: 15px !important; font-size: 13px !important; line-height: 1.45; }
.confirmation-row input { width: 21px; height: 21px; margin: 0; accent-color: var(--green); }
.publish-account-state { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; align-items: start; border: 2px solid var(--ink); border-radius: 8px; padding: 14px; background: var(--gray-soft); }
.publish-account-state .session-dot { margin-top: 4px; }
.publish-account-state strong { display: block; }
.publish-account-state p { margin: 3px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; }
.wizard-actions { position: sticky; bottom: 10px; z-index: 8; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; max-width: 800px; margin: 26px auto 0; border: 2px solid var(--ink); border-radius: 8px; padding: 8px; background: rgba(255, 255, 255, .97); box-shadow: 4px 4px 0 var(--ink); }
.wizard-actions .primary-action { width: 100%; }
.form-status { min-height: 20px; max-width: 800px; margin: 12px auto 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.form-status[data-state="success"] { color: var(--green-dark); }
.form-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="notice"] { color: #72520d; }
.website-field { position: absolute; left: -10000px; }

.workspace-heading { align-items: start; }
.account-session { display: flex; min-width: 260px; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 8px; padding: 9px; background: var(--gray-soft); }
.session-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--green); }
.account-session p, .account-session strong, .account-session small { display: block; min-width: 0; }
.account-session p { flex: 1; margin: 0; }
.account-session strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-session small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-session button { min-height: 40px; border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 10px; background: #fff; font-size: 11px; font-weight: 900; }
.workspace-signin { max-width: 620px; margin-top: 28px; border-left: 5px solid var(--green); padding: 8px 0 8px 18px; }
.workspace-signin h3 { margin: 0 0 6px; font-size: 27px; }
.workspace-signin p { margin: 0 0 18px; color: var(--muted); font-weight: 700; line-height: 1.45; }
.workspace-content { display: grid; gap: 34px; margin-top: 28px; }
.workspace-section-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.workspace-section-title h3 { margin: 0; font-size: 24px; }
.workspace-section-title span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-family: "Space Mono", monospace; font-size: 10px; }
.workspace-list { display: grid; gap: 10px; margin-top: 12px; }
.workspace-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--line-soft); padding: 10px 0 18px; }
.workspace-card h4 { margin: 4px 0; font-size: 19px; line-height: 1.2; }
.workspace-card p, .workspace-card small { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; }
.workspace-card > div:first-child > span { color: var(--green-dark); font-family: "Space Mono", monospace; font-size: 9px; text-transform: uppercase; }
.workspace-card-actions { display: flex; max-width: 360px; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.workspace-card-actions button, .workspace-card-actions a, .workspace-card-actions select { display: inline-flex; min-height: 40px; align-items: center; border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 10px; color: var(--ink); background: #fff; text-decoration: none; font-size: 11px; font-weight: 900; }
.workspace-card-actions label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.workspace-card-actions select { min-width: 145px; }
.workspace-card-actions .danger-action { color: var(--danger); }

.detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.detail-nav a, .detail-nav button { min-height: 44px; border: 0; border-bottom: 2px solid var(--ink); padding: 0; color: var(--ink); background: transparent; text-decoration: none; font-size: 12px; font-weight: 900; }
.idea-detail-shell { display: grid; gap: 34px; }
.detail-hero { border-top: 4px solid var(--green); padding-top: 22px; }
.detail-hero h1 { max-width: 16ch; margin: 16px 0 14px; font-size: 56px; line-height: .98; overflow-wrap: anywhere; }
.detail-hero > p { max-width: 780px; margin: 0; color: #3f4642; font-size: 18px; font-weight: 650; line-height: 1.55; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 800; }
.detail-vote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 18px 0; }
.detail-vote > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.detail-vote > div:first-child strong { color: var(--green); font-size: 42px; line-height: 1; }
.detail-vote > div:first-child span { color: var(--muted); font-weight: 800; }
.detail-vote-actions { display: grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 8px; }
.detail-vote .vote-meter, .detail-vote .vote-summary { grid-column: 1 / -1; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.detail-grid section { min-width: 0; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 20px; }
.detail-grid section > span { color: var(--green); font-family: "Space Mono", monospace; font-size: 10px; }
.detail-grid h2 { margin: 8px 0; font-size: 25px; }
.detail-grid p { margin: 0; color: #3f4642; font-weight: 650; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-sources h2 { margin: 0 0 12px; font-size: 27px; }
.detail-sources > div { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-sources a { display: grid; min-width: 150px; gap: 2px; border: 1.5px solid var(--ink); border-radius: 7px; padding: 10px 12px; text-decoration: none; font-weight: 900; }
.detail-sources a span { color: var(--muted); font-size: 10px; font-weight: 700; }
.detail-discussion { border-top: 3px solid var(--ink); padding-top: 22px; }
.discussion-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.discussion-heading h2 { margin: 7px 0 0; font-size: 34px; }
.discussion-heading > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.comments-list { display: grid; gap: 12px; margin-top: 20px; }
.comment { border-left: 4px solid var(--green-soft); padding-left: 13px; }
.comment p { margin: 0; color: #3f4642; line-height: 1.5; overflow-wrap: anywhere; }
.comment span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 800; }
.no-comments { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.comment-form { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 20px; }
.comment-form input, .comment-form textarea { width: 100%; min-width: 0; min-height: 48px; border: 2px solid var(--ink); border-radius: 7px; padding: 11px; background: #fff; font-size: 16px; }
.comment-form textarea { resize: vertical; }
.comment-form button { min-height: 48px; border: 2px solid var(--ink); border-radius: 7px; padding: 0 14px; color: #fff; background: var(--ink); font-weight: 900; }
.comment-status { min-height: 18px; margin: 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }

dialog { width: min(calc(100% - 28px), 650px); max-height: calc(100dvh - 28px); overflow-y: auto; border: 2px solid var(--ink); border-radius: 8px; padding: 22px; color: var(--ink); background: #fff; box-shadow: 7px 7px 0 var(--ink); }
dialog::backdrop { background: rgba(32, 36, 33, .66); backdrop-filter: blur(2px); }
.dialog-close { display: block; min-height: 40px; margin: 0 0 0 auto; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 13px; background: #fff; font-size: 11px; font-weight: 900; }
.account-intro h2, .writing-dialog h2 { margin: 8px 0 12px; font-size: 36px; line-height: 1; }
.account-intro > p:last-child { margin: 0 0 20px; color: var(--muted); font-weight: 700; line-height: 1.5; }
.account-form { display: grid; gap: 14px; }
.account-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 900; }
.account-form input { width: 100%; min-width: 0; min-height: 50px; border: 2px solid var(--ink); border-radius: 7px; padding: 0 12px; color: var(--ink); background: #fff; font-size: 16px; font-weight: 750; outline: none; }
.account-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 132, 71, .18); }
.account-form .code-input { height: 62px; text-align: center; font-family: "Space Mono", monospace; font-size: 28px; letter-spacing: 0; }
.code-heading { display: grid; gap: 4px; border-left: 4px solid var(--green); padding-left: 11px; }
.code-heading strong { font-size: 18px; }
.code-heading span { color: var(--muted); font-size: 12px; font-weight: 750; line-height: 1.4; }
.account-status { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.account-status[data-state="success"] { color: var(--green-dark); }
.account-status[data-state="error"] { color: var(--danger); }
.writing-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.writing-comparison > div { border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px; }
.writing-comparison strong { color: var(--green-dark); font-size: 12px; text-transform: uppercase; }
.writing-comparison p { margin: 8px 0 0; line-height: 1.5; white-space: pre-wrap; }
.dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }

.ideas-footer { display: flex; width: min(calc(100% - 32px), 980px); justify-content: space-between; gap: 16px; margin: 0 auto 28px; border-top: 2px solid var(--ink); padding-top: 16px; font-size: 12px; font-weight: 900; text-transform: uppercase; }

.ideas-state-nav { display: flex; gap: 8px; margin: 0 0 28px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ideas-state-nav a { flex: 0 0 auto; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); padding: 8px 13px; font-size: 12px; font-weight: 900; text-decoration: none; }
.ideas-state-nav a[aria-current="true"] { background: var(--ink); color: #fff; }

@media (min-width: 920px) {
  .ideas-header { grid-template-columns: auto minmax(0, 1fr); }
  .ideas-header nav { grid-column: auto; }
}

@media (max-width: 760px) {
  .ideas-hero h1 { font-size: 48px; }
  .board-heading, .workspace-heading { align-items: stretch; flex-direction: column; }
  .board-heading h2, .form-intro h2, .workspace-heading h2 { font-size: 38px; }
  .start-idea-button { width: 100%; }
  .board-controls { grid-template-columns: 1fr 1fr; }
  .search-control { grid-column: 1 / -1; }
  .ideas-list { grid-template-columns: 1fr; }
  .account-session { width: 100%; }
  .workspace-card { grid-template-columns: 1fr; }
  .workspace-card-actions { max-width: none; justify-content: flex-start; }
  .detail-hero h1 { font-size: 44px; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-form button { width: 100%; }
}

@media (max-width: 560px) {
  .ideas-main { padding: 26px 12px 68px; }
  .ideas-header nav { justify-self: stretch; }
  .ideas-hero { padding-top: 0; }
  .ideas-hero h1 { max-width: 12ch; margin-top: 10px; font-size: 39px; }
  .ideas-hero > p:last-child { font-size: 16px; }
  .view-tabs button { min-height: 46px; padding: 6px 3px; font-size: 12px; }
  #browsePanel, #suggestPanel, #workspacePanel { padding-top: 26px; }
  .board-heading h2, .form-intro h2, .workspace-heading h2 { font-size: 34px; }
  .board-controls { grid-template-columns: 1fr; }
  .search-control { grid-column: auto; }
  .idea-card { padding: 15px; box-shadow: 3px 3px 0 var(--ink); }
  .idea-card h3, .proposal-preview h3 { font-size: 23px; }
  .idea-card .card-actions { grid-template-columns: 1fr; }
  .wizard-progress button strong { font-size: 10px; }
  .wizard-progress button span { width: 34px; height: 34px; }
  .wizard-progress li::before { top: 16px; }
  .step-heading h3 { font-size: 30px; }
  .field-meta { align-items: start; flex-direction: column; gap: 3px; }
  .scope-options { grid-template-columns: 1fr; }
  .writing-tools { display: grid; grid-template-columns: 1fr; }
  .writing-tools button { min-height: 44px; border-radius: 7px; }
  .proposal-preview { padding: 15px; box-shadow: 3px 3px 0 var(--ink); }
  .wizard-actions { bottom: 7px; box-shadow: 3px 3px 0 var(--ink); }
  .wizard-actions .secondary-action { padding-inline: 12px; }
  .workspace-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-card-actions label { grid-column: 1 / -1; }
  .workspace-card-actions select { width: 100%; }
  .detail-nav { align-items: stretch; flex-direction: column; }
  .detail-nav a, .detail-nav button { width: max-content; }
  .detail-hero h1 { font-size: 38px; }
  .detail-hero > p { font-size: 16px; }
  .detail-vote { grid-template-columns: 1fr; }
  .detail-vote-actions, .detail-vote .vote-meter, .detail-vote .vote-summary { grid-column: 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .discussion-heading { align-items: start; flex-direction: column; }
  .discussion-heading h2 { font-size: 29px; }
  .writing-comparison { grid-template-columns: 1fr; }
  .dialog-actions { grid-template-columns: 1fr; }
  dialog { padding: 17px; box-shadow: 4px 4px 0 var(--ink); }
  .account-intro h2, .writing-dialog h2 { font-size: 31px; }
  .ideas-footer { width: calc(100% - 24px); font-size: 10px; }
}

@media (max-width: 360px) {
  .ideas-hero h1 { font-size: 34px; }
  .view-tabs button { font-size: 11px; }
  .wizard-progress button strong { white-space: normal; }
  .workspace-card-actions { grid-template-columns: 1fr; }
  .workspace-card-actions label { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
