/* IG 點子牆的視覺系統與響應式版面，對應提供的設計稿。 */
:root {
  --ground: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #fbfaf6;
  --ink: #1c1b18;
  --ink-2: #55514a;
  --ink-3: #5e5a52;
  --line: #e2ded5;
  --line-2: #efece4;
  --placeholder: #e9e5dc;
  --accent: #a63d22;
  --accent-hover: #8a3119;
  --accent-soft: #f5e9e4;
  --accent-border: #e0c3b7;
  --amber: #6b4a1e;
  --amber-soft: #f3e6d3;
  --green: #2f5a52;
  --green-soft: #ddebE6;
  --shadow: 0 12px 40px rgba(28, 27, 24, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Space Grotesk", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(166, 61, 34, 0.35); outline-offset: 3px; }

.app-shell { min-height: 100vh; }
.page { width: min(100% - 48px, 1400px); margin: 0 auto; padding: 32px 0 64px; }
.page--narrow { width: min(100% - 48px, 720px); }
.page--detail { width: min(100% - 48px, 1340px); }
.topbar { position: sticky; top: 0; z-index: 10; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 19px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.bilingual { display: inline-flex; align-items: baseline; gap: 6px; }
.bilingual__en { color: var(--ink-3); font-size: .78em; font-weight: 500; letter-spacing: .01em; }
.brand .bilingual { gap: 7px; }
.brand .bilingual__en { font-size: 12px; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; background: var(--accent); font: 700 15px/1 var(--font-display); }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-bottom: 2px solid transparent; color: var(--ink-3); font-size: 14px; text-decoration: none; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.topbar__spacer { flex: 1; }
.searchbox { position: relative; display: flex; align-items: center; }
.searchbox svg { position: absolute; left: 11px; color: #7a756c; pointer-events: none; }
.searchbox input { width: 232px; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; }
.searchbox input::placeholder, input::placeholder, textarea::placeholder { color: #8a857a; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--accent); }
.button--primary:hover { background: var(--accent-hover); }
.button--secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.button--ghost { color: var(--ink-2); border-color: transparent; background: transparent; }
.button--danger { color: #9f311d; border-color: #e8c0b6; background: #fff8f6; }
.button--wide { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #8a857a; font-size: 13px; font-weight: 500; }
.user-menu { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.user-menu .button { min-height: 32px; padding: 0 6px; font-size: 12px; }

.filterbar { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 10px 32px; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow-x: auto; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.filter-divider { width: 1px; height: 22px; flex: 0 0 auto; margin: 0 6px; background: var(--line); }
.chip { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.chip:hover { border-color: #c9c1b4; }
.chip[aria-pressed="true"] { color: #fff; border-color: var(--ink); background: var(--ink); }
.chip--amber[aria-pressed="true"] { color: var(--amber); border-color: #e5d5bc; background: var(--amber-soft); }
.chip--green[aria-pressed="true"] { color: #2b564f; border-color: #c9ddd6; background: var(--green-soft); }
.chip--accent[aria-pressed="true"] { color: var(--accent-hover); border-color: var(--accent-border); background: var(--accent-soft); }
.filter-meta { margin-left: auto; padding-left: 18px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }

.wall-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 36px 0 22px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.wall-head h1, .page-heading h1 { margin: 0; font-size: clamp(27px, 3vw, 38px); line-height: 1.15; letter-spacing: -.03em; }
.wall-head p, .page-heading p { margin: 9px 0 0; color: var(--ink-3); font-size: 15px; }
.wall-meta { color: var(--ink-3); font-size: 13px; }
.wall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.idea-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 2px 3px rgba(28,27,24,.025); transition: transform .18s ease, box-shadow .18s ease; }
.idea-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.idea-card__cover { position: relative; height: 185px; overflow: hidden; background: var(--placeholder); }
.idea-card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, transparent 25%, rgba(28,27,24,.20) 100%); }
.cover-art { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.76); font: 700 62px/1 var(--font-display); letter-spacing: -.08em; }
.cover-art--rust { background: linear-gradient(135deg, #a63d22 0%, #d28b66 52%, #f0c09b 100%); }
.cover-art--green { background: linear-gradient(135deg, #294c46 0%, #5f8a7b 52%, #b9d0be 100%); }
.cover-art--blue { background: linear-gradient(135deg, #314f66 0%, #78a3b2 52%, #d8d8bd 100%); }
.cover-art--amber { background: linear-gradient(135deg, #7b5e35 0%, #c19c58 56%, #f2d7a8 100%); }
.cover-art--slate { background: linear-gradient(135deg, #373838 0%, #7b827c 55%, #c8c8b7 100%); }
.cover-art--violet { background: linear-gradient(135deg, #544c5d 0%, #9a819d 52%, #d9c8b9 100%); }
.status-badge { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.status-badge--scheduled { color: var(--amber); border: 1px solid #e5d5bc; background: var(--amber-soft); }
.status-badge--published { color: #fff; background: #3d6b63; }
.media-badge { position: absolute; bottom: 11px; left: 11px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 5px; color: #fff; background: rgba(28,27,24,.76); font-size: 12px; }
.idea-card__body { display: flex; min-height: 164px; flex: 1; flex-direction: column; padding: 15px 16px 14px; }
.idea-card__title { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.42; text-decoration: none; }
.idea-card__title:hover { color: var(--accent); }
.idea-card__hook { display: -webkit-box; overflow: hidden; margin: 8px 0 14px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.idea-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.idea-card__author { overflow: hidden; color: var(--ink-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vote-button { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 13px; }
.vote-button:hover { border-color: var(--accent-border); color: var(--accent); }
.vote-button[aria-pressed="true"] { border-color: var(--accent-border); background: var(--accent-soft); color: var(--ink-2); }
.vote-button[aria-pressed="true"] .heart-icon { color: #ff4500; }
.empty-card { min-height: 355px; display: flex; align-items: center; justify-content: center; border: 1px dashed #c8c0b4; border-radius: var(--radius-md); background: transparent; color: var(--ink-3); }
.empty-card__inner { display: grid; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.empty-card svg { color: var(--accent); }
.empty-card strong { font-size: 15px; }
.empty-card span { color: var(--ink-3); font-size: 13px; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; }
.auth-card { width: min(100%, 480px); min-height: 600px; display: flex; flex-direction: column; padding: 40px; background: var(--ground); }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand__wordmark { display: flex; flex-direction: column; gap: 2px; }
.auth-brand__wordmark strong { font: 700 24px/1 var(--font-display); letter-spacing: -.02em; }
.auth-brand__wordmark span { color: var(--ink-3); font-size: 12.5px; }
.auth-content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth-content h1 { margin: 0; font-size: 22px; line-height: 1.4; }
.google-button { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #d4cec1; border-radius: 9px; background: var(--surface); font-size: 14.5px; font-weight: 500; }
.google-mark { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #d4cec1; border-radius: 4px; color: #4285f4; font: 700 15px/1 Arial, sans-serif; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .form-label { color: var(--ink); font-size: 14px; font-weight: 500; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; transition: border-color .16s ease, box-shadow .16s ease; }
.input, .select { min-height: 46px; padding: 0 13px; }
.textarea { min-height: 108px; padding: 11px 13px; line-height: 1.65; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(166,61,34,.12); outline: none; }
.input[readonly] { color: var(--ink-3); background: #efede8; }
.helper { color: var(--ink-3); font-size: 12px; }
.form-stack { display: flex; flex-direction: column; gap: 22px; }
.form-actions { display: flex; gap: 10px; padding-top: 5px; }
.form-actions .button { flex: 1; }
.form-top { display: flex; justify-content: flex-start; padding: 4px 0 18px; }
.upload-zone { min-height: 150px; display: grid; place-items: center; padding: 20px; border: 1px dashed #c8c0b4; border-radius: 10px; background: var(--surface-2); text-align: center; }
.upload-zone strong { display: block; margin-top: 8px; font-size: 14px; }
.upload-zone span { display: block; color: var(--ink-3); font-size: 12px; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-strip { display: flex; gap: 8px; overflow-x: auto; padding-top: 4px; }
.file-preview { position: relative; width: 96px; height: 96px; flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: var(--placeholder); }
.file-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-preview__label { position: absolute; right: 5px; bottom: 5px; padding: 2px 5px; border-radius: 4px; color: #fff; background: rgba(28,27,24,.75); font-size: 10px; }
.file-add { width: 96px; height: 96px; display: grid; place-items: center; flex: 0 0 auto; border: 1px dashed #bcb3a4; border-radius: 8px; background: transparent; color: var(--ink-3); font-size: 12px; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 28px 0 24px; }
.page-heading--wall { align-items: center; padding-top: 34px; }
.page-heading--wall .eyebrow { font-size: 14px; letter-spacing: .14em; }
.page-heading--wall h1 { font-size: clamp(36px, 4.5vw, 52px); }
.stats-strip.stats-strip--inline { width: min(100%, 330px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; border: 0; background: transparent; }
.stats-strip.stats-strip--inline .stat { min-height: 82px; justify-content: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.stats-strip.stats-strip--inline .stat:first-child { padding-left: 16px; }
.stats-strip.stats-strip--inline .stat:last-child { border-right: 1px solid var(--line); }
.stats-strip.stats-strip--inline .stat__value { font-size: 28px; }
.stats-strip.stats-strip--inline.stats-strip--toolbar { width: 240px; gap: 8px; margin-left: auto; }
.stats-strip.stats-strip--inline.stats-strip--toolbar .stat { min-height: 48px; padding: 8px 10px; }
.stats-strip.stats-strip--inline.stats-strip--toolbar .stat:first-child { padding-left: 10px; }
.stats-strip.stats-strip--inline.stats-strip--toolbar .stat__value { font-size: 22px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.detail-main { padding: 24px; }
.detail-edit-form .detail-main h1 { margin-top: 0; }
.detail-edit-form .content-block--media { margin-top: 22px; }
.detail-main h1 { margin: 14px 0 20px; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -.03em; }
.detail-hero { position: relative; height: 312px; overflow: hidden; border-radius: 10px; background: var(--placeholder); }
.detail-hero .cover-art { font-size: 110px; }
.detail-hero--video .cover-art { filter: saturate(.78); }
.media-play { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff; background: rgba(28,27,24,.18); font-size: 13px; }
.content-block--media { padding: 0; background: transparent; }
.content-block--media h2 { margin-bottom: 10px; }
.detail-hero .media-badge { left: 15px; bottom: 15px; }
.thumbs { display: flex; gap: 8px; padding-top: 10px; overflow-x: auto; }
.thumb { width: 64px; height: 52px; flex: 0 0 auto; border: 2px solid transparent; border-radius: 7px; background: var(--placeholder); }
.thumb--active { border-color: var(--accent); }
.detail-file { margin: 14px 0 0; color: var(--ink-3); font-size: 12px; }
.attachment-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.attachment-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); }
.attachment-item__icon { display: inline-flex; flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.attachment-item__meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.attachment-item__meta strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-item__meta code { overflow-wrap: anywhere; color: var(--ink-3); font: 12px/1.45 var(--font-body); }
.detail-upload { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.upload-zone--detail { min-height: 112px; margin-top: 8px; }
.content-block { margin-top: 22px; padding: 20px; border-radius: 9px; }
.content-block h2 { margin: 0 0 9px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.content-block p { margin: 0; white-space: pre-wrap; }
.content-block--hook { background: var(--accent-soft); }
.content-block--description { border: 1px solid var(--line-2); background: var(--surface); }
.detail-side { display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 20px; }
.side-card h2 { margin: 0 0 15px; font-size: 14px; }
.status-buttons { display: flex; gap: 7px; }
.status-button { min-height: 40px; flex: 1; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 12px; }
.status-button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.meta-list { display: grid; gap: 12px; margin: 0; }
.meta-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.meta-row dt { color: var(--ink-3); }
.meta-row dd { margin: 0; text-align: right; }
.note-area { min-height: 260px; }
.vote-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border: 1px solid var(--accent-border); border-radius: var(--radius-md); background: var(--accent-soft); }
.vote-panel strong { display: block; font: 700 28px/1 var(--font-display); }
.vote-panel span { color: var(--ink-3); font-size: 12px; }

.stats-strip { display: grid; grid-template-columns: 1.1fr 1.1fr 1.1fr 1.1fr 1.1fr 2.6fr; gap: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.stats-strip--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.stat { min-height: 93px; display: flex; flex-direction: column; gap: 5px; padding: 0 18px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__label { color: var(--ink-3); font-size: 12px; }
.stat__value { font: 700 30px/1 var(--font-display); }
.stat__detail { color: var(--ink-3); font-size: 11.5px; }
.bar-chart { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-left: 22px; }
.bar-chart h2 { margin: 0; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.bars { height: 74px; display: flex; align-items: end; gap: 18px; overflow-x: auto; }
.bar-item { min-width: 40px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar { width: 34px; min-height: 4px; border-radius: 4px 4px 0 0; background: var(--green); }
.bar-item strong { font-size: 12px; }
.bar-item span { overflow: hidden; max-width: 58px; color: var(--ink-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.page--list { padding-top: 12px; }
.admin-toolbar { display: flex; align-items: center; gap: 10px; margin-top: -16px; padding: 0 0 16px; }
.admin-toolbar .searchbox input { width: 190px; background: var(--surface); }
.app-shell:not(:has(.filterbar)) .topbar .searchbox { display: none; }
.select--compact { width: auto; min-width: 125px; min-height: 38px; padding-right: 30px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.data-table th { padding: 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); font-size: 11.5px; font-weight: 500; text-align: left; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr[data-status="scheduled"] td { background: #fdfbf6; }
.data-table tr[data-status="published"] td { background: #fbfcfb; }
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 62px; }
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 112px; }
.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 82px; }
.data-table th:nth-child(5), .data-table td:nth-child(5) { width: 124px; }
.data-table .table-empty { padding: 36px 12px; color: var(--ink-3); text-align: center; }
.table-count { color: var(--ink-3); font: 500 13px/1 var(--font-display); text-align: center; }
.table-vote { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: 500 13px/1 var(--font-display); }
.table-vote:hover, .table-vote[aria-pressed="true"] { background: #fff1eb; }
.table-vote[aria-pressed="true"] .heart-icon { color: #ff4500; }
.heart-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.heart-svg { display: block; }
.status-display { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.status-display--scheduled { color: var(--amber); border-color: #e5d5bc; background: var(--amber-soft); }
.status-display--published { color: #2b564f; border-color: #c9ddd6; background: var(--green-soft); }
.detail-actions { display: flex; align-items: center; gap: 8px; }
.status-menu { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(28,27,24,.36); }
.confirm-dialog { width: min(100%, 420px); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.confirm-dialog h2 { margin: 0 0 8px; font-size: 18px; }
.confirm-dialog p { margin: 0; color: var(--ink-2); font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.table-thumb { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; color: rgba(255,255,255,.8); font: 700 16px/1 var(--font-display); }
.table-idea { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.table-idea a { display: -webkit-box; overflow: hidden; color: var(--ink); font-weight: 600; line-height: 1.4; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.table-idea a:hover { color: var(--accent); }
.table-idea span { display: -webkit-box; overflow: hidden; color: var(--ink-2); line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.status-select { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 12.5px; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; max-width: min(360px, calc(100% - 44px)); padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.mobile-only { display: none; }

@media (max-width: 1180px) {
  .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-strip { grid-template-columns: repeat(5, 1fr); }
  .stats-strip--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-chart { grid-column: 1 / -1; margin-top: 22px; padding: 18px 0 0; border-top: 1px solid var(--line); }
}
@media (max-width: 880px) {
  .topbar { gap: 12px; padding: 0 18px; }
  .topbar .searchbox { display: none; }
  .page { width: min(100% - 36px, 720px); }
  .filterbar { padding: 10px 18px; }
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-side .note-card { grid-column: 1 / -1; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { padding-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .page, .page--narrow, .page--detail { width: min(100% - 28px, 560px); padding-top: 20px; }
  .topbar { position: relative; height: 56px; padding: 0 14px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; }
  .topnav { display: none; }
  .topbar .button--primary { min-height: 36px; padding: 0 11px; font-size: 12px; }
  .user-menu { display: none; }
  .wall-head { align-items: start; flex-direction: column; gap: 8px; padding: 24px 0 18px; }
  .wall-head h1, .page-heading h1 { font-size: 28px; }
  .wall-head p, .page-heading p { font-size: 14px; }
  .wall-grid { grid-template-columns: 1fr; gap: 14px; }
  .idea-card__cover { height: 210px; }
  .empty-card { min-height: 185px; }
  .auth-page { padding: 0; align-items: start; }
  .auth-card { min-height: 100vh; padding: 28px 22px; }
  .page-heading { align-items: start; flex-direction: column; padding: 10px 0 20px; }
  .form-actions { position: sticky; bottom: 0; z-index: 5; margin: 0 -14px; padding: 12px 14px; border-top: 1px solid var(--line); background: rgba(247,245,240,.95); }
  .detail-main { padding: 16px; }
  .detail-main h1 { font-size: 28px; }
  .detail-hero { height: 220px; }
  .detail-side { display: flex; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 16px; }
  .stats-strip--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 82px; padding: 0 12px; }
  .stat:first-child, .stat:nth-child(3), .stat:nth-child(5) { padding-left: 0; }
  .stat:nth-child(2), .stat:nth-child(4) { border-right: 0; }
  .stat:nth-child(n+3) { margin-top: 14px; padding-top: 14px; }
  .stat__value { font-size: 26px; }
  .admin-toolbar { align-items: stretch; flex-wrap: wrap; }
  .admin-toolbar { margin-top: 0; }
  .admin-toolbar .searchbox { flex: 1 1 100%; }
  .admin-toolbar .searchbox input { width: 100%; }
  .stats-strip.stats-strip--inline.stats-strip--toolbar { width: 100%; margin-left: 0; }
  .mobile-only { display: inline-flex; }
  .desktop-only { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
