/* PRAXIOM Studio Review Portal v1 — print-adjacent, high-legibility, self-contained */

:root {
  --paper: #faf8f4;
  --card: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --rule: #d8d2c8;
  --accent: #2b3a55;          /* restrained navy, within cool-accent cap */
  --accent-soft: #eef1f6;
  --good: #2e6b3f;
  --warn: #8a5a17;
  --bad: #8c2f2f;
  --shadow: 0 1px 3px rgba(28,26,23,.10), 0 4px 16px rgba(28,26,23,.06);
}

* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.masthead {
  background: var(--card);
  border-bottom: 2px solid var(--ink);
}
.masthead-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px;
}
.wordmark { font-weight: bold; letter-spacing: .12em; font-size: 1.0rem; }
.wordmark .tm { font-weight: normal; letter-spacing: .04em; color: var(--ink-soft); }
.packet-id { color: var(--ink-soft); font-size: .85rem; }

.screen { max-width: 1200px; margin: 0 auto; padding: 24px; }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: var(--shadow); padding: 28px 32px; margin-bottom: 24px;
}
.card.narrow { max-width: 720px; margin: 32px auto; }

h1 { font-size: 1.7rem; margin: 0 0 .6em; }
h2 { font-size: 1.25rem; margin: 1em 0 .5em; }
h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
p  { margin: .5em 0 1em; }
.howto li { margin-bottom: .55em; }
.reviewer-line { color: var(--ink-soft); }
.fineprint { font-size: .82rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 20px; }
.hint { font-size: .88rem; color: var(--ink-soft); }
.error { color: var(--bad); font-weight: bold; }

.field-label { display: block; font-weight: bold; margin: 12px 0 6px; font-size: .95rem; }
input[type="password"], input[type="text"], input[type="number"], textarea, select {
  font: inherit; color: inherit; background: #fffdf9;
  border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; width: 100%;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible {
  outline: 3px solid #b9c6dd; outline-offset: 1px;
}

/* Buttons */
.btn {
  font: inherit; cursor: pointer;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 6px;
  padding: 10px 18px; margin: 4px 0;
}
.btn:hover { background: var(--accent-soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #223049; }
.btn-big { font-size: 1.15rem; padding: 14px 28px; width: 100%; margin-top: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-nav { min-width: 130px; }

/* Review layout */
.review-layout { display: flex; flex-direction: column; gap: 16px; }
.review-toolbar {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: var(--shadow); padding: 10px 16px;
  position: sticky; top: 0; z-index: 5;
}
.toolbar-center { flex: 1; text-align: center; }
.position-label { font-weight: bold; font-size: .95rem; }
.progressbar {
  height: 8px; background: var(--rule); border-radius: 4px; margin: 6px auto 2px; max-width: 420px;
}
.progress-fill { height: 100%; width: 0; background: var(--good); border-radius: 4px; transition: width .2s; }
.progress-label { font-size: .8rem; color: var(--ink-soft); }
.jump-select { max-width: 230px; font-size: .85rem; }

.review-body { display: flex; gap: 20px; align-items: flex-start; }
.sheet-pane {
  flex: 1.4; background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: var(--shadow); padding: 10px; text-align: center;
}
.sheet-image { max-width: 100%; height: auto; border: 1px solid var(--rule); }
.decision-pane {
  flex: 1; background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: var(--shadow); padding: 20px 22px;
  position: sticky; top: 76px;
}
.sheet-title { font-weight: bold; font-size: 1.15rem; }
.sheet-sub { color: var(--ink-soft); font-size: .85rem; margin-bottom: 14px; }
.pane-heading {
  font-weight: bold; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin: 18px 0 8px; border-top: 1px solid var(--rule); padding-top: 14px;
}
#decision-block .pane-heading { border-top: none; padding-top: 0; margin-top: 0; }

.decision-buttons { display: flex; flex-direction: column; gap: 8px; }
.btn-decision {
  font-size: 1.02rem; font-weight: bold; letter-spacing: .04em; text-align: left;
  padding: 12px 16px; border-width: 2px;
}
.btn-decision::before {
  content: "\2610"; /* empty box */
  margin-right: 10px; font-weight: normal;
}
.btn-decision.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-decision.selected::before { content: "\2611"; } /* checked box */
.decision-caption { margin: -2px 0 0 4px; font-style: italic; }

.upload-status { font-size: .85rem; color: var(--ink-soft); margin-left: 10px; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li {
  font-size: .85rem; background: var(--accent-soft); border: 1px solid var(--rule);
  border-radius: 4px; padding: 6px 10px; margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.file-list .file-remove {
  background: none; border: none; color: var(--bad); cursor: pointer; font: inherit; font-weight: bold;
}
.saved-note {
  margin-top: 18px; font-size: .78rem; color: var(--good); text-align: right;
  opacity: 0; transition: opacity .4s;
}
.saved-note.show { opacity: 1; }

/* Landing options */
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.landing-option {
  border: 2px solid var(--rule); border-radius: 6px; padding: 14px; background: #fffdf9;
}
.landing-option.selected { border-color: var(--good); background: #f2f7f2; }
.landing-option img { width: 100%; height: auto; border: 1px solid var(--rule); }
.landing-option .opt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.landing-option input[type="radio"] { width: 24px; height: 24px; accent-color: var(--good); }
.landing-option label { font-weight: bold; font-size: 1.05rem; cursor: pointer; }
.landing-option textarea { margin-top: 8px; }

/* Extended edits */
.ext-row {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
  border: 1px solid var(--rule); border-radius: 6px; padding: 12px; background: #fffdf9;
}
.ext-row .ext-page { width: 110px; flex: none; }
.ext-row textarea { flex: 1; }
.ext-row .ext-remove { background: none; border: none; color: var(--bad); cursor: pointer; font: inherit; font-weight: bold; margin-top: 8px; }

/* Summary */
.summary-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.summary-table th, .summary-table td { border: 1px solid var(--rule); padding: 6px 8px; text-align: left; vertical-align: top; }
.summary-table th { background: var(--accent-soft); }
.summary-table tr.undecided td { background: #fbeeee; }
.summary-table td.dec { font-weight: bold; white-space: nowrap; }
.submit-box { border-top: 2px solid var(--ink); margin-top: 24px; padding-top: 16px; text-align: center; }
.submit-box .btn-big { max-width: 420px; }

.receipt {
  background: var(--accent-soft); border: 1px solid var(--rule); border-radius: 6px;
  padding: 14px 18px; font-size: .85rem; word-break: break-all;
}

.pagefoot {
  max-width: 1200px; margin: 12px auto 40px; padding: 0 24px;
  color: var(--ink-soft); font-size: .75rem; text-align: center;
}

/* Small screens: stack panes */
@media (max-width: 900px) {
  .review-body { flex-direction: column; }
  .decision-pane { position: static; width: 100%; }
  .review-toolbar { flex-wrap: wrap; }
  .jump-select { order: 5; width: 100%; max-width: none; }
}
