:root {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 16px;
  --bg: #11151c;
  --panel: #1a202a;
  --panel-hi: #222a36;
  --ink: #edf2fa;
  --muted: #a4b0c2;
  --line: #343d4b;
  --accent: #9ee4bf;
  --accent-ink: #10251d;
  --side: #131821;
  --selected: #24352e;
  --dot: #2a3441;
  --warn: #ffc181;
  --danger: #ff9d9d;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f6f4;
  --panel: #fff;
  --panel-hi: #edf2ef;
  --ink: #1c2925;
  --muted: #52665e;
  --line: #cdd8d1;
  --accent: #1d6947;
  --accent-ink: #fff;
  --side: #eaf0ec;
  --selected: #d6e7dc;
  --dot: #cdd7d0;
  --warn: #8d520b;
  --danger: #a92232;
  color-scheme: light;
}
:root[data-style="brand"] {
  --accent: #89afff;
  --accent-ink: #101d32;
  --selected: #23334c;
  --brand: #ff5464;
}
:root[data-style="brand"][data-theme="light"] {
  --bg: #f2f5fc;
  --panel-hi: #edf2fc;
  --ink: #132545;
  --muted: #52627c;
  --line: #ccd5e5;
  --accent: #19489e;
  --accent-ink: white;
  --side: white;
  --selected: #e4edff;
  --dot: #d3daea;
  --brand: #ce1733;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
body,
button,
select,
input,
textarea {
  font: inherit;
}
button,
input,
textarea,
select {
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.055em;
  line-height: 1.06;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.05rem;
}
small,
.meta {
  color: var(--muted);
  font-size: 0.85rem;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 0.66rem 0.72rem;
}
textarea {
  resize: vertical;
  min-height: 6.5rem;
}
input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}
label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}
label.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 1rem;
  min-width: 0;
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-hi);
  color: var(--ink);
  font-size: 0.94rem;
  padding: 0.62rem 0.91rem;
  line-height: 1.25;
  text-decoration: none;
  font-weight: 600;
}
button:hover,
.btn:hover {
  filter: brightness(1.09);
}
.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}
.quiet {
  background: transparent;
}
.danger,
.error {
  color: var(--danger);
}
.error {
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: var(--accent);
  border-radius: 10px;
  color: var(--accent-ink);
  font-weight: 800;
  letter-spacing: -0.15em;
  padding-right: 0.12em;
  transform: rotate(-3deg);
}
[data-style="brand"] .mark {
  background: var(--brand);
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.brand em {
  font-style: normal;
  color: var(--accent);
}
.layout {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.layout.collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 28px 16px 20px;
  background: var(--side);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.side .brand {
  padding-left: 5px;
}
.side nav,
.side-bottom {
  display: grid;
  gap: 0.4rem;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.nav {
  border: 0;
  background: none;
  color: var(--muted);
  justify-content: flex-start;
  gap: 13px;
  text-align: left;
  padding: 0.7rem 0.8rem;
}
.nav.active {
  background: var(--selected);
  color: var(--accent);
}
.ico {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.collapsed .side .txt {
  display: none;
}
.workspace,
.auth {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 17px 17px;
}
.top {
  min-height: 69px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 4rem);
  background: var(--bg);
  gap: 1rem;
}
.crumb,
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.avatar {
  border-radius: 50%;
  background: var(--selected);
  color: var(--accent);
  padding: 0.4rem;
  min-width: 32px;
  text-align: center;
  font-weight: 700;
}
.content {
  max-width: 1280px;
  margin: auto;
  padding: clamp(1.4rem, 4vw, 4rem);
}
.heading,
.row,
.buttons,
.split {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.heading,
.split {
  justify-content: space-between;
}
.heading {
  margin-bottom: 1.65rem;
}
.heading p,
.lede {
  margin-top: 0.7rem;
  color: var(--muted);
  line-height: 1.55;
}
.section {
  margin: 1.6rem 0 0.85rem;
}
.stats,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.card,
.stat,
.empty,
.sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card,
.stat,
.empty {
  padding: 1.2rem;
}
.stat {
  display: grid;
  gap: 0.6rem;
}
.stat strong {
  font-size: 2rem;
  letter-spacing: -0.06em;
}
.empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
}
.empty p {
  color: var(--muted);
  max-width: 47ch;
  line-height: 1.55;
}
.empty .ico {
  width: 42px;
  height: 42px;
  background: var(--selected);
  color: var(--accent);
  border-radius: 12px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.card button:last-child {
  align-self: flex-start;
}
.card .card-foot {
  margin-top: auto;
}
.badge {
  font-size: 0.86rem;
  background: var(--panel-hi);
  padding: 0.32rem 0.65rem;
  border-radius: 99px;
  white-space: nowrap;
}
.badge.ok {
  color: var(--accent);
  background: var(--selected);
}
.network {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: var(--panel-hi);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}
.draft-photo {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: 8px;
}
.draft-copy {
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.filters {
  margin: 1.1rem 0;
}
.filters select {
  width: auto;
  max-width: 100%;
}
.sheet {
  overflow: hidden;
}
.entry {
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.entry + .entry {
  border-top: 1px solid var(--line);
}
.entry .error {
  width: 100%;
}
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.auth-card {
  width: min(100%, 430px);
  padding: clamp(1.3rem, 5vw, 2.4rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  gap: 1.4rem;
}
.auth-card h1 {
  font-size: 2.2rem;
}
.auth-card form,
dialog form {
  display: grid;
  gap: 1rem;
}
.auth-card .brand {
  margin-bottom: 0.65rem;
}
.switches {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.switches button {
  font-size: 0.86rem;
}
.loading {
  padding: 3rem;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 0;
  width: min(95vw, 600px);
  max-height: 89vh;
}
dialog::backdrop {
  background: #060910ad;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.dialog-head button {
  padding: 0.4rem 0.65rem;
}
.dialog-body {
  padding: 1.2rem 1.35rem;
}
.dialog-body p {
  line-height: 1.55;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.dialog-body .actions {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.dialog-img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 10px;
}
.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notice-space {
  min-height: 1.05rem;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-hi);
  max-width: min(400px, 90vw);
  box-shadow: 0 8px 32px #0003;
}
@media (max-width: 800px) {
  .layout,
  .layout.collapsed {
    grid-template-columns: 66px minmax(0, 1fr);
  }
  .side {
    padding: 1rem 0.5rem;
  }
  .side .txt {
    display: none;
  }
  .side .nav {
    justify-content: center;
    padding: 0.65rem;
  }
  .side .brand {
    padding: 0;
    justify-content: center;
  }
  .side .collapse {
    display: none;
  }
  .top {
    min-height: 54px;
  }
  .crumb .prefix {
    display: none;
  }
  .side {
    height: 100dvh;
  }
  .content {
    padding: 1.15rem;
  }
  .account .meta {
    display: none;
  }
}
@media (max-width: 520px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .stat {
    padding: 0.62rem 0.45rem;
  }
  .stat small {
    font-size: 0.76rem;
    overflow-wrap: anywhere;
  }
  .stat strong {
    font-size: 1.6rem;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .top {
    padding: 0.55rem 0.8rem;
  }
  .heading {
    align-items: flex-start;
  }
  .section.split {
    align-items: flex-start;
  }
  .account {
    gap: 0.35rem;
  }
  .account .name {
    display: none;
  }
}
.batch {
  margin: 1rem 0 1.65rem;
}
.batch-head {
  padding: 0.45rem 0 0.8rem;
}
.batch-head h3 {
  margin-bottom: 0.25rem;
}
.company-form {
  max-width: 800px;
  padding: clamp(1rem, 3vw, 2rem);
}
.company-form label small {
  font-size: 0.875rem;
  line-height: 1.4;
}
.company-form textarea {
  min-height: 5.5rem;
}
dialog.wide {
  width: min(96vw, 1200px);
}
.compare {
  align-items: start;
}
.compare .pre {
  line-height: 1.55;
}
.brand {
  gap: 0.64rem;
}
.logo-frame {
  position: relative;
  display: inline-flex;
  flex: none;
  overflow: hidden;
  padding: 3px 5px;
  border-radius: 4px;
}
.brand-logo {
  display: block;
  width: 90px;
  height: 36px;
  max-width: none;
  flex: none;
}
/* The gap between 7V and ideo is at 39% of the original artwork. */
[data-theme="dark"] .brand-logo {
  clip-path: inset(0 61% 0 0);
}
[data-theme="dark"] .logo-frame::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 90px;
  height: 36px;
  background-color: white;
  mask: url("/7video-logo.png") center / contain no-repeat;
  clip-path: inset(0 0 0 39%);
  pointer-events: none;
}
.collapsed .side .logo-frame {
  width: 42px;
}
@media (max-width: 800px) {
  .side .logo-frame { width: 42px; }
}
.brand-divider {
  height: 1.4rem;
  width: 1px;
  background: var(--line);
}
.studio-name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.collapsed .side .brand {
  justify-content: center;
  padding: 0;
}

.content:has(.studio-sections) {
  max-width: none;
}
.generation-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.generation-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 2vw, 2rem);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.generation-panel summary::-webkit-details-marker { display: none; }
.generation-panel summary::after {
  content: "";
  width: .55rem;
  height: .55rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.generation-panel[open] summary::after { transform: rotate(225deg); }
.generation-panel h3 { margin: 0; }
.generation-panel form {
  border-top: 1px solid var(--line);
  padding: clamp(1rem, 2vw, 2rem);
  display: grid;
  gap: 16px;
}
.generation-panel textarea {
  min-height: 104px;
}
.generation-panel .error:empty {
  display: none;
}

.platform-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.platform-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 18px;
}
.platform-tabs button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--panel-hi);
  border-color: var(--accent);
}
.platform-tabs span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.studio-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
}
.studio-sections .pair > *,
.studio-results,
.generation-panel {
  min-width: 0;
}
.studio-results > h2:first-child {
  margin-top: 0;
}
.studio-results .cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.studio-results .entry {
  flex-wrap: wrap;
}


:root[data-surface="plain"] :is(.workspace,.auth) { background-image:none; }
:root[data-corners="square"] :is(.card,.stat,.sheet,.empty,.generation-panel,.auth-card,dialog) { border-radius:2px; }
:root[data-style="custom"] :is(.nav.active,.avatar,.empty .ico,.network) { color:var(--accent-text); }
.appearance-preview { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sample-button { background:var(--accent); color:var(--accent-ink); border-radius:8px; padding:.6rem 1rem; font-weight:650; }
form[data-form="appearance"] input[type="color"] { height:2.75rem; padding:4px; cursor:pointer; }
.delete-account { color: var(--danger); }
