:root {
  --bg: #12100c;
  --panel: #1c241e;
  --panel-2: #232c25;
  --paper: #e6dcc3;
  --paper-dim: #b9ad92;
  --muted: #8c8470;
  --brass: #b8925a;
  --brass-dim: #7d6440;
  --red: #9e2a22;
  --green-ok: #6f8f5e;
  --line: rgba(230, 220, 195, 0.14);
  --serif: "Playfair Display", Georgia, serif;
  --type: "Special Elite", "Courier New", monospace;
  --mono: "Courier Prime", "Courier New", monospace;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--paper); }
body {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at top, rgba(184, 146, 90, 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
}
a { color: var(--brass); }
button, input, textarea, select { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }

/* ---------- layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  padding: calc(10px + var(--safe-top)) 18px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(18, 16, 12, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand { font-family: var(--serif); letter-spacing: 0.18em; font-size: 13px; text-transform: uppercase; color: var(--paper); }
.brand b { color: var(--brass); font-weight: 700; }
.agent-chip { font-family: var(--type); font-size: 12px; color: var(--paper-dim); text-align: right; line-height: 1.2; }
.agent-chip button { background: none; border: 0; color: var(--muted); font-size: 11px; padding: 0; cursor: pointer; text-decoration: underline; }

main { max-width: 760px; margin: 0 auto; padding: 20px 16px calc(110px + var(--safe-bottom)); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around;
  padding: 6px 4px calc(6px + var(--safe-bottom));
  background: rgba(14, 12, 9, 0.97);
  border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; text-align: center; text-decoration: none;
  color: var(--muted); font-family: var(--type); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 2px; border-radius: 6px;
}
.tabbar a .ic { display: block; font-size: 19px; line-height: 1.2; font-family: var(--serif); }
.tabbar a.on { color: var(--brass); }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0 0 10px; letter-spacing: 0.02em; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
.eyebrow { font-family: var(--type); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.quote { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--paper); border-left: 2px solid var(--brass); padding: 4px 0 4px 14px; margin: 18px 0; }
.quote cite { display: block; margin-top: 6px; font-family: var(--type); font-style: normal; font-size: 12px; letter-spacing: 0.15em; color: var(--brass); text-transform: uppercase; }
.pre { white-space: pre-wrap; }

/* ---------- panels ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 14px;
}
.card.paper {
  background: #e3d7bb; color: #26201a;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 26px);
  border-color: #c4b48f;
}
.card.paper .eyebrow { color: #7a2a20; }
.card.paper .muted { color: #6f6553; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:active { transform: scale(0.99); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.section-title h2 { margin: 0; }
hr.rule { border: 0; border-top: 1px dashed var(--line); margin: 16px 0; }

/* ---------- stamps & tags ---------- */
.stamp {
  display: inline-block; font-family: var(--type); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; padding: 3px 9px; border: 2px solid currentColor; border-radius: 3px; transform: rotate(-3deg);
}
.stamp.red { color: var(--red); }
.stamp.brass { color: var(--brass); }
.stamp.green { color: var(--green-ok); }
.stamp.muted { color: var(--muted); }
.stamp.big { font-size: 20px; padding: 6px 14px; border-width: 3px; }
.redact { display: inline-block; background: #0b0a08; color: transparent; border-radius: 2px; user-select: none; }

/* ---------- stats ---------- */
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.stat .num { font-family: var(--serif); font-size: 32px; color: var(--brass); line-height: 1; }
.stat .lbl { font-family: var(--type); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-dim); margin-top: 6px; }
.progress { height: 6px; background: #0b0a08; border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; background: var(--brass); }

/* ---------- safehouses ---------- */
.sh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .sh-grid { grid-template-columns: repeat(3, 1fr); } }
.sh {
  position: relative; min-height: 132px; padding: 14px; border-radius: 6px; overflow: hidden;
  background: #e3d7bb; color: #26201a; border: 1px solid #c4b48f;
}
.sh .code { font-family: var(--type); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #7a2a20; }
.sh .letter { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 4px 0 8px; }
.sh .lines span { display: block; height: 9px; background: #1b1712; margin: 6px 0; border-radius: 1px; }
.sh .lines span:nth-child(2) { width: 72%; }
.sh .lines span:nth-child(3) { width: 48%; }
.sh.out { background: #3a352c; color: #b1a78f; border-color: #4a4337; }
.sh.out .code { color: #d0473b; }
.sh.out .letter { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.sh.out .city { font-family: var(--serif); font-size: 17px; color: var(--paper); }
.sh.out .stamp { position: absolute; right: 8px; bottom: 10px; background: rgba(18,16,12,0.6); color: #d0473b; }

/* ---------- missions ---------- */
.mission-item { display: flex; gap: 14px; align-items: center; }
.mission-item .idx { font-family: var(--type); font-size: 11px; letter-spacing: 0.16em; color: var(--brass); min-width: 62px; text-transform: uppercase; }
.mission-item.locked { opacity: 0.55; }
.media { margin: 14px 0; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.media audio { width: 100%; display: block; }
.media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.answer { border-top: 1px dashed var(--line); padding: 10px 0; }
.answer:first-child { border-top: 0; }
.answer .who { font-family: var(--type); font-size: 12px; color: var(--brass); letter-spacing: 0.08em; }

/* ---------- forms ---------- */
label.f { display: block; font-family: var(--type); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-dim); margin: 14px 0 6px; }
input.in, textarea.in, select.in {
  width: 100%; padding: 12px 13px; border-radius: 5px;
  background: #0f0d0a; border: 1px solid #3b362b; color: var(--paper); outline: none;
}
input.in:focus, textarea.in:focus, select.in:focus { border-color: var(--brass); }
textarea.in { min-height: 110px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 5px; cursor: pointer;
  background: var(--brass); color: #16120c; border: 1px solid var(--brass);
  font-family: var(--type); letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px;
}
.btn.ghost { background: transparent; color: var(--brass); }
.btn.danger { background: transparent; color: #d0473b; border-color: #6b2620; }
.btn.small { padding: 7px 11px; font-size: 11px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
.err { color: #e0675b; font-size: 13px; margin-top: 8px; min-height: 1em; }
.ok { color: #9bc086; font-size: 13px; margin-top: 8px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 22px; max-width: 460px; margin: 0 auto; }
.login .seal {
  width: 86px; height: 86px; border-radius: 50%; border: 2px solid var(--brass); margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; color: var(--brass);
  box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px var(--brass-dim);
}
.login h1 { font-size: 34px; letter-spacing: 0.04em; }
.login .code-in { font-family: var(--type); font-size: 22px; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; }
.demo-note { margin-top: 26px; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); padding: 12px; border-radius: 6px; }

/* ---------- admin ---------- */
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.subtabs button { flex: none; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; font-family: var(--type); font-size: 12px; letter-spacing: 0.08em; cursor: pointer; color: var(--paper-dim); }
.subtabs button.on { background: var(--brass); color: #16120c; border-color: var(--brass); }
.adm-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px dashed var(--line); }
.adm-row:first-child { border-top: 0; }
.pill { font-family: var(--type); font-size: 11px; letter-spacing: 0.1em; padding: 2px 8px; border-radius: 10px; border: 1px solid currentColor; text-transform: uppercase; }
.pill.locked { color: var(--muted); }
.pill.active { color: var(--brass); }
.pill.closed { color: var(--green-ok); }

/* ---------- misc ---------- */
.install { display: flex; gap: 12px; align-items: center; }
.install .x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.loading { text-align: center; padding: 60px 0; font-family: var(--type); letter-spacing: 0.2em; color: var(--muted); }
.demo-banner { background: #3b2a12; color: #f0d6a8; font-family: var(--type); font-size: 11px; letter-spacing: 0.12em; text-align: center; padding: 4px; text-transform: uppercase; }
.fade { animation: fade 0.35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } }

/* ---------- upgrade 2: badges, overlays, aftelklok, decoder ---------- */
.tabbar a { position: relative; }
.badge {
  position: absolute; top: 2px; left: 50%; margin-left: 6px;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: #c0392b; color: #fff; font-family: var(--mono); font-size: 10.5px; line-height: 17px; letter-spacing: 0;
  box-shadow: 0 0 0 2px #0e0c09;
}
.new-tag { display: inline-block; margin-top: 4px; font-family: var(--type); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: #9e2a22; padding: 1px 7px; border-radius: 3px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--paper-dim); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brass); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brass); text-decoration: underline; cursor: pointer; font-size: 13px; }

.cd { font-family: var(--type); font-size: clamp(14px, 4.2vw, 18px); color: var(--paper); letter-spacing: 0.04em; white-space: nowrap; }

.overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 28px 22px calc(28px + var(--safe-bottom)); background: rgba(8, 7, 5, 0.94);
  animation: ovIn 0.25s ease both;
}
.overlay.out { animation: ovOut 0.25s ease both; }
.ov-inner { width: 100%; max-width: 420px; text-align: center; }
.ov-title { font-family: var(--type); font-size: 24px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); margin: 10px 0 8px; }
.ov-letter { font-family: var(--serif); font-size: 46px; line-height: 1.05; margin: 12px 0 6px; color: var(--paper); }
.ov-city { font-family: var(--serif); font-size: 26px; color: var(--brass); margin-bottom: 8px; }
.ov-clue { color: var(--paper-dim); font-size: 15px; margin: 6px 0 18px; }
.ov-list { text-align: left; margin: 14px 0 18px; display: grid; gap: 8px; }
.dots i { font-style: normal; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
.stamp.slam { display: inline-block; margin-top: 6px; animation: slam 0.45s cubic-bezier(.2,1.6,.4,1) 0.35s both; }

.decoder { border-color: var(--brass-dim); }
.dec-row { display: flex; gap: 8px; }
.dec-row .in { flex: 1; font-size: 18px; letter-spacing: 0.16em; text-align: left; }
.dec-found { margin-top: 12px; display: grid; gap: 8px; }
.dec-found .stamp { font-size: 9.5px; padding: 1px 6px; border-width: 1.5px; transform: rotate(-2deg); }
.shake { animation: shake 0.4s; }

@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ovOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
@keyframes slam { 0% { opacity: 0; transform: scale(3) rotate(-12deg); } 100% { opacity: 1; transform: scale(1) rotate(-3deg); } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@media (prefers-reduced-motion: reduce) { .overlay, .overlay.out, .stamp.slam, .shake, .dots i { animation: none; } }
.frag { font-family: var(--type); font-size: 34px; letter-spacing: 0.3em; text-align: center; color: var(--brass); padding: 14px 0 4px; }
.cell-tag { display: inline-block; font-family: var(--type); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--brass-dim); border-radius: 3px; padding: 0 5px; margin-right: 4px; }
.cell-adm { padding: 10px 0; border-top: 1px dashed var(--line); }
.cell-adm:first-of-type { border-top: 0; }
.ops { margin-top: 10px; }
.op { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.op:first-child { border-top: 0; }
.op-ic { color: var(--brass); text-align: center; }
.op-elimination .op-ic { color: #d0473b; }
.op-decoder .op-ic, .op-cell .op-ic { color: var(--green-ok); }
.op-t { color: var(--muted); font-size: 12px; white-space: nowrap; }
.live-dot { font-family: var(--type); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #d0473b; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d0473b; margin-right: 6px; animation: blink 1.6s infinite; }
.up-row { display: flex; gap: 8px; align-items: stretch; }
.up-row .in { flex: 1; }
.up-note { margin-top: 4px; min-height: 1em; }

/* ---------- v5: app compleet ---------- */
#view { zoom: var(--zoom, 1); }
.av { border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; border: 1px solid var(--line); background: #0b0a08; flex: none; }
.av-empty { display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--brass); background: #1e231f; }
.agent-chip { display: inline-flex; text-decoration: none; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--paper-dim); border-radius: 50%; width: 32px; height: 32px; font-size: 16px; cursor: pointer; }
.icon-btn.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.member { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.viewas-banner { background: #7a2a20; color: #fff; text-align: center; font-size: 13px; padding: 7px 10px; font-family: var(--type); letter-spacing: 0.04em; }
.viewas-banner button { margin-left: 10px; background: #fff; color: #7a2a20; border: 0; border-radius: 4px; padding: 3px 10px; font-family: var(--type); cursor: pointer; }
.offline-banner { background: #3b2a12; color: #f0d6a8; font-family: var(--type); font-size: 11px; letter-spacing: 0.1em; text-align: center; padding: 5px; text-transform: uppercase; }
.ptr { position: fixed; top: 0; left: 0; right: 0; text-align: center; font-family: var(--type); font-size: 12px; color: var(--muted); transform: translateY(-50px); opacity: 0; transition: transform 0.15s, opacity 0.15s; z-index: 5; pointer-events: none; padding-top: calc(8px + var(--safe-top)); }
.ptr.ready { color: var(--brass); }
#toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-bottom)); transform: translate(-50%, 20px); opacity: 0; background: #2a241b; color: var(--paper); border: 1px solid var(--brass-dim); padding: 10px 16px; border-radius: 22px; font-size: 14px; z-index: 200; transition: all 0.25s; max-width: 90vw; text-align: center; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.ov-dialog { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.ov-q { font-size: 16px; margin: 0; text-align: left; }
.btn.danger-solid { background: #9e2a22; border-color: #9e2a22; color: #fff; }
.ov-induction .ov-inner { text-align: left; }
.ind-text { font-size: 15.5px; line-height: 1.65; color: var(--paper-dim); min-height: 170px; }
.ind-dots { display: flex; gap: 7px; justify-content: center; margin-top: 10px; }
.ind-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.ind-dots i.on { background: var(--brass); }
.menu { padding: 4px 18px; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px dashed var(--line); color: var(--paper); text-decoration: none; }
.menu-item:first-child { border-top: 0; }
.mi-ic { width: 28px; text-align: center; color: var(--brass); font-size: 19px; }
.badge.static { position: static; margin: 0; }
.card.unread { border-color: var(--brass-dim); box-shadow: inset 3px 0 0 var(--brass); }
.agenda { display: flex; gap: 14px; align-items: flex-start; }
.agenda.past { opacity: 0.5; }
.ag-date { min-width: 48px; text-align: center; border: 1px solid var(--brass-dim); border-radius: 6px; padding: 4px 0; }
.ag-date b { display: block; font-family: var(--serif); font-size: 22px; color: var(--brass); line-height: 1.1; }
.ag-date span { font-family: var(--type); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--paper-dim); }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--paper-dim); padding: 9px 6px; border-radius: 5px; cursor: pointer; font-family: var(--type); font-size: 12px; }
.seg button.on { background: var(--brass); color: #16120c; border-color: var(--brass); }
.map-card { padding: 10px; }
.map { border-radius: 4px; overflow: hidden; min-height: 120px; }
.map svg { display: block; }
.me-card { display: flex; gap: 18px; align-items: center; }
.me-av .av { border: 3px solid #c4b48f; }
.handbook h3 { color: #7a2a20; margin: 18px 0 6px; }
.handbook h3:first-child { margin-top: 0; }
.stamp.tiny { font-size: 9.5px; padding: 1px 6px; border-width: 1.5px; transform: rotate(-2deg); }
.answer.correct { box-shadow: inset 3px 0 0 var(--green-ok); padding-left: 10px; }
.answer .who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.frag-mini { font-family: var(--type); color: var(--brass); letter-spacing: 0.12em; margin-left: 6px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.media-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.media-tile img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }
.mt-icon { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--brass); background: #0b0a08; border-radius: 4px; }
.qr-box { display: flex; justify-content: center; margin: 16px 0; padding: 12px; background: #e6dcc3; border-radius: 8px; }
.pin-wrap .seal { width: 86px; height: 86px; border-radius: 50%; border: 2px solid var(--brass); display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--brass); }
.cmd-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); }
.agent-card { position: relative; display: block; color: #26201a; }
.cell-card select.in, .agent-adm select.in { min-width: 104px; }
.subtabs { scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
details > summary::-webkit-details-marker { display: none; }
.tabbar a { padding: 6px 0; font-size: 10px; }
.mug-ov { margin: auto; text-align: center; padding: 24px; max-width: 420px; }
.mug-ov img { width: 100%; max-width: 380px; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.6); border: 1px solid #3a352c; }
.lb-row { align-items: center; }
.lb-rank { width: 28px; text-align: center; font-family: var(--serif); font-size: 18px; color: var(--brass); flex: none; }
.lb-pts { font-family: var(--serif); font-size: 22px; color: var(--brass); min-width: 40px; text-align: right; }
.lb-me { background: rgba(196,180,143,.08); border-radius: 6px; }
.agenda.classified { opacity: .75; }
.agenda.classified .lines span { display: block; height: 6px; background: #2b2a24; margin: 5px 0; border-radius: 2px; }
.agenda.classified .lines span:last-child { width: 60%; }
.task-intro { font-family: var(--serif); font-size: 18px; color: var(--brass); margin: 2px 0 12px; }
.task-sec { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; background: rgba(0,0,0,.18); }
.task-sec > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.task-sec > summary::-webkit-details-marker { display: none; }
.task-sec > summary::after { content: "＋"; margin-left: auto; color: var(--brass); font-weight: 400; }
.task-sec[open] > summary::after { content: "－"; }
.task-sec[open] > summary { border-bottom: 1px solid var(--line); }
.task-letter { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--brass); color: #12100c; font-family: var(--serif); font-size: 17px; flex: none; }
.task-body { padding: 12px 14px; }
.task-body .media { margin: 12px 0; }
.online-dot { position: absolute; right: -1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #3fbf6a; border: 2px solid #efe6cf; box-shadow: 0 0 0 0 rgba(63,191,106,.6); animation: onpulse 2s infinite; }
.online-dot[hidden] { display: none; }
.online-line { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.online-pulse { width: 8px; height: 8px; border-radius: 50%; background: #3fbf6a; display: inline-block; animation: onpulse 2s infinite; }
@keyframes onpulse { 0% { box-shadow: 0 0 0 0 rgba(63,191,106,.55); } 70% { box-shadow: 0 0 0 7px rgba(63,191,106,0); } 100% { box-shadow: 0 0 0 0 rgba(63,191,106,0); } }
.shake-seal { margin: 12px 0; }
.seal-closed { text-align: center; border: 1px dashed #6b5a3a; border-radius: 10px; padding: 18px 14px; background: radial-gradient(circle at 50% 30%, rgba(120,30,24,.18), rgba(0,0,0,.25)); }
.seal-wax { width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 24px; color: #f1d9b0; background: radial-gradient(circle at 35% 30%, #c0392b, #7d1e17 60%, #4a100c); box-shadow: inset 0 -4px 8px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.5); cursor: pointer; user-select: none; }
.seal-title { font-family: var(--serif); font-size: 18px; color: var(--brass); }
.seal-hint { color: var(--muted); margin: 4px 0 10px; }
.seal-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; margin: 0 auto 12px; max-width: 200px; }
.seal-bar span { display: block; height: 100%; width: 0; background: #c0392b; transition: width .2s; }
.seal-wobble .seal-wax { animation: wobble .35s; }
@keyframes wobble { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-12deg) scale(1.05) } 75% { transform: rotate(10deg) scale(1.05) } }
.seal-break .seal-wax { animation: sealbreak .65s forwards; }
@keyframes sealbreak { 30% { transform: scale(1.25) rotate(-8deg); } 100% { transform: scale(.2) rotate(40deg); opacity: 0; } }
.seal-reveal { animation: sealreveal .6s ease-out; border-left: 3px solid #c0392b; padding-left: 12px; }
@keyframes sealreveal { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
