
:root{
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:#0a2346;
  background:#f3f7fc;
  line-height:1.45;
  --navy:#061d38;
  --navy-2:#092b51;
  --blue:#0b7ce9;
  --blue-2:#126bd2;
  --blue-soft:#eaf4ff;
  --ink:#0a2346;
  --muted:#6b7d92;
  --line:#dfe8f2;
  --surface:#ffffff;
  --soft:#f4f8fc;
  --green:#14965c;
  --green-bg:#e3f8ed;
  --danger:#bd3040;
  --danger-bg:#fff0f2;
  --warning:#9a5b00;
  --warning-bg:#fff4df;
  --shadow:0 12px 32px rgba(8,35,70,.08);
}
*{box-sizing:border-box}
html{min-height:100%;background:#f3f7fc}
body{margin:0;min-height:100vh;background:#f3f7fc;color:var(--ink)}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
svg{display:block}

/* top bar */
.topbar{height:76px;display:flex;align-items:center;gap:18px;padding:0 28px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}
.topbar-logo img{width:154px;height:auto;display:block}
.menu-toggle{display:none;width:42px;height:42px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}
.menu-toggle svg{width:20px;height:20px}
.topbar-search{width:min(430px,44vw);height:44px;margin-right:auto;display:flex;align-items:center;gap:10px;background:#f4f8fc;border:1px solid #e6edf5;border-radius:14px;padding:0 14px;color:#7590aa}
.topbar-search svg{width:18px;height:18px;flex:0 0 auto}
.topbar-search input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px;min-width:0}
.topbar-search input::placeholder{color:#8ba0b5}
.admin-profile{display:flex;align-items:center;gap:10px;margin-left:auto;padding-left:16px;border-left:1px solid #e4ebf3}
.admin-profile>img{width:36px;height:36px;border-radius:50%;object-fit:cover;object-position:center top;background:#e7eef6}
.admin-profile span{display:grid;line-height:1.2}
.admin-profile strong{font-size:12px}
.admin-profile small{font-size:10px;color:var(--muted);margin-top:3px}

/* login */
main{width:min(1520px,100%);margin:0 auto;padding:34px 42px 64px}
.login-card{width:min(430px,100%);margin:7vh auto 0;padding:36px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow)}
.login-card>img{width:190px;margin:0 auto 28px;display:block}
.login-eyebrow{display:block;text-align:center;color:#3976b6;font-size:10px;font-weight:800;letter-spacing:.18em;margin-bottom:10px}
.login-card h1{font-size:28px;text-align:center;letter-spacing:-.7px;margin:0 0 28px}
.login-card label{display:block;font-size:12px;font-weight:800;margin-bottom:8px}
.login-card input{width:100%;height:48px;border:1px solid #cddbea;border-radius:12px;padding:0 14px;color:var(--ink);outline:0;background:#fff}
.login-card input:focus{border-color:#79b9f5;box-shadow:0 0 0 4px #0b7ce91a}
.login-card .primary{width:100%;margin-top:14px}

/* sidebar */
.sidebar{position:fixed;inset:0 auto 0 0;width:244px;padding:28px 16px 22px;background:linear-gradient(180deg,var(--navy-2),var(--navy));z-index:40;display:flex;flex-direction:column;color:#fff;box-shadow:12px 0 40px rgba(6,29,56,.08)}
.sidebar-brand{height:84px;display:flex;align-items:flex-start;padding:0 12px 22px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,.09)}
.sidebar-brand img{width:174px;max-height:58px;object-fit:contain;object-position:left center}
.tabs{display:grid;gap:7px;margin-top:8px}
.tabs button,.sidebar-bottom a,.sidebar-bottom button{width:100%;height:46px;border:0;border-radius:11px;padding:0 14px;display:flex;align-items:center;gap:12px;background:transparent;color:#cbd9ea;font-size:13px;font-weight:650;text-align:left}
.tabs button svg,.sidebar-bottom svg{width:20px;height:20px;flex:0 0 auto}
.tabs button:hover,.sidebar-bottom a:hover,.sidebar-bottom button:hover{background:rgba(255,255,255,.10)!important;color:#fff!important}
.tabs button:hover span,.tabs button:hover svg,.sidebar-bottom a:hover span,.sidebar-bottom a:hover svg,.sidebar-bottom button:hover span,.sidebar-bottom button:hover svg{color:#fff!important;stroke:currentColor!important}
.tabs button.active:hover{background:linear-gradient(135deg,#1389f3,#0b6fd7)!important;color:#fff!important}
.tabs button.active{background:linear-gradient(135deg,#1389f3,#0b6fd7);color:#fff;box-shadow:0 8px 22px rgba(0,78,161,.38)}
.sidebar-bottom{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.09);display:grid;gap:4px}
.menu-overlay{position:fixed;inset:0;border:0;border-radius:0;background:rgba(2,17,34,.58);z-index:35}

/* authenticated shell */
.authenticated .topbar{margin-left:244px}
.authenticated .topbar-logo{display:none}
.authenticated main{margin-left:244px;width:auto;max-width:none;padding:24px 32px 88px}
.authenticated .login-card{display:none}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:2px 0 20px}
.page-heading h1{margin:0;font-size:31px;line-height:1.08;letter-spacing:-1px;color:#0b274b}
.page-heading p{margin:7px 0 0;font-size:13px;color:var(--muted)}
.page-actions{display:flex;align-items:center;gap:10px}
button,.button-secondary{min-height:42px;border-radius:11px;border:1px solid #cfdeed;background:#fff;color:#17456f;padding:0 15px;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
button:hover:not(:disabled),.button-secondary:hover{background:#f3f8fe}
button.primary{border:0;background:linear-gradient(135deg,#1488f3,#076bd3);color:#fff;box-shadow:0 7px 18px rgba(7,107,211,.2)}
button.primary:hover:not(:disabled){background:linear-gradient(135deg,#0e7fe7,#0563c4)}
button svg{width:16px;height:16px}

.panel,.media-section{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 7px 24px rgba(12,52,92,.045)}
.panel{overflow:hidden}

/* fichas */
.table-head,.sheet-row{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(190px,1fr) minmax(180px,.8fr) minmax(150px,.65fr);align-items:center;gap:18px;padding-left:22px;padding-right:22px}
.table-head{min-height:48px;background:#f8fbfe;border-bottom:1px solid var(--line);color:#6f849a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.sheet-row{min-height:74px;border-bottom:1px solid #edf2f7;background:#fff}
.sheet-row:last-child{border-bottom:0}
.sheet-row:hover{background:#fbfdff}
.sheet-person strong{display:block;font-size:13px;color:#112f50}
.sheet-person small,.sheet-service small,.sheet-date small{display:block;font-size:11px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.sheet-service strong,.sheet-date strong{font-size:12px;color:#35536f;font-weight:700}
.sheet-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.sheet-actions>a{min-height:36px;display:inline-flex;align-items:center;padding:0 12px;border-radius:9px;background:#eef6ff;color:#0c65bf;font-size:11px;font-weight:800;white-space:nowrap}
.icon-menu{position:relative;display:inline-flex}
.menu-button{width:36px;min-width:36px;height:36px;min-height:36px;border:0;background:transparent;padding:0;font-size:20px;letter-spacing:1px;color:#52708e}
.menu-button:hover:not(:disabled){background:#edf5fd}
.context-menu{position:absolute;right:0;top:42px;z-index:12;width:172px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 34px rgba(9,39,72,.14)}
.context-menu button{width:100%;height:36px;min-height:36px;justify-content:flex-start;border:0;background:transparent;padding:0 10px;color:#284866;font-size:11px;box-shadow:none}
.context-menu button.danger-action{color:var(--danger)}
.pagination{min-height:64px;padding:12px 18px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fbfdff}
.pagination span{font-size:11px;color:var(--muted);font-weight:700}
.pagination button{height:36px;min-height:36px;padding:0 12px;font-size:11px}
.empty-state{padding:42px 22px;text-align:center;color:var(--muted);font-size:13px}

/* media library */
.media-section{padding:0;margin-bottom:18px;overflow:visible}
.section-bar{min-height:72px;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line)}
.section-bar h2{font-size:16px;margin:0;color:#112f50;letter-spacing:-.25px}
.section-bar p{margin:3px 0 0;font-size:11px;color:var(--muted)}
.section-count{font-size:11px;color:#58718a;font-weight:800;white-space:nowrap}
.video-grid{display:grid;grid-template-columns:1fr;gap:10px;padding:14px}
.video-card{position:relative;min-width:0;border:1px solid #dfe8f2;border-radius:16px;background:#fff;padding:12px 14px;box-shadow:0 3px 12px rgba(7,45,84,.045);transition:transform .15s,box-shadow .15s,border-color .15s;display:grid;grid-template-columns:18px 64px minmax(280px,1fr) auto auto auto 34px;align-items:center;gap:14px;cursor:pointer}
.video-card:hover{transform:translateY(-2px);border-color:#cbddec;box-shadow:0 10px 25px rgba(7,45,84,.09)}
.video-saving .video-card{pointer-events:none}
.video-saving .video-card:not(.dragging){opacity:.78}
.video-card:focus-visible{outline:3px solid #0b7ce936;outline-offset:2px;border-color:#8fc4f6}
.video-card.drag-source{opacity:.3}
.video-dragging,.video-dragging *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
.video-dragging .video-card{transition:none;transform:none}
.video-card.video-drag-ghost{position:fixed!important;z-index:100!important;margin:0!important;pointer-events:none!important;opacity:.97!important;transition:none!important;box-shadow:0 18px 40px rgba(7,45,84,.24);border-color:#70b5ed;will-change:transform}
.video-card.video-drag-ghost *{pointer-events:none!important}
.video-card.drop-before:before,.video-card.drop-after:after{content:"";position:absolute;left:14px;right:14px;height:3px;border-radius:999px;background:#0b7ce9;box-shadow:0 0 0 3px #0b7ce91a;z-index:8}
.video-card.drop-before:before{top:-7px}.video-card.drop-after:after{bottom:-7px}
.drag-handle{position:relative;width:18px;min-width:0;height:42px;min-height:42px;padding:0;box-shadow:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#8ca0b3;cursor:grab;font-size:15px;z-index:4;background:transparent;border:0}
.drag-handle::before{content:"";position:absolute;inset:-5px -8px}
.drag-handle:hover:not(:disabled){background:#eaf4ff;color:#0b7ce9}
.drag-handle:focus-visible{outline:2px solid #0b7ce9;outline-offset:3px}
.drag-handle:active,.drag-handle.is-grabbed{cursor:grabbing;color:#0b7ce9}
.video-thumb{position:relative;width:64px;aspect-ratio:9/16;border-radius:12px;background:linear-gradient(135deg,#082b52,#1a5d98);overflow:hidden;display:grid;place-items:center;color:#fff;justify-self:start;box-shadow:0 4px 12px rgba(7,34,62,.12)}
.video-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.thumb-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px;text-align:center;background:linear-gradient(145deg,#082c52,#0b5796)}
.thumb-fallback.instagram{background:linear-gradient(145deg,#5536a8,#d6477b 54%,#f09433)}
.thumb-fallback.direct{background:linear-gradient(145deg,#15395b,#255c88)}
.thumb-fallback svg{width:24px;height:24px;opacity:.9}
.thumb-fallback span{font-size:8px;font-weight:800;letter-spacing:.04em;line-height:1.2}
.thumb-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid rgba(255,255,255,.78);border-radius:50%;display:grid;place-items:center;background:rgba(8,26,46,.72);color:#fff;backdrop-filter:blur(5px);box-shadow:0 4px 14px rgba(6,26,48,.22);z-index:4}
.thumb-play:hover:not(:disabled){background:rgba(5,82,145,.9);transform:translate(-50%,-50%) scale(1.06)}
.thumb-play::before{content:"";margin-left:2px;border-left:10px solid #fff;border-top:6px solid transparent;border-bottom:6px solid transparent}
.video-card-body{min-width:0;padding:0}
.video-card-title-row{display:flex;gap:8px;align-items:flex-start}
.video-card h3{font-size:12px;line-height:1.3;margin:0;color:#0d2a4a;flex:1}
.video-card p{font-size:10.8px;line-height:1.45;color:#61788e;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:640px}
.video-side{display:flex;align-items:center;justify-content:center}
.provider-pill,.status-pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:32px;padding:0 12px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.provider-pill{background:#eef3f8;color:#42627f;min-width:120px}
.provider-dot{width:7px;height:7px;border-radius:50%;background:#8499ad}
.provider-pill.youtube .provider-dot{background:#e62117}
.provider-pill.drive .provider-dot{background:#21a366}
.provider-pill.instagram .provider-dot{background:#bd3b8c}
.provider-pill.direct .provider-dot{background:#246cac}
.status-pill{background:var(--green-bg);color:var(--green);min-width:102px}
.status-pill.inactive{background:#f0f3f6;color:#73869a}
.video-edit-button{height:42px;min-height:42px;padding:0 16px;border-radius:12px;border:1px solid #d6e3f0;background:#fff;color:#16538a;font-size:12px;font-weight:800;white-space:nowrap}
.video-edit-button:hover:not(:disabled){background:#f3f8fe}
.video-card>.icon-menu{position:static;justify-self:end}.video-card>.icon-menu .menu-button{position:static;background:transparent;box-shadow:none;width:34px;min-width:34px;height:34px;min-height:34px}
.video-card>.icon-menu .context-menu{top:42px;right:0}
.recovery-grid{grid-template-columns:1fr}
.recovery-grid .video-card{grid-template-columns:18px 64px minmax(280px,1fr) auto auto auto 34px}


/* reviews */
.review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.review-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;box-shadow:0 7px 24px rgba(12,52,92,.045);min-height:210px}
.review-head{display:flex;align-items:center;gap:10px;padding-right:36px}
.review-initials{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e7f2ff;color:#0f66bb;font-size:11px;font-weight:900;flex:0 0 auto}
.review-name{min-width:0}
.review-name strong{display:block;font-size:12px;color:#15324f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.review-name small{display:block;color:#7a8da0;font-size:10px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.review-stars{font-size:13px;letter-spacing:1px;color:#f2a51a;margin:14px 0 10px}
.review-card p{font-size:11px;line-height:1.55;color:#60758a;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.review-card>.icon-menu{position:absolute;right:10px;top:10px}.review-card>.icon-menu .menu-button{position:static}
.review-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.review-footer small{font-size:9px;color:#8a9bac}

/* limits */
.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.stat-card{min-height:150px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;display:grid;grid-template-columns:46px 1fr;gap:14px;align-items:start;box-shadow:0 7px 24px rgba(12,52,92,.045)}
.stat-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:#e9f4ff;color:#0d75dd}
.stat-icon svg{width:23px;height:23px}
.stat-card span{display:block;font-size:11px;color:#6a7f93;font-weight:700}
.stat-card strong{display:block;font-size:24px;letter-spacing:-.6px;color:#0c2a4b;margin:7px 0 5px}
.stat-card small{display:block;font-size:10px;color:#8395a6}
.meter{height:7px;border-radius:999px;background:#eaf0f5;margin:11px 0 7px;overflow:hidden}
.meter i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#1590f6,#0a6dd4);transition:width .25s}
.storage-warning{margin:15px 0 0;border:1px solid #f1d3a3;background:var(--warning-bg);color:#795000;border-radius:13px;padding:14px 16px;font-size:11px;font-weight:700}

/* drawer */
.editor-drawer{position:fixed;inset:0;z-index:70}
.drawer-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:rgba(3,18,34,.4);backdrop-filter:blur(2px)}
.drawer-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 32px));max-height:min(88vh,820px);border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(5,31,59,.28);display:flex;flex-direction:column;overflow:hidden}
.drawer-panel>header{min-height:80px;padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px}
.drawer-panel>header span{display:block;font-size:9px;letter-spacing:.14em;font-weight:900;color:#5d83a9}
.drawer-panel>header h2{margin:4px 0 0;font-size:20px;letter-spacing:-.4px}
.icon-button{width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border:1px solid var(--line);background:#fff;font-size:22px;font-weight:400}
.drawer-content{padding:18px 20px 28px;overflow-y:auto;flex:1}
.drawer-field{display:block;margin-bottom:15px}
.drawer-field>span{display:block;font-size:11px;font-weight:800;color:#35536e;margin-bottom:7px}
.drawer-field input,.drawer-field textarea,.drawer-field select{width:100%;border:1px solid #cfddea;border-radius:11px;background:#fff;color:#173956;padding:11px 12px;outline:0;font-size:12px}
.drawer-field input,.drawer-field select{height:44px}
.drawer-field textarea{min-height:105px;resize:vertical;line-height:1.45}
.drawer-field input:focus,.drawer-field textarea:focus,.drawer-field select:focus{border-color:#6fb4f3;box-shadow:0 0 0 4px #0b7ce914}
.drawer-preview{margin:0 auto 18px;width:min(220px,55%);aspect-ratio:9/16;border-radius:13px;overflow:hidden;background:#0b345e}
.drawer-preview .video-thumb{height:100%;aspect-ratio:auto;border-radius:0}
.drawer-switch{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid #edf2f6}
.drawer-switch span{font-size:11px;font-weight:800;color:#35536e}
.switch-input{appearance:none;width:42px;height:24px;border-radius:999px;background:#d9e2eb;position:relative;transition:.18s;cursor:pointer;flex:0 0 auto}
.switch-input:before{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;left:3px;top:3px;box-shadow:0 1px 4px rgba(0,0,0,.17);transition:.18s}
.switch-input:checked{background:#1caf6a}
.switch-input:checked:before{transform:translateX(18px)}
.drawer-panel>footer{padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;background:#fff}

/* video editor modal */
.drawer-panel.video-editor-modal{width:min(1040px,calc(100vw - 44px));height:min(760px,calc(100vh - 44px));max-height:none}
.video-editor-modal .drawer-content{overflow:hidden;padding:18px 20px;min-height:0}
.video-editor-layout{height:100%;display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr);gap:24px;align-items:stretch}
.video-editor-preview{min-height:0;display:flex;align-items:center;justify-content:center;border-radius:16px;background:#eef4fa;padding:14px;overflow:hidden}
.video-player-host{height:100%;max-height:570px;aspect-ratio:9/16;max-width:100%;margin:auto;border-radius:14px;overflow:hidden;background:#071f3b;box-shadow:0 10px 28px rgba(5,31,59,.16)}
.video-player-shell{position:relative;width:100%;height:100%;background:#071f3b;display:grid;place-items:center}
.video-player-shell iframe,.video-player-shell video{display:block;width:100%;height:100%;border:0;object-fit:contain;background:#071f3b}
.video-player-empty{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#dceafa;padding:24px;background:linear-gradient(145deg,#082c52,#0b5796)}
.video-player-empty svg{width:38px;height:38px;opacity:.9}
.video-player-empty strong{font-size:13px}.video-player-empty span{font-size:10px;line-height:1.45;color:#bcd2e7}
.video-editor-form{min-width:0;display:flex;flex-direction:column;justify-content:center}
.video-editor-form .drawer-field{margin-bottom:11px}
.video-editor-form .drawer-field>span{margin-bottom:5px}
.video-editor-form .drawer-field input,.video-editor-form .drawer-field select{height:40px}
.video-editor-form .drawer-field textarea{min-height:78px;max-height:78px;resize:none}
.video-editor-form .drawer-switch{padding:10px 0}

/* save bar + toast */
.dirty-bar{position:fixed;left:calc(244px + 32px);right:32px;bottom:18px;min-height:58px;background:#092c51;color:#fff;border-radius:15px;padding:9px 11px 9px 17px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 14px 36px rgba(5,32,60,.24);z-index:25}
.dirty-bar>span{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:800}
.dirty-bar>span i{width:8px;height:8px;border-radius:50%;background:#ffbe39;box-shadow:0 0 0 5px rgba(255,190,57,.12)}
.dirty-bar>div{display:flex;gap:8px}
.dirty-bar button:not(.primary){background:transparent;border-color:rgba(255,255,255,.2);color:#d9e6f2}
.dirty-bar .primary{box-shadow:none}
.toast{position:fixed;right:24px;top:92px;z-index:90;max-width:min(430px,calc(100vw - 36px));margin:0;background:#092f59;color:#fff;padding:12px 16px;border-radius:12px;box-shadow:0 10px 28px rgba(3,24,47,.2);font-size:12px}
.toast:empty{display:none}

/* responsive */
@media(max-width:1260px){
  .video-card{grid-template-columns:18px 60px minmax(220px,1fr) auto auto auto 34px}
  .recovery-grid .video-card{grid-template-columns:18px 60px minmax(220px,1fr) auto auto auto 34px}
  .review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1040px){
  .sidebar{width:220px}
  .authenticated .topbar{margin-left:220px}
  .authenticated main{margin-left:220px;padding-left:22px;padding-right:22px}
  .dirty-bar{left:242px;right:22px}
  .video-card{grid-template-columns:18px 56px minmax(180px,1fr) auto auto 34px;align-items:start}
  .provider-col{grid-column:4/5}
  .status-col{grid-column:5/6}
  .video-edit-button{grid-column:4/6;justify-self:start}
  .video-card>.icon-menu{grid-column:6/7;grid-row:1 / span 2}
  .recovery-grid .video-card{grid-template-columns:18px 56px minmax(180px,1fr) auto auto 34px}
  .table-head,.sheet-row{grid-template-columns:minmax(180px,1.1fr) minmax(160px,1fr) 150px 125px}
}
@media(max-width:760px){
  body.authenticated{overflow-x:hidden}
  .sidebar{width:min(292px,84vw);transform:translateX(-102%);transition:transform .22s ease}
  .menu-open .sidebar{transform:translateX(0)}
  .menu-open{overflow:hidden}
  .authenticated .topbar{margin-left:0;height:66px;padding:0 14px;gap:10px}
  .authenticated main{margin-left:0;padding:16px 14px 96px}
  .authenticated .menu-toggle{display:grid;place-items:center}
  .topbar-search{width:auto;flex:1;height:40px;padding:0 11px}
  .admin-profile{padding-left:0;border-left:0;margin-left:0}
  .admin-profile span{display:none}
  .admin-profile>img{width:34px;height:34px}
  .page-heading{align-items:flex-start;margin-bottom:16px}
  .page-heading h1{font-size:26px}
  .page-heading p{font-size:11px;max-width:220px}
  .page-actions{flex-shrink:0}
  .page-actions #refresh span{display:none}
  .page-actions button{height:39px;min-height:39px;padding:0 12px}
  .table-head{display:none}
  .panel{background:transparent;border:0;box-shadow:none;overflow:visible}
  .sheets-list{display:grid;gap:10px}
  .sheet-row{display:grid;grid-template-columns:1fr auto;gap:8px 14px;min-height:0;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(12,52,92,.04)}
  .sheet-row:hover{background:#fff}
  .sheet-person{grid-column:1/2}
  .sheet-service,.sheet-date{grid-column:1/2}
  .sheet-actions{grid-column:2/3;grid-row:1/4;align-self:center;flex-direction:column}
  .sheet-actions>a{width:38px;height:38px;min-height:38px;padding:0;font-size:0;position:relative}
  .sheet-actions>a:after{content:"↗";font-size:15px;margin:auto}
  .pagination{border:0;background:transparent;padding:14px 0 0}
  .video-grid{padding:11px}
  .review-grid{grid-template-columns:1fr;padding:11px}
  .media-section{border-radius:15px}
  .section-bar{min-height:66px;padding:13px 14px}
  .section-bar p{display:none}
  .video-card,.recovery-grid .video-card{grid-template-columns:56px minmax(0,1fr) auto;gap:10px 12px;padding:10px 12px;align-items:center}
  .drag-handle{display:none}
  .video-thumb{width:56px}
  .video-card-body{grid-column:2/4}
  .video-card p{display:none}
  .video-side{justify-content:flex-start}
  .provider-pill,.status-pill{height:28px;min-width:0;padding:0 10px;font-size:10px}
  .video-edit-button{grid-column:2/3;justify-self:start;height:38px;min-height:38px;padding:0 14px;font-size:11px}
  .video-card>.icon-menu{grid-column:3/4;grid-row:1/2;align-self:start}
  .video-card>.icon-menu .context-menu{top:36px}
  .video-card h3{font-size:11px}
  .review-grid{padding:0}
  .review-card{min-height:0}
  .stats-grid{grid-template-columns:1fr}
  .stat-card{min-height:126px}
  .dirty-bar{left:14px;right:14px;bottom:max(12px,env(safe-area-inset-bottom));padding:9px 10px 9px 13px}
  .dirty-bar>span{font-size:10px}
  .dirty-bar #discard-content{display:none}
  .dirty-bar button{height:38px;min-height:38px;padding:0 12px;font-size:11px}
  .drawer-panel{left:50%;top:50%;bottom:auto;width:calc(100vw - 24px);max-height:90vh;height:auto;transform:translate(-50%,-50%);border-radius:18px}
  .drawer-panel.video-editor-modal{width:calc(100vw - 24px);height:90vh;max-height:90vh}
  .video-editor-modal .drawer-content{overflow-y:auto;padding:14px}
  .video-editor-layout{height:auto;display:grid;grid-template-columns:1fr;gap:16px}
  .video-editor-preview{min-height:420px;padding:10px}
  .video-player-host{height:min(56vh,520px);max-height:none}
  .video-editor-form{display:block}
  .drawer-panel>header{min-height:72px}
  .toast{top:78px;right:12px}
}
@media(max-width:480px){
  .login-card{margin-top:4vh;padding:28px 22px;border-radius:18px}
  main{padding:22px 14px 50px}
  .page-heading{gap:10px}
  .page-heading p{display:none}
  .page-actions #refresh{width:40px;padding:0;font-size:0}
  .page-actions #section-action{font-size:11px}
  .video-card,.recovery-grid .video-card{grid-template-columns:50px minmax(0,1fr)}
  .video-thumb{width:50px}
  .video-card-body,.video-edit-button,.video-side{grid-column:1/-1}
  .video-card>.icon-menu{position:absolute;right:8px;top:8px}
  .provider-pill,.status-pill{height:24px;font-size:9px;padding:0 8px}
  .video-edit-button{width:100%;justify-content:center}
  .sheet-service strong,.sheet-date strong{font-size:11px}
}

.video-thumb video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0;border-radius:inherit;pointer-events:none}.video-editor-form{min-width:0}.video-editor-form input{min-width:0;max-width:100%}.video-player-shell video,.video-player-shell iframe{border:0;border-radius:18px}.drawer-panel{max-height:calc(100dvh - 24px)}@media(max-width:760px){.video-editor-preview{min-height:0}.video-player-host{height:min(48dvh,430px)}.video-editor-modal .drawer-content{min-height:0}.drawer-panel.video-editor-modal{height:90dvh}.drawer-panel>footer{flex-shrink:0}}

#review-inbox{padding:20px;display:grid;gap:16px}#review-inbox>div{display:flex;gap:16px;align-items:center;flex-wrap:wrap}#review-inbox .review-card{padding:22px;border:1px solid #dce6f1;border-radius:16px;background:#fff}#review-inbox small{display:block;color:#61728a;margin:8px 0}#review-inbox button{margin:8px 10px 0 0}#review-inbox select,#review-inbox input{padding:10px;border:1px solid #cbd9e8;border-radius:8px}

.video-card:has(.context-menu:not([hidden])),.review-card:has(.context-menu:not([hidden])),.sheet-row:has(.context-menu:not([hidden])){position:relative;z-index:30;transform:none}.media-section:has(.context-menu:not([hidden])){position:relative;z-index:31}.panel:has(.context-menu:not([hidden])){overflow:visible}.context-menu{max-height:min(320px,60dvh);overflow-y:auto}.video-card>.icon-menu{position:relative}.video-card>.icon-menu .context-menu{right:0;top:38px}.editor-drawer .context-menu{z-index:80}.request-review{margin:12px 20px;background:#0878df!important;color:#fff!important;border:0!important;border-radius:12px;padding:12px 18px!important}input,textarea,select{min-width:0}@media(max-width:760px){.drawer-panel input,.drawer-panel textarea,.drawer-panel select{font-size:16px}.context-menu{max-width:calc(100vw - 40px)}}
