@font-face {
  font-family: Condensed;
  src: url('/font.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #20302c;
  --muted: #566762;
  --forest: #244e43;
  --rail: #192c28;
  --paper: #f6f6f0;
  --line: #d5dbd1;
  --gold: #ffc66e;
  --soft: #e7eee7;
  --white: #fff;
  --warn: #953c2f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.5 'DM Sans',
    'Inter',
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: var(--forest);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
.link-btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 13px;
  background: #fff;
  font-weight: 650;
  text-decoration: none;
}
button:hover,
.link-btn:hover {
  filter: brightness(0.96);
}
.primary {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.plain {
  border: 0;
  background: transparent;
}
.skip {
  position: absolute;
  left: -400px;
}
.skip:focus {
  left: 10px;
  background: white;
  z-index: 10;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
}
aside {
  background: var(--rail);
  color: #eef4e9;
  padding: 32px 15px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.brand {
  color: white;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px;
  text-decoration: none;
  font:
    bold 29px/1 Condensed,
    sans-serif;
}
.brand-sub {
  display: block;
  font:
    11px/1.6 Arial,
    sans-serif;
  color: #becfc6;
  letter-spacing: 0.03em;
}
.mark {
  width: 38px;
  height: 40px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: rotate(-5deg);
}
.mark i {
  width: 5px;
  height: 16px;
  background: var(--rail);
  transform: skew(-16deg);
}
.mark i:nth-child(2) {
  height: 24px;
}
nav,
.channels {
  display: grid;
  gap: 4px;
}
aside button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d7e2dc;
  text-align: left;
  padding: 10px 14px;
  font-weight: 500;
}
aside button.active {
  background: #31483f;
  color: #fff;
  font-weight: 700;
}
nav button::before {
  display: inline-block;
  width: 27px;
  color: #afc7b3;
  font-size: 17px;
}
nav button:nth-child(1)::before {
  content: '▤';
}
nav button:nth-child(2)::before {
  content: '▦';
}
nav button:nth-child(3)::before {
  content: '↗';
}
nav button:nth-child(4)::before {
  content: '⚙';
}
.side-label {
  border-top: 1px solid #3b5048;
  padding: 22px 14px 0;
  font-size: 12px;
  color: #bfd0c6;
}
.channels {
  margin-top: -20px;
}
.channels button {
  font-size: 13px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}
.gold {
  background: #eab65f;
}
.mint {
  background: #7eb69e;
}
.side-foot {
  margin-top: auto;
  padding: 10px 14px 0;
  color: #becdc6;
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
header {
  height: 73px;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(18px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbf6;
}
#crumb {
  color: var(--muted);
  font-size: 13px;
}
main {
  max-width: 1370px;
  margin: auto;
  padding: 32px clamp(18px, 4vw, 58px) 70px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font:
    700 clamp(38px, 4vw, 62px) / 1.06 Condensed,
    sans-serif;
  letter-spacing: -0.04em;
}
h2 {
  font:
    700 28px/1.14 Condensed,
    sans-serif;
  letter-spacing: -0.018em;
}
h3 {
  font-size: 17px;
  line-height: 1.3;
}
small,
.muted {
  color: var(--muted);
}
.heading,
.section-title,
.toolbar,
.spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.heading {
  margin-bottom: 25px;
}
.section-title {
  margin: 30px 0 14px;
}
.section-title small {
  font-variant-numeric: tabular-nums;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  color: #3a544c;
  background: #e6efe6;
  border: 1px solid #cfdfd0;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}
.tag.warn {
  background: #faeedb;
  color: #7e501d;
  border-color: #ead4b1;
}
.tag.bad {
  color: #8c3528;
  background: #fae0d9;
  border-color: #e6b9ae;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: 15px;
  background: #d5dfcf;
  border: 1px solid #bacbb8;
  min-height: 220px;
}
.hero-copy {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
}
.hero h2 {
  font-size: clamp(33px, 4vw, 55px);
}
.hero img {
  width: 100%;
  height: 100%;
  max-height: 270px;
  object-fit: cover;
  object-position: 50% 30%;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.card img {
  background: var(--soft);
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: 50% 30%;
}
.card-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.card .plain {
  text-align: left;
  padding: 0;
  color: var(--forest);
}
.empty {
  padding: 25px 20px;
  background: #fff;
  border: 1px dashed #b8c9bd;
  border-radius: 12px;
}
.episode-list {
  display: grid;
  gap: 8px;
}
.episode-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 11px 15px;
  border-radius: 10px;
}
.episode-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 7px;
}
.episode-item small {
  display: block;
  font-weight: 400;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 21px;
  min-width: 0;
}
.grid-work {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(200px, 0.8fr);
  gap: 18px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 0 17px;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.tab.active {
  background: var(--ink);
  color: #fff;
}
.stage-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.stage-list li {
  border-left: 2px solid var(--line);
  margin-left: 7px;
  padding: 1px 0 14px 15px;
  position: relative;
}
.stage-list li:before {
  content: '';
  width: 9px;
  height: 9px;
  position: absolute;
  left: -5.5px;
  top: 6px;
  border-radius: 50%;
  background: #b9c7bc;
}
.stage-list li.done:before {
  background: #32745a;
}
.stage-list li.current:before {
  background: #b56828;
}
.stage-list li:last-child {
  border-color: transparent;
}
.side-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}
video {
  width: 100%;
  max-height: 520px;
  background: #172723;
  border-radius: 10px;
}
.sheet {
  width: 100%;
  display: block;
  border-radius: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.span {
  grid-column: 1/-1;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 650;
  color: #3f544b;
}
input,
textarea,
select {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #b8c6bc;
  border-radius: 6px;
  background: #fcfdfa;
  color: #20352b;
  line-height: 1.4;
}
textarea {
  resize: vertical;
  min-height: 65px;
}
.code {
  font:
    13px/1.5 ui-monospace,
    monospace;
  width: 100%;
  min-height: 240px;
}
.line-edit {
  margin: 14px 0;
  padding: 13px;
  background: #f4f6ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.line-edit summary {
  font-size: 13px;
  cursor: pointer;
}
.line-edit label + label {
  margin-top: 7px;
}
.compact {
  margin-top: 10px;
}
.block {
  display: block;
  margin: 12px 0;
}
.note,
.error {
  padding: 11px 13px;
  border-radius: 7px;
  background: #eff4ea;
  font-size: 13px;
  margin: 9px 0;
}
.error {
  background: #fbebe5;
  color: #823b29;
  white-space: pre-wrap;
}
details > summary {
  cursor: pointer;
}
.metric-list {
  margin: 12px 0 0;
  padding-left: 18px;
}
.metric-list li {
  padding: 3px 0;
}
.metric-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.metric-table th,
.metric-table td {
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
.table-scroll {
  overflow: auto;
}
.meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
}
.meta-links a {
  overflow-wrap: anywhere;
}
.wide {
  width: 100%;
}
.spacer {
  margin-top: 18px;
}
button.back {
  padding-left: 0;
  color: var(--muted);
}
.error:empty {
  display: none;
}
dialog {
  width: min(620px, 94vw);
  border: none;
  border-radius: 15px;
  box-shadow: 0 20px 75px #172e2840;
  padding: 24px;
  color: var(--ink);
  max-height: 88vh;
  overflow: auto;
}
dialog::backdrop {
  background: #15272078;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.modal-head button {
  font-size: 25px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  max-width: min(570px, 92vw);
  z-index: 4;
}
#notice:empty {
  display: none;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
[hidden] {
  display: none !important;
}
.link {
  padding: 0;
  color: var(--forest);
  text-decoration: underline;
}
.danger {
  color: var(--warn);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.chip {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 18px;
  background: #fff;
  text-align: left;
}
.chip.base {
  background: var(--soft);
}
.chip.add {
  border-style: dashed;
  color: var(--forest);
}
.sticky {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px 0;
  margin-bottom: -12px;
  border-top: 1px solid var(--line);
}
.warn-note {
  background: #faeedb;
  color: #6d4417;
}
.bad-text {
  color: #8c3528;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.shot-card {
  display: grid;
  gap: 5px;
  padding: 5px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
}
.shot-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 5px;
  background: var(--soft);
}
.shot-card.auto {
  border-style: dashed;
}
.progress {
  height: 8px;
  border-radius: 8px;
  background: var(--soft);
  overflow: hidden;
  margin: 8px 0 4px;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #32745a;
  transition: width 0.4s;
}
.side-preview {
  aspect-ratio: 9/16;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}
dialog.wide {
  width: min(960px, 96vw);
}
.shot-editor {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.shot-preview {
  position: sticky;
  top: 0;
  display: grid;
  gap: 6px;
}
.shot-preview img {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 9px;
  background: var(--soft);
}
.sub-card {
  border: 1px solid var(--line);
  background: #f4f6ef;
  border-radius: 9px;
  padding: 12px;
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px 12px;
  margin: 12px 0 0;
  min-width: 0;
  display: grid;
  gap: 8px;
}
legend {
  font-size: 13px;
  font-weight: 650;
  padding: 0 5px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.check input {
  width: auto;
}
input[type='datetime-local'] {
  width: auto;
}
.idea {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.idea.best {
  border-color: var(--forest);
  border-width: 2px;
}
.caption-preview {
  white-space: pre-wrap;
  font: inherit;
  background: #f4f6ef;
  border-radius: 8px;
  padding: 12px;
  margin: 6px 0 0;
}
.publications {
  display: grid;
  gap: 10px;
}
.publication {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  display: grid;
  gap: 4px;
}
.publication .actions {
  margin-top: 6px;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  display: grid;
}
.stat b {
  font: 700 34px/1.1 Condensed, sans-serif;
}
.file-btn input {
  width: auto;
}
body.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--rail);
}
body.login form {
  display: grid;
  gap: 14px;
  width: min(360px, 90vw);
}
body.login h1 {
  font-size: 40px;
}
@media (max-width: 700px) {
  .shot-editor {
    grid-template-columns: 1fr;
  }
  .shot-preview {
    position: static;
    max-width: 220px;
    margin: auto;
  }
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 1fr;
  }
  aside {
    padding: 10px 16px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow: auto;
  }
  .brand {
    font-size: 21px;
  }
  .mark {
    width: 28px;
    height: 30px;
  }
  .brand-sub,
  .side-label,
  .channels {
    display: none;
  }
  .side-foot {
    margin: 0 0 0 auto;
    padding: 0;
  }
  nav {
    display: flex;
    gap: 1px;
  }
  aside button {
    padding: 8px;
  }
  nav button:before {
    display: none;
  }
  .grid-work {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.65fr);
  }
  header {
    height: 58px;
  }
}
@media (max-width: 600px) {
  main {
    padding-top: 20px;
  }
  .grid-work,
  .hero {
    grid-template-columns: 1fr;
  }
  .grid-work #stage-panel {
    order: -1;
  }
  .grid-work .side-preview {
    display: none;
  }
  aside {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  aside nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  aside nav button {
    font-size: 13px;
    padding: 7px 6px;
  }
  .badges {
    grid-column: 2;
    justify-content: flex-start;
  }
  .hero {
    position: relative;
    padding-right: 35%;
    min-height: 160px;
  }
  .hero-copy {
    padding: 16px;
    gap: 10px;
  }
  .hero img {
    position: absolute;
    right: 0;
    top: 0;
    width: 35%;
    max-height: none;
  }
  .hero h2 {
    font-size: 29px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span {
    grid-column: auto;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .episode-item {
    grid-template-columns: 40px 1fr;
    gap: 9px;
  }
  .episode-item .tag {
    grid-column: 2;
    justify-self: start;
  }
  .episode-item img {
    width: 40px;
    height: 40px;
  }
  .panel {
    padding: 14px;
  }
  .side-preview {
    max-height: 240px;
  }
  .brand-sub {
    display: none;
  }
  h1 {
    font-size: 40px;
  }
}
