:root{color-scheme:dark;--bg:#0f1115;--bg-elevated:#161920;--border:#262b35;--text:#e6e8eb;--text-muted:#9aa2af;--accent:#5865f2;--accent-hover:#4752c4;--danger:#ef4444;--success:#22c55e;--warn:#eab308;--radius:8px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}a{color:inherit}button,input,select,textarea{font-family:inherit;font-size:.9rem}input,select,textarea{width:100%;background:var(--bg);border:1px solid var(--border);color:var(--text);border-radius:var(--radius);padding:.5rem .7rem}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}button{cursor:pointer;border:1px solid var(--border);background:var(--bg-elevated);color:var(--text);border-radius:var(--radius);padding:.5rem .9rem;transition:background .15s ease}button:hover{background:var(--border)}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover{background:var(--accent-hover)}a.button{display:inline-block;text-decoration:none;cursor:pointer;border:1px solid var(--border);background:var(--bg-elevated);color:var(--text);border-radius:var(--radius);padding:.5rem .9rem}a.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}a.button.primary:hover{background:var(--accent-hover)}button.danger{border-color:var(--danger);color:var(--danger);background:transparent}button.danger:hover{background:rgba(239,68,68,.1)}button:disabled{opacity:.5;cursor:not-allowed}.card{background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem}.badge{display:inline-block;padding:.15rem .55rem;border-radius:999px;font-size:.75rem;font-weight:600}.badge.ok{background:rgba(34,197,94,.15);color:var(--success)}.badge.warn{background:rgba(234,179,8,.15);color:var(--warn)}.badge.error{background:rgba(239,68,68,.15);color:var(--danger)}.badge.muted{background:rgba(154,162,175,.15);color:var(--text-muted)}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:.6rem .5rem;border-bottom:1px solid var(--border);font-size:.9rem}th{font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em}.muted,th{color:var(--text-muted)}.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem}.field label{font-size:.85rem;color:var(--text-muted)}.row{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.dashboard-shell{isolation:isolate;position:relative;background-color:#090a0d;background-image:linear-gradient(90deg,rgba(5,6,8,.55),rgba(5,6,8,.12) 55%,rgba(5,6,8,.58)),url(/assets/_Background.png);background-position:50%;background-size:cover;background-attachment:fixed}.dashboard-shell:before{content:"";position:fixed;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(circle at 55% 8%,rgba(215,32,25,.16),transparent 32%)}.dashboard-shell .dashboard-sidebar{width:250px;min-height:100vh;display:flex;flex-direction:column;flex-shrink:0;padding:1.35rem 1rem 1rem;border-right:1px solid hsla(0,0%,100%,.09);background:linear-gradient(180deg,rgba(10,10,13,.94),rgba(10,10,13,.84));box-shadow:16px 0 48px rgba(0,0,0,.38);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.dashboard-brand{display:block;margin:-.3rem -.25rem 1.4rem;border-radius:12px;transition:filter .18s ease,transform .18s ease}.dashboard-brand:hover{filter:drop-shadow(0 0 15px rgba(247,49,39,.5));transform:translateY(-1px)}.dashboard-logo{display:block;width:100%;height:auto}.dashboard-nav{display:flex;flex-direction:column;gap:.45rem}.dashboard-nav-link{display:flex;align-items:center;gap:.8rem;min-height:2.9rem;padding:.72rem .85rem;border:1px solid transparent;border-radius:12px;color:#c9cbd1;font-size:.98rem;font-weight:700;letter-spacing:.01em;text-decoration:none;transition:transform .16s ease,color .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease}.dashboard-nav-link:hover{transform:translateX(4px);border-color:rgba(255,74,64,.56);background:linear-gradient(90deg,rgba(214,36,28,.26),rgba(214,36,28,.04));box-shadow:0 0 0 1px rgba(255,67,57,.1),0 8px 22px rgba(0,0,0,.26),inset 3px 0 0 #f4453c;color:#fff}.dashboard-nav-link:active{transform:translateX(2px) scale(.98)}.dashboard-nav-link.active{border-color:rgba(255,94,83,.72);background:linear-gradient(90deg,rgba(222,42,33,.4),rgba(222,42,33,.1));box-shadow:0 0 22px rgba(238,50,39,.22),inset 3px 0 0 #ff5c52;color:#fff}.dashboard-nav-icon{display:grid;width:1.25rem;place-items:center;color:#ff655a;font-size:1.15rem;line-height:1}.dashboard-account{margin-top:auto;padding-top:1.15rem;border-top:1px solid hsla(0,0%,100%,.1)}.dashboard-account-name{margin-bottom:.75rem;font-size:.95rem;font-weight:700}.dashboard-main{width:min(100%,1120px);flex:1 1;padding:2.6rem clamp(1.25rem,4vw,3.5rem);animation:dashboard-page-in .34s ease-out both}.dashboard-main h1{margin-top:0;font-size:clamp(1.8rem,3vw,2.4rem);font-weight:800;letter-spacing:-.035em;text-shadow:0 3px 18px rgba(0,0,0,.55)}.dashboard-main h2{font-size:1.3rem;font-weight:800}.page-header{margin-bottom:1.75rem}.page-header p{max-width:62ch;margin:.4rem 0 0;color:var(--text-muted)}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:1.25rem;gap:1.25rem}.module-card{display:flex;flex-direction:column;gap:.9rem;min-height:190px}.module-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.module-card-icon{display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:12px;font-size:1.35rem;flex-shrink:0;background:linear-gradient(155deg,rgba(226,43,34,.28),rgba(255,138,61,.14));border:1px solid rgba(255,120,90,.3)}.module-card-title{font-size:1.05rem;font-weight:800}.module-card-detail{font-size:.95rem;color:var(--text-muted)}.module-card-footer{margin-top:auto;padding-top:.75rem;border-top:1px solid hsla(0,0%,100%,.08)}.stat-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));grid-gap:.85rem;gap:.85rem;margin-top:1.1rem}.stat-chip{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 1.1rem}.stat-chip-label{font-size:.82rem;color:var(--text-muted)}.stat-chip-value{font-size:1.35rem;font-weight:800}.two-col-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-gap:1.25rem;gap:1.25rem;align-items:start}@media (max-width:900px){.module-grid,.two-col-grid{grid-template-columns:1fr}}.avatar{width:2.5rem;height:2.5rem;border-radius:50%;flex-shrink:0;object-fit:cover}.avatar-fallback{display:grid;place-items:center;font-size:.78rem;font-weight:800;color:#ffd9d4;background:linear-gradient(145deg,rgba(226,43,34,.55),rgba(30,10,12,.6));border:1px solid rgba(255,120,90,.35)}.user-list{display:flex;flex-direction:column;gap:.6rem}.user-row{gap:.9rem;padding:.7rem .9rem;flex-wrap:wrap}.user-row,.user-row-identity{display:flex;align-items:center}.user-row-identity{gap:.75rem;min-width:200px;flex:1 1 220px}.user-row-name{font-weight:700;font-size:.95rem}.user-row-id{font-size:.72rem;color:var(--text-muted)}.user-row-meta{display:flex;align-items:center;gap:1.1rem;flex-wrap:wrap}.user-row-actions{display:flex;align-items:center;gap:.5rem;margin-left:auto}.user-row-actions form{display:contents}.user-row-actions select{min-height:2.2rem;padding:.3rem .5rem;font-size:.82rem}.user-row-actions button{min-height:2.2rem;padding:.35rem .7rem;font-size:.82rem}@media (max-width:700px){.user-row-actions{margin-left:0;width:100%}}.dashboard-shell .card{border:1px solid rgba(224,80,70,.3);border-radius:16px;background:linear-gradient(145deg,rgba(28,29,35,.68),rgba(13,14,18,.72));box-shadow:0 16px 36px rgba(0,0,0,.36),inset 0 1px 0 hsla(0,0%,100%,.045);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}@media (hover:hover){.dashboard-shell .card:hover{transform:translateY(-3px);border-color:rgba(255,96,84,.85);background:linear-gradient(145deg,rgba(32,33,39,.74),rgba(15,16,20,.78));box-shadow:0 22px 46px rgba(0,0,0,.46),0 0 28px rgba(235,56,45,.32),inset 0 1px 0 hsla(0,0%,100%,.06)}}.dashboard-shell input,.dashboard-shell select,.dashboard-shell textarea{min-height:2.65rem;border-color:hsla(0,0%,100%,.13);background:rgba(5,6,9,.72);font-weight:600;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.dashboard-shell input:focus,.dashboard-shell select:focus,.dashboard-shell textarea:focus{border-color:rgba(255,84,74,.8);outline:0;box-shadow:0 0 0 3px rgba(246,62,50,.18),0 8px 20px rgba(0,0,0,.22);background:rgba(5,6,9,.9)}.dashboard-shell input[type=checkbox]{min-height:auto;accent-color:#e7382f}.dashboard-shell a.button,.dashboard-shell button{min-height:2.65rem;border-color:hsla(0,0%,100%,.16);background:rgba(22,23,29,.9);font-weight:750;transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease}.dashboard-shell a.button:hover,.dashboard-shell button:hover{border-color:rgba(255,92,80,.62);background:rgba(50,18,21,.94);box-shadow:0 8px 20px rgba(0,0,0,.3),0 0 16px rgba(235,56,45,.16)}.dashboard-shell a.button:active,.dashboard-shell button:active{transform:translateY(1px) scale(.98)}.dashboard-shell a.button.primary,.dashboard-shell button.primary{border-color:#ef4d43;background:linear-gradient(135deg,#e63830,#a71820);box-shadow:0 10px 22px rgba(192,32,27,.3),inset 0 1px 0 hsla(0,0%,100%,.2)}.dashboard-shell a.button.primary:hover,.dashboard-shell button.primary:hover{background:linear-gradient(135deg,#fb5047,#bb1e27)}.dashboard-shell .field label,.dashboard-shell th{font-weight:700}.youtube-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-gap:1.75rem;gap:1.75rem;align-items:start}.youtube-editor-preview-col{position:-webkit-sticky;position:sticky;top:1.25rem}@media (max-width:950px){.youtube-editor-grid{grid-template-columns:1fr}.youtube-editor-preview-col{position:static}}@keyframes dashboard-page-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.toast{position:fixed;top:1.25rem;right:1.25rem;z-index:100;display:flex;align-items:center;gap:.6rem;padding:.75rem 1.1rem;border-radius:12px;font-size:.9rem;font-weight:600;color:#fff;background:linear-gradient(145deg,rgba(20,21,26,.96),rgba(10,11,14,.96));box-shadow:0 16px 36px rgba(0,0,0,.45);animation:toast-in .22s ease-out both}.toast-ok{border:1px solid rgba(34,197,94,.55)}.toast-ok span:first-child{color:var(--success)}.toast-error{border:1px solid rgba(239,68,68,.6)}.toast-error span:first-child{color:var(--danger)}@keyframes toast-in{0%{opacity:0;transform:translate(12px,-8px)}to{opacity:1;transform:translate(0)}}.variable-chip-row{display:flex;flex-wrap:wrap;gap:.4rem}.variable-chip{display:inline-flex;align-items:center;min-height:auto;padding:.25rem .6rem;font-size:.78rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;border-radius:999px;color:#ffcfc9;background:rgba(226,43,34,.12);border:1px solid rgba(226,43,34,.35);cursor:pointer;transition:background .15s ease,border-color .15s ease}.dashboard-shell .variable-chip:hover{background:rgba(226,43,34,.22);border-color:rgba(255,96,84,.6)}.message-composer{border:1px solid hsla(0,0%,100%,.1);border-radius:12px;background:rgba(5,6,9,.35);padding:.9rem}.message-composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.6rem}.message-composer textarea{min-height:260px;resize:vertical;line-height:1.5}.message-composer.is-large textarea{min-height:340px}.toolbar-icon-row{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem}.toolbar-icon-btn{min-height:2.1rem;padding:.3rem .6rem;font-size:.85rem;line-height:1}.card-header-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}.card-header-row h2{margin:0}button.primary.compact{min-height:2.2rem;padding:.35rem .85rem;font-size:.85rem}.options-accordion{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-elevated);margin-top:.9rem;overflow:hidden}.options-accordion summary{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;padding:.85rem 1.1rem;cursor:pointer;font-weight:700;list-style:none}.options-accordion summary::-webkit-details-marker{display:none}.options-accordion summary:before{content:"▸";margin-right:.5rem;color:var(--text-muted);transition:transform .15s ease;display:inline-block}.options-accordion[open] summary:before{transform:rotate(90deg)}.options-accordion summary:hover{background:hsla(0,0%,100%,.03)}.options-accordion-body{border-top:1px solid var(--border);padding:1rem 1.1rem 1.1rem}.dashboard-shell .options-accordion{border-color:rgba(224,80,70,.3);background:linear-gradient(145deg,rgba(28,29,35,.68),rgba(13,14,18,.72))}.settings-summary{margin-top:1rem}.summary-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.5rem 0;border-bottom:1px solid var(--border);font-size:.85rem}.mobile-publish-bar{display:none}@media (max-width:950px){.mobile-publish-bar{display:flex;position:-webkit-sticky;position:sticky;bottom:0;z-index:30;margin:1.25rem -1px -1px;padding:.75rem 1px calc(.75rem + env(safe-area-inset-bottom, 0px));background:linear-gradient(180deg,rgba(9,10,13,0),rgba(9,10,13,.96) 28%)}.mobile-publish-bar button{width:100%;min-height:3rem;font-size:.98rem}.card-header-row .compact{min-height:2rem;padding:.3rem .7rem;font-size:.8rem}}.validation-list{list-style:none;margin:.6rem 0 0;padding:0;display:flex;flex-direction:column;gap:.3rem}.validation-list li{font-size:.8rem;color:#ffcf8f;display:flex;gap:.4rem}.validation-list li:before{content:"⚠";flex-shrink:0}.youtube-auto-data{display:flex;gap:.85rem;padding:.75rem .9rem;margin-bottom:1.1rem;border:1px dashed hsla(0,0%,100%,.16);border-radius:10px;background:hsla(0,0%,100%,.02)}.youtube-auto-data-thumb{width:72px;height:54px;border-radius:6px;object-fit:cover;flex-shrink:0}.youtube-auto-data-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:.15rem}.youtube-auto-data-title{font-size:.88rem;font-weight:600}.youtube-auto-data-meta{font-size:.78rem;color:var(--text-muted)}@media (max-width:700px){.dashboard-shell{background-attachment:scroll;display:block!important}.dashboard-shell .dashboard-sidebar{width:100%;min-height:auto}.dashboard-nav{flex-direction:row;overflow-x:auto;padding-bottom:.2rem}.dashboard-nav-link{flex:0 0 auto}.dashboard-account{display:none}}