:root {
  --bg: #07090c;
  --panel: rgba(12, 16, 24, 0.42);
  --panel-2: rgba(16, 21, 32, 0.38);
  --surface: rgba(20, 26, 40, 0.32);
  --line: rgba(216, 168, 80, 0.28);
  --line-strong: rgba(216, 168, 80, 0.55);
  --text: #f5f2ea;
  --muted: #aab2be;
  --dim: #848c99;
  --accent: #ffd400;
  --accent-2: #f1d79b;
  --accent-soft: rgba(216, 168, 80, 0.18);
  --accent-text: #f1d79b;
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scrollbar-color: var(--line-strong) var(--bg);
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.38) 0%, rgba(6, 8, 12, 0.62) 100%),
    var(--op-wallpaper, url('/onepiece-bg.webp')) center top / cover fixed no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  transition: background 0.4s ease-in-out;
}

body {
  margin: 0;
  background: transparent !important;
  color: var(--text);
  font: 14px/1.55 "Inter", "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #17120a; }

/* One visible keyboard focus ring for every control. The browser default was
   near-black on a near-black UI, so keyboard users could not see where they were. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ------------------------------------------------------------------ topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(9, 11, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 5;
}
.brand { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px var(--accent); }
.logo { color: var(--text); }
.logo-alt { color: var(--accent-text); font-weight: 600; }
.brand-sub { color: var(--dim); font-size: 12.5px; }
.health { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #3f4650; }
.health.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.health.bad { background: var(--err); }

/* Brand lockup: emblem tile + "Wings Clips / by wingsai". */
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.06), 0 10px 24px rgba(0, 0, 0, 0.38);
}
.brand-copy { display: flex; flex-direction: column; gap: 1px; line-height: 1.05; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.brand-by { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: none; color: var(--muted); }

/* ------------------------------------------------------------------ layout */
.layout {
  display: grid;
  grid-template-columns: minmax(400px, 480px) 1fr;
  gap: 24px;
  padding: 24px 28px 80px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}
@media (max-width: 1024px) { .layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.panel-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin: 26px 0 12px; font-weight: 600; }
.panel-title:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ inputs */
.input-hero {
  padding: 15px 16px;
  font-size: 15px;
  border-radius: 12px;
  border-color: rgba(216, 168, 80, 0.42);
  background: #101014;
  box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.16), 0 0 24px rgba(216, 168, 80, 0.08);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.input-hero:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 34px rgba(216, 168, 80, 0.20); }
.input-hero::placeholder { color: #565661; }

.input-hero-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-hero-group .input-hero {
  padding-right: 120px;
}
.btn-paste {
  position: absolute;
  right: 8px;
  background: rgba(216, 168, 80, 0.12);
  border: 1px solid rgba(216, 168, 80, 0.35);
  color: #ffd400;
  font: 600 11.5px/1 inherit;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-paste:hover {
  background: rgba(216, 168, 80, 0.25);
  border-color: #ffd400;
  transform: scale(1.02);
}

/* -------------------------------------------------- preset chips grid */
.preset-showcase-section {
  margin-top: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(216, 168, 80, 0.2);
  background: linear-gradient(145deg, rgba(20, 24, 33, 0.6), rgba(12, 15, 21, 0.8));
  border-radius: 14px;
  padding: 18px;
}
.preset-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.preset-label {
  font: 750 10.5px Consolas, monospace;
  letter-spacing: 1.5px;
  color: #ffd400;
}
.preset-sub {
  font-size: 11px;
  color: var(--muted);
}
.preset-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.preset-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: rgba(25, 30, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.preset-chip:hover {
  border-color: var(--chip-color, rgba(216, 168, 80, 0.6));
  background: rgba(35, 42, 56, 0.75);
  transform: translateY(-2px);
}
.preset-chip.active {
  border-color: var(--chip-color, #ffd400);
  background: rgba(35, 42, 56, 0.9);
  box-shadow: 0 0 16px -2px var(--chip-color, rgba(216, 168, 80, 0.4)), inset 0 0 12px -4px var(--chip-color, rgba(216, 168, 80, 0.2));
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-bottom: 3px;
}
.rotate-dot {
  background: linear-gradient(135deg, #ffd400, #ff2d78, #00f0ff);
  box-shadow: 0 0 8px #ffd400;
}
.chip-name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}
.preset-chip small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.25;
}

.input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; background: var(--panel-2); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 9px 8px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: #fff; background: var(--panel); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); font-weight: 600; }

.product-switch { display: flex; gap: 6px; margin-bottom: 24px; background: var(--panel-2); padding: 5px; border-radius: 12px; border: 1px solid var(--line); }
.product-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.product-tab:hover { color: var(--text); }
.product-tab.active { color: #fff; background: var(--panel); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); font-weight: 600; }
.input-textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
#product-text-video > .field, #product-text-video > .row, #product-text-video > .check { margin-bottom: 12px; }
input[type="file"].input { padding: 8px 10px; font-size: 12.5px; color: var(--muted); }

.hint { color: var(--dim); font-size: 12px; margin: 8px 0 0; }
#form-error { color: var(--err); min-height: 18px; font-size: 12.5px; margin: 8px 0 0; }

.row { display: flex; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 500; }

.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; color: var(--muted); }
.check:hover { color: var(--text); }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }

/* ------------------------------------------------------------- style picker */
.style-picker { display: flex; flex-direction: column; gap: 12px; }

/* -------------------------------------------------------------- upload zone */
.upload-zone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px 14px;
  margin-bottom: 12px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-icon { font-size: 26px; color: var(--accent); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.upload-title { font-weight: 600; margin-top: 8px; font-size: 13.5px; }
.upload-sub { color: var(--dim); font-size: 12px; margin-top: 4px; }
.upload-progress { margin-top: 14px; text-align: left; }
.upload-progress-bar { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
#upload-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  transition: width 0.25s ease;
}
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.upload-progress-text { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.upload-done { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--ok); border-radius: 10px; color: var(--ok); font-size: 13px; background: rgba(52, 211, 153, 0.05); }
.mini-btn { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 7px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 12px; }
.mini-btn:hover { color: var(--err); border-color: var(--err); }
.copy-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }

/* ---------------------------------------------------------- posting platforms */
.post-block { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.post-block-title { font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.post-platforms { display: flex; flex-direction: column; gap: 7px; }
.post-platform-row { display: grid; grid-template-columns: 170px 132px; justify-content: start; gap: 7px; align-items: stretch; }
.post-platform-spacer { display: block; min-height: 32px; border: 1px dashed transparent; }
.post-btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; width: 100%; min-height: 32px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 8px; cursor: pointer; font: inherit; font-size: 11px; overflow: hidden; }
.platform-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; background: #303743; color: #f3f5f7; font-size: 10px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.mark-facebook { background: #1877F2; }
.mark-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.mark-threads { background: #111827; border: 1px solid #3b4250; }
.mark-youtube { background: #FF0000; }
.mark-tiktok { background: #000; border: 1px solid #3b4250; }
.mark-rumble { background: #85C742; color: #102000; }
.post-action { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-btn:hover:not(:disabled) { color: var(--accent-text); border-color: var(--accent); }
.post-btn.ready { color: var(--ok); border-color: var(--ok); }
.post-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.post-btn:disabled.ready { opacity: 0.75; }
.post-btn .soon { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }
.post-btn.schedule-btn { color: var(--accent-text); border-style: dashed; }
.post-hint { margin-top: 6px; font-size: 10.5px; line-height: 1.45; color: var(--dim); }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); }
.modal { width: min(420px, calc(100vw - 32px)); background: #151a21; border: 1px solid #303844; border-radius: 14px; padding: 20px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.modal-sub { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.modal-field { display: grid; gap: 6px; margin-bottom: 12px; }
.modal-field span { color: var(--muted); font-size: 11.5px; }
.modal-error { min-height: 18px; color: #ff9c9c; font-size: 12px; margin-bottom: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; flex-wrap: wrap; }
.modal-note { margin-top: 12px; color: var(--dim); font-size: 10.5px; line-height: 1.45; }
.mini-btn.danger { color: #ff9c9c; border-color: #7a3036; }
.post-pack { margin: 10px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(216, 168, 80, 0.04); }
.post-pack-title { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.post-field { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.post-field:first-of-type { border-top: 0; }
.post-field-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); padding-top: 3px; }
.post-field-text { font-size: 13px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.post-pack-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------------------------------------------------------- OAuth banner */
.oauth-banner { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; font-size: 14px; line-height: 1.45; animation: banner-in 0.35s ease; }
.oauth-banner.ok { background: rgba(70, 200, 130, 0.12); border: 1px solid rgba(70, 200, 130, 0.35); color: #8fe6b3; }
.oauth-banner.bad { background: rgba(230, 90, 90, 0.10); border: 1px solid rgba(230, 90, 90, 0.35); color: #f0a0a0; }
@keyframes banner-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- product switcher highlight */
.product-tab { position: relative; transition: background 0.2s ease, color 0.2s ease; }
.product-tab.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); }
.tv-upload-btn { letter-spacing: 0.2px; }

/* --------------------------------------------------------------- primary CTA */
.primary {
  width: 100%;
  margin-top: 18px;
  background: linear-gradient(135deg, #f1d79b 0%, #d8a850 45%, #b88840 100%);
  color: #17120a;
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  font: inherit;
  font-weight: 750;
  font-size: 15px;
  letter-spacing: -0.2px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(216, 168, 80, 0.28);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, filter 0.15s;
}
.primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(216, 168, 80, 0.48); }
.primary:active { transform: translateY(0) scale(0.99); }
.primary:disabled { filter: grayscale(0.7) brightness(0.6); cursor: not-allowed; box-shadow: none; }

/* -------------------------------------------------------------- status badge */
.results-head { display: flex; align-items: center; justify-content: space-between; }
.status-badge { font-size: 11.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.status-badge.running { color: var(--warn); border-color: var(--warn); animation: badgeGlow 1.6s ease-in-out infinite; }
.status-badge.done { color: var(--ok); border-color: var(--ok); }
.status-badge.failed { color: var(--err); border-color: var(--err); }
.status-badge.cancelled { color: var(--muted); }
@keyframes badgeGlow { 0%, 100% { box-shadow: 0 0 0 rgba(251, 191, 36, 0); } 50% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.3); } }

/* -------------------------------------------------------------- pipeline steps */
.pipeline { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.pipe-step { display: flex; align-items: center; gap: 12px; padding: 8px 12px; font-size: 13px; color: var(--dim); border-radius: 9px; transition: color 0.2s, background 0.2s; }
.pipe-dot { width: 9px; height: 9px; border-radius: 50%; background: #3f3f46; flex: none; transition: background 0.2s, box-shadow 0.2s; }
.pipe-step.active { color: var(--text); background: var(--accent-soft); }
.pipe-step.active .pipe-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.pipe-step.done { color: var(--muted); }
.pipe-step.done .pipe-dot { background: var(--ok); }

/* ------------------------------------------------------------------- log */
.log-wrap { margin-top: 14px; }
.log-toggle { color: var(--dim); font-size: 12px; cursor: pointer; border: none; background: none; padding: 0; font-family: inherit; }
.log-toggle:hover { color: var(--text); }
.log {
  margin-top: 8px;
  background: #050507;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  max-height: 240px;
  overflow-y: auto;
  font: 11.5px/1.5 "Cascadia Code", Consolas, monospace;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.log .err { color: var(--err); }

/* --------------------------------------------------------------- opus cards */
.clips { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.opus-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, transform 0.15s;
}
.opus-card:hover { border-color: #3f3f46; transform: translateY(-1px); }
.opus-media { border-right: 1px solid var(--line); background: #1d2129; display: flex; flex-direction: column; }
.opus-media video { width: 100%; aspect-ratio: 9 / 16; background: #050608; display: block; }
.opus-media-meta { padding: 10px 12px; min-height: 52px; font-size: 11.5px; color: var(--dim); display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #161a21; border-top: 1px solid #262c35; }
.opus-media-meta strong { display: block; color: #e9edf2; font-size: 11.5px; line-height: 1.2; }
.opus-media-sub { margin-top: 3px; color: #8f98a3; font-size: 10px; line-height: 1.2; }
.opus-media-meta a { color: var(--accent-text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.clip-post-status { margin-top: auto; padding: 10px 12px 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #20252e; border-top: 1px solid #2b323d; }
.clip-post-status-label { color: #8f98a3; font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; margin-right: 2px; }
.clip-status { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 6px; background: #2a3039; color: #aab3bf; font-size: 10px; font-weight: 700; }
.clip-status.ok { background: #173526; color: #89d79a; }
.clip-status.scheduled { background: #3a2d16; color: #e3bd74; }
.clip-status.idle { background: #262c35; color: #8f98a3; }
.clip-status.failed { background: #3a1d1d; color: #e89696; }

.opus-panel { position: relative; padding: 72px 88px 20px 20px; display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.opus-platform-tabs { position: absolute; top: 14px; left: 20px; right: 76px; display: flex; flex-wrap: wrap; gap: 6px; }
.opus-platform-tab { border: 1px solid #6a5135; background: #2a2117; color: #d8b57c; border-radius: 7px; padding: 6px 9px; font-size: 11px; font-weight: 800; cursor: pointer; }
.opus-platform-tab.active { background: #6a5135; color: #ffe0a3; border-color: #a47a3f; }
.opus-score { position: absolute; top: 14px; right: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.opus-ring {
  width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), #27272a 0);
  display: flex; align-items: center; justify-content: center;
}
.opus-ring::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); position: absolute; }
.opus-ring span { position: relative; font-weight: 800; font-size: 13px; color: var(--accent-text); }
.opus-ring.none { background: #27272a; }
.opus-ring.none::before { display: none; }
.opus-score-label { font-size: 8px; text-transform: uppercase; letter-spacing: .8px; color: var(--dim); font-weight: 700; }
.opus-title { font-size: 18px; font-weight: 650; line-height: 1.4; }
.opus-hook { font-size: 14.5px; color: var(--accent-text); line-height: 1.45; }
.opus-chip { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); margin-right: 6px; }
.opus-why { font-size: 14px; color: var(--muted); line-height: 1.55; }
.opus-reason { border: 1px solid #303743; background: #171b22; border-radius: 12px; padding: 10px 12px; }
.opus-reason-label { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #d8b57c; margin-bottom: 6px; }
.opus-reason-list { display: grid; gap: 6px; }
.opus-reason-item { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.opus-reason-item::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: #d8b57c; }
.opus-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opus-trim { border: 1px solid #303743; background: #141820; border-radius: 12px; padding: 10px 12px; }
.opus-trim summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #d8b57c; }
.opus-trim-form { display: grid; gap: 8px; margin-top: 10px; }
.opus-trim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opus-trim-form label { display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.opus-trim-form input { width: 100%; box-sizing: border-box; background: #0f131a; color: var(--text); border: 1px solid #303743; border-radius: 8px; padding: 7px 8px; font: inherit; }
.opus-trim-reason { grid-column: 1 / -1; }
.opus-trim-save { justify-self: start; border: 1px solid #d8b57c; background: transparent; color: #d8b57c; border-radius: 8px; padding: 7px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.opus-trim-save:disabled { opacity: .55; cursor: wait; }
.chip { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); }
.chip.ok { color: var(--ok); border-color: var(--ok); }

.opus-captions { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.opus-cap-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--panel); }
.opus-cap-tab { flex: 1; background: transparent; border: none; padding: 10px; color: var(--dim); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; border-right: 1px solid var(--line); transition: color 0.15s, background 0.15s; }
.opus-cap-tab:last-child { border-right: none; }
.opus-cap-tab.active { color: var(--accent-text); background: var(--accent-soft); }
.opus-cap-body { display: none; padding: 12px 14px; font-size: 13px; line-height: 1.55; align-items: center; gap: 10px; }
.opus-cap-body.active { display: flex; }
.opus-cap-text { flex: 1; min-width: 0; white-space: pre-wrap; color: var(--text); }
.opus-copy { flex: none; background: var(--panel); border: 1px solid var(--line); color: var(--accent-text); border-radius: 9px; padding: 7px 16px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color 0.15s; }
.opus-copy:hover { border-color: var(--accent); }

@media (max-width: 720px) { .opus-card { grid-template-columns: 1fr; } .opus-media { border-right: none; border-bottom: 1px solid var(--line); } }

/* ---------------------------------------------------------------- history */
.jobs-history { margin-top: 26px; }
.jobs-history h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--dim); font-weight: 600; }
.jobs-history ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.jobs-history li {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 12.5px;
  background: var(--panel-2); transition: border-color 0.15s;
}
.jobs-history li:hover { border-color: #3f3f46; }
.jobs-history .dot { width: 8px; height: 8px; border-radius: 50%; background: #3f3f46; flex: none; }
.jobs-history .dot.done { background: var(--ok); }
.jobs-history .dot.failed { background: var(--err); }
.jobs-history .dot.running { background: var(--warn); }
.jobs-history .src { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.history-tools { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.history-select-all { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.history-pick { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; flex: none; }
.history-pick:disabled { cursor: not-allowed; opacity: 0.4; }
.mini-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.mini-btn.danger { color: #f0b4b0; border-color: #6b3a3a; }
.mini-btn.danger:hover:not(:disabled) { color: #fff; border-color: var(--err); }

/* -------------------------------------------------------------- empty state */
.empty-state {
  text-align: center; padding: 56px 20px; color: var(--dim);
  border: 2px dashed var(--line); border-radius: 16px;
  margin-top: 16px;
  background: rgba(216, 168, 80, 0.03);
}
.empty-state .glyph { font-size: 44px; margin-bottom: 14px; opacity: 0.55; animation: emptyBob 3.5s ease-in-out infinite; }
@keyframes emptyBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.empty-state .title { font-size: 16px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.empty-state .sub { font-size: 13px; max-width: 380px; margin: 0 auto; line-height: 1.65; }

.hidden { display: none !important; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok { background: #103d22; color: #8fe0a8; border: 1px solid #2f7a49; }
.toast.bad { background: #471317; color: #ffb3b8; border: 1px solid #8a2d33; }

/* ------------------------------------------------------------ advanced box */
.advanced { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; background: var(--panel-2); }
.advanced summary { cursor: pointer; color: var(--dim); font-size: 12.5px; font-weight: 500; }
.advanced summary:hover { color: var(--text); }
.advanced .row { margin-top: 12px; }
.advanced .field { margin-top: 12px; }

/* --------------------------------------------------------------- studio 2026 */
.studio-shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: calc(100vh - 70px); background: transparent; }
.studio-shell .topbar { border-color: var(--line); }
.topbar:has(+ .studio-shell) { min-height: 70px; padding: 12px 30px; background: rgba(9, 11, 15, 0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.topbar .brand { color: inherit; text-decoration: none; gap: 10px; letter-spacing: -0.3px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; margin-right: 8px; background: linear-gradient(135deg, var(--accent), #aa7f4c); color: #191710; font-size: 19px; font-weight: 800; }
.topbar:has(+ .studio-shell) .logo-alt { color: var(--accent-text); }
.topbar:has(+ .studio-shell) .brand-sub { margin-left: 12px; border-left: 1px solid var(--line); padding-left: 15px; font-size: 10px; letter-spacing: 1.4px; color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.topbar-link { color: var(--muted); font-size: 12px; text-decoration: none; }
.topbar-link:hover, .heading-link:hover { color: var(--accent-2); }
.character-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(18, 23, 34, 0.65);
  border: 1px solid rgba(216, 168, 80, 0.45);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.switcher-icon { font-size: 14px; line-height: 1; }
.character-select {
  background: transparent;
  border: none;
  color: #ffd400;
  font: 750 11.5px/1 inherit;
  cursor: pointer;
  outline: none;
  padding: 2px 4px;
}
.character-select option {
  background: #11151f;
  color: #f5f2ea;
  font-weight: 500;
}
.btn-random-bg {
  background: rgba(216, 168, 80, 0.15);
  border: 1px solid rgba(216, 168, 80, 0.40);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
  padding: 0;
}
.btn-random-bg:hover {
  transform: rotate(180deg) scale(1.15);
  background: rgba(216, 168, 80, 0.35);
}
.system-status { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(16, 20, 28, 0.55); padding: 7px 11px; border-radius: 999px; font-size: 11px; color: var(--muted); white-space: nowrap; backdrop-filter: blur(10px); }
.system-status .health { margin: 0; width: 7px; height: 7px; }
.studio-nav { position: sticky; top: 70px; align-self: start; height: calc(100vh - 70px); padding: 33px 13px; background: rgba(9, 11, 16, 0.45); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-group-label { padding: 0 14px 14px; font-size: 10px; letter-spacing: 1.5px; color: var(--dim); font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: 13px; min-height: 43px; padding: 0 15px; color: var(--muted); text-decoration: none; border-radius: 9px; font-size: 13px; font-weight: 550; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: var(--accent-text); background: var(--accent-soft); }
.nav-link.has-results .nav-icon { color: var(--accent); }
.nav-icon { font-size: 19px; line-height: 1; width: 20px; text-align: center; }
.nav-bottom { margin-top: auto; display: flex; gap: 11px; align-items: flex-start; padding: 15px 12px; border: 1px solid var(--line); background: rgba(14, 18, 26, 0.45); border-radius: 13px; backdrop-filter: blur(14px); }
.nav-bottom-icon { color: var(--accent); font-size: 21px; }
.nav-bottom strong { display: block; font-size: 12px; font-weight: 650; }
.nav-bottom span:last-child { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.45; }
.studio-main { min-width: 0; padding: 36px clamp(18px, 3vw, 48px) 90px; max-width: 1660px; width: 100%; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 0 0 27px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; color: var(--accent); font-weight: 750; }
.page-heading h1 { margin: 9px 0 8px; font-size: clamp(26px, 2.5vw, 37px); letter-spacing: -1.45px; line-height: 1.16; font-weight: 680; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
.page-heading h1 em { color: var(--accent); font-style: normal; }
.page-heading p { margin: 0; color: #c4ccd8; font-size: 13px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.heading-link { color: var(--text); text-decoration: none; border: 1px solid var(--line); padding: 9px 13px; border-radius: 8px; font-size: 12px; white-space: nowrap; background: rgba(14, 18, 26, 0.45); backdrop-filter: blur(10px); }
.heading-link span { margin-left: 8px; }
.studio-main .layout { display: grid; grid-template-columns: minmax(390px, 1fr) minmax(260px, .7fr); gap: 19px; align-items: start; padding: 0; max-width: none; }
.studio-main .panel, .preview-inner {
  background: rgba(12, 16, 24, 0.45) !important;
  border: 1px solid rgba(216, 168, 80, 0.32);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border-radius: 15px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.studio-main .form { grid-column: 1; grid-row: 1; padding: 27px; }
.studio-main .results { grid-column: 1 / -1; grid-row: 2; padding: 27px; scroll-margin-top: 90px; }
.section-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.step-number { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 10px; background: rgba(49, 42, 34, 0.6); border: 1px solid #5b4831; color: #e4c394; font: 700 12px Consolas, monospace; }
.section-heading h2 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 650; letter-spacing: -.3px; }
.section-heading p { margin: 4px 0 0; color: #abb2bc; font-size: 12px; }
.studio-main .tabs { background: rgba(16, 20, 28, 0.45); border: 1px solid rgba(216, 168, 80, 0.25); backdrop-filter: blur(12px); border-radius: 10px; padding: 3px; }
.studio-main .tab { font-size: 12px; border-radius: 8px; }
.studio-main .tab.active { background: rgba(60, 52, 40, 0.7); color: #f3d5a4; border: 1px solid rgba(216, 168, 80, 0.35); }
.studio-main .input { background-color: rgba(14, 18, 26, 0.50) !important; border-color: rgba(216, 168, 80, 0.25); backdrop-filter: blur(12px); }
.studio-main .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(216, 168, 80, 0.25), 0 0 20px rgba(216, 168, 80, 0.15); }
.studio-main .input-hero { border-color: rgba(216, 168, 80, 0.45); box-shadow: 0 0 20px rgba(216, 168, 80, 0.08); background: rgba(14, 18, 26, 0.55); }
.studio-main .upload-zone:hover, .studio-main .upload-zone.drag { border-color: var(--accent); background: rgba(216, 168, 80, 0.12); }
.studio-main .upload-icon { color: #d9b987; }
.studio-main .advanced { background: rgba(14, 18, 26, 0.45); border-color: rgba(216, 168, 80, 0.22); margin-top: 25px; backdrop-filter: blur(12px); border-radius: 12px; }
.studio-main details.advanced:not(#settings-panel), .studio-main .log-wrap { display: none; }
.studio-main .advanced summary { color: #eee6d8; font-weight: 650; }
.summary-hint { color: #999fa9; font-weight: 400; margin-left: 8px; }
.studio-main .primary { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: linear-gradient(135deg, #ffd400, #d8a850); color: #211a12; font-weight: 750; border-radius: 12px; box-shadow: 0 6px 24px rgba(216, 168, 80, 0.35); }
.tv-upload-btn { width: 100%; margin-top: 12px; justify-content: center; font-size: 13px; padding: 10px 14px; }
.tv-upload-btn:disabled { filter: grayscale(0.4) brightness(0.85); cursor: default; }
.studio-main .primary:hover { background: #e9ca9a; box-shadow: none; }
.studio-main .primary:disabled { color: #eee; }
/* The aside stretches to the form column's full height and the inner card pins itself.
   Sticky on the grid item itself cannot work here: `align-items: start` makes the item only
   as tall as its content, so it has nowhere to travel and scrolls away with the page. */
.studio-preview { grid-column: 2; grid-row: 1; align-self: stretch; }
.preview-inner { position: sticky; top: 94px; padding: 20px; }
.preview-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.preview-badge { font-size: 10px; color: #aeb5bf; border: 1px solid #3d4651; padding: 4px 8px; border-radius: 5px; letter-spacing: .8px; }
.preview-frame { overflow: hidden; width: min(100%, 286px); aspect-ratio: 9 / 16; margin: 0 auto; position: relative; border: 1px solid #424c59; border-radius: 12px; background: linear-gradient(155deg, #333c46, #191e29 45%, #33332c); display: flex; align-items: center; flex-direction: column; text-align: center; }
/* Once a job's results are on screen the live-look panel stays in the page but
   stops sticking, so it scrolls away with the form instead of floating over
   the results. Do NOT hide it with `display` or toggle that from an
   IntersectionObserver: doing so mid-scroll caused a layout/scroll feedback
   loop that froze the page on laptops. */
body.has-results .preview-inner { position: static; }
.preview-frame.with-image { background: #101318 center / cover no-repeat; }
.preview-frame.with-image .preview-glow, .preview-frame.with-image .preview-hook, .preview-frame.with-image .preview-caption { display: none; }
.preview-glow { position: absolute; inset: 14% 12%; background: radial-gradient(ellipse, #b18e713a, transparent 65%); }
.preview-channel { position: absolute; top: 6%; font-size: 9px; letter-spacing: 2px; color: #f0e8db; text-shadow: 0 2px 6px #000; }
.preview-frame.with-image .preview-channel { display: none; }
.preview-hook { position: absolute; top: 22%; padding: 10px; font-size: clamp(15px, 2vw, 22px); font-weight: 800; line-height: 1.2; letter-spacing: -1px; text-shadow: 0 2px 6px #000; }
.preview-caption { position: absolute; bottom: 25%; left: 8%; right: 8%; font-size: clamp(13px, 1.8vw, 19px); font-weight: 700; text-shadow: 0 2px 8px #000; }
.preview-caption strong { color: #e5b968; }
.preview-safe { position: absolute; bottom: 5%; width: 92%; padding: 6px 4px; border: 1px dashed #ffffff55; color: #fff9; font-size: 9px; letter-spacing: .7px; background: #070a0d50; }
.preview-footer { margin-top: 17px; display: flex; flex-direction: column; gap: 3px; }
.preview-footer strong { color: #f0e5d1; font-size: 14px; }
.preview-footer span { color: #9fa6af; font-size: 11px; line-height: 1.5; }
.style-gallery { display: flex; gap: 9px; overflow-x: auto; padding: 10px 0 7px; scrollbar-color: #494644 #11151b; }
.editorial-preset-field { margin-top: 12px; }
.style-tile { display: flex; flex-direction: column; gap: 7px; flex: 0 0 83px; min-width: 0; padding: 5px; border: 1px solid #3b404a; border-radius: 10px; background: #1a1d24; color: #a7afb9; cursor: pointer; font: inherit; font-size: 10px; text-align: left; }
.style-tile:hover { border-color: #9c805e; }
.style-tile.active { border-color: var(--accent); background: #332b23; color: #f5e5c8; }
.style-tile .auto-art, .style-sample { width: 100%; aspect-ratio: 9 / 16; border-radius: 5px; background: #85898f; }
.style-tile .auto-art { display: grid; place-items: center; font-size: 28px; color: #deb987; }
.style-sample { display: flex; justify-content: center; box-sizing: border-box; padding: 8px; color: var(--sample-base, #f5f5f5); font-family: Arial, sans-serif; font-size: 12px; font-weight: 750; line-height: 1.12; text-align: center; overflow: hidden; text-shadow: 0 0 10px var(--sample-glow, transparent), 0 1px 3px #000c; border: 1px solid #aeb2b6; }
.style-sample .sample-highlight { color: var(--sample-highlight, var(--sample-accent, #e8e8e8)); }
.style-sample.hook-sample { align-items: flex-start; padding-top: 24%; font-size: 12.5px; }
.style-sample.subtitle-sample { align-items: flex-end; padding-bottom: 20%; font-size: 11px; }
.style-sample.sample-uppercase { text-transform: uppercase; }
.style-sample.sample-box { background: #85898f; color: var(--sample-base, #fff); text-shadow: 0 1px 2px #000; }
.style-tile span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.studio-main .opus-card { background: #1d2129; border-color: #353b45; }
.studio-main .opus-panel { gap: 12px; }
.studio-main .opus-ring::before { background: #1d2129; }
.studio-main .opus-ring { background: conic-gradient(var(--accent) calc(var(--p) * 1%), #363b45 0); }
.studio-main .opus-ring span, .studio-main .opus-hook, .studio-main .opus-media-meta a { color: #e4c18d; }
.studio-main .opus-chip { background: #6a513526; color: #e4c18d; }
.studio-main .opus-cap-tab.active { background: #6a513526; color: #e4c18d; }
.studio-main .opus-copy { color: #e4c18d; }
.studio-main .jobs-history { scroll-margin-top: 90px; }
.studio-main .jobs-history li { background: #1b2028; border-color: #383e47; }
.studio-main .jobs-history li .history-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eee9df; }

@media (max-width: 760px) {
  .opus-panel { padding: 20px; }
  .opus-platform-tabs { position: static; margin-bottom: 10px; }
  .opus-score { position: static; flex-direction: row; align-self: flex-end; }
}

@media (max-width: 1150px) { .studio-main .layout { grid-template-columns: minmax(0, 1fr); } .studio-main .form, .studio-preview, .studio-main .results { grid-column: 1; grid-row: auto; } .preview-inner { position: static; } }
@media (max-width: 760px) { .studio-shell { grid-template-columns: 1fr; } .studio-nav { position: static; height: auto; padding: 9px 12px; flex-direction: row; border-right: 0; border-bottom: 1px solid #272d35; overflow-x: auto; } .nav-group-label, .nav-bottom { display: none; } .nav-link { white-space: nowrap; min-height: 36px; padding: 0 10px; font-size: 12px; } .studio-main { padding: 23px 14px 60px; } .studio-main .form, .studio-main .results { padding: 18px; } .page-heading { align-items: flex-start; } .heading-link, .topbar-link, .topbar:has(+ .studio-shell) .brand-sub { display: none; } .topbar:has(+ .studio-shell) { padding: 10px 14px; } .system-status { font-size: 0; gap: 0; padding: 9px; } .studio-main .toggles { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .studio-main .row { flex-direction: column; } .studio-main .tabs { flex-wrap: wrap; } .studio-main .tab { min-width: 40%; } .page-heading h1 { font-size: 26px; } }


/* ================================================================ Quiet Web3
   Visible layer, not just tokens: a restrained gold grid/aurora, glass panels,
   gold hairline borders, and one gradient CTA. Kept low-contrast so the editor
   still reads as a professional tool, not a crypto landing page. */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 560px at 14% -8%, rgba(216, 168, 80, 0.16), transparent 60%),
    radial-gradient(760px 520px at 92% 2%, rgba(216, 168, 80, 0.07), transparent 58%),
    linear-gradient(180deg, #07090c 0%, #080b10 52%, #06080b 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(216, 168, 80, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 168, 80, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 15%, transparent 78%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 360px at 82% 18%, rgba(216, 168, 80, 0.10), transparent 65%),
    radial-gradient(420px 300px at 18% 72%, rgba(216, 168, 80, 0.05), transparent 70%);
}

/* Brand lockup: force two real lines even if a flex rule is overridden. */
.brand-copy { display: grid; grid-template-rows: auto auto; gap: 2px; align-items: start; line-height: 1.05; }
.brand-name, .brand-by { display: block; white-space: nowrap; }
.brand-name { font-size: 16px; font-weight: 720; letter-spacing: -0.02em; }
.brand-by { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: none; color: var(--muted); }
.topbar:has(+ .studio-shell) { background: rgba(7, 9, 12, 0.78); border-bottom-color: var(--line-strong); box-shadow: 0 1px 0 rgba(216, 168, 80, 0.05); }

/* Gold hairlines across the shell and cards. */
.topbar, .studio-nav, .panel, .studio-main .panel, .preview-inner, .opus-card,
.jobs-history li, .advanced, .modal, .post-pack, .opus-captions, .empty-state,
.style-tile, .heading-link, .system-status, .preview-badge, .chip,
.opus-platform-tab, .opus-reason, .opus-trim, .opus-captions, .post-btn,
.upload-zone, .tabs, .product-switch {
  border-color: var(--line) !important;
}
.studio-nav { background: linear-gradient(180deg, rgba(14, 17, 23, 0.86), rgba(7, 9, 12, 0.70)); border-right-color: var(--line-strong); }
.nav-link.active {
  border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(216, 168, 80, 0.16), rgba(216, 168, 80, 0.03));
  box-shadow: inset 0 0 0 1px rgba(216, 168, 80, 0.05), 0 0 26px rgba(216, 168, 80, 0.07);
}

/* Glass panels with a warm inner highlight. */
.studio-main .form, .studio-main .preview-inner {
  background: linear-gradient(180deg, rgba(20, 24, 33, 0.94), rgba(10, 13, 19, 0.96));
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.05), 0 30px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.studio-main .results, .studio-main .opus-card, .studio-main .jobs-history li {
  background: linear-gradient(180deg, rgba(20, 24, 33, 0.86), rgba(12, 15, 21, 0.92));
}
.studio-main .opus-card:hover { border-color: var(--line-strong) !important; box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.10), 0 18px 50px rgba(0, 0, 0, 0.35); }

/* Inputs and segmented controls. */
.input, .studio-main .input, .studio-main .tabs, .product-switch, .advanced {
  border-color: var(--line) !important;
}
.input:focus, .studio-main .input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(216, 168, 80, 0.14), 0 0 26px rgba(216, 168, 80, 0.08);
}
.studio-main .input-hero {
  border-color: rgba(216, 168, 80, 0.46) !important;
  box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.12), 0 0 34px rgba(216, 168, 80, 0.07);
}
.studio-main .tab.active, .product-tab.active {
  background: linear-gradient(180deg, rgba(216, 168, 80, 0.20), rgba(216, 168, 80, 0.07));
  color: var(--accent-text);
  border: 1px solid var(--line-strong);
}
.studio-main .tabs, .product-switch { background: rgba(10, 13, 19, 0.72); }
.step-number { border-color: var(--line-strong); background: rgba(216, 168, 80, 0.09); color: var(--accent-text); box-shadow: 0 0 20px rgba(216, 168, 80, 0.06); }

/* One gradient CTA, everything else quiet. */
.primary, .studio-main .primary {
  background: linear-gradient(135deg, #f1d79b 0%, #d8a850 46%, #b88840 100%);
  color: #17120a;
  border: 1px solid rgba(241, 215, 155, 0.55);
  box-shadow: 0 10px 30px rgba(216, 168, 80, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.primary:hover, .studio-main .primary:hover {
  background: linear-gradient(135deg, #f7e4b4 0%, #e0b35f 46%, #c49548 100%);
  box-shadow: 0 14px 38px rgba(216, 168, 80, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.heading-link:hover, .topbar-link:hover, .home-text-link:hover { color: var(--accent-2); }

/* Display accents. */
.page-heading h1 em, .home-page h1 em, .home-page h2 em {
  background: linear-gradient(90deg, #f7e6bc, #d8a850 58%, #c29145);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow { color: var(--accent-text); }
.section-heading p, .page-heading p { color: var(--muted); }

/* Result and style details. */
.opus-ring { background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(216, 168, 80, 0.12) 0); }
.opus-platform-tab.active { background: rgba(216, 168, 80, 0.16); color: var(--accent-text); border-color: var(--line-strong); }
.opus-chip, .style-tile.active { background: rgba(216, 168, 80, 0.12); color: var(--accent-text); }
.style-tile.active { border-color: var(--line-strong) !important; }
.chip { background: rgba(216, 168, 80, 0.05); }

/* Homepage surfaces. */
.home-page { background: transparent; }
.home-showcase, .home-insight, .home-final, .home-step, .home-product, .look-card {
  border-color: var(--line) !important;
  background-color: rgba(14, 17, 23, 0.82);
}
.home-showcase { background: radial-gradient(circle at 82% 82%, rgba(216, 168, 80, 0.16), transparent 46%), linear-gradient(180deg, rgba(20, 24, 33, 0.94), rgba(10, 13, 19, 0.96)); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45); }
.home-header { border-bottom-color: var(--line-strong); }
.home-header-cta { border-color: var(--line-strong); }
.home-button { background: linear-gradient(135deg, #f1d79b, #d8a850 55%, #b88840); color: #17120a !important; box-shadow: 0 12px 32px rgba(216, 168, 80, 0.20); }
.home-button:hover { background: linear-gradient(135deg, #f7e4b4, #e0b35f 55%, #c49548); }


/* Keep the grid/aurora behind real content (negative z-index can fall behind the body paint). */
html { background: var(--bg); }
body::before, body::after { z-index: 0; }
body > * { position: relative; z-index: 1; }


/* Stronger gold framing: gradient hairline on the main surfaces, not flat gray. */
.studio-main .form, .studio-main .preview-inner, .studio-main .results,
.studio-main .opus-card, .advanced, .jobs-history li, .home-showcase,
.home-insight, .home-final, .home-step, .home-product, .look-card {
  border: 1px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(20, 24, 33, 0.96), rgba(10, 13, 19, 0.97)) padding-box,
    linear-gradient(135deg, rgba(241, 215, 155, 0.62), rgba(216, 168, 80, 0.12) 42%, rgba(216, 168, 80, 0.40)) border-box !important;
  box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.06), 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(216, 168, 80, 0.08);
}
.studio-main .opus-card { background: linear-gradient(180deg, rgba(24, 28, 38, 0.94), rgba(13, 16, 22, 0.96)) padding-box, linear-gradient(135deg, rgba(241, 215, 155, 0.50), rgba(216, 168, 80, 0.10) 45%, rgba(216, 168, 80, 0.34)) border-box !important; }
.studio-main .form, .studio-main .preview-inner { box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.08), 0 30px 90px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(216, 168, 80, 0.55), transparent); pointer-events: none; }


/* Final framing pass: 2px gold gradient on the primary working surfaces so the
   theme is unmistakable at normal zoom, with a light glass fill instead of flat gray. */
.studio-main .form, .studio-main .preview-inner, .studio-main .results {
  border: 2px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(22, 27, 37, 0.78), rgba(9, 12, 18, 0.88)) padding-box,
    linear-gradient(135deg, rgba(247, 230, 188, 0.95), rgba(216, 168, 80, 0.22) 38%, rgba(216, 168, 80, 0.62)) border-box !important;
  box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.16), 0 0 46px rgba(216, 168, 80, 0.10), 0 30px 90px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}
.studio-main .opus-card, .advanced, .jobs-history li {
  border-width: 1px !important;
  background:
    linear-gradient(180deg, rgba(22, 27, 37, 0.88), rgba(10, 13, 19, 0.94)) padding-box,
    linear-gradient(135deg, rgba(241, 215, 155, 0.62), rgba(216, 168, 80, 0.12) 45%, rgba(216, 168, 80, 0.42)) border-box !important;
}
.studio-main .tabs, .product-switch { border-color: rgba(216, 168, 80, 0.34) !important; background: rgba(9, 12, 18, 0.66); }
.input, .studio-main .input { border-color: rgba(216, 168, 80, 0.28) !important; }
.studio-main .input-hero { border-color: rgba(216, 168, 80, 0.58) !important; box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.16), 0 0 38px rgba(216, 168, 80, 0.10); }
.studio-main .tab.active, .product-tab.active { box-shadow: inset 0 0 0 1px rgba(241, 215, 155, 0.22), 0 0 22px rgba(216, 168, 80, 0.10); }


/* Gold hairlines on the small controls too, so the system reads consistently. */
.tab, .product-tab, .style-tile, .post-btn, .mini-btn, .chip, .system-status,
.heading-link, .preview-badge, .opus-platform-tab, .opus-copy, .opus-cap-tab,
.opus-cap-tabs, .opus-trim, .opus-reason, .post-pack, .modal, .empty-state,
.home-header-cta, .home-button, .home-text-link {
  border-color: rgba(216, 168, 80, 0.26) !important;
}
.tab.active, .product-tab.active, .opus-cap-tab.active { border-color: rgba(216, 168, 80, 0.48) !important; }


/* Homepage: make the same gold framing visible on the marketing surfaces. */
.home-header-cta { border: 1px solid rgba(216, 168, 80, 0.55) !important; background: rgba(216, 168, 80, 0.08); }
.home-button { border: 1px solid rgba(247, 230, 188, 0.70) !important; }
.home-text-link { border-bottom-color: rgba(216, 168, 80, 0.50) !important; }
.home-showcase {
  border: 2px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(22, 27, 37, 0.84), rgba(9, 12, 18, 0.92)) padding-box,
    linear-gradient(135deg, rgba(247, 230, 188, 0.80), rgba(216, 168, 80, 0.18) 42%, rgba(216, 168, 80, 0.52)) border-box !important;
  box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.12), 0 0 50px rgba(216, 168, 80, 0.08), 0 30px 90px rgba(0, 0, 0, 0.48);
}
.home-insight, .home-final, .home-step, .home-product, .look-card {
  border: 1px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(20, 24, 33, 0.86), rgba(10, 13, 19, 0.92)) padding-box,
    linear-gradient(135deg, rgba(241, 215, 155, 0.45), rgba(216, 168, 80, 0.08) 45%, rgba(216, 168, 80, 0.30)) border-box !important;
}


/* Solid gold rim on the primary Studio surfaces: the gradient rim was too subtle
   at 1x on some displays. Keep the glass fill, but make the frame unmistakable. */
.studio-main .form, .studio-main .preview-inner, .studio-main .results {
  border: 2px solid rgba(216, 168, 80, 0.52) !important;
  background: linear-gradient(180deg, rgba(22, 27, 37, 0.82), rgba(9, 12, 18, 0.92)) !important;
  box-shadow: 0 0 0 1px rgba(216, 168, 80, 0.16), 0 0 34px rgba(216, 168, 80, 0.10), 0 30px 90px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.studio-main .opus-card { border: 1px solid rgba(216, 168, 80, 0.34) !important; }
.advanced, .jobs-history li { border: 1px solid rgba(216, 168, 80, 0.28) !important; }


/* ------------------------------------------------------------------ border system
   One rule: every framed surface uses the same 1px gold hairline. The earlier
   passes mixed 2px gradient rims, 1px gradient rims and faint gray borders, which
   is exactly why some boxes looked gold and others did not. */
:root {
  --line: rgba(216, 168, 80, 0.48);
  --line-strong: rgba(216, 168, 80, 0.70);
}
.studio-main .form,
.studio-main .preview-inner,
.studio-main .results,
.studio-main .opus-card,
.advanced,
.jobs-history li,
.post-pack,
.opus-captions,
.opus-reason,
.opus-trim,
.empty-state,
.modal,
.style-tile,
.tabs,
.product-switch,
.upload-zone,
.system-status,
.heading-link,
.preview-badge,
.chip,
.post-btn,
.mini-btn,
.opus-platform-tab,
.opus-copy,
.opus-cap-tabs,
.opus-cap-tab,
.preview-frame:not(.with-image),
.topbar {
  border: 1px solid var(--line-strong) !important;
  background-image: none !important;
}
.studio-main .form,
.studio-main .preview-inner,
.studio-main .results {
  background-color: rgba(17, 21, 29, 0.94) !important;
}
.studio-main .opus-card,
.advanced,
.jobs-history li,
.post-pack,
.opus-captions,
.opus-reason,
.opus-trim,
.modal,
.style-tile,
.tabs,
.product-switch,
.upload-zone {
  background-color: rgba(17, 21, 29, 0.86) !important;
}
.input,
.studio-main .input,
.studio-main .input-hero,
select.input,
input[type="file"].input {
  border: 1px solid var(--line) !important;
}
.input:focus,
.studio-main .input:focus,
.studio-main .input-hero:focus {
  border-color: var(--line-strong) !important;
}
.preview-safe { border-color: rgba(216, 168, 80, 0.50) !important; }
.tab.active,
.product-tab.active,
.style-tile.active,
.opus-platform-tab.active,
.opus-cap-tab.active,
.nav-link.active {
  border-color: var(--line-strong) !important;
}
.post-btn:hover:not(:disabled),
.mini-btn:hover,
.heading-link:hover,
.system-status:hover { border-color: var(--line-strong) !important; }


/* Style preview thumbnails also use the gold hairline, so no box is left gray. */
.style-sample { border-color: rgba(216, 168, 80, 0.38) !important; }


/* Inactive segmented controls are boxes too; give them the same gold outline
   instead of leaving them borderless and reading as gray. */
.tab,
.product-tab {
  border: 1px solid rgba(216, 168, 80, 0.44) !important;
  background-color: rgba(12, 15, 21, 0.55) !important;
}
.tab:hover,
.product-tab:hover { border-color: rgba(216, 168, 80, 0.55) !important; }
.tab.active,
.product-tab.active { border-color: rgba(216, 168, 80, 0.72) !important; }
.home-text-link { border-bottom: 1px solid rgba(216, 168, 80, 0.55) !important; }


/* The segmented group no longer needs its own frame once every segment is outlined. */
.tabs, .product-switch {
  border-color: transparent !important;
  background: transparent !important;
}


.studio-main .input-hero { border-color: rgba(216, 168, 80, 0.72) !important; }
.studio-main .input:focus, .input:focus { border-color: rgba(216, 168, 80, 0.85) !important; }


/* Final pass: solid gold, not translucent gold. On a near-black UI a 40-70%
   alpha gold reads as brown/gray on many panels, which is why some boxes still
   looked unframed. Use an opaque gold hairline everywhere. */
.studio-main .form,
.studio-main .preview-inner,
.studio-main .results,
.studio-main .opus-card,
.advanced,
.jobs-history li,
.post-pack,
.opus-captions,
.opus-reason,
.opus-trim,
.empty-state,
.modal,
.style-tile,
.tab,
.product-tab,
.upload-zone,
.system-status,
.heading-link,
.preview-badge,
.chip,
.post-btn,
.mini-btn,
.opus-platform-tab,
.opus-copy,
.opus-cap-tabs,
.opus-cap-tab,
.preview-frame,
.topbar {
  border: 1px solid #d8a850 !important;
}
.tab,
.product-tab,
.chip,
.style-tile,
.preview-badge {
  border-color: #b8893f !important;
}
.tab.active,
.product-tab.active,
.style-tile.active,
.opus-platform-tab.active,
.opus-cap-tab.active,
.nav-link.active,
.post-btn:hover:not(:disabled),
.heading-link:hover {
  border-color: #f1d79b !important;
}
.input,
.studio-main .input,
select.input,
input[type="file"].input {
  border: 1px solid #b8893f !important;
}
.studio-main .input-hero {
  border: 1px solid #d8a850 !important;
}
.input:focus,
.studio-main .input:focus,
.studio-main .input-hero:focus {
  border-color: #f1d79b !important;
}
.style-sample { border-color: #b8893f !important; }


/* Make the gold frame unmistakable at normal zoom: 2px on every framed surface,
   including inactive tabs and inputs, all with the same opaque gold. */
.studio-main .form,
.studio-main .preview-inner,
.studio-main .results,
.studio-main .opus-card,
.advanced,
.jobs-history li,
.post-pack,
.opus-captions,
.opus-reason,
.opus-trim,
.empty-state,
.modal,
.style-tile,
.tab,
.product-tab,
.upload-zone,
.system-status,
.heading-link,
.preview-badge,
.post-btn,
.mini-btn,
.opus-platform-tab,
.opus-copy,
.opus-cap-tabs,
.opus-cap-tab,
.preview-frame,
.input,
.studio-main .input,
select.input,
input[type="file"].input,
.studio-main .input-hero {
  border: 2px solid #d8a850 !important;
}
.tab,
.product-tab,
.chip,
.style-tile,
.preview-badge,
.post-btn,
.mini-btn {
  border-color: #d8a850 !important;
}
.tab.active,
.product-tab.active,
.style-tile.active,
.opus-platform-tab.active,
.opus-cap-tab.active,
.nav-link.active,
.input:focus,
.studio-main .input:focus,
.studio-main .input-hero:focus {
  border-color: #f1d79b !important;
}
.studio-nav { overflow-y: auto; }


/* ================================================================= typography
   One coherent type system: Inter for UI/body, Montserrat for display. Static
   font files are declared with their real weights so the browser stops
   synthesising fake bold, and sizes use a tighter scale with balanced wrapping. */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-600.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-900.ttf") format("truetype"); font-weight: 800 900; font-display: swap; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  font-weight: 400;
}
h1, h2, h3, h4, .brand-name {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
.page-heading h1 {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.page-heading p { font-size: 13.5px; line-height: 1.65; }
.eyebrow { font-size: 10.5px; letter-spacing: 0.16em; font-weight: 600; }
.section-heading h2 { font-size: 18px; line-height: 1.3; letter-spacing: -0.025em; font-weight: 700; }
.section-heading p { font-size: 12.5px; line-height: 1.6; }
.panel-title { font-size: 11px; letter-spacing: 0.14em; font-weight: 600; }
.field > span { font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.input { font-size: 14px; }
.check { font-size: 13px; line-height: 1.45; }
.primary { font-size: 14.5px; font-weight: 600; letter-spacing: 0; }
.nav-link { font-size: 13px; font-weight: 500; letter-spacing: -0.005em; }
.brand-sub { font-size: 11px; letter-spacing: 0.12em; font-weight: 600; }
.topbar-link, .system-status { font-size: 12px; }
.opus-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.opus-why, .opus-reason-item { font-size: 13.5px; line-height: 1.6; }
.opus-hook { font-size: 14px; line-height: 1.5; }
.jobs-history h3 { font-size: 11px; letter-spacing: 0.14em; }
.brand-name { font-size: 15.5px; }
.brand-by { font-size: 10px; }


/* Typography polish: clearer hierarchy and calmer helper text. */
.page-heading h1 { font-size: clamp(30px, 2.8vw, 38px); }
.page-heading p { font-size: 14px; line-height: 1.65; }
.section-heading h2 { font-size: 19px; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.12em; }
.hint, #form-error { font-size: 12.5px; line-height: 1.65; color: #8f97a3; }
.preview-safe {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 249, 235, 0.78);
  border-color: rgba(216, 168, 80, 0.55);
}
.preview-channel { font-size: 10px; letter-spacing: 0.14em; }
.preview-badge { font-size: 10.5px; letter-spacing: 0.06em; }


/* Final readability pass from the visual review. */
.nav-group-label { font-size: 10.5px; letter-spacing: 0.14em; color: #8b93a0; }
.hint, #form-error { font-size: 13px; line-height: 1.65; }
.section-heading p { font-size: 13px; line-height: 1.65; }


/* Preview helper text was the last low-contrast element. */
.preview-footer strong { font-size: 15px; }
.preview-footer span { font-size: 12.5px; line-height: 1.6; color: #a3abb6; }
.preview-channel { font-size: 10.5px; color: #f3ead9; }

/* ------------------------------------------------------------------ akun sosmed */
/* The accounts menu lists one card per platform and one row per linked account, so a
   platform holding several channels never collapses into a single ambiguous label. */
#accounts { grid-column: 1 / -1; }
.accounts-list { display: grid; gap: 10px; margin-top: 4px; }
.account-card { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); }
.account-head { display: flex; align-items: center; gap: 12px; }
.account-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.account-name strong { font-size: 13.5px; color: var(--text); font-weight: 600; }
.account-state { font-size: 11.5px; color: var(--dim); }
.account-linked { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.account-linked li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--surface); }
.account-linked-name { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-pill { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--ok); border: 1px solid rgba(74, 222, 128, 0.35); border-radius: 999px; padding: 2px 8px; }
.account-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-actions .mini-btn.primary { color: var(--accent-text); border-color: var(--line-strong); background: var(--accent-soft); }
.account-actions .mini-btn.primary:hover { color: var(--accent-2); border-color: var(--accent); }
.account-note { font-size: 11px; color: var(--dim); }
.accounts-hint { margin-top: 14px; }

.account-input { flex: 1 1 160px; min-width: 120px; max-width: 240px; }
.account-linked li { flex-wrap: wrap; }
.account-linked li .mini-btn.link-danger { border-color: rgba(248, 113, 113, 0.35); color: var(--err); }
.account-linked li .mini-btn.link-danger:hover { border-color: var(--err); }
.channel-picker { max-width: 150px; padding: 4px 8px; font-size: 11.5px; }
.post-platform-row { flex-wrap: wrap; }
