:root {
  --ink: #203b32;
  --green: #193c32;
  --muted: #636c62;
  --paper: #f5f2ea;
  --gold: #8b6734;
  --line: #ded9cd;
  --white: #fffdf8;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.16s,
    color 0.16s,
    box-shadow 0.16s;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #af7c34;
  outline-offset: 4px;
}
h1,
h2,
h3,
.brand,
.serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(32px, 3.7vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.3px;
  margin: 12px 0 20px;
}
h2 {
  font-size: 29px;
  line-height: 1.2;
  margin: 8px 0 16px;
}
h3 {
  font-size: 24px;
  margin: 8px 0 14px;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.muted {
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--green);
  border-radius: 5px;
  padding: 13px 20px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}
.btn:hover {
  background: #2a5141;
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #c9c4b7;
}
.btn.secondary:hover {
  background: #eae5d9;
}
.btn.light {
  background: #f1e6ce;
  color: #243b31;
  border-color: #f1e6ce;
}
.text-button {
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #18372f;
  color: #efe8d8;
  padding: 34px 23px;
  display: flex;
  flex-direction: column;
}
.brand {
  text-decoration: none;
  font-size: 24px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.seal {
  font-size: 22px;
  border: 1px solid #9b8659;
  border-radius: 30px 30px 4px 4px;
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #dac08c;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font:
    9px 'Segoe UI',
    sans-serif;
  letter-spacing: 2px;
  color: #d3c7ad;
  margin-top: 5px;
}
.sidebar .caption {
  color: #c0b393;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 40px 12px 13px;
}
.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 13px;
  border: 0;
  border-radius: 5px;
  color: #e2e4d8;
  background: none;
  font-size: 13px;
  margin: 3px 0;
}
.nav-button span {
  color: #c1b187;
  width: 20px;
  font-size: 17px;
}
.nav-button.active,
.nav-button:hover {
  background: #29493e;
  color: #f6dfac;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #435a4d;
  padding-top: 20px;
}
.sidebar-bottom p {
  margin: 0 0 8px;
  font-size: 13px;
}
.sidebar-bottom .text-button {
  color: #e0d2b0;
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 16px;
  background: #fbf9f3;
}
.topbar p {
  font-size: 12px;
  color: var(--muted);
}
.topbar select {
  max-width: 260px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px;
  color: var(--ink);
}
.pill {
  display: inline-block;
  font-size: 11px;
  border: 1px solid #c9d3c4;
  border-radius: 20px;
  padding: 6px 12px;
  background: #eaf0e5;
  color: #32553a;
}
.content {
  padding: 36px 42px 40px;
  max-width: 1510px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 36px;
  margin: 8px 0 0;
}
.page-heading p {
  margin-bottom: 0;
}
.hero {
  position: relative;
  background: var(--green);
  border-radius: 9px;
  overflow: hidden;
  min-height: 325px;
  padding: 40px 44px;
  color: #fff7e8;
  isolation: isolate;
}
.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #173b32 3%, #173b32ef 36%, #173b3260 70%, #173b320a);
  z-index: -1;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  z-index: -2;
}
.hero .eyebrow {
  color: #dfc38e;
}
.hero h1 {
  max-width: 580px;
}
.hero p {
  max-width: 440px;
  color: #f1ebdd;
  font-size: 14px;
  margin-bottom: 26px;
}
.hero .btn {
  position: relative;
}

.delivery-panel {
  margin-bottom: 28px;
  padding: 18px 24px;
}
.delivery-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: #243b31;
}
.delivery-panel summary .pill {
  margin-left: 12px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  margin: 24px 0 32px;
}
.metric {
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric strong {
  display: block;
  font:
    32px Georgia,
    serif;
  margin-bottom: 6px;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 24px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.panel p {
  font-size: 14px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-header h2 {
  font-size: 24px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.steps li {
  display: flex;
  gap: 17px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #c6b891;
  border-radius: 50%;
  color: var(--gold);
  font: 15px Georgia;
  flex-shrink: 0;
}
.steps strong {
  font-size: 13px;
  font-weight: 650;
  display: block;
}
.steps p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.note {
  background: #eeeee3;
  border-left: 3px solid #a48951;
  padding: 16px 20px;
  margin: 18px 0;
  color: #50594c;
  font-size: 13px;
  line-height: 1.6;
}
.team-grid,
.warrior-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.team-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  min-height: 235px;
}
.team-card p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 0;
}
.team-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.team-card .roman {
  font: 36px Georgia;
  color: #9b855b;
  margin-bottom: 14px;
}
.warrior-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.warrior-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 35%;
}
.warrior-card .body {
  padding: 24px;
}
.warrior-card h3 {
  margin: 8px 0;
}
.warrior-card p {
  font-size: 13px;
}
.record {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.record b {
  display: block;
  font: 23px Georgia;
  color: var(--ink);
}
.rows {
  display: grid;
  gap: 12px;
}
.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.archive-row p {
  margin: 4px 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.empty {
  padding: 35px 0;
  text-align: center;
}
.empty p {
  max-width: 520px;
  margin: 12px auto 25px;
  color: var(--muted);
}
.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.login {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 100vh;
}
.login-art {
  position: relative;
  background: #173b32;
  color: #fff5df;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px 60px;
  isolation: isolate;
}
.login-art:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #14372ca0, transparent 40%, #102e26ee);
  z-index: -1;
}
.login-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.login-art blockquote {
  margin: 180px 0 20px;
  font: clamp(34px, 4vw, 58px)/1.16 Georgia;
  max-width: 510px;
}
.login-art p {
  max-width: 410px;
  color: #eee7d5;
  font-size: 14px;
}
.login-side {
  padding: 70px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  width: 100%;
  max-width: 390px;
}
.login-box h1 {
  font-size: 40px;
  margin-bottom: 14px;
}
.login-box > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 20px 0 8px;
}
input,
textarea {
  width: 100%;
  border: 1px solid #c8c8ba;
  background: #fffefa;
  border-radius: 5px;
  padding: 13px 14px;
  color: var(--ink);
  min-height: 46px;
}
textarea {
  resize: vertical;
}
.login-box .btn {
  width: 100%;
  margin-top: 26px;
}
.login-foot {
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #173b32;
  color: white;
  padding: 17px 24px;
  border-radius: 6px;
  box-shadow: 0 8px 35px #0002;
  max-width: 440px;
  z-index: 30;
  display: none;
  font-size: 14px;
  line-height: 1.5;
}
#notice.show {
  display: block;
}
#notice.error {
  background: #733927;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  padding: 32px;
  max-width: 550px;
  width: calc(100% - 30px);
  max-height: 90vh;
}
dialog::backdrop {
  background: #10291fcc;
  backdrop-filter: blur(5px);
}
dialog h2 {
  margin-top: 0;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 25px;
}
.editor-page {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.editor-toolbar h2 {
  font-size: 22px;
  margin: 0;
}
.editor-page iframe {
  border: 0;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.loading {
  padding: 60px;
  text-align: center;
}
.account-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.account-row span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.guide-grid .panel {
  border-top: 3px solid #a18b58;
}
.mobile-brand {
  display: none;
}
.inline-error {
  color: #943823;
  font-size: 13px;
  line-height: 1.5;
}
.history-details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.history-details summary {
  cursor: pointer;
  font-size: 14px;
}
.history-details pre {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.section-space {
  margin-top: 28px;
}
@media (min-width: 1650px) {
  .hero {
    min-height: 380px;
    padding-top: 55px;
  }
  .hero h1 {
    font-size: 58px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 16px;
  }
  .content {
    padding: 30px 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .team-grid,
  .warrior-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 20px 16px;
  }
  .hero {
    padding: 30px;
  }
  .login-side {
    padding: 40px;
  }
  .login-art {
    padding: 35px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar .caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin-top: 18px;
  }
  .nav-button {
    white-space: nowrap;
    width: auto;
    padding: 10px 14px;
    font-size: 12px;
  }
  .nav-button span {
    display: none;
  }
  .topbar {
    height: auto;
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .topbar select {
    max-width: 100%;
    width: 100%;
  }
  .content {
    padding: 24px 18px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .hero {
    min-height: 330px;
    padding: 28px;
  }
  .hero:after {
    background: linear-gradient(90deg, #173b32ef, #173b32aa);
  }
  .hero h1 {
    font-size: 37px;
  }
  .hero p {
    max-width: 100%;
  }
  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .team-grid,
  .warrior-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 23px;
  }
  .archive-row,
  .account-row {
    align-items: start;
    flex-direction: column;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 25px;
    min-height: 260px;
  }
  .login-art blockquote {
    font-size: 32px;
    margin: 35px 0 0;
  }
  .login-art p {
    display: none;
  }
  .login-side {
    padding: 38px 24px;
  }
  .login-box h1 {
    font-size: 32px;
  }
  .login-foot {
    margin-top: 28px;
  }
  .footer {
    gap: 16px;
    line-height: 1.5;
  }
  .editor-toolbar {
    padding: 12px 16px;
  }
  .editor-toolbar h2 {
    font-size: 18px;
  }
  #notice {
    left: 15px;
    right: 15px;
    bottom: 15px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.hero .btn {
  background: #f1e6ce;
  color: #243b31;
  border-color: #f1e6ce;
}
