:root {
  color-scheme: dark;
  --background: #101114;
  --sidebar: #15161a;
  --panel: #191b20;
  --panel-hover: #1e2125;
  --border: #2b2d32;
  --soft-border: #25272c;
  --text: #f0f1ee;
  --muted: #a5a9ad;
  --green: #d9f59b;
  --green-strong: #dcf7a8;
  --dark-green: #222a1a;
  --radius: 15px;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.55; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .upload-zone:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; line-height: 1.52; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.17; letter-spacing: -0.025em; }
h2 { font-size: 1.28rem; }
h3 { font-size: 1.05rem; }
[hidden] { display: none !important; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.loading { padding: 2rem; color: var(--muted); }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 9; background: var(--green); color: #151a0d; padding: .65rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

#app { --sidebar-width: 226px; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--sidebar);
  border-right: 1px solid var(--soft-border); display: flex; flex-direction: column; z-index: 2;
  padding: 25px 15px 16px;
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 40px 10px; width: fit-content; }
.brand-mark {
  display: block; flex: 0 0 auto; width: 40px; height: 40px; object-fit: contain;
}
.brand-name { font-size: 1.18rem; font-weight: 720; letter-spacing: -.045em; white-space: nowrap; }
.brand-name span { margin-left: 4px; color: var(--muted); font-weight: 450; }
.navigation, .sidebar-footer { display: grid; gap: 5px; }
.navigation a, .nav-button {
  display: flex; align-items: center; width: 100%; min-height: 43px; gap: 11px; padding: 0 10px;
  border-radius: 8px; color: #babdc0; background: transparent; border: 1px solid transparent; text-align: left;
  font-size: .91rem; font-weight: 500;
}
.navigation a:hover, .nav-button:hover { background: #1c1e23; color: var(--text); }
.navigation a[aria-current] { background: #252c20; border-color: #343d2d; color: var(--green); }
.navigation .icon, .nav-button .icon { width: 18px; height: 18px; }
.sidebar-footer { margin-top: auto; }
.workspace { margin-top: 11px; border-top: 1px solid var(--soft-border); padding: 14px 9px 1px; display: flex; align-items: center; gap: 10px; }
.workspace-mark {
  display: grid; place-items: center; width: 34px; height: 34px; background: #282b31;
  border: 1px solid #35383f; border-radius: 10px; color: #d1d5d9; font-size: .82rem; font-weight: 700;
}
.workspace strong, .workspace small { display: block; }
.workspace strong { font-size: .87rem; font-weight: 650; }
.workspace > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.workspace small { color: var(--muted); font-size: .78rem; margin-top: 2px; }

.layout { margin-left: var(--sidebar-width); }
.topbar {
  min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(20px, 3.2vw, 48px); border-bottom: 1px solid var(--soft-border);
}
.breadcrumb { display: flex; gap: 10px; align-items: center; color: #d8dadd; min-width: 0; font-size: .93rem; }
.breadcrumb span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.breadcrumb a:hover, .text-link:hover, .back-link:hover { color: var(--green); text-decoration: underline; }
.breadcrumb-root, .trail-separator { color: var(--muted); }
.trail-separator { opacity: .65; }
.mobile-menu { display: none !important; }
main { width: 100%; max-width: 1510px; margin: auto; padding: 29px clamp(20px, 3.2vw, 48px) 48px; }
main:focus { outline: none; }
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
  padding: 8px 13px; border-radius: 8px; font-size: .91rem; font-weight: 650; text-align: center;
  border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.button .icon, .icon-button .icon { width: 17px; height: 17px; }
.button.primary { background: var(--green); color: #1c2413; border-color: var(--green); }
.button.primary:hover { background: #efffca; border-color: #efffca; }
.button.secondary { background: #202228; border-color: #34373d; color: var(--text); }
.button.secondary:hover, .icon-button:hover { background: #2a2c31; border-color: #484b53; color: var(--text); }
.button.subtle { background: transparent; color: var(--green-strong); border-color: transparent; }
.button.subtle:hover { background: #293223; }
.button.small { min-height: 30px; padding: 3px 7px; font-size: .83rem; }
.icon-button { width: 34px; min-height: 34px; padding: 4px; background: #202228; border-color: #33353c; color: #d5d8da; }
.text-link, .back-link { color: var(--green); font-size: .92rem; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 17px; }
.back-link .icon { width: 16px; height: 16px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.hero {
  position: relative; overflow: hidden; min-height: 236px; display: flex; align-items: center;
  border: 1px solid #343c2d; border-radius: 18px;
  background: radial-gradient(ellipse at 83% 17%, #343f28 0%, #222b1d 34%, transparent 69%), linear-gradient(108deg, #1b2019 10%, #1e261b 90%);
}
.hero-content { position: relative; z-index: 1; padding: 30px clamp(23px, 3.2vw, 42px); max-width: 660px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #c4d6a7; font-size: .77rem; font-weight: 700; letter-spacing: .1em; margin-bottom: 13px; }
.eyebrow .icon { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(2.24rem, 4.1vw, 3.75rem); letter-spacing: -.065em; line-height: 1.01; }
.hero h1 span { color: var(--green); }
.hero p { max-width: 388px; color: #c1c9bc; margin: 12px 0 19px; font-size: .99rem; }
.hero .button { min-height: 41px; }
.film {
  width: clamp(274px, 32vw, 475px); height: 285px; position: absolute; right: -8px; top: -25px;
  transform: rotate(-16deg) skewX(-5deg); display: grid; align-content: center; gap: 10px;
  opacity: .88; mask-image: linear-gradient(90deg, transparent 0%, black 23%, black 100%);
}
.film-edge {
  height: 13px; background: repeating-linear-gradient(90deg, #9aab804f 0 15px, transparent 15px 25px);
  border-radius: 3px;
}
.film-gate {
  position: relative; display: grid; place-items: center; width: 100%; height: 197px;
  border: 1px solid #8b9b7269; border-radius: 9px;
  background: linear-gradient(130deg, #25301f 10%, #505f3a 62%, #313d2a 95%);
  overflow: hidden; box-shadow: 0 16px 54px #12181080;
}
.film-gate::before, .film-gate::after { content: ""; position: absolute; inset: 12px; border: 1px solid #a0b28153; border-radius: 5px; }
.film-gate::after { inset: 24px; border-color: #b4c29636; }
.film-aperture {
  width: 205px; height: 205px; position: absolute; top: -6px; right: 18%; border-radius: 50%; border: 1px solid #bfdaa162;
  background: conic-gradient(from 30deg, #b2c68125, #191e14 18%, #a1b77d45 37%, #262f1f 52%, #a8be7752 70%, #242c1d 90%);
  display: grid; place-items: center; box-shadow: 0 0 45px #c5ed7228;
}
.film-aperture div { width: 129px; height: 129px; background: radial-gradient(circle at 32% 21%, #4e5d39, #181e15 69%); border: 1px solid #b8cb8059; border-radius: 50%; }
.film-play {
  position: absolute; right: calc(18% + 76px); top: 68px; width: 53px; height: 53px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid #afc28a9f; color: var(--green); background: #343e28;
}
.film-play .icon { margin-left: 2px; width: 20px; height: 20px; fill: currentColor; transform: rotate(16deg) skewX(5deg); }
.panel { border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.metrics, .slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.metrics { margin-top: 16px; }
.metric { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 11px; padding: 15px 17px; }
.metric-icon {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px;
  background: #282e25; border: 1px solid #383e33; border-radius: 10px; color: var(--green);
}
.metric-icon .icon { width: 18px; height: 18px; }
.metric p { color: #bdc0c4; font-size: .88rem; line-height: 1.28; }
.metric strong { display: block; margin-top: 3px; font-variant-numeric: tabular-nums; font-size: 1.37rem; letter-spacing: -.02em; line-height: 1; }
.metric small { font-weight: 500; font-size: .85rem; color: var(--muted); }
.metric progress { grid-column: 1 / -1; width: 100%; height: 4px; border: none; appearance: none; background: #32353a; border-radius: 10px; }
progress::-webkit-progress-bar { background: #32353a; border-radius: 10px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 10px; }

.planning, .recent { margin-top: 28px; }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-bar p { color: var(--muted); margin-top: 4px; font-size: .94rem; }
.week-control { display: flex; align-items: center; gap: 9px; color: #d5d7d9; font-size: .87rem; white-space: nowrap; }
.week-control .icon-button { min-height: 30px; width: 30px; border-color: #303239; }
.week-control .icon { width: 14px; height: 14px; }
.slot { padding: 14px 16px 11px; }
.slot-top, .slot-top > span:first-child { display: flex; align-items: center; gap: 6px; }
.slot-top { justify-content: space-between; margin-bottom: 14px; }
.slot-top > span:first-child { min-width: 0; color: #babdc1; font-size: .88rem; }
.slot-top .icon { width: 15px; height: 15px; }
.date-person { text-transform: capitalize; }
.duration { padding: 4px 7px; border-radius: 6px; background: #292d32; color: #e0e2e1; white-space: nowrap; font-size: .81rem; font-variant-numeric: tabular-nums; }
.slot strong, .slot-title { font-weight: 680; display: block; overflow-wrap: anywhere; }
.slot-title:hover { color: var(--green); }
.slot p { color: var(--muted); font-size: .89rem; }
.slot .button { padding-left: 0; margin-top: 3px; min-height: 32px; }
.slot .button:hover { padding-left: 5px; }
.slot .tag { margin-top: 8px; }
.extra { margin-top: 10px; }
.extra a { color: var(--green); }
.empty { display: flex; align-items: center; gap: 14px; padding: 20px; }
.empty-icon { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; background: #282b32; border-radius: 12px; color: #c0c5cd; }
.empty p { color: var(--muted); margin-top: 3px; font-size: .92rem; }
.empty .button { margin-left: auto; }
.access-layout { display: grid; place-items: center; min-height: 100vh; padding: 26px; }
.access-card { width: min(100%, 780px); overflow: hidden; display: grid; grid-template-columns: 1fr 1.15fr; }
.access-brand {
  display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: clamp(23px, 4vw, 43px);
  border-right: 1px solid #343d2d;
  background: radial-gradient(ellipse at 18% 10%, #39482c, transparent 70%), linear-gradient(145deg, #212a1e, #191f18);
}
.access-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.access-logo .brand-mark { width: 104px; height: 104px; margin-left: -7px; }
.access-logo .brand-name { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.access-brand p { color: #cbd3c1; font-size: .94rem; }
.access-fields { padding: clamp(20px, 4vw, 38px); }
.access-fields h1 { font-size: 1.95rem; }
.access-fields > p { color: var(--muted); font-size: .95rem; margin-top: 7px; }
.access-fields form { display: grid; gap: 13px; margin-top: 20px; }
.access-fields .button { min-height: 43px; margin-top: 4px; }
.access-fields .form-error { margin-top: 0; }
.tag { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border-radius: 7px; font-size: .825rem; font-weight: 620; white-space: nowrap; }
.status-pauta { background: #30323a; color: #d8dae1; }
.status-roteiro { background: #31303e; color: #ded6f2; }
.status-geracao { background: #3a3225; color: #efd4a1; }
.status-edicao { background: #283744; color: #bbddf8; }
.status-pronto { background: #303b23; color: #dfefb0; }
.status-publicado { background: #284234; color: #bcecc9; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.05em; overflow-wrap: anywhere; }
.page-heading p { color: var(--muted); margin-top: 6px; }
.video-list { overflow: hidden; }
.user-row {
  display: grid; grid-template-columns: 35px minmax(100px, 1fr) auto auto;
  gap: 13px; align-items: center; padding: 12px 16px; min-height: 66px;
}
.user-row + .user-row { border-top: 1px solid var(--border); }
.video-row { display: grid; grid-template-columns: 49px minmax(90px, 1fr) auto auto auto; gap: 15px; align-items: center; min-height: 67px; padding: 10px 16px; }
.video-row + .video-row { border-top: 1px solid var(--border); }
a.video-row:hover { background: var(--panel-hover); }
.thumb { object-fit: cover; width: 45px; height: 45px; border-radius: 10px; background: #25272d; }
.thumb.placeholder { display: inline-grid; place-items: center; color: #aaafb7; }
.row-title { min-width: 0; }
.row-title strong, .row-title small { display: block; overflow-wrap: anywhere; }
.row-title small { color: var(--muted); margin-top: 3px; font-size: .86rem; }
.row-date { color: var(--muted); font-size: .87rem; white-space: nowrap; }
.row-date .icon, .row-open { width: 15px; height: 15px; }
.row-open { color: #8d9196; }
.filter-bar { display: grid; grid-template-columns: minmax(200px, 400px) minmax(130px, 235px); gap: 13px; margin-bottom: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.product-card { overflow: hidden; }
.product-cover { display: grid; place-items: center; min-height: 166px; border-bottom: 1px solid var(--border); background: #20232a; }
.product-cover .cover { display: grid; width: 100%; height: 181px; object-fit: contain; border-radius: 0; background: #20232a; }
.product-cover .icon { width: 36px; height: 36px; color: #adb3bd; }
.product-body { padding: 16px; }
.product-body small { color: var(--green); font-size: .84rem; }
.product-body h2 { margin: 3px 0 7px; overflow-wrap: anywhere; }
.product-body p { font-size: .9rem; }
.product-body .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.product-body .toolbar { margin-top: 13px; }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.provider { padding: 18px; }
.provider-title { display: flex; align-items: center; gap: 10px; }
.provider p, .integration p { color: var(--muted); font-size: .92rem; }
.provider p .text-link { font-size: inherit; }
.provider .button { white-space: normal; }
.metric-icon.flow { background: #252d3d; color: #bed3ff; border-color: #3d475b; }
.metric-icon.runway { background: #2b2940; color: #ddd1f8; border-color: #423b57; }
.credit-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 15px 0; border-top: 1px solid var(--border); margin-top: 13px; }
.credit-values strong { display: block; font-size: 1.62rem; }
.credit-values small { color: var(--muted); font-size: .79rem; display: block; }
.integration { display: flex; align-items: center; gap: 13px; padding: 17px; margin-top: 16px; }
.integration h2 { font-size: 1.12rem; }
.integration p { margin-top: 5px; }
.integration .routing-counts { color: var(--green); font-size: .87rem; margin-top: 7px; }
.integration-setup { padding: 18px; margin-bottom: 15px; }
.integration-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.integration-steps article {
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  border: 1px solid var(--border); border-radius: 10px; background: #15171b;
}
.step-header { display: flex; align-items: start; flex-wrap: wrap; gap: 6px 10px; }
.integration-steps .toolbar { margin-top: auto; }
.integration-steps .button { white-space: normal; }
.integration-instructions { margin: 0 0 2px; padding-left: 23px; display: grid; gap: 9px; line-height: 1.5; }
@media (max-width: 1060px) {
  .integration-steps { grid-template-columns: 1fr; }
}
.integration > :last-child { margin-left: auto; }
.finishing { margin: 0 0 16px; }
.recent > h2 { margin-bottom: 12px; }
.ledger { grid-template-columns: 44px minmax(90px, 1fr) auto auto; }

.video-summary { display: flex; align-items: center; gap: 13px; padding: 14px; margin-bottom: 16px; }
.video-summary p { color: var(--muted); margin-top: 4px; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.notice { border: 1px solid #4b422e; background: #28241b; color: #f4dfa9; padding: 12px 15px; border-radius: 9px; margin-bottom: 12px; }
.timeline-bar { margin-top: 25px; }
.scene-list { display: grid; gap: 12px; }
.scene { padding: 16px 17px; }
.scene-head { display: flex; gap: 11px; align-items: center; }
.scene-head p { color: var(--muted); margin-top: 4px; font-size: .9rem; }
.scene-head .tag { margin-left: auto; }
.scene-index { display: grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; background: #292e25; border: 1px solid #414b37; color: var(--green); border-radius: 9px; font-variant-numeric: tabular-nums; font-weight: 700; }
.scene-visual { margin-top: 12px; }
.scene-cues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 13px; margin: 13px 0; }
.scene-cues div { border-left: 2px solid #46513a; padding-left: 9px; }
.scene-cues dt { color: var(--muted); font-size: .83rem; }
.scene-cues dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.scene details { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 9px; }
.scene summary { width: fit-content; cursor: pointer; color: var(--green); font-size: .9rem; }
.prompt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.prompt-grid > div { background: #15171c; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.prompt-grid p { font-size: .89rem; color: #d7d9da; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-title { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 5px; }
.asset-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.scene-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }

dialog {
  color: var(--text); width: min(94vw, 560px); max-height: 90vh; padding: 0; overflow: hidden;
  border: 1px solid #3b3e45; border-radius: 17px; background: #191b20; box-shadow: 0 20px 90px #000a;
}
dialog.wide { width: min(94vw, 720px); }
dialog::backdrop { background: #07080bbf; backdrop-filter: blur(3px); }
dialog form { max-height: 90vh; display: flex; flex-direction: column; }
.dialog-head { display: flex; gap: 14px; justify-content: space-between; align-items: start; padding: 20px 21px 15px; border-bottom: 1px solid var(--border); }
.dialog-head h2 { font-size: 1.46rem; }
.dialog-head p { margin-top: 4px; color: var(--muted); font-size: .91rem; }
.dialog-body { overflow-y: auto; padding: 17px 21px; }
.dialog-foot { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; padding: 13px 21px; border-top: 1px solid var(--border); background: #1c1e23; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.full { grid-column: 1 / -1; }
.finishing-fields {
  min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--border);
  border-radius: 10px; background: #15171b;
}
.finishing-fields legend { padding: 0 6px; color: var(--text); font-weight: 650; }
.finishing-fields > p { margin-top: 9px; font-size: .86rem; }
.adjustments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.adjustment {
  display: flex; cursor: pointer; align-items: flex-start; gap: 9px; padding: 8px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--panel);
}
.adjustment:hover { border-color: #566447; }
.adjustment input { margin: 2px 0 0; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--green); }
.adjustment strong, .adjustment small { display: block; line-height: 1.35; }
.adjustment strong { font-size: .9rem; }
.adjustment small { color: var(--muted); font-size: .81rem; margin-top: 2px; }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.field span, .upload-label { font-size: .91rem; color: #d7d9db; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 42px; border: 1px solid #3b3e45; background: #13151a; border-radius: 8px;
  padding: 9px 10px; color: var(--text); font-size: .94rem;
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #93979d; opacity: 1; }
.field select {
  appearance: none; padding-right: 30px;
  background: linear-gradient(45deg, transparent 50%, #a8adb3 50%) calc(100% - 16px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, #a8adb3 50%, transparent 50%) calc(100% - 11px) 50% / 5px 5px no-repeat, #13151a;
}
.upload-zone {
  position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; margin-top: 5px;
  padding: 12px; min-height: 59px; border: 1px dashed #4b5147; border-radius: 10px; background: #181e19;
}
.upload-zone:hover { background: #20271e; border-color: #7c8b6b; }
.upload-zone strong, .upload-zone small { display: block; }
.upload-zone strong { font-size: .89rem; }
.upload-zone small { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.attachment {
  max-width: 100%; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px;
  background: #24282d; border: 1px solid #363a43; border-radius: 7px; font-size: .85rem; overflow-wrap: anywhere;
}
a.attachment:hover { color: var(--green); border-color: #707d61; }
.attachment img { width: 23px; height: 23px; object-fit: cover; border-radius: 4px; }
.attachment .icon { width: 15px; height: 15px; }
.attachment .icon-button { width: 23px; min-height: 23px; padding: 3px; border: none; }
.attachment .icon-button .icon { width: 13px; height: 13px; }
.form-error { border-radius: 8px; padding: 9px 11px; background: #3c2325; color: #ffcece; margin-top: 12px; }
#toast:not(:empty) {
  position: fixed; z-index: 5; bottom: 22px; right: 22px; max-width: min(360px, 90vw);
  border: 1px solid #4f6140; border-radius: 10px; padding: 11px 15px; background: #293421; color: #e6f7cd;
  box-shadow: 0 7px 38px #0009;
}
#toast.error:not(:empty) { background: #3c2325; color: #ffcece; border-color: #744347; }

@media (max-width: 1100px) {
  #app { --sidebar-width: 205px; }
  .film { right: -43px; opacity: .59; }
  .provider .section-bar { flex-wrap: wrap; }
}

@media (max-width: 820px) {
  #app { --sidebar-width: 0px; }
  .sidebar { display: none; width: 226px; top: 61px; box-shadow: 8px 15px 40px #0009; }
  .sidebar.open { display: flex; }
  .topbar { min-height: 61px; padding: 9px 16px; }
  .mobile-menu { display: inline-flex !important; }
  main { padding-top: 17px; }
}

@media (max-width: 600px) {
  .access-card { grid-template-columns: 1fr; }
  .access-layout { padding: 15px; }
  .access-brand { padding: 16px 18px; border-right: 0; border-bottom: 1px solid #343d2d; gap: 2px; }
  .access-logo { flex-direction: row; align-items: center; gap: 9px; }
  .access-logo .brand-mark { width: 39px; height: 39px; margin-left: -3px; }
  .access-fields h1 { font-size: 1.55rem; }
  .user-row { grid-template-columns: minmax(70px, 1fr) auto auto; gap: 8px; padding: 8px; }
  .user-row .workspace-mark { display: none; }
  .adjustments { grid-template-columns: 1fr; }
  .hero-content { padding: 22px 18px; }
  .hero { min-height: 222px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .hero p { max-width: 250px; }
  .film { right: -99px; opacity: .31; }
  .metrics { gap: 6px; }
  .metric { padding: 10px 7px; column-gap: 5px; row-gap: 7px; }
  .metric .metric-icon { display: none; }
  .metric p { font-size: .82rem; }
  .metric strong { font-size: 1.2rem; }
  .slots, .provider-grid, .prompt-grid { grid-template-columns: 1fr; }
  .planning, .recent { margin-top: 23px; }
  .section-bar, .page-heading { align-items: flex-start; flex-wrap: wrap; }
  .slot { padding: 11px 12px; }
  .slot-top { margin-bottom: 6px; }
  .breadcrumb-root, .breadcrumb-root + .trail-separator { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-cover { min-height: 118px; }
  .product-cover .cover { height: 121px; }
  .product-body { padding: 12px; }
  .product-body .button { white-space: normal; min-height: 34px; padding: 5px 7px; font-size: .84rem; }
  .video-row { gap: 8px; padding: 8px; grid-template-columns: 39px minmax(70px, 1fr) auto; }
  .video-row .thumb { width: 37px; height: 37px; }
  .video-row .row-date, .video-row .row-open { display: none; }
  .video-row.ledger { grid-template-columns: minmax(65px, 1fr) auto auto; }
  .ledger .metric-icon { display: none; }
  .tag { white-space: normal; font-size: .78rem; }
  .filter-bar { grid-template-columns: minmax(105px, 1fr) minmax(90px, .7fr); gap: 8px; }
  .video-summary, .integration { flex-wrap: wrap; padding: 11px; }
  .summary-actions { margin-left: 0; }
  .integration > :last-child { margin-left: 0; }
  .scene { padding: 12px; }
  .scene-head h3 { font-size: .96rem; }
  .dialog-head, .dialog-foot, .dialog-body { padding-left: 13px; padding-right: 13px; }
  .empty { gap: 9px; padding: 11px; flex-wrap: wrap; }
}

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