@font-face {
  font-family: Manrope;
  src: url("/media/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #151a2d;
  --muted: #59647a;
  --brand: #354ae4;
  --surface: #f6f7fb;
  --rule: #e5e8f0;
  --tint: #eef0ff;
  --radius: 14px;
  --header: 68px;
  font: 15px/1.5 Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.035em; }
h1 { font-size: clamp(2.15rem, 3.65vw, 4rem); font-weight: 770; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.1rem; }
button, input, textarea, select { font: inherit; }
button, input, select, textarea { color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .56; cursor: wait; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #5366ef; outline-offset: 3px; }
#main:focus { outline: none; }
svg { inline-size: 18px; block-size: 18px; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 8px 14px; background: #fff; }
.eyebrow { font-size: .73rem; font-weight: 760; text-transform: uppercase; letter-spacing: .12em; }
.accent { color: var(--brand); }
.initial { margin: 36px auto; padding: 0 18px; max-width: 1200px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: #fff; border: 1px solid var(--rule); border-radius: 9px;
  font-weight: 730; font-size: .86rem; line-height: 1.25; min-height: 38px;
  padding: .62rem .85rem; text-decoration: none; text-align: center;
}
.button:hover { border-color: #b7c1ed; }
.button.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.button.primary:hover { background: #2b3cc0; border-color: #2b3cc0; }
.button.tint { color: #2c40be; background: var(--tint); border-color: var(--tint); }
.button.tint:hover { background: #e1e6ff; }
.button.subtle { border-color: transparent; background: var(--surface); white-space: nowrap; }
.button.wide { width: 100%; min-height: 48px; }
.text-button {
  background: none; border: 0; padding: 6px 0; min-height: 36px;
  display: inline-flex; align-items: center; gap: 3px;
  color: #2c40be; font-weight: 750; font-size: .82rem; text-align: left;
}
.text-button:hover { text-decoration: underline; }
#top { border-bottom: 1px solid var(--rule); background: #fff; }
.top-shell {
  min-height: var(--header); max-width: 1340px; padding: 12px clamp(16px, 3vw, 42px);
  margin: auto; display: flex; align-items: center; gap: 26px; justify-content: space-between;
}
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; font-size: 1.45rem; font-weight: 850; letter-spacing: -.070em; text-decoration: none; line-height: 1; }
.brand small { font-size: .57rem; letter-spacing: .12em; color: var(--brand); margin-left: 6px; font-weight: 820; vertical-align: 40%; }
.header-caption { color: var(--muted); font-size: .88rem; font-weight: 650; }
.top-search {
  display: flex; align-items: center; gap: 9px; background: var(--surface);
  color: var(--muted); border-radius: 9px; min-width: 0; flex: 1; max-width: 480px; padding: 0 11px;
}
.top-search:focus-within { outline: 2px solid #5366ef; }
.top-search input { margin: 0; width: 100%; min-width: 0; min-height: 39px; border: 0; background: transparent; outline: 0; font-size: .9rem; }
.account { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account > span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .82rem; }
#rail:empty { display: none; }
.in-workspace #layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: calc(100dvh - var(--header)); }
#rail {
  padding: 22px 11px; background: #fafbfe; border-right: 1px solid var(--rule);
}
.rail-label { display: block; color: var(--muted); padding: 0 10px 12px; }
.rail-link {
  display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 4px; min-height: 43px;
  border-radius: 8px; text-decoration: none; color: #333c56; font-weight: 720; font-size: .89rem;
}
.rail-link:hover { background: var(--surface); }
.rail-link[aria-current] { background: var(--tint); color: #2c40be; }
.welcome {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr);
  gap: clamp(30px, 6vw, 94px); align-items: center; max-width: 1340px;
  margin: auto; padding: clamp(40px, 7vw, 108px) clamp(18px, 5vw, 76px);
}
.welcome h1 { font-size: clamp(2.5rem, 5.3vw, 5rem); margin: 10px 0 15px; letter-spacing: -.065em; }
.lead { color: var(--muted); font-size: 1.09rem; max-width: 480px; }
.welcome-demo { margin-top: 24px; }
.welcome-demo .video-tile { aspect-ratio: 2.45; }
.film-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding-top: 10px; color: var(--muted); font-size: .83rem; }
.film-caption strong { color: var(--ink); font-size: .9rem; }
.auth-panel {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 19px;
  padding: clamp(20px, 3.1vw, 42px); min-width: 0;
}
.role-switch {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; border-radius: 10px;
  background: #e9edf7; padding: 4px; margin-bottom: 23px;
}
.role-switch button {
  border-radius: 7px; border: 0; padding: 8px 5px; background: transparent;
  color: var(--muted); font-weight: 750; min-height: 39px; white-space: nowrap; font-size: .88rem;
}
.role-switch [aria-pressed="true"] { color: #2c40be; background: #fff; box-shadow: 0 1px 3px #1f2c5e17; }
.auth-panel > p { font-size: .92rem; color: var(--muted); margin: 8px 0 22px; overflow-wrap: anywhere; }
.auth-panel label { display: block; font-size: .85rem; font-weight: 750; margin: 14px 0 6px; }
.auth-panel input, .auth-panel textarea {
  width: 100%; background: #fff; border: 1px solid #d5daea; border-radius: 9px;
  padding: 10px 12px; min-height: 46px; resize: vertical;
}
.auth-panel [name="code"] { letter-spacing: .55em; font-weight: 750; }
.form-message { color: #4b3b66; font-size: .83rem; margin: 9px 0; }
.form-message:empty { margin: 0; }
.auth-panel form > .button { margin-top: 12px; }
.form-links { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding-top: 6px; }
.success { background: #fff; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; }
.success p { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.workspace-content { max-width: 1300px; margin: auto; padding: 27px clamp(16px, 3vw, 42px) 36px; }
.workspace-content > h1 { margin: 5px 0 7px; }
.subtitle { color: var(--muted); margin-bottom: 20px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  background: var(--tint); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 26px; min-height: 180px;
}
.feature .video-tile { border-radius: 0; aspect-ratio: 3.1; height: 100%; }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px clamp(15px, 2.3vw, 33px); }
.feature-copy h2 { margin: 3px 0 7px; }
.feature-copy p { color: var(--muted); font-size: .92rem; max-width: 37ch; margin-bottom: 13px; }
.video-tile {
  display: block; position: relative; overflow: hidden; aspect-ratio: 1.9; width: 100%;
  border: none; padding: 0; border-radius: var(--radius); background: #151b30;
  color: #fff; text-align: left; isolation: isolate;
}
.video-tile:focus-visible { outline-offset: -4px; }
.video-tile > img { width: 100%; height: 100%; object-fit: cover; }
.video-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(170deg, #0b112452 0%, transparent 36%, transparent 66%, #0008);
}
.demo-label, .duration { position: absolute; z-index: 1; display: block; border-radius: 6px; background: #141928e6; font-size: .73rem; padding: 4px 7px; font-weight: 760; }
.demo-label { top: 12px; left: 12px; }
.duration { bottom: 12px; right: 12px; font-variant-numeric: tabular-nums; }
.play {
  position: absolute; z-index: 1; bottom: 12px; left: 12px;
  display: grid; place-items: center; width: 44px; height: 44px; padding-left: 2px;
  background: #fff; color: var(--ink); border-radius: 50%; font-size: .88rem;
}
.video-tile:hover .play { color: #fff; background: var(--brand); }
.section-title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 11px; }
#result-count { font-size: .84rem; color: var(--muted); }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.filter-row button {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--rule);
  border-radius: 30px; background: var(--surface); padding: 4px 10px; min-height: 32px;
  font-size: .81rem; font-weight: 730;
}
.filter-row button:hover { border-color: #b7c1ed; }
.filter-row button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.topic-filter button { background: #fff; }
.topic-filter button[aria-pressed="true"] { background: var(--tint); color: #2c40be; border-color: #dee3ff; }
.platform { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 760; }
.platform i { width: 7px; height: 7px; border-radius: 50%; background: #6471ae; transform: translateY(-1px); }
.platform-youtube i { background: #ed344f; }
.platform-instagram i { background: #b43988; }
.platform-facebook i { background: #2866d7; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.creator-card, .example-card, .empty {
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
}
.creator-card { display: flex; flex-direction: column; min-width: 0; }
.creator-ident { display: flex; align-items: center; gap: 10px; padding: 13px; background: var(--surface); }
.creator-ident img { border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.creator-ident span { color: var(--muted); font-size: .82rem; }
.creator-channels { display: grid; gap: 5px; padding: 9px 13px 10px; }
.audience-caption { color: var(--muted); font-size: .69rem; font-weight: 720; }
.audience-columns { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.audience-columns > div { padding: 4px 8px; background: var(--surface); border-radius: 6px; font-size: .74rem; }
.audience-columns strong { display: block; font-size: .96rem; font-variant-numeric: tabular-nums; }
.creator-action { margin-top: auto; display: flex; align-items: center; gap: 8px; justify-content: space-between; border-top: 1px solid var(--rule); padding: 7px 12px; background: #fcfcfe; }
.creator-action .button { white-space: nowrap; }
.creator-action svg { width: 14px; height: 14px; }
.inline-film {
  display: flex; align-items: center; text-align: left; gap: 8px; padding: 5px;
  margin: 0 12px 9px; border: 0; border-radius: 8px; background: var(--surface); font-size: .77rem;
}
.inline-film:hover { background: var(--tint); }
.inline-film img { width: 58px; height: 38px; object-fit: cover; border-radius: 5px; }
.inline-film small { display: block; color: var(--muted); }
.inline-film svg { margin-left: auto; }
.example-card .video-tile { border-radius: 0; }
.example-meta { padding: 14px; font-size: .82rem; color: var(--muted); }
.example-meta h3 { color: var(--ink); }
.example-meta p { margin: 6px 0; }
.empty { grid-column: 1 / -1; min-height: 140px; padding: 20px; background: var(--surface); }
.empty p { margin: 6px 0 10px; color: var(--muted); }
.library-note { color: var(--muted); font-size: .83rem; margin-top: 16px; }
#detail {
  padding: 0; width: min(94vw, 590px); max-height: 90dvh; border: 1px solid var(--rule);
  border-radius: 17px; color: var(--ink); box-shadow: 0 20px 70px #11163030;
}
#detail.video-dialog { width: min(94vw, 760px); }
#detail::backdrop { background: #151a2d90; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--rule); }
.dialog-header h2 { font-size: 1.35rem; }
.icon-button { padding: 0; flex: 0 0 39px; }
#detail video { width: 100%; max-height: 57dvh; background: #151a2d; }
.dialog-body { padding: 18px; }
.dialog-body > p { margin: 5px 0 13px; color: var(--muted); }
.profile-ident { border-radius: 10px; margin-bottom: 12px; }
.profile-ident p { color: var(--muted); }
.profile-channels { display: grid; gap: 8px; padding: 10px 0 14px; }
.profile-channels > div { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; }
.profile-audience { display: flex; flex-wrap: wrap; gap: 3px 12px; align-items: baseline; justify-content: space-between; }
.profile-audience small { color: var(--muted); }
.profile-formats { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
@media (max-width: 1030px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-workspace #layout { grid-template-columns: 154px minmax(0, 1fr); }
  .account > span { display: none; }
}
@media (max-width: 720px) {
  .in-workspace #layout { display: block; min-height: 0; }
  #rail { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px 12px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .rail-label { display: none; }
  .rail-link { margin: 0; min-height: 40px; }
  .top-shell { gap: 8px; }
  .in-workspace .top-shell { display: grid; grid-template-columns: 1fr auto; }
  .top-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .top-search input, .auth-panel input, .auth-panel textarea { font-size: 16px; }
  .workspace-content { padding-top: 20px; }
  .welcome { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding-top: 25px; padding-bottom: 34px; }
  .welcome-story { display: contents; }
  .welcome-story > .eyebrow { margin-bottom: -13px; }
  .welcome h1 { margin: 0; }
  .welcome .lead { margin-top: -10px; }
  .welcome .auth-panel { order: 1; }
  .welcome-demo { order: 2; margin-top: 1px; }
  .feature { min-height: 0; }
  .feature .video-tile { aspect-ratio: 1.65; }
}
@media (max-width: 470px) {
  .header-caption { font-size: .79rem; }
  .rail-link { gap: 5px; padding-inline: 8px; font-size: .78rem; }
  .rail-link svg { width: 15px; height: 15px; }
  .feature, .cards { grid-template-columns: minmax(0, 1fr); }
  .feature .video-tile { aspect-ratio: 2.2; }
  .feature-copy p { margin-bottom: 10px; }
  .filter-row button { min-height: 35px; }
  .creator-channels { font-size: .85rem; }
  .creator-action { padding-block: 9px; }
  .creator-action button, .profile-formats button { min-height: 44px; }
}

.avatar-initials {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  display: grid; place-items: center; color: #2c40be !important; background: var(--tint);
  font-weight: 800; font-size: .92rem !important;
}
.avatar-initials.avatar-large { width: 58px; height: 58px; flex-basis: 58px; font-size: 1.12rem !important; }
.profile-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: #2c40be; font-size: .79rem; padding: 2px 0; overflow-wrap: anywhere;
}
.profile-link svg { width: 13px; height: 13px; }
.inventory {
  margin-top: 18px; max-width: 1032px; padding: clamp(16px, 2.4vw, 23px);
  border: 1px solid var(--rule); border-radius: var(--radius); min-width: 0;
}
.inventory > h2 { font-size: 1.12rem; margin-bottom: 5px; }
.inventory p { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.inventory-roster { list-style: none; margin: 11px 0; padding: 0; }
.inventory-roster:empty { display: none; }
.inventory-roster li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 7px 0; overflow-wrap: anywhere; }
.inventory-roster li + li { border-top: 1px solid var(--rule); }
.inventory-roster span { color: var(--muted); font-size: .82rem; }
.inventory-empty { margin: 8px 0; }
.inventory-editor { margin-top: 12px; border-top: 1px solid var(--rule); }
.inventory-editor > summary { cursor: pointer; color: #2c40be; font-weight: 750; padding: 12px 0 2px; }
.inventory-form { display: grid; gap: 12px; margin-top: 15px; }
.inventory-form label { display: block; min-width: 0; font-size: .85rem; font-weight: 720; }
.inventory-form input:not([type="checkbox"]), .inventory-form select, .inventory-form textarea {
  display: block; width: 100%; padding: 9px 10px; min-height: 42px; margin-top: 4px;
  border: 1px solid #d5daea; border-radius: 8px; background: #fff;
}
.inventory-form textarea { resize: vertical; }
.inventory-form fieldset { margin: 0; min-width: 0; border: 1px solid var(--rule); border-radius: 9px; padding: 10px 12px; }
.inventory-form legend { font-weight: 750; font-size: .87rem; padding: 0 5px; }
.inventory-form legend small, .inventory-private { color: var(--muted); font-weight: 620; font-size: .72rem; }
.inventory-fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.inventory-formats { display: flex; flex-wrap: wrap; gap: 10px; }
.inventory-formats label { display: inline-flex; gap: 5px; align-items: center; }
.inventory-form fieldset > p { margin-top: 8px; }
.inventory-result:empty { display: none; }
.inventory-form button { justify-self: start; }
@media (max-width: 720px) {
  .inventory-form input:not([type="checkbox"]), .inventory-form select, .inventory-form textarea { font-size: 16px; }
}
