:root {
  --ink: #172c3b;
  --paper: #f8f5ee;
  --surface: #fffdf8;
  --secondary: #425965;
  --deep: #192d3c;
  --line: #9cabae;
  --gold: #f0c880;
  font: 1rem/1.55 system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .23em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #24617d; outline-offset: 3px; }
.shell { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.masthead { color: #fff9ee; background: var(--deep); }
.masthead nav { min-height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.masthead a { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; }
.masthead a:focus-visible { outline-color: var(--gold); }
.mark { text-decoration: none; font-weight: 800; }
.mark span { font-weight: 500; }
.skip { position: fixed; z-index: 1; top: .6rem; left: .6rem; transform: translateY(-160%); padding: .7rem; background: var(--surface); }
.skip:focus { transform: none; }
main.shell { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); margin-block: clamp(1rem, 4vw, 3.25rem); }
.cover {
  min-width: 0;
  padding: clamp(1.5rem, 5.25vw, 3.6rem);
  border-radius: .9rem 0 0 .9rem;
  color: #fffaf0;
  background:
    linear-gradient(145deg, #172a3a 15%, #192f3ee3 62%, #244d56aa),
    repeating-linear-gradient(0deg, #fff2 0 1px, transparent 1px 31px),
    #22444e;
}
.cover h1 {
  margin: .2rem 0 1.2rem;
  font: 500 clamp(2.6rem, 5.4vw, 5.45rem)/.98 Georgia, serif;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
}
.cover p { max-width: 27ch; margin: 0; color: #e7eef0; font-size: clamp(1rem, 1.75vw, 1.25rem); }
.cover h1::after { display: block; content: ""; width: 3rem; height: .1875rem; margin-top: 1.5rem; background: var(--gold); }
.workbench {
  min-width: 0;
  border: 1px solid #cdd1c6;
  border-left: 0;
  border-radius: 0 .9rem .9rem 0;
  padding: clamp(1rem, 3.6vw, 2.8rem);
  background: var(--surface);
}
h2, h3 { margin: 0; font-family: Georgia, serif; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
.quiet { margin: .48rem 0 0; color: var(--secondary); }
.fields { display: grid; gap: .8rem; margin: 1.2rem 0; }
.fields label, .file-label { display: block; font-weight: 680; font-size: .92rem; }
.business { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.optional { color: var(--secondary); font-weight: 450; margin-inline-start: .2rem; }
textarea, select, input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: .3rem;
  padding: .5rem .6rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #fff;
  font-size: 1rem;
  font-weight: 450;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #566773; opacity: 1; }
.suggestion { margin: -.3rem 0 0; padding: .62rem .78rem; border-left: 3px solid #587c87; background: #ebf0ee; color: var(--ink); }
.assets { margin-block: 1.25rem; padding-top: 1.1rem; border-top: 1px solid #cbd4d0; }
.file-label { margin-top: .8rem; }
input[type="file"] { padding: 0; background: transparent; }
input::file-selector-button { height: 44px; margin-right: .5rem; padding: 0 .6rem; border: 0; border-right: 1px solid var(--line); background: #e8efee; color: var(--ink); cursor: pointer; font: inherit; }
#asset-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .6rem; list-style: none; margin: .6rem 0 0; padding: 0; }
#asset-list:empty { display: none; }
#asset-list li { min-width: 0; display: grid; gap: .35rem; padding: .55rem; border: 1px solid #cbd4d0; border-radius: .45rem; background: #f1f4ef; }
#asset-list img, #asset-list video { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #dce4e0; }
#asset-list p { margin: 0; overflow-wrap: anywhere; font-size: .88rem; }
button { min-height: 44px; padding: .5rem .78rem; border: 1px solid #274f62; border-radius: .4rem; background: #eff3f1; font-weight: 700; cursor: pointer; }
button:hover { background: #dfeae7; }
button:disabled { opacity: .62; cursor: default; }
.primary { background: #244c61; color: #fffdf8; }
.primary:not(:disabled):hover { background: #143749; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.status { margin: .55rem 0 0; color: #214f61; }
.status:empty { margin: 0; }
#package { margin: 1rem 0 0; padding: 1rem; border: 1px solid var(--line); border-radius: .4rem; background: #f0f3ed; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
#review { animation: reveal .18s ease-out; }
@keyframes reveal { from { opacity: .7; } to { opacity: 1; } }
@media (max-width: 46rem) {
  main.shell { grid-template-columns: 1fr; }
  .cover { border-radius: .9rem .9rem 0 0; }
  .cover h1 { font-size: clamp(2.5rem, 10vw, 3.8rem); }
  .workbench { border-left: 1px solid #cdd1c6; border-radius: 0 0 .9rem .9rem; }
}
@media (max-width: 27rem) { .business { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { #review { animation: none; } }
