@charset "UTF-8";
:root {
  color-scheme:light;
  --paper:#f5f4ef;
  --ink:#23251f;
  --muted:#787a70;
  --line:#dedfd6;
  --accent:#d5ed77;
  --board:#22251f;
  --board-ink:#f1f0e8;
  --board-muted:#a6ac9e;
  --board-line:#5b5e51;
  --board-accent:#d5ed77;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
}

button,input,select,textarea {
  font:inherit;
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
  touch-action:manipulation;
}

button:disabled {
  cursor:wait;
  opacity:.6;
}

button:focus-visible,a:focus-visible {
  outline:3px solid #73901c;
  outline-offset:4px;
}

button {
  border:0;
}

svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}

a {
  color:inherit;
}

button {
  color:inherit;
}

h1,h2,h3,p {
  margin:0;
}

button[hidden],[hidden] {
  display:none!important;
}

.icon-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.app-shell {
  max-width:1504px;
  margin:auto;
  padding:0 max(40px,env(safe-area-inset-right)) 0 max(40px,env(safe-area-inset-left));
}

.app-header {
  min-height:96px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:20px;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-size:28px;
  font-weight:850;
  letter-spacing:-1.7px;
  line-height:1;
}

.brand-icon {
  background:var(--ink);
  color:var(--accent);
  width:42px;
  height:42px;
  border-radius:10px;
  display:grid;
  place-items:center;
}

.brand-icon svg {
  width:27px;
  height:27px;
}

.brand-caption {
  display:block;
  margin-top:7px;
  font-size:10px;
  font-weight:500;
  letter-spacing:2px;
}

.header-actions {
  display:flex;
  gap:16px;
  align-items:center;
}

.connection {
  font-size:12px;
  display:flex;
  align-items:center;
  gap:7px;
  color:#66695e;
}

.status-dot,.tiny-dot {
  background:#96a677;
  border-radius:50%;
  width:6px;
  height:6px;
  display:inline-block;
  flex-shrink:0;
}

.connection[data-state=ready] .status-dot {
  background:#6c892b;
}

.connection[data-state=error] .status-dot {
  background:#b56c35;
}

.subtle,.secondary,.primary,.icon-button,.cancel-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  font-size:13px;
  font-weight:600;
  border-radius:7px;
  white-space:nowrap;
}

.subtle {
  background:transparent;
  padding:8px 10px;
}

.subtle:hover {
  background:#e9e9e1;
}

.icon-button {
  height:44px;
  min-width:44px;
  background:transparent;
  border:1px solid var(--line);
  font-size:16px;
}

.icon-button:hover {
  background:#e9e9e1;
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding:36px 0 30px;
  gap:20px;
}

.eyebrow {
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:1.6px;
  color:var(--muted);
  font-weight:500;
}

.page-heading h1 {
  font-size:25px;
  letter-spacing:.8px;
  font-weight:650;
  margin-top:10px;
}

.date-label {
  font:11px var(--mono);
  letter-spacing:.5px;
  color:var(--muted);
  padding-bottom:3px;
}

.workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:32px;
  align-items:start;
}

.section-heading {
  height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:13px;
}

.section-heading h2,.records-heading h2 {
  font-size:16px;
  font-weight:650;
  display:flex;
  align-items:center;
  gap:9px;
}

.tiny-dot {
  background:var(--ink);
}

.en-label {
  font:9px var(--mono);
  letter-spacing:1.4px;
  color:var(--muted);
  margin-left:5px;
}

.section-heading .subtle {
  font-weight:400;
  font-size:12px;
}

.section-heading .subtle svg {
  width:16px;
  height:16px;
}

.slate-frame {
  background:var(--board);
  border-radius:12px;
  box-shadow:0 8px 16px #23251f14;
  overflow:hidden;
  padding:0 0 4px;
}

.clapper {
  display:block;
  width:100%;
  height:62px;
  position:relative;
  border-bottom:7px solid #10120f;
  background:repeating-linear-gradient(130deg,#efeee7 0px,#efeee7 61px,#242721 62px,#242721 122px);
  transform-origin:16px bottom;
  transition:filter .15s;
}

.clapper:hover {
  filter:brightness(1.12);
}

.clapper-hinge {
  position:absolute;
  left:12px;
  top:10px;
  height:39px;
  width:27px;
  background:#33362f;
  border:1px solid #5e6158;
  border-radius:5px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-around;
  box-shadow:1px 1px 2px #0007;
}

.clapper-hinge i {
  width:6px;
  height:6px;
  background:#8f9485;
  border-radius:50%;
  box-shadow:inset 1px 1px 2px #111;
}

.clapper-caption {
  position:absolute;
  right:16px;
  top:17px;
  font:9px var(--mono);
  background:#22251f;
  color:#f3f2e9;
  padding:7px 10px;
  letter-spacing:1.5px;
  border-radius:3px;
}

.slate-board {
  position:relative;
  padding:20px 26px 19px;
  color:var(--board-ink);
}

.board-label {
  display:block;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:1.4px;
  color:var(--board-muted);
  font-weight:400;
}

.board-production {
  position:relative;
  min-height:87px;
  padding:0 0 19px;
  border-bottom:1px solid var(--board-line);
}

.production-name {
  font-size:30px;
  font-weight:550;
  letter-spacing:1px;
  margin-top:11px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.board-edition {
  position:absolute;
  right:0;
  top:7px;
  font:8px/1.8 var(--mono);
  letter-spacing:1px;
  color:#919887;
  text-align:right;
}

.board-numbers {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  border-bottom:1px solid var(--board-line);
}

.board-numbers>div {
  padding:16px 0 12px;
  min-width:0;
}

.board-numbers>div+div {
  border-left:1px solid var(--board-line);
  padding-left:20px;
}

.board-numbers strong {
  font:550 clamp(38px,5.6vw,86px)/1.15 var(--mono);
  letter-spacing:-5px;
  display:block;
  margin-top:6px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.board-numbers strong.long-value {
  font-size:clamp(23px,3vw,46px);
  letter-spacing:-1px;
  line-height:2.15;
}

.board-numbers .take-cell {
  color:var(--board-accent);
}

.board-crew {
  display:grid;
  grid-template-columns:1fr 1fr;
  border-bottom:1px solid var(--board-line);
  padding:15px 0;
}

.board-crew>div {
  min-width:0;
}

.board-crew>div+div {
  padding-left:20px;
}

.board-crew>div>span:last-child {
  font-size:18px;
  display:block;
  margin-top:9px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.board-bottom {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding-top:17px;
  gap:12px;
}

.timecode {
  font:400 clamp(24px,3.1vw,45px)/1.25 var(--mono);
  letter-spacing:-1.8px;
  display:block;
  margin-top:6px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.timecode span {
  color:var(--board-accent);
}

.board-specs {
  font:10px/2 var(--mono);
  letter-spacing:.7px;
  white-space:nowrap;
  display:flex;
  flex-direction:column;
  text-align:right;
  color:var(--board-muted);
}

.clap-overlay {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:var(--board);
  font:600 130px var(--mono);
  color:var(--board-accent);
  z-index:2;
}

.slate-frame.is-clapping .slate-board {
  animation:clap-flash .24s ease-out;
}

.slate-frame.is-clapping .clapper {
  animation:clap-tap .22s ease-out;
}

.clap-controls {
  display:flex;
  gap:10px;
  margin-top:19px;
}

.primary {
  background:var(--accent);
  padding:12px 20px;
  color:#283315;
  transition:background .15s;
}

.primary:hover {
  background:#c7e263;
}

.clap-button {
  min-height:63px;
  flex:1;
  font-size:17px;
  position:relative;
  gap:12px;
  border:1px solid #c7df6b;
  border-radius:9px;
}

.clap-button svg {
  width:25px;
  height:25px;
}

.clap-button kbd {
  position:absolute;
  right:18px;
  font:10px var(--mono);
  padding:5px 7px;
  border:1px solid #9fb457;
  border-radius:4px;
  color:#53622f;
  letter-spacing:.5px;
}

.cancel-button {
  background:#e9e8e0;
  padding:0 16px;
}

.slate-footnote {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
  margin-top:11px;
}

.details-panel {
  border-left:1px solid var(--line);
  padding-left:28px;
}

.save-status {
  font-size:10px;
  color:#7a816c;
}

.save-status.unsaved {
  color:#ab4f30;
}

fieldset {
  border:0;
  padding:0;
  margin:0;
  min-width:0;
}

.field {
  display:flex;
  flex-direction:column;
  font-size:12px;
  color:#676c5d;
  gap:8px;
  margin-bottom:16px;
  font-weight:550;
  min-width:0;
}

input:not([type=checkbox]),select,textarea {
  background:#fbfbf7;
  border:1px solid #d9dcd0;
  border-radius:6px;
  padding:10px 12px;
  color:var(--ink);
  font-size:14px;
  width:100%;
  min-width:0;
  min-height:44px;
  outline:none;
}

input:focus,select:focus,textarea:focus {
  border-color:#92a35b;
  box-shadow:0 0 0 3px #a7bc6f23;
}

input::placeholder,textarea::placeholder {
  color:#a2a598;
  font-weight:400;
}

textarea {
  resize:vertical;
  line-height:1.6;
}

select {
  cursor:pointer;
}

input[type=number] {
  font-family:var(--mono);
}

.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.form-row.three {
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
}

.notes-field {
  margin-bottom:8px;
}

.switches {
  border-top:1px solid var(--line);
  margin-top:17px;
  padding-top:9px;
}

.switch-row {
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  position:relative;
  cursor:pointer;
  gap:8px;
}

.switch-row>span:first-child {
  display:flex;
  align-items:center;
  gap:7px;
}

.switch-row svg {
  width:16px;
  height:16px;
}

.switch-row input {
  position:absolute;
  width:38px;
  height:26px;
  right:0;
  opacity:0;
  margin:0;
  cursor:pointer;
}

.switch-track {
  width:34px;
  height:20px;
  background:#d4d7ca;
  border-radius:20px;
  pointer-events:none;
  flex-shrink:0;
}

.switch-track:after {
  content:"";
  display:block;
  background:white;
  border-radius:50%;
  width:14px;
  height:14px;
  margin:3px;
  box-shadow:0 1px 3px #0002;
  transition:transform .15s;
}

.switch-row input:checked+.switch-track {
  background:#78874b;
}

.switch-row input:checked+.switch-track:after {
  transform:translateX(14px);
}

.switch-row input:focus-visible+.switch-track {
  outline:2px solid #738936;
  outline-offset:3px;
}

.text-button {
  background:transparent;
  font-size:11px;
  color:#697a38;
  text-decoration:underline;
  text-underline-offset:3px;
  min-height:36px;
  padding:0 8px;
}

.records-section {
  margin-top:34px;
}

.records-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:19px;
}

.records-heading p {
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
}

.record-count {
  display:grid;
  place-items:center;
  min-width:23px;
  height:23px;
  padding:0 6px;
  border-radius:5px;
  font:11px var(--mono);
  background:#e6e8de;
  color:#666e57;
}

.record-actions {
  display:flex;
  gap:5px;
  align-items:center;
}

.record-actions .subtle {
  font-size:11px;
  font-weight:400;
}

.secondary {
  background:#fbfbf7;
  border:1px solid #d3d6c8;
  padding:10px 14px;
}

.secondary:hover {
  background:#e9ecdf;
}

.secondary svg {
  width:16px;
  height:16px;
}

.empty-state {
  min-height:126px;
  border:1px dashed #d0d4c5;
  border-radius:9px;
  display:flex;
  align-items:center;
  padding:26px;
  gap:18px;
  background:#f0f1e95e;
}

.empty-icon {
  width:49px;
  height:49px;
  border-radius:50%;
  background:#e8ebe0;
  display:grid;
  place-items:center;
  color:#7b846b;
}

.empty-icon svg {
  width:24px;
  height:24px;
}

.empty-state h3 {
  font-size:14px;
  font-weight:550;
}

.empty-state p {
  font-size:12px;
  color:#8b9080;
  margin-top:8px;
  line-height:1.6;
}

.empty-tag {
  font:9px var(--mono);
  letter-spacing:1px;
  color:#939a86;
  margin-left:auto;
}

.records-table-wrap {
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:9px;
  max-height:430px;
}

table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  font-size:12px;
}

th {
  color:#7c826f;
  font-size:10px;
  font-weight:500;
  letter-spacing:1px;
  position:sticky;
  top:0;
  background:#eceee4;
  z-index:1;
}

th,td {
  padding:13px 16px;
  border-bottom:1px solid var(--line);
}

tr:last-child td {
  border:0;
}

td {
  background:#fafaf5;
}

td:nth-child(1) {
  white-space:nowrap;
  font:11px var(--mono);
}

td:nth-child(3) {
  font:600 18px var(--mono);
}

.record-production {
  display:block;
  font-size:10px;
  color:#8b9080;
  margin-top:5px;
  max-width:200px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.record-note {
  min-width:150px;
  max-width:330px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.6;
}

.rating {
  border-radius:4px;
  background:#eceee6;
  padding:8px 10px;
  min-height:44px;
  min-width:61px;
  font-size:11px;
  white-space:nowrap;
}

.rating.ok {
  background:#e5eccf;
  color:#586b2b;
}

.rating.ng {
  background:#f3e4dc;
  color:#9f6040;
}

.edit-record {
  background:transparent;
  color:#657a34;
  font-size:12px;
  min-width:44px;
  min-height:44px;
}

.record-date {
  display:block;
  margin-top:6px;
  color:#929784;
  font-size:10px;
}

.record-silent {
  display:block;
  color:#9f6040;
  font:10px var(--sans);
  margin-top:5px;
}

footer {
  margin:33px 0 0;
  border-top:1px solid var(--line);
  padding:22px 0 max(24px,env(safe-area-inset-bottom));
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:10px;
  color:#999f8e;
  line-height:1.8;
}

footer>span:first-child {
  letter-spacing:1px;
  color:#7d8571;
}

.footer-slash {
  padding:0 10px;
  color:#a9ad9f;
}

footer a {
  margin-left:15px;
  text-decoration:none;
}

footer a:hover {
  text-decoration:underline;
}

dialog {
  border:1px solid #dbdecf;
  border-radius:16px;
  background:var(--paper);
  padding:28px;
  max-width:520px;
  width:calc(100% - 32px);
  max-height:calc(100dvh - 40px);
  overflow-y:auto;
  color:var(--ink);
  box-shadow:0 18px 80px #151b193d;
}

dialog::backdrop {
  background:#161d18a3;
  backdrop-filter:blur(4px);
}

.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}

.dialog-heading .icon-button {
  border:0;
}

dialog h2 {
  font-size:23px;
  line-height:1.5;
  margin-bottom:18px;
}

.help-steps {
  list-style:none;
  padding:0;
  counter-reset:steps;
}

.help-steps li {
  counter-increment:steps;
  position:relative;
  padding-left:39px;
  margin:22px 0;
}

.help-steps li:before {
  content:counter(steps,decimal-leading-zero);
  position:absolute;
  left:0;
  top:1px;
  font:14px var(--mono);
  color:#7b8e45;
}

.help-steps strong {
  font-size:14px;
  font-weight:600;
}

.help-steps span {
  display:block;
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  margin-top:5px;
}

.help-note {
  background:#e9ece0;
  border-radius:8px;
  padding:18px;
  font-size:12px;
  line-height:1.85;
}

.help-note p {
  margin-top:8px;
  color:#757c68;
}

.dialog-done {
  width:100%;
  margin-top:20px;
  justify-content:space-between;
}

.dialog-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:24px;
}

.danger-text {
  background:none;
  color:#a75e46;
  padding:12px 0;
  min-height:44px;
  font-size:12px;
}

.muted {
  font-size:12px;
  color:var(--muted);
  margin-bottom:22px;
  line-height:1.7;
  overflow-wrap:anywhere;
}

.toast {
  position:fixed;
  bottom:max(24px,env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  background:#30392b;
  color:#eff5e2;
  border:1px solid #647254;
  padding:14px 20px;
  max-width:calc(100vw - 32px);
  width:max-content;
  border-radius:9px;
  font-size:13px;
  z-index:20;
  box-shadow:0 5px 22px #0002;
  line-height:1.6;
}

.warning {
  font-size:13px;
  line-height:1.8;
  padding:15px 18px;
  border:1px solid #d8ad70;
  border-radius:8px;
  background:#fff0d9;
  color:#865319;
  margin-bottom:20px;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}
















@keyframes clap-flash {
  0%,25% {
    background:#f8ffe4;
    color:#20251a;
  }
  100% {
    background:var(--board);
  }
}

@keyframes clap-tap {
  0% {
    transform:translateY(-5px);
  }
  35%,100% {
    transform:translateY(0);
  }
}

@media(min-width:1400px) {
  .app-shell {
    padding-left:64px;
    padding-right:64px;
  }
  .workspace {
    grid-template-columns:minmax(0,1fr) 358px;
    gap:40px;
  }
  .board-numbers strong {
    font-size:88px;
  }
  .slate-board {
    padding:24px 30px;
  }
  .board-production {
    min-height:90px;
  }
  .details-panel {
    padding-left:32px;
  }
  .field {
    margin-bottom:19px;
  }
  .switch-row {
    min-height:43px;
  }
}

@media(max-width:1100px) {
  .app-shell {
    padding-left:max(28px,env(safe-area-inset-left));
    padding-right:max(28px,env(safe-area-inset-right));
  }
  .workspace {
    gap:23px;
    grid-template-columns:minmax(0,1fr) 290px;
  }
  .details-panel {
    padding-left:22px;
  }
  .slate-board {
    padding:20px;
  }
  .board-label {
    font-size:8px;
    letter-spacing:1px;
  }
  .clapper {
    height:57px;
  }
  .board-production {
    min-height:88px;
  }
  .board-numbers>div {
    padding-top:22px;
    padding-bottom:22px;
  }
  .board-numbers>div+div {
    padding-left:14px;
  }
  .board-crew {
    padding:20px 0;
  }
  .board-bottom {
    padding-top:25px;
    padding-bottom:6px;
  }
  .board-specs {
    font-size:8px;
  }
  .clap-button kbd {
    display:none;
  }
  .save-status {
    font-size:9px;
  }
  .section-heading h2 {
    font-size:14px;
  }
  .en-label {
    font-size:8px;
  }
  .slate-footnote {
    font-size:10px;
  }
  .slate-footnote>span:last-child {
    max-width:115px;
    text-align:right;
  }
  .empty-tag {
    display:none;
  }
  .header-actions {
    gap:9px;
  }
}

@media(max-width:820px) {
  .app-shell {
    padding-left:max(22px,env(safe-area-inset-left));
    padding-right:max(22px,env(safe-area-inset-right));
  }
  .app-header {
    min-height:83px;
  }
  .page-heading {
    padding:28px 0 22px;
  }
  .page-heading h1 {
    font-size:23px;
  }
  .date-label {
    display:none;
  }
  .workspace {
    grid-template-columns:minmax(0,1fr);
  }
  .slate-board {
    padding:22px 28px;
  }
  .board-label {
    font-size:10px;
  }
  .board-numbers strong {
    font-size:clamp(48px,11vw,84px);
  }
  .board-numbers strong.long-value {
    font-size:32px;
  }
  .board-production {
    min-height:90px;
  }
  .board-numbers>div {
    padding:17px 0;
  }
  .board-crew {
    padding:17px 0;
  }
  .board-bottom {
    padding:19px 0 4px;
  }
  .timecode {
    font-size:39px;
  }
  .board-specs {
    font-size:10px;
  }
  .slate-footnote>span:last-child {
    max-width:none;
  }
  .details-panel {
    border:1px solid var(--line);
    border-radius:9px;
    padding:16px 20px 10px;
    margin-top:2px;
  }
  .details-panel .section-heading {
    height:30px;
    margin-bottom:14px;
  }
  #slate-fields {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 20px;
  }
  .notes-field,.switches,.appearance-settings {
    grid-column:1/-1;
  }
  .switches {
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    padding:12px 0 0;
    margin-top:0;
  }
  .switch-row {
    flex:1;
    min-width:170px;
  }
  .save-status {
    font-size:10px;
  }
  .records-heading {
    align-items:flex-start;
    flex-wrap:wrap;
    gap:12px;
  }
  .records-heading p {
    line-height:1.7;
  }
  .records-section {
    margin-top:30px;
  }
  .record-actions {
    margin-left:auto;
  }
  .records-heading .record-actions {
    margin-left:0;
  }
  footer {
    flex-direction:column;
    gap:8px;
  }
  .empty-state {
    padding:22px;
  }
  .connection {
    font-size:10px;
  }
  .header-actions {
    gap:3px;
  }
  .header-actions .subtle {
    font-size:12px;
  }


}

@media(max-width:480px) {
  .app-shell {
    padding-left:max(16px,env(safe-area-inset-left));
    padding-right:max(16px,env(safe-area-inset-right));
  }
  .app-header {
    min-height:78px;
    gap:9px;
  }
  .brand {
    font-size:23px;
    gap:9px;
  }
  .brand-icon {
    height:37px;
    width:37px;
  }
  .brand-caption {
    font-size:8px;
    letter-spacing:1.4px;
  }
  .connection {
    display:none;
  }
  .header-actions>.subtle {
    padding:8px 6px;
  }
  .header-actions .icon-button {
    min-width:34px;
    width:34px;
    border:0;
  }
  .page-heading h1 {
    font-size:21px;
    letter-spacing:.2px;
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:1.1px;
  }
  .en-label {
    font-size:8px;
  }
  .section-heading {
    margin-bottom:8px;
  }
  .slate-board {
    padding:18px;
  }
  .clapper {
    height:51px;
    background:repeating-linear-gradient(130deg,#efeee7 0px,#efeee7 39px,#242721 40px,#242721 79px);
  }
  .clapper-hinge {
    height:32px;
    top:6px;
  }
  .clapper-caption {
    top:11px;
    right:11px;
  }
  .board-production {
    min-height:82px;
    padding-right:0;
  }
  .production-name {
    font-size:23px;
  }
  .board-edition {
    font-size:6px;
  }
  .board-label {
    font-size:7px;
    letter-spacing:.8px;
  }
  .board-numbers>div+div {
    padding-left:13px;
  }
  .board-numbers strong {
    font-size:53px;
    letter-spacing:-3px;
  }
  .board-numbers strong.long-value {
    font-size:23px;
    line-height:2.65;
  }
  .board-crew>div>span:last-child {
    font-size:16px;
  }
  .timecode {
    font-size:29px;
    letter-spacing:-1.4px;
  }
  .board-specs {
    font-size:8px;
  }
  .clap-button {
    font-size:15px;
    min-height:59px;
  }
  .slate-footnote {
    display:block;
    font-size:10px;
  }
  .slate-footnote>span:last-child {
    display:block;
    text-align:left;
    margin-top:3px;
  }
  .details-panel {
    padding:13px 15px 6px;
  }
  #slate-fields {
    display:block;
  }
  .field {
    margin-bottom:14px;
  }
  input:not([type=checkbox]),textarea,select {
    font-size:16px;
  }
  .switches {
    display:block;
  }
  .switch-row {
    min-height:44px;
  }
  .records-heading h2 {
    font-size:16px;
  }
  .record-actions {
    width:100%;
    justify-content:flex-end;
    gap:0;
  }
  .record-actions .subtle {
    padding:8px;
  }
  .secondary {
    font-size:12px;
    padding:8px 10px;
  }
  .empty-state {
    padding:22px 18px;
    gap:12px;
  }
  .empty-icon {
    flex-shrink:0;
    width:39px;
    height:39px;
  }
  .empty-state h3 {
    font-size:13px;
  }
  .empty-state p {
    font-size:11px;
  }
  .empty-tag {
    display:none;
  }
  th,td {
    padding:12px;
  }
  .record-note {
    min-width:130px;
  }
  footer a {
    display:block;
    margin-left:0;
    margin-top:5px;
  }
  dialog {
    padding:22px;
  }
  dialog h2 {
    font-size:21px;
  }
  .toast {
    font-size:12px;
  }





}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
  }
}

.switch-row label[for="sound"] {
  display:flex;
  align-items:center;
  gap:7px;
  cursor:pointer;
  min-height:40px;
}

@media(pointer:coarse) {
  .clap-button kbd {
    display:none;
  }
}

body[data-board-theme="white"] {
  --board:#f2f0e6;
  --board-ink:#242821;
  --board-muted:#646b5e;
  --board-line:#adb3a5;
  --board-accent:#455a29;
}
body[data-board-theme="navy"] {
  --board:#172d44;
  --board-ink:#f0f5fa;
  --board-muted:#acbfd1;
  --board-line:#536d85;
  --board-accent:#b8dcff;
}
body[data-board-theme="green"] {
  --board:#203d33;
  --board-ink:#f0f4e9;
  --board-muted:#b4c4b4;
  --board-line:#5b7965;
  --board-accent:#deecb0;
}
body[data-board-theme="burgundy"] {
  --board:#492830;
  --board-ink:#f9eeea;
  --board-muted:#d2b4b7;
  --board-line:#93616c;
  --board-accent:#ffd0af;
}
.page-heading {
  padding:24px 0 20px;
}
.page-heading h1 {
  margin:0;
  font-size:22px;
  letter-spacing:0;
}
.appearance-settings {
  border-top:1px solid var(--line);
  margin-top:17px;
  padding-top:16px;
}
.color-picker legend {
  color:#676c5d;
  font-size:12px;
  font-weight:550;
  margin-bottom:8px;
}
.color-options {
  display:flex;
  gap:8px;
  margin-bottom:16px;
}
.color-option {
  position:relative;
  display:flex;
  flex:1;
  min-height:57px;
  align-items:center;
  flex-direction:column;
  gap:5px;
  font-size:11px;
  cursor:pointer;
}
.color-option input {
  position:absolute;
  opacity:0;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  cursor:pointer;
}
.color-chip {
  width:31px;
  height:31px;
  border-radius:50%;
  border:1px solid #9dA48f;
  background:var(--swatch);
  pointer-events:none;
}
.color-option input:checked + .color-chip {
  outline:2px solid #697b3a;
  outline-offset:3px;
}
.color-option input:focus-visible + .color-chip {
  outline:3px solid #697b3a;
  outline-offset:3px;
}
.sound-field {
  margin-bottom:0;
}
.sound-select {
  display:flex;
  gap:8px;
}
.sound-select select {
  flex:1;
}
.sound-select button {
  font-size:12px;
  padding:8px 12px;
}
.sound-select svg {
  width:16px;
}

/* Fill the available display in browser, standalone PWA and native fullscreen. */
body.focus-mode {
  background:var(--board);
  overflow:hidden;
}
body.focus-mode .app-shell {
  width:100%;
  max-width:none;
  height:100vh;
  height:100dvh;
  padding:0;
}
body.focus-mode .app-header,
body.focus-mode .page-heading,
body.focus-mode .details-panel,
body.focus-mode .records-section,
body.focus-mode footer,
body.focus-mode .slate-footnote,
body.focus-mode .section-heading h2,
body.focus-mode .clapper-caption {
  display:none;
}
body.focus-mode .workspace {
  display:block;
}
body.focus-mode .slate-section {
  position:fixed;
  inset:0;
  height:100vh;
  height:100dvh;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  background:var(--board);
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
body.focus-mode .section-heading {
  position:absolute;
  z-index:4;
  top:max(5px,env(safe-area-inset-top));
  right:max(12px,env(safe-area-inset-right));
  height:44px;
  margin:0;
}
body.focus-mode #focus-toggle {
  color:#f8f8f3;
  background:#242721;
  padding:8px 14px;
  border:1px solid #73786c;
}
body.focus-mode .slate-frame {
  display:flex;
  flex-direction:column;
  min-height:0;
  border-radius:0;
  padding:0;
  box-shadow:none;
}
body.focus-mode .clapper {
  height:clamp(54px,8dvh,90px);
  flex-shrink:0;
}
body.focus-mode .clapper-hinge {
  top:calc(50% - 19px);
}
body.focus-mode .slate-board {
  flex:1;
  min-height:0;
  display:grid;
  grid-template-rows:minmax(0,1fr) minmax(0,2.7fr) minmax(0,1fr) minmax(0,1.25fr);
  padding:clamp(10px,2dvh,28px) clamp(18px,4vw,72px);
}
body.focus-mode .board-production {
  min-height:0;
  padding:0 0 1dvh;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
body.focus-mode .board-label {
  font-size:clamp(8px,min(1.8dvh,1.4vw),18px);
  letter-spacing:1px;
}
body.focus-mode .production-name {
  font-size:clamp(21px,min(6.2dvh,5.5vw),76px);
  line-height:1.25;
  margin-top:1dvh;
}
body.focus-mode .board-numbers>div {
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:1dvh 0;
}
body.focus-mode .board-numbers>div+div {
  padding-left:2.5vw;
}
body.focus-mode .board-numbers strong,
body.focus-mode .board-numbers strong.long-value {
  font-size:min(22dvh,calc(43vw / var(--value-length,2)));
  line-height:1.1;
  letter-spacing:-.035em;
  margin-top:1dvh;
}
body.focus-mode .board-crew {
  padding:1dvh 0;
  align-items:center;
}
body.focus-mode .board-crew>div>span:last-child {
  font-size:clamp(16px,min(4.2dvh,3.5vw),48px);
  line-height:1.2;
  margin-top:.8dvh;
}
body.focus-mode .board-bottom {
  align-items:center;
  padding:1dvh 0 0;
}
body.focus-mode .timecode {
  font-size:clamp(25px,min(8.5dvh,8.3vw),108px);
  line-height:1.15;
  letter-spacing:-.045em;
  margin-top:.7dvh;
}
body.focus-mode .board-specs {
  font-size:clamp(8px,min(2dvh,1.5vw),20px);
}
body.focus-mode .clap-controls {
  margin:0;
  padding:0;
  gap:0;
}
body.focus-mode .clap-button {
  height:clamp(48px,7dvh,76px);
  min-height:48px;
  border:0;
  border-radius:0;
  background:var(--board-accent);
  color:var(--board);
  font-size:18px;
}
body.focus-mode .clap-button kbd {
  display:none;
}
body.focus-mode .cancel-button {
  border-radius:0;
  min-width:110px;
}
body.focus-mode .warning {
  position:fixed;
  z-index:8;
  left:16px;
  right:16px;
  bottom:max(72px,12dvh);
  margin:0;
}
