/* Studio finish: same layout and workflows, clearer surfaces and controls. */
:root {
  --studio-panel: #141414;
  --studio-border: #303030;
  --studio-divider: #262626;
  --studio-hover: #1c1c1c;
  --studio-accent: #ff982f;
}
::selection { background: #67431f; color: #fff; }
button, input, select, textarea { font-variant-numeric: tabular-nums; }
button:disabled { cursor: not-allowed; }

/* A single compact control, with a visible value and no dropdown. */
.text-size-stepper {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 30px;
  margin-left: 8px;
  overflow: hidden;
  border: 1px solid #414141;
  border-radius: 6px;
  background: #101010;
}
.format-tools .text-size-stepper button,
.doc-toolbar .format-tools .text-size-stepper button,
.global-doc-tools .format-tools .text-size-stepper button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.text-size-stepper input.text-size {
  appearance: textfield;
  width: 37px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 2px;
  border: 0;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 13px;
  box-shadow: none;
}
.text-size-stepper input::-webkit-inner-spin-button,
.text-size-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.text-size-stepper:focus-within { border-color: #c38547; box-shadow: 0 0 0 2px #ff982f14; }
.text-size-stepper button:focus-visible,
.text-size-stepper input:focus-visible { outline: 1px solid #ffad5b; outline-offset: -2px; }
.text-size-stepper input:focus { background: #272019; }
.format-tools .text-size-stepper button:hover:not(:disabled) { background: #33271b; color: #ffc38a!important; }
.format-tools .text-size-stepper button:disabled { opacity: .3; background: transparent; }

/* Calm navigation, with a clear location and understated brand accents. */
aside { border-right-color: #272727; }
nav button { letter-spacing: -.1px; }
nav button.active { background: #24211d; box-shadow: inset 2px 0 #ffa647; }
.clientnav button.selected { background: #1e1e1e; box-shadow: inset 2px 0 #777; }
.clientnav button.selected .client-dot { color: #f4cba1; border-color: #6c4c2e; background: #2b2117; }
.aside-bottom { border-top: 1px solid #252525; }
.breadcrumb { color: #9b9b9b; }
header .search:hover { background: #1c1c1c; border-color: #444; }
.demo { border-bottom-color: #222; }
.demo [data-save-state] { color: #b4b4b4; }
.demo .save-error { background: #331c1b; color: #ffb5ae!important; padding: 3px 7px; border-radius: 4px; }
.pagehead h1 { font-weight: 600; letter-spacing: -.8px; }
.pagehead .muted { color: #a0a0a0; max-width: 62ch; }

/* Dashboard and client directory: controlled edges, aligned data. */
.lab-stats { gap: 14px; }
.lab-stats button, .performance-stat {
  background: #151515;
  border-color: #333;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 #ffffff04;
}
.lab-stats button:first-child { background: #17130f; border-color: #70502e; }
.lab-stats button { position: relative; }
.lab-stats button>span { padding-right: 24px; }
.lab-stats button::after {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  top: 20px;
  right: 20px;
  background: #777;
  mask: var(--stat-icon) center / contain no-repeat;
  pointer-events: none;
}
.lab-stats button:nth-child(1) {
  --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l12 8-12 8z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lab-stats button:nth-child(1)::after { background: #cd9457; }
.lab-stats button:nth-child(2) {
  --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 20v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M9 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8M19 8v6m-3-3h6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}
.lab-stats button:nth-child(3) {
  --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 20 1-6L16 3l5 5L10 19zM13 6l5 5' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lab-stats button:nth-child(4) {
  --stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12v8H4V4h10M9 10l4 4 9-10' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lab-stats strong, .performance-stat strong { font-size: 34px; font-weight: 500; letter-spacing: -1.2px; }
.lab-stats button:hover { background: #1b1b1b; border-color: #777; }
.lab-panel, .panel, .settings .panel, .clientcard { background: var(--studio-panel); border-color: var(--studio-border); }
.section-heading { background: #161616; border-color: #2d2d2d; }
.section-heading h2 { letter-spacing: -.25px; }
.queue-item { border-color: #292929; }
.queue-item:hover { background: #191919; }
.queue-title strong { line-height: 1.5; font-weight: 500; }
.video-index { background: #202020; color: #bbb; border: 1px solid #343434; border-radius: 6px; font-size: 12px; }
.queue-link a { color: #bccce0; text-decoration-color: #647181; }
.queue-link a:hover { color: #fff; text-decoration-color: #ff982f; }
.lab-client { border-color: #292929; background: transparent; }
.lab-client:hover { background: #1d1b18; }
.lab-client:hover .client-monogram { border-color: #9e703e; color: #ffd0a0; }
.client-monogram { border: 1px solid #56412b; background: #251c13; color: #d2a77b; border-radius: 8px; }
.lab-client strong { font-size: 15px; font-weight: 500; letter-spacing: -.15px; }
.lab-client small { color: #9b9b9b; line-height: 1.7; }
.lab-empty { padding: 46px 24px; }
.lab-empty h3 { font-size: 18px; font-weight: 500; letter-spacing: -.25px; }
.lab-empty p { max-width: 42ch; color: #aaa; font-size: 14px; line-height: 1.7; margin: 8px auto 20px; }
.empty-orbit { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #614527; background: #241b12; color: #ffad5b; font-size: 20px; box-shadow: none; }

/* Document surfaces feel like one page, instead of stacked boxes. */
.doc-shell { border-color: #3b3b3b; box-shadow: 0 6px 24px #0002; }
.doc-toolbar { background: #1c1c1c; border-bottom-color: #383838; }
.doc-tabs { background: #151515; padding-top: 8px; padding-bottom: 8px; gap: 6px; }
.doc-tabs button.selected { background: #2a231c; color: #ffd1a0; border-color: #7b5732; }
.doc-tabs button:not(.selected):hover { background: #242424; border-color: #373737; }
.doc-tabs .deleted-tabs { font-size: 12px; color: #a2a2a2!important; }
.doc-page-heading { background: #121212; padding-top: 16px; padding-bottom: 14px; }
.doc-page-heading input { font-weight: 500; }
.document-meta { gap: 16px; }
.delete-tab, .doc-page-heading .delete-tab { color: #b7a8a6!important; }
.delete-tab:hover { color: #ffbfb5!important; background: #321e1b; }
.doc-table th { background: #202020; color: #d0d0d0; font-weight: 500; border-right-color: #333; }
.doc-table td { border-right-color: #2c2c2c; }
.doc-table tbody tr:hover>td { background: #141414; }
.doc-table tbody tr:focus-within>td { border-bottom-color: #675035; }
.doc-table td:focus-within { background: #181715!important; }
.doc-table .doc-row-number { background: #131313; }
.drag-handle { color: #707070; border-radius: 4px; }
.drag-handle:hover { color: #e0b380; background: #2c241b; }
.row-menu:hover { color: #fff; background: #2a2a2a; }
.doc-table .funnel-choice { color: #b5b5b5!important; border-radius: 4px; }
.doc-table .funnel-choice:hover { background-color: #2b2b2b!important; }
.editor-reference-heading { border-top-color: #303030; }
.reference-reading { line-height: 1.7; overflow-wrap: anywhere; }
.batch-free-notes { background: #111; }
.batch-free-notes h3 { color: #bababa; letter-spacing: .1px; }
.page-document { background: #121212; border-color: #353535; }
.page-document-heading { border-bottom: 1px solid #2d2d2d; padding-bottom: 18px; margin-bottom: 22px; }
.page-title-input { letter-spacing: -.5px; }

/* Status remains recognizable, with white labels on dark colors. */
.badge { font-weight: 500; letter-spacing: 0; border: 1px solid #ffffff0d; }
.s-ready { background-color: #1c3346; color: #fff; }
.s-uploaded { background-color: #332840; color: #fff; }
.s-edit { background-color: #292e49; color: #fff; }
.s-review { background-color: #413019; color: #fff; }
.s-approved, .s-posted { background-color: #20372a; color: #fff; }
.s-idea { background-color: #2c2c2c; color: #eee; }
.status-select { box-shadow: inset 0 0 0 1px #ffffff0a; }
.status-select:hover { box-shadow: inset 0 0 0 1px #ffffff38; }
.workspace-tabs button span { border-radius: 4px; font-variant-numeric: tabular-nums; }

/* Review/editor cards: a confident playback frame and quiet feedback area. */
.review-media { border-color: #3a3a3a; background: #070707; border-radius: 10px 10px 0 0; }
.review-link { border-color: #3a3a3a; background: #181818; border-radius: 0 0 10px 10px; }
.review-link>span { color: #aaa; font-size: 12px; }
.review-link a { color: #c5d3e3; font-size: 14px; text-decoration-color: #68798b; }
.review-feedback { border-color: #363636; background: #141414; border-radius: 10px; overflow: hidden; }
.review-feedback .global-doc-tools { background: #1c1c1c; border-color: #343434; border-radius: 0; }
.review-feedback .revision-draft .rich-text { border-color: #3a3a3a; background: #101010; border-radius: 7px; padding: 14px; }
.review-feedback .revision-draft .rich-text:focus { border-color: #8b6238; }
.revision-round { border-color: #333; background: #171717; border-radius: 7px; }
.revision-round summary { padding-top: 12px; padding-bottom: 12px; color: #ddd; }
.revision-round[open] { border-left-color: #a77b45; }
.revision-round[open]>summary { border-bottom: 1px solid #34302b; background: #1c1915; }
.revision-round .revision-body { padding-top: 14px; }
.revision-body { line-height: 1.8; }
.review-actions { gap: 10px; }
.review-actions button { font-weight: 500; }
.editor-task { border-color: #373737; background: #141414; box-shadow: inset 0 1px #ffffff03; }
.editor-task h2 { font-weight: 500; letter-spacing: -.4px; overflow-wrap: anywhere; }
.editor-links { border-color: #303030; }
.editor-submit { border-top: 1px solid #303030; padding-top: 16px; }
.editor-submit input { background: #0f0f0f; border-color: #424242; }
.editor-notes { border-color: #62482c; background: #201a13; color: #fff; }
.client-video-document { background: #131313; border-color: #383838; }
.client-reference { border-left-color: #333; }
.filming-action { border-top-color: #333; }
.portal-tools { background: #1b1b1b; border-color: #343434; }
.portal-tabs button.selected { background: #29221a; border-color: #6c4e2d; color: #f7c999; }

/* Secondary screens and dialogs use the same visual language. */
.payment-ledger { border-color: #383838; }
.payment-summary { font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.payment-summary small { letter-spacing: 0; color: #a3a3a3; }
.payment-breakdown { border-color: #2f2f2f; }
.performance-client:hover { background: #1b1b1b; }
.database tbody tr:hover td { background: #1b1b1b; }
.database th { background: #1b1b1b; color: #bfbfbf; font-weight: 500; }
.database .titlebutton { font-size: 14px; color: #eee; }
.database .titlebutton:hover { color: #ffd1a0; }
.notion-board .column { background: #101010; border-color: #2f2f2f; border-radius: 9px; }
.notion-board .videocard { background: #1b1b1b; border-color: #373737; box-shadow: 0 2px 4px #0002; }
.notion-board .videocard:hover { border-color: #796044; background: #201d19; }
.notion-board .videocard:focus-visible { outline: 2px solid #e59b4d; outline-offset: 3px; }
.card-top, .card-bottom { font-size: 12px; color: #aaa; }
.payment-breakdown th { background: #1b1b1b; color: #bfbfbf; border-color: #333; }
.payment-breakdown td { background: #141414; border-color: #2b2b2b; }
dialog { background: #151515; border-color: #4b4b4b; box-shadow: 0 24px 100px #0009; }
dialog .modalhead { border-bottom-color: #333; }
dialog label { color: #c2c2c2; font-weight: 500; }
dialog input:not(.text-size), dialog textarea, dialog select { background-color: #101010; border-color: #3b3b3b; }
.tab-type-options button { border-color: #424242; background: #1a1a1a; }
.tab-type-options button:hover { background: #282018; border-color: #aa7640; }
.tab-type-options button strong { font-weight: 500; }
.quick-result { border-bottom-color: #292929; }
.quick-result:hover { background: #251e16; }
#cloud-gate {
  width: calc(100% - 40px);
  max-width: 480px!important;
  margin: 12vh auto!important;
  padding: 32px!important;
  background: #141414;
  border: 1px solid #3b3b3b;
  border-top: 2px solid #ff982f;
  border-radius: 10px;
  box-shadow: 0 16px 50px #0003;
}
#cloud-gate h1 { font-size: 26px; letter-spacing: -.8px; margin: 0 0 14px; }
#cloud-gate p { font-size: 15px; color: #b0b0b0; line-height: 1.7; }
#cloud-gate button, #cloud-gate a { display: inline-block; margin-top: 10px; font-size: 14px; }

@media (max-width: 760px) {
  .lab-stats { gap: 10px; }
  .lab-stats strong, .performance-stat strong { font-size: 30px; }
  .lab-stats button::after { width: 15px; height: 15px; top: 17px; right: 14px; }
  .section-heading { padding: 18px; }
  .lab-empty { padding: 32px 20px; }
  .text-size-stepper { height: 34px; margin-left: 6px; }
  .format-tools .text-size-stepper button,
  .doc-toolbar .format-tools .text-size-stepper button,
  .global-doc-tools .format-tools .text-size-stepper button { width: 32px; min-width: 32px; height: 32px; min-height: 32px; }
  .text-size-stepper input.text-size { width: 40px; height: 32px; min-height: 32px; font-size: 16px; }
  .doc-page-heading { padding: 12px; }
  .doc-tabs { padding: 7px 9px; }
  .portal-tabs { padding-bottom: 6px; }
  .page-document-heading { padding-bottom: 14px; margin-bottom: 18px; }
  .client-reference { border-left: 0; border-top: 1px solid #303030; padding-top: 16px; }
  .review-actions { gap: 8px; }
  .editor-submit { padding-top: 14px; }
  dialog { box-shadow: 0 16px 70px #000a; }
  #cloud-gate { width: calc(100% - 28px); padding: 24px!important; margin-top: 8vh!important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none!important; animation: none!important; }
}

/* The optional editor reference is always an obvious, editable field. */
.doc-table .editor-reference-input {display:block;width:100%;height:38px;min-height:38px;padding:8px 10px!important;border:1px solid #454545;border-radius:6px;background:#171717!important;color:#fff!important;font-size:14px!important;box-shadow:none}
.doc-table .editor-reference-input:focus {border-color:#b47c42;outline:2px solid #ff982f22;outline-offset:1px}
.doc-table .editor-reference-input::placeholder {color:#999}
