:root {
    --ohyt-bg: #070b16;
    --ohyt-panel: #101725;
    --ohyt-panel-2: #151f31;
    --ohyt-line: rgba(255,255,255,.11);
    --ohyt-text: #f4f8ff;
    --ohyt-muted: #9bacbf;
    --ohyt-cyan: #51d9ff;
    --ohyt-green: #53f5b3;
    --ohyt-purple: #8a5cff;
    --ohyt-danger: #ff5576;
}
.ohyt-admin-wrap { margin: 18px 18px 0 0; }
.ohyt-app { color: var(--ohyt-text); background: radial-gradient(circle at 10% 0%, #18254a 0, var(--ohyt-bg) 34%, #050811 100%); border: 1px solid var(--ohyt-line); border-radius: 24px; overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,.26); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.ohyt-app * { box-sizing: border-box; }
.ohyt-hero { display: flex; gap: 30px; justify-content: space-between; align-items: center; padding: 34px 38px; background: linear-gradient(115deg, rgba(138,92,255,.28), rgba(81,217,255,.09)); border-bottom: 1px solid var(--ohyt-line); }
.ohyt-kicker { color: var(--ohyt-green); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; }
.ohyt-hero h1 { margin: 7px 0 8px; color: white; font-size: clamp(25px, 3vw, 43px); line-height: 1.06; }
.ohyt-hero p { margin: 0; color: #b7c7da; max-width: 780px; font-size: 15px; }
.ohyt-hero-actions { min-width: 280px; display: grid; gap: 10px; }
.ohyt-app input[type="text"], .ohyt-app input[type="url"], .ohyt-app input[type="number"], .ohyt-app input[type="password"], .ohyt-app textarea, .ohyt-app select { width: 100%; min-height: 40px; padding: 8px 11px; color: var(--ohyt-text); background: #080e1b; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; box-shadow: none; }
.ohyt-app textarea { resize: vertical; }
.ohyt-app input[type="color"] { width: 100%; height: 40px; padding: 3px; background: #080e1b; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; }
.ohyt-app input[type="range"] { width: 100%; accent-color: var(--ohyt-cyan); }
.ohyt-app label { color: #dbe7f7; font-weight: 650; font-size: 12px; display: grid; gap: 6px; }
.ohyt-app small, .ohyt-app .description { color: var(--ohyt-muted); font-weight: 400; }
.ohyt-app .button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 14px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); color: #eaf6ff; background: #172238; box-shadow: none; font-weight: 700; cursor: pointer; }
.ohyt-app .button:hover { color: white; border-color: var(--ohyt-cyan); background: #1d2b45; }
.ohyt-app .button-primary { color: #07111d; background: linear-gradient(135deg, var(--ohyt-cyan), var(--ohyt-green)); border: 0; }
.ohyt-app .button-primary:hover { color: #07111d; filter: brightness(1.08); }
.ohyt-app .button:disabled { opacity: .45; cursor: not-allowed; }
.ohyt-app .button-hero { min-height: 44px; }
.ohyt-rights-banner { display: flex; gap: 7px; align-items: center; padding: 11px 38px; color: #d9fff0; background: rgba(83,245,179,.09); border-bottom: 1px solid rgba(83,245,179,.2); font-size: 12px; }
.ohyt-tabs { display: flex; gap: 5px; padding: 13px 25px 0; overflow-x: auto; background: #090e1a; }
.ohyt-tab { padding: 14px 18px; color: var(--ohyt-muted); background: transparent; border: 0; border-bottom: 3px solid transparent; font-weight: 800; white-space: nowrap; cursor: pointer; }
.ohyt-tab.is-active { color: white; border-color: var(--ohyt-cyan); }
.ohyt-panel { display: none; padding: 24px; }
.ohyt-panel.is-active { display: block; }
.ohyt-source-card { display: grid; grid-template-columns: minmax(300px, 1fr) 250px; gap: 18px; align-items: end; padding: 18px; background: var(--ohyt-panel); border: 1px solid var(--ohyt-line); border-radius: 16px; }
.ohyt-field { display: grid; gap: 7px; }
.ohyt-field-grow { min-width: 0; }
.ohyt-inline { display: flex; gap: 8px; }
.ohyt-inline input { min-width: 0; }
.ohyt-check { grid-column: 1 / -1; display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: flex-start; padding: 10px 12px; background: rgba(255,210,72,.08); border: 1px solid rgba(255,210,72,.2); border-radius: 10px; }
.ohyt-file-button { display: inline-flex !important; width: max-content; }
.ohyt-youtube-reference { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: center; margin-top: 16px; padding: 15px; background: var(--ohyt-panel); border: 1px solid var(--ohyt-line); border-radius: 16px; }
.ohyt-youtube-reference iframe { width: 240px; aspect-ratio: 16/9; border: 0; border-radius: 10px; }
.ohyt-youtube-reference strong { font-size: 16px; }
.ohyt-youtube-reference p { margin: 7px 0 0; color: var(--ohyt-muted); }
.ohyt-workspace { display: grid; grid-template-columns: 165px minmax(440px, 1fr) 265px; gap: 15px; margin-top: 18px; align-items: start; }
.ohyt-toolbar, .ohyt-properties, .ohyt-stage-wrap { background: var(--ohyt-panel); border: 1px solid var(--ohyt-line); border-radius: 16px; }
.ohyt-toolbar, .ohyt-properties { padding: 14px; position: sticky; top: 46px; }
.ohyt-toolbar h3, .ohyt-properties h3 { margin: 0 0 12px; color: white; }
.ohyt-toolbar button { width: 100%; display: flex; gap: 7px; align-items: center; padding: 10px; margin-bottom: 7px; color: #dce8f8; background: #151f31; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; cursor: pointer; text-align: left; font-weight: 650; }
.ohyt-toolbar button:hover { border-color: var(--ohyt-cyan); background: #1b2941; }
.ohyt-toolbar hr { border: 0; border-top: 1px solid var(--ohyt-line); margin: 12px 0; }
.ohyt-toolbar .is-danger, .ohyt-project-actions .is-danger { color: #ffdce4; border-color: rgba(255,85,118,.3); }
.ohyt-stage-wrap { padding: 13px; min-width: 0; }
.ohyt-stage-label { display: flex; justify-content: space-between; padding: 0 3px 10px; color: var(--ohyt-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ohyt-canvas-shell { position: relative; width: 100%; background: #02040a; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 15px 34px rgba(0,0,0,.35); }
.ohyt-canvas-shell canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
#ohyt-source-video { position: absolute; width: 1px; height: 1px; opacity: .001; pointer-events: none; }
.ohyt-playback { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding-top: 12px; }
.ohyt-playback span { min-width: 105px; text-align: right; color: var(--ohyt-muted); font-variant-numeric: tabular-nums; }
.ohyt-properties label { margin-bottom: 10px; }
.ohyt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ohyt-empty-state { padding: 18px 10px; color: var(--ohyt-muted); text-align: center; background: #0b1220; border: 1px dashed rgba(255,255,255,.16); border-radius: 10px; line-height: 1.5; }
.ohyt-export-card { display: grid; grid-template-columns: minmax(260px, 1fr) 170px auto auto minmax(120px, 220px) minmax(120px, auto); gap: 13px; align-items: center; margin-top: 18px; padding: 18px; background: linear-gradient(120deg, rgba(81,217,255,.11), rgba(138,92,255,.14)); border: 1px solid rgba(81,217,255,.2); border-radius: 16px; }
.ohyt-export-card h3 { margin: 0 0 5px; color: white; }
.ohyt-export-card p { margin: 0; color: var(--ohyt-muted); }
.ohyt-export-card progress { width: 100%; height: 10px; accent-color: var(--ohyt-green); }
.ohyt-template-strip { display: grid; grid-template-columns: minmax(280px, 1fr) repeat(4, auto); gap: 10px; align-items: center; padding: 16px; background: var(--ohyt-panel); border: 1px solid var(--ohyt-line); border-radius: 16px; }
.ohyt-template-strip h2 { margin: 0 0 4px; color: white; }
.ohyt-template-strip p { margin: 0; color: var(--ohyt-muted); }
.ohyt-template-strip button { min-height: 42px; padding: 9px 14px; color: white; background: linear-gradient(135deg, #1a2944, #302058); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; font-weight: 800; cursor: pointer; }
.ohyt-template-strip button:hover { border-color: var(--ohyt-green); }
.ohyt-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.ohyt-section-heading h2 { margin: 0 0 5px; color: white; }
.ohyt-section-heading p { margin: 0; color: var(--ohyt-muted); }
.ohyt-project-list { display: grid; gap: 12px; }
.ohyt-project-card { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 13px; background: var(--ohyt-panel); border: 1px solid var(--ohyt-line); border-radius: 15px; }
.ohyt-project-thumb { display: grid; place-items: center; min-height: 84px; background: linear-gradient(135deg, #18254a, #6f2cff); background-size: cover; background-position: center; border-radius: 10px; }
.ohyt-project-thumb .dashicons { width: 42px; height: 42px; font-size: 42px; }
.ohyt-project-card h3 { margin: 0 0 5px; color: white; }
.ohyt-project-card p { margin: 0; color: var(--ohyt-muted); }
.ohyt-project-actions { display: flex; gap: 8px; }
.ohyt-loading, .ohyt-empty-projects { padding: 45px; color: var(--ohyt-muted); text-align: center; background: var(--ohyt-panel); border: 1px dashed var(--ohyt-line); border-radius: 16px; }
.ohyt-youtube-upload-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; align-items: center; padding: 22px; background: linear-gradient(120deg, rgba(255,0,57,.15), rgba(138,92,255,.1)); border: 1px solid rgba(255,80,110,.25); border-radius: 17px; }
.ohyt-youtube-brand { display: grid; place-items: center; width: 70px; height: 52px; color: white; background: #ff0039; border-radius: 15px; font-size: 26px; }
.ohyt-youtube-upload-card h2 { margin: 0 0 7px; color: white; }
.ohyt-youtube-upload-card p { margin: 3px 0; color: var(--ohyt-muted); }
.ohyt-connected { display: inline-flex; margin-right: 9px; padding: 7px 11px; color: #07170f; background: var(--ohyt-green); border-radius: 999px; font-weight: 900; }
.ohyt-upload-form { max-width: 760px; display: grid; gap: 13px; margin-top: 18px; padding: 22px; background: var(--ohyt-panel); border: 1px solid var(--ohyt-line); border-radius: 17px; }
.ohyt-upload-form h3 { margin: 0; color: white; }
#ohyt-youtube-upload-result { color: var(--ohyt-muted); }
#ohyt-youtube-upload-result a { color: var(--ohyt-cyan); }
#ohyt-toast { position: fixed; right: 25px; bottom: 25px; z-index: 999999; max-width: 420px; padding: 14px 18px; color: white; background: #152338; border: 1px solid var(--ohyt-cyan); border-radius: 12px; box-shadow: 0 18px 55px rgba(0,0,0,.4); opacity: 0; transform: translateY(16px); pointer-events: none; transition: .2s ease; }
#ohyt-toast.is-visible { opacity: 1; transform: translateY(0); }
#ohyt-toast.is-error { border-color: var(--ohyt-danger); }
.ohyt-settings-wrap { max-width: 940px; }
.ohyt-settings-form { display: grid; gap: 18px; }
.ohyt-settings-form section { display: grid; gap: 14px; padding: 22px; background: #fff; border: 1px solid #dcdcde; border-radius: 12px; }
.ohyt-settings-form section h2 { margin: 0; }
.ohyt-settings-form label { display: grid; gap: 7px; font-weight: 650; }
.ohyt-settings-form input[type="text"], .ohyt-settings-form input[type="password"], .ohyt-settings-form input[type="number"], .ohyt-settings-form textarea { width: 100%; max-width: 760px; }
.ohyt-settings-form code { display: block; padding: 12px; overflow-wrap: anywhere; }
.ohyt-notice { padding: 15px; border: 1px solid #dcdcde; border-left: 4px solid #2271b1; background: white; }

@media (max-width: 1250px) {
    .ohyt-workspace { grid-template-columns: 145px minmax(400px, 1fr); }
    .ohyt-properties { grid-column: 1 / -1; position: static; }
    .ohyt-property-fields { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 10px; }
    .ohyt-export-card { grid-template-columns: 1fr 160px auto auto; }
    .ohyt-export-card progress, .ohyt-export-card > span { grid-column: span 2; }
    .ohyt-template-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
    .ohyt-admin-wrap { margin-right: 10px; }
    .ohyt-hero { padding: 25px; align-items: stretch; flex-direction: column; }
    .ohyt-hero-actions { min-width: 0; }
    .ohyt-panel { padding: 14px; }
    .ohyt-source-card, .ohyt-workspace, .ohyt-youtube-upload-card, .ohyt-project-card { grid-template-columns: 1fr; }
    .ohyt-check { grid-column: auto; }
    .ohyt-toolbar, .ohyt-properties { position: static; }
    .ohyt-toolbar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .ohyt-toolbar h3, .ohyt-toolbar hr { grid-column: 1 / -1; }
    .ohyt-toolbar button { margin: 0; }
    .ohyt-property-fields { grid-template-columns: 1fr; }
    .ohyt-grid-2 { grid-template-columns: 1fr; }
    .ohyt-export-card, .ohyt-template-strip { grid-template-columns: 1fr; }
    .ohyt-export-card progress, .ohyt-export-card > span { grid-column: auto; }
    .ohyt-youtube-reference { grid-template-columns: 1fr; }
    .ohyt-youtube-reference iframe { width: 100%; }
    .ohyt-project-actions { justify-content: flex-start; }
}

/* v2.0 single-dashboard creator suite */
.ohyt-dashboard-tabs { scrollbar-width: thin; }
.ohyt-home-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ohyt-home-card { min-height:180px; padding:22px; background:linear-gradient(145deg,rgba(20,31,52,.98),rgba(10,17,31,.98)); border:1px solid var(--ohyt-line); border-radius:18px; box-shadow:0 16px 38px rgba(0,0,0,.18); }
.ohyt-home-card-main { grid-column:span 2; background:linear-gradient(130deg,rgba(111,44,255,.25),rgba(81,217,255,.11)),var(--ohyt-panel); }
.ohyt-home-card h2,.ohyt-home-card h3 { color:#fff; margin:6px 0 9px; }
.ohyt-home-card p { color:var(--ohyt-muted); line-height:1.55; }
.ohyt-home-card strong { color:#fff; }
.ohyt-ai-grid,.ohyt-api-grid { display:grid; grid-template-columns:minmax(320px,.9fr) minmax(360px,1.1fr); gap:18px; align-items:start; }
.ohyt-ai-grid .ohyt-upload-form,.ohyt-api-grid .ohyt-upload-form { max-width:none; margin-top:0; }
.ohyt-ai-result { min-height:420px; padding:24px; color:var(--ohyt-muted); background:radial-gradient(circle at 90% 5%,rgba(81,217,255,.11),transparent 40%),var(--ohyt-panel); border:1px solid var(--ohyt-line); border-radius:17px; }
.ohyt-ai-result h3,.ohyt-ai-result h4 { color:#fff; }
.ohyt-ai-result h4 { margin:20px 0 6px; }
.ohyt-ai-result p { line-height:1.6; }
.ohyt-pill { display:inline-flex; align-items:center; width:max-content; padding:6px 10px; color:#07170f; background:var(--ohyt-green); border-radius:999px; font-size:11px; font-weight:900; letter-spacing:.04em; }
.ohyt-hook-list { display:flex; flex-wrap:wrap; gap:8px; }
.ohyt-template-library { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.ohyt-template-card { overflow:hidden; background:var(--ohyt-panel); border:1px solid var(--ohyt-line); border-radius:16px; transition:transform .18s ease,border-color .18s ease; }
.ohyt-template-card:hover { transform:translateY(-3px); border-color:rgba(81,217,255,.55); }
.ohyt-template-preview { position:relative; aspect-ratio:16/9; padding:14px; overflow:hidden; background:linear-gradient(135deg,var(--ohyt-template-a),var(--ohyt-template-b)); }
.ohyt-template-preview:after { content:""; position:absolute; right:-8%; bottom:-25%; width:48%; aspect-ratio:1; border-radius:48% 48% 12% 12%; background:rgba(255,255,255,.18); box-shadow:0 0 0 8px rgba(255,255,255,.05); transform:rotate(7deg); }
.ohyt-template-preview strong { position:absolute; z-index:2; left:14px; top:28%; width:64%; color:#fff; font-size:clamp(15px,1.3vw,24px); line-height:.95; text-transform:uppercase; text-shadow:0 3px 0 rgba(0,0,0,.65); }
.ohyt-template-preview span { position:relative; z-index:2; display:inline-flex; padding:5px 7px; color:#07111d; background:#fff; border-radius:7px; font-size:10px; font-weight:950; }
.ohyt-template-card > div:last-child { padding:14px; }
.ohyt-template-card small { color:var(--ohyt-green); text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.ohyt-template-card h3 { margin:5px 0 12px; color:#fff; font-size:15px; }
.ohyt-usage-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.ohyt-usage-grid article { display:grid; gap:7px; min-height:120px; padding:20px; background:var(--ohyt-panel); border:1px solid var(--ohyt-line); border-radius:16px; }
.ohyt-usage-grid span { color:var(--ohyt-muted); font-size:12px; font-weight:750; text-transform:uppercase; letter-spacing:.07em; }
.ohyt-usage-grid strong { color:#fff; font-size:26px; }
.ohyt-inline-status { margin-left:10px; color:var(--ohyt-muted); }
.ohyt-role-table-wrap { overflow:auto; }
.ohyt-role-table input[type="number"] { width:82px; }
.ohyt-role-table th,.ohyt-role-table td { vertical-align:middle; }

@media (max-width: 1100px) {
    .ohyt-home-grid { grid-template-columns:1fr 1fr; }
    .ohyt-template-library { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .ohyt-usage-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 800px) {
    .ohyt-home-grid,.ohyt-ai-grid,.ohyt-api-grid,.ohyt-usage-grid { grid-template-columns:1fr; }
    .ohyt-home-card-main { grid-column:auto; }
    .ohyt-template-library { grid-template-columns:1fr 1fr; }
    .ohyt-section-heading { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 520px) {
    .ohyt-template-library { grid-template-columns:1fr; }
}

/* v2.0.1 production hardening */
.ohyt-variant-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ohyt-credit-ledger{margin-top:22px;padding:18px;border:1px solid rgba(127,127,127,.2);border-radius:14px;background:rgba(127,127,127,.04)}
.ohyt-ledger-list{display:grid;gap:8px}
.ohyt-ledger-list>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid rgba(127,127,127,.15)}
.ohyt-ledger-list>div:last-child{border-bottom:0}
.ohyt-ledger-list strong{white-space:nowrap}
