/* Community ideas. All selectors are scoped; no global theme or drawer overrides. */
.ideas-page {
  --idea-surface: var(--surface, #171923);
  --idea-soft: var(--surface-1, #1d202d);
  --idea-text: var(--text, #eef0fa);
  --idea-muted: var(--muted, #a6adc3);
  --idea-border: var(--border, var(--border-color, #303344));
  --idea-accent: var(--accent, #a59af3);
  --idea-action: color-mix(in srgb, var(--idea-accent) 45%, #443598);
  --idea-tint: color-mix(in srgb, var(--idea-accent) 8%, var(--idea-surface));
  --idea-green: #409f82;
  --idea-red: #d26376;
  --main-maxw: 1240px;
  width: min(1240px, calc(100% - 64px));
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 0 calc(var(--taskbar-h, 72px) + 40px + env(safe-area-inset-bottom));
  color: var(--idea-text);
  font-size: 15px;
  line-height: 1.55;
  isolation: isolate;
}
.ideas-page *, .ideas-page *::before, .ideas-page *::after { box-sizing: border-box; }
.ideas-page [hidden] { display: none !important; }
.ideas-page h1, .ideas-page h2, .ideas-page h3, .ideas-page p { margin-top: 0; }
.ideas-page h1, .ideas-page h2, .ideas-page h3 { color: var(--idea-text); line-height: 1.25; }
.ideas-page a { color: inherit; text-decoration: none; }
:where(.ideas-page) :is(button,input,textarea,select) { font: inherit; }
.ideas-page button, .ideas-page summary { cursor: pointer; }
.ideas-page svg { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.ideas-page :focus-visible { outline: 3px solid var(--idea-accent); outline-offset: 4px; }
.ideas-page button:disabled { opacity: .55; cursor: wait; }
.ideas-page [aria-busy="true"] { cursor: progress; }
.ideas-page ::selection { color: var(--idea-text); background: color-mix(in srgb, var(--idea-accent) 28%, var(--idea-surface)); }
.ideas-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ideas-muted { color: var(--idea-muted); }
.ideas-small { font-size: 12px; line-height: 1.65; }
.ideas-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; font-size: 12px; color: var(--idea-muted); overflow-wrap: anywhere; }
.ideas-breadcrumb a:hover { color: var(--idea-text); }
.ideas-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--idea-muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.ideas-kicker svg { width: 16px; height: 16px; }
.ideas-hero { position: relative; display: grid; grid-template-columns: 1fr 330px; align-items: center; gap: 20px; padding: 42px 44px; overflow: hidden; border: 1px solid var(--idea-border); border-radius: 26px; background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--idea-accent) 11%, transparent), transparent 58%), var(--idea-surface); }
.ideas-hero__copy { position: relative; z-index: 1; }
.ideas-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--idea-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--idea-green) 12%, transparent); margin-right: 4px; }
.ideas-hero h1 { font-size: clamp(30px, 3.45vw, 46px); font-weight: 750; letter-spacing: -.045em; line-height: 1.17; margin: 18px 0 16px; }
.ideas-hero h1 em { font-style: normal; color: color-mix(in srgb, var(--idea-accent) 70%, var(--idea-text)); }
.ideas-hero__copy>p { max-width: 560px; margin: 0 0 27px; color: var(--idea-muted); font-size: 14px; line-height: 1.8; }
.ideas-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ideas-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 12px; padding: 10px 17px; font-size: 12px; font-weight: 700; line-height: 1.4; text-align: center; transition: background .15s, border-color .15s, transform .15s; }
.ideas-button--primary { background: var(--idea-action); color: #fff !important; box-shadow: 0 4px 14px color-mix(in srgb, var(--idea-action) 15%, transparent); }
.ideas-button--primary:hover { background: color-mix(in srgb, var(--idea-action) 87%, #fff); transform: translateY(-1px); }
.ideas-button--soft { background: var(--idea-soft); border-color: var(--idea-border); color: var(--idea-text); }
.ideas-button--soft:hover { background: var(--idea-tint); border-color: color-mix(in srgb, var(--idea-accent) 50%, var(--idea-border)); }
.ideas-button--danger { background: color-mix(in srgb, var(--idea-red) 10%, var(--idea-surface)); color: color-mix(in srgb, var(--idea-red) 80%, var(--idea-text)) !important; border-color: color-mix(in srgb, var(--idea-red) 30%, var(--idea-border)); }
.ideas-button--danger:hover { background: color-mix(in srgb, var(--idea-red) 18%, var(--idea-surface)); }
.ideas-button--full { width: 100%; }
.ideas-text-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; color: var(--idea-muted) !important; font-size: 12px; }
.ideas-text-link:hover { color: var(--idea-text) !important; }
.ideas-text-link svg { width: 16px; height: 16px; }
.ideas-hero .ideas-text-link { margin-left: 6px; }
.ideas-hero__art { position: relative; height: 235px; display: grid; place-items: center; user-select: none; }
.ideas-orbit { position: absolute; width: 234px; height: 234px; border: 1px solid color-mix(in srgb, var(--idea-accent) 13%, transparent); border-radius: 50%; }
.ideas-orbit--inner { width: 175px; height: 175px; border-style: dashed; transform: rotate(-15deg); }
.ideas-art-bulb { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 32px; background: linear-gradient(145deg,color-mix(in srgb, var(--idea-accent) 23%,var(--idea-surface)),var(--idea-soft)); border: 1px solid color-mix(in srgb,var(--idea-accent) 26%,var(--idea-border)); color: color-mix(in srgb,var(--idea-accent) 70%,var(--idea-text)); box-shadow: 0 20px 60px color-mix(in srgb,var(--idea-accent) 9%,transparent); transform: rotate(-10deg); }
.ideas-art-bulb svg { width: 57px; height: 57px; stroke-width: 1.1; }
.ideas-art-tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 11px 13px; font-size: 10px; font-weight: 600; border: 1px solid var(--idea-border); border-radius: 11px; background: var(--idea-surface); box-shadow: 0 8px 25px #0000000d; white-space: nowrap; }
.ideas-art-tag svg { width: 15px; height: 15px; color: var(--idea-accent); }
.ideas-art-tag--top { top: 13px; left: 16px; transform: rotate(-5deg); }
.ideas-art-tag--bottom { bottom: 10px; right: -9px; transform: rotate(4deg); }
.ideas-art-tag--bottom svg { color: var(--idea-green); }
.ideas-art-spark { position: absolute; right: 25px; top: 38px; color: var(--idea-accent); }
.ideas-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 23px 2px 27px; margin-bottom: 20px; border-bottom: 1px solid var(--idea-border); }
.ideas-stats>a,.ideas-stats>div { display: grid; grid-template-columns: 38px auto; column-gap: 12px; padding: 3px 22px; align-items: center; }
.ideas-stats>a:first-child { padding-left: 0; }
.ideas-stats>*+* { border-left: 1px solid var(--idea-border); }
.ideas-stat-icon { display: grid; place-items: center; grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; color: var(--idea-muted); background: var(--idea-surface); border: 1px solid var(--idea-border); }
.ideas-stats strong { line-height: 1.2; font-size: 22px; font-weight: 700; }
.ideas-stats strong+span { margin-top: 2px; color: var(--idea-muted); font-size: 11px; }
.ideas-stats a:hover .ideas-stat-icon { color: var(--idea-accent); border-color: var(--idea-accent); }
.ideas-layout { display: grid; grid-template-columns: minmax(0,1fr) 292px; gap: 28px; align-items: start; }
.ideas-feed,.ideas-detail-main,.ideas-rail { min-width: 0; }
.ideas-section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.ideas-section-head h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.035em; }
.ideas-section-head>svg { color: var(--idea-muted); }
.ideas-icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; padding: 0; color: var(--idea-muted); border: 1px solid var(--idea-border); border-radius: 11px; background: var(--idea-surface); }
.ideas-icon-button:hover { color: var(--idea-text); background: var(--idea-tint); }
.ideas-tabs { display: flex; align-items: stretch; gap: 4px; padding-bottom: 0; margin-bottom: 18px; border-bottom: 1px solid var(--idea-border); overflow: auto; scrollbar-width: thin; }
.ideas-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; padding: 10px 11px 13px; font-size: 12px; color: var(--idea-muted) !important; border-bottom: 2px solid transparent; white-space: nowrap; }
.ideas-tab span { display: grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--idea-soft); font-size: 9px; font-weight: 700; }
.ideas-tab.is-active { color: var(--idea-text) !important; border-bottom-color: var(--idea-accent); font-weight: 700; }
.ideas-tab.is-active span { background: var(--idea-tint); color: var(--idea-text); }
.ideas-tab:hover { color: var(--idea-text) !important; }
.ideas-filters { display: grid; grid-template-columns: minmax(150px,1fr) 142px 156px 42px; gap: 8px; align-items: center; margin: 0; }
.ideas-search { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 11px; height: 42px; background: var(--idea-surface); border: 1px solid var(--idea-border); border-radius: 11px; color: var(--idea-muted); }
.ideas-search svg { width: 16px; height: 16px; }
.ideas-search:focus-within { outline: 2px solid var(--idea-accent); outline-offset: 2px; }
.ideas-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; font-size: 11px; color: var(--idea-text); background: transparent; box-shadow: none; }
.ideas-search input:focus-visible { outline: 0; }
.ideas-filters select { width: 100%; height: 42px; background: var(--idea-surface); border: 1px solid var(--idea-border); border-radius: 11px; padding: 0 9px; color: var(--idea-muted); font-size: 11px; }
.ideas-page input::placeholder,.ideas-page textarea::placeholder { color: var(--idea-muted); opacity: .8; }
.ideas-feed-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 15px 1px; color: var(--idea-muted); font-size: 11px; }
.ideas-feed-note>div { display: flex; gap: 10px; }
.ideas-feed-note a.is-active,.ideas-feed-note a:hover { color: var(--idea-text); text-decoration: underline; text-underline-offset: 4px; }
.ideas-list { display: grid; gap: 14px; }
.ideas-card { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 21px; padding: 23px; background: var(--idea-surface); border: 1px solid var(--idea-border); border-radius: 18px; transition: border-color .18s; }
.ideas-card:hover { border-color: color-mix(in srgb,var(--idea-accent) 27%,var(--idea-border)); }
.ideas-card__body { min-width: 0; }
.ideas-card__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 11px; }
.ideas-category { font-size: 11px; font-weight: 600; color: var(--idea-muted); }
.ideas-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid color-mix(in srgb,var(--idea-accent) 12%,var(--idea-border)); border-radius: 6px; background: var(--idea-tint); color: color-mix(in srgb,var(--idea-accent) 65%,var(--idea-text)); font-size: 10px; font-weight: 650; white-space: nowrap; }
.ideas-status>span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.ideas-status--review { background: color-mix(in srgb,#d5aa53 9%,var(--idea-surface)); color: color-mix(in srgb,#c6953d 75%,var(--idea-text)); border-color: color-mix(in srgb,#c6953d 24%,var(--idea-border)); }
.ideas-status--accepted,.ideas-status--done { background: color-mix(in srgb,var(--idea-green) 10%,var(--idea-surface)); color: color-mix(in srgb,var(--idea-green) 80%,var(--idea-text)); border-color: color-mix(in srgb,var(--idea-green) 20%,var(--idea-border)); }
.ideas-status--rejected { color: color-mix(in srgb,var(--idea-red) 80%,var(--idea-text)); background: color-mix(in srgb,var(--idea-red) 8%,var(--idea-surface)); border-color: color-mix(in srgb,var(--idea-red) 20%,var(--idea-border)); }
.ideas-status--withdrawn { color: var(--idea-muted); background: var(--idea-soft); }
.ideas-card h3 { font-size: 17px; letter-spacing: -.025em; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; }
.ideas-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ideas-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 12px; line-height: 1.75; color: var(--idea-muted); margin-bottom: 15px; }
.ideas-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--idea-muted); font-size: 11px; overflow-wrap: anywhere; }
.ideas-author-initial { display: grid; place-items: center; width: 21px; height: 21px; background: var(--idea-tint); color: color-mix(in srgb,var(--idea-accent) 70%,var(--idea-text)); border-radius: 7px; font-size: 9px; font-weight: 700; }
.ideas-comment-count { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ideas-comment-count svg { width: 14px; height: 14px; }
.ideas-card__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid color-mix(in srgb,var(--idea-border) 70%,transparent); }
.ideas-quorum { display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; row-gap: 6px; font-size: 10px; color: var(--idea-muted); }
.ideas-quorum b { font-weight: 500; }
.ideas-page progress { display: block; appearance: none; height: 4px; border: none; border-radius: 9px; overflow: hidden; color: var(--idea-accent); background: color-mix(in srgb,var(--idea-muted) 14%,var(--idea-surface)); }
.ideas-page progress::-webkit-progress-bar { background: color-mix(in srgb,var(--idea-muted) 14%,var(--idea-surface)); border-radius: 9px; }
.ideas-page progress::-webkit-progress-value { background: color-mix(in srgb,var(--idea-accent) 80%,var(--idea-text)); border-radius: 9px; }
.ideas-page progress::-moz-progress-bar { background: var(--idea-accent); border-radius: 9px; }
.ideas-quorum progress { width: 54px; }
.ideas-deadline,.ideas-deadline a { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--idea-muted); }
.ideas-deadline svg { width: 12px; height: 12px; }
.ideas-ballot form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.ideas-vote { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 60px; padding: 12px 8px; border: 1px solid var(--idea-border); border-radius: 11px; color: var(--idea-muted); background: var(--idea-soft); }
.ideas-vote strong { font-size: 20px; font-weight: 700; color: var(--idea-text); line-height: 1.2; font-variant-numeric: tabular-nums; }
.ideas-vote span { font-size: 10px; }
.ideas-vote svg { width: 16px; height: 16px; }
.ideas-vote:hover { border-color: var(--idea-accent); background: var(--idea-tint); }
.ideas-vote.is-selected { border-color: color-mix(in srgb,var(--idea-accent) 55%,var(--idea-border)); background: color-mix(in srgb,var(--idea-accent) 15%,var(--idea-surface)); color: var(--idea-text); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--idea-accent) 15%,transparent); }
.ideas-vote--against.is-selected { border-color: var(--idea-red); background: color-mix(in srgb,var(--idea-red) 12%,var(--idea-surface)); }
.ideas-vote-remove { grid-column: 1/-1; min-height: 26px; font-size: 10px !important; padding: 0; color: var(--idea-muted); border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.ideas-ballot--compact form { grid-template-columns: 1fr; gap: 6px; }
.ideas-ballot--compact .ideas-vote { display: grid; grid-template-columns: auto auto; gap: 2px 1px; justify-content: center; padding: 7px 3px; min-height: 60px; }
.ideas-ballot--compact .ideas-vote strong { font-size: 18px; }
.ideas-ballot--compact .ideas-vote span { grid-column: 1/-1; text-align: center; font-size: 9px; }
.ideas-ballot--compact .ideas-vote-remove { font-size: 8px !important; line-height: 1.5; overflow-wrap: anywhere; }
.ideas-ballot__counts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.ideas-ballot__counts>span { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; padding: 12px 4px; border-radius: 11px; background: var(--idea-soft); color: var(--idea-muted); border: 1px solid var(--idea-border); }
.ideas-ballot__counts strong { color: var(--idea-text); font-size: 20px; }
.ideas-ballot__counts small { font-size: 10px; }
.ideas-ballot__counts svg { width: 15px; height: 15px; }
.ideas-ballot--compact .ideas-ballot__counts { grid-template-columns: 1fr; }
.ideas-ballot--compact .ideas-ballot__counts small { flex-basis: 100%; text-align: center; }
.ideas-ballot>p { margin: 12px 0 0; }
.ideas-rail { display: grid; gap: 18px; }
.ideas-panel { border: 1px solid var(--idea-border); border-radius: 18px; background: var(--idea-surface); padding: 24px; }
.ideas-panel h2 { font-size: 17px; letter-spacing: -.025em; margin-bottom: 20px; }
.ideas-panel h3 { font-size: 14px; }
.ideas-rules { background: linear-gradient(155deg,var(--idea-tint),var(--idea-surface) 75%); }
.ideas-rules>.ideas-kicker { font-size: 9px; margin-bottom: 14px; }
.ideas-steps { list-style: none; margin: 0; padding: 0; }
.ideas-steps li { display: flex; align-items: flex-start; gap: 13px; padding: 0 0 22px; }
.ideas-steps li:last-child { padding-bottom: 0; }
.ideas-steps li>span { display: grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; border-radius: 8px; color: var(--idea-muted); border: 1px solid var(--idea-border); font-size: 9px; font-weight: 600; }
.ideas-steps strong { font-size: 12px; font-weight: 650; }
.ideas-steps p { margin: 5px 0 0; font-size: 12px; line-height: 1.75; color: var(--idea-muted); }
.ideas-rule-note { display: flex; gap: 8px; padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--idea-border); }
.ideas-rule-note svg { width: 15px; height: 15px; color: var(--idea-muted); margin-top: 3px; }
.ideas-rule-note p { margin: 0; font-size: 10px; line-height: 1.7; color: var(--idea-muted); }
.ideas-tip>svg { color: var(--idea-accent); margin-bottom: 14px; }
.ideas-tip h3 { margin-bottom: 10px; }
.ideas-tip p { font-size: 11px; line-height: 1.8; color: var(--idea-muted); margin-bottom: 13px; }
.ideas-tip p:last-child { margin-bottom: 0; }
.ideas-tip .ideas-text-link { font-size: 10px; }
.ideas-tip p a { text-decoration: underline; text-underline-offset: 3px; }
.ideas-admin-callout { display: grid; gap: 12px; padding: 23px; border-radius: 18px; border: 1px solid color-mix(in srgb,var(--idea-accent) 35%,var(--idea-border)); background: var(--idea-tint); }
.ideas-admin-callout>svg { color: var(--idea-accent); }
.ideas-admin-callout strong { font-size: 15px; }
.ideas-admin-callout span { display: flex; justify-content: space-between; gap: 6px; color: var(--idea-muted); font-size: 10px; }
.ideas-admin-callout span svg { width: 15px; height: 15px; }
.ideas-empty { padding: 52px 25px; display: flex; align-items: center; flex-direction: column; text-align: center; border: 1px dashed var(--idea-border); border-radius: 18px; background: var(--idea-surface); }
.ideas-empty__icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px; color: var(--idea-accent); background: var(--idea-tint); margin-bottom: 21px; }
.ideas-empty__icon svg { width: 29px; height: 29px; }
.ideas-empty h3 { font-size: 21px; margin-bottom: 12px; }
.ideas-empty h1 { margin-top: 10px; font-size: 27px; }
.ideas-empty p { max-width: 420px; color: var(--idea-muted); font-size: 13px; margin-bottom: 24px; }
.ideas-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 24px; color: var(--idea-muted); font-size: 12px; }
.ideas-page-heading { margin: 30px 0; }
.ideas-page-heading h1 { font-size: clamp(27px,3.8vw,39px); margin: 12px 0; font-weight: 700; letter-spacing: -.045em; }
.ideas-page-heading>p { max-width: 680px; color: var(--idea-muted); font-size: 14px; }
.ideas-editor { padding: 32px; }
.ideas-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ideas-form label { display: block; font-size: 12px; font-weight: 700; margin-top: 13px; }
.ideas-form label:first-of-type { margin-top: 0; }
.ideas-form label>span { color: var(--idea-muted); font-size: 11px; font-weight: 400; margin-left: 6px; }
.ideas-form input:not([type="hidden"]),.ideas-form textarea,.ideas-form select { display: block; width: 100%; min-width: 0; background: var(--idea-soft); border: 1px solid var(--idea-border); border-radius: 11px; padding: 12px 14px; font-size: 13px; line-height: 1.7; color: var(--idea-text); box-shadow: none; }
.ideas-form input:not([type="hidden"]),.ideas-form select { min-height: 46px; }
.ideas-form textarea { resize: vertical; min-height: 100px; }
.ideas-field-note { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--idea-muted); margin-top: -4px; }
.ideas-editor-notice { display: flex; align-items: flex-start; gap: 11px; background: var(--idea-tint); border: 1px solid var(--idea-border); border-radius: 13px; padding: 16px; margin: 15px 0 7px; }
.ideas-editor-notice svg { color: var(--idea-accent); width: 17px; height: 17px; margin-top: 3px; }
.ideas-editor-notice p { margin: 0; color: var(--idea-muted); font-size: 11px; line-height: 1.8; }
.ideas-editor-notice strong { color: var(--idea-text); font-weight: 600; }
.ideas-form-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; margin-top: 7px; }
.ideas-draft-state { color: var(--idea-muted); font-size: 10px; }
.ideas-alert { display: flex; align-items: flex-start; gap: 12px; padding: 20px; background: var(--idea-tint); border: 1px solid color-mix(in srgb,var(--idea-accent) 25%,var(--idea-border)); border-radius: 14px; color: var(--idea-text); font-size: 13px; }
.ideas-alert p { margin-bottom: 0; }
.ideas-alert--error,.ideas-inline-error { color: color-mix(in srgb,var(--idea-red) 80%,var(--idea-text)); }
.ideas-alert--error { background: color-mix(in srgb,var(--idea-red) 7%,var(--idea-surface)); border-color: color-mix(in srgb,var(--idea-red) 30%,var(--idea-border)); margin-bottom: 24px; }
.ideas-inline-error { font-size: 12px; margin: 0; }
.ideas-similar { padding: 16px; border: 1px solid var(--idea-border); border-radius: 11px; background: var(--idea-tint); font-size: 11px; }
.ideas-similar a { display: flex; justify-content: space-between; gap: 14px; padding-top: 10px; color: var(--idea-text); overflow-wrap: anywhere; }
.ideas-similar a:hover { text-decoration: underline; }
.ideas-similar small { color: var(--idea-muted); flex-shrink: 0; }
.ideas-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.ideas-detail-main { display: grid; gap: 22px; }
.ideas-proposal { padding: 34px; }
.ideas-proposal h1 { font-size: clamp(26px,3vw,36px); line-height: 1.25; letter-spacing: -.04em; margin: 22px 0 20px; overflow-wrap: anywhere; }
.ideas-proposal .ideas-card__meta { font-size: 12px; }
.ideas-proposal .ideas-author-initial { width: 28px; height: 28px; border-radius: 9px; }
.ideas-proposal-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.95; margin: 28px 0 20px; }
.ideas-result { display: flex; align-items: flex-start; gap: 17px; padding: 25px; border-radius: 18px; border: 1px solid color-mix(in srgb,var(--idea-green) 30%,var(--idea-border)); background: color-mix(in srgb,var(--idea-green) 6%,var(--idea-surface)); }
.ideas-result--rejected { border-color: color-mix(in srgb,var(--idea-red) 30%,var(--idea-border)); background: color-mix(in srgb,var(--idea-red) 5%,var(--idea-surface)); }
.ideas-result__icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; flex-shrink: 0; background: color-mix(in srgb,var(--idea-green) 12%,var(--idea-surface)); color: var(--idea-green); }
.ideas-result--rejected .ideas-result__icon { color: var(--idea-red); background: color-mix(in srgb,var(--idea-red) 10%,var(--idea-surface)); }
.ideas-result h2 { font-size: 19px; margin: 7px 0 11px; }
.ideas-result p { margin-bottom: 10px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.ideas-result time { font-size: 10px; color: var(--idea-muted); }
.ideas-voting-panel .ideas-section-head h2 { font-size: 15px; margin: 0; }
.ideas-voting-panel .ideas-section-head { margin-bottom: 20px; }
.ideas-voting-panel .ideas-ballot form { gap: 7px; }
.ideas-voting-panel .ideas-vote { display: grid; grid-template-columns: auto auto; column-gap: 3px; }
.ideas-voting-panel .ideas-vote span { grid-column: 1/-1; }
.ideas-vote-metrics { display: grid; gap: 9px; margin: 24px 0 20px; }
.ideas-vote-metrics>div { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.ideas-vote-metrics>div>span { color: var(--idea-muted); }
.ideas-vote-metrics strong { font-weight: 600; }
.ideas-vote-metrics small { font-size: 9px; color: var(--idea-muted); font-weight: 400; }
.ideas-vote-metrics progress { width: 100%; margin-bottom: 9px; height: 5px; }
.ideas-support-progress::-webkit-progress-value { background: var(--idea-green) !important; }
.ideas-support-progress::-moz-progress-bar { background: var(--idea-green) !important; }
.ideas-voting-deadline { display: flex; align-items: center; gap: 10px; padding-top: 17px; border-top: 1px solid var(--idea-border); margin-bottom: 14px; }
.ideas-voting-deadline>svg { color: var(--idea-muted); width: 18px; height: 18px; }
.ideas-voting-deadline strong,.ideas-voting-deadline span { display: block; font-size: 11px; }
.ideas-voting-deadline span { margin-top: 3px; font-size: 10px; color: var(--idea-muted); }
.ideas-voting-panel>p { font-size: 10px; margin: 0; }
.ideas-discussion .ideas-section-head h2 { font-size: 20px; }
.ideas-count { color: var(--idea-muted); font-size: 13px; margin-left: 6px; }
.ideas-discussion>p { font-size: 12px; line-height: 1.7; }
.ideas-comment-form { margin: 20px 0 5px; }
.ideas-guest-note { font-size: 13px; padding: 13px 0; color: var(--idea-muted); }
.ideas-guest-note a { color: var(--idea-text); text-decoration: underline; }
.ideas-comment { display: flex; gap: 12px; padding: 25px 0; border-bottom: 1px solid var(--idea-border); scroll-margin-top: 24px; }
.ideas-comment:last-child { padding-bottom: 0; border-bottom: 0; }
.ideas-comment__avatar { flex: 0 0 33px; width: 33px; height: 33px; display: grid; place-items: center; background: var(--idea-tint); color: var(--idea-muted); font-size: 12px; font-weight: 600; border-radius: 10px; }
.ideas-comment__body { flex: 1; min-width: 0; }
.ideas-comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 3px 0 9px; font-size: 12px; }
.ideas-comment__head time { color: var(--idea-muted); font-size: 10px; }
.ideas-comment__body p { font-size: 13px; white-space: pre-wrap; line-height: 1.8; overflow-wrap: anywhere; margin-bottom: 8px; }
.ideas-text-button { border: 0; background: none; padding: 5px 0; font-size: 10px !important; }
.ideas-text-button:hover { text-decoration: underline; }
.ideas-comment-empty { color: var(--idea-muted); font-size: 12px; text-align: center; padding-top: 26px; }
.ideas-decision-panel { border-color: color-mix(in srgb,var(--idea-accent) 35%,var(--idea-border)); }
.ideas-decision-panel>.ideas-kicker { margin-bottom: 14px; }
.ideas-decision-panel h2 { margin-bottom: 13px; }
.ideas-decision-panel>p { color: var(--idea-muted); font-size: 12px; }
.ideas-decision-panel .ideas-button { font-size: 11px; padding: 10px 12px; }
.ideas-history ol { list-style: none; margin: 0; padding: 0; }
.ideas-history li { position: relative; display: flex; align-items: flex-start; gap: 13px; padding-bottom: 22px; }
.ideas-history li:last-child { padding-bottom: 0; }
.ideas-history li:not(:last-child)::before { content: ''; position: absolute; top: 10px; bottom: 0; left: 3px; width: 1px; background: var(--idea-border); }
.ideas-history-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; background: color-mix(in srgb,var(--idea-muted) 50%,var(--idea-surface)); flex-shrink: 0; }
.ideas-history li:first-child .ideas-history-dot { background: var(--idea-accent); box-shadow: 0 0 0 4px var(--idea-tint); }
.ideas-history strong { font-size: 11px; }
.ideas-history p { font-size: 11px; line-height: 1.7; color: var(--idea-muted); margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ideas-history small { font-size: 9px; color: var(--idea-muted); }
.ideas-withdraw summary { font-size: 12px; color: var(--idea-muted); }
.ideas-withdraw[open] summary { margin-bottom: 15px; }
.ideas-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px; }
.ideas-settings-grid label { margin-bottom: 10px; }
.ideas-settings-grid p { margin: 8px 0 0; font-size: 10px; }
.ideas-toast { position: fixed; bottom: calc(var(--taskbar-h,72px) + 20px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 9000; max-width: min(480px,calc(100vw - 32px)); padding: 13px 19px; border-radius: 13px; border: 1px solid color-mix(in srgb,var(--idea-accent) 45%,var(--idea-border)); background: var(--idea-surface); box-shadow: 0 12px 35px #0003; color: var(--idea-text); font-size: 13px; }
.ideas-confirm { width: min(430px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; margin: auto; padding: 29px; border: 1px solid var(--idea-border); border-radius: 20px; background: var(--idea-surface); color: var(--idea-text); box-shadow: 0 25px 100px #0005; }
.ideas-confirm::backdrop { background: #090e20a8; backdrop-filter: blur(3px); }
.ideas-confirm h2 { margin-top: 12px; font-size: 24px; }
.ideas-confirm p { font-size: 14px; color: var(--idea-muted); margin-bottom: 24px; }
.ideas-confirm .ideas-actions { justify-content: flex-end; }
@media (min-width: 1440px) { .ideas-page { padding-top: 38px; } }
@media (max-width: 1100px) {
  .ideas-page { width: calc(100% - 40px); }
  .ideas-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 20px; }
  .ideas-hero { padding: 34px; grid-template-columns: 1fr 260px; }
  .ideas-art-tag--bottom { font-size: 8px; right: -7px; }
  .ideas-filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 42px; }
  .ideas-search { grid-column: 1/-1; }
  .ideas-card { padding: 20px; gap: 16px; }
  .ideas-panel { padding: 21px; }
  .ideas-tabs { gap: 0; }
  .ideas-tab { padding-left: 8px; padding-right: 8px; font-size: 11px; }
}
@media (max-width: 820px) {
  .ideas-layout { grid-template-columns: minmax(0,1fr); }
  .ideas-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ideas-admin-callout { grid-column: 1/-1; }
  .ideas-hero { grid-template-columns: 1fr 215px; padding: 30px; }
  .ideas-hero__art { transform: scale(.8); transform-origin: center; }
  .ideas-hero h1 { font-size: 33px; }
  .ideas-stats>a,.ideas-stats>div { grid-template-columns: auto; padding: 3px 18px; gap: 5px; }
  .ideas-stat-icon { display: none; }
  .ideas-filters { grid-template-columns: minmax(160px,1fr) 145px 155px 42px; }
  .ideas-search { grid-column: auto; }
  .ideas-detail-rail { grid-template-columns: 1fr; }
  .ideas-layout--detail { display: flex; flex-direction: column; }
  .ideas-detail-main,.ideas-detail-rail { width: 100%; }
  .ideas-detail-rail { display: contents; }
  .ideas-voting-panel { order: -1; width: 100%; }
  .ideas-detail-main { order: -2; display: contents; }
  .ideas-proposal { order: -3; width: 100%; }
  .ideas-detail-main>.ideas-result,.ideas-detail-main>.ideas-alert { order: -2; width: 100%; }
  .ideas-decision-panel { order: 0; width: 100%; }
  .ideas-discussion { order: 1; width: 100%; }
  .ideas-history { order: 2; width: 100%; }
  .ideas-withdraw { order: 3; width: 100%; }
  .ideas-voting-panel .ideas-vote { display: flex; }
}
@media (max-width: 600px) {
  .ideas-page { width: calc(100% - 28px); padding-top: 19px; }
  .ideas-breadcrumb { font-size: 10px; margin-bottom: 18px; }
  .ideas-hero { display: block; padding: 26px 22px; border-radius: 20px; }
  .ideas-hero h1 { font-size: 32px; }
  .ideas-hero__copy>p { font-size: 12px; line-height: 1.85; margin-bottom: 22px; }
  .ideas-hero__art { display: none; }
  .ideas-hero .ideas-text-link { margin: 0; font-size: 11px; }
  .ideas-kicker { font-size: 9px; letter-spacing: .095em; }
  .ideas-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 0; padding: 24px 1px; margin-bottom: 20px; }
  .ideas-stats>a,.ideas-stats>div { grid-template-columns: 31px auto; column-gap: 10px; row-gap: 1px; padding: 0 14px; }
  .ideas-stats>*:nth-child(3) { border-left: 0; padding-left: 0; }
  .ideas-stat-icon { display: grid; width: 31px; height: 31px; border-radius: 10px; }
  .ideas-stat-icon svg { width: 16px; height: 16px; }
  .ideas-stats strong { font-size: 20px; }
  .ideas-stats strong+span { font-size: 9px; }
  .ideas-section-head h2 { font-size: 21px; }
  .ideas-tabs { margin-bottom: 15px; }
  .ideas-tab { padding: 10px 9px 12px; font-size: 11px; }
  .ideas-filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 42px; }
  .ideas-search { grid-column: 1/-1; height: 44px; }
  .ideas-search input { font-size: 13px; }
  .ideas-filters select { font-size: 11px; }
  .ideas-feed-note { font-size: 10px; }
  .ideas-card { grid-template-columns: 49px minmax(0,1fr); padding: 17px 14px; gap: 13px; border-radius: 15px; }
  .ideas-card__top { gap: 7px; }
  .ideas-status { font-size: 9px; padding: 4px 6px; }
  .ideas-card h3 { font-size: 16px; line-height: 1.45; }
  .ideas-excerpt { font-size: 12px; line-height: 1.8; }
  .ideas-card__meta { font-size: 10px; gap: 5px; }
  .ideas-card__footer { margin-top: 13px; padding-top: 12px; gap: 9px; }
  .ideas-quorum { gap: 7px; font-size: 9px; }
  .ideas-quorum progress { width: 30px; }
  .ideas-ballot--compact .ideas-vote strong { font-size: 16px; }
  .ideas-ballot--compact .ideas-vote svg { width: 13px; height: 13px; }
  .ideas-ballot--compact .ideas-vote span { font-size: 9px; }
  .ideas-ballot--compact .ideas-vote { padding: 6px 2px; min-height: 54px; }
  .ideas-rail { grid-template-columns: 1fr; }
  .ideas-layout { gap: 22px; }
  .ideas-panel { padding: 23px; border-radius: 17px; }
  .ideas-rules h2 { font-size: 18px; }
  .ideas-steps strong { font-size: 12px; }
  .ideas-steps p,.ideas-tip p { font-size: 12px; }
  .ideas-empty { padding: 40px 20px; }
  .ideas-empty .ideas-actions { justify-content: center; }
  .ideas-page-heading { margin: 24px 0; }
  .ideas-page-heading h1 { font-size: 29px; }
  .ideas-page-heading>p { font-size: 12px; }
  .ideas-editor { padding: 23px 18px; }
  .ideas-form label { font-size: 12px; }
  .ideas-form label>span { display: block; margin-left: 0; margin-top: 3px; font-size: 10px; }
  .ideas-form input:not([type="hidden"]),.ideas-form textarea,.ideas-form select { font-size: 16px; }
  .ideas-editor-notice { padding: 13px; gap: 8px; }
  .ideas-editor-notice p { font-size: 10px; }
  .ideas-settings-grid { grid-template-columns: 1fr; gap: 22px; }
  .ideas-proposal { padding: 23px; }
  .ideas-proposal h1 { font-size: 27px; }
  .ideas-proposal-body { font-size: 14px; line-height: 1.85; }
  .ideas-result { padding: 21px; gap: 12px; }
  .ideas-result h2 { font-size: 18px; }
  .ideas-result__icon { width: 28px; height: 28px; border-radius: 9px; }
  .ideas-result__icon svg { width: 16px; height: 16px; }
  .ideas-result p { font-size: 12px; }
  .ideas-discussion { padding: 23px 18px; }
  .ideas-comment__avatar { width: 28px; height: 28px; flex-basis: 28px; }
  .ideas-detail-top>.ideas-button { min-height: 38px; padding: 8px 10px; font-size: 10px; }
}
@media (max-width: 359px) {
  .ideas-page { width: calc(100% - 20px); }
  .ideas-hero { padding: 24px 18px; }
  .ideas-hero h1 { font-size: 27px; }
  .ideas-card { gap: 10px; padding: 15px 11px; }
  .ideas-card__top { align-items: flex-start; flex-direction: column; }
  .ideas-stats>a,.ideas-stats>div { column-gap: 7px; padding-right: 0; }
  .ideas-stats strong+span { font-size: 8px; }
  .ideas-settings-grid label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ideas-page *, .ideas-page *::before, .ideas-page *::after { transition: none !important; scroll-behavior: auto !important; }
}
