/* Studio roles. Light is the default; dark follows the OS or the user's choice (data-theme on <html>). */
:root {
  color-scheme: light dark;
  --bg: #f7f9fb;
  --surface: #fff;
  --soft: #fff0eb;
  --text: #182b38;
  --muted: #60717f;
  --line: #e1e7ec;
  --accent: #b83e2b;
  --accent-hover: #96301f;
  --on: #fff;
  --bad: #aa352c;
  --bad-bg: #fcf1ef;
  --good: #246c52;
  --good-bg: #eef7f2;
  --media-bg: #15232b;
  --bar: #c8d3db;
  --scene-bg: #f5ebe4;
  --scene-line: #e1cec2;
  --scene-shadow: 0 18px 45px rgb(24 43 56 / 10%);
  --radius: 8px;
  --type-caption: 12px;
  --type-small: 14px;
  --type-body: 15px;
  --type-label: 16px;
  --type-lead: 18px;
  --type-section: 22px;
  --type-page: 28px;
  --type-story: 32px;
  --type-display: clamp(40px, 4.5vw, 61px);
  --type-display-compact: 48px;
  --type-display-mobile: clamp(37px, 8vw, 51px);

}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f161c;
  --surface: #172128;
  --soft: #2d1c18;
  --text: #e6edf2;
  --muted: #9fb0bd;
  --line: #2a3842;
  --accent: #ff8a70;
  --accent-hover: #ffa28d;
  --on: #1a0e0b;
  --bad: #ff8f86;
  --bad-bg: #321b19;
  --good: #5fd0a0;
  --good-bg: #12261e;
  --media-bg: #0b1217;
  --bar: #3b4b57;
  --scene-bg: #1c262d;
  --scene-line: #32414c;
  --scene-shadow: 0 18px 45px rgb(0 0 0 / 40%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f161c;
    --surface: #172128;
    --soft: #2d1c18;
    --text: #e6edf2;
    --muted: #9fb0bd;
    --line: #2a3842;
    --accent: #ff8a70;
    --accent-hover: #ffa28d;
    --on: #1a0e0b;
    --bad: #ff8f86;
    --bad-bg: #321b19;
    --good: #5fd0a0;
    --good-bg: #12261e;
    --media-bg: #0b1217;
    --bar: #3b4b57;
    --scene-bg: #1c262d;
    --scene-line: #32414c;
    --scene-shadow: 0 18px 45px rgb(0 0 0 / 40%);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; font-weight: 600; cursor: pointer; line-height: 1.4; }
button:hover, .button:hover { border-color: var(--accent); color: var(--accent); }
button:disabled, .button[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.primary { background: var(--accent); color: var(--on); border-color: var(--accent); }
.primary:hover { background: var(--accent-hover); color: var(--on); border-color: var(--accent-hover); }
.danger { color: var(--bad); }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.text-link, .how-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; }
.text-link:hover, .how-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.muted, small { color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: var(--type-page); line-height: 1.25; letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: var(--type-section); line-height: 1.35; letter-spacing: -.02em; }
h3 { font-size: var(--type-label); }
small { font-size: var(--type-small); }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: var(--type-lead); font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.brand-symbol { display: grid; place-items: center; width: 30px; height: 34px; border: 1.5px solid var(--text); border-radius: 6px; }
.brand-symbol .icon { width: 18px; height: 18px; }
.brand-studio { font-weight: 450; margin-left: 5px; }
.topbar { display: flex; align-items: center; gap: 35px; max-width: 1240px; margin: auto; padding: 23px 32px; background: var(--surface); }
.topbar > .row { margin-left: auto; }
.topbar select { width: auto; min-height: 40px; border: 0; background: transparent; }
.marketing-nav { display: flex; gap: 28px; color: var(--muted); font-size: var(--type-small); }
.marketing-nav a:hover { color: var(--text); }
footer { display: flex; gap: 26px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; padding: 30px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--type-small); }
footer > span { margin-right: auto; color: var(--text); font-weight: 600; }
.skip { position: fixed; left: 12px; top: -100px; background: var(--surface); padding: 12px; z-index: 5; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
/* Working area */
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 42px; border-right: 1px solid var(--line); padding: 27px 18px 20px; background: var(--surface); }
.sidebar > .brand { padding: 0 8px; font-size: var(--type-label); }
.sidebar-label, .section-label { display: block; color: var(--muted); font-size: var(--type-small); font-weight: 650; letter-spacing: .08em; }
.sidebar-label { padding: 0 12px; margin-bottom: 12px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 46px; border-radius: 6px; color: var(--muted); }
.sidebar nav a:hover { background: var(--bg); color: var(--text); }
.sidebar nav a[aria-current=page] { background: var(--soft); color: var(--accent); font-weight: 650; }
.sidebar-create { margin-top: 25px; width: 100%; }
.sidebar .bottom { margin-top: auto; display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--type-small); }
.profile { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile > div { min-width: 0; }
.profile strong { font-weight: 600; font-size: var(--type-small); }
.profile p { color: var(--muted); font-size: var(--type-small); margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; flex: 0 0 auto; font-weight: 650; }
.sidebar .bottom > select { background: var(--surface); }
.sidebar .bottom > button { background: transparent; font-weight: 450; }
.sidebar .bottom .row { font-size: var(--type-small); gap: 15px; justify-content: center; }
.workspace { min-width: 0; width: 100%; max-width: 1440px; margin: 0 auto; padding: 35px 40px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 28px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 9px 0 0; max-width: 620px; color: var(--muted); font-size: var(--type-small); }
.notice { background: var(--soft); color: var(--muted); border-radius: 5px; padding: 13px 16px; margin: 16px 0; font-size: var(--type-small); }
.notice.error { color: var(--bad); background: var(--bad-bg); }
.notice.success { color: var(--good); background: var(--good-bg); }
.empty { padding: 85px 30px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 355px; }
.empty h2 { margin-bottom: 12px; font-size: var(--type-section); font-weight: 600; }
.empty p { max-width: 460px; margin: 0 auto 25px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.accounts { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.accounts .panel { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; display: grid; grid-template-columns: 90px minmax(150px, 1fr) minmax(90px, auto) auto; align-items: center; gap: 24px; }
.accounts .panel:last-child { border-bottom: 0; }
.accounts > p.panel { display: block; padding: 50px 24px; text-align: center; }
.platform { font-size: var(--type-small); color: var(--muted); }
.account-name { margin: 0; font-size: var(--type-label); overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 4px 9px; background: var(--bg); color: var(--muted); border-radius: 4px; font-size: var(--type-small); max-width: 100%; overflow-wrap: anywhere; }
.pill.connected, .pill.published { color: var(--good); background: var(--good-bg); }
.pill.failed, .pill.uncertain, .pill.reconnect { color: var(--bad); background: var(--bad-bg); }
.day { margin: 32px 0 12px; font-size: var(--type-label); }
.draft-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.draft-row p { margin: 0; overflow-wrap: anywhere; }
/* Compose and review share form roles and preview sizing. */
#compose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.compose { display: grid; grid-template-columns: minmax(235px, .8fr) minmax(300px, 1.2fr); gap: 36px; align-items: start; }
.compose .preview { position: sticky; top: 24px; }
.preview .panel { margin: 0; border: 0; border-radius: 0; padding: 0; }
.preview video, .review-video { display: block; width: 100%; max-height: 470px; background: var(--media-bg); border-radius: 6px; }
.preview h2, .compose > div > h2 { font-size: var(--type-lead); font-weight: 650; }
.preview .muted { font-size: var(--type-small); }
.preview input[type=file] { background: var(--bg); border-style: dashed; min-height: 60px; padding: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 20px; font-size: var(--type-small); font-weight: 550; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 10px 12px; }
input[type=file] { max-width: 100%; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
textarea { min-height: 100px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; min-height: 44px; font-size: var(--type-small); }
.check input { margin-top: 3px; }
.check:has(input:disabled) { color: var(--muted); opacity: .7; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 20px 0 8px; margin: 16px 0 24px; min-width: 0; }
legend { font-weight: 650; padding: 0 12px 0 0; font-size: var(--type-small); }
.target-fields { padding: 8px 0 0 28px; }
.creator-status { color: var(--muted); font-size: var(--type-small); margin: 0 0 18px; }
.settings > .field:first-child { margin-top: 16px; }
.actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
progress { width: 100%; accent-color: var(--accent); height: 8px; }
.file-meta { font-size: var(--type-small); color: var(--muted); overflow-wrap: anywhere; }
.review-grid { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(300px, 1.3fr); gap: 36px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review-grid .panel { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 20px; margin: 0 0 20px; }
.review-grid .panel h2 { margin: 8px 0 18px; }
.review-grid dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: var(--type-small); }
.review-grid dt { color: var(--muted); }
.review-grid dd { margin: 0; overflow-wrap: anywhere; }
.summary-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.mobile-tools { display: none; }
/* Public pages */
body:has(.marketing), body:has(.legal), body:has(.auth) { background: var(--surface); }
.marketing { max-width: 1240px; margin: auto; padding: 0 32px; }
.landing-hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: 55px; min-height: 640px; align-items: center; padding: 45px 0 65px; }
.platform-labels { display: flex; gap: 22px; margin-bottom: 25px; font-size: var(--type-small); font-weight: 600; }
.platform-labels > span { display: flex; align-items: center; gap: 8px; }
.hero-copy h1 { font-size: var(--type-display); line-height: 1.13; letter-spacing: -.035em; font-weight: 680; white-space: pre-line; margin: 0 0 25px; }
.hero-description { color: var(--muted); font-size: var(--type-lead); line-height: 1.8; max-width: 485px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-actions .button, .hero-actions button { min-height: 50px; padding: 13px 21px; }
.hero-actions > .notice { flex-basis: 100%; margin: 0; font-size: var(--type-small); max-width: 460px; }
.how-link { font-size: var(--type-small); }
.hero-note { font-size: var(--type-small); color: var(--muted); max-width: 440px; margin: 20px 0 0; }
.google-mark { display: inline-grid; place-items: center; font-size: var(--type-label); font-weight: 700; }
.product-scene { position: relative; height: 515px; margin: 0; }
.scene-backdrop { position: absolute; inset: 30px 0 35px 45px; background: var(--scene-bg); border-radius: 180px 180px 22px 22px; }
.video-example { position: absolute; inset: 0 auto auto 0; width: 265px; height: 430px; overflow: hidden; border-radius: 14px; background: var(--media-bg); box-shadow: var(--scene-shadow); }
.video-example img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-type { position: absolute; top: 18px; left: 18px; display: flex; align-items: center; gap: 7px; padding: 6px 10px; color: var(--text); background: var(--surface); border-radius: 4px; font-size: var(--type-small); }
.video-type .icon { width: 13px; height: 13px; }
.video-caption { position: absolute; bottom: 25px; left: 22px; right: 22px; color: var(--on); text-shadow: 0 1px 5px var(--media-bg); }
.video-caption span { display: block; font-size: var(--type-caption); letter-spacing: .12em; margin-bottom: 8px; }
.video-caption strong { font-size: var(--type-page); line-height: 1.2; letter-spacing: -.02em; display: block; max-width: 175px; }
.publish-example { position: absolute; width: 268px; right: 0; bottom: 50px; background: var(--surface); border: 1px solid var(--line); padding: 20px; border-radius: 10px; box-shadow: var(--scene-shadow); }
.example-heading { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--type-small); padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.example-heading .icon { width: 17px; height: 17px; }
.publish-example h3 { font-size: var(--type-body); margin: 15px 0 12px; }
.example-dest { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: var(--type-small); }
.example-dest > span { flex: 1; }
.example-dest small { display: block; font-size: var(--type-small); }
.example-dest > .icon:last-child { width: 15px; height: 15px; color: var(--muted); }
.example-time { display: flex; gap: 8px; align-items: center; padding-top: 15px; margin-top: 8px; border-top: 1px solid var(--line); font-size: var(--type-small); color: var(--muted); }
.example-time .icon { width: 16px; height: 16px; }
.product-scene figcaption { position: absolute; bottom: 0; right: 0; left: 0; text-align: center; font-size: var(--type-small); color: var(--muted); }
.capability-strip { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 25px 0; font-size: var(--type-small); font-weight: 550; }
.capability-strip > span { display: flex; gap: 12px; align-items: center; }
.capability-strip .icon { color: var(--accent); }
.product-story { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; padding: 100px 25px; }
.story-copy h2 { white-space: pre-line; font-size: var(--type-story); letter-spacing: -.025em; line-height: 1.25; font-weight: 650; margin: 16px 0 20px; }
.story-copy p { color: var(--muted); line-height: 1.85; }
.story-copy .text-link { font-size: var(--type-small); margin-top: 8px; }
.story-copy .story-footnote { font-size: var(--type-small); margin-top: 22px; }
.settings-example { background: var(--bg); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.settings-example-head { display: flex; align-items: center; gap: 10px; }
.settings-example-head > span { margin-left: auto; font-size: var(--type-small); color: var(--muted); }
.settings-example dl { margin: 25px 0 0; }
.settings-example dl > div { display: flex; justify-content: space-between; gap: 25px; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--type-small); }
.settings-example dt { color: var(--muted); }
.settings-example dd { margin: 0; text-align: right; }
.settings-example > p { display: flex; align-items: center; gap: 8px; font-size: var(--type-small); color: var(--muted); margin: 22px 0 0; }
.settings-example > p .icon { width: 16px; height: 16px; }
.schedule-story { padding-top: 15px; }
.schedule-picture { position: relative; }
.schedule-picture img { display: block; width: 100%; height: 325px; object-fit: cover; border-radius: var(--radius); }
.schedule-caption { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; margin: -27px 22px 0; position: relative; padding: 17px; color: var(--text); font-size: var(--type-small); }
.landing-faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; padding: 70px 25px 90px; border-top: 1px solid var(--line); }
.landing-faq h2 { font-size: var(--type-story); margin-top: 16px; }
.faq-items details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-items details:first-child { padding-top: 0; }
.faq-items summary { cursor: pointer; font-size: var(--type-label); font-weight: 550; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary:after { content: '+'; font-size: var(--type-section); color: var(--muted); font-weight: 400; }
.faq-items details[open] summary:after { content: '−'; }
.faq-items p { color: var(--muted); margin: 15px 25px 0 0; font-size: var(--type-small); line-height: 1.8; }
.closing-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 40px; margin-bottom: 65px; background: var(--bg); border-radius: var(--radius); }
.closing-cta h2 { font-size: var(--type-page); margin-bottom: 10px; }
.closing-cta p { color: var(--muted); margin: 0; }
.closing-cta .notice { max-width: 310px; margin: 0; font-size: var(--type-small); }
.closing-cta > .notice { display: none; }
.auth { max-width: 520px; min-height: 65vh; margin: 65px auto 0; padding: 25px; }
.auth-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.auth-card h1 { font-size: var(--type-page); margin: 18px 0 15px; }
.auth-card > .google-signin { width: 100%; margin-top: 12px; }
.auth-card .auth-permissions { margin: 25px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--type-small); color: var(--muted); }
.legal { max-width: 770px; padding: 55px 32px 75px; margin: auto; }
.legal h1 { font-size: var(--type-story); }
.legal p { color: var(--muted); line-height: 1.9; }
.legal .eyebrow { color: var(--accent); font-size: var(--type-small); }
.legal .links { display: grid; gap: 15px; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 210px minmax(0,1fr); }
  .sidebar { padding-inline: 14px; }
  .sidebar > .brand { font-size: var(--type-body); gap: 7px; }
  .workspace { padding: 30px 25px; }
  .compose { grid-template-columns: minmax(200px,.8fr) minmax(260px,1.2fr); gap: 25px; }
  .accounts .panel { grid-template-columns: 80px 1fr; gap: 12px 20px; }
  .accounts .panel > .row { grid-column: 2; }
  .landing-hero { gap: 30px; min-height: 610px; }
  .hero-copy h1 { font-size: var(--type-display-compact); }
  .product-scene { height: 465px; }
  .video-example { width: 230px; height: 375px; }
  .publish-example { width: 240px; bottom: 40px; padding: 17px; }
  .product-story { gap: 55px; padding-inline: 0; }
  .story-copy h2 { font-size: var(--type-story); }
}
@media (max-width: 760px) {
  .topbar { padding: 18px 20px; gap: 15px; }
  .topbar .brand { font-size: var(--type-label); gap: 8px; }
  .brand-symbol { width: 25px; height: 29px; }
  .marketing-nav { display: none; }
  .topbar > .row { gap: 6px; }
  .topbar .button { font-size: var(--type-small); padding: 10px 12px; }
  .topbar select { font-size: var(--type-small); padding: 10px 8px; }
  .layout { display: block; }
  .sidebar { position: static; height: auto; gap: 20px; padding: 20px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar > .brand { font-size: var(--type-label); padding: 0; }
  .sidebar-label, .sidebar-create, .sidebar .bottom { display: none; }
  .sidebar nav { display: flex; gap: 10px; justify-content: space-between; overflow-x: auto; }
  .sidebar nav a { gap: 8px; white-space: nowrap; padding: 12px 8px; border-radius: 0; font-size: var(--type-small); }
  .sidebar nav a[aria-current=page] { background: transparent; color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
  .sidebar nav .icon { width: 18px; height: 18px; }
  .workspace { padding: 18px 20px 45px; }
  .mobile-tools { display: flex; margin-bottom: 28px; gap: 14px; align-items: center; }
  .mobile-tools select { width: auto; min-height: 44px; padding: 10px 8px; font-size: var(--type-small); background: transparent; border: 0; }
  .mobile-tools button { font-size: var(--type-small); min-height: 44px; padding: 10px; margin-left: auto; }
  .mobile-tools > a { font-size: var(--type-small); }
  .page-head { align-items: flex-start; flex-wrap: wrap; gap: 18px; }
  .page-head h1 { font-size: var(--type-page); }
  .page-head > .row { width: 100%; }
  .page-head > .row > .primary { margin-left: auto; }
  .compose, .review-grid { grid-template-columns: 1fr; gap: 30px; }
  #compose, .review-grid { padding: 20px; }
  .compose .preview { position: static; }
  .preview video, .review-video { max-height: 340px; }
  .panel { padding: 20px; }
  .empty { padding: 55px 22px; min-height: 320px; }
  .empty h2 { font-size: var(--type-section); }
  .accounts .panel { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .accounts .panel > .row { grid-column: auto; margin-top: 8px; }
  .accounts .pill { width: fit-content; margin: 0; }
  .target-fields { padding-left: 0; }
  .actions button { flex: 1; }
  .marketing { padding: 0 20px; }
  .landing-hero { grid-template-columns: 1fr; gap: 35px; padding: 45px 0 40px; }
  .platform-labels { margin-bottom: 22px; }
  .hero-copy h1 { font-size: var(--type-display-mobile); line-height: 1.15; }
  .hero-description { font-size: var(--type-label); margin-bottom: 25px; }
  .hero-actions { gap: 18px; }
  .hero-note { font-size: var(--type-small); }
  .product-scene { height: 455px; max-width: 475px; width: 100%; margin: 0 auto; }
  .scene-backdrop { inset: 25px 0 35px 15px; }
  .video-example { width: 59%; height: 370px; }
  .publish-example { width: 62%; padding: 16px; bottom: 40px; }
  .example-heading { font-size: var(--type-small); }
  .publish-example h3 { font-size: var(--type-small); }
  .product-scene figcaption { font-size: var(--type-caption); }
  .capability-strip { flex-direction: column; gap: 18px; padding: 25px 0; }
  .product-story { grid-template-columns: 1fr; gap: 30px; padding: 55px 0; }
  .story-copy h2 { font-size: var(--type-page); }
  .settings-example { padding: 21px; }
  .schedule-story .schedule-picture { order: 2; }
  .schedule-picture img { height: 270px; }
  .schedule-caption { font-size: var(--type-small); padding: 14px; margin-inline: 12px; }
  .landing-faq { grid-template-columns: 1fr; gap: 25px; padding: 45px 0 55px; }
  .landing-faq h2 { font-size: var(--type-page); }
  .closing-cta { align-items: flex-start; flex-direction: column; padding: 25px; gap: 22px; margin-bottom: 35px; }
  .closing-cta h2 { font-size: var(--type-page); }
  .closing-cta p { font-size: var(--type-small); }
  footer { padding: 25px 20px; gap: 18px; }
  footer > span { width: 100%; }
  .auth { margin-top: 25px; padding: 20px; }
  .auth-card { padding: 25px; }
  .legal { padding: 35px 20px; }
  .legal h1 { font-size: var(--type-page); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* Phone navigation prioritizes the video and primary action over utility links. */
@media (max-width: 760px) {
  .layout { position: relative; padding-bottom: 76px; }
  .sidebar { gap: 0; padding: 20px; }
  .sidebar > .brand { font-size: var(--type-label); }
  .sidebar nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; gap: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 8px 12px max(8px, env(safe-area-inset-bottom)); }
  .sidebar nav a { display: flex; flex-direction: column; flex: 1; justify-content: center; gap: 4px; padding: 8px 12px; min-height: 58px; font-size: var(--type-small); }
  .sidebar nav a[aria-current=page] { box-shadow: none; font-weight: 700; }
  .sidebar nav a .icon { width: 21px; height: 21px; }
  .mobile-tools { position: absolute; right: 16px; top: 14px; margin: 0; gap: 4px; }
  .mobile-tools select { max-width: 84px; }
  .mobile-menu summary { display: grid; place-items: center; min-height: 44px; min-width: 44px; border: 1px solid var(--line); border-radius: 6px; list-style: none; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu > div { position: absolute; right: 0; top: 52px; z-index: 35; display: grid; gap: 6px; width: 250px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--scene-shadow); }
  .mobile-menu p { margin: 0 0 8px; overflow-wrap: anywhere; font-size: var(--type-small); }
  .mobile-menu a { min-height: 44px; display: flex; align-items: center; font-size: var(--type-small); }
  .mobile-menu button { width: 100%; margin: 0; font-size: var(--type-small); }
  .workspace { padding-top: 25px; padding-bottom: 40px; }
  .platform-labels { gap: 14px; flex-wrap: wrap; font-size: var(--type-small); }
  .platform-labels .icon { width: 17px; height: 17px; }
  .topbar .brand { font-size: var(--type-small); }
  .topbar .brand-symbol { display: none; }
}
@media (max-width: 760px) {
  .product-scene { height: auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; align-items: start; padding-top: 15px; }
  .scene-backdrop { inset: 40px -8px 45px; border-radius: 100px 100px 14px 14px; }
  .video-example { position: relative; inset: auto; width: 100%; height: 325px; border-radius: 10px; }
  .video-type { left: 12px; top: 12px; font-size: var(--type-caption); padding: 6px 8px; }
  .video-caption { left: 14px; right: 14px; bottom: 20px; }
  .video-caption strong { font-size: var(--type-section); }
  .publish-example { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 50px; padding: 14px 12px; }
  .example-heading { gap: 6px; font-size: var(--type-small); }
  .example-dest { gap: 8px; }
  .example-dest > .icon:last-child { display: none; }
  .example-time { align-items: flex-start; font-size: var(--type-caption); }
  .product-scene figcaption { position: relative; grid-column: 1 / -1; margin-top: 7px; }
}

/* Google brand role stays neutral; all other controls consume Studio roles. */
.google-signin { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.google-signin:hover { background: var(--bg); }
#password-auth { display: grid; gap: 16px; }
#password-auth label { display: grid; gap: 7px; }
#password-auth input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
#password-auth [role=alert] { color: var(--bad); }

/* Account data uses lists and shared roles, rather than nested metric cards. */
.data-avatar { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.data-avatar.large { width: 92px; height: 92px; }
.data-profile { display: flex; align-items: flex-start; gap: 28px; padding: 28px 0; }
.data-profile h2 { margin: 0; }
.data-bio, .data-comment-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.data-metrics { display: flex; flex-wrap: wrap; gap: 20px 36px; margin: 24px 0; }
.data-metrics dt { font-size: var(--type-small); }
.data-metrics dd { margin: 4px 0 0; font-size: var(--type-page); font-weight: 650; color: var(--text); }
.data-stamp, .data-footnote { color: var(--muted); font-size: var(--type-small); }
.data-footnote { margin-top: 32px; }
.data-tabs { display: flex; overflow-x: auto; gap: 24px; margin: 24px 0; border-bottom: 1px solid var(--line); }
.data-tabs a { min-width: 44px; display: inline-flex; align-items: center; min-height: 48px; white-space: nowrap; }
.data-tabs a[aria-current=page] { color: var(--accent); font-weight: 650; box-shadow: inset 0 -2px var(--accent); }
.data-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.data-account-select, #data-controls label { display: grid; gap: 6px; font-size: var(--type-small); }
#data-controls { min-width: 0; }
#data-controls select { max-width: 100%; }
.data-content-row { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.data-thumbnail { width: 140px; height: 160px; object-fit: cover; border-radius: var(--radius); background: var(--bg); }
.data-no-image { display: grid; place-items: center; color: var(--muted); background: var(--bg); }
.data-content-copy { min-width: 0; }
.data-content-copy h2 { font-size: var(--type-lead); line-height: 1.45; overflow-wrap: anywhere; margin: 4px 0 8px; font-weight: 600; }
.data-content-copy .data-metrics { gap: 20px; margin: 16px 0; }
.data-content-copy .data-metrics dd { font-size: var(--type-section); }
.data-comment { padding: 24px 0; border-bottom: 1px solid var(--line); }
.data-comment-child { margin-left: 28px; border-bottom: 0; padding-bottom: 0; }
.data-table-wrap { overflow-x: auto; margin: 20px 0; }
.data-table-wrap table { border-collapse: collapse; width: 100%; background: var(--surface); }
.data-table-wrap th, .data-table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-dialog { width: min(540px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: var(--radius); color: var(--text); background: var(--surface); box-shadow: var(--scene-shadow); }
.data-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.data-dialog label { display: grid; gap: 8px; }
.data-dialog textarea { font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.data-dialog blockquote { margin: 20px 0; padding-left: 16px; border-left: 2px solid var(--line); overflow-wrap: anywhere; }
.data-dialog [role=alert] { color: var(--bad); }
.data-dialog .row { justify-content: flex-end; margin-top: 20px; }
@media(max-width: 760px) {
 .sidebar nav a { font-size: var(--type-caption); padding: 8px 4px; min-width: 0; }
 .data-avatar { width: 48px; height: 48px; }
 .data-profile { gap: 16px; }
 .data-avatar.large { width: 64px; height: 64px; }
 .data-content-row { grid-template-columns: 76px minmax(0,1fr); gap: 16px; }
 .data-thumbnail { width: 76px; height: 100px; }
 .data-content-copy .data-metrics { gap: 12px 20px; }
 .data-content-copy .row { align-items: stretch; }
 .data-toolbar { align-items: end; }
 .data-tabs { gap: 20px; }
 .data-account-select { width: 100%; }
 .data-comment-child { margin-left: 16px; }
}

#content .text-link { display: inline-flex; align-items: center; min-height: 44px; }

/* Shared account collections: identity, state and actions stay together in both views. */
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 16px; }
.collection-toolbar > p { margin: 0; color: var(--muted); font-size: var(--type-small); }
.view-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.view-switch button { padding: 8px 12px; min-height: 44px; border: 0; background: transparent; box-shadow: none; color: var(--muted); }
.view-switch button[aria-pressed=true] { color: var(--accent); background: var(--soft); font-weight: 650; }
.view-switch .icon { width: 18px; height: 18px; }
.account-collection { display: grid; gap: 16px; }
.account-object { display: grid; grid-template-columns: minmax(220px,1fr) auto auto; align-items: center; gap: 14px 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.account-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-photo { position: relative; width: 48px; height: 48px; flex: 0 0 48px; }
.account-photo > img, .account-photo > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); object-fit: cover; color: var(--text); font-weight: 600; }
.account-photo > .account-platform { position: absolute; right: -5px; bottom: -4px; width: 24px; height: 24px; border: 2px solid var(--surface); background: var(--surface); }
.account-platform .icon { width: 16px; height: 16px; }
.account-heading { min-width: 0; }
.account-heading h2 { margin: 0 0 5px; font-size: var(--type-label); line-height: 1.4; letter-spacing: normal; overflow-wrap: anywhere; }
.account-heading p { margin: 0; font-size: var(--type-small); color: var(--muted); overflow-wrap: anywhere; }
.account-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; color: var(--bad); }
.account-status > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.account-status.connected { color: var(--good); }
.account-figures { display: flex; gap: 24px; margin: 0; }
.account-figures dt { font-size: var(--type-caption); color: var(--muted); white-space: nowrap; }
.account-figures dd { margin: 4px 0 0; font-weight: 650; font-size: var(--type-section); line-height: 1.2; }
.account-updated { grid-column: 1 / -1; grid-row: 2; font-size: var(--type-caption); color: var(--muted); margin: 0; }
.account-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.account-open { white-space: nowrap; }
.account-options { position: relative; }
.account-options summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.account-options summary::-webkit-details-marker { display: none; }
.account-options[open] summary { background: var(--bg); }
.account-options > div { position: absolute; z-index: 12; top: calc(100% + 8px); right: 0; padding: 6px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--scene-shadow); min-width: 180px; }
.account-options button { white-space: nowrap; border: 0; width: 100%; justify-content: flex-start; }
.account-collection[data-view=grid] { grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); align-items: start; }
.account-collection[data-view=grid] .account-object { grid-template-columns: minmax(0,1fr) auto; gap: 20px 12px; }
.account-collection[data-view=grid] .account-identity { grid-column: 1 / -1; min-height: 72px; }
.account-collection[data-view=grid] .account-figures { grid-column: 1 / -1; justify-content: space-between; }
.account-collection[data-view=grid] .account-updated { grid-row: auto; }
.account-collection[data-view=grid] .account-actions { grid-column: 1 / -1; justify-content: space-between; }
.account-collection[data-view=grid] .account-open { flex: 1 1 180px; }
.account-privacy { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; }
.account-privacy > div { flex: 1; }
.account-privacy h2 { font-size: var(--type-label); margin-bottom: 8px; }
.account-privacy p { font-size: var(--type-small); margin: 0; max-width: 740px; }
.account-privacy > button { flex-shrink: 0; }
.content-caption { margin: 4px 0 12px; }
.content-caption summary { color: var(--accent); cursor: pointer; display: list-item; min-height: 44px; padding: 10px 0; font-size: var(--type-small); }
.content-caption p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--type-body); line-height: 1.6; font-weight: 400; margin: 4px 0 16px; }
.data-content-list[data-view=grid] { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 24px; align-items: start; }
.data-content-list[data-view=grid] .data-content-row { display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.data-content-list[data-view=grid] .data-thumbnail { width: 100%; height: 100%; border-radius: 0; display: block; object-position: center; }
.data-content-list[data-view=grid] .data-no-image { display: grid; }
.data-content-list[data-view=grid] .data-content-copy { padding: 20px; }
.data-content-list[data-view=grid] .data-content-copy .row { gap: 8px; }
.data-content-list[data-view=grid] .data-content-copy .row > * { flex: 1 1 auto; }
@media(max-width:1100px) and (min-width:761px) {
 .account-object { grid-template-columns: minmax(180px,1fr) auto; }
 .account-identity { grid-column: 1 / -1; }
 .account-figures { grid-column: 1; grid-row: 2; }
 .account-actions { grid-column: 2; grid-row: 2; }
 .account-updated { grid-row: 3; }
 .account-collection[data-view=grid] .account-object > * { grid-row: auto; }
}
@media(max-width:760px) {
 .collection-toolbar { margin-top: 20px; }
 .view-switch button { padding: 8px 10px; }
 .view-switch button span { display: none; }
 .account-object { grid-template-columns: minmax(0,1fr) auto; padding: 20px; gap: 18px 12px; }
 .account-identity { grid-column: 1 / -1; }
 .account-figures { grid-column: 1 / -1; justify-content: space-between; gap: 12px; }
 .account-updated { grid-row: auto; }
 .account-actions { grid-column: 1 / -1; }
 .account-open { flex: 1; }
 .account-collection[data-view=grid] { grid-template-columns: minmax(0,1fr); }
 .account-privacy { display: grid; gap: 16px; }
 .account-privacy > button { justify-self: start; }
 .data-content-list[data-view=grid] { grid-template-columns: minmax(0,1fr); }
 .data-toolbar .view-switch { flex-shrink: 0; }
}

/* Shared cover fills the list row; playback loads only after a click. */
.data-cover { position: relative; width: 100%; min-height: 160px; overflow: hidden; border-radius: var(--radius); background: var(--bg); }
.data-cover .data-thumbnail { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.data-play { padding: 0; border: 0; align-self: stretch; cursor: pointer; }
.data-play-symbol { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface); color: var(--ink); border-radius: 50%; }
.data-content-list[data-view=grid] .data-cover { height: 300px; border-radius: 0; display: block; }
.video-dialog { width: min(480px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.video-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.video-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.video-dialog-toolbar button,.video-dialog-toolbar a { min-height: 44px; display: inline-flex; align-items: center; }
.video-player-slot { width: 100%; height: min(65dvh,640px); }
.video-player-slot iframe { width: 100%; height: 100%; border: 0; }

.account-connect-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.account-connect-options .button,.account-connect-options button { min-height: 52px; justify-content: flex-start; }
.account-privacy-disclosure { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.account-privacy-disclosure > summary { min-height: 44px; cursor: pointer; color: var(--muted); padding: 12px 0; }
.account-privacy-disclosure .account-privacy { border: 0; margin-top: 0; padding-top: 12px; }
.account-connect-dialog .page-head { margin-bottom: 12px; }
@media(max-width:480px){.account-connect-options{grid-template-columns:1fr;}}

.brand-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; border-radius: 6px; }

.workspace-head { justify-content: flex-start; gap: 12px; margin-bottom: 12px; }
.workspace-account { width: auto; max-width: min(650px,85%); font-size: var(--type-section); font-weight: 650; background: transparent; border-color: transparent; padding-left: 0; }
.workspace-back,.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 10px; border-radius: 6px; }
.icon-button { border: 1px solid var(--line); background: var(--surface); }
.workspace-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.workspace-navigation .data-tabs { flex: 0 0 auto; max-width: 100%; margin: 0; border: 0; }
.workspace-navigation .data-tabs a { flex: 0 0 auto; }
.workspace-navigation .data-toolbar { flex: 1 1 340px; min-width: 0; margin: 0; padding-bottom: 8px; align-items: end; justify-content: flex-end; gap: 8px; }
.workspace-navigation #data-controls { flex: 1 1 auto; max-width: 520px; }
.workspace-navigation #data-controls label { width: 100%; }
.workspace-navigation #data-controls select { width: 100%; text-overflow: ellipsis; }
/* Instagram comments across posts. */
.comment-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.comment-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.comment-summary strong { font-size: var(--type-label); }
.comment-summary span { font-size: var(--type-small); color: var(--muted); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-item { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 16px; padding: 20px 24px; }
.comment-item + .comment-item { border-top: 1px solid var(--line); }
.comment-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: var(--type-small); font-weight: 650; }
.comment-main { min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.comment-meta strong { font-size: var(--type-body); }
.comment-meta time { font-size: var(--type-caption); color: var(--muted); }
.comment-flag { font-size: var(--type-caption); color: var(--bad); }
.comment-text { margin: 6px 0 12px; font-size: var(--type-body); line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.comment-post { display: flex; align-items: center; gap: 12px; max-width: 460px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.comment-post:hover { border-color: var(--accent); }
.comment-thumb { flex: 0 0 48px; width: 48px; height: 64px; border-radius: 6px; object-fit: cover; background: var(--media-bg); }
.comment-thumb.data-no-image { display: grid; place-items: center; color: var(--muted); }
.comment-post-copy { display: grid; gap: 2px; min-width: 0; }
.comment-post-copy small { font-size: var(--type-caption); color: var(--muted); }
.comment-post-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--type-small); line-height: 1.4; overflow-wrap: anywhere; }
.comment-help { margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); font-size: var(--type-caption); color: var(--muted); }
@media(max-width:760px){.comment-summary,.comment-help{padding-left:16px;padding-right:16px}.comment-item{grid-template-columns:36px minmax(0,1fr);gap:12px;padding:16px}.comment-avatar{width:36px;height:36px}}
#data-result > .data-stamp { margin: 8px 0; font-size: var(--type-caption); }
.content-measure-note { color: var(--muted); font-size: var(--type-small); }
.content-measure-note summary { width: 44px; min-height: 44px; display: grid; place-items: center; cursor: pointer; }
.content-measure-note p { margin: 0 0 8px; }
.data-content-row { padding: 18px 0; gap: 20px; }
.data-content-copy .data-metrics { margin: 10px 0; }
.data-content-list[data-view=grid] .data-content-copy .row > .icon-button { flex: 0 0 44px; }
@media(max-width:760px){.workspace-navigation{flex-wrap:wrap;gap:4px;padding-bottom:8px}.workspace-navigation .data-toolbar{margin-left:auto}.workspace-navigation .data-tabs{width:100%}.workspace-account{font-size:var(--type-lead)}}

.workspace-platform { display: grid; place-items: center; width: 36px; height: 44px; flex-shrink: 0; }
.workspace-platform .icon { width: 26px; height: 26px; }
.content-measure-note { margin: 0 0 8px; }
.content-measure-note summary { display: flex; width: auto; gap: 8px; min-height: 32px; cursor: default; font-size: var(--type-caption); }
.content-measure-note summary .icon { flex-shrink: 0; width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(min-width:1000px){
 .data-content-list[data-view=list] .data-content-row { grid-template-columns: 88px minmax(0,1fr); gap: 20px; padding: 16px 0; }
 .data-content-list[data-view=list] .data-cover { min-height: 128px; }
 .data-content-list[data-view=list] .data-content-copy { display: grid; grid-template-columns: minmax(180px,1fr) auto auto; column-gap: 28px; align-content: center; align-items: center; }
 .data-content-list[data-view=list] .data-content-copy > .platform,.data-content-list[data-view=list] .data-content-copy > h2,.data-content-list[data-view=list] .data-content-copy > .data-stamp,.data-content-list[data-view=list] .data-content-copy > details { grid-column: 1; }
 .data-content-list[data-view=list] .data-content-copy > .data-metrics { grid-column: 2; grid-row: 1 / span 4; margin: 0; gap: 16px; }
 .data-content-list[data-view=list] .data-content-copy > .row { grid-column: 3; grid-row: 1 / span 4; gap: 6px; flex-wrap: nowrap; }
 .data-content-list[data-view=list] .data-content-copy > .data-media-detail { grid-column: 1 / -1; }
 .data-content-list[data-view=list] .data-content-copy h2 { font-size: var(--type-label); margin: 2px 0 4px; }
 .data-content-list[data-view=list] .data-content-copy > .data-stamp { margin: 4px 0 0; font-size: var(--type-caption); }
}
@media(max-width:600px){
 .data-content-list[data-view=list] .data-content-row { grid-template-columns: 80px minmax(0,1fr); gap: 12px; padding: 14px 0; }
 .data-content-list[data-view=list] .data-cover { min-height: 140px; }
 .data-content-copy h2 { font-size: var(--type-label); line-height: 1.4; }
 .data-content-copy .data-metrics { gap: 8px 14px; margin: 8px 0; }
 .data-content-copy .data-metrics dt { font-size: var(--type-caption); }
 .data-content-copy .data-metrics dd { font-size: var(--type-lead); }
 .data-content-copy .row { gap: 6px; }
 .content-measure-note summary { align-items: flex-start; line-height: 1.5; }
}

.auth { margin-top: 20px; min-height: 0; padding-top: 12px; padding-bottom: 24px; }
.auth-card { padding: 28px; }
.auth-card h1 { margin: 12px 0; }
#password-auth { gap: 12px; }
#password-auth > p { margin: 0; }
#password-auth [role=alert]:empty { display: none; }
.auth-card > p { margin: 12px 0; }
.auth-card .auth-permissions { margin-top: 18px; padding-top: 14px; }
@media(max-width:600px){.auth{margin-top:8px;padding:12px 16px}.auth-card{padding:22px}}

.sidebar .bottom { padding-top: 8px; gap: 0; }
.profile-menu { position: relative; }
.profile-menu > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 48px; padding: 4px 0; list-style: none; }
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu .avatar { width: 30px; height: 30px; font-size: var(--type-small); }
.profile-menu-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.profile-menu-content { position: absolute; bottom: calc(100% + 8px); left: 0; width: 240px; padding: 16px; display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--scene-shadow); z-index: 10; }
.profile-menu-content > p { margin: 0; overflow-wrap: anywhere; font-size: var(--type-small); }
.profile-menu-content .row { gap: 12px; font-size: var(--type-caption); }
.settings-profile { max-width: 640px; }
.settings-profile label { display: grid; gap: 8px; max-width: 240px; }

.settings-layout { max-width: 1040px; }
.settings-section { padding: 8px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.settings-section > h2 { font-size: var(--type-lead); margin: 0 0 8px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 16px 0; }
.setting-row h3 { font-size: var(--type-body); font-weight: 600; margin: 0; }
.setting-row p { font-size: var(--type-small); margin: 4px 0 0; max-width: 600px; }
.setting-control { flex-shrink: 0; }
.setting-control select { min-width: 180px; }
.profile-menu-content { width: 236px; padding: 8px; gap: 2px; }
.profile-menu-content > p { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.profile-menu-content .profile-menu-item { display: flex; align-items: center; gap: 10px; justify-content: flex-start; width: 100%; min-height: 44px; border: 0; background: transparent; padding: 10px; font-size: var(--type-small); font-weight: 500; }
.profile-menu-item:hover { background: var(--soft); color: var(--accent); }
.profile-menu-content > .row { padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
@media(max-width:700px){.setting-row{align-items:flex-start;flex-direction:column;gap:12px}.setting-control{max-width:100%}.setting-control .row{flex-wrap:wrap}.settings-section{padding-bottom:16px}}

/* Multi-video queue and API key settings. */
.batch-upload { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dropzone { position: relative; display: grid; place-items: center; gap: 7px; min-height: 190px; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text); text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--accent); background: var(--soft); }
.dropzone strong { font-size: var(--type-lead); }
.dropzone > span:not(.dropzone-mark), .dropzone small { color: var(--muted); }
.dropzone-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: 25px; line-height: 1; }
.dropzone-input { position: absolute; width: 1px !important; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.batch-library { justify-content: flex-end; align-items: end; margin-top: 16px; }
.batch-library .field { min-width: min(440px,100%); margin-bottom: 0; }
.media-stage { --ar: 1.7778; --stage-h: 440px; width: min(100%, calc(var(--stage-h) * var(--ar))); aspect-ratio: var(--ar); background: var(--media-bg); border-radius: var(--radius); overflow: hidden; }
.media-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--media-bg); }
.existing-preview { display: grid; grid-template-columns: minmax(0,440px) minmax(0,1fr); align-items: start; gap: 20px; margin: 20px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.existing-preview-meta { display: grid; gap: 4px; min-width: 0; align-content: start; }
.existing-preview-meta strong { overflow-wrap: anywhere; font-size: var(--type-lead); }
.existing-preview-meta small { color: var(--muted); font-size: var(--type-small); }
.batch-queue { margin-top: 24px; }
.batch-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.batch-queue-head h2 { margin: 0; font-size: var(--type-lead); }
.batch-queue-head h2 span { color: var(--muted); font-size: var(--type-small); font-weight: 500; }
.batch-file-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.batch-file { display: grid; grid-template-columns: 240px minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.batch-file .media-stage { --stage-h: 200px; }
.batch-file-type { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: var(--type-caption); font-weight: 700; }
.batch-file-main { display: grid; gap: 3px; min-width: 0; }
.batch-file-main strong { overflow-wrap: anywhere; }
.batch-file-main small, .batch-file-state { color: var(--muted); font-size: var(--type-small); }
.batch-file-error { margin: 0; color: var(--bad); font-size: var(--type-small); }
.batch-file-actions { display: flex; gap: 8px; }
.batch-file-actions button { min-height: 40px; padding: 8px 12px; }
.batch-empty { margin: 0; padding: 25px 0; color: var(--muted); border-top: 1px solid var(--line); }
.batch-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; }
.batch-summary-row { display: grid; grid-template-columns: minmax(200px,.7fr) minmax(0,1.3fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.batch-summary-row:last-child { border-bottom: 0; }
.batch-summary-row > div { display: grid; align-content: start; gap: 5px; }
.batch-summary-row .text-link { justify-self: start; min-height: 44px; }
.batch-summary-row p { margin: 0; }
.batch-summary-row ul { margin: 0; padding-left: 20px; overflow-wrap: anywhere; }
.batch-confirm-consent { margin: 18px 0 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.password-form { display: grid; gap: 12px; max-width: 420px; margin: 14px 0 0; }
.password-form .field { margin: 0; }
.password-form p { margin: 0; }
.password-form [role=alert]:empty { display: none; }
.password-form [role=alert] { color: var(--bad); font-size: var(--type-small); }
.password-form button { justify-self: start; }
#security h3 { font-size: var(--type-body); font-weight: 600; margin: 8px 0 0; }
#security > p { font-size: var(--type-small); margin: 4px 0 0; max-width: 600px; }
.api-key-form { display: flex; align-items: end; gap: 12px; max-width: 680px; margin: 18px 0; }
.api-key-form .field { flex: 1; margin: 0; }
.api-key-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.api-key-row p { margin: 4px 0 0; font-size: var(--type-small); overflow-wrap: anywhere; }
.api-key-row code, .api-key-secret code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.api-key-secret { display: grid; justify-items: start; gap: 12px; margin: 18px 0; padding: 16px; background: var(--good-bg); border: 1px solid var(--line); border-radius: var(--radius); }
.api-key-secret p { margin: 0; color: var(--good); }
.api-key-secret code { user-select: all; }
@media(max-width:760px){
  .batch-queue-head{align-items:stretch;flex-direction:column}.batch-queue-head .row{width:100%}.batch-queue-head .row button{flex:1}
  .batch-file{grid-template-columns:minmax(0,1fr);align-items:start}.batch-file-state,.batch-file-actions{grid-column:1}
  .batch-summary-row{grid-template-columns:1fr;gap:10px}.batch-library{align-items:stretch}.batch-library .field{width:100%}.batch-library button{width:100%}
  .existing-preview{grid-template-columns:minmax(0,1fr)}
  .api-key-form{align-items:stretch;flex-direction:column}.api-key-row{align-items:flex-start;flex-direction:column}
}

/* Analytics: headline stats and detail rows. */
.insight-hero { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 16px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.insight-stat { padding: 24px 28px; min-width: 0; }
.insight-stat + .insight-stat { border-left: 1px solid var(--line); }
.insight-stat dt { font-size: var(--type-small); font-weight: 600; color: var(--muted); }
.insight-stat dd { margin: 10px 0 0; font-size: 40px; font-weight: 650; line-height: 1.05; font-variant-numeric: tabular-nums; }
.insight-hint { display: block; margin: 8px 0 0; font-size: var(--type-caption); font-weight: 400; line-height: 1.5; color: var(--muted); max-width: 36ch; }
.insight-columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.insight-panel { padding: 8px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.insight-panel h3 { margin: 16px 0 4px; font-size: var(--type-small); font-weight: 650; color: var(--muted); letter-spacing: normal; text-transform: none; }
.insight-rows { margin: 0; }
.insight-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.insight-rows > div:first-child { border-top: 0; }
.insight-rows dt { font-size: var(--type-body); min-width: 0; overflow-wrap: anywhere; }
.insight-rows dt .insight-hint { margin-top: 4px; }
.insight-rows dd { margin: 0; font-size: var(--type-lead); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media(max-width:760px){.insight-hero{grid-template-columns:minmax(0,1fr)}.insight-stat{padding:20px}.insight-stat + .insight-stat{border-left:0;border-top:1px solid var(--line)}.insight-stat dd{font-size:34px}.insight-panel{padding:4px 20px}}

/* Profile card and stats. */
.profile-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 24px; margin-top: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.profile-avatar.data-no-image { display: grid; place-items: center; color: var(--muted); }
.profile-copy { min-width: 0; }
.profile-copy h2 { margin: 2px 0 0; font-size: var(--type-section); line-height: 1.25; overflow-wrap: anywhere; }
.profile-handle { margin: 4px 0 0; font-size: var(--type-body); color: var(--muted); overflow-wrap: anywhere; }
.profile-bio { margin: 14px 0 0; max-width: 62ch; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.profile-stats { grid-template-columns: repeat(var(--cols,3),minmax(0,1fr)); }
.profile-stats .insight-stat dd { font-size: 34px; }
@media(max-width:760px){.profile-card{grid-template-columns:auto minmax(0,1fr);gap:16px;padding:20px}.profile-avatar{width:64px;height:64px}.profile-link{grid-column:1 / -1;justify-content:center}.profile-stats{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr))}.profile-stats .insight-stat{padding:16px 14px}.profile-stats .insight-stat + .insight-stat{border-left:1px solid var(--line);border-top:0}.profile-stats .insight-stat dt{font-size:var(--type-caption)}.profile-stats .insight-stat dd{font-size:24px}}
.profile-stats .insight-stat { display: flex; flex-direction: column; }
.profile-stats .insight-stat dd { margin-top: auto; padding-top: 10px; }

/* Mobile: keep the refresh button on the tabs row when there are no extra controls. */
@media(max-width:760px){
 .workspace-navigation:has(#data-controls:empty){flex-wrap:nowrap;align-items:center;gap:8px}
 .workspace-navigation:has(#data-controls:empty) .data-tabs{flex:1 1 0;width:auto;min-width:0;gap:12px;font-size:var(--type-small)}
 .workspace-navigation:has(#data-controls:empty) .data-toolbar{flex:0 0 auto;margin-left:0;padding-bottom:0}
}

/* Analytics breakdown bars and daily chart. */
.bar-rows > div { display: grid; grid-template-columns: minmax(0,1fr) auto; row-gap: 8px; }
.bar-rows dd small { margin-left: 10px; font-size: var(--type-caption); font-weight: 400; color: var(--muted); }
.bar-rows .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--bg); position: relative; overflow: hidden; }
.bar-rows .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 2px; background: var(--accent); }
.daily-panel { grid-column: 1 / -1; padding-bottom: 20px; margin-top: 16px; }
.daily-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-top: 12px; }
.daily-chart span { flex: 1 1 0; min-width: 2px; height: var(--h); border-radius: 2px 2px 0 0; background: var(--accent); opacity: .85; }
.daily-chart span:hover { opacity: 1; }
.daily-axis { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: var(--type-caption); color: var(--muted); }
.daily-table { margin-top: 16px; }
.daily-table summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: var(--type-small); color: var(--accent); }

/* Posts: sorting and loading. */
.content-controls { display: flex; align-items: end; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.workspace-navigation #data-controls:has(.content-controls) { max-width: none; }
.workspace-navigation #data-controls .sort-control { display: grid; gap: 6px; width: auto; min-width: 200px; }
.list-summary { margin: 0 0 12px; font-size: var(--type-small); color: var(--muted); }
.load-more { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
@media(max-width:760px){.content-controls{justify-content:stretch}.workspace-navigation #data-controls .sort-control{flex:1 1 100%}}

.daily-chart { border-bottom: 1px solid var(--line); }
.insight-columns { margin-bottom: 8px; }
.data-history-note { margin: 24px 0 0; font-size: var(--type-small); color: var(--muted); }
/* Posts toolbar: sort, view and refresh on one row under the tabs. */
.workspace-navigation:has(.content-controls) .data-toolbar { flex: 1 1 100%; justify-content: flex-end; padding: 12px 0; align-items: end; }
.workspace-navigation:has(.content-controls) #data-controls { flex: 0 1 auto; }
.content-controls { flex-wrap: nowrap; }
@media(max-width:760px){.workspace-navigation:has(.content-controls) .data-toolbar{justify-content:stretch}.content-controls{flex-wrap:wrap}}
/* Posts toolbar v2: sort on the left, view switch and refresh on the right, one aligned row. */
.workspace-navigation:has(.content-controls) .data-toolbar { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px 0; }
.workspace-navigation:has(.content-controls) #data-controls, .workspace-navigation:has(.content-controls) .content-controls { display: contents; }
.workspace-navigation #data-controls .sort-control { display: flex; flex-direction: row; align-items: center; gap: 10px; width: auto; min-width: 0; margin-right: auto; }
.sort-control span { font-size: var(--type-small); color: var(--muted); white-space: nowrap; }
.sort-control select { min-width: 220px; min-height: 44px; }
@media(max-width:760px){.workspace-navigation #data-controls .sort-control{flex:1 1 100%;margin-right:0}.sort-control select{flex:1 1 auto;min-width:0}}

/* Updated-at chip next to the account name. */
.workspace-head { flex-wrap: wrap; row-gap: 8px; }
.workspace-updated { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: var(--type-caption); color: var(--muted); white-space: nowrap; }
.workspace-updated:empty { display: none; }
.workspace-updated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
@media(max-width:760px){.workspace-updated{margin-left:48px}}

/* Publication cards: playable preview, clear hierarchy, status on the right. */
.job { display: grid; grid-template-columns: 132px minmax(0,1fr) auto; gap: 20px; align-items: center; margin-bottom: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.job-media { position: relative; display: block; width: 132px; aspect-ratio: 16/10; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: var(--media-bg); cursor: pointer; }
.job-media video, .job-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.job-media-empty { display: grid; place-items: center; padding: 8px; color: var(--muted); font-size: var(--type-caption); text-align: center; background: var(--bg); cursor: default; }
.job-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(21 35 43 / 25%); color: #fff; transition: background .15s; }
.job-play .icon { width: 28px; height: 28px; padding: 7px; box-sizing: content-box; border-radius: 50%; background: rgb(21 35 43 / 70%); }
.job-media:hover .job-play { background: rgb(21 35 43 / 5%); }
.job-media:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.job-main { min-width: 0; }
.job-platform { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--type-small); color: var(--muted); }
.job-platform .icon { width: 16px; height: 16px; flex: 0 0 16px; }
.job h3 { margin: 0; font-size: var(--type-label); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.job-time { margin: 6px 0 0; font-size: var(--type-small); color: var(--muted); }
.job-privacy::before { content: " · "; }
.job-state { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.job-note { margin: 0; font-size: var(--type-small); line-height: 1.5; color: var(--muted); }
.job-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.job-actions button, .job-actions .button { min-height: 40px; padding: 8px 14px; font-size: var(--type-small); }
.pill.processing, .pill.queued { color: var(--accent); background: var(--soft); }
.pill.sent_to_inbox { color: var(--good); background: var(--good-bg); }
.pill { font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.video-dialog-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--type-body); }
.video-dialog-player { display: block; width: 100%; max-height: min(70dvh,640px); background: var(--media-bg); border-radius: 6px; }
@media(max-width:900px){.job{grid-template-columns:112px minmax(0,1fr)}.job-media{width:112px}.job-state{grid-column:1 / -1}}
@media(max-width:480px){.job{grid-template-columns:minmax(0,1fr);gap:14px}.job-media{width:100%;aspect-ratio:16/9}}

/* Bildirimler, Telegram kartı, yan menü rozeti */
.nav-badge { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: var(--on); font-size: var(--type-small); font-weight: 650; line-height: 1.4; text-align: center; }
.nav-badge[hidden] { display: none; }
.telegram-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.telegram-card h2 { margin: 0 0 4px; font-size: var(--type-label); }
.telegram-card p { margin: 4px 0; }
.notification-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notification { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.notification[data-read="false"] { border-left: 3px solid var(--accent); }
.notification p { margin: 2px 0 0; font-size: var(--type-small); }
.notification .pill { width: fit-content; }
@media (max-width: 760px) { .notification { grid-template-columns: 1fr; gap: 8px; } }

/* Takvim */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-toolbar .row { display: flex; gap: 8px; }
.cal-toolbar button { min-height: 40px; }
.cal-title { margin: 0; font-size: var(--type-label); font-weight: 650; text-transform: capitalize; }
.flip { transform: scaleX(-1); }
.cal-grid { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.cal-head, .cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head > div { padding: 8px; font-size: var(--type-small); color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 104px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-row > .cal-cell:last-child { border-right: 0; }
.cal-grid[data-mode=week] .cal-cell { min-height: 260px; }
.cal-cell.is-outside { background: var(--bg); color: var(--muted); }
.cal-cell.is-selected { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-cell.is-drop { background: var(--soft); }
.cal-day { align-self: flex-start; min-width: 32px; min-height: 32px; padding: 4px 8px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; }
.cal-cell.is-today .cal-day { background: var(--accent); color: var(--on); }
.cal-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.cal-chip { display: flex; align-items: center; gap: 5px; width: 100%; min-height: 28px; padding: 3px 6px; border: 1px solid var(--accent); border-radius: 4px; background: var(--surface); color: var(--accent); font-size: var(--type-small); cursor: pointer; }
.cal-chip[draggable=true] { cursor: grab; }
.cal-chip .icon { width: 14px; height: 14px; flex: none; }
.cal-chip[data-status=published], .cal-chip[data-status=sent_to_inbox] { background: var(--good-bg); border-color: transparent; color: var(--good); }
.cal-chip[data-status=failed], .cal-chip[data-status=uncertain], .cal-chip[data-status=reconnect] { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.cal-chip[data-status=cancelled] { background: var(--bg); border-color: transparent; color: var(--muted); text-decoration: line-through; }
.cal-more { align-self: flex-start; padding: 2px 6px; border: 0; background: transparent; color: var(--muted); font-size: var(--type-small); min-height: 28px; }
.cal-hint { margin: 10px 0 24px; }
.cal-title.is-plain { text-transform: none; }
.cal-toolbar .view-switch button span { display: inline; }
.cal-agenda { display: grid; gap: 20px; margin-bottom: 24px; }
.cal-agenda-day h3 { margin: 0 0 8px; font-size: var(--type-label); font-weight: 650; text-transform: capitalize; scroll-margin-top: 12px; }
.cal-agenda-day h3:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.cal-agenda-day.is-today h3 { color: var(--accent); }
.cal-agenda-count { color: var(--muted); font-weight: 400; }
.cal-agenda-items { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.cal-agenda-item + .cal-agenda-item { border-top: 1px solid var(--line); }
.cal-agenda-row { display: grid; grid-template-columns: 64px minmax(120px, 200px) minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; text-align: left; }
.cal-agenda-row:hover, .cal-agenda-row[aria-expanded=true] { background: var(--soft); }
.cal-agenda-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-agenda-time { font-variant-numeric: tabular-nums; font-weight: 650; }
.cal-agenda-acct { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); }
.cal-agenda-acct .icon { width: 16px; height: 16px; }
.cal-agenda-acct span, .cal-agenda-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-agenda-tags { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cal-format { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--type-small); color: var(--muted); }
.cal-agenda-detail { padding: 8px 12px 12px; border-top: 1px solid var(--line); background: var(--bg); }
.cal-past { justify-self: start; min-height: 40px; }
@media (max-width: 760px) { .cal-agenda-row { grid-template-columns: 56px minmax(0, 1fr); } .cal-agenda-acct { grid-column: 2; } .cal-agenda-title { grid-column: 2; white-space: normal; } .cal-agenda-tags { grid-column: 2; justify-content: flex-start; } .cal-agenda-time { grid-row: 1 / span 3; align-self: start; } }

.cal-day-list h2 { margin: 0 0 12px; font-size: var(--type-label); text-transform: capitalize; }
.reschedule { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: -4px 0 14px; padding: 0 16px; }
.reschedule label { display: grid; gap: 4px; font-size: var(--type-small); }
@media (max-width: 760px) { .cal-cell { min-height: 64px; padding: 3px; } .cal-chip span { display: none; } .cal-chip { justify-content: center; } .cal-grid[data-mode=week] .cal-cell { min-height: 120px; } }

/* Kapak seçimi */
.cover-box { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cover-box h3 { margin: 0; font-size: var(--type-label); }
.preview .cover-box .cover-frame { width: 100%; height: 180px; max-height: 180px; border-radius: 6px; background: #000; object-fit: contain; pointer-events: none; }
.cover-box input[type=range] { width: 100%; }
.cover-image { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cover-image img { max-width: 160px; max-height: 120px; border-radius: 6px; border: 1px solid var(--line); object-fit: cover; }

/* Şablonlar */
.templates { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.templates > summary { padding: 12px 14px; min-height: 44px; cursor: pointer; font-weight: 600; }
.template-body { display: grid; gap: 12px; padding: 0 14px 14px; }
.template-body p { margin: 0; }
.template-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.template-row .field { flex: 1 1 180px; }

/* Yayın sonrası performans */
.job-performance { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.job-performance dl { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.job-performance dt { font-size: var(--type-small); color: var(--muted); }
.job-performance dd { margin: 0; font-weight: 650; }
.job-performance .job-note { margin: 0; }
.job-performance button { min-height: 40px; padding: 8px 14px; font-size: var(--type-small); margin-left: auto; }

/* Yayın süzgeci ve özet */
.job-filter { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(120px, 1fr)); gap: 12px; align-items: end; margin-bottom: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.job-filter .field { margin: 0; }
.filter-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--type-small); color: var(--muted); }
.filter-meta button { min-height: 36px; padding: 6px 12px; font-size: var(--type-small); }
.filter-meta button[hidden] { display: none; }
.stat-grid { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { display: grid; gap: 4px; padding: 16px; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.stat:hover { border-color: var(--accent); }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: var(--type-small); color: var(--muted); }
.stat[data-tone=good] .stat-value { color: var(--good); }
.stat[data-tone=bad] .stat-value { color: var(--bad); }
.overview-section { margin-bottom: 28px; }
.overview-section .page-head { margin-bottom: 12px; }
.overview-section h2 { margin: 0; font-size: var(--type-label); }
@media (max-width: 900px) { .job-filter { grid-template-columns: 1fr 1fr; } .job-filter .filter-search { grid-column: 1 / -1; } }

/* Post insights: best time to post and side-by-side comparison. */
.pi-panel { margin: 16px 0 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pi-panel header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pi-panel h2 { margin: 0; font-size: 17px; font-weight: 650; }
.pi-count { font-size: var(--type-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.pi-lead { margin: 14px 0 0; line-height: 1.5; }
.pi-lead span { display: block; font-size: var(--type-small); color: var(--muted); }
.pi-empty { margin: 12px 0 0; color: var(--muted); line-height: 1.5; max-width: 62ch; }
.pi-note { margin: 14px 0 0; font-size: var(--type-caption); color: var(--muted); line-height: 1.5; max-width: 70ch; }
.pi-bars { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.pi-bars li { display: grid; grid-template-columns: 96px minmax(0,1fr) 84px; align-items: center; gap: 12px; font-size: var(--type-small); font-variant-numeric: tabular-nums; }
.pi-bars .bar { display: block; height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.pi-bars .bar i { display: block; height: 100%; background: var(--bar); border-radius: 999px; }
.pi-bars .is-best .bar i { background: var(--accent); }
.pi-bars .is-best .bar-label, .pi-bars .is-best .bar-value { font-weight: 650; }
.pi-bars .bar-value { text-align: right; }
.pi-bars .bar-value small { margin-left: 6px; color: var(--muted); font-weight: 400; }
.compare-heads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 14px 0 0; }
.compare-heads p { margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.compare-heads span { display: block; font-size: var(--type-caption); color: var(--muted); }
.compare-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.compare-table th:first-child { text-align: left; font-weight: 600; }
.compare-table thead th { font-size: var(--type-caption); font-weight: 600; color: var(--muted); }
.compare-table .is-win { font-weight: 650; color: var(--good); }
.compare-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--type-small); color: var(--muted); cursor: pointer; }
.compare-pick input { width: 20px; height: 20px; accent-color: var(--accent); }
.compare-list ul { list-style: none; margin: 8px 0 0; padding: 0; }
.compare-list li + li { border-top: 1px solid var(--line); }
.compare-list .compare-pick { display: flex; width: 100%; color: var(--text, inherit); }
.compare-list .compare-pick span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-list .compare-pick small { color: var(--muted); }
@media (max-width: 640px) {
  .pi-panel { padding: 18px 16px; }
  .pi-bars li { grid-template-columns: 104px minmax(0,1fr) 64px; gap: 8px; font-size: 13px; }
  .compare-heads { grid-template-columns: 1fr; gap: 8px; }
}
.pi-bars .is-thin .bar i { opacity: .45; }
.pi-bars .bar-label { white-space: nowrap; }

/* File preparation workspace: existing Studio typography, surface and action roles. */
.metadata-back { margin-bottom: 14px; font-size: var(--type-small); }
.metadata-workspace { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: start; gap: 36px; max-width: 1160px; }
.metadata-main { min-width: 0; }
.metadata-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 24px; min-height: 280px; border: 1px dashed var(--muted); border-radius: var(--radius); background: var(--surface); text-align: center; }
.metadata-drop h2 { margin: 0; font-size: var(--type-section); }
.metadata-drop p { margin: 0; color: var(--muted); max-width: 440px; }
.metadata-drop small { font-size: var(--type-caption); }
.metadata-drop.is-dragging { border: 2px solid var(--accent); background: var(--soft); }
.metadata-upload-icon { color: var(--accent); }
.metadata-upload-icon .icon { width: 32px; height: 32px; }
.metadata-file-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.metadata-preset { padding: 22px 0; }
.metadata-preset > div { display: flex; align-items: center; gap: 8px; }
.metadata-preset .icon { color: var(--good); }
.metadata-preset p { margin: 8px 0; font-size: var(--type-small); }
.metadata-preset > span { color: var(--muted); font-size: var(--type-caption); }
.metadata-advanced, .metadata-disclosure { border-top: 1px solid var(--line); padding-top: 16px; }
.metadata-advanced summary, .metadata-disclosure summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-size: var(--type-small); font-weight: 600; }
.metadata-advanced p, .metadata-disclosure p { font-size: var(--type-small); }
.metadata-options { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 12px; }
.metadata-options .field { flex: 1; min-width: 180px; }
.metadata-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: var(--type-small); }
.metadata-check input { width: 20px; height: 20px; flex: 0 0 20px; }
.metadata-server { margin: 20px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.metadata-server h2 { font-size: var(--type-label); }
.metadata-server p { font-size: var(--type-small); }
.metadata-queue-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 28px; }
.metadata-queue-head h2 { font-size: var(--type-lead); margin: 0; }
.metadata-queue-head span { font-size: var(--type-caption); }
.metadata-results { list-style: none; padding: 0; margin: 16px 0 0; }
.metadata-empty { padding: 24px 0; border-top: 1px solid var(--line); font-size: var(--type-small); }
.metadata-empty p { margin: 5px 0 0; color: var(--muted); }
.metadata-result { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.metadata-thumbnail { position: relative; display: grid; place-items: center; width: 68px; height: 76px; flex: 0 0 68px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.metadata-thumbnail img, .metadata-thumbnail video { display: block; width: 100%; height: 100%; object-fit: contain; }
.metadata-thumbnail video + .icon { position: absolute; color: var(--on); background: var(--text); border-radius: 50%; padding: 3px; width: 26px; height: 26px; }
.metadata-details { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.metadata-details strong { font-size: var(--type-small); }
.metadata-details p { font-size: var(--type-caption); margin: 4px 0 0; }
.metadata-status { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.metadata-status .icon { width: 15px; height: 15px; }
.metadata-result[data-state=error] .metadata-status { color: var(--bad); }
.metadata-result[data-state=done] .metadata-status, .metadata-verified { color: var(--good); }
.metadata-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.metadata-actions { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.metadata-actions p { margin: 8px 0 0; font-size: var(--type-caption); }
.metadata-guide { padding-left: 28px; border-left: 1px solid var(--line); }
.metadata-guide h2 { font-size: var(--type-lead); }
.metadata-guide dl { margin: 24px 0; font-size: var(--type-small); }
.metadata-guide dt { font-weight: 650; margin-top: 20px; }
.metadata-guide dd { margin: 7px 0 0; color: var(--muted); }
.metadata-platform-note { padding-top: 20px; border-top: 1px solid var(--line); margin-bottom: 20px; }
.metadata-platform-note h3 { font-size: var(--type-small); }
.metadata-platform-note p { color: var(--muted); font-size: var(--type-small); margin: 0; }
@media (max-width: 1100px) { .metadata-workspace { grid-template-columns: minmax(0,1fr); gap: 32px; } .metadata-guide { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .metadata-drop { padding: 26px 18px; } .metadata-result { flex-wrap: wrap; } .metadata-row-actions { width: 100%; justify-content: end; } .metadata-actions { flex-wrap: wrap; } .metadata-options .field { min-width: 100%; } }
@media (max-width: 760px) { .sidebar nav a { flex-shrink: 0; min-width: 84px; } }

/* Tools directory: a single real utility with an illustrative file preview. */
.tools-heading { margin-bottom: 32px; }
.tools-feature { max-width: 1120px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tools-feature-main { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; gap: 40px; padding: 36px; }
.tools-category { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--type-small); }
.tools-category .icon { width: 18px; height: 18px; }
.tools-feature-copy h2 { font-size: var(--type-story); line-height: 1.2; letter-spacing: -.025em; margin: 18px 0 16px; }
.tools-description { color: var(--muted); max-width: 480px; margin-bottom: 24px; }
.tools-benefits { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; font-size: var(--type-small); }
.tools-benefits li { display: flex; align-items: start; gap: 9px; }
.tools-benefits .icon { color: var(--good); width: 18px; height: 18px; margin-top: 2px; }
.tools-local-note { max-width: 390px; font-size: var(--type-caption); color: var(--muted); margin: 14px 0 0; }
.tools-visual { padding: 22px; background: var(--bg); border-radius: var(--radius); }
.tools-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 5px; background: var(--line); }
.tools-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tools-file-label { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: var(--surface); color: var(--text); border-radius: 4px; font-size: var(--type-caption); }
.tools-file-label .icon { width: 15px; height: 15px; }
.tools-file-summary { padding-top: 18px; }
.tools-file-summary > div { display: flex; align-items: center; gap: 8px; font-size: var(--type-small); font-weight: 600; }
.tools-file-summary .icon { color: var(--good); width: 18px; height: 18px; }
.tools-file-summary p { font-size: var(--type-caption); color: var(--muted); margin: 5px 0 0 26px; }
.tools-format-list { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-top: 1px solid var(--line); padding: 22px 36px; gap: 24px; }
.tools-format-list > div { display: grid; gap: 4px; font-size: var(--type-small); }
.tools-format-list strong { font-weight: 600; }
.tools-format-list span { color: var(--muted); font-size: var(--type-caption); }
.tools-footer-note { display: flex; align-items: start; gap: 8px; font-size: var(--type-small); color: var(--muted); margin: 20px 0 0; max-width: 1120px; }
.tools-footer-note .icon { width: 17px; height: 17px; margin-top: 3px; }
@media (max-width: 1100px) { .tools-feature-main { gap: 24px; padding: 28px; } .tools-feature-copy h2 { font-size: var(--type-page); } .tools-visual { padding: 16px; } }
@media (max-width: 760px) { .tools-feature-main { grid-template-columns: minmax(0,1fr); padding: 24px; } .tools-visual { max-width: 440px; width: 100%; } .tools-format-list { padding: 20px 24px; grid-template-columns: minmax(0,1fr); gap: 16px; } .tools-format-list > div { grid-template-columns: 1fr 1.4fr; gap: 12px; } .tools-feature-copy h2 { font-size: var(--type-page); } }

/* API docs */
.api-doc { container-type: inline-size; max-width: 1240px; }
.api-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px 32px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.api-head h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.api-head p { margin: 0; max-width: 62ch; color: var(--muted); }
.api-badge { padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: var(--type-caption); font-weight: 650; }
.api-links { display: flex; gap: 8px; flex-wrap: wrap; }
.api-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; }
.api-nav { display: none; }
.api-nav-title { padding: 0 12px 8px; color: var(--muted); font-size: var(--type-caption); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.api-nav a { padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: var(--type-small); }
.api-nav a:hover { color: var(--text); }
.api-nav a[aria-current] { border-left-color: var(--accent); color: var(--text); font-weight: 600; }
.api-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.api-copy-col h2 { margin: 0 0 12px; font-size: var(--type-section); }
.api-copy-col h3 { margin: 22px 0 6px; font-size: var(--type-body); font-weight: 650; }
.api-copy-col p { margin: 0 0 12px; }
.api-copy-col ul { margin: 0; padding-left: 20px; }
.api-demo-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.api-demo-col:empty { display: none; }
.api-base { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.api-base span { color: var(--muted); font-size: var(--type-small); }
.api-base code { overflow-wrap: anywhere; }
.api-code { background: var(--media-bg); color: #e6edf2; border-radius: var(--radius); overflow: hidden; }
.api-code-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.api-label { color: #9fb0bd; font-size: var(--type-caption); }
.api-method { padding: 2px 8px; border-radius: 4px; color: #fff; font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-method-get { background: #1f7a57; }
.api-method-post { background: #2f63b8; }
.api-path { min-width: 0; overflow-wrap: anywhere; color: #c9d6df; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-tabs { display: flex; align-items: center; gap: 2px; padding: 0 8px; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.api-tabs button { min-height: 40px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9fb0bd; font-size: var(--type-small); cursor: pointer; }
.api-tabs button:hover { color: #fff; }
.api-tabs button[aria-selected='true'] { border-bottom-color: #ff8a70; color: #fff; }
.api-tabs .api-copy { margin-left: auto; border-bottom: 0; font-size: var(--type-caption); }
.api-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-response { border-top: 1px solid rgb(255 255 255 / 12%); }
.api-response summary { padding: 10px 16px; color: #9fb0bd; font-size: var(--type-small); cursor: pointer; }
.api-response pre { background: rgb(0 0 0 / 22%); color: #c9d6df; }
.api-try { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.api-try h3 { margin: 0; font-size: var(--type-label); }
.api-try label { display: grid; gap: 6px; font-size: var(--type-small); font-weight: 600; }
.api-try input, .api-try select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-weight: 400; }
.api-hint { margin: -4px 0 0; color: var(--muted); font-size: var(--type-caption); }
.api-try button[type='submit'] { justify-self: start; }
.api-result { display: grid; gap: 6px; }
.api-status { min-height: 1.4em; font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-status[data-ok='true'] { color: var(--good); }
.api-status[data-ok='false'] { color: var(--bad); }
.api-result pre { margin: 0; max-height: 320px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.api-errors { width: 100%; border-collapse: collapse; font-size: var(--type-small); }
.api-errors th, .api-errors td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.api-errors th { color: var(--muted); font-weight: 600; }
@container (min-width: 900px) {
  .api-layout { grid-template-columns: 176px minmax(0, 1fr); }
  .api-nav { display: grid; align-content: start; gap: 2px; position: sticky; top: 24px; max-height: calc(100vh - 48px); padding-top: 32px; }
}
@container (min-width: 1100px) {
  .api-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

/* Comment inbox */
.tab-badge { margin-left: 8px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on); font-size: var(--type-caption); font-weight: 650; line-height: 20px; text-align: center; }
.comment-flag-new { color: var(--accent); font-weight: 650; }
.comment-flag-ok { color: var(--good); }
.comment-flag-own { color: var(--muted); }
.inbox-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 12px; }
.inbox-chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: var(--type-small); cursor: pointer; }
.inbox-chip span { margin-left: 4px; font-variant-numeric: tabular-nums; }
.inbox-chip[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); background: var(--soft); font-weight: 600; }

.preview .panel img, .review-video, .media-stage img { max-width: 100%; border-radius: 6px; background: var(--media-bg); }
img.review-video, .preview-host img, #preview-host img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
img.video-dialog-player { max-width: 100%; max-height: 80vh; object-fit: contain; }
.image-note { margin: 4px 0 0; font-size: var(--type-caption); }

/* Yayın listesi: başlık iki satıra kısalır, durum sağ üstte, eylem sağ altta */
.job h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.job-state { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 120px; max-width: 240px; text-align: right; }
.job-state .pill { white-space: nowrap; }
.job-state .job-actions { justify-content: flex-end; margin-top: auto; }
.job-actions button[data-cancel] { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.job-actions button[data-cancel]:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
@media(max-width:900px){.job-state{grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:space-between;max-width:none;text-align:left}.job-state .job-actions{margin-top:0}}
.profile-menu-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 10px; font-size: var(--type-small); color: var(--muted); }
.profile-menu-theme select { min-height: 36px; width: auto; max-width: 128px; padding: 4px 8px; font-size: var(--type-small); }

/* Yayın kartı: durum etiketi kartın dışına taşmaz, eylemler sağ altta hizalı kalır */
.job-state .pill { white-space: normal; max-width: 100%; text-align: right; }
.job-state .job-note { max-width: 100%; text-wrap: balance; }
.job-state .job-actions { max-width: 100%; }
.job[data-status="failed"], .job[data-status="reconnect"], .job[data-status="uncertain"] { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
