:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: #1b3025;
  background: #f5f3eb;
  --muted: #4f6156;
  --line: #d6dbcd;
  --green: #174a39;
  --paper: #fffef9;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #237b5f; outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
header, footer { display: flex; gap: 15px; align-items: center; padding: 12px max(18px, calc((100% - 1110px) / 2)); }
header { justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 14px; }
.identity { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 750; }
.identity img { border-radius: 9px; }
main { width: min(1110px, calc(100% - 36px)); margin: clamp(22px, 4vw, 47px) auto 25px; }
h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(42px, 6.5vw, 76px); line-height: 1; letter-spacing: -.045em; margin: 0; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.intro p { color: var(--muted); margin: 11px 0 0; }
.board-settings { display: grid; grid-template-columns: minmax(0, 1fr) 128px auto; gap: 16px; align-items: end; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
label { display: grid; gap: 4px; color: #35493e; font-size: 13px; font-weight: 650; min-width: 0; }
input:not([type=file]), select, textarea { min-width: 0; width: 100%; color: #1b3025; background: #fff; border: 1px solid #bec9bc; padding: 8px 9px; border-radius: 7px; }
textarea { resize: vertical; }
.primary, .secondary { border: 1px solid var(--green); padding: 9px 13px; border-radius: 8px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.primary { color: #fff; background: var(--green); }
.secondary { color: var(--green); background: #f4f9ed; }
.export { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#summary { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
#status { min-height: 18px; margin: 8px 0 10px; color: var(--muted); font-size: 13px; }
#status.error { color: #9c2d31; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; list-style: none; margin: 0 0 14px; padding: 0; }
.card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--paper); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 11px; font-size: 13px; }
.timing { color: var(--muted); font-variant-numeric: tabular-nums; }
.actions { margin-left: auto; display: flex; gap: 3px; }
.actions button, .clear { min-width: 32px; min-height: 32px; border: 1px solid var(--line); color: var(--green); border-radius: 6px; background: #fff; }
.reference { position: relative; display: grid; place-items: center; height: 158px; background: #e8ede0; border-block: 1px solid var(--line); overflow: hidden; }
.frame { height: 158px; width: min(100%, 281px); display: grid; place-items: center; max-width: 100%; background: #f4f7ef; }
.has-image .frame { background: #172a21; }
.cards[data-aspect="9:16"] .frame { width: min(100%, 89px); }
.cards[data-aspect="1:1"] .frame { width: min(100%, 158px); }
.frame img { display: none; width: 100%; min-width: 0; height: 158px; object-fit: contain; }
.frame img[src] { display: block; }
.pick { position: absolute; display: grid; place-items: center; color: var(--green); background: #fffef9; border: 1px solid var(--line); border-radius: 7px; padding: 8px; cursor: pointer; }
.pick input { position: absolute; width: 100%; height: 100%; opacity: 0; inset: 0; cursor: pointer; }
.pick:focus-within { outline: 3px solid #237b5f; outline-offset: 2px; }
.has-image .pick { left: 7px; bottom: 7px; padding: 4px 7px; }
.clear { position: absolute; right: 7px; bottom: 7px; }
.card-fields { display: grid; padding: 10px 12px 12px; gap: 9px; }
.shot-settings { display: grid; grid-template-columns: 1fr 76px; gap: 8px; }
footer { padding-top: 6px; padding-bottom: 22px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.info { max-width: 730px; line-height: 1.65; }
.info h1 { font-size: 45px; }
.info section { margin-block: 25px; }
@media (max-width: 820px) { .cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 570px) {
  .board-settings { grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
  .export { grid-column: 1 / -1; }
  .cards { grid-template-columns: minmax(0,1fr); }
}
