:root {
  color-scheme: light;
  --ink: #1b2926;
  --muted: #64716c;
  --line: #d7dfd9;
  --paper: #fff;
  --canvas: #edf1ed;
  --forest: #122b26;
  --green: #1a5b4b;
  --green-hover: #14483b;
  --brass: #c49a46;
  --rust: #bb5c3e;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background-color: var(--canvas); background-image: linear-gradient(90deg, rgb(18 43 38 / 3%) 1px, transparent 1px), linear-gradient(rgb(18 43 38 / 3%) 1px, transparent 1px); background-size: 32px 32px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.topbar { min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 8px max(24px, calc((100vw - 1180px) / 2)); color: white; background: var(--forest); border-bottom: 3px solid var(--brass); }
.brand { display: inline-flex; align-items: center; width: 166px; height: 74px; overflow: hidden; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.topbar-label { color: #d6dfda; font-size: 13px; }
.quiet-button, .icon-button { min-height: 36px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 2px; padding: 7px 12px; color: white; background: transparent; }
.quiet-button:hover { border-color: var(--brass); color: #f0d99c; }
.page-shell { width: min(1120px, calc(100% - 48px)); min-height: calc(100vh - 150px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr); align-content: center; gap: 48px; margin: 0 auto; padding: 52px 0; }
.portal-column { align-self: center; min-width: 0; padding: 10px 0; }
.access-panel, .download-panel { max-width: 490px; }
.eyebrow { margin: 0 0 12px; color: var(--rust); font-size: 11px; font-weight: 750; letter-spacing: 1.4px; }
h1 { max-width: 14ch; margin: 0; font: 600 34px/1.12 Georgia, serif; }
.intro { max-width: 46ch; margin: 14px 0 26px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.form-stack { display: grid; gap: 9px; }
.form-stack label, .publish-grid label { margin-top: 6px; color: #34443f; font-size: 12px; font-weight: 700; }
input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #b9c7c0; border-radius: 2px; color: var(--ink); background: white; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #a87d2d; outline-offset: 3px; }
.primary-button, .secondary-button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--green); border-radius: 2px; padding: 10px 16px; color: white; background: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-button { margin-top: 12px; }
.primary-button:hover { border-color: var(--green-hover); background: var(--green-hover); }
.primary-button:disabled, .secondary-button:disabled { opacity: 0.55; cursor: wait; }
.form-status { min-height: 20px; margin: 12px 0 0; color: var(--rust); font-size: 13px; }
.brand-column { display: flex; flex-direction: column; justify-content: center; }
.brand-art { position: relative; min-height: 270px; overflow: hidden; padding: 24px; color: white; background: var(--forest); border-left: 4px solid var(--brass); }
.art-index { color: #e8cc8e; font-size: 11px; font-weight: 700; }
.art-rule { width: 100%; height: 1px; margin-top: 14px; background: rgb(255 255 255 / 28%); }
.art-caption { margin: 82px 0 0; font: 600 20px/1.3 Georgia, serif; }
.art-stamp { position: absolute; right: 20px; bottom: 20px; display: grid; width: 72px; height: 72px; place-content: center; border: 1px solid var(--brass); border-radius: 50%; color: #e8cc8e; font-size: 9px; font-weight: 700; line-height: 1.4; text-align: center; }
.privacy-note { max-width: 38ch; margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.release-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 490px; margin: 24px 0 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.release-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.release-row strong { font-size: 15px; }
.release-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); color: var(--green); font-size: 10px; font-weight: 800; }
.download-button { width: min(100%, 300px); }
.text-button { min-height: 36px; border: 0; padding: 7px 4px; color: var(--green); background: transparent; font-size: 13px; font-weight: 700; }
.text-button:hover { color: var(--rust); text-decoration: underline; }
.admin-panel { grid-column: 1 / -1; margin-top: 24px; padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.admin-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.admin-heading h2 { margin: 0; font: 600 23px Georgia, serif; }
.icon-button { width: 36px; min-width: 36px; min-height: 36px; padding: 0; border-color: var(--line); color: var(--ink); font-size: 23px; line-height: 1; background: white; }
.admin-auth { max-width: 390px; }
.secondary-button { width: max-content; min-height: 40px; margin-top: 8px; color: var(--green); background: white; }
.secondary-button:hover { background: #edf4ef; }
.publish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.publish-grid label { display: grid; gap: 7px; }
.publish-grid small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.4; }
.publish-grid .file-field { grid-column: 1 / -1; }
.publish-grid button { grid-column: 1 / -1; justify-self: start; min-width: 190px; }
.company-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.company-list-heading h3 { margin: 0; padding: 10px 0; font-size: 13px; }
.company-list { margin: 0; padding: 0; list-style: none; }
.company-list li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.company-list li span:last-child { color: var(--muted); text-align: right; }
footer { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(24px, calc((100vw - 1180px) / 2)); color: #53615c; border-top: 1px solid var(--line); font-size: 11px; }

@media (max-width: 760px) {
  .topbar { min-height: 76px; padding-inline: 16px; }
  .brand { width: 130px; height: 58px; }
  .topbar-actions { gap: 10px; }
  .topbar-label { max-width: 90px; font-size: 11px; text-align: right; }
  .page-shell { width: min(100% - 32px, 540px); min-height: calc(100vh - 134px); grid-template-columns: 1fr; gap: 24px; padding: 34px 0; }
  h1 { font-size: 30px; }
  .brand-column { display: none; }
  .admin-panel { grid-column: auto; margin-top: 0; padding: 18px; }
  .publish-grid { grid-template-columns: 1fr; }
  .publish-grid .file-field, .publish-grid button { grid-column: auto; }
  footer { padding-inline: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .access-panel, .download-panel { animation: enter 320ms ease-out both; }
  @keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
