
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

*, *::before, *::after { box-sizing: border-box; }
.runes-page h1, .runes-page h2, .runes-page h3, .runes-page h4, .runes-page h5 { font-weight: 700; }
.runes-page p { margin: 0 0 10px; }

.runes-page [hidden] { display: none !important; }

.runes-page {
  --bg: #f6f4f4;
  --panel: #ffffff;
  --panel-2: #fafafa;
  --line: #dde1e5;
  --text: #17191d;
  --muted: #737881;
  --accent: #2baf7e;
  --accent-bright: #1f9a6c;
  --up: #1f9a6c;
  --down: #e04545;
  --warn: #b07a3c;
  margin: 0;
  padding: 0 clamp(12px, 3vw, 32px) 64px;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  letter-spacing: -0.01em;
}

.topbar {
  position: relative; overflow: hidden;
  margin: 0 calc(-1 * clamp(12px, 3vw, 32px)) 12px;
  padding: 26px clamp(12px, 3vw, 32px) 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f4f9f7 0%, #ffffff 46%, #ffffff 100%);
}
.topbar-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.banner-meta {
  position: absolute; left: clamp(12px, 3vw, 32px); right: clamp(12px, 3vw, 32px);
  bottom: 7px; max-width: 940px; margin: 0 auto;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; flex-wrap: wrap;
  font-size: 11px; line-height: 1.3; color: var(--muted);
}

.banner-meta #save-state:empty { display: none; }

.banner-meta .ghost {
  border: 0; background: none; padding: 0; font: inherit; color: var(--muted);
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #c3c8ce;
}
.banner-meta .ghost:hover { color: var(--accent); text-decoration-color: var(--accent); }
.plate {
  position: relative; max-width: 940px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fffffff2;
  padding: 30px 32px 34px; box-shadow: 0 1px 2px #17191d08;
}

.plate::before, .plate::after { content: ''; position: absolute; width: 14px; height: 14px; }
.plate::before { left: 9px; top: 9px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.plate::after { right: 9px; bottom: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.eyebrow {
  font-size: 10.5px; letter-spacing: .4em; text-indent: .4em;
  color: var(--accent); font-weight: 700;
}
.topbar h1 {
  margin: 16px 0 0; font-size: clamp(34px, 5.6vw, 66px); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1;
}

.topbar h1 .pre {
  display: block; font-size: .4em; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 8px;
}
.topbar h1 u { text-decoration: none; color: var(--accent); }
@media (max-width: 760px) {
  .topbar { padding-top: 18px; padding-bottom: 20px; }
  .plate { padding: 22px 14px 26px; }
  
  .eyebrow { font-size: 10px; letter-spacing: .18em; text-indent: .18em; }
  .topbar h1 { margin-top: 12px; }
  
  .banner-meta { bottom: 3px; gap: 8px; font-size: 10px; }
}

button.ghost, a.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  padding: 6px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; text-decoration: none;
}
button.ghost:hover, a.ghost:hover { border-color: var(--accent); }
button.primary {
  background: var(--accent); border: 0; color: #ffffff; font-weight: 700;
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
}

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 2px #17191d0a; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head-actions { display: flex; gap: 6px; }
.panel h3 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 8px; }
.panel h4 { margin: 16px 0 6px; font-size: 14px; }
.head-with-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.head-with-action h3 { margin-bottom: 8px; }
button.ghost.small { padding: 3px 9px; font-size: 11px; }

.lead { color: var(--muted); margin: 0 0 14px; }
.note { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.hint { color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); }

.measure.done { border-color: #2baf7e66; }
.measure-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.measure-summary b { color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.step { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; gap: 4px 8px; align-items: center; }
.step-no {
  grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  color: #ffffff; font-weight: 700; display: grid; place-items: center; font-size: 12px;
}
.step-label { color: var(--muted); font-size: 12px; }

.step > input, .step > select { grid-column: 2; }
.measure-result { margin: 14px 0 0; padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.measure-result:empty { display: none; }
.measure-result.good { background: #2baf7e14; border: 1px solid #2baf7e66; }
.measure-result.bad { background: #e045451a; border: 1px solid #e0454555; }

input[type='number'], select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 6px 8px; border-radius: 6px; font: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }

.layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.layout.dimmed { opacity: .45; pointer-events: none; }
.col { min-width: 0; }
.sticky { position: sticky; top: 16px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .sticky { position: static; } }

.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: start; }
.grid-fields label { display: grid; grid-template-rows: auto auto auto; gap: 4px; align-content: start; }
.grid-fields span { color: var(--muted); font-size: 12px; align-self: end; }
.field-row label { display: grid; gap: 4px; max-width: 200px; }
.check-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.rune-group { margin-bottom: 8px; }
.slot-count { color: var(--muted); font-weight: 400; font-size: 12px; }
.slot-count.over { color: var(--down); font-weight: 700; }
.rune-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.rune-list li {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px;
  border-bottom: 1px solid #eceef0; font-size: 13px;
}
.rune-list li:last-child { border-bottom: 0; }
.rune-list li.equipped { background: #2baf7e14; }

.rstat { color: var(--muted); font-size: 11px; white-space: nowrap; margin-left: auto; }
button.equip {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; padding: 0;
}
button.equip.on { border-color: var(--accent); color: var(--accent); }

.badge { font-size: 10px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: transparent; letter-spacing: .02em; }
.badge.required { border-color: var(--warn); color: var(--warn); }
.badge.fam.dragon { border-color: #7a5fb5; color: #7a5fb5; }
.badge.fam.erosion { border-color: #b0602a; color: #b0602a; }
.badge.fam.awaken { border-color: var(--accent); color: var(--accent); }
.badge.fam.curse { border-color: var(--down); color: var(--down); }
.badge.fam.night { border-color: #4a7ea8; color: #4a7ea8; }
.badge.fam.util { border-color: var(--warn); color: var(--warn); }

.validation { background: #e045451a; border: 1px solid #e0454555; border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; font-size: 13px; }

.blocked { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scen { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.scen span { display: block; color: var(--muted); font-size: 11px; }
.scen b { font-size: 15px; }
.scen.primary { border-color: var(--accent); }
.factors { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.factors div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.factors span { display: block; color: var(--muted); font-size: 11px; }

.rec-slot { margin-bottom: 12px; }
.rec-slot h5 { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.rec { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; font-size: 13px; }
.rec:hover { background: var(--panel-2); }
.rec b { width: 68px; }
.rec.up b { color: var(--up); }
.rec.down b { color: var(--down); }
.rec.none { color: var(--muted); font-size: 12px; }
.rec span:nth-of-type(1) { flex: 1; }
button.apply { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 5px; padding: 2px 8px; cursor: pointer; font-size: 11px; }
button.apply:hover { border-color: var(--accent); color: var(--accent); }

.best-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.best-head b { color: var(--up); font-size: 16px; }
.best-slot { font-size: 13px; padding: 2px 0; }
.best-slot .new { color: var(--up); font-weight: 700; }

ul.warn { margin: 6px 0 0; padding-left: 18px; color: var(--warn); font-size: 12px; }
ul.warn li { margin: 2px 0; }

.measure-outcome { margin-top: 14px; }
.measure-outcome .measure-result { margin: 0; }

.step-action { display: flex; align-items: flex-end; }
.step-action button.primary {
  width: 100%; padding: 6px 14px; border: 1px solid var(--accent);
  font: inherit; line-height: 1.6; border-radius: 6px;
}
button.primary:disabled { opacity: .45; cursor: not-allowed; }

.warn-note { color: var(--warn) !important; }
#equip-status b.ok { color: var(--up); }
#equip-status b.warn { color: var(--warn); }

.rune-list li { flex-wrap: wrap; }
button.rname {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: none; border: 0; color: var(--text); font: inherit; text-align: left;
  cursor: pointer; padding: 0; border-bottom: 1px dotted #c3c8ce;
}
button.rname:hover { color: var(--accent); border-bottom-color: var(--accent); }
.rune-detail {
  flex-basis: 100%; margin: 6px 0 2px; padding: 10px 12px;
  background: #f7f8f9; border: 1px solid var(--line); border-radius: 6px; font-size: 12px;
}
.d-desc { color: var(--muted); white-space: normal; line-height: 1.6; }
.d-head { margin: 10px 0 4px; font-size: 11px; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; }
.d-head.warn { color: var(--warn); }
.d-list { margin: 0; padding-left: 16px; }
.d-list li { display: list-item; border: 0; padding: 1px 0; font-size: 12px; }
.d-list.warn li { color: var(--warn); }
.d-note { color: var(--muted); font-size: 11px; margin: 2px 0 4px; line-height: 1.5; }
.tag { font-size: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; color: var(--muted); margin-left: 4px; }
.d-fam { margin-top: 8px; color: var(--muted); font-size: 11px; }
.d-list .neg { color: var(--down); }

.btn-group { display: inline-flex; gap: 6px; }
.btn-group.toggles { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
button.ghost.toggle.active {
  
  background: #17835b; border-color: #17835b; color: #ffffff; font-weight: 700;
}
button.ghost.toggle.active::before { content: '✓ '; }

.rune-list li.filtered { opacity: .38; }
.badge.filtered-tag { border-color: var(--line); color: var(--muted); }

.best-caveat {
  margin-top: 10px; padding: 8px 10px; border-radius: 6px; font-size: 12px;
  background: #b07a3c14; border: 1px solid #b07a3c55; color: var(--warn);
}
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.45; display: block; }

.radio-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.radio-row .radio-label { color: var(--muted); }
.radio-row label { display: inline-flex; align-items: center; gap: 4px; }
.radio-row input[type='radio'] { width: auto; }
.radio-out { margin-left: auto; color: var(--muted); }
.radio-out b { color: var(--accent); }

.factors div em { display: block; color: var(--muted); font-size: 10px; font-style: normal; }
.derived { margin-top: 10px; display: grid; gap: 4px; }
.drow { display: grid; grid-template-columns: 128px auto 1fr; gap: 8px; align-items: baseline;
  padding: 4px 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; }
.drow span { color: var(--muted); font-size: 12px; }
.drow b { font-size: 13px; }
.drow em { color: var(--muted); font-size: 11px; font-style: normal; text-align: right; }
@media (max-width: 640px) { .drow { grid-template-columns: 1fr auto; } .drow em { grid-column: 1 / -1; text-align: left; } }

.rune-list { max-height: 420px; }
.list-count { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 8px; }

.tweak-head { color: var(--warn) !important; }
.tweaks { display: grid; gap: 8px; margin-bottom: 8px; }
.tweak { display: grid; grid-template-columns: 1fr 92px; gap: 4px 8px; align-items: center; }
.tweak span { color: var(--text); font-size: 12px; }
.tweak input { width: 92px; }
.tweak em { grid-column: 1 / -1; color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; }

.chip {
  font-size: 10px; padding: 2px 6px; border-radius: 4px; border: 0;
  font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.chip.tweakable { background: #b07a3c1f; color: var(--warn); }
.chip.tweakable::before { content: '⚙ '; }
.chip.tweaked { background: #1f9a6c1f; color: var(--up); }
.chip.tweaked::before { content: '● '; }
.diag { margin-top: 6px; padding-top: 6px; border-top: 1px solid #e0454533; font-size: 12px; line-height: 1.6; }

ul.warn li.neg { color: var(--down); }
ul.warn .where {
  display: inline-block; min-width: 44px; margin-right: 6px; padding: 0 5px;
  border-radius: 3px; font-size: 10px; text-align: center;
  background: #17191d12; color: var(--muted);
}
ul.warn .where.rec { background: #2baf7e1f; color: var(--accent); }
ul.warn .kind { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }

#rune-modal {
  border: 1px solid var(--line); border-radius: 12px; padding: 0;
  max-width: 560px; width: calc(100% - 32px); color: var(--text);
  background: var(--panel); box-shadow: 0 24px 60px #17191d29;
}
#rune-modal::backdrop { background: #17191d5c; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel);
}
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-head .muted { font-size: 12px; font-weight: 400; }
#modal-body { padding: 14px 16px 18px; max-height: min(70vh, 560px); overflow-y: auto; }
#modal-body .d-desc { color: var(--text); }
#modal-body .d-head:first-child { margin-top: 0; }

button.rname.inline {
  flex: 0 1 auto; background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--text); border-bottom: 1px dotted #c3c8ce; text-align: left;
}
button.rname.inline:hover { color: var(--accent); border-bottom-color: var(--accent); }
button.rname.inline.new { color: var(--up); font-weight: 700; }
.rec button.rname.inline { flex: 1; }
ul.warn button.rname.inline { font-weight: 700; color: inherit; }
ul.warn li.neg button.rname.inline { color: var(--down); }

.hint.over { color: var(--down); font-weight: 700; }

.art-row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; margin-bottom: 6px; }
.art-color { margin: 3px 0 0; font-size: 11px; font-weight: 700; }
.art-color.무색 { color: #8a8f96; }
.art-color.청색 { color: #3d7fb8; }
.art-color.적색 { color: #c0504a; }
.art-color.녹색 { color: #4a9c62; }
.art-color.은색 { color: #8c8c8c; }
.art-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 4px; }
.art-chip {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12px; cursor: pointer;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-chip:hover { border-color: var(--accent); }
.art-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.art-chip.dim { color: var(--muted); }
.art-chip.dim.on { color: #fff; }
.art-chip b { margin-left: 3px; font-size: 11px; }
.step-pair { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 6px; align-items: center; }
.step-pair > select, .step-pair > input { grid-column: auto; width: 100%; }
.step-pair > input { text-align: right; }
.job-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.job-row label { max-width: 160px; }
.job-row .hint { padding-bottom: 6px; }

.negative-filters { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; margin: 10px 0 8px; }
.filter-label { color: var(--muted); font-size: 11px; margin-right: 4px; }
button.ghost.toggle.tiny { padding: 2px 8px; font-size: 11px; border-radius: 5px; }
button.ghost.toggle.tiny b { color: var(--muted); font-weight: 400; margin-left: 2px; }
button.ghost.toggle.tiny.active b { color: inherit; }
.badge.neg-trait { border-color: var(--down); color: var(--down); }

.stale-warn {
  margin-top: 10px; padding: 9px 12px; border-radius: 8px;
  background: #fff6ed; border: 1px solid #f0c9a0; color: #8a4b12; font-size: 12.5px;
}
.warn-inline { color: #b4541a; font-weight: 700; }
.badge.cond-tag { border-color: #4a7ea8; color: #4a7ea8; }
.filter-sep { width: 1px; height: 14px; background: var(--line); margin: 0 4px; }

.rune-list li.band-cap {
  display: block; padding: 5px 10px; background: var(--panel-2);
  color: var(--muted); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; border-bottom: 1px solid var(--line); position: sticky; top: 0;
}

button.ghost.toggle.active.partial {
  
  background: #4ec296; border-color: #17835b; color: #ffffff;
  border-style: dashed;
}
button.ghost.toggle.active.partial::before { content: '✓ '; opacity: .7; }
.rune-list li.exception { background: #2baf7e14; }
.badge.exception-tag { border-color: var(--accent); color: var(--accent); }

button.scen {
  font: inherit; cursor: pointer; width: 100%;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px; text-align: center; color: var(--text);
}
button.scen:hover { border-color: var(--accent); }
button.scen.primary { border-color: var(--accent); background: #2baf7e14; }
button.scen.primary span { color: var(--accent); font-weight: 700; }

#combat-fields {
  display: grid;
  grid-template-rows: auto auto auto;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px 16px;
  align-items: start;
}
.combat-group { display: contents; }
.combat-group h5 { margin: 0; font-size: 11px; color: var(--text); font-weight: 700; align-self: end; }
.combat-group .group-desc { margin: 0 0 4px; font-size: 11px; line-height: 1.45; color: var(--muted); }

@media (max-width: 760px) {
  #combat-fields { display: block; }
  .combat-group { display: block; }
  .combat-group + .combat-group { margin-top: 14px; }
}

.hint-toggle {
  position: relative; border: 1px solid var(--line); background: transparent; color: var(--muted);
  width: 14px; height: 14px; line-height: 1; padding: 0; border-radius: 50%;
  font-size: 9px; cursor: pointer; vertical-align: middle;
}
.hint-toggle:hover { border-color: var(--accent); color: var(--accent); }
.hint-toggle[aria-expanded='true'] { border-color: var(--accent); color: var(--accent); background: var(--accent); color: #fff; }
.field-hint {
  position: absolute; z-index: 40; left: 50%; top: calc(100% + 7px);
  transform: translateX(-50%);
  width: max-content; max-width: min(280px, 70vw);
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 11px; line-height: 1.6;
  font-weight: 400; text-align: left; white-space: normal;
  box-shadow: 0 4px 14px #17191d1f;
}

.field-hint::before {
  content: ''; position: absolute; left: calc(50% + var(--tail-shift, 0px)); top: -5px;
  width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg);
  background: var(--panel); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}

.warn.corrected li { background: #2baf7e0f; border-color: #2baf7e40; }
.warn .applied { color: var(--accent); font-weight: 700; white-space: nowrap; }

.modal-actions { display: flex; align-items: center; gap: 6px; }

#import-modal {
  border: 1px solid var(--line); border-radius: 12px; padding: 0;
  background: var(--panel); color: var(--text);
  width: min(560px, calc(100vw - 32px));
}
#import-modal::backdrop { background: #17191d5c; }
#import-body { padding: 14px 16px 18px; max-height: min(76vh, 620px); overflow-y: auto; }
#import-body .lead { margin: 0 0 12px; }
#import-body h4 { margin: 0; font-size: 13px; }

#shot-guide { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
#shot-guide summary { cursor: pointer; font-size: 13px; font-weight: 600; }
#shot-guide[open] summary { margin-bottom: 8px; }
#shot-sample {
  display: block; width: 100%; height: auto; margin: 8px 0;
  border: 1px solid var(--line); border-radius: 6px;
}

#shot-sample:not([src]) { display: none; }

.promptbox {
  margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); font-size: 12px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  max-height: 220px; overflow-y: auto; user-select: all;
}
#import-paste {
  width: 100%; box-sizing: border-box; resize: vertical;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  background: var(--bg); color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5;
}
.wz-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.wz-nav .ghost { margin-right: auto; }

.imp-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px;
  align-items: baseline; padding: 5px 2px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.imp-row:last-child { border-bottom: 0; }
.imp-row .imp-cur { color: var(--muted); font-variant-numeric: tabular-nums; }
.imp-row .imp-arrow { color: var(--muted); }
.imp-row .imp-next { font-weight: 700; font-variant-numeric: tabular-nums; }
.imp-row.up .imp-next { color: var(--up); }
.imp-row.miss { color: var(--muted); }
.imp-row.miss .imp-next { font-weight: 400; }
.imp-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.report-page .wrap { max-width: 940px; margin: 0 auto; }

.report-page .wanted {
  margin: 12px 0 0; padding: 12px 14px;
  border: 1px solid #cfe6db; border-radius: 8px; background: #f3faf7;
}
.report-page .wanted h3 {
  margin: 0 0 8px; font-size: 11px; color: var(--up);
  letter-spacing: .12em; text-transform: none;
}
.report-page .wanted ul { margin: 0; padding-left: 17px; font-size: 12.5px; line-height: 1.62; }
.report-page .wanted li { margin-bottom: 4px; }
.report-page .wanted li:last-child { margin-bottom: 0; }

.report-page .form-grid { display: flex; flex-direction: column; gap: 14px; }
.report-page .field { display: flex; flex-direction: column; gap: 5px; }
.report-page .field > label {
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.report-page .who-row { max-width: 260px; }
.report-page input[type='text'], .report-page input[type='search'], .report-page textarea {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 7px; padding: 9px 11px; resize: vertical;
}
.report-page input:focus, .report-page textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
  background: var(--panel); border-color: var(--accent);
}
.report-page input::placeholder, .report-page textarea::placeholder { color: #aab0b7; }
.report-page .field.bad input, .report-page .field.bad textarea { border-color: var(--down); }
.report-page .err { font-size: 12px; color: var(--down); }
.report-page .err:empty { display: none; }

.report-page .trap {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.report-page .submit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.report-page .submit-row button.primary { padding: 9px 22px; font-size: 13.5px; }
.report-page .privacy { margin: 0; font-size: 11.5px; color: var(--muted); max-width: 46ch; }
.report-page .sent {
  margin: 0; font-size: 12.5px; color: var(--up); font-weight: 700;
}

.report-page .search-row { position: relative; max-width: 340px; }
.report-page .search-row input { padding-left: 30px; }
.report-page .search-row svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; color: var(--muted); pointer-events: none;
}
.report-page .shown { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.report-page .entries { display: flex; flex-direction: column; gap: 10px; }
.report-page .entry {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); overflow: hidden;
}
.report-page .entry.is-mine { border-color: #e0c9a6; }
.report-page .said { padding: 13px 16px 14px; display: flex; flex-direction: column; gap: 7px; }
.report-page .said-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.report-page .who-wrap { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.report-page .who {
  font-weight: 700; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.report-page .when {
  font-size: 11.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.report-page .what {
  margin: 0; font-size: 13.5px; line-height: 1.62; white-space: pre-wrap;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.report-page .what.open { -webkit-line-clamp: unset; }
.report-page .more-btn {
  align-self: flex-start; font: inherit; font-size: 11.5px; font-weight: 700;
  color: var(--up); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.report-page .why {
  margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55;
  display: flex; gap: 8px; white-space: pre-wrap;
}
.report-page .why .k {
  flex: none; font-weight: 700; font-size: 10.5px; letter-spacing: .1em;
  color: var(--muted); border: 1px solid var(--line); background: var(--panel-2);
  border-radius: 4px; padding: 1px 5px; height: fit-content; margin-top: 1px;
  white-space: nowrap;
}

.report-page .did {
  padding: 10px 16px 11px; background: var(--panel-2); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 12px; align-items: baseline;
}
.report-page .did .answer {
  margin: 0; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap;
}
.report-page .did .answer.none { color: var(--muted); }

.report-page .pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
  border: 1px solid; border-radius: 20px; padding: 2px 10px 2px 8px;
}
.report-page .pill::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid currentColor; flex: none;
}
.report-page .s-new .pill { color: var(--muted); border-color: #d3d7dc; background: #f1f2f4; }
.report-page .s-new .pill::before { background: transparent; }
.report-page .s-open .pill { color: var(--warn); border-color: #e6d5bf; background: #faf4ec; }
.report-page .s-open .pill::before {
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.report-page .s-done .pill { color: var(--up); border-color: #bfe4d3; background: #eef8f3; }
.report-page .s-done .pill::before { background: currentColor; }
.report-page .s-no .pill { color: var(--down); border-color: #f2cccc; background: #fdf0f0; }
.report-page .s-no .pill::before { background: currentColor; border-radius: 2px; }

.report-page .load-more {
  margin-top: 12px; width: 100%; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 11px; cursor: pointer;
}
.report-page .load-more:hover { border-color: var(--accent); color: var(--up); }

@media (max-width: 560px) {
  .report-page .did { grid-template-columns: auto minmax(0, 1fr); }
  .report-page .did .when { grid-column: 2; justify-self: end; }
}

.head-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

button.accent {
  border: 1px solid var(--accent); border-radius: 6px;
  background: transparent; color: var(--accent-bright);
  font-weight: 700; cursor: pointer;
}
button.accent:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
