:root {
  --bg-paper: #fbf8f1;
  --bg-card: #ffffff;
  --bg-subtle: #f2ece0;
  --ink: #141413;
  --ink-muted: #57554f;
  --stamp-red: #d92b2b;
  --stamp-red-soft: #fde8e8;
  --brave-amber: #e07a00;
  --brave-amber-soft: #fff2db;
  --work-blue: #1d5bd6;
  --work-blue-soft: #e6effd;
  --valid-green: #16794b;
  --border-strong: 2px solid #141413;
  --shadow-hard: 4px 4px 0px #141413;
  --shadow-hard-lg: 6px 6px 0px #141413;
  --shadow-hard-sm: 2px 2px 0px #141413;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-display: 'Anton', Impact, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-paper);
  background-image: radial-gradient(rgba(20, 20, 19, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Marquee Ticker */
.top-ticker {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  padding: 11px 0;
  border-bottom: var(--border-strong);
}

.ticker-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 28s linear infinite;
}

.top-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track strong {
  color: #ff6b6b;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header */
.site-header {
  background: var(--bg-paper);
  border-bottom: var(--border-strong);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.stamp-icon {
  background: var(--stamp-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1px;
  padding: 6px 10px;
  border: var(--border-strong);
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-4deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  line-height: 1;
}

.dot-com {
  color: var(--stamp-red);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 3px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: var(--border-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.stat-label {
  font-weight: 500;
  color: var(--ink-muted);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--stamp-red);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 43, 43, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(217, 43, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 43, 43, 0); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: var(--border-strong);
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--ink);
}

.btn-primary {
  background: var(--stamp-red);
  color: #fff;
}

.btn-primary:hover {
  background: #c12222;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: #fff;
}

.btn-lg {
  font-size: 1rem;
  padding: 13px 22px;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 6px 12px;
}

.btn-icon {
  background: #fff;
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
}

/* Hero Section */
.hero-section {
  padding: 40px 0 34px;
  border-bottom: var(--border-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(242,236,224,0.45) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: #ffe066;
  border: var(--border-strong);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-hard-sm);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--stamp-red);
  text-decoration: underline;
  text-decoration-thickness: 4px;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 580px;
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Spotlight Card in Hero */
.hero-spotlight {
  background: var(--bg-card);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-lg);
  padding: 22px;
  position: relative;
}

.spotlight-ribbon {
  display: inline-block;
  background: var(--ink);
  color: #ffe066;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.spotlight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.case-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.cat-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--bg-subtle);
}

.cat-spouse { background: #ffe3ec; }
.cat-boss { background: #e2eafc; }
.cat-hoa { background: #d8f3dc; }
.cat-client { background: #fff3bf; }
.cat-family { background: #f3d9fa; }
.cat-adulting { background: #ffd8a8; }

.directive-row {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.row-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 2px;
}

.refusal-highlight {
  background: var(--stamp-red-soft);
  border-left: 4px solid var(--stamp-red);
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 12px;
}

.spotlight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1.5px dashed rgba(20, 20, 19, 0.2);
}

.mini-verdict {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
}

.rubber-stamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--stamp-red);
  border: 2px solid var(--stamp-red);
  padding: 2px 8px;
  border-radius: 4px;
  transform: rotate(-3deg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Excuse Translator Section */
.translator-section {
  padding: 28px 0 8px;
}

.translator-box {
  background: #fff9db;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  padding: 24px;
}

.translator-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--stamp-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.translator-header h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.5px;
  margin: 2px 0 4px;
}

.translator-header p {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.input-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

#excuseInput {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.98rem;
  font-family: var(--font-sans);
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 10px;
}

.preset-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.preset-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.chip {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.chip:hover {
  background: #ffe066;
}

.tone-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.tone-btn {
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.86rem;
  background: #fff;
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.12s ease;
}

.tone-btn.active {
  background: var(--ink);
  color: #ffe066;
}

.translator-output-card {
  background: #fff;
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.output-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.output-actions {
  display: flex;
  gap: 8px;
}

#excuseOutputText {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 12px;
  border-left: 4px solid var(--stamp-red);
}

/* Main Content & Feed Toolbar */
.main-content {
  padding-top: 28px;
  padding-bottom: 64px;
}

.feed-toolbar {
  margin-bottom: 24px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.cat-tab {
  white-space: nowrap;
  padding: 9px 15px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  background: #fff;
  border: var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.12s ease;
}

.cat-tab:hover {
  background: var(--bg-subtle);
}

.cat-tab.active {
  background: var(--ink);
  color: #fff;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-hard-sm);
}

.search-wrap {
  flex: 1;
  min-width: 240px;
}

#searchInput {
  width: 100%;
  border: 1.5px solid #ccc;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

#searchInput:focus {
  outline: none;
  border-color: var(--ink);
}

.sort-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sort-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-right: 4px;
}

.sort-btn {
  background: transparent;
  border: 1.5px solid transparent;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-muted);
}

.sort-btn:hover {
  color: var(--ink);
  background: var(--bg-subtle);
}

.sort-btn.active {
  background: #ffe066;
  color: var(--ink);
  border-color: var(--ink);
}

/* 2-Column Content Grid */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 28px;
  align-items: start;
}

.feed-count-banner {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.stories-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Story Card */
.story-card {
  background: var(--bg-card);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  padding: 22px;
  transition: transform 0.15s ease;
}

.story-card.highlight-flash {
  animation: highlightPulse 1.6s ease;
}

@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 6px #ffe066, var(--shadow-hard); }
  100% { box-shadow: var(--shadow-hard); }
}

.story-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.story-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.story-author {
  font-size: 0.84rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.story-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.story-block {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-paper);
  border: 1px solid rgba(20, 20, 19, 0.14);
}

.story-block.refusal-block {
  background: var(--stamp-red-soft);
  border: 1.5px solid var(--stamp-red);
}

.story-block-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.story-block.refusal-block .story-block-label {
  color: var(--stamp-red);
}

.story-block p {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}

.story-block.refusal-block p {
  font-weight: 700;
}

/* Interactive Verdict Voting Section */
.voting-panel {
  background: var(--bg-subtle);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.voting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.verdict-status-pill {
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--ink);
}

.vote-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.vote-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 11px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition: all 0.12s ease;
}

.vote-btn:hover {
  transform: translateY(-1px);
}

.vote-btn.voted-hellnah {
  background: var(--stamp-red);
  color: #fff;
}

.vote-btn.voted-brave {
  background: #ffb703;
  color: var(--ink);
}

.vote-btn.voted-work {
  background: var(--work-blue);
  color: #fff;
}

.vote-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.9;
}

/* 3-Segment Verdict Bar */
.verdict-bar-track {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: #fff;
}

.verdict-seg-hellnah {
  background: var(--stamp-red);
  transition: width 0.3s ease;
}

.verdict-seg-brave {
  background: #ffb703;
  transition: width 0.3s ease;
}

.verdict-seg-work {
  background: var(--work-blue);
  transition: width 0.3s ease;
}

.verdict-pct-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* Story Footer Actions */
.story-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-left-btns,
.footer-right-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-chip-btn {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
}

.action-chip-btn:hover {
  background: #ffe066;
}

/* Expandable Comments Drawer */
.comments-drawer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px dashed rgba(20, 20, 19, 0.25);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-item {
  background: var(--bg-paper);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(20, 20, 19, 0.15);
  font-size: 0.86rem;
}

.comment-author {
  font-weight: 700;
  margin-right: 6px;
}

.comment-form {
  display: flex;
  gap: 8px;
}

.comment-form input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 84px;
}

.sidebar-card {
  background: var(--bg-card);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  padding: 20px;
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--stamp-red);
  margin-bottom: 4px;
}

.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.poll-scenario {
  font-size: 0.88rem;
  background: var(--bg-paper);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(20, 20, 19, 0.15);
  margin-bottom: 12px;
  font-style: italic;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
}

.poll-btn.selected {
  background: #ffe066;
}

.poll-footnote {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 10px;
  text-align: center;
}

.offender-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offender-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.progress-track {
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 999px;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
}

.fill-red { background: var(--stamp-red); }
.fill-amber { background: #ffb703; }
.fill-green { background: #2a9d8f; }
.fill-blue { background: var(--work-blue); }
.fill-ink { background: var(--ink); }

.verdict-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.84rem;
}

.legend-emoji {
  font-size: 1.25rem;
}

.legend-item p {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  border-top: var(--border-strong);
  background: #fff;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.link-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 19, 0.68);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.hidden {
  display: none !important;
}

.modal-card {
  background: var(--bg-paper);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-lg);
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
}

.modal-wide {
  max-width: 880px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.5px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 5px;
}

.form-group .hint {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Receipt Generator Grid */
.receipt-generator-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.helper-text {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.receipt-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.receipt-preview-wrap {
  background: var(--ink);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: var(--border-strong);
  display: flex;
  justify-content: center;
}

#receiptCanvas {
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fbf8f1;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #ffe066;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 18px;
  border: 2px solid #ffe066;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard);
  z-index: 200;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .content-layout,
  .receipt-generator-grid {
    grid-template-columns: 1fr;
  }

  .tone-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .vote-buttons-grid,
  .form-row-2col,
  .tone-selector {
    grid-template-columns: 1fr;
  }
}
