.app-brand { text-decoration: none; }
.skip:not(:focus) { clip-path: inset(50%); }
.app-nav { display: flex; align-items: center; gap: 4px; }
.app-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 5px 13px; border: 1px solid transparent; border-radius: 5px;
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 610;
}
.app-nav a[aria-current] { color: var(--accent); background: #271c35; border-color: #d5b5fa41; }
.app-nav a:hover { border-color: var(--line); }
.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 13px;
  border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font-weight: 650;
}
.button:hover { border-color: var(--accent); }
.button.primary { border-color: transparent; }
.orbite-banner {
  position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #141021 9%, #141021ba 43%, #21162b3a 72%, #141021c7),
    url("/app/orbite/m42.jpg") 78% 42% / min(920px, 95vw) auto no-repeat, #141021;
}
.orbite-banner::before, .orbite-banner::after {
  content: ""; position: absolute; z-index: -1; width: min(700px, 60vw); height: 125px;
  border: 1px solid #e4bdfe52; border-radius: 50%; right: -4%; top: 30%; transform: rotate(-14deg);
}
.orbite-banner::after { width: min(600px, 53vw); height: 92px; top: 38%; right: -1%; border-color: #e4bdfe35; }
.banner-inner { min-height: 230px; display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-block: 36px 29px; }
.banner-inner h1, .login-layout h1 { font-size: clamp(55px, 7.5vw, 100px); line-height: .94; overflow-wrap: anywhere; }
.banner-inner h1 span, .login-layout h1 span { color: var(--accent); }
.banner-inner p, .login-layout p { color: var(--muted); margin-top: 11px; }
.banner-inner .button { flex: none; }
.workspace-content { padding-block: 28px 39px; min-height: 330px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.section-heading label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.workspace-content h2, .login-panel h2 { font-size: 31px; line-height: 1.04; }
.section-heading h2 { margin-top: 4px; }
.workspace-content h2 + p { color: var(--muted); margin-top: 9px; max-width: 68ch; font-size: 15px; }
.records { border-block: 1px solid var(--line); }
.empty-record { position: relative; isolation: isolate; min-height: 153px; display: grid; align-content: center; justify-items: start; gap: 6px; padding: 18px; }
.empty-record::after { content: ""; position: absolute; width: 116px; height: 36px; right: 12%; top: 39%; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-17deg); z-index: -1; }
.empty-record h3 { font-size: 25px; }
.campaign-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 110px 118px 22px; align-items: center; gap: 14px;
  min-height: 81px; padding: 12px 14px; text-decoration: none;
}
.campaign-row + .campaign-row { border-top: 1px solid var(--line); }
.campaign-row:hover { background: #1c1529; }
.campaign-row h3 { font-size: 23px; overflow-wrap: anywhere; }
.campaign-row .badge { justify-self: start; }
.record-date { color: var(--muted); font-size: 13px; }
.row-arrow { color: var(--accent); justify-self: end; }
.studio-banner .banner-inner { min-height: 212px; }
.studio-banner h1 { max-width: 19ch; font-size: clamp(41px, 6vw, 79px); }
.back-link { display: inline-block; margin-bottom: 11px; color: var(--muted); font-size: 13px; }
.studio-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 25px; }
.new-campaign .studio-layout { grid-template-columns: minmax(0, 830px); }
.studio-main { min-width: 0; }
.step-rail { position: sticky; top: 16px; display: grid; gap: 4px; border: 1px solid var(--line); padding: 7px; background: #151121; }
.step-rail button {
  display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid transparent;
  background: transparent; text-align: left; color: var(--muted); font-size: 14px;
}
.step-rail button span { color: var(--accent); font: 11px var(--mono); }
.step-rail button[aria-pressed="true"] { background: #2a1e3a; border-color: #dbb6ff53; color: var(--text); }
.panel { padding: clamp(15px, 2.8vw, 27px); border: 1px solid var(--line); background: #161123; min-width: 0; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; margin-top: 20px; }
.fields label { display: grid; min-width: 0; gap: 5px; align-content: start; color: var(--muted); font-weight: 610; font-size: 13px; }
.fields .wide { grid-column: 1 / -1; }
.fields input:not([type=checkbox]), .fields textarea, .fields select, .gtm-filters input {
  width: 100%; min-height: 44px; border: 1px solid #d6b8f34b; border-radius: 4px;
  background: #0f0d1b; color: var(--text); padding: 8px 10px; font: 15px/1.42 "General Sans", sans-serif;
}
.fields textarea { resize: vertical; }
.fields input::placeholder, .fields textarea::placeholder, .gtm-filters input::placeholder { color: #a89ab8; opacity: 1; }
.fields input[type=checkbox] { width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.fields fieldset { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); }
.fields fieldset legend { padding-inline: 5px; font-weight: 630; }
.fields fieldset > label + label { margin-top: 10px; }
.fields .inline { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.fields .inline label, .fields .checkbox { display: flex; align-items: center; min-height: 44px; gap: 7px; }
.fields fieldset.inline > label + label { margin-top: 0; }
.fields #reuse-copy { margin-top: 12px; }
.fields #reuse-copy label { display: grid; }
.form-actions, .approval-bar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.approval-bar { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.feedback { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.feedback:empty { display: none; }
.feedback[data-state="error"] { color: var(--error); }
.feedback[data-state="ready"] { color: var(--ready); }
.strategy-output { margin: 17px 0; border-block: 1px solid var(--line); padding: 13px 0; }
.strategy-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.strategy-plan:not(:empty) { margin-top: 15px; border-top: 1px solid var(--line); }
.strategy-plan div { display: grid; grid-template-columns: minmax(100px, 18%) minmax(0, 1fr); gap: 8px 15px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.strategy-plan dt { color: var(--accent); font-weight: 650; }
.strategy-plan dd { color: var(--muted); }
.angle-list { margin-bottom: 0; padding-left: 20px; }
.angle-list li { padding-block: 4px; }
.fold summary { cursor: pointer; min-height: 44px; padding-block: 9px; font-weight: 660; }
.fold summary:hover { color: var(--accent); }
.fold[open] summary { margin-bottom: 7px; }
.source-reference, .check-row { display: flex; justify-content: space-between; gap: 7px 12px; align-items: start; padding: 10px 0; }
.source-reference { flex-wrap: wrap; }
.source-reference p { flex-basis: 100%; }
.source-reference + .source-reference, .check-row + .check-row { border-top: 1px solid var(--line); }
.source-reference a, .check-row a { font-size: 14px; color: var(--accent); }
.check-row a { display: inline-flex; align-items: center; min-height: 34px; }
.check-row .badge { flex: none; }
.panel > .records { margin-top: 15px; }
.field-title { margin-top: 11px; color: var(--muted); font-size: 13px; }
.asset-choice { display: flex !important; align-items: center; margin-top: 5px; min-height: 44px; }
.asset-choice img { width: 32px; height: 32px; object-fit: cover; border-radius: 2px; }
.result-summary { margin-top: 14px; padding: 12px 0; border-block: 1px solid var(--line); }
.report-fold { margin-block: 15px; padding: 6px 12px 9px; border: 1px solid var(--line); }
.report-fold .fields { margin-top: 6px; }
.platform-result { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.manual-heading { margin-top: 19px; font-size: 23px; }
.results-values { display: flex; flex-wrap: wrap; gap: 10px 25px; margin-top: 7px; }
.results-values dt { color: var(--muted); font-size: 13px; }
.results-values dd { font: 570 29px/1.2 "Clash Display", sans-serif; font-variant-numeric: tabular-nums; }
.ad-previews { display: grid; gap: 12px; }
.preview-ad { background: #21192e; border: 1px solid var(--line); padding: 13px; overflow-wrap: anywhere; }
.preview-ad h3 { color: var(--accent); font-size: 22px; margin-bottom: 5px; }
.preview-ad img, .asset-detail img { display: block; width: 100%; max-height: 350px; object-fit: contain; background: #0f0d1b; margin-block: 10px; }
.library-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 33%); gap: 21px; align-items: start; }
.library-actions { display: grid; gap: 10px; }
.library-actions .fields { margin-top: 10px; }
.library-actions p { color: var(--muted); font-size: 14px; }
.asset-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.asset-list > .empty-record { grid-column: 1/-1; border-block: 1px solid var(--line); }
.library-entry { min-width: 0; border: 1px solid var(--line); background: #161123; }
.library-entry img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #0f0d1b; }
.library-entry > div { padding: 11px; overflow-wrap: anywhere; }
.library-entry h3 { font-size: 21px; }
.library-entry button { margin-top: 7px; }
.asset-detail .fields { grid-template-columns: minmax(0, 1fr); }
.asset-detail > .feedback { margin-top: 10px; }
.login-scene { background: linear-gradient(90deg,#141021 1%,#1410218c 50%,#14102175),url("/app/orbite/m42.jpg") 75% 55% / min(940px, 110vw) auto no-repeat,#141021; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 32%); gap: 22px; align-items: center; min-height: 440px; padding-block: 35px; }
.login-layout .form-actions { margin-top: 14px; }
.login-layout .feedback { margin-top: 8px; }
.workspace-footer { display: flex; justify-content: space-between; align-items: start; gap: 12px; border-top: 1px solid var(--line); }
.workspace-footer a { max-width: 430px; text-align: right; font-size: 11px; }
@media(max-width: 880px) {
  .top-inner { display: grid; grid-template-columns: 1fr auto; padding-block: 5px; gap: 2px 7px; }
  .app-nav { grid-row: 2; grid-column: 1/-1; justify-content: start; }
  .app-nav a { padding-inline: 9px; font-size: 13px; }
  .workspace { grid-row: 1; grid-column: 2; }
  .studio-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step-rail { position: static; display: flex; flex-wrap: wrap; }
  .step-rail button { width: auto; gap: 6px; padding-inline: 8px; }
}
@media(max-width: 680px) {
  .banner-inner { min-height: 191px; align-items: start; flex-direction: column; justify-content: end; gap: 12px; padding-block: 24px 18px; }
  .orbite-banner { background-position: 0 0, 74% 47%; }
  .workspace-content { padding-block: 18px 24px; }
  .library-layout, .login-layout { grid-template-columns: minmax(0, 1fr); }
  .login-layout { min-height: auto; padding-block: 24px; gap: 17px; }
  .login-layout h1, .banner-inner h1 { font-size: clamp(46px, 10vw, 68px); }
  .studio-banner h1 { font-size: clamp(39px, 9vw, 59px); }
  .campaign-row { grid-template-columns: minmax(0, 1fr) auto 17px; gap: 7px; padding-inline: 6px; }
  .record-date { display: none; }
  .section-heading { flex-wrap: wrap; }
  .workspace-footer { flex-direction: column; }
  .workspace-footer a { text-align: left; }
}
@media(max-width: 400px) {
  .app-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .app-nav a { font-size: 11px; padding-inline: 2px; }
  .fields, .asset-list { grid-template-columns: minmax(0, 1fr); }
  .strategy-plan div { grid-template-columns: 1fr; gap: 4px; }
}
.sub-nav { display: flex; flex-wrap: wrap; gap: .3rem .8rem; grid-column: 1 / -1; margin-bottom: .9rem; }
.sub-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem .65rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-decoration: none; }
.sub-nav a:hover, .sub-nav a[aria-current="page"] { border-color: var(--accent); color: var(--text); }

.gtm-content { display: grid; gap: 28px; }
.gtm-content > .sub-nav { margin-bottom: 0; }
.gtm-summary .results-values { border-block: 1px solid var(--line); padding-block: 13px; }
.gtm-explainer { margin-top: 12px; }
.gtm-filters { justify-content: flex-end; }
.gtm-filters input { width: 13rem; }
.gtm-record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 24px; padding-block: 13px; }
.gtm-record + .gtm-record { border-top: 1px solid var(--line); }
.gtm-record > div { min-width: 0; overflow-wrap: anywhere; }
.gtm-record .fine { margin-top: 4px; }
.gtm-mcp input[readonly] { font-family: ui-monospace, monospace; }
@media (max-width: 640px) {
  .gtm-content .section-heading { flex-wrap: wrap; }
  .gtm-filters { justify-content: flex-start; width: 100%; }
  .gtm-filters label { flex: 1 1 130px; flex-wrap: wrap; }
  .gtm-filters input, .gtm-filters select { width: 100%; }
  .gtm-record { grid-template-columns: 1fr; }
}
.pilot-nav { padding-top: .6rem; }
.deep-report { padding: 1rem 0; }
.deep-report:has(+ .orbit-stage) { margin-bottom: .6rem; }
.publication-grid { display: grid; gap: 1.2rem; }
.publication-card { padding: clamp(.8rem, 2.5vw, 1.4rem); border: 1px solid var(--line); border-radius: 1rem; background: #12101c; }
.publication-card h3 { margin: 0; }
.publication-card .badge { white-space: normal; text-align: center; }
.publication-card .form-actions { margin: 1rem 0; }
.publication-card .fold { margin-top: .8rem; }
.publication-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 1rem; margin: 1rem 0; }
.publication-summary dt { color: var(--muted); font-size: .82rem; }
.publication-summary dd { margin: .22rem 0 0; font-size: .95rem; overflow-wrap: anywhere; }
.publication-review .fields { margin-top: 1.4rem; }
.workspace-footer nav { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.workspace-footer nav a { min-height: 34px; display: inline-flex; align-items: center; }

.social-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 34%); gap: 24px; align-items: start; }
.social-connection { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.social-connection .feedback { margin: 0; }
.social-calendar, .social-compose { min-width: 0; }
.social-calendar-heading label { min-height: 44px; }
.social-day + .social-day { border-top: 1px solid var(--line); }
.social-day-label { color: var(--muted); font: 650 .875rem/1.4 "General Sans", sans-serif; letter-spacing: normal; padding: .75rem 0 .3rem; }
.social-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: .85rem 0; border-top: 1px solid var(--line); }
.social-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .875rem; }
.social-row-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin-bottom: .35rem; }
.social-row-heading h4 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.social-post-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.social-post-error { color: var(--error); }
.social-row-actions:not(:empty) { margin-top: .45rem; }
.social-row-actions a, .form-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.social-image-preview img { display: block; width: 100%; max-height: 190px; object-fit: contain; background: var(--stage); }
.social-compose .fields { grid-template-columns: minmax(0, 1fr); }
.creative-experiments { margin-block: 1.4rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.creative-experiments h3 { font-size: 1.5rem; }
.creative-experiments h3 + p { margin-top: .35rem; }
.creative-experiments .records { margin-top: 1rem; }
.experiment-record { padding-block: 1rem; overflow-wrap: anywhere; }
.experiment-record + .experiment-record { border-top: 1px solid var(--line); }
.experiment-record h4 { margin: 0; font-size: 1rem; }
.experiment-record .fields, .experiment-record .form-actions { margin-top: .8rem; }
.experiment-record .fields > button { justify-self: start; align-self: end; }
.experiment-visuals { display: flex; gap: 12px; margin-block: .75rem; }
.experiment-visuals figure { margin: 0; width: min(45%, 120px); }
.experiment-visuals img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--stage); }
.experiment-suggestion p + p { margin-block: .6rem; }
.experiment-suggestion a { display: inline-flex; align-items: center; min-height: 44px; margin-inline-end: .7rem; }
.experiment-report { margin-top: .75rem; }
.experiment-delta { margin-top: .45rem; font-weight: 650; }
.experiment-report table { width: 100%; border-collapse: collapse; margin-block: .45rem; font-variant-numeric: tabular-nums; }
.experiment-report caption { text-align: left; padding-block: .4rem; }
.experiment-report td, .experiment-report th { padding: .45rem .3rem; border-block-start: 1px solid var(--line); text-align: end; }
.experiment-report th:first-child { text-align: start; }
@media (max-width: 780px) {
  .social-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .social-compose { grid-row: 1; }
}
@media (max-width: 430px) {
  .publication-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-row { grid-template-columns: 42px minmax(0, 1fr); }
  .social-time { font-size: .78rem; }
  .social-calendar-heading { align-items: start; }
  .experiment-report td, .experiment-report th { font-size: .85rem; }
}
