:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #5e5e5e;
  --line: #e4e4e4;
  --soft: #f6f6f6;
  --bg: #efefef;
  --card: #fff;
  --focus: #0b57d0;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button, input, a { font: inherit; color: inherit; }
button { cursor: pointer; }
.app {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--card);
  position: relative;
}
.top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 8px;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 2;
}
.icon-btn, .top h1, .eyebrow { margin: 0; }
.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.icon-btn svg, .action-icon svg, .panel-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.top h1 { font-size: 22px; letter-spacing: -0.03em; text-align: center; }
.eyebrow { text-align: center; color: var(--muted); font-size: 13px; }
.screen { padding: 8px 16px 32px; }
.lens-banner {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: var(--soft);
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}
.panel, .stream-card, .detail-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.panel { padding: 14px 12px 6px; }
.panel-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.panel-head h2, .stream h2, .detail-card h2, .menu-card h2, .stub-card h2 { margin: 0; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.panel-head p, .empty-copy, .menu-note, .reason, .identity { color: var(--muted); }
.panel-head p, .empty-copy { margin: 2px 0 0; font-size: 13px; }
.panel-icon { width: 36px; height: 36px; display: grid; place-items: center; }
.actions { display: flex; flex-direction: column; }
.action, .stream-card, .menu-link, .lens-option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
}
.action {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 72px;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
}
.verb { display: block; font-weight: 700; font-size: 16px; }
.meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 3px; flex-wrap: wrap; }
.pill { border: 1px solid #d5d5d5; border-radius: 8px; padding: 1px 7px; font-size: 12px; color: var(--ink); }
.score { display: flex; flex-direction: column; align-items: flex-end; min-width: 48px; }
.score span, .stream-side time { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }
.score strong, .score-box { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stream { margin-top: 22px; }
.stream h2 { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; text-transform: none; }
.stream-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
}
.headline { display: block; font-weight: 700; }
.why { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.stream-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.score-box { border: 1px solid var(--line); border-radius: 10px; min-width: 48px; text-align: center; padding: 4px 8px; }
#menu, #stub { position: absolute; inset: 0; z-index: 5; }
#stub { z-index: 7; }
.scrim, .stub-scrim { position: absolute; inset: 0; background: rgba(20, 20, 20, 0.45); }
.menu-card, .stub-card {
  position: relative;
  z-index: 6;
  margin: 72px 16px 0;
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  max-height: calc(100vh - 96px);
  overflow: auto;
}
.menu-kicker { margin: 16px 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.menu-note { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
.lens-option { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 650; }
.radio { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; display: inline-grid; place-items: center; }
.lens-option[aria-checked="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.done-preview { margin: 0; padding: 0; list-style: none; }
.done-preview li { padding: 6px 0; border-top: 1px solid var(--line); }
.menu-link { display: block; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 650; }
.menu-link.quiet { font-weight: 500; color: var(--muted); }
.unlock { display: grid; gap: 8px; margin-top: 8px; }
.unlock input { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.text-btn, .primary, .secondary, .later { min-height: 48px; border-radius: 12px; }
.primary { width: 100%; background: var(--ink); color: white; border: 0; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.secondary { width: 100%; margin-top: 8px; background: var(--card); border: 1.5px solid var(--ink); font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.later { display: block; margin: 10px auto 0; background: transparent; border: 0; text-decoration: underline; min-height: 44px; }
.detail-card { padding: 16px; border: 0; }
.company { margin: 0; font-size: 28px; font-weight: 750; letter-spacing: -0.03em; }
.identity { margin: 4px 0 12px; }
.detail-card h2 { text-transform: none; letter-spacing: -0.02em; font-size: 20px; }
.detail-top { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }
.signals { margin: 0; border: 1px solid var(--line); border-radius: 12px; }
.signal { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.signal:first-child { border-top: 0; }
.signal dt { color: var(--muted); }
.signal dd { margin: 0; text-align: right; }
.reason { line-height: 1.45; }
.original { display: block; text-align: center; border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px; margin: 12px 0; text-decoration: none; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.meta { border-top: 1px solid var(--line); padding-top: 8px; }
.meta summary { min-height: 44px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.logos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.logo { border-radius: 6px; padding: 2px 6px; font-size: 12px; font-weight: 750; }
.logo-li { background: #0a66c2; color: white; }
.logo-ka { background: #e30613; color: white; }
.logo-in { background: #2164f3; color: white; }
.logo-ot { background: var(--soft); }
.commit { margin-top: 16px; display: grid; gap: 8px; }
.skip-btn { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: #ececec; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { border: 1px solid var(--ink); background: white; border-radius: 999px; min-height: 40px; padding: 0 12px; }
.chip[aria-pressed="true"] { background: var(--ink); color: white; }
.field-note { display: grid; gap: 6px; font-size: 13px; margin: 10px 0; }
.field-note textarea, .field-note select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; }
.field-note textarea { min-height: 120px; }
.field-note.compact textarea { min-height: 72px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: 14px; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin-top: 2px; }
.form-error { color: #9b1c1c; font-size: 13px; }
.freigabe .secondary, .freigabe .primary { margin-top: 8px; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 8; background: var(--ink); color: white; border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.toast button { background: transparent; color: white; border: 0; text-decoration: underline; min-height: 44px; }
.notice, .status-line { margin: 0 16px 8px; color: var(--muted); font-size: 13px; }
.notice:empty { display: none; }
.status-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.retry { min-height: 44px; border: 1px solid var(--ink); background: white; border-radius: 10px; padding: 0 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 760px) {
  body { padding: 28px 0; }
  .app { min-height: calc(100vh - 56px); border-radius: 28px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12); overflow: hidden; }
}
@media (max-width: 759px) {
  .menu-card, .stub-card { margin-top: 12px; }
}
