:root {
  color-scheme: dark;
  --bg: #080b14;
  --panel: #0e1321;
  --panel-2: #141a2a;
  --line: rgba(255,255,255,.09);
  --text: #f4f6fb;
  --muted: #8e98ad;
  --accent: #7c5cff;
  --accent-2: #44d4c6;
  --danger: #ff667d;
  --shadow: 0 30px 80px rgba(0,0,0,.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; max-width: 100%; }
body { background: var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { color: #9d8cff; font-size: .74rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.brand { display: flex; align-items: center; gap: .75rem; font-size: 1.04rem; font-weight: 760; letter-spacing: -.02em; }
.brand b { color: #9a86ff; }
.brand-mark, .welcome-mark {
  align-items: center; background: linear-gradient(135deg, var(--accent), #a04fff 55%, var(--accent-2));
  border-radius: 11px; box-shadow: 0 8px 28px rgba(124,92,255,.28); display: inline-flex;
  font-weight: 900; height: 36px; justify-content: center; width: 36px;
}
.brand-large { font-size: 1.25rem; }
.brand-large .brand-mark { height: 44px; width: 44px; }
.official-brand { align-items: center; display: inline-flex; gap: 9px; overflow: hidden; text-decoration: none; }
.official-brand img { display: block; flex: 0 0 auto; height: 46px; object-fit: contain; width: 46px; }
.official-brand .brand-wordmark {
  color: #f6f7fb; font-size: 1.45rem; font-weight: 720; letter-spacing: -.055em; line-height: 1;
}
.official-brand .brand-wordmark b { color: #7c6cff; font-weight: 820; }
.official-brand-login { position: relative; width: 235px; z-index: 1; }
.official-brand-sidebar,.official-brand-admin {
  background: linear-gradient(135deg,#080c18,#111934); border: 1px solid rgba(120,100,255,.28);
  border-radius: 11px; box-shadow: 0 8px 24px rgba(47,38,103,.16); padding: 7px 10px; width: 172px;
}
.official-brand-admin { width: 180px; }
.auth-mobile-brand.official-brand { background: transparent; border: 0; box-shadow: none; width: 205px; }
.lucide { flex: 0 0 auto; height: 18px; stroke-width: 1.8; width: 18px; }
.status-dot { animation: pulse 2.2s infinite; background: #45ddb3; border-radius: 50%; box-shadow: 0 0 12px #45ddb3; display: inline-block; height: 7px; width: 7px; }
@keyframes pulse { 50% { opacity: .45; } }

/* Login */
.auth-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(124,92,255,.22), transparent 32%),
    radial-gradient(circle at 80% 85%, rgba(68,212,198,.1), transparent 30%),
    #080b14;
  min-height: 100%; overflow-x: hidden;
}
.auth-shell { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(430px,.75fr); min-height: 100vh; }
.auth-aside { display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 56px 7vw; position: relative; }
.auth-aside::after {
  background: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px; content: ""; inset: 0; mask-image: linear-gradient(to right, #000, transparent); pointer-events: none; position: absolute;
}
.auth-copy { max-width: 680px; position: relative; z-index: 1; }
.auth-copy h1 { font-size: clamp(3rem, 5.1vw, 6.4rem); letter-spacing: -.065em; line-height: .94; margin: 20px 0 28px; }
.auth-copy h1 em { background: linear-gradient(90deg, #a999ff, #52ddd0); background-clip: text; color: transparent; font-style: normal; }
.auth-copy p { color: #aab2c3; font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.65; max-width: 620px; }
.privacy-pill { align-items: center; backdrop-filter: blur(12px); background: rgba(14,19,33,.68); border: 1px solid var(--line); border-radius: 999px; display: flex; font-size: .82rem; gap: 10px; padding: 11px 16px; width: max-content; }
.auth-card {
  align-self: center; background: rgba(14,19,33,.82); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); margin: 38px 5vw 38px 20px; max-width: 520px; min-height: 610px;
  min-width: 0; padding: clamp(32px,4vw,58px); position: relative; width: calc(100% - 5vw);
}
.auth-mobile-brand { display: none; margin-bottom: 40px; }
.auth-step { display: flex; flex-direction: column; gap: 18px; }
.auth-step h2 { font-size: 2rem; letter-spacing: -.04em; margin: 0; }
.auth-step p { line-height: 1.55; margin: -8px 0 5px; }
.auth-step label { color: #cbd1df; display: flex; flex-direction: column; font-size: .86rem; font-weight: 650; gap: 8px; }
.auth-step input, .settings-drawer input, .settings-drawer textarea, .settings-drawer select {
  background: #090d18; border: 1px solid #293147; border-radius: 11px; color: var(--text);
  outline: none; padding: 14px 15px; transition: .2s;
}
.auth-step input:focus, .settings-drawer input:focus, .settings-drawer textarea:focus, .settings-drawer select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.14); }
.password-wrap { display: flex; position: relative; }
.password-wrap input { padding-right: 48px; width: 100%; }
.password-toggle { position: absolute; right: 7px; top: 7px; }
.primary-button, .secondary-button, .danger-button {
  align-items: center; border: 0; border-radius: 11px; cursor: pointer; display: flex; font-weight: 750;
  justify-content: center; min-height: 47px; padding: 12px 16px; transition: transform .18s, filter .18s;
}
.primary-button { background: linear-gradient(135deg, var(--accent), #6841e8); box-shadow: 0 13px 30px rgba(124,92,255,.24); color: #fff; justify-content: space-between; margin-top: 6px; }
.primary-button:hover, .secondary-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.secondary-button { background: #1a2236; border: 1px solid var(--line); }
.danger-button { background: rgba(255,102,125,.1); color: #ff8294; }
.text-button, .back-button { background: none; border: 0; color: #a995ff; cursor: pointer; padding: 4px; }
.back-button { align-self: flex-start; color: var(--muted); }
.form-error { color: #ff8093; font-size: .83rem; min-height: 20px; }
.auth-footer { bottom: 25px; color: #677087; font-size: .72rem; left: 0; position: absolute; text-align: center; width: 100%; }
.otp-inputs { display: grid; gap: 8px; grid-template-columns: repeat(6,minmax(0,1fr)); margin: 12px 0; max-width: 100%; width: 100%; }
.otp-inputs input { font-size: 1.5rem; font-weight: 800; min-width: 0; padding: 12px 0; text-align: center; width: 100%; }
.google-access { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.google-access small { color: #727c91; font-size: .72rem; }
.auth-divider { align-items: center; color: #687287; display: flex; font-size: .72rem; gap: 10px; margin: 2px 0; }
.auth-divider::before,.auth-divider::after { background: var(--line); content: ""; flex: 1; height: 1px; }
.google-button {
  align-items: center; background: #fff; border: 1px solid #d7dbea; border-radius: 11px;
  color: #2f3340; display: flex; font-size: .88rem; font-weight: 720; gap: 12px;
  justify-content: center; min-height: 47px; padding: 11px 15px; text-decoration: none;
}
.google-button:hover { background: #f8f9fc; }
.google-mark { color: #4285f4; font-family: Arial,sans-serif; font-size: 1.15rem; font-weight: 800; }
.registration-access { align-items: center; color: #7e879b; display: flex; font-size: .8rem; gap: 4px; justify-content: center; }
.registration-access .text-button { font-weight: 750; }
.password-hint { color: #727c91; font-size: .72rem; line-height: 1.5; margin-top: -7px; }
.success-mark { align-items: center; background: linear-gradient(135deg,#6a55dc,#45cbb2); border-radius: 16px; box-shadow: 0 15px 35px rgba(89,74,203,.28); display: flex; height: 54px; justify-content: center; margin-bottom: 7px; width: 54px; }
.success-mark .lucide { height: 27px; width: 27px; }
.qr-frame { align-self: center; background: #fff; border-radius: 16px; padding: 13px; }
.qr-frame img { display: block; height: 190px; width: 190px; }
.auth-qr-button { gap: 10px; justify-content: center; width: 100%; }
.qr-login-frame {
  align-self: center; background: #fff; border: 1px solid rgba(124,92,255,.35); border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0,0,0,.28); height: 238px; overflow: hidden; padding: 14px; position: relative; width: 238px;
}
.qr-login-frame img { display: block; height: 100%; object-fit: contain; width: 100%; }
.qr-login-scanline {
  animation: qr-login-scan 2.2s ease-in-out infinite; background: linear-gradient(90deg,transparent,#7c5cff,transparent);
  box-shadow: 0 0 15px rgba(124,92,255,.7); height: 2px; left: 15px; position: absolute; right: 15px; top: 16px;
}
@keyframes qr-login-scan { 0%,100% { transform: translateY(0); } 50% { transform: translateY(202px); } }
.qr-login-status {
  align-items: center; background: #111827; border: 1px solid #293147; border-radius: 12px; color: #cbd1df;
  display: grid; font-size: .79rem; gap: 9px; grid-template-columns: auto minmax(0,1fr) auto; padding: 11px 13px;
}
.qr-login-status small { color: #8e98ad; font-variant-numeric: tabular-nums; }
.secret-details { color: var(--muted); font-size: .8rem; text-align: center; }
.secret-details code { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.recovery-grid { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.recovery-grid code { background: #090d18; border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }

/* Files and media */
.drive-page {
  --drive-bg: #f7f7f8;
  --drive-panel: #fff;
  --drive-soft: #f2f3f5;
  --drive-line: #e3e4e8;
  --drive-text: #202124;
  --drive-muted: #70757f;
  --drive-blue: #1769e0;
  background: var(--drive-bg); color: var(--drive-text); color-scheme: light; height: 100%; overflow: hidden;
}
.drive-page button,.drive-page input,.drive-page textarea { color: inherit; }
.drive-shell { display: grid; grid-template-columns: 286px minmax(0,1fr); height: 100vh; height: 100dvh; }
.drive-sidebar {
  background: #f6f7f9; border-right: 1px solid var(--drive-line); display: flex; flex-direction: column;
  gap: 12px; min-height: 0; padding: 20px 14px 14px; position: relative; z-index: 20;
}
.drive-brand-row { align-items: center; display: flex; justify-content: space-between; padding: 0 9px 8px; }
.drive-brand { align-items: center; color: #17191e; display: flex; font-size: 1.35rem; gap: 9px; letter-spacing: -.04em; text-decoration: none; }
.drive-brand img { border-radius: 10px; height: 38px; width: 38px; }
.drive-brand strong { color: #1769e0; }
.drive-create {
  align-items: center; align-self: flex-start; background: #fff; border: 1px solid #dfe1e6; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(60,64,67,.12); cursor: pointer; display: flex; font-weight: 700; gap: 11px;
  margin: 3px 7px 10px; min-height: 54px; padding: 0 22px;
}
.drive-create:hover { background: #eef3fd; box-shadow: 0 6px 18px rgba(60,64,67,.16); }
.drive-nav { display: flex; flex-direction: column; gap: 3px; }
.drive-nav button,.drive-sidebar-footer a {
  align-items: center; background: transparent; border: 0; border-radius: 10px; cursor: pointer; display: flex;
  font-size: .9rem; gap: 13px; min-height: 44px; padding: 0 13px; text-align: left; text-decoration: none;
}
.drive-nav button:hover,.drive-sidebar-footer a:hover { background: #e9eaee; }
.drive-nav button.active { background: #dbe8ff; color: #174ea6; font-weight: 720; }
.drive-units-heading { color: #777d88; font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: 12px 14px 2px; text-transform: uppercase; }
.drive-units { display: flex; flex-direction: column; gap: 5px; min-height: 0; overflow: auto; }
.drive-unit {
  align-items: center; background: transparent; border: 1px solid transparent; border-radius: 11px; cursor: pointer;
  display: grid; gap: 10px; grid-template-columns: 36px minmax(0,1fr); padding: 10px 11px; text-align: left;
}
.drive-unit:hover,.drive-unit.active { background: #e9eaee; }
.drive-unit.active { border-color: #d8dae0; }
.drive-unit.locked { color: #7f838d; }
.unit-icon { align-items: center; background: #e3edff; border-radius: 9px; color: #1769e0; display: flex; height: 36px; justify-content: center; width: 36px; }
.drive-unit.locked .unit-icon { background: #ececef; color: #747883; }
.drive-unit > span:last-child { min-width: 0; }
.drive-unit b,.drive-unit small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-unit b { font-size: .8rem; }
.drive-unit small { color: #777d88; font-size: .69rem; margin-top: 3px; }
.unit-meter { background: #dfe1e5; border-radius: 4px; display: block; height: 3px; margin-top: 7px; overflow: hidden; }
.unit-meter i { background: #1769e0; display: block; height: 100%; }
.drive-sidebar-footer { border-top: 1px solid var(--drive-line); display: flex; flex-direction: column; margin-top: auto; padding-top: 9px; }
.drive-main { background: var(--drive-panel); display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.drive-header {
  align-items: center; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--drive-line); display: flex;
  gap: 20px; min-height: 76px; padding: 12px 24px; position: relative; z-index: 10;
}
.drive-search {
  align-items: center; background: #f1f3f4; border: 1px solid transparent; border-radius: 14px; display: flex;
  gap: 12px; max-width: 720px; padding: 0 17px; width: 100%;
}
.drive-search:focus-within { background: #fff; border-color: #d9dce1; box-shadow: 0 2px 8px rgba(60,64,67,.13); }
.drive-search input { background: transparent; border: 0; font-size: .98rem; height: 48px; min-width: 0; outline: 0; width: 100%; }
.drive-product-nav { align-items: center; display: flex; flex: 0 0 auto; gap: 5px; }
.drive-product-nav a {
  border-radius: 9px;
  color: #667085;
  font-size: .72rem;
  font-weight: 750;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}
.drive-product-nav a:hover { background: #f1f3f6; color: #242936; }
.drive-product-nav a.active { background: #eaf1ff; color: #205bc4; }
.drive-header-actions,.drive-view-actions { align-items: center; display: flex; gap: 5px; margin-left: auto; }
.drive-icon {
  align-items: center; background: transparent; border: 0; border-radius: 50%; cursor: pointer; display: inline-flex;
  flex: 0 0 auto; height: 40px; justify-content: center; padding: 0; text-decoration: none; width: 40px;
}
.drive-icon:hover,.drive-icon.active { background: #ebecef; }
.drive-avatar { align-items: center; background: #263247; border-radius: 50%; color: #fff; display: flex; font-size: .82rem; font-weight: 800; height: 36px; justify-content: center; margin-left: 8px; text-decoration: none; width: 36px; }
.drive-content { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; padding: 22px 28px 22px; }
.drive-pathbar { align-items: center; display: flex; gap: 16px; margin-bottom: 20px; }
.drive-batch-bar {
  align-items: center;
  background: linear-gradient(135deg,#12182a 0%,#1c2550 58%,#34226d 100%);
  border: 1px solid rgba(123,111,255,.38);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(29,36,78,.17);
  color: #fff;
  display: flex;
  gap: 16px;
  margin: -7px 0 16px;
  min-height: 58px;
  overflow: hidden;
  padding: 8px 10px 8px 16px;
  position: relative;
}
.batch-count { align-items: center; display: flex; font-size: .78rem; gap: 9px; white-space: nowrap; }
.batch-count .lucide { color: #75ddff; height: 19px; width: 19px; }
.drive-batch-bar > div { align-items: center; display: flex; gap: 7px; margin-left: auto; }
.drive-batch-bar .drive-secondary {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff;
  min-height: 38px;
}
.drive-batch-bar .drive-secondary:hover { background: rgba(255,255,255,.18); }
.drive-batch-bar .drive-secondary.hubflix {
  background: linear-gradient(135deg, #7657ff, #4d7cff);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  font-weight: 800;
}
.drive-batch-bar .drive-secondary.hubflix:hover {
  background: linear-gradient(135deg, #856aff, #5d88ff);
}
.drive-batch-bar .drive-secondary.danger { color: #ffb5c1; }
.drive-batch-bar .drive-icon { color: #fff; }
.batch-progress {
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  flex: 1;
  height: 7px;
  max-width: 360px;
  overflow: visible;
  position: relative;
}
.batch-progress > i {
  background: linear-gradient(90deg,#52d7ff,#8d72ff);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width .3s;
  width: 0;
}
.batch-progress small {
  color: #ced3ef;
  font-size: .61rem;
  left: 0;
  position: absolute;
  top: 11px;
  white-space: nowrap;
}
.drive-breadcrumbs { align-items: center; display: flex; min-width: 0; overflow: hidden; }
.drive-breadcrumbs button {
  background: transparent; border: 0; border-radius: 7px; color: #5f6368; cursor: pointer; font-size: 1.08rem;
  max-width: 260px; overflow: hidden; padding: 7px 8px; text-overflow: ellipsis; white-space: nowrap;
}
.drive-breadcrumbs button:hover { background: #f0f1f2; }
.drive-breadcrumbs button.current { color: #202124; font-weight: 700; }
.drive-breadcrumbs > span { color: #8a8f98; display: flex; }
.drive-notice { background: #eef4ff; border: 1px solid #cdddf8; border-radius: 12px; color: #284b7d; line-height: 1.5; margin-bottom: 18px; padding: 14px 16px; }
.drive-notice.permission { background: #fff8e6; border-color: #ead89e; color: #6c5620; }
.drive-notice.error { background: #fff1f2; border-color: #efc8ce; color: #8c2f3f; }
.drive-files {
  flex: 1; min-height: 0; min-width: 0; overflow-x: hidden; overflow-y: auto;
  padding-bottom: 96px; scrollbar-color: #a9adb5 #f1f2f4; scrollbar-gutter: stable;
  scrollbar-width: auto;
}
.drive-files::-webkit-scrollbar { width: 12px; }
.drive-files::-webkit-scrollbar-track { background: #f1f2f4; border-radius: 999px; }
.drive-files::-webkit-scrollbar-thumb { background: #a9adb5; border: 3px solid #f1f2f4; border-radius: 999px; }
.drive-files::-webkit-scrollbar-thumb:hover { background: #858a94; }
.drive-file-head,.drive-file {
  align-items: center; border-bottom: 1px solid var(--drive-line); display: grid; gap: 16px;
  grid-template-columns: minmax(240px,1fr) 180px 100px 42px; min-height: 56px; padding: 0 9px;
}
.drive-file-head.selectable,.drive-file.selectable {
  grid-template-columns: 34px minmax(240px,1fr) 180px 100px 42px;
}
.file-select {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.file-select input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.file-select i {
  background: #fff;
  border: 1.5px solid #a9aeba;
  border-radius: 6px;
  display: block;
  height: 19px;
  position: relative;
  transition: .16s;
  width: 19px;
}
.file-select input:checked + i {
  background: linear-gradient(135deg,#3269ed,#7655ec);
  border-color: #5c59eb;
  box-shadow: 0 0 0 3px rgba(91,88,235,.12);
}
.file-select input:checked + i::after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  height: 8px;
  left: 6px;
  position: absolute;
  top: 3px;
  transform: rotate(45deg);
  width: 4px;
}
.file-select input:indeterminate + i {
  background: #5d5be9;
  border-color: #5d5be9;
}
.file-select input:indeterminate + i::after {
  background: #fff;
  border-radius: 2px;
  content: "";
  height: 2px;
  inset: 7px 3px auto;
  position: absolute;
}
.drive-file.selected {
  background: linear-gradient(90deg,rgba(49,105,237,.09),rgba(118,85,236,.055));
  box-shadow: inset 3px 0 #5e5ce8;
}
.drive-file.selected:hover { background: linear-gradient(90deg,rgba(49,105,237,.13),rgba(118,85,236,.08)); }
.drive-file-head {
  background: #fff; color: #777b84; font-size: .75rem; font-weight: 700;
  min-height: 42px; position: sticky; top: 0; z-index: 3;
}
.drive-file:hover { background: #f6f8fc; }
.file-primary { align-items: center; cursor: pointer; display: flex; gap: 12px; min-width: 0; }
.file-primary > span:last-child { min-width: 0; }
.file-primary b,.file-primary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-primary b { font-size: .9rem; font-weight: 650; }
.file-primary small { color: #8a8e97; font-size: .67rem; margin-top: 3px; }
.file-symbol {
  align-items: center; background: #edf1f7; border-radius: 8px; color: #506076; display: inline-flex;
  flex: 0 0 auto; height: 34px; justify-content: center; width: 34px;
}
.file-symbol.folder { background: #e5efff; color: #3174d4; }
.file-symbol.audio { background: #f0e8ff; color: #7654c9; }
.file-symbol.video { background: #fee9e9; color: #c94b51; }
.file-symbol.image { background: #e5f6ef; color: #267b5e; }
.file-symbol.spreadsheet { background: #e4f5e9; color: #247847; }
.file-symbol.document,.file-symbol.pdf { background: #e9efff; color: #2e67c9; }
.file-symbol.ebook { background: #f0eaff; color: #6845c6; }
.file-symbol.comic { background: #fff0dc; color: #bd641c; }
.file-symbol.archive { background: #edf0f5; color: #505d72; }
.file-modified,.file-size { color: #70757f; font-size: .78rem; }
.grid-view { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); }
.grid-view .drive-file {
  align-content: center; border: 1px solid var(--drive-line); border-radius: 13px; display: flex; flex-wrap: wrap;
  min-height: 148px; min-width: 0; overflow: hidden; padding: 16px; position: relative;
}
.grid-view .drive-file.selectable { padding-left: 46px; }
.grid-view .drive-file .file-select {
  left: 8px;
  position: absolute;
  top: 9px;
}
.grid-view .file-primary { align-items: flex-start; flex-direction: column; width: calc(100% - 30px); }
.grid-view .file-primary > span:last-child { min-width: 0; width: 100%; }
.grid-view .file-primary b {
  display: -webkit-box; line-height: 1.28; max-height: 2.56em; overflow: hidden;
  overflow-wrap: anywhere; text-overflow: ellipsis; white-space: normal;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.grid-view .file-symbol { height: 48px; width: 48px; }
.grid-view .file-modified { margin-top: auto; width: 100%; }
.grid-view .file-size { display: none; }
.grid-view .file-more { position: absolute; right: 8px; top: 8px; }
.drive-empty { color: #747982; margin: auto; padding: 80px 20px; text-align: center; }
.drive-empty > span { align-items: center; background: #eef1f6; border-radius: 50%; display: inline-flex; height: 74px; justify-content: center; width: 74px; }
.drive-empty > span .lucide { height: 31px; width: 31px; }
.drive-empty h2 { color: #30333a; font-size: 1.2rem; margin: 20px 0 6px; }
.drive-empty p { margin: 0; }
.drive-loading { align-items: center; color: #727781; display: flex; gap: 10px; padding: 30px; }
.drive-loading .lucide { animation: drive-spin 1s linear infinite; }
@keyframes drive-spin { to { transform: rotate(360deg); } }
.drive-menu,.drive-context {
  background: #fff; border: 1px solid var(--drive-line); border-radius: 12px; box-shadow: 0 12px 38px rgba(38,40,48,.18);
  min-width: 220px; padding: 7px; position: fixed; z-index: 100;
}
.drive-menu button,.drive-context button {
  align-items: center; background: transparent; border: 0; border-radius: 8px; cursor: pointer; display: flex; font-size: .84rem;
  gap: 11px; min-height: 39px; padding: 0 11px; text-align: left; width: 100%;
}
.drive-menu button:hover,.drive-context button:hover { background: #f0f1f3; }
.drive-menu hr,.drive-context hr { border: 0; border-top: 1px solid var(--drive-line); margin: 6px; }
.drive-context button.danger { color: #bb3142; }
.drive-overlay { align-items: center; background: rgba(30,32,39,.46); display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 200; }
.drive-editor {
  background: #fff; border-radius: 18px; box-shadow: 0 28px 80px rgba(20,22,30,.28); display: flex;
  flex-direction: column; height: min(90vh,900px); max-width: 1200px; overflow: hidden; width: min(94vw,1200px);
}
.drive-editor > header,.video-dialog > header,.playlist-dialog > header {
  align-items: center; border-bottom: 1px solid var(--drive-line); display: flex; justify-content: space-between; min-height: 72px; padding: 12px 18px;
}
.drive-editor > header > div,.video-dialog > header > div,.playlist-dialog > header > div { align-items: center; display: flex; gap: 11px; min-width: 0; }
.drive-editor h2,.playlist-dialog h2 { font-size: 1rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-editor header small,.video-dialog header small,.playlist-dialog header small { color: #777c86; display: block; font-size: .72rem; margin-top: 3px; }
.drive-secondary,.drive-primary {
  align-items: center; background: #fff; border: 1px solid #d8dbe1; border-radius: 9px; cursor: pointer; display: inline-flex;
  font-weight: 650; gap: 8px; justify-content: center; min-height: 40px; padding: 0 14px;
}
.drive-primary { background: var(--drive-blue); border-color: var(--drive-blue); color: #fff !important; }
.drive-secondary:hover { background: #f1f2f4; }
.editor-warning { background: #fff8e6; border-bottom: 1px solid #eadcae; color: #67501d; font-size: .78rem; padding: 10px 18px; }
.editor-body { display: flex; flex: 1; min-height: 0; overflow: auto; }
.reader-loading,.reader-error {
  align-items: center;
  color: #71788a;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-height: 320px;
  padding: 30px;
  text-align: center;
}
.reader-loading .lucide { animation: drive-spin .9s linear infinite; color: #6d4ee9; }
.reader-error .lucide { color: #d7525b; height: 34px; width: 34px; }
.reader-error b { color: #20242e; font-size: 1rem; }
.reader-error span { max-width: 540px; }
.ebook-reader {
  background: #f7f8fb;
  display: grid;
  flex: 1;
  grid-template-columns: 270px minmax(0,1fr);
  min-height: 0;
}
.ebook-reader aside {
  background: #fff;
  border-right: 1px solid #e1e4eb;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ebook-reader aside header { border-bottom: 1px solid #e7e9ef; padding: 18px; }
.ebook-reader aside header small {
  color: #7458dc;
  display: block;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ebook-reader aside header b { color: #252935; display: block; font-size: .86rem; margin-top: 6px; }
.ebook-reader nav { overflow: auto; padding: 8px; }
.ebook-reader nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #535a6c;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 28px 1fr;
  padding: 9px;
  text-align: left;
  width: 100%;
}
.ebook-reader nav button:hover,.ebook-reader nav button.active { background: #eeeaff; color: #4932a7; }
.ebook-reader nav button span {
  align-items: center;
  background: #f0edf9;
  border-radius: 7px;
  display: flex;
  font-size: .62rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
}
.ebook-reader nav button b { font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebook-frame { background: #f6f2e9; border: 0; height: 100%; min-height: 520px; width: 100%; }
.archive-reader { background: #f8f9fb; display: flex; flex: 1; flex-direction: column; min-height: 0; }
.archive-toolbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e1e4ea;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 8px 18px;
}
.archive-toolbar > span { color: #798092; font-size: .7rem; white-space: nowrap; }
.archive-crumbs { align-items: center; display: flex; min-width: 0; overflow: auto; }
.archive-crumbs button {
  background: transparent;
  border: 0;
  color: #344058;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  max-width: 220px;
  overflow: hidden;
  padding: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.archive-crumbs .lucide { color: #a1a7b3; height: 15px; width: 15px; }
.archive-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
  overflow: auto;
  padding: 16px;
}
.archive-entry {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e3e9;
  border-radius: 11px;
  cursor: pointer;
  display: grid;
  gap: 11px;
  grid-template-columns: 42px minmax(0,1fr) 18px;
  min-height: 70px;
  padding: 10px;
  text-align: left;
}
.archive-entry:hover { border-color: #b8acec; box-shadow: 0 7px 22px rgba(62,49,113,.08); }
.archive-entry .file-symbol { height: 42px; width: 42px; }
.archive-entry b,.archive-entry small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-entry b { color: #252a36; font-size: .76rem; }
.archive-entry small { color: #81889a; font-size: .64rem; margin-top: 5px; }
.archive-entry > .lucide { color: #8d95a6; height: 17px; width: 17px; }
.archive-empty { color: #7a8293; grid-column: 1/-1; padding: 80px 20px; text-align: center; }
.archive-empty .lucide { display: block; margin: 0 auto 12px; }
.archive-preview,.comic-reader { display: flex; flex: 1; flex-direction: column; min-height: 0; width: 100%; }
.archive-preview > header,.comic-reader > header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e2e5eb;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 58px;
  padding: 9px 16px;
}
.archive-preview > header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-preview > div { align-items: center; background: #25272c; display: flex; flex: 1; justify-content: center; min-height: 0; }
.archive-preview iframe { background: #fff; border: 0; height: 100%; width: 100%; }
.archive-preview img { max-height: 100%; max-width: 100%; object-fit: contain; }
.comic-reader { background: #111318; }
.comic-reader > header { background: #181b22; border-color: #2e323c; color: #fff; }
.comic-reader > header > span { text-align: center; }
.comic-reader > header b,.comic-reader > header small { display: block; }
.comic-reader > header small { color: #9da5b6; font-size: .65rem; margin-top: 3px; }
.comic-reader > div { align-items: flex-start; display: flex; flex: 1; justify-content: center; min-height: 0; overflow: auto; padding: 18px; }
.comic-reader img { box-shadow: 0 16px 60px #000; max-width: min(100%,1100px); }
.document-editor { border: 0; color: #262930; flex: 1; font: 1rem/1.75 Georgia,serif; min-height: 100%; outline: 0; padding: 40px max(30px,8vw); resize: none; }
.preview-image { display: block; height: 100%; margin: auto; max-width: 100%; object-fit: contain; }
.preview-frame { border: 0; height: 100%; width: 100%; }
.sheet-tabs { background: #f4f5f7; border-right: 1px solid var(--drive-line); display: flex; flex-direction: column; gap: 4px; min-width: 160px; padding: 12px; }
.sheet-tabs button { background: transparent; border: 0; border-radius: 7px; cursor: pointer; padding: 9px; text-align: left; }
.sheet-tabs button.active { background: #dce8fb; color: #174ea6; font-weight: 700; }
.sheet-wrap { flex: 1; overflow: auto; }
.sheet-wrap table { border-collapse: separate; border-spacing: 0; font-size: .78rem; min-width: 100%; }
.sheet-wrap th,.sheet-wrap td { border-bottom: 1px solid #e1e3e6; border-right: 1px solid #e1e3e6; height: 30px; min-width: 110px; padding: 5px 8px; }
.sheet-wrap th { background: #f4f5f7; color: #646973; font-weight: 650; position: sticky; top: 0; z-index: 2; }
.sheet-wrap tbody th { left: 0; min-width: 46px; position: sticky; width: 46px; z-index: 1; }
.sheet-wrap td:focus { box-shadow: inset 0 0 0 2px #1769e0; outline: 0; }
.video-dialog { background: #030612; color: #fff; overflow: hidden; }
#videoOverlay { background: #02040c; padding: 0; }
.cinema-player { border-radius: 0; height: 100dvh; max-width: none; width: 100vw; }
.cinema-stage {
  background:
    radial-gradient(circle at 18% 12%,rgba(47,83,180,.22),transparent 34%),
    radial-gradient(circle at 84% 88%,rgba(105,59,191,.18),transparent 36%),
    #02040b;
  height: 100%; overflow: hidden; position: relative; width: 100%;
}
.cinema-stage video { background: rgba(0,0,0,.86); display: block; height: 100%; object-fit: contain; width: 100%; }
.cinema-shade { left: 0; pointer-events: none; position: absolute; right: 0; z-index: 2; }
.cinema-shade-top { background: linear-gradient(180deg,rgba(3,6,18,.94),rgba(3,6,18,.42),transparent); height: 190px; top: 0; }
.cinema-shade-bottom { background: linear-gradient(0deg,rgba(2,4,14,.98),rgba(5,8,22,.7),transparent); bottom: 0; height: 270px; }
.cinema-header {
  align-items: flex-start; display: flex; justify-content: space-between; left: 0; padding: clamp(18px,3vw,44px);
  position: absolute; right: 0; top: 0; transition: opacity .25s; z-index: 4;
}
.cinema-header > div { display: flex; flex-direction: column; min-width: 0; }
.cinema-badge {
  align-self: flex-start;
  background: linear-gradient(135deg,rgba(45,105,237,.9),rgba(119,76,229,.9));
  border: 1px solid rgba(174,190,255,.32);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(75,83,223,.25);
  color: #fff;
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .13em;
  margin-bottom: 10px;
  padding: 6px 10px;
  text-transform: uppercase;
}
.cinema-header b { font-size: clamp(1rem,2vw,1.55rem); max-width: min(76vw,900px); overflow: hidden; text-shadow: 0 2px 18px rgba(0,0,0,.55); text-overflow: ellipsis; white-space: nowrap; }
.cinema-header small { color: #b9c4e5; font-size: .75rem; margin-top: 7px; }
.cinema-icon {
  align-items: center; background: rgba(16,22,43,.72); border: 1px solid rgba(169,184,230,.18); border-radius: 50%; color: #f6f8ff;
  cursor: pointer; display: inline-flex; flex: 0 0 auto; height: 44px; justify-content: center; padding: 0; width: 44px;
}
.cinema-icon:hover { background: rgba(78,100,190,.55); border-color: rgba(150,169,255,.5); transform: scale(1.04); }
.cinema-icon.primary { background: linear-gradient(135deg,#2e70f0,#7952e9); border-color: transparent; box-shadow: 0 8px 25px rgba(69,80,225,.32); color: #fff; }
.cinema-icon.cinema-skip { position: relative; }
.cinema-icon.cinema-skip small {
  color: currentColor; font-size: .58rem; font-weight: 800; left: 50%; line-height: 1;
  pointer-events: none; position: absolute; top: 50%; transform: translate(-50%,-48%);
}
.cinema-icon.cinema-skip .lucide { height: 23px; width: 23px; }
.cinema-center-play {
  align-items: center; background: linear-gradient(135deg,#3978f1,#8b58ea); border: 1px solid rgba(255,255,255,.34); border-radius: 50%; box-shadow: 0 15px 45px rgba(61,72,218,.38); color: #fff;
  cursor: pointer; display: flex; height: 76px; inset: 50% auto auto 50%; justify-content: center;
  opacity: 0; pointer-events: none; position: absolute; transform: translate(-50%,-50%); transition: .2s; width: 76px; z-index: 5;
}
.cinema-stage.paused .cinema-center-play { opacity: 1; pointer-events: auto; }
.cinema-center-play .lucide { fill: currentColor; height: 30px; margin-left: 4px; width: 30px; }
.cinema-buffering {
  align-items: center; background: rgba(11,16,38,.86); border: 1px solid rgba(123,143,226,.28); border-radius: 999px; box-shadow: 0 12px 35px rgba(0,0,0,.34); color: #e8edff; display: flex; gap: 10px;
  left: 50%; padding: 12px 18px; position: absolute; top: 50%; transform: translate(-50%,-50%); z-index: 6;
}
.cinema-buffering .lucide { animation: drive-spin 1s linear infinite; }
.cinema-controls {
  backdrop-filter: blur(16px);
  background: linear-gradient(135deg,rgba(10,15,35,.64),rgba(24,18,53,.55));
  border: 1px solid rgba(145,160,222,.17);
  border-radius: 18px;
  bottom: clamp(14px,2vw,28px);
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
  left: clamp(14px,3vw,44px);
  padding: 16px 18px;
  position: absolute;
  right: clamp(14px,3vw,44px);
  transition: opacity .25s;
  z-index: 4;
}
.cinema-control-row { align-items: center; display: flex; gap: 8px; padding-top: 11px; }
.cinema-seek { accent-color: #7064f2; cursor: pointer; height: 6px; margin: 0; width: 100%; }
.cinema-volume { accent-color: #65c8ff; cursor: pointer; max-width: 100px; width: 10vw; }
.cinema-time { color: #dce4ff; font-size: .75rem; margin-left: 6px; white-space: nowrap; }
.cinema-spacer { flex: 1; }
.cinema-stage.controls-hidden:not(.paused) .cinema-header,
.cinema-stage.controls-hidden:not(.paused) .cinema-controls,
.cinema-stage.controls-hidden:not(.paused) .cinema-shade { opacity: 0; }
.cinema-stage.controls-hidden:not(.paused) { cursor: none; }
.move-dialog {
  background: #fff;
  border: 1px solid rgba(39,44,62,.1);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(16,20,37,.32);
  display: flex;
  flex-direction: column;
  max-height: min(88dvh,780px);
  overflow: hidden;
  width: min(92vw,620px);
}
.move-dialog > header {
  align-items: center;
  border-bottom: 1px solid var(--drive-line);
  display: flex;
  justify-content: space-between;
  min-height: 80px;
  padding: 14px 18px;
}
.move-dialog > header > div { align-items: center; display: flex; gap: 13px; min-width: 0; }
.move-dialog h2 { font-size: 1.05rem; margin: 0; }
.move-dialog header small { color: #777d8d; display: block; font-size: .72rem; margin-top: 4px; }
.move-mark {
  align-items: center;
  background: linear-gradient(135deg,#e4edff,#eee8ff);
  border-radius: 12px;
  color: #5c55df;
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}
.move-picker { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 18px; }
.move-picker > label { color: #616676; display: flex; flex-direction: column; font-size: .72rem; font-weight: 750; gap: 7px; }
.move-picker select {
  background: #f7f8fb;
  border: 1px solid #dcdfe7;
  border-radius: 10px;
  color: #252937;
  min-height: 44px;
  padding: 0 12px;
}
.move-picker select option { background: #fff; color: #252937; }
.move-location {
  align-items: center;
  background: #f7f8fb;
  border: 1px solid #e0e2e9;
  border-radius: 11px 11px 0 0;
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 8px;
}
.move-location > span { min-width: 0; }
.move-location small,.move-location b { display: block; }
.move-location small { color: #898e9d; font-size: .62rem; margin-bottom: 3px; }
.move-location b { font-size: .73rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-location button:disabled { opacity: .32; }
.move-folder-list {
  border: 1px solid #e0e2e9;
  border-radius: 0 0 11px 11px;
  flex: 1;
  max-height: 330px;
  min-height: 190px;
  overflow-y: auto;
  padding: 6px;
}
.move-folder-list button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0,1fr) 20px;
  min-height: 48px;
  padding: 6px 9px;
  text-align: left;
  width: 100%;
}
.move-folder-list button:hover { background: #f0efff; color: #554bd2; }
.move-folder-list button > span { align-items: center; background: #e9efff; border-radius: 8px; color: #426bd0; display: flex; height: 32px; justify-content: center; width: 32px; }
.move-folder-list button b { font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-folder-list button > .lucide { color: #a1a5b0; height: 16px; width: 16px; }
.move-folder-empty { color: #858a98; font-size: .75rem; margin: 55px 18px; text-align: center; }
.move-folder-empty.error { color: #b4364d; }
.move-dialog > footer {
  align-items: center;
  border-top: 1px solid var(--drive-line);
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  padding: 13px 18px;
}
.move-job { align-items: center; display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 350px; padding: 36px; text-align: center; }
.move-job-icon { align-items: center; background: #eceaff; border-radius: 50%; color: #6459e6; display: flex; height: 72px; justify-content: center; margin-bottom: 18px; width: 72px; }
.move-job-icon .lucide { animation: drive-spin 1s linear infinite; height: 31px; width: 31px; }
.move-job-icon.complete { background: #e4f8f0; color: #22936c; }
.move-job-icon.complete .lucide,.move-job-icon.warning .lucide { animation: none; }
.move-job-icon.warning { background: #fff0e4; color: #bd6d20; }
.move-job h3 { font-size: 1.05rem; margin: 0; }
.move-job p { color: #777d8d; font-size: .77rem; line-height: 1.5; margin: 8px 0 22px; max-width: 430px; }
.move-job-progress { background: #e8e9ef; border-radius: 999px; height: 8px; overflow: hidden; width: min(100%,390px); }
.move-job-progress i { background: linear-gradient(90deg,#3978ef,#8157e9); display: block; height: 100%; transition: width .35s; width: 0; }
.move-job > small { color: #8a8f9d; font-size: .68rem; margin-top: 8px; }
.downloads-dialog {
  background: #fff; border-radius: 20px; box-shadow: 0 30px 90px rgba(18,20,28,.3); display: flex;
  flex-direction: column; max-height: min(90vh,860px); max-width: 920px; overflow: hidden; width: min(94vw,920px);
}
.downloads-dialog > header {
  align-items: center; border-bottom: 1px solid var(--drive-line); display: flex; justify-content: space-between;
  min-height: 84px; padding: 14px 20px;
}
.downloads-dialog > header > div { align-items: center; display: flex; gap: 13px; min-width: 0; }
.downloads-dialog h2 { font-size: 1.05rem; margin: 0; }
.downloads-dialog header small { color: #777c86; display: block; font-size: .74rem; margin-top: 4px; }
.downloads-mark { align-items: center; background: #e4edff; border-radius: 12px; color: #1769e0; display: flex; height: 46px; justify-content: center; width: 46px; }
.magnet-form { background: #f8f9fb; border-bottom: 1px solid var(--drive-line); padding: 18px 22px; }
.magnet-form label { display: block; font-size: .78rem; font-weight: 750; margin-bottom: 8px; }
.magnet-form > div { display: flex; gap: 9px; }
.magnet-form input { background: #fff; border: 1px solid #d5d8df; border-radius: 10px; flex: 1; min-width: 0; outline: 0; padding: 12px 14px; }
.magnet-form input:focus { border-color: #1769e0; box-shadow: 0 0 0 3px rgba(23,105,224,.12); }
.magnet-form small { color: #787d88; display: block; font-size: .7rem; line-height: 1.45; margin-top: 9px; }
.downloads-summary { align-items: center; border-bottom: 1px solid var(--drive-line); display: flex; gap: 18px; padding: 12px 22px; }
.downloads-summary > span { align-items: center; display: flex; font-size: .76rem; gap: 8px; }
.downloads-summary > span:nth-child(2) { color: #747983; }
.downloads-summary .drive-secondary { margin-left: auto; }
.downloads-list { flex: 1; min-height: 180px; overflow: auto; padding: 6px 22px 22px; scrollbar-gutter: stable; }
.download-card { border-bottom: 1px solid var(--drive-line); display: grid; gap: 12px; grid-template-columns: 46px minmax(0,1fr) auto; padding: 17px 0; }
.download-kind { align-items: center; background: #e8effd; border-radius: 12px; color: #1769e0; display: flex; height: 46px; justify-content: center; width: 46px; }
.download-main { min-width: 0; }
.download-title { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-meta { color: #747a85; display: flex; flex-wrap: wrap; font-size: .7rem; gap: 6px 14px; margin-top: 5px; }
.download-progress { background: #e5e7eb; border-radius: 999px; height: 6px; margin-top: 10px; overflow: hidden; }
.download-progress i { background: linear-gradient(90deg,#1769e0,#46b7c7); display: block; height: 100%; transition: width .4s; }
.download-card.complete .download-progress i { background: #29a26d; }
.download-card.error .download-progress i { background: #c84255; }
.download-actions { align-items: center; display: flex; gap: 4px; }
.download-empty { color: #747982; padding: 55px 20px; text-align: center; }
.playlist-dialog { background: #fff; border-radius: 18px; max-height: 80vh; max-width: 680px; overflow: auto; width: min(94vw,680px); }
.playlist-toolbar { padding: 14px 18px; }
.playlist-list { display: flex; flex-direction: column; padding: 0 18px 20px; }
.playlist-list article { align-items: center; border-top: 1px solid var(--drive-line); display: grid; gap: 12px; grid-template-columns: 42px 1fr 40px 40px; padding: 12px 2px; }
.playlist-list article > span { align-items: center; background: #ece7ff; border-radius: 10px; color: #6c50bd; display: flex; height: 42px; justify-content: center; }
.playlist-list small { color: #777c86; display: block; margin-top: 3px; }
.playlist-empty { color: #747982; padding: 50px; text-align: center; }
.media-dock {
  align-items: center; background: rgba(20,22,30,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  bottom: 20px; box-shadow: 0 20px 60px rgba(20,22,30,.32); color: #fff; display: grid; gap: 14px;
  grid-template-columns: 48px minmax(130px,230px) auto 96px minmax(120px,1fr) 38px 38px 38px;
  left: 50%; max-width: 1100px; padding: 10px 12px; position: fixed; transform: translateX(-50%); width: calc(100% - 50px); z-index: 160;
}
.media-cover { align-items: center; background: linear-gradient(135deg,#6146c7,#1769e0); border-radius: 10px; display: flex; height: 48px; justify-content: center; position: relative; width: 48px; }
.media-wave { align-items: center; display: flex; gap: 2px; inset: 0; justify-content: center; opacity: 0; position: absolute; }
.media-wave i { animation: drive-wave .8s ease-in-out infinite alternate; background: #fff; border-radius: 2px; height: 8px; width: 2px; }
.media-wave i:nth-child(2) { animation-delay: -.2s; height: 17px; }.media-wave i:nth-child(3) { animation-delay: -.4s; height: 12px; }.media-wave i:nth-child(4) { animation-delay: -.6s; height: 20px; }
.media-dock.playing .media-cover > .lucide { opacity: 0; }.media-dock.playing .media-wave { opacity: 1; }
@keyframes drive-wave { to { transform: scaleY(.35); } }
.media-info { min-width: 0; }.media-info b,.media-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-info small { color: #aab0bd; font-size: .7rem; margin-top: 4px; }
.media-controls { align-items: center; display: flex; gap: 3px; }.media-controls button,.media-button { background: transparent; border: 0; border-radius: 50%; color: #fff; cursor: pointer; height: 34px; width: 34px; }
.media-controls button:hover,.media-button:hover,.media-button.active { background: rgba(255,255,255,.12); }
.media-controls .media-play { background: #fff; color: #171920; height: 40px; width: 40px; }
.media-time { color: #b4b9c4; font-size: .7rem; text-align: center; white-space: nowrap; }
.media-seek { accent-color: #7d66de; min-width: 0; width: 100%; }
.media-dock.minimized { grid-template-columns: 42px minmax(100px,220px) auto 38px 38px; width: min(480px,calc(100% - 28px)); }
.media-dock.minimized .media-time,.media-dock.minimized .media-seek,.media-dock.minimized #toggleRepeat { display: none; }
.media-dock.minimized .media-cover { height: 42px; width: 42px; }
.drive-toast { background: #282b33; border-radius: 10px; bottom: 24px; color: #fff; left: 50%; max-width: min(520px,90vw); padding: 12px 18px; position: fixed; transform: translateX(-50%); z-index: 400; }
.drive-toast.error { background: #9c2f42; }
.prompt-dialog { background: #fff; border-radius: 16px; box-shadow: 0 26px 70px rgba(20,22,30,.25); max-width: 460px; padding: 24px; width: min(94vw,460px); }
.prompt-dialog h2 { font-size: 1.15rem; margin: 0 0 7px; }.prompt-dialog p { color: #747982; font-size: .84rem; line-height: 1.5; margin: 0 0 16px; white-space: pre-line; }
.prompt-dialog input {
  background: #fff; border: 1px solid #cfd3dc; border-radius: 9px; caret-color: #1769e0;
  color: #202124; outline: 0; padding: 12px; width: 100%;
}
.prompt-dialog input::placeholder { color: #8a909b; opacity: 1; }
.prompt-dialog input:focus { background: #fff; border-color: #1769e0; box-shadow: 0 0 0 3px rgba(23,105,224,.12); color: #202124; }
.prompt-dialog > div { display: flex; gap: 9px; justify-content: flex-end; margin-top: 18px; }
.mobile-only { display: none; }
@media (max-width: 850px) {
  .drive-shell { grid-template-columns: 1fr; }
  .drive-sidebar { box-shadow: 18px 0 45px rgba(30,32,39,.2); inset: 0 auto 0 0; position: fixed; transform: translateX(-105%); transition: transform .22s; width: min(320px,88vw); }
  .drive-sidebar.open { transform: translateX(0)!important; }
  .mobile-only { display: inline-flex; }
  .drive-header { gap: 9px; min-height: 66px; padding: 9px 12px; }
  .drive-product-nav { display: none; }
  .drive-search { padding: 0 12px; }.drive-search input { height: 44px; }
  .drive-header-actions { gap: 0; }.drive-header-actions #uploadButton { display: none; }
  .drive-content { padding: 16px 12px 126px; }
  .drive-pathbar { margin-bottom: 11px; }.drive-breadcrumbs button { font-size: .94rem; max-width: 130px; }
  .drive-batch-bar { align-items: flex-start; flex-wrap: wrap; margin: 0 0 12px; padding: 10px; }
  .drive-batch-bar > div { margin-left: 0; width: 100%; }
  .drive-batch-bar > div .drive-secondary { flex: 1; }
  .batch-progress { max-width: none; order: 3; width: 100%; }
  .drive-file-head { display: none; }
  .list-view .drive-file { grid-template-columns: minmax(0,1fr) 38px; min-height: 64px; padding: 5px 4px; }
  .list-view .drive-file.selectable { grid-template-columns: 34px minmax(0,1fr) 38px; }
  .list-view .file-modified,.list-view .file-size { display: none; }
  .grid-view { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .grid-view .drive-file { min-height: 126px; padding: 12px; }
  .drive-overlay { padding: 0; }.drive-editor,.video-dialog,.playlist-dialog { border-radius: 0; height: 100%; max-height: none; width: 100%; }
  .drive-editor > header { padding: 9px 11px; }.drive-editor header .drive-secondary { font-size: 0; width: 40px; }.drive-editor header .drive-secondary .lucide { margin: 0; }
  .document-editor { padding: 24px 18px; }
  .sheet-tabs { border-bottom: 1px solid var(--drive-line); border-right: 0; flex-direction: row; min-width: 100%; overflow: auto; padding: 8px; }
  .editor-body:has(.sheet-wrap) { flex-direction: column; }
  .video-dialog { display: flex; flex-direction: column; justify-content: center; }.video-dialog video { max-height: none; }
  .cinema-header { padding: 18px 15px; }.cinema-controls { border-radius: 14px; bottom: 10px; left: 10px; padding: 13px 10px; right: 10px; }
  .cinema-volume { display: none; }.cinema-time { font-size: .68rem; }
  .cinema-icon { height: 40px; width: 40px; }.cinema-center-play { height: 64px; width: 64px; }
  .downloads-dialog { border-radius: 0; height: 100%; max-height: none; width: 100%; }
  .move-dialog { border-radius: 0; height: 100%; max-height: none; width: 100%; }
  .move-folder-list { max-height: none; }
  .downloads-dialog > header { padding: 12px 14px; }
  .magnet-form { padding: 15px 14px; }.magnet-form > div { flex-direction: column; }
  .downloads-summary { align-items: flex-start; flex-wrap: wrap; gap: 8px 14px; padding: 11px 14px; }
  .downloads-summary .drive-secondary { margin-left: 0; width: 100%; }
  .downloads-list { padding: 4px 14px 18px; }
  .download-card { grid-template-columns: 40px minmax(0,1fr); }
  .download-kind { height: 40px; width: 40px; }.download-actions { grid-column: 2; justify-content: flex-end; }
  .media-dock,.media-dock.minimized { bottom: 10px; gap: 7px; grid-template-columns: 40px minmax(80px,1fr) auto 36px 36px; padding: 8px; width: calc(100% - 16px); }
  .media-dock .media-cover { height: 40px; width: 40px; }.media-dock .media-time,.media-dock .media-seek,.media-dock #toggleRepeat { display: none; }
  .media-controls #previousAudio,.media-controls #nextAudio { display: none; }
}

/* Application */
.app-shell { display: grid; grid-template-columns: 270px minmax(0,1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar { background: #0b0f1b; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; padding: 20px 14px 14px; }
.sidebar-top { align-items: center; display: flex; justify-content: space-between; padding: 0 8px 22px; }
.sidebar-close, .menu-button { display: none !important; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: 9px; cursor: pointer; display: inline-flex; height: 36px; justify-content: center; width: 36px; }
.icon-button:hover { background: rgba(255,255,255,.06); }
.new-chat-button { align-items: center; background: #171d2d; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; font-weight: 700; gap: 9px; padding: 12px 14px; text-align: left; }
.new-chat-button .lucide { color: #a38fff; height: 17px; width: 17px; }
.conversation-label { color: #626d83; font-size: .68rem; font-weight: 800; letter-spacing: .13em; margin: 26px 10px 10px; text-transform: uppercase; }
.conversation-list { flex: 1; min-height: 0; overflow-y: auto; }
.conversation-item {
  align-items: center; background: transparent; border: 0; border-radius: 9px; color: #aab2c3; cursor: pointer;
  display: grid; font-size: .83rem; gap: 8px; grid-template-columns: 18px minmax(0,1fr); margin: 2px 0; padding: 10px; text-align: left; width: 100%;
}
.conversation-item span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item small { color: #566076; font-size: .62rem; grid-column: 2; }
.conversation-item:hover, .conversation-item.active { background: #171d2d; color: #fff; }
.conversation-row { border-radius: 9px; margin: 2px 0; position: relative; }
.conversation-row .conversation-item { margin: 0; padding-right: 82px; }
.conversation-row.active .conversation-item { background: #171d2d; color: #fff; }
.conversation-actions { align-items: center; display: flex; gap: 1px; opacity: 0; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); transition: opacity .16s; }
.conversation-row:hover .conversation-actions,.conversation-row:focus-within .conversation-actions,.conversation-row.active .conversation-actions { opacity: 1; }
.conversation-actions button { align-items: center; background: #20283b; border: 0; border-radius: 6px; color: #9ca6ba; cursor: pointer; display: flex; height: 24px; justify-content: center; padding: 0; width: 24px; }
.conversation-actions button:hover { background: #303a51; color: #fff; }
.conversation-actions .conversation-delete:hover { background: rgba(218,69,93,.18); color: #ff8294; }
.conversation-actions .lucide { height: 13px; width: 13px; }
.empty-list { color: #566076; font-size: .8rem; padding: 0 10px; }
.sidebar-bottom { border-top: 1px solid var(--line); padding-top: 10px; }
.sidebar-link { align-items: center; color: #8791a6; display: flex; font-size: .82rem; gap: 10px; padding: 10px; text-decoration: none; }
.account-button { align-items: center; background: transparent; border: 0; border-radius: 10px; cursor: pointer; display: grid; gap: 9px; grid-template-columns: 34px 1fr auto; padding: 9px; text-align: left; width: 100%; }
.account-button:hover { background: #151b2a; }
.account-button .avatar { align-items: center; background: #43378d; border-radius: 9px; display: flex; font-weight: 800; height: 34px; justify-content: center; }
.account-button b, .account-button small { display: block; font-size: .75rem; }
.account-button small { color: #687288; margin-top: 2px; }
.chat-shell { background: radial-gradient(circle at 50% -20%, rgba(124,92,255,.075), transparent 45%), #0e1320; display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-height: 0; min-width: 0; }
.chat-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; height: 65px; justify-content: space-between; padding: 0 24px; }
.chat-header > div:first-of-type { align-items: center; display: flex; gap: 12px; }
.chat-header strong { font-size: .91rem; }
.model-badge { align-items: center; background: #171d2c; border: 1px solid var(--line); border-radius: 999px; color: #8791a7; display: inline-flex; font-size: .66rem; gap: 7px; padding: 6px 9px; }
.header-actions { display: flex; gap: 4px; }
.messages { min-height: 0; overscroll-behavior: contain; overflow-y: auto; padding: 30px max(24px,calc((100% - 850px)/2)); scroll-padding-bottom: 24px; }
.welcome-state { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 100%; text-align: center; }
.welcome-mark { background: #090d1a; border: 1px solid rgba(124,92,255,.28); border-radius: 18px; height: 62px; margin-bottom: 22px; overflow: hidden; padding: 8px; width: 62px; }
.welcome-mark img { height: 100%; object-fit: contain; width: 100%; }
.welcome-state h1 { font-size: clamp(2rem,4vw,3rem); letter-spacing: -.055em; margin: 0; }
.welcome-state > p { color: var(--muted); margin: 12px 0 34px; }
.suggestion-grid { display: grid; gap: 11px; grid-template-columns: 1fr 1fr; max-width: 700px; width: 100%; }
.suggestion-grid button { background: rgba(20,26,42,.76); border: 1px solid var(--line); border-radius: 13px; cursor: pointer; display: grid; gap: 2px 10px; grid-template-columns: 28px 1fr; padding: 15px; text-align: left; }
.suggestion-grid button:hover { border-color: rgba(124,92,255,.55); transform: translateY(-1px); }
.suggestion-grid .lucide { color: #8069e8; grid-row: 1/3; height: 20px; margin-top: 2px; width: 20px; }
.suggestion-grid b { font-size: .8rem; }
.suggestion-grid small { color: #687288; font-size: .7rem; }
.message { display: grid; gap: 13px; grid-template-columns: 34px minmax(0,1fr); margin: 0 auto 28px; max-width: 850px; }
.message.user { grid-template-columns: minmax(0,1fr) 34px; }
.message.user .message-avatar { grid-column: 2; }
.message.user .message-body { align-items: flex-end; grid-column: 1; grid-row: 1; }
.message-avatar { align-items: center; background: linear-gradient(135deg,#6f50e8,#9b55dd); border-radius: 10px; display: flex; font-size: .76rem; font-weight: 850; height: 34px; justify-content: center; }
.message.assistant .message-avatar { background: #0b1020; border: 1px solid rgba(124,92,255,.28); overflow: hidden; padding: 4px; }
.message-avatar img { height: 100%; object-fit: contain; width: 100%; }
.message.user .message-avatar { background: #2c354b; }
.message-body { display: flex; flex-direction: column; min-width: 0; }
.message-meta { color: #767f93; font-size: .7rem; font-weight: 700; margin: 0 0 7px; }
.message-content { color: #dce1ec; font-size: .92rem; line-height: 1.72; min-width: 0; overflow-wrap: anywhere; }
.message-content p { margin: 0 0 12px; white-space: pre-wrap; }
.message-content p:last-child { margin-bottom: 0; }
.message-content h3,.message-content h4,.message-content h5,.message-content h6 { letter-spacing: -.02em; line-height: 1.25; margin: 1.15rem 0 .55rem; }
.message-content h3:first-child,.message-content h4:first-child { margin-top: 0; }
.message-content h3 { font-size: 1.18rem; }.message-content h4 { font-size: 1.06rem; }
.message-content h5,.message-content h6 { font-size: .95rem; }
.message-content strong { color: inherit; font-weight: 800; }
.message-content a { color: #7257df; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.message-content ul,.message-content ol { margin: .65rem 0; padding-left: 1.35rem; }
.message-content li { margin: .28rem 0; padding-left: .18rem; }
.message-content blockquote { background: rgba(124,92,255,.06); border-left: 3px solid #8067e8; color: #656777; margin: .8rem 0; padding: .65rem .8rem; }
.message-content hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.message-content code { background: rgba(124,92,255,.09); border-radius: 5px; color: #6146cf; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .84em; padding: .12rem .3rem; }
.message-content pre { background: #171a25; border-radius: 10px; color: #eef0f6; margin: .8rem 0; max-width: 100%; overflow-x: auto; padding: .9rem; }
.message-content pre code { background: transparent; color: inherit; display: block; font-size: .78rem; line-height: 1.55; padding: 0; white-space: pre; }
.table-scroll { border: 1px solid var(--line); border-radius: 11px; margin: 6px 0 12px; max-width: 100%; overflow-x: auto; }
.table-scroll table { border-collapse: collapse; font-size: .82rem; min-width: 520px; width: 100%; }
.table-scroll th, .table-scroll td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.table-scroll th { background: rgba(124,92,255,.08); color: #4c426f; font-size: .72rem; letter-spacing: .025em; text-transform: uppercase; }
.table-scroll tr:last-child td { border-bottom: 0; }
.message-attachment {
  align-items: center; background: rgba(124,92,255,.07); border: 1px solid rgba(124,92,255,.18);
  border-radius: 12px; color: inherit; display: grid; gap: 10px; grid-template-columns: 38px minmax(0,1fr) auto;
  margin-top: 11px; max-width: 420px; padding: 10px 12px; text-decoration: none;
}
.message-attachment:hover { background: rgba(124,92,255,.11); border-color: rgba(124,92,255,.3); }
.file-icon { align-items: center; background: #7960ec; border-radius: 9px; color: #fff; display: flex; font-size: .57rem; font-weight: 850; height: 38px; justify-content: center; }
.file-details { display: flex; flex-direction: column; min-width: 0; }
.file-details b { font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-details small { color: var(--muted); font-size: .66rem; margin-top: 3px; }
.file-open { color: #725bd9; font-size: .67rem; font-weight: 750; white-space: nowrap; }
.message.user .message-content { background: #1a2132; border: 1px solid var(--line); border-radius: 14px 14px 3px 14px; max-width: 80%; padding: 11px 14px; }
.message-actions { display: flex; gap: 12px; margin-top: 8px; }
.message-actions button { align-items: center; background: transparent; border: 0; color: #737d92; cursor: pointer; display: flex; font-size: .68rem; gap: 5px; padding: 4px 0; }
.message-actions .lucide { height: 13px; width: 13px; }
.typing { display: flex; gap: 5px; padding: 8px 0; }
.typing span { animation: typing 1s infinite alternate; background: #8671ed; border-radius: 50%; height: 6px; width: 6px; }
.typing span:nth-child(2) { animation-delay: .2s; }.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { to { opacity: .2; transform: translateY(-4px); } }
.thinking-row { align-items: center; color: var(--muted); display: flex; font-size: .72rem; gap: 10px; min-height: 28px; }
.composer-shell { padding: 12px max(20px,calc((100% - 850px)/2)) 18px; }
.composer { align-items: flex-end; background: #171d2c; border: 1px solid #293147; border-radius: 16px; box-shadow: 0 14px 45px rgba(0,0,0,.25); display: flex; padding: 7px; }
.composer:focus-within { border-color: rgba(124,92,255,.62); }
.composer textarea { background: transparent; border: 0; color: var(--text); flex: 1; line-height: 1.5; max-height: 180px; outline: 0; padding: 9px; resize: none; }
.composer-button, .send-button { align-items: center; border: 0; border-radius: 10px; cursor: pointer; display: flex; flex: 0 0 auto; height: 37px; justify-content: center; width: 37px; }
.composer-button { background: transparent; color: #8993a7; font-size: 1.15rem; }
.composer-button:hover { background: #222a3e; color: #fff; }
.send-button { background: linear-gradient(135deg,var(--accent),#6841e8); font-size: 1.2rem; }
.send-button:disabled { cursor: wait; filter: grayscale(.15); opacity: .62; }
.composer-note { color: #535d72; font-size: .63rem; margin: 8px 0 0; text-align: center; }
.attachment { align-items: center; background: #171d2c; border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 10px; margin: 0 0 8px; max-width: 360px; padding: 9px 11px; }
.attachment > .lucide { color: #8068e8; }.attachment span:nth-child(2) { display: flex; flex: 1; flex-direction: column; font-size: .72rem; min-width: 0; }
.attachment b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.attachment small { color: var(--muted); }
.attachment button { background: transparent; border: 0; cursor: pointer; }
.settings-drawer { background: #111725; border-left: 1px solid var(--line); bottom: 0; box-shadow: var(--shadow); padding: 23px; position: fixed; right: 0; top: 0; transform: translateX(105%); transition: .25s; width: min(390px,92vw); z-index: 20; }
.settings-drawer.open { transform: none; }
.drawer-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 32px; }
.drawer-header h2 { font-size: 1.2rem; margin: 0; }
.settings-drawer label { color: #c5ccda; display: flex; flex-direction: column; font-size: .78rem; gap: 9px; margin-bottom: 24px; }
.settings-drawer textarea { resize: vertical; }
.settings-drawer output { color: #a18eff; float: right; }
.settings-drawer hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.settings-drawer h3 { font-size: .83rem; }
.settings-drawer button { margin: 8px 0; width: 100%; }
.switch-row { align-items: center; flex-direction: row !important; justify-content: space-between; }
.switch-row span { display: flex; flex-direction: column; }.switch-row small { color: var(--muted); margin-top: 4px; }
.switch-row input { accent-color: var(--accent); width: auto; }
.scrim { background: rgba(0,0,0,.55); inset: 0; opacity: 0; pointer-events: none; position: fixed; transition: .2s; z-index: 15; }
.scrim.visible { opacity: 1; pointer-events: auto; }
.audio-player { bottom: 18px; left: 50%; max-width: 460px; position: fixed; transform: translateX(-50%); width: 85%; z-index: 30; }
.toast { background: #182238 !important; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; bottom: 24px; box-shadow: var(--shadow); color: #fff !important; left: 50%; max-width: min(520px,calc(100vw - 32px)); opacity: 0; overflow-wrap: anywhere; padding: 11px 17px; pointer-events: none; position: fixed; transform: translate(-50%,20px); transition: opacity .2s,transform .2s; z-index: 40; }
.toast *, .drive-toast *, .hubflix-toast *, .library-toast * { color: inherit !important; }
.toast.toast-info { background: #182238 !important; border-color: rgba(255,255,255,.16); color: #fff !important; }
.toast.toast-success { background: #10624f !important; border-color: #58c8a8; color: #fff !important; }
.toast.toast-warning { background: #6d4800 !important; border-color: #e4ad42; color: #fff !important; }
.toast.toast-error { background: #8c2637 !important; border-color: #ef8392; color: #fff !important; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-card { margin: auto; width: min(92%,520px); }
  .auth-mobile-brand { display: flex; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { bottom: 0; box-shadow: var(--shadow); left: 0; position: fixed; top: 0; transform: translateX(-105%); transition: .25s; width: min(300px,88vw); z-index: 20; }
  .sidebar.open { transform: none; }
  .sidebar-close, .menu-button { display: inline-flex !important; }
  .chat-header { padding: 0 14px; }
}
@media (max-width: 600px) {
  .auth-shell { min-height: 100dvh; padding: 12px; }
  .auth-card { border-radius: 18px; margin: auto; min-height: min(620px,calc(100dvh - 24px)); padding: 28px 20px 54px; width: 100%; }
  .auth-mobile-brand { margin-bottom: 28px; }
  .auth-step { gap: 15px; min-width: 0; }
  .auth-step h2 { font-size: 1.75rem; }
  .otp-inputs { gap: 5px; margin: 8px 0; }
  .otp-inputs input { border-radius: 9px; font-size: 1.2rem; padding: 11px 0; }
  .suggestion-grid { grid-template-columns: 1fr; }
  .chat-header { height: 57px; padding: 0 9px; }
  .chat-header strong { display: block; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .messages { padding: 18px 11px 10px; }
  .message { gap: 9px; grid-template-columns: 31px minmax(0,1fr); margin-bottom: 20px; }
  .message.user { grid-template-columns: minmax(0,1fr) 31px; }
  .message-avatar { border-radius: 9px; height: 31px; width: 31px; }
  .app-page .message.assistant .message-body { border-radius: 14px; padding: 14px; }
  .message.user .message-content { max-width: 100%; padding: 10px 12px; }
  .message-content { font-size: .9rem; line-height: 1.6; }
  .message-attachment { grid-template-columns: 36px minmax(0,1fr); max-width: 100%; width: 100%; }
  .message-attachment .file-open { display: none; }
  .table-scroll { border-radius: 9px; margin-inline: -4px; }
  .table-scroll table { min-width: 470px; }
  .composer-shell {
    background: linear-gradient(to top, rgba(251,251,254,.98) 76%, rgba(251,251,254,.75), transparent);
    padding: 9px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .composer { border-radius: 19px; padding: 6px; }
  .composer textarea { font-size: 16px; line-height: 1.35; max-height: 120px; min-height: 42px; padding: 10px 6px; }
  .composer-button, .send-button { border-radius: 12px; height: 42px; width: 42px; }
  .attachment { margin-bottom: 7px; max-width: 100%; width: 100%; }
  .composer-note { font-size: .62rem; margin-top: 6px; padding-inline: 8px; }
  .model-badge { display: inline-flex; font-size: .58rem; gap: 5px; padding: 4px 7px; }
  .model-badge .model-detail { display: none; }
}
@media (max-width: 420px) {
  .voice-button { display: none; }
  .messages { padding-inline: 8px; }
  .message { gap: 7px; }
  .app-page .message.assistant .message-body { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Light lavender workspace inspired by the supplied reference */
.app-page {
  --bg: #e8e5ff; --panel: #ffffff; --panel-2: #f7f7fc; --line: rgba(33,37,54,.1);
  --text: #252735; --muted: #777d8f; background: #dcd8ff; color: var(--text);
}
.app-page .app-shell { background: #f7f7fb; border: 1px solid rgba(42,43,58,.1); box-shadow: 0 34px 90px rgba(64,50,135,.2); }
.app-page .sidebar { background: #fafafd; border-color: var(--line); }
.app-page .new-chat-button { background: #292a31; border-color: #292a31; color: #fff; }
.app-page .conversation-label { color: #989cab; }
.app-page .conversation-item { color: #656a78; }
.app-page .conversation-item:hover, .app-page .conversation-item.active { background: #ededf3; color: #272934; }
.app-page .conversation-row.active .conversation-item { background: #ededf3; color: #272934; }
.app-page .conversation-actions { background: linear-gradient(90deg,rgba(237,237,243,0),#ededf3 18%); padding-left: 8px; }
.app-page .conversation-actions button { background: transparent; color: #858999; }
.app-page .conversation-actions button:hover { background: #dfddea; color: #4f44a2; }
.app-page .account-button:hover { background: #ededf3; }
.app-page .account-button .avatar { color: #fff; }
.app-page .chat-shell {
  background-color: #fbfbfe;
  background-image: radial-gradient(rgba(124,92,255,.085) 1.1px, transparent 1.1px);
  background-size: 23px 23px;
}
.app-page .chat-header { background: rgba(255,255,255,.88); border-color: var(--line); backdrop-filter: blur(16px); }
.app-page .model-badge { background: #f1efff; color: #6c6686; }
.app-page .icon-button:hover { background: #efeff5; }
.app-page .welcome-state > p, .app-page .composer-note { color: var(--muted); }
.app-page .suggestion-grid button { background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(63,52,116,.06); }
.app-page .message.assistant .message-body { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 16px 40px rgba(54,46,102,.08); padding: 18px 20px; }
.app-page .message-content { color: #393c48; }
.app-page .message.user .message-content { background: #f3f1ff; color: #353441; }
.app-page .composer { background: #fff; border-color: rgba(91,78,152,.18); box-shadow: 0 16px 45px rgba(60,48,119,.13); }
.app-page .composer textarea { color: #2b2d38; }
.app-page .composer-button:hover { background: #f0eff7; color: #3a3c49; }
.app-page .attachment { background: #fff; }
.app-page .settings-drawer { background: #fff; color: #292b37; }
.app-page .settings-drawer input, .app-page .settings-drawer textarea, .app-page .settings-drawer select { background: #f7f7fb; color: #292b37; }
.setting-help { color: #9196a5; display: block; font-size: .68rem; line-height: 1.45; margin-top: 6px; }

/* Admin */
.admin-page { background: #f0efff; color: #282a36; min-height: 100%; }
.admin-header { align-items: center; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(33,37,54,.1); display: grid; gap: 18px; grid-template-columns: 1fr auto 1fr; padding: 14px max(22px,calc((100% - 1180px)/2)); position: sticky; top: 0; z-index: 10; }
.admin-header-actions { display: flex; gap: 8px; justify-self: end; }
.admin-header .brand { color: #282a36; text-decoration: none; }
.admin-header > :last-child { justify-self: end; }
.admin-header-copy { text-align: center; }.admin-header-copy b,.admin-header-copy small { display: block; }
.admin-header-copy b { font-size: .84rem; }.admin-header-copy small { color: #888da0; font-size: .68rem; margin-top: 3px; }
.compact { min-height: 38px; padding: 8px 13px; width: auto !important; }
.admin-main { margin: 0 auto; max-width: 1180px; padding: 45px 22px 80px; }
.admin-intro { align-items: end; display: flex; justify-content: space-between; }
.admin-intro h1 { font-size: clamp(2rem,4vw,3.3rem); letter-spacing: -.055em; margin: 10px 0; }
.admin-intro p { color: #757b8e; }
.admin-health { align-items: center; background: #fff; border: 1px solid rgba(33,37,54,.08); border-radius: 999px; display: flex; font-size: .72rem; gap: 9px; padding: 9px 13px; }
.stats-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(175px,1fr)); margin-top: 30px; }
.stats-grid article { background: linear-gradient(145deg,#fff,#f9f8ff); border: 1px solid rgba(33,37,54,.08); border-radius: 14px; box-shadow: 0 10px 30px rgba(60,48,119,.05); padding: 18px; }
.stats-grid span,.stats-grid small { color: #858a9b; display: block; font-size: .7rem; }
.stats-grid b { display: block; font-size: 1.8rem; letter-spacing: -.04em; margin: 8px 0 5px; }
.admin-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 38px; }
.admin-card { background: #fff; border: 1px solid rgba(33,37,54,.09); border-radius: 16px; box-shadow: 0 12px 38px rgba(60,48,119,.07); padding: 22px; }
.admin-card.wide { grid-column: 1/-1; }
.admin-card h2 { font-size: 1rem; margin: 0 0 14px; }
.admin-card p { font-size: .82rem; }
.section-kicker { color: #765fe0; display: block; font-size: .64rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 7px; text-transform: uppercase; }
.card-heading { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
.card-heading h2 { margin-bottom: 5px; }.card-heading p { color: #818698; margin: 0; }
.user-list { margin-top: 18px; }
.user-row { align-items: center; border-top: 1px solid rgba(33,37,54,.08); display: grid; gap: 12px; grid-template-columns: 38px minmax(150px,1fr) minmax(180px,1fr) auto auto; padding: 15px 2px; }
.user-avatar { align-items: center; background: linear-gradient(135deg,#7359ea,#9e66e8); border-radius: 10px; color: #fff; display: flex; font-weight: 850; height: 38px; justify-content: center; width: 38px; }
.user-identity b,.user-identity small,.user-meta b,.user-meta small { display: block; }
.user-identity b,.user-meta b { font-size: .78rem; }.user-identity small,.user-meta small { color: #888d9d; font-size: .67rem; margin-top: 4px; }
.user-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }.user-actions button { background: #f5f4fa; border: 0; border-radius: 7px; color: #666b7d; cursor: pointer; font-size: .66rem; padding: 7px 8px; }
.user-actions button:hover { background: #ece9ff; color: #6047cc; }
.key-list { margin-top: 20px; }
.key-row { align-items: center; border-top: 1px solid rgba(33,37,54,.08); display: grid; gap: 12px; grid-template-columns: 34px 1fr auto auto; padding: 14px 2px; }
.key-icon { align-items: center; background: #efedff; border-radius: 9px; color: #745be6; display: flex; height: 34px; justify-content: center; }
.key-row b,.key-row small { display: block; }.key-row b { font-size: .8rem; }.key-row small { color: #858b9c; font-size: .68rem; margin-top: 4px; }
.key-row button,.endpoint-row button { background: transparent; border: 0; color: #dc536c; cursor: pointer; font-size: .72rem; }
.key-state { background: #e7faf2; border-radius: 999px; color: #288260; font-size: .66rem; padding: 5px 8px; }
.key-state.revoked { background: #f3f3f6; color: #898d99; }
.key-state.pending { background: #fff3d8; color: #9b6716; }
.user-toolbar { align-items: center; display: flex; gap: 9px; }
.admin-search { align-items: center; background: #f7f7fb; border: 1px solid rgba(33,37,54,.12); border-radius: 9px; color: #969aaa; display: flex; gap: 7px; padding: 0 9px; }
.admin-search input { background: transparent !important; border: 0 !important; min-width: 150px; outline: 0; padding: 9px 0 !important; }
.registration-policy { align-items: center; background: #f1faf7; border-radius: 11px; display: flex; gap: 12px; margin: 17px 0; padding: 14px; }
.registration-policy > .lucide { color: #2a9a73; height: 25px; width: 25px; }
.registration-policy b,.registration-policy small { display: block; }
.registration-policy b { font-size: .78rem; }.registration-policy small { color: #6d837b; font-size: .69rem; line-height: 1.4; margin-top: 3px; }
#saveRegistration { margin-top: 16px; width: 100%; }
.security-status { align-items: center; background: #effaf6; border-radius: 11px; display: flex; gap: 12px; padding: 14px; }
.security-status b,.security-status small { display: block; }.security-status small { color: #6d837b; font-size: .7rem; margin-top: 3px; }
.admin-card form { display: flex; flex-direction: column; gap: 9px; }
.admin-card input,.admin-card select,.dialog-card input,.dialog-card select { background: #f7f7fb; border: 1px solid rgba(33,37,54,.12); border-radius: 9px; color: #292b37; padding: 11px; width: 100%; }
.admin-card textarea { background: #f8f8fc; border: 1px solid rgba(33,37,54,.14); border-radius: 12px; color: #20212b; font: inherit; line-height: 1.55; min-height: 190px; padding: 14px; resize: vertical; width: 100%; }
.admin-card textarea:focus { border-color: #2563eb; outline: 3px solid rgba(37,99,235,.13); }
.ai-policy-card { background: linear-gradient(135deg,#fff 0%,#fafaff 100%); border-color: rgba(37,99,235,.18); }
.policy-options { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.policy-options .admin-check { background: #fff; border: 1px solid rgba(33,37,54,.09); border-radius: 11px; margin: 0; padding: 12px; }
.policy-help { color: #737789; margin-top: -3px; }
.policy-actions { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-top: 4px; }
.policy-actions .form-error { margin: 0; }
.generated-chat-image { border: 1px solid rgba(33,37,54,.1); border-radius: 16px; box-shadow: 0 14px 36px rgba(20,25,45,.12); display: block; height: auto; margin: 10px 0; max-width: min(100%,512px); }
.admin-form { margin-top: 17px; }.admin-form label,.dialog-card label { color: #626779; display: flex; flex-direction: column; font-size: .72rem; font-weight: 700; gap: 7px; }
.admin-form label small { color: #a0a4b0; font-weight: 500; }
.admin-check { align-items: center !important; flex-direction: row !important; font-weight: 600 !important; }
.admin-check input { accent-color: #765be6; width: auto; }
.redirect-box { background: #f6f5fb; border-radius: 9px; display: grid; gap: 7px; grid-template-columns: 1fr auto; padding: 11px; }
.redirect-box span { color: #85899a; font-size: .64rem; grid-column: 1/-1; }.redirect-box code { font-size: .68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.redirect-box button { background: transparent; border: 0; color: #674fd1; cursor: pointer; font-size: .68rem; }
.endpoint-row { align-items: center; background: #f7f7fb; border-radius: 9px; display: flex; gap: 12px; justify-content: space-between; padding: 12px; }
.endpoint-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-button { color: #fff; display: inline-flex; text-decoration: none; }
dialog { background: transparent; border: 0; color: #292b37; }
dialog::backdrop { background: rgba(13,14,24,.55); backdrop-filter: blur(4px); }
.dialog-card { background: #fff; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 12px; max-height: 88dvh; overflow-y: auto; padding: 24px; width: min(480px,92vw); }
.dialog-card input { background: #f7f7fb; border: 1px solid rgba(33,37,54,.12); border-radius: 9px; padding: 12px; }
.compact-dialog { width: min(440px,92vw); }
.confirm-dialog-card { align-items: flex-start; background: #fff; border: 1px solid rgba(33,37,54,.09); border-radius: 18px; box-shadow: 0 30px 100px rgba(12,15,28,.28); color: #292b37; display: grid; gap: 18px; grid-template-columns: 46px minmax(0,1fr); padding: 24px; width: min(470px,92vw); }
.confirm-dialog-card h2 { font-size: 1.08rem; margin: 0 0 7px; }
.confirm-dialog-card p { color: #777d8e; font-size: .8rem; line-height: 1.55; margin: 0; }
.confirm-dialog-card .dialog-actions { grid-column: 1/-1; justify-self: end; width: 100%; }
.dialog-icon { align-items: center; border-radius: 13px; display: flex; height: 46px; justify-content: center; width: 46px; }
.dialog-icon.danger { background: #fff0f2; color: #cf3f5a; }.dialog-icon.warning { background: #fff5df; color: #a46a10; }
.dialog-icon .lucide { height: 22px; width: 22px; }
.danger-confirm-button { align-items: center; background: #c93f58; border: 0; border-radius: 9px; color: #fff; cursor: pointer; display: inline-flex; font-size: .76rem; font-weight: 750; justify-content: center; min-height: 38px; padding: 8px 14px; }
.danger-confirm-button:hover { background: #ad3148; }
.danger-confirm-button.safe { background: linear-gradient(135deg,#765be6,#6042cb); }.danger-confirm-button.safe:hover { filter: brightness(1.08); }
.dialog-card pre { background: #eeecff; border-radius: 8px; color: #4a3b9e; overflow-wrap: anywhere; padding: 12px; white-space: pre-wrap; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
@media (min-width: 1100px) {
  .app-page { padding: 26px; }
  .app-page .app-shell { border-radius: 18px; height: calc(100vh - 52px); height: calc(100dvh - 52px); overflow: hidden; }
}
@media (max-width: 700px) {
  .admin-header { grid-template-columns: 1fr auto; padding-inline: 14px; }.admin-header-copy { display: none; }
  .admin-main { padding: 30px 12px 60px; }.admin-intro { align-items: flex-start; flex-direction: column; }.admin-health { margin-top: 10px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }.admin-card.wide { grid-column: auto; }
  .policy-options { grid-template-columns: 1fr; }.policy-actions { align-items: stretch; flex-direction: column; }
  .key-row { grid-template-columns: 32px 1fr auto; }.key-row button { grid-column: 2; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .user-toolbar { align-items: stretch; flex-direction: column; width: 100%; }.admin-search { width: 100%; }.admin-search input { min-width: 0; }
  .user-row { grid-template-columns: 38px 1fr auto; }.user-meta { grid-column: 2/-1; }.user-actions { grid-column: 2/-1; }
}

/* Neutral document workspace — clear contrast and familiar chat ergonomics */
.app-page {
  --app-bg: #ffffff;
  --app-sidebar: #f7f7f8;
  --app-sidebar-hover: #ececf1;
  --app-surface: #ffffff;
  --app-surface-soft: #f7f7f8;
  --app-border: #e5e5e7;
  --app-text: #202123;
  --app-muted: #6e6e80;
  --app-accent: #2563eb;
  --app-accent-hover: #1d4ed8;
  background: var(--app-bg);
  color: var(--app-text);
  color-scheme: light;
  padding: 0;
}
.app-page .app-shell {
  background: var(--app-bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100vh;
  height: 100dvh;
}
.app-page .sidebar {
  background: var(--app-sidebar);
  border-color: var(--app-border);
  color: var(--app-text);
  padding: 12px 10px 10px;
}
.app-page .sidebar-top {
  min-height: 54px;
  padding: 2px 8px 12px;
}
.app-page .official-brand-sidebar {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  width: 158px;
}
.app-page .official-brand-sidebar .brand-symbol {
  flex: 0 0 40px;
  height: 40px;
  object-fit: contain;
  width: 40px;
}
.app-page .brand-wordmark {
  color: #202124;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -.045em;
}
.app-page .brand-wordmark b { color: #306ef5; }
.app-page .brand-wordmark b {
  color: #1769e8;
  font-weight: 700;
}
.app-page .new-chat-button {
  background: transparent;
  border: 1px solid #d9d9df;
  border-radius: 9px;
  color: var(--app-text);
  font-size: .84rem;
  font-weight: 650;
  min-height: 44px;
  padding: 10px 12px;
}
.app-page .new-chat-button:hover {
  background: var(--app-sidebar-hover);
  border-color: #cfcfd5;
}
.app-page .new-chat-button .lucide {
  color: var(--app-text);
}
.app-page .conversation-label {
  color: #8b8b98;
  font-size: .65rem;
  letter-spacing: .08em;
  margin: 22px 10px 8px;
}
.app-page .conversation-item,
.app-page .sidebar-link,
.app-page .account-button {
  color: #40414f;
}
.app-page .conversation-row,
.app-page .conversation-item,
.app-page .account-button {
  border-radius: 8px;
}
.app-page .conversation-item {
  font-size: .81rem;
  padding-block: 9px;
}
.app-page .conversation-item small,
.app-page .account-button small,
.app-page .empty-list {
  color: var(--app-muted);
}
.app-page .conversation-item:hover,
.app-page .conversation-item.active,
.app-page .conversation-row.active .conversation-item,
.app-page .account-button:hover {
  background: var(--app-sidebar-hover);
  color: var(--app-text);
}
.app-page .conversation-actions {
  background: linear-gradient(90deg,rgba(236,236,241,0),var(--app-sidebar-hover) 22%);
}
.app-page .conversation-actions button {
  background: transparent;
  color: #6e6e80;
}
.app-page .conversation-actions button:hover {
  background: #dedee5;
  color: #202123;
}
.app-page .sidebar-bottom {
  position: relative;
  border-color: var(--app-border);
}
.app-page .account-menu {
  background: #fff;
  border: 1px solid #dedee3;
  border-radius: 12px;
  bottom: calc(100% + 8px);
  box-shadow: 0 12px 35px rgba(0,0,0,.14);
  left: 0;
  padding: 6px;
  position: absolute;
  right: 0;
  z-index: 12;
}
.app-page .account-menu.hidden {
  display: none;
}
.app-page .account-menu button,
.app-page .account-menu a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--app-text);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}
.app-page .account-menu button:hover,
.app-page .account-menu a:hover {
  background: #f2f2f4;
}
.app-page .account-menu small {
  color: var(--app-muted);
  display: block;
  font-size: .67rem;
  margin-top: 2px;
}
.app-page .account-menu hr {
  border: 0;
  border-top: 1px solid var(--app-border);
  margin: 5px;
}
.app-page .account-menu .account-menu-logout {
  color: #b42335;
}
.pwa-login-install {
  align-items: center;
  background: rgba(20,26,45,.94);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  bottom: max(18px,env(safe-area-inset-bottom));
  box-shadow: 0 14px 35px rgba(0,0,0,.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  gap: 8px;
  left: 22px;
  padding: 11px 15px;
  position: fixed;
  z-index: 30;
}
.pwa-login-install .lucide { height: 16px; width: 16px; }
.pwa-login-install.hidden { display: none; }
.pwa-ios-help {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #dedee5;
  border-radius: 15px;
  bottom: max(18px,env(safe-area-inset-bottom));
  box-shadow: 0 18px 55px rgba(0,0,0,.24);
  color: #24262f;
  display: flex;
  gap: 18px;
  left: 50%;
  max-width: min(430px,calc(100vw - 28px));
  padding: 17px 18px;
  position: fixed;
  transform: translateX(-50%);
  width: max-content;
  z-index: 1000;
}
.pwa-ios-help strong { display: block; font-size: .85rem; }
.pwa-ios-help p { color: #676d7c; font-size: .76rem; line-height: 1.5; margin: 5px 0 0; }
.pwa-ios-help button {
  background: #eff0f4;
  border: 0;
  border-radius: 8px;
  color: #343844;
  cursor: pointer;
  font-size: 1.15rem;
  height: 30px;
  width: 30px;
}
.pwa-ios-help .pwa-help-copy { flex: 1; min-width: 0; }
.pwa-ios-help .pwa-help-copy small { color: #7a8191; display: block; font-size: .68rem; line-height: 1.45; margin-top: 9px; }
.pwa-ios-help .pwa-help-repair {
  background: #edf3ff; border: 1px solid #cddbf9; color: #2555b7; font-size: .7rem; font-weight: 800; height: auto; margin-top: 12px; padding: 9px 12px; width: auto;
}
.pwa-ios-help .pwa-help-repair:disabled { cursor: wait; opacity: .65; }
.pwa-ios-help .pwa-help-close { flex: 0 0 30px; }
.pwa-standalone body { overscroll-behavior-y: none; }
.security-dialog-card {
  max-width: 480px;
  position: relative;
}
.security-dialog-card .dialog-close {
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 14px;
  top: 14px;
}
.security-dialog-card label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}
.mfa-account-qr {
  background: #fff;
  border: 1px solid #dedee3;
  border-radius: 10px;
  display: block;
  margin: 12px auto;
  max-width: 210px;
  width: 100%;
}
.security-dialog-card code {
  background: #f4f4f6;
  border-radius: 8px;
  display: block;
  overflow-wrap: anywhere;
  padding: 10px;
  text-align: center;
}
.app-page .attachment-picker {
  position: relative;
}
.app-page .attachment-menu {
  background: #fff;
  border: 1px solid #dedee3;
  border-radius: 14px;
  bottom: calc(100% + 12px);
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  left: 0;
  padding: 6px;
  position: absolute;
  width: 270px;
  z-index: 16;
}
.app-page .attachment-menu.hidden {
  display: none;
}
.app-page .attachment-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--app-text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  grid-template-columns: 28px 1fr;
  padding: 10px;
  text-align: left;
  width: 100%;
}
.app-page .attachment-menu button:hover {
  background: #f2f2f4;
}
.app-page .attachment-menu small {
  color: var(--app-muted);
  display: block;
  font-size: .68rem;
  margin-top: 2px;
}
.voice-player {
  background: #171922;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  bottom: 24px;
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  color: #fff;
  left: 50%;
  overflow: hidden;
  position: fixed;
  transform: translateX(-50%);
  width: min(430px,calc(100vw - 24px));
  z-index: 40;
}
.voice-player.hidden {
  display: none;
}
.voice-player-handle {
  align-items: center;
  cursor: grab;
  display: flex;
  gap: 8px;
  min-height: 40px;
  padding: 7px 8px 5px 14px;
  touch-action: none;
}
.voice-player-handle:active {
  cursor: grabbing;
}
.voice-live-dot {
  background: #6ee7c6;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(110,231,198,.8);
  height: 7px;
  width: 7px;
}
.voice-player-handle strong {
  font-size: .76rem;
  font-weight: 650;
}
.voice-window-actions {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.voice-window-actions button,
.voice-play-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #dfe1e8;
  cursor: pointer;
  display: flex;
  justify-content: center;
}
.voice-window-actions button {
  height: 28px;
  width: 28px;
}
.voice-window-actions button:hover {
  background: rgba(255,255,255,.1);
}
.voice-player-body {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 40px 1fr auto;
  padding: 4px 14px 15px;
}
.voice-play-button {
  background: #fff;
  color: #171922;
  height: 38px;
  width: 38px;
}
.voice-visual {
  min-width: 0;
}
.voice-wave {
  align-items: center;
  display: flex;
  gap: 3px;
  height: 29px;
}
.voice-wave span {
  animation: voicePulse .9s ease-in-out infinite alternate;
  background: linear-gradient(180deg,#65e5c3,#8b7cff);
  border-radius: 99px;
  height: 5px;
  opacity: .48;
  transform-origin: center;
  width: 3px;
}
.voice-player.playing .voice-wave span {
  opacity: 1;
}
.voice-player:not(.playing) .voice-wave span {
  animation-play-state: paused;
}
.voice-wave span:nth-child(2n) { animation-delay: -.2s; }
.voice-wave span:nth-child(3n) { animation-delay: -.45s; }
.voice-wave span:nth-child(4n) { animation-delay: -.65s; }
@keyframes voicePulse {
  from { height: 5px; }
  to { height: 25px; }
}
.voice-progress {
  background: rgba(255,255,255,.16);
  border-radius: 99px;
  height: 3px;
  overflow: hidden;
}
.voice-progress span {
  background: #76e2c5;
  display: block;
  height: 100%;
  width: 0;
}
.voice-player time {
  color: #aeb2c0;
  font-size: .68rem;
  white-space: nowrap;
}
.voice-player.minimized {
  border-radius: 999px;
  width: 205px;
}
.voice-player.minimized .voice-player-handle {
  min-height: 42px;
  padding: 7px 8px 7px 14px;
}
.voice-player.minimized .voice-player-body {
  display: none;
}
@media (max-width: 620px) {
  .app-page .attachment-menu {
    bottom: calc(100% + 10px);
    left: -4px;
    width: min(270px,calc(100vw - 36px));
  }
  .voice-player {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}
.app-page .sidebar-link:hover {
  background: var(--app-sidebar-hover);
  border-radius: 8px;
  color: var(--app-text);
}
.app-page .account-button .avatar {
  background: #202123;
  color: #fff;
}
.app-page .chat-shell {
  background: var(--app-bg);
  background-image: none;
  color: var(--app-text);
}
.app-page .chat-header {
  background: rgba(255,255,255,.94);
  border-color: var(--app-border);
  backdrop-filter: blur(14px);
  position: relative;
  color: var(--app-text);
  height: 58px;
  padding-inline: 18px;
}
.app-page .chat-header strong {
  color: var(--app-text);
  font-size: .88rem;
}
.app-page .model-badge {
  background: #f3f4f6;
  border: 1px solid #e3e4e8;
  color: #5f6070;
  font-size: .62rem;
  padding: 5px 8px;
}
.app-page .status-dot {
  background: #10a37f;
  box-shadow: none;
}
.app-page .icon-button {
  color: #454654;
}
.app-page .icon-button:hover {
  background: #f0f0f2;
  color: #111827;
}
.app-page .messages {
  background: #fff;
  padding-inline: max(24px,calc((100% - 780px)/2));
}
.app-page .welcome-state {
  justify-content: center;
  margin: 0 auto;
  max-width: 760px;
}
.app-page .welcome-mark {
  background: #101828;
  border: 1px solid #26334a;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16,24,40,.16);
  height: 50px;
  margin-bottom: 25px;
  padding: 8px;
  width: 50px;
}
.app-page .welcome-mark img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.app-page .welcome-state h1 {
  color: #171717;
  font-size: clamp(1.8rem,3.4vw,2.45rem);
  letter-spacing: -.04em;
}
.app-page .welcome-state > p {
  color: var(--app-muted);
  font-size: .94rem;
  line-height: 1.6;
  margin: 12px auto 30px;
  max-width: 590px;
}
.app-page .suggestion-grid {
  gap: 9px;
  max-width: 680px;
}
.app-page .suggestion-grid button {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  box-shadow: none;
  color: var(--app-text);
  min-height: 76px;
}
.app-page .suggestion-grid button:hover {
  background: #f9f9fa;
  border-color: #c8c8cf;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.app-page .suggestion-grid .lucide {
  color: var(--app-accent);
}
.app-page .suggestion-grid b {
  color: var(--app-text);
}
.app-page .suggestion-grid small {
  color: var(--app-muted);
}
.app-page .message {
  gap: 14px;
  max-width: 780px;
}
.app-page .message-avatar {
  background: #202123;
  color: #fff;
}
.app-page .message.user .message-avatar {
  background: #374151;
}
.app-page .message.assistant .message-avatar {
  background: #101828;
  border: 0;
}
.app-page .message.assistant .message-body {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 3px 0 0;
}
.app-page .message-meta {
  color: #555665;
}
.app-page .message-content {
  color: var(--app-text);
  font-size: .93rem;
  line-height: 1.72;
}
.app-page .message.user .message-content {
  background: #f4f4f4;
  border: 0;
  color: var(--app-text);
  padding: 11px 15px;
}
.app-page .message-content blockquote {
  background: #f7f7f8;
  border-color: var(--app-accent);
  color: #4c4d5a;
}
.app-page .message-content code {
  background: #f1f1f3;
  color: #1f4bb3;
}
.app-page .message-content pre {
  background: #202123;
  color: #f7f7f8;
}
.app-page .table-scroll {
  border-color: #dedee3;
}
.app-page .table-scroll th {
  background: #f4f4f5;
  color: #41424f;
}
.app-page .table-scroll td {
  color: #202123;
}
.app-page .message-attachment,
.app-page .attachment {
  background: #f7f7f8;
  border-color: #dedee3;
  color: var(--app-text);
}
.app-page .message-attachment:hover {
  background: #f0f0f2;
  border-color: #c9c9d0;
}
.app-page .file-icon {
  background: var(--app-accent);
}
.app-page .file-open,
.app-page .attachment > .lucide,
.app-page .message-content a {
  color: var(--app-accent);
}
.app-page .message-actions button,
.app-page .thinking-row {
  color: var(--app-muted);
}
.app-page .response-time {
  align-items: center;
  color: #777985;
  display: inline-flex;
  font-size: .68rem;
  gap: 5px;
  margin-left: auto;
}
.app-page .response-time .lucide {
  height: 13px;
  width: 13px;
}
.app-page .composer-shell {
  background: #fff;
  padding: 10px max(20px,calc((100% - 780px)/2)) 14px;
}
.app-page .composer {
  background: #fff;
  border: 1px solid #d9d9df;
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  padding: 7px;
}
.app-page .composer:focus-within {
  border-color: #b6b7c0;
  box-shadow: 0 5px 20px rgba(0,0,0,.1);
}
.app-page .composer textarea {
  color: var(--app-text);
}
.app-page .composer textarea::placeholder {
  color: #8e8e9b;
}
.app-page .composer-button {
  color: #636473;
}
.app-page .composer-button:hover {
  background: #f0f0f2;
  color: #202123;
}
.app-page .send-button {
  background: var(--app-accent);
  color: #fff;
}
.app-page .send-button:hover {
  background: var(--app-accent-hover);
}
.app-page .composer-note {
  color: #858691;
}

/* Settings is a centered preference panel, not a second sidebar. */
.app-page .settings-drawer {
  background: #fff;
  border: 1px solid #dedee3;
  border-radius: 16px;
  bottom: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,.2);
  color: var(--app-text);
  left: 50%;
  max-height: min(760px,88dvh);
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  right: auto;
  top: 50%;
  transform: translate(-50%,-47%) scale(.98);
  transition: opacity .18s, transform .18s;
  width: min(620px,calc(100vw - 28px));
  z-index: 20;
}
.app-page .settings-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.app-page .drawer-header {
  border-bottom: 1px solid var(--app-border);
  margin: 0;
  padding: 20px 22px 16px;
}
.app-page .drawer-header .icon-button {
  flex: 0 0 36px;
  height: 36px;
  margin: 0;
  padding: 8px;
  width: 36px;
}
.app-page .drawer-header h2 {
  color: var(--app-text);
  font-size: 1.08rem;
  margin-top: 3px;
}
.app-page .settings-kicker {
  color: var(--app-muted);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.app-page .settings-save-status {
  color: #777985;
  display: inline-block;
  font-size: .68rem;
  margin-top: 4px;
}
.app-page .settings-save-status.saving {
  color: #7a62e8;
}
.app-page .settings-save-status.saved {
  color: #277a65;
}
.app-page .settings-save-status.error {
  color: #b42335;
}
.app-page .settings-content {
  max-height: calc(min(760px,88dvh) - 76px);
  overflow-y: auto;
  padding: 6px 22px 22px;
}
.app-page .settings-section {
  border-bottom: 1px solid var(--app-border);
  padding: 18px 0 4px;
}
.app-page .settings-section:last-child {
  border-bottom: 0;
}
.app-page .settings-section h3 {
  color: var(--app-text);
  font-size: .84rem;
  margin: 0 0 5px;
}
.app-page .settings-section > p {
  color: var(--app-muted);
  font-size: .73rem;
  line-height: 1.5;
  margin: 0 0 16px;
}
.app-page .settings-drawer label {
  color: #454654;
  font-size: .75rem;
  font-weight: 650;
  margin-bottom: 17px;
}
.app-page .settings-drawer input,
.app-page .settings-drawer textarea,
.app-page .settings-drawer select {
  background: #fff;
  border: 1px solid #d7d7dd;
  color: var(--app-text);
}
.app-page .settings-drawer select,
.app-page .settings-drawer textarea {
  line-height: 1.45;
}
.app-page .settings-drawer input:focus,
.app-page .settings-drawer textarea:focus,
.app-page .settings-drawer select:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.app-page .settings-drawer output {
  color: var(--app-accent);
  font-weight: 750;
}
.app-page .temperature-label > span {
  display: flex;
  justify-content: space-between;
}
.app-page .setting-help,
.app-page .switch-row small {
  color: var(--app-muted);
}
.app-page .switch-row {
  background: #f7f7f8;
  border-radius: 10px;
  padding: 12px;
}
.app-page .switch-row input {
  accent-color: var(--app-accent);
}
.app-page .account-settings {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 0;
}
.app-page .account-settings h3 {
  grid-column: 1/-1;
}
.app-page .settings-drawer button {
  margin: 0;
}
.app-page .settings-drawer .secondary-button {
  background: #f3f4f6;
  border: 1px solid #dedee3;
  color: #202123;
}
.app-page .secondary-button {
  background: #f3f4f6;
  border: 1px solid #dedee3;
  color: #202123;
}
.admin-page .secondary-button,
.admin-page .dialog-card .secondary-button {
  background: #f3f4f6;
  border: 1px solid #dedee3;
  color: #292b37;
}
.app-page .settings-drawer .danger-button {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #b4233b;
}
.app-page .scrim {
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(2px);
}
.app-page .toast {
  background: #182238;
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
}

@media (min-width: 1100px) {
  .app-page {
    padding: 0;
  }
  .app-page .app-shell {
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
  }
}
@media (max-width: 900px) {
  .app-page .sidebar {
    width: min(300px,88vw);
  }
}
@media (max-width: 600px) {
  .app-page .chat-header {
    height: 56px;
  }
  .app-page .messages {
    padding: 18px 13px 8px;
  }
  .app-page .welcome-state {
    justify-content: flex-start;
    padding-top: 7vh;
  }
  .app-page .welcome-mark {
    height: 44px;
    margin-bottom: 18px;
    width: 44px;
  }
  .app-page .welcome-state h1 {
    font-size: 1.65rem;
  }
  .app-page .welcome-state > p {
    font-size: .85rem;
    margin-bottom: 22px;
  }
  .app-page .suggestion-grid {
    grid-template-columns: 1fr;
  }
  .app-page .suggestion-grid button {
    min-height: 66px;
  }
  .app-page .message {
    gap: 9px;
  }
  .app-page .message.assistant .message-body {
    padding: 2px 0 0;
  }
  .app-page .composer-shell {
    background: #fff;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 6;
  }
  .app-page .composer {
    border-radius: 22px;
  }
  .app-page .settings-drawer {
    border-radius: 16px 16px 0 0;
    bottom: 0;
    left: 0;
    max-height: 88dvh;
    top: auto;
    transform: translateY(102%);
    width: 100%;
  }
  .app-page .settings-drawer.open {
    transform: translateY(0);
  }
  .app-page .settings-content {
    max-height: calc(88dvh - 76px);
    padding-inline: 18px;
  }
  .app-page .account-settings {
    grid-template-columns: 1fr;
  }
  .app-page .account-settings h3 {
    grid-column: auto;
  }
}

/* Keep navigation controls reachable regardless of history size or viewport. */
.app-page,
.app-page .app-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

/* Installed Android PWAs may expose a translucent system-navigation area while
   reporting a zero safe-area inset. The visual viewport and a small measured
   guard keep the composer and modal actions above that area. */
html.pwa-standalone body.app-page,
html.pwa-standalone body.app-page .app-shell {
  height: var(--app-visual-height,100dvh);
  max-height: var(--app-visual-height,100dvh);
}
html.pwa-standalone body.auth-page,
html.pwa-standalone body.drive-page,
html.pwa-standalone body.hubflix-page,
html.pwa-standalone body.admin-page {
  min-height: var(--app-visual-height,100dvh);
}
html.pwa-standalone body.drive-page .drive-shell,
html.pwa-standalone body.hubflix-page .hubflix-player-dialog,
html.pwa-standalone body.admin-page .admin-console {
  height: var(--app-visual-height,100dvh);
  max-height: var(--app-visual-height,100dvh);
}
html.pwa-standalone.pwa-android body.app-page .composer-shell {
  padding-bottom: calc(8px + max(env(safe-area-inset-bottom),var(--pwa-bottom-guard,18px)));
}
html.pwa-standalone.pwa-android body.app-page .sidebar-bottom {
  padding-bottom: max(env(safe-area-inset-bottom),var(--pwa-bottom-guard,18px));
}
html.pwa-standalone.pwa-android body.app-page .settings-content {
  padding-bottom: calc(22px + max(env(safe-area-inset-bottom),var(--pwa-bottom-guard,18px)));
}
html.pwa-standalone.pwa-android body.drive-page .drive-sidebar,
html.pwa-standalone.pwa-android body.admin-page .admin-sidebar {
  padding-bottom: max(env(safe-area-inset-bottom),var(--pwa-bottom-guard,18px));
}
html.pwa-standalone.pwa-android body.hubflix-page .hubflix-player-controls {
  padding-bottom: max(12px,env(safe-area-inset-bottom),var(--pwa-bottom-guard,18px));
}
html.pwa-standalone.pwa-android body.hubflix-page .hubflix-toast {
  bottom: calc(18px + max(env(safe-area-inset-bottom),var(--pwa-bottom-guard,18px)));
}

@media (max-width: 600px) {
  .app-page .chat-header {
    gap: 3px;
    padding-inline: 7px;
  }
  .app-page .chat-header > div:first-of-type {
    min-width: 0;
  }
  .app-page .chat-header strong {
    max-width: min(34vw,128px);
  }
  .app-page .product-nav {
    flex: 0 0 auto;
  }
  .app-page .product-nav a {
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
  }
  .app-page .header-actions {
    flex: 0 0 auto;
    gap: 0;
  }
  .app-page .header-actions .icon-button,
  .app-page .menu-button {
    height: 38px;
    width: 38px;
  }
  .app-page #exportChat.mobile-empty-hidden {
    display: none;
  }
  .app-page .welcome-state {
    min-height: auto;
    padding: clamp(30px,5.5vh,52px) 0 24px;
  }
  .app-page .welcome-state > p {
    line-height: 1.5;
    max-width: 34rem;
  }
  .app-page .suggestion-grid {
    gap: 8px;
  }
  .app-page .suggestion-grid button {
    min-height: 62px;
    padding: 13px 14px;
  }
  .app-page .composer-note {
    margin-bottom: 0;
  }
}

@media (max-width: 380px) {
  .app-page .chat-header strong {
    max-width: 92px;
  }
  .app-page .product-nav a {
    height: 36px;
    width: 36px;
  }
  .app-page .header-actions .icon-button,
  .app-page .menu-button {
    height: 36px;
    width: 36px;
  }
  .app-page .welcome-state h1 {
    font-size: 1.48rem;
  }
  .app-page .welcome-state > p {
    font-size: .82rem;
  }
}

@media (max-width: 900px) and (max-height: 620px) {
  .app-page .welcome-state {
    padding-top: 18px;
  }
  .app-page .welcome-mark {
    height: 38px;
    margin-bottom: 12px;
    width: 38px;
  }
  .app-page .welcome-state h1 {
    font-size: 1.42rem;
  }
  .app-page .welcome-state > p {
    margin: 8px auto 14px;
  }
  .app-page .suggestion-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-page .suggestion-grid button {
    min-height: 54px;
    padding-block: 10px;
  }
  .app-page .composer-note {
    display: none;
  }
}
.app-page .sidebar {
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.app-page .sidebar-top,
.app-page .new-chat-button,
.app-page .conversation-label,
.app-page .sidebar-bottom {
  flex: 0 0 auto;
}
.app-page .conversation-list {
  flex: 1 1 auto;
  min-height: 48px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-gutter: stable;
}
.app-page .sidebar-bottom {
  background: var(--app-sidebar);
  padding-bottom: max(2px,env(safe-area-inset-bottom));
  position: relative;
  z-index: 4;
}
.app-page .account-button {
  min-width: 0;
}
.app-page .account-button > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
}
.app-page .account-button b,
.app-page .account-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-page .account-menu {
  max-height: min(420px,calc(100dvh - 94px));
  overflow-x: hidden;
  overflow-y: auto;
}
@media (max-width: 900px) {
  .app-page .sidebar {
    bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    top: 0;
  }
}

/* Android server telemetry */
.runtime-card {
  background: linear-gradient(145deg,#fff 0%,#f8fbff 100%);
  border-color: rgba(37,99,235,.18);
}
.runtime-heading {
  margin-bottom: 20px;
}
.runtime-live {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.runtime-live small {
  color: #818698;
  font-size: .66rem;
}
.runtime-badge {
  align-items: center;
  background: #eef2f7;
  border-radius: 999px;
  color: #596173;
  display: inline-flex;
  font-size: .7rem;
  font-weight: 750;
  gap: 7px;
  padding: 7px 10px;
}
.runtime-badge.online {
  background: #e8f8f1;
  color: #167457;
}
.runtime-badge.degraded {
  background: #fff3dc;
  color: #93600d;
}
.runtime-badge.offline {
  background: #fff0f2;
  color: #b4233b;
}
.runtime-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.runtime-metric {
  background: #f7f8fb;
  border: 1px solid rgba(33,37,54,.07);
  border-radius: 13px;
  min-width: 0;
  padding: 14px;
}
.runtime-metric > span {
  align-items: center;
  color: #747a8b;
  display: flex;
  font-size: .68rem;
  gap: 7px;
}
.runtime-metric > span .lucide {
  color: #2563eb;
  height: 15px;
  width: 15px;
}
.runtime-metric b {
  color: #20212b;
  display: block;
  font-size: 1.08rem;
  letter-spacing: -.025em;
  margin: 10px 0 9px;
}
.runtime-metric small {
  color: #898e9d;
  display: block;
  font-size: .64rem;
  line-height: 1.4;
  margin-top: 8px;
}
.runtime-progress {
  background: #e2e5eb;
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}
.runtime-progress span {
  background: linear-gradient(90deg,#2563eb,#39bfa3);
  border-radius: inherit;
  display: block;
  height: 100%;
  max-width: 100%;
  transition: width .35s ease;
  width: 0;
}
.runtime-services {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  margin-top: 14px;
}
.runtime-service {
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #464b58;
  display: flex;
  font-size: .7rem;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}
.runtime-service span:first-child {
  background: #cfd4dc;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}
.runtime-service.ready span:first-child {
  background: #20a77c;
  box-shadow: 0 0 0 3px rgba(32,167,124,.11);
}
.runtime-service b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.runtime-service small {
  color: #8a8f9d;
  margin-left: auto;
}
.runtime-network {
  border-top: 1px solid #e7e8ec;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 16px;
  padding-top: 14px;
}
.runtime-network > span {
  align-items: center;
  color: #727888;
  display: flex;
  font-size: .68rem;
  gap: 7px;
}
.runtime-network code {
  background: #eef1f6;
  border-radius: 6px;
  color: #273044;
  padding: 4px 7px;
}
.runtime-controls {
  align-items: center;
  background: #f7f8fb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px,1fr) auto auto;
  margin-top: 14px;
  padding: 12px;
}
.runtime-controls > div b,
.runtime-controls > div small {
  display: block;
}
.runtime-controls > div b {
  color: #2d3240;
  font-size: .74rem;
}
.runtime-controls > div small,
.runtime-control-help {
  color: #838999;
  font-size: .64rem;
  line-height: 1.4;
  margin-top: 3px;
}
.runtime-controls button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.runtime-control-help {
  grid-column: 1/-1;
  margin: 0;
}
.storage-access-button {
  align-items: center;
  color: #5943bc !important;
  display: inline-flex;
  gap: 5px;
}
.storage-access-button .lucide {
  height: 14px;
  width: 14px;
}
.storage-access-dialog {
  width: min(580px,94vw);
}

/* Navegação entre os produtos */
.product-nav {
  align-items: center;
  display: flex;
  gap: 4px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}
.product-nav a {
  align-items: center;
  border-radius: 9px;
  color: #667085;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 700;
  gap: 7px;
  padding: 8px 11px;
  text-decoration: none;
}
.product-nav a:hover { background: #f1f3f7; color: #202533; }
.product-nav a.active { background: #eef2ff; color: #295fe7; }
.product-nav .lucide { height: 15px; width: 15px; }

/* HubFlix */
.hubflix-page {
  --flix-bg: #080a0f;
  --flix-panel: #12151d;
  --flix-panel-soft: #191d27;
  --flix-text: #f6f7fb;
  --flix-muted: #a6adbb;
  --flix-blue: #2c6bed;
  background: var(--flix-bg);
  color: var(--flix-text);
  min-height: 100dvh;
  overflow-x: hidden;
}
.hubflix-page button, .hubflix-page input { font: inherit; }
.hubflix-header {
  align-items: center;
  background: linear-gradient(180deg,rgba(5,7,11,.96),rgba(5,7,11,.76),transparent);
  display: grid;
  gap: 28px;
  grid-template-columns: auto 1fr auto;
  height: 76px;
  left: 0;
  padding: 0 clamp(18px,4vw,68px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 40;
}
.hubflix-brand {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
}
.hubflix-brand img { height: 36px; margin-right: 2px; width: 36px; }
.hubflix-brand b { color: #3475ff; }
.hubflix-nav { align-items: center; display: flex; gap: 24px; }
.hubflix-nav a {
  color: #c7ccd7;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}
.hubflix-nav a:hover, .hubflix-nav a.active { color: #fff; }
.hubflix-header-actions { align-items: center; display: flex; gap: 10px; }
.hubflix-search {
  align-items: center;
  background: rgba(16,19,27,.86);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  display: flex;
  gap: 8px;
  padding: 8px 13px;
}
.hubflix-search .lucide { color: #aeb5c4; height: 16px; width: 16px; }
.hubflix-search input {
  background: transparent;
  border: 0;
  color: #fff;
  outline: 0;
  width: 150px;
}
.hubflix-search input::placeholder { color: #858d9e; }
.hubflix-admin-link {
  align-items: center;
  border-radius: 999px;
  color: #d9deea;
  display: flex;
  font-size: .78rem;
  font-weight: 700;
  gap: 6px;
  padding: 9px 12px;
  text-decoration: none;
}
.hubflix-admin-link:hover { background: rgba(255,255,255,.1); }
.hubflix-admin-link .lucide { height: 16px; width: 16px; }
.hubflix-avatar {
  align-items: center;
  background: linear-gradient(135deg,#2b6bf0,#7549ee);
  border-radius: 9px;
  display: flex;
  font-size: .78rem;
  font-weight: 800;
  height: 35px;
  justify-content: center;
  width: 35px;
}
.hubflix-hero {
  align-items: center;
  background:
    linear-gradient(90deg,#080a0f 5%,rgba(8,10,15,.9) 33%,rgba(8,10,15,.2) 70%),
    linear-gradient(0deg,#080a0f 0%,transparent 45%),
    var(--hero-image),
    radial-gradient(circle at 72% 30%,#293253,#10131d 48%,#080a0f 75%);
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: min(76vh,760px);
  padding: 110px clamp(24px,5vw,84px) 80px;
  position: relative;
}
.hubflix-hero-content { max-width: 610px; position: relative; z-index: 2; }
.hubflix-eyebrow {
  color: #70a0ff;
  display: block;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .18em;
  margin-bottom: 12px;
}
.hubflix-hero h1 {
  font-size: clamp(2.65rem,6vw,5.8rem);
  letter-spacing: -.065em;
  line-height: .94;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hubflix-hero p {
  color: #d0d5df;
  font-size: clamp(.94rem,1.25vw,1.08rem);
  line-height: 1.65;
  margin: 15px 0 25px;
  max-width: 580px;
  text-shadow: 0 2px 14px #000;
}
.hubflix-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.hubflix-meta span {
  background: rgba(8,10,15,.56);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  color: #e4e7ee;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 8px;
}
.hubflix-conversion-status {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  max-width: 360px;
}
.hubflix-ready-indicator {
  align-items: center;
  background: rgba(9,13,22,.74);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: #eef2f9;
  display: inline-flex;
  font-size: .69rem;
  gap: 8px;
  justify-self: start;
  padding: 6px 10px;
}
.hubflix-ready-indicator > i,
.hubflix-card-availability > i {
  border-radius: 50%;
  box-shadow: 0 0 0 4px currentColor;
  display: inline-block;
  height: 5px;
  width: 5px;
}
.hubflix-ready-indicator.ready,
.hubflix-card-availability.ready { color: #42d7a1; }
.hubflix-ready-indicator.not-ready,
.hubflix-card-availability.not-ready { color: #ff6577; }
.hubflix-ready-indicator b { color: #f6f8fc; font-weight: 760; }
.hubflix-conversion-progress {
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  display: block;
  height: 5px;
  overflow: hidden;
  width: 100%;
}
.hubflix-conversion-progress > i {
  background: linear-gradient(90deg,#ff5369,#ff8b67);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width .55s ease;
}
.hubflix-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hubflix-play-primary, .hubflix-details-button {
  align-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 44px;
  padding: 0 19px;
}
.hubflix-play-primary { background: #fff; color: #11141a; }
.hubflix-play-primary:hover { background: #dce5f9; }
.hubflix-play-primary:disabled {
  background: rgba(255,255,255,.13);
  color: #c7ccd7;
  cursor: not-allowed;
}
.hubflix-details-button { background: rgba(115,123,140,.62); color: #fff; }
.hubflix-details-button:hover { background: rgba(130,139,158,.8); }
.hubflix-play-primary .lucide, .hubflix-details-button .lucide { height: 19px; width: 19px; }
.hubflix-catalog {
  margin-top: -70px;
  min-height: 45vh;
  padding: 0 clamp(18px,4vw,68px) 80px;
  position: relative;
  z-index: 5;
}
.hubflix-row { margin-bottom: 34px; }
.hubflix-row-heading { align-items: baseline; display: flex; gap: 12px; margin-bottom: 13px; }
.hubflix-row-heading h2 { font-size: 1.08rem; letter-spacing: -.02em; margin: 0; }
.hubflix-row-heading span { color: #737b8c; font-size: .7rem; }
.hubflix-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 7px 3px 20px;
  scroll-snap-type: x proximity;
  scrollbar-color: #333b4d transparent;
}
.hubflix-card {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  flex: 0 0 clamp(210px,17vw,280px);
  min-width: 210px;
  padding: 0;
  scroll-snap-align: start;
  text-align: left;
}
.hubflix-card-art {
  align-items: center;
  aspect-ratio: 16/9;
  background:
    linear-gradient(155deg,rgba(56,111,238,.2),rgba(101,57,225,.28)),
    radial-gradient(circle at 30% 22%,#30384d,#151924 55%,#0d1017);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.26);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform .22s ease,box-shadow .22s ease;
}
.hubflix-card:hover .hubflix-card-art, .hubflix-card:focus-visible .hubflix-card-art {
  box-shadow: 0 16px 38px rgba(0,0,0,.55);
  transform: scale(1.035) translateY(-3px);
}
.hubflix-card-art > b { color: rgba(255,255,255,.72); font-size: 1.65rem; letter-spacing: -.08em; }
.hubflix-card-art > small {
  background: rgba(8,10,15,.85);
  border-radius: 5px;
  bottom: 8px;
  color: #cfd7e8;
  font-size: .61rem;
  font-weight: 800;
  left: 8px;
  padding: 4px 6px;
  position: absolute;
}
.hubflix-card-availability {
  align-items: center;
  backdrop-filter: blur(9px);
  background: rgba(7,10,17,.82);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  display: flex;
  font-size: .58rem;
  font-weight: 800;
  gap: 7px;
  left: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 5px 8px;
  position: absolute;
  text-overflow: ellipsis;
  top: 8px;
  white-space: nowrap;
}
.hubflix-card-conversion {
  background: rgba(255,255,255,.15);
  bottom: 0;
  height: 4px;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
}
.hubflix-card-conversion > i {
  background: linear-gradient(90deg,#ff526c,#ff916d);
  display: block;
  height: 100%;
  transition: width .55s ease;
}
.hubflix-card.is-converting .hubflix-card-art {
  filter: saturate(.7);
}
.hubflix-card.is-converting .hubflix-card-play .lucide,
.hubflix-play-primary:disabled .lucide {
  animation: hubflix-status-spin 1.2s linear infinite;
}
@keyframes hubflix-status-spin { to { transform: rotate(360deg); } }
.hubflix-card-play {
  align-items: center;
  background: rgba(255,255,255,.93);
  border-radius: 50%;
  color: #111722;
  display: flex;
  height: 42px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transform: scale(.75);
  transition: .2s;
  width: 42px;
}
.hubflix-card:hover .hubflix-card-play { opacity: 1; transform: scale(1); }
.hubflix-card-play .lucide { fill: currentColor; height: 18px; margin-left: 2px; width: 18px; }
.hubflix-card-copy { display: block; padding: 10px 3px 0; }
.hubflix-card-copy b, .hubflix-card-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hubflix-card-copy b { font-size: .8rem; }
.hubflix-card-copy small { color: #858d9f; font-size: .66rem; margin-top: 4px; }
.hubflix-loading, .hubflix-empty {
  align-items: center;
  color: #8b93a3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  text-align: center;
}
.hubflix-loading > span {
  animation: flixpulse 1s infinite alternate;
  background: #356ff1;
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  margin: 0 3px;
  width: 7px;
}
.hubflix-loading > span:nth-child(2) { animation-delay: .18s; }
.hubflix-loading > span:nth-child(3) { animation-delay: .36s; }
@keyframes flixpulse { to { opacity: .2; transform: translateY(-6px); } }
.hubflix-empty .lucide { color: #4b5771; height: 48px; width: 48px; }
.hubflix-empty h2 { color: #eef1f7; margin-bottom: 4px; }
.hubflix-details-dialog, .hubflix-player-dialog {
  background: transparent;
  border: 0;
  color: #fff;
  max-height: 100dvh;
  max-width: 100vw;
  padding: 0;
}
.hubflix-details-dialog::backdrop, .hubflix-player-dialog::backdrop {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}
.hubflix-details-dialog > article {
  background: #11131a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.75);
  overflow: hidden;
  position: relative;
  width: min(880px,94vw);
}
.hubflix-details-art {
  background:
    linear-gradient(0deg,#11131a 0%,transparent 65%),
    radial-gradient(circle at 70% 20%,#324a80,#151a29 50%,#11131a);
  background-position: center;
  background-size: cover;
  height: 330px;
}
.hubflix-details-content { margin-top: -90px; padding: 24px 42px 40px; position: relative; }
.hubflix-details-content h2 { font-size: clamp(2rem,5vw,3.5rem); letter-spacing: -.05em; margin: 0 0 13px; }
.hubflix-details-content > p { color: #c2c8d4; line-height: 1.65; max-width: 710px; }
.hubflix-close {
  align-items: center;
  background: rgba(8,10,15,.8);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  z-index: 3;
}
.hubflix-source-note {
  align-items: center;
  background: #171b24;
  border: 1px solid #252b38;
  border-radius: 9px;
  color: #99a5b8;
  display: flex;
  font-size: .74rem;
  gap: 9px;
  margin: 20px 0;
  padding: 11px 13px;
}
.hubflix-source-note .lucide { color: #59d2a5; height: 18px; width: 18px; }
.hubflix-player-dialog { height: 100dvh; width: 100vw; }
.hubflix-player-shell {
  background: #000;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  width: 100vw;
}
.hubflix-player-shell video {
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.hubflix-player-top {
  align-items: center;
  background: linear-gradient(180deg,rgba(0,0,0,.88),transparent);
  display: flex;
  gap: 14px;
  left: 0;
  padding: 22px 28px 55px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 4;
}
.hubflix-player-top,
.hubflix-player-controls {
  opacity: 1;
  transition: opacity .22s ease, transform .22s ease;
}
.hubflix-player-top button, .hubflix-player-controls button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
}
.hubflix-player-top button { height: 42px; width: 42px; }
.hubflix-player-top b, .hubflix-player-top small { display: block; }
.hubflix-player-top b { font-size: .95rem; }
.hubflix-player-top small { color: #9da6b8; font-size: .7rem; margin-top: 3px; }
.hubflix-player-state {
  align-items: center;
  background: rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 2;
}
.hubflix-player-state p { color: #c5cbd6; font-size: .8rem; }
.hubflix-spinner {
  animation: flixspin .8s linear infinite;
  border: 3px solid rgba(255,255,255,.2);
  border-radius: 50%;
  border-top-color: #fff;
  height: 34px;
  width: 34px;
}
@keyframes flixspin { to { transform: rotate(360deg); } }
.hubflix-player-controls {
  background: linear-gradient(0deg,rgba(0,0,0,.94),transparent);
  bottom: 0;
  left: 0;
  padding: 55px 30px 24px;
  position: absolute;
  right: 0;
  z-index: 4;
}
.hubflix-controls-wake {
  background: transparent;
  border: 0;
  bottom: 0;
  cursor: default;
  height: 34%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 3;
}
.hubflix-player-shell.fullscreen-mode.controls-hidden {
  cursor: none;
}
.hubflix-player-shell.fullscreen-mode.controls-hidden .hubflix-player-top,
.hubflix-player-shell.fullscreen-mode.controls-hidden .hubflix-player-controls {
  opacity: 0;
  pointer-events: none;
}
.hubflix-player-shell.fullscreen-mode.controls-hidden .hubflix-player-top {
  transform: translateY(-14px);
}
.hubflix-player-shell.fullscreen-mode.controls-hidden .hubflix-player-controls {
  transform: translateY(18px);
}
.hubflix-player-shell.fullscreen-mode.controls-hidden .hubflix-controls-wake {
  cursor: pointer;
  pointer-events: auto;
}
.hubflix-player-controls input {
  accent-color: #3c73f1;
  cursor: pointer;
  margin: 0 0 13px;
  width: 100%;
}
.hubflix-player-controls > div { align-items: center; display: flex; gap: 8px; }
.hubflix-player-controls button {
  border-radius: 50%;
  height: 42px;
  position: relative;
  width: 42px;
}
.hubflix-player-controls button:hover { background: rgba(255,255,255,.12); }
.hubflix-player-controls button small { font-size: .52rem; font-weight: 800; position: absolute; }
.hubflix-player-controls > div > span { color: #d1d6df; font-size: .74rem; margin-left: 5px; }
.hubflix-player-controls .hubflix-fullscreen { margin-left: auto; }
.hubflix-volume-control { align-items: center; display: flex; position: relative; }
.hubflix-volume-popover {
  align-items: center; backdrop-filter: blur(14px); background: rgba(13,17,28,.96); border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px; bottom: 53px; box-shadow: 0 16px 42px rgba(0,0,0,.45); display: grid; gap: 10px;
  grid-template-columns: 18px minmax(110px,1fr) 38px; left: -8px; padding: 12px 13px; position: absolute; width: 220px; z-index: 8;
}
.hubflix-volume-popover::after {
  background: rgba(13,17,28,.96); border-bottom: 1px solid rgba(255,255,255,.15); border-right: 1px solid rgba(255,255,255,.15);
  bottom: -6px; content: ""; height: 10px; left: 23px; position: absolute; transform: rotate(45deg); width: 10px;
}
.hubflix-player-controls .hubflix-volume-popover input { accent-color: #4d7ef4; margin: 0; min-width: 0; width: 100%; }
.hubflix-volume-popover output { color: #eef2fa; font-size: .65rem; font-variant-numeric: tabular-nums; text-align: right; }
.hubflix-volume-popover > .lucide { color: #aeb8c9; height: 16px; width: 16px; }
.hubflix-resume-dialog { background: transparent; border: 0; color: #eef2f8; max-width: 470px; padding: 0; width: calc(100% - 28px); }
.hubflix-resume-dialog::backdrop { backdrop-filter: blur(10px); background: rgba(2,5,12,.82); }
.hubflix-resume-dialog > article { background: linear-gradient(145deg,#121927,#0c111c); border: 1px solid #293348; border-radius: 24px; box-shadow: 0 32px 100px rgba(0,0,0,.65); padding: 30px; text-align: center; }
.hubflix-resume-icon { align-items: center; background: #1c315d; border-radius: 16px; color: #77a5ff; display: inline-flex; height: 58px; justify-content: center; margin-bottom: 18px; width: 58px; }
.hubflix-resume-dialog article > small { color: #79a8ff; display: block; font-size: .57rem; font-weight: 900; letter-spacing: .13em; }
.hubflix-resume-dialog h2 { font-size: 1.35rem; margin: 9px 0 8px; }
.hubflix-resume-dialog p { color: #9ea9ba; font-size: .74rem; line-height: 1.55; margin: 0 auto 18px; }
.hubflix-resume-progress { background: #273043; border-radius: 99px; height: 5px; margin: 0 0 23px; overflow: hidden; }
.hubflix-resume-progress i { background: linear-gradient(90deg,#397cf2,#795af1); display: block; height: 100%; width: 0; }
.hubflix-resume-actions { display: grid; gap: 9px; }
.hubflix-resume-actions button { align-items: center; background: #1a2231; border: 1px solid #303b50; border-radius: 12px; color: #e8edf6; cursor: pointer; display: flex; font: inherit; font-size: .73rem; font-weight: 760; gap: 9px; justify-content: center; min-height: 46px; }
.hubflix-resume-actions button.primary { background: #f3f6fb; border-color: #f3f6fb; color: #101725; }
.hubflix-resume-actions button.text { background: transparent; border: 0; color: #9aa5b7; min-height: 34px; }
.hubflix-cast-dialog { background: transparent; border: 0; color: #edf1f8; max-width: 500px; padding: 0; width: calc(100% - 28px); }
.hubflix-cast-dialog::backdrop { backdrop-filter: blur(8px); background: rgba(0,0,0,.74); }
.hubflix-cast-dialog > article { background: #111622; border: 1px solid #293142; border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.6); overflow: hidden; }
.hubflix-cast-dialog header { align-items: center; border-bottom: 1px solid #282f3d; display: grid; gap: 12px; grid-template-columns: 44px minmax(0,1fr) 38px; padding: 20px 22px; }
.hubflix-cast-dialog header > span { align-items: center; background: #1b2a49; border-radius: 12px; color: #67a0ff; display: flex; height: 44px; justify-content: center; width: 44px; }
.hubflix-cast-dialog header small { color: #73a6ff; display: block; font-size: .57rem; font-weight: 850; letter-spacing: .12em; }
.hubflix-cast-dialog header h2 { font-size: 1.05rem; margin: 3px 0 0; }
.hubflix-cast-dialog header button { align-items: center; background: #1b202c; border: 0; border-radius: 10px; color: #dce2ee; cursor: pointer; display: flex; height: 38px; justify-content: center; width: 38px; }
.hubflix-cast-dialog #hubflixDlnaPicker > p { color: #9aa5b8; font-size: .72rem; line-height: 1.55; margin: 18px 22px 12px; }
.hubflix-native-cast {
  align-items: center; background: linear-gradient(135deg,#254b91,#5531a4); border: 1px solid #6c7fe0; border-radius: 14px; color: #fff; cursor: pointer;
  display: grid; gap: 12px; grid-template-columns: 42px minmax(0,1fr) 18px; margin: 0 22px 16px; padding: 13px; text-align: left; width: calc(100% - 44px);
}
.hubflix-native-cast:hover { border-color: #9cadff; filter: brightness(1.08); }
.hubflix-native-cast > span:first-child { align-items: center; background: rgba(255,255,255,.13); border-radius: 10px; display: flex; height: 42px; justify-content: center; width: 42px; }
.hubflix-native-cast b,.hubflix-native-cast small { display: block; }
.hubflix-native-cast b { font-size: .76rem; }
.hubflix-native-cast small { color: #d7dfff; font-size: .62rem; line-height: 1.45; margin-top: 4px; }
.hubflix-cast-capability {
  align-items: center;
  background: #151c29;
  border: 1px solid #29364c;
  border-radius: 12px;
  color: #9eabc0;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0,1fr);
  margin: 0 22px 14px;
  padding: 11px 13px;
}
.hubflix-cast-capability > .lucide { color: #7ea5ff; height: 19px; width: 19px; }
.hubflix-cast-capability b,.hubflix-cast-capability small { display: block; }
.hubflix-cast-capability b { color: #dfe7f5; font-size: .66rem; }
.hubflix-cast-capability small { font-size: .57rem; line-height: 1.45; margin-top: 3px; }
.hubflix-cast-capability.available { background: #11251f; border-color: #285544; }
.hubflix-cast-capability.available > .lucide { color: #58d4a5; }
.hubflix-cast-capability.unavailable { background: #251d16; border-color: #58442d; }
.hubflix-cast-capability.unavailable > .lucide { color: #efb85f; }
.hubflix-cast-fallback { border-top: 1px solid #282f3d; margin: 4px 22px 14px; padding-top: 13px; }
.hubflix-cast-fallback > summary {
  align-items: center;
  color: #9ba7bb;
  cursor: pointer;
  display: flex;
  font-size: .64rem;
  font-weight: 740;
  gap: 7px;
  list-style: none;
  padding: 7px 2px;
}
.hubflix-cast-fallback > summary::-webkit-details-marker { display: none; }
.hubflix-cast-fallback > summary .lucide { height: 15px; width: 15px; }
.hubflix-cast-fallback[open] > summary { color: #dce5f3; }
.hubflix-cast-fallback .hubflix-tv-pair { margin: 9px 0 0; }
.hubflix-cast-fallback .hubflix-native-cast { margin: 9px 0 10px; width: 100%; }
.hubflix-cast-fallback .hubflix-cast-capability { margin: 0; }
.hubflix-tv-pair {
  background: linear-gradient(145deg, #171e2c, #111724);
  border: 1px solid #2c3850;
  border-radius: 15px;
  margin: 0 22px 16px;
  padding: 14px;
}
.hubflix-tv-pair-primary {
  background:
    radial-gradient(circle at 100% 0, rgba(79,110,239,.2), transparent 42%),
    linear-gradient(145deg, #182237, #101622);
  border-color: #405781;
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
.hubflix-tv-address {
  background: #0a101c;
  border: 1px solid #32425e;
  border-radius: 11px;
  margin: 13px 0 10px;
  padding: 10px 12px;
}
.hubflix-tv-address small {
  color: #7898ce;
  display: block;
  font-size: .5rem;
  font-weight: 850;
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.hubflix-tv-address strong {
  color: #f3f7ff;
  display: block;
  font-size: .7rem;
  overflow-wrap: anywhere;
}
.hubflix-tv-pair-heading { align-items: center; display: flex; gap: 11px; }
.hubflix-tv-pair-heading > span:first-child {
  align-items: center; background: #202f4d; border-radius: 10px; color: #79a7ff; display: flex; height: 38px; justify-content: center; width: 38px;
}
.hubflix-tv-pair-heading > span:last-child,
.hubflix-tv-pair-heading b,
.hubflix-tv-pair-heading small { display: block; }
.hubflix-tv-pair-heading b { color: #f3f6fc; font-size: .76rem; }
.hubflix-tv-pair-heading small { color: #91a0b5; font-size: .6rem; line-height: 1.4; margin-top: 3px; }
.hubflix-tv-pair > p { color: #a4afc0; font-size: .64rem; line-height: 1.5; margin: 12px 0 9px; }
.hubflix-tv-pair > p strong { color: #dce6f8; }
.hubflix-tv-pair-form { display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) auto; }
.hubflix-tv-pair-form input {
  background: #090e18; border: 1px solid #35425a; border-radius: 10px; color: #fff; font-family: ui-monospace,Consolas,monospace; font-size: 1rem; font-weight: 800; letter-spacing: .12em; min-width: 0; padding: 10px 12px;
}
.hubflix-tv-pair-form input::placeholder { color: #68758a; opacity: 1; }
.hubflix-tv-pair-form input:focus { border-color: #6d94ed; box-shadow: 0 0 0 3px rgba(75,126,229,.18); outline: 0; }
.hubflix-tv-pair-form button {
  align-items: center; background: #edf3ff; border: 0; border-radius: 10px; color: #142341; cursor: pointer; display: flex; font-size: .68rem; font-weight: 850; gap: 7px; justify-content: center; padding: 10px 14px;
}
.hubflix-tv-pair-form button:disabled { cursor: wait; opacity: .6; }
.hubflix-tv-pair-form .lucide { height: 16px; width: 16px; }
.hubflix-tv-pair-help { align-items: center; color: #6fd6ae; display: flex; font-size: .57rem; gap: 5px; line-height: 1.45; margin-top: 9px; }
.hubflix-tv-pair-help .lucide { flex: 0 0 auto; height: 13px; width: 13px; }
.hubflix-cast-dialog .hubflix-local-cast-label { border-top: 1px solid #282f3d; color: #77839a; font-size: .57rem; font-weight: 800; letter-spacing: .08em; margin: 0 22px 10px; padding-top: 14px; text-transform: uppercase; }
.hubflix-cast-devices { display: flex; flex-direction: column; gap: 8px; max-height: 330px; min-height: 100px; overflow: auto; padding: 2px 22px 16px; }
.hubflix-cast-devices > .hubflix-spinner { align-self: center; margin-top: 20px; }
.hubflix-cast-devices > p { color: #8f99ac; font-size: .7rem; text-align: center; }
.hubflix-cast-devices > button {
  align-items: center; background: #181e2a; border: 1px solid #2a3242; border-radius: 13px; color: #edf1f8; cursor: pointer;
  display: grid; gap: 12px; grid-template-columns: 42px minmax(0,1fr) 18px; padding: 12px; text-align: left;
}
.hubflix-cast-devices > button:hover { background: #1d2636; border-color: #3d70cc; }
.hubflix-cast-devices > button:disabled { cursor: wait; opacity: .72; }
.hubflix-cast-devices > button > span:first-child { align-items: center; background: #202c42; border-radius: 10px; color: #72a6ff; display: flex; height: 42px; justify-content: center; width: 42px; }
.hubflix-cast-devices b,.hubflix-cast-devices small { display: block; }
.hubflix-cast-devices b { font-size: .76rem; }
.hubflix-cast-devices small { color: #929daf; font-size: .63rem; margin-top: 4px; }
.hubflix-cast-empty { align-items: center; color: #8f99ac; display: flex; flex-direction: column; gap: 8px; padding: 22px; text-align: center; }
.hubflix-cast-empty > .lucide { color: #5f6d83; height: 32px; width: 32px; }
.hubflix-cast-empty.secure { background: #141c29; border: 1px solid #27354a; border-radius: 13px; margin-top: 2px; padding: 18px; }
.hubflix-cast-empty.secure > .lucide { color: #55d6a6; }
.hubflix-cast-empty.secure small { line-height: 1.55; max-width: 340px; }
.hubflix-cast-status {
  color: #ff9aab !important;
  font-size: .68rem;
  line-height: 1.5;
  margin: 0;
  max-height: 88px;
  min-height: 16px;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 0 22px 10px;
}
.hubflix-cast-dialog footer { border-top: 1px solid #282f3d; display: flex; gap: 8px; justify-content: flex-end; padding: 15px 22px; }
.hubflix-cast-dialog footer button { align-items: center; background: #1b202c; border: 1px solid #2d3545; border-radius: 10px; color: #dfe5f0; cursor: pointer; display: flex; font: inherit; font-size: .67rem; font-weight: 740; gap: 7px; padding: 10px 12px; }
.hubflix-cast-dialog.remote-mode { max-width: 580px; }
.hubflix-cast-dialog.remote-mode > article { background: radial-gradient(circle at 80% 0,#1b2d51 0,transparent 38%),#0b101a; }
.hubflix-remote { padding: 22px; }
.hubflix-remote-now { align-items: center; display: grid; gap: 14px; grid-template-columns: 92px minmax(0,1fr); }
.hubflix-remote-now > span:first-child { background: linear-gradient(145deg,#263a72,#392d60); background-position: center; background-size: cover; border-radius: 10px; height: 58px; width: 92px; }
.hubflix-remote-now small,.hubflix-remote-now strong,.hubflix-remote-now em { display: block; }
.hubflix-remote-now small { color: #7e9ed8; font-size: .52rem; font-weight: 850; letter-spacing: .09em; }
.hubflix-remote-now strong { font-size: .92rem; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hubflix-remote-now em { color: #9ea9ba; font-size: .63rem; font-style: normal; margin-top: 4px; }
.hubflix-remote > input { accent-color: #5f88f7; margin-top: 25px; width: 100%; }
.hubflix-remote-time { color: #939daf; display: flex; font-size: .61rem; justify-content: space-between; margin-top: 5px; }
.hubflix-remote-transport { align-items: center; display: flex; gap: 18px; justify-content: center; margin: 22px 0; }
.hubflix-remote-transport button { align-items: center; background: #192131; border: 1px solid #303b50; border-radius: 50%; color: #e8edf6; cursor: pointer; display: flex; height: 48px; justify-content: center; position: relative; width: 48px; }
.hubflix-remote-transport button.primary { background: #f5f7fb; border-color: #f5f7fb; color: #111827; height: 66px; width: 66px; }
.hubflix-remote-transport button small { font-size: .5rem; font-weight: 850; position: absolute; }
.hubflix-remote-volume { align-items: center; background: #141b28; border: 1px solid #293347; border-radius: 12px; display: grid; gap: 10px; grid-template-columns: 20px 1fr 42px; padding: 12px; }
.hubflix-remote-volume input { accent-color: #5f88f7; width: 100%; }
.hubflix-remote-volume output { color: #b6bfce; font-size: .62rem; text-align: right; }
.hubflix-remote-stop { align-items: center; background: transparent; border: 0; color: #ff8fa2; cursor: pointer; display: flex; font: inherit; font-size: .68rem; font-weight: 750; gap: 7px; justify-content: center; margin: 16px auto 0; }
.hubflix-toast {
  background: #f5f7fb;
  border-radius: 9px;
  bottom: 24px;
  box-shadow: 0 14px 45px rgba(0,0,0,.45);
  color: #171b24;
  font-size: .78rem;
  font-weight: 700;
  left: 50%;
  opacity: 0;
  padding: 11px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%,15px);
  transition: .2s;
  z-index: 100;
}
.hubflix-toast.visible { opacity: 1; transform: translate(-50%,0); }
.hubflix-request-nav {
  align-items: center;
  background: rgba(52,117,255,.13);
  border: 1px solid rgba(93,142,255,.32);
  border-radius: 999px;
  color: #dce7ff;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 750;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  white-space: nowrap;
}
.hubflix-request-nav:hover { background: rgba(62,124,255,.25); border-color: rgba(114,158,255,.55); color: #fff; }
.hubflix-request-nav .lucide { height: 15px; width: 15px; }
.hubflix-request-dialog {
  background: transparent;
  border: 0;
  color: #edf2fb;
  max-height: 94dvh;
  max-width: 1080px;
  padding: 0;
  width: calc(100% - 28px);
}
.hubflix-request-dialog::backdrop { backdrop-filter: blur(12px); background: rgba(2,5,12,.82); }
.hubflix-request-dialog > article {
  background:
    radial-gradient(circle at 8% 0,rgba(59,111,232,.16),transparent 29%),
    linear-gradient(145deg,#141a27,#0d121d);
  border: 1px solid #2b3547;
  border-radius: 24px;
  box-shadow: 0 34px 110px rgba(0,0,0,.68);
  max-height: 94dvh;
  overflow: hidden;
}
.hubflix-request-dialog > article > header {
  align-items: center;
  border-bottom: 1px solid #293245;
  display: grid;
  gap: 14px;
  grid-template-columns: 52px minmax(0,1fr) 42px;
  padding: 22px 24px;
}
.hubflix-request-mark {
  align-items: center;
  background: linear-gradient(145deg,#315ec3,#613dcc);
  border: 1px solid #6f83ec;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(61,91,208,.3);
  display: flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}
.hubflix-request-mark .lucide { height: 24px; width: 24px; }
.hubflix-request-dialog header small,
.hubflix-request-history-heading small {
  color: #79a4ff;
  display: block;
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.hubflix-request-dialog header h2 { font-size: 1.25rem; margin: 3px 0 4px; }
.hubflix-request-dialog header p { color: #97a3b6; font-size: .68rem; line-height: 1.45; margin: 0; }
.hubflix-request-close,
.hubflix-request-history-heading button {
  align-items: center;
  background: #1b2331;
  border: 1px solid #313c50;
  border-radius: 11px;
  color: #d9e0ed;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.hubflix-request-close:hover,
.hubflix-request-history-heading button:hover { background: #242f41; color: #fff; }
.hubflix-request-layout {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr);
  max-height: calc(94dvh - 98px);
  min-height: 570px;
}
.hubflix-request-form {
  border-right: 1px solid #293245;
  overflow-y: auto;
  padding: 25px 26px 28px;
}
.hubflix-request-form-heading {
  align-items: center;
  display: grid;
  gap: 11px;
  grid-template-columns: 30px 1fr;
  margin-bottom: 14px;
}
.hubflix-request-form-heading > span {
  align-items: center;
  background: #1e335e;
  border: 1px solid #31528f;
  border-radius: 9px;
  color: #85adff;
  display: flex;
  font-size: .68rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.hubflix-request-form-heading b,
.hubflix-request-form-heading small { display: block; }
.hubflix-request-form-heading b { font-size: .77rem; }
.hubflix-request-form-heading small { color: #8d99ad; font-size: .6rem; line-height: 1.4; margin-top: 3px; }
.hubflix-request-field { display: grid; gap: 7px; margin: 0 0 22px; }
.hubflix-request-field > span { color: #b8c1d0; font-size: .64rem; font-weight: 750; }
.hubflix-request-field input {
  background: #090e17;
  border: 1px solid #354158;
  border-radius: 11px;
  color: #f3f6fc;
  min-height: 46px;
  outline: 0;
  padding: 0 13px;
  width: 100%;
}
.hubflix-request-field input::placeholder { color: #626f84; }
.hubflix-request-field input:focus { border-color: #5f87ed; box-shadow: 0 0 0 3px rgba(70,113,223,.16); }
.hubflix-request-cover {
  align-items: center;
  background: linear-gradient(135deg,#151e2e,#111824);
  border: 1px dashed #445474;
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  gap: 13px;
  grid-template-columns: 64px minmax(0,1fr) auto;
  margin: 0 0 14px;
  min-height: 88px;
  padding: 11px;
}
.hubflix-request-cover:hover,
.hubflix-request-cover.dragging { background: #182438; border-color: #7198f3; }
.hubflix-request-cover-preview {
  align-items: center;
  background: #202b3d;
  background-position: center;
  background-size: cover;
  border-radius: 11px;
  color: #7999db;
  display: flex;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  width: 64px;
}
.hubflix-request-cover-preview.has-image .lucide { display: none; }
.hubflix-request-cover b,
.hubflix-request-cover small { display: block; }
.hubflix-request-cover b { font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hubflix-request-cover small { color: #7f8ba0; font-size: .59rem; margin-top: 5px; }
.hubflix-request-cover em {
  background: #26344a;
  border-radius: 8px;
  color: #c8d8f8;
  font-size: .6rem;
  font-style: normal;
  font-weight: 800;
  padding: 9px 10px;
}
.hubflix-request-url { align-items: center; display: grid; grid-template-columns: 38px 1fr; }
.hubflix-request-url > .lucide { color: #8390a5; height: 16px; margin-left: 13px; position: relative; width: 16px; z-index: 2; }
.hubflix-request-url input { grid-column: 1/-1; grid-row: 1; padding-left: 39px; }
.hubflix-request-message { color: #ff95a5; font-size: .64rem; line-height: 1.4; margin: -8px 0 10px; min-height: 18px; }
.hubflix-request-message.success { color: #62d8ad; }
.hubflix-request-submit {
  align-items: center;
  background: linear-gradient(135deg,#376fee,#7547e7);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(72,83,220,.26);
  color: #fff;
  display: flex;
  font-size: .72rem;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  width: 100%;
}
.hubflix-request-submit:disabled { cursor: wait; filter: grayscale(.4); opacity: .6; }
.hubflix-request-submit .lucide { height: 17px; width: 17px; }
.hubflix-request-history { background: rgba(7,11,18,.42); display: flex; flex-direction: column; min-height: 0; padding: 24px; }
.hubflix-request-history-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 15px; }
.hubflix-request-history-heading h3 { font-size: 1.02rem; margin: 4px 0 0; }
.hubflix-request-list { display: grid; gap: 10px; overflow-y: auto; padding-right: 4px; }
.hubflix-request-item {
  align-items: center;
  background: #151c29;
  border: 1px solid #293448;
  border-radius: 15px;
  display: grid;
  gap: 12px;
  grid-template-columns: 58px minmax(0,1fr);
  padding: 10px;
}
.hubflix-request-item > img {
  background: #222d40;
  border-radius: 9px;
  height: 72px;
  object-fit: cover;
  width: 58px;
}
.hubflix-request-item-copy { min-width: 0; }
.hubflix-request-item-copy > b { display: block; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hubflix-request-item-copy > small { color: #79869b; display: block; font-size: .57rem; margin-top: 5px; }
.hubflix-request-state {
  align-items: center;
  display: flex;
  font-size: .59rem;
  font-weight: 800;
  gap: 7px;
  margin-top: 9px;
}
.hubflix-request-state i { border-radius: 50%; height: 7px; width: 7px; }
.hubflix-request-state.requested,
.hubflix-request-state.reviewing { color: #f2b85c; }
.hubflix-request-state.requested i,
.hubflix-request-state.reviewing i { background: #f2b85c; box-shadow: 0 0 0 4px rgba(242,184,92,.1); }
.hubflix-request-state.downloading,
.hubflix-request-state.preparing { color: #79a7ff; }
.hubflix-request-state.downloading i,
.hubflix-request-state.preparing i { animation: flixpulse .9s infinite alternate; background: #79a7ff; box-shadow: 0 0 0 4px rgba(121,167,255,.1); }
.hubflix-request-state.available { color: #56d6a5; }
.hubflix-request-state.available i { background: #56d6a5; box-shadow: 0 0 0 4px rgba(86,214,165,.1); }
.hubflix-request-state.declined { color: #ff7d91; }
.hubflix-request-state.declined i { background: #ff7d91; box-shadow: 0 0 0 4px rgba(255,125,145,.1); }
.hubflix-request-note { color: #9ca8ba; display: block; font-size: .57rem; line-height: 1.45; margin-top: 7px; }
.hubflix-request-empty {
  align-items: center;
  color: #718096;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  text-align: center;
}
.hubflix-request-empty > .lucide { background: #182234; border-radius: 16px; height: 58px; margin-bottom: 13px; padding: 16px; width: 58px; }
.hubflix-request-empty b { color: #b7c1d1; font-size: .75rem; }
.hubflix-request-empty small { font-size: .59rem; margin-top: 6px; }

@media (max-width: 900px) {
  .product-nav { margin-left: auto; position: static; transform: none; }
  .chat-header > div:first-of-type { flex: 1; min-width: 0; }
  .product-nav a { padding-inline: 8px; }
  .product-nav a span { display: none; }
  .hubflix-header { gap: 14px; grid-template-columns: auto 1fr auto; padding-inline: 16px; }
  .hubflix-nav { gap: 13px; }
  .hubflix-request-nav span { display: none; }
  .hubflix-request-nav { height: 34px; min-height: 34px; padding: 0 9px; width: 34px; }
  .hubflix-search input { width: 85px; }
  .hubflix-admin-link span { display: none; }
  .hubflix-request-layout { grid-template-columns: 1fr 360px; }
}
@media (max-width: 600px) {
  .product-nav { gap: 1px; }
  .product-nav a { padding: 7px; }
  .chat-header .model-badge { display: none; }
  .hubflix-header { height: 64px; }
  .hubflix-brand span { display: none; }
  .hubflix-brand img { height: 34px; width: 34px; }
  .hubflix-nav { gap: 11px; }
  .hubflix-nav a { font-size: .72rem; }
  .hubflix-request-nav { border: 0; background: transparent; padding: 0; width: 28px; }
  .hubflix-search { display: none; }
  .hubflix-admin-link { display: none; }
  .hubflix-hero {
    align-items: flex-end;
    background:
      linear-gradient(0deg,#080a0f 6%,rgba(8,10,15,.72) 55%,rgba(8,10,15,.2)),
      var(--hero-image),
      radial-gradient(circle at 70% 20%,#293253,#10131d 55%,#080a0f);
    background-position: center;
    background-size: cover;
    min-height: 72vh;
    padding: 110px 20px 90px;
  }
  .hubflix-hero h1 { font-size: 2.8rem; }
  .hubflix-hero p { font-size: .84rem; line-height: 1.5; }
  .hubflix-catalog { margin-top: -50px; padding-inline: 16px; }
  .hubflix-card { flex-basis: min(68vw,260px); min-width: min(68vw,260px); }
  .hubflix-details-art { height: 250px; }
  .hubflix-details-content { padding: 22px 22px 30px; }
  .hubflix-player-top { padding: 12px 10px 45px; }
  .hubflix-player-controls { padding: 45px 10px 12px; }
  .hubflix-player-controls > div { gap: 1px; }
  .hubflix-request-dialog { height: 100dvh; max-height: 100dvh; width: 100%; }
  .hubflix-request-dialog[open] { margin: 0; max-width: 100%; }
  .hubflix-request-dialog > article { border: 0; border-radius: 0; height: 100dvh; max-height: 100dvh; }
  .hubflix-request-dialog > article > header { grid-template-columns: 42px minmax(0,1fr) 38px; padding: 15px; }
  .hubflix-request-mark { border-radius: 12px; height: 42px; width: 42px; }
  .hubflix-request-dialog header p { display: none; }
  .hubflix-request-layout { display: block; max-height: calc(100dvh - 73px); min-height: 0; overflow-y: auto; }
  .hubflix-request-form { border-bottom: 1px solid #293245; border-right: 0; overflow: visible; padding: 20px 15px 24px; }
  .hubflix-request-history { min-height: 430px; padding: 21px 15px 30px; }
  .hubflix-request-list { overflow: visible; }
  .hubflix-request-cover { grid-template-columns: 58px minmax(0,1fr); }
  .hubflix-request-cover-preview { height: 62px; width: 54px; }
  .hubflix-request-cover em { display: none; }
}
.storage-folder-scope {
  background: #f8f8fc;
  border: 1px solid #e5e6ed;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
}
.storage-folder-picker {
  background: #fff;
  border: 1px solid #dedfe7;
  border-radius: 12px;
  overflow: hidden;
}
.storage-folder-picker-head {
  align-items: center;
  border-bottom: 1px solid #e7e8ee;
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 10px;
}
.storage-folder-picker-head .icon-button {
  align-items: center;
  background: #f1f1f6;
  border: 0;
  border-radius: 8px;
  color: #484d5b;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.storage-folder-picker-head .icon-button:disabled {
  cursor: default;
  opacity: .35;
}
.storage-folder-picker-head span {
  min-width: 0;
}
.storage-folder-picker-head small,
.storage-folder-picker-head b {
  display: block;
}
.storage-folder-picker-head small {
  color: #8b8f9e;
  font-size: .62rem;
  margin-bottom: 3px;
}
.storage-folder-picker-head b {
  color: #303340;
  font-size: .72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.storage-folder-list {
  max-height: 220px;
  min-height: 92px;
  overflow-y: auto;
  padding: 6px;
}
.storage-folder-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #343744;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 25px minmax(0,1fr) 18px;
  padding: 9px;
  text-align: left;
  width: 100%;
}
.storage-folder-item:hover {
  background: #f2f0ff;
  color: #6045ce;
}
.storage-folder-item > .lucide:first-child {
  color: #7258df;
  height: 20px;
  width: 20px;
}
.storage-folder-item > .lucide:last-child {
  color: #a3a6b1;
  height: 15px;
  width: 15px;
}
.storage-folder-item b,
.storage-folder-item small {
  display: block;
}
.storage-folder-item b {
  font-size: .72rem;
}
.storage-folder-item small {
  color: #9296a4;
  font-size: .61rem;
  margin-top: 2px;
}
.storage-folder-empty {
  color: #888d9c;
  font-size: .7rem;
  line-height: 1.5;
  margin: 24px 12px;
  text-align: center;
}
.storage-quota-input {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0,1fr) 44px;
}
.storage-quota-input input {
  border-radius: 9px 0 0 9px !important;
}
.storage-quota-input b {
  align-items: center;
  align-self: stretch;
  background: #ececf3;
  border: 1px solid rgba(33,37,54,.12);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  color: #666b79;
  display: flex;
  font-size: .7rem;
  justify-content: center;
}
@media (max-width: 820px) {
  .runtime-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .runtime-heading,
  .runtime-live {
    align-items: flex-start;
  }
  .runtime-metrics {
    grid-template-columns: 1fr;
  }
  .runtime-network {
    align-items: flex-start;
    flex-direction: column;
  }
  .runtime-controls {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .runtime-controls button {
    width: 100% !important;
  }
  .runtime-control-help {
    grid-column: auto;
  }
}

/* Administração do HubFlix */
.hubflix-admin-card {
  background:
    radial-gradient(circle at 100% 0,rgba(76,103,229,.11),transparent 32%),
    #fff;
}
.hubflix-admin-summary {
  align-items: center;
  background: #f6f7fb;
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  padding: 12px 14px;
}
.hubflix-admin-summary > span, .hubflix-admin-summary > p {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0;
}
.hubflix-admin-summary > span > span, .hubflix-admin-summary b, .hubflix-admin-summary small { display: block; }
.hubflix-admin-summary b { color: #202433; font-size: .8rem; }
.hubflix-admin-summary small, .hubflix-admin-summary p { color: #70788a; font-size: .69rem; }
.hubflix-admin-summary .lucide { color: #446ee9; height: 18px; width: 18px; }
.hubflix-admin-list { display: grid; gap: 8px; }
.hubflix-admin-movie {
  align-items: center;
  border: 1px solid #e5e7ed;
  border-radius: 12px;
  display: grid;
  gap: 13px;
  grid-template-columns: 54px minmax(180px,1fr) auto auto auto;
  padding: 9px 11px;
}
.hubflix-admin-movie.disabled { opacity: .66; }
.hubflix-admin-poster {
  align-items: center;
  aspect-ratio: 2/3;
  background: linear-gradient(145deg,#262d42,#111522);
  background-position: center;
  background-size: cover;
  border-radius: 7px;
  color: #9ca9c4;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.hubflix-admin-poster .lucide { height: 21px; width: 21px; }
.hubflix-admin-movie-copy { min-width: 0; }
.hubflix-admin-movie-copy b, .hubflix-admin-movie-copy small { display: block; }
.hubflix-admin-movie-copy b { color: #1c2130; font-size: .8rem; }
.hubflix-admin-movie-copy small {
  align-items: center;
  color: #778095;
  display: flex;
  font-size: .66rem;
  gap: 5px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hubflix-admin-movie-copy small .lucide { height: 12px; min-width: 12px; width: 12px; }
.hubflix-admin-conversion {
  display: grid !important;
  gap: 6px;
  margin-top: 7px;
  max-width: 330px;
}
.hubflix-admin-conversion > span {
  align-items: center;
  display: flex;
  font-size: .66rem;
  gap: 8px;
}
.hubflix-admin-conversion > span > i {
  border-radius: 50%;
  box-shadow: 0 0 0 4px currentColor;
  height: 5px;
  margin-left: 4px;
  width: 5px;
}
.hubflix-admin-conversion.ready { color: #16805d; }
.hubflix-admin-conversion.not-ready { color: #d43f55; }
.hubflix-admin-conversion b { color: currentColor; font-size: .66rem; }
.hubflix-admin-conversion > em {
  background: #e4e7ee;
  border-radius: 999px;
  display: block;
  height: 5px;
  overflow: hidden;
  width: 100%;
}
.hubflix-admin-conversion > em > i {
  background: linear-gradient(90deg,#ee4d65,#ff8b68);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width .55s ease;
}
.hubflix-featured-state {
  align-items: center;
  background: #f1edff;
  border-radius: 999px;
  color: #6449c7;
  display: flex;
  font-size: .65rem;
  font-weight: 750;
  gap: 5px;
  padding: 6px 8px;
}
.hubflix-featured-state .lucide { height: 13px; width: 13px; }
.hubflix-admin-empty {
  align-items: center;
  border: 1px dashed #d9dce5;
  border-radius: 12px;
  color: #7d8494;
  display: flex;
  gap: 13px;
  justify-content: center;
  min-height: 110px;
  padding: 20px;
}
.hubflix-admin-empty > .lucide { height: 30px; width: 30px; }
.hubflix-admin-empty b, .hubflix-admin-empty small { display: block; }
.hubflix-admin-empty b { color: #343947; font-size: .8rem; }
.hubflix-admin-empty small { font-size: .7rem; margin-top: 4px; }
.hubflix-access-button {
  align-items: center;
  color: #315fcb !important;
  display: inline-flex;
  gap: 5px;
}
.hubflix-access-button.enabled { color: #a64a55 !important; }
.hubflix-access-button .lucide { height: 14px; width: 14px; }
.hubflix-movie-dialog {
  max-height: min(900px,92dvh);
  overflow-y: auto;
  width: min(820px,95vw);
}
.hubflix-dialog-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}
.hubflix-dialog-heading h2 { margin-bottom: 4px; }
.hubflix-dialog-heading p { color: #747b8b; font-size: .72rem; margin: 0; }
.hubflix-source-picker {
  background: #f7f8fb;
  border: 1px solid #e4e7ee;
  border-radius: 13px;
  margin: 18px 0;
  overflow: hidden;
}
.hubflix-source-toolbar {
  align-items: flex-end;
  border-bottom: 1px solid #e4e7ee;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 12px;
}
.hubflix-source-toolbar label { color: #555d6f; font-size: .68rem; font-weight: 750; }
.hubflix-source-toolbar select { margin-top: 5px; }
.hubflix-selected-source {
  background: #eef3ff;
  border-bottom: 1px solid #d9e3fb;
  color: #65728c;
  display: block;
  padding: 9px 13px;
}
.hubflix-selected-source small, .hubflix-selected-source b { display: block; }
.hubflix-selected-source small { font-size: .59rem; text-transform: uppercase; }
.hubflix-selected-source b {
  color: #27477f;
  font-size: .72rem;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.hubflix-file-list {
  display: grid;
  gap: 3px;
  max-height: 230px;
  overflow-y: auto;
  padding: 7px;
}
.hubflix-file-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #3b4252;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: auto 1fr auto;
  padding: 8px;
  text-align: left;
}
.hubflix-file-option:hover { background: #e9edf6; }
.hubflix-file-option > .lucide { color: #6a78a0; height: 18px; width: 18px; }
.hubflix-file-option > span { min-width: 0; }
.hubflix-file-option b, .hubflix-file-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hubflix-file-option b { font-size: .72rem; }
.hubflix-file-option small { color: #858c9c; font-size: .63rem; margin-top: 2px; }
.hubflix-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.hubflix-form-grid .span-2 { grid-column: span 2; }
.hubflix-form-grid label { color: #4c5363; font-size: .69rem; font-weight: 750; }
.hubflix-form-grid label small { color: #9096a4; font-weight: 500; }
.hubflix-form-grid input, .hubflix-form-grid textarea { margin-top: 5px; }
.hubflix-form-options {
  background: #f7f8fb;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
}
@media (max-width: 760px) {
  .hubflix-admin-summary { align-items: flex-start; flex-direction: column; gap: 9px; }
  .hubflix-admin-movie { grid-template-columns: 48px 1fr auto; }
  .hubflix-admin-movie .hubflix-featured-state { display: none; }
  .hubflix-admin-movie .user-actions { grid-column: 2/-1; }
}
@media (max-width: 540px) {
  .hubflix-form-grid { grid-template-columns: 1fr; }
  .hubflix-form-grid .span-2 { grid-column: auto; }
  .hubflix-source-toolbar { grid-template-columns: 1fr; }
  .hubflix-admin-movie { grid-template-columns: 46px minmax(0,1fr); }
  .hubflix-admin-movie .key-state { grid-column: 2; justify-self: start; }
  .hubflix-admin-movie .user-actions { grid-column: 1/-1; }
}

/* Administrative console */
.admin-page {
  --admin-accent: #2563eb;
  --admin-accent-strong: #1d4ed8;
  --admin-bg: #f5f7fb;
  --admin-card: #ffffff;
  --admin-border: #e5e9f1;
  --admin-text: #182033;
  --admin-muted: #687187;
  --admin-sidebar: #101524;
  background: var(--admin-bg);
  color: var(--admin-text);
  color-scheme: light;
  min-height: 100dvh;
}
.admin-console { min-height: 100dvh; }
.admin-sidebar {
  background: linear-gradient(180deg,#111827 0%,#0d1321 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  color: #d6dbea;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  left: 0;
  padding: 20px 16px 16px;
  position: fixed;
  top: 0;
  width: 260px;
  z-index: 40;
}
.admin-sidebar-brand {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 4px 18px;
}
.admin-sidebar .official-brand-admin { display: inline-flex; }
.admin-sidebar .official-brand-admin img {
  border-radius: 10px;
  height: 48px;
  object-fit: contain;
  width: 48px;
}
.admin-sidebar-close {
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: none;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.admin-sidebar-label {
  color: #747f98;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 17px 12px 9px;
  text-transform: uppercase;
}
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #9ca7bd;
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: .78rem;
  font-weight: 680;
  gap: 11px;
  grid-template-columns: 20px minmax(0,1fr) auto;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
  transition: background .18s ease,color .18s ease,transform .18s ease;
  width: 100%;
}
.admin-nav-link .lucide { height: 18px; width: 18px; }
.admin-nav-link:hover { background: rgba(255,255,255,.06); color: #eef2ff; }
.admin-nav-link.active {
  background: linear-gradient(135deg,rgba(52,99,230,.28),rgba(103,73,224,.18));
  box-shadow: inset 3px 0 #5d8cff;
  color: #fff;
}
.admin-nav-badge {
  align-items: center;
  background: #f59e0b;
  border-radius: 999px;
  color: #111827;
  display: inline-flex;
  font-size: .61rem;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}
.admin-nav-separator {
  align-items: center;
  color: #5e687c;
  display: flex;
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .11em;
  margin: 15px 12px 6px;
  text-transform: uppercase;
}
.admin-sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding-top: 13px;
}
.admin-sidebar-footer > a {
  align-items: center;
  border-radius: 9px;
  color: #9da7ba;
  display: flex;
  font-size: .72rem;
  font-weight: 650;
  gap: 10px;
  padding: 9px 11px;
  text-decoration: none;
}
.admin-sidebar-footer > a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-sidebar-footer > a .lucide { height: 16px; width: 16px; }
.admin-sidebar-status {
  align-items: center;
  background: rgba(16,185,129,.09);
  border: 1px solid rgba(52,211,153,.13);
  border-radius: 11px;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px;
}
.admin-sidebar-status > span:last-child { min-width: 0; }
.admin-sidebar-status b,.admin-sidebar-status small { display: block; }
.admin-sidebar-status b { color: #dffbf0; font-size: .68rem; }
.admin-sidebar-status small { color: #7e998f; font-size: .58rem; margin-top: 3px; }
.admin-workspace { min-height: 100dvh; padding-left: 260px; }
.admin-topbar {
  align-items: center;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--admin-border);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(170px,.7fr) minmax(260px,560px) minmax(260px,.9fr);
  min-height: 72px;
  padding: 10px 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.admin-topbar-title { align-items: center; display: flex; gap: 10px; }
.admin-topbar-title span small,.admin-topbar-title span b { display: block; }
.admin-topbar-title small {
  color: #8b93a6;
  font-size: .61rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-topbar-title b { font-size: .88rem; margin-top: 2px; }
.admin-menu-button {
  align-items: center;
  background: #f3f5f9;
  border: 1px solid var(--admin-border);
  border-radius: 9px;
  color: var(--admin-text);
  cursor: pointer;
  display: none;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.admin-command { position: relative; }
.admin-command > .lucide {
  color: #8790a3;
  height: 17px;
  left: 14px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
}
.admin-command input {
  background: #f5f7fa;
  border: 1px solid #e2e7ef;
  border-radius: 11px;
  color: var(--admin-text);
  font: inherit;
  font-size: .75rem;
  height: 42px;
  outline: 0;
  padding: 0 46px 0 42px;
  transition: background .18s,border .18s,box-shadow .18s;
  width: 100%;
}
.admin-command input:focus {
  background: #fff;
  border-color: #93b4f8;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.admin-command kbd {
  background: #fff;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  color: #8a92a5;
  font: inherit;
  font-size: .62rem;
  padding: 3px 7px;
  position: absolute;
  right: 10px;
  top: 10px;
}
.admin-search-results {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(20,30,55,.18);
  left: 0;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
}
.admin-search-results > button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--admin-text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px 1fr;
  padding: 9px;
  text-align: left;
  width: 100%;
}
.admin-search-results > button:hover { background: #f3f6fb; }
.admin-search-results button b,.admin-search-results button small { display: block; }
.admin-search-results button b { font-size: .72rem; }
.admin-search-results button small { color: var(--admin-muted); font-size: .64rem; margin-top: 2px; }
.admin-search-results > p { color: var(--admin-muted); font-size: .7rem; padding: 12px; }
.admin-search-result-icon {
  align-items: center;
  background: #eef3ff;
  border-radius: 8px;
  color: var(--admin-accent);
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.admin-search-result-icon .lucide { height: 16px; width: 16px; }
.admin-topbar-actions { align-items: center; display: flex; gap: 8px; justify-content: flex-end; }
.admin-last-update { color: #8a92a3; font-size: .62rem; margin-right: 4px; }
.admin-topbar-icon {
  align-items: center;
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 9px;
  color: #566074;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  text-decoration: none;
  width: 38px;
}
.admin-topbar-icon:hover { background: #f5f7fb; color: var(--admin-accent); }
.admin-topbar-icon.loading .lucide { animation: admin-spin .8s linear infinite; }
@keyframes admin-spin { to { transform: rotate(360deg); } }
.admin-profile {
  align-items: center;
  display: flex;
  font-size: .69rem;
  gap: 8px;
  margin-left: 4px;
}
.admin-profile > span {
  align-items: center;
  background: linear-gradient(135deg,#2563eb,#6d5ce8);
  border-radius: 9px;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.admin-main { margin: 0 auto; max-width: 1500px; padding: 30px 32px 64px; }
.admin-view { display: none; }
.admin-view.active { animation: admin-view-in .2s ease; display: block; }
@keyframes admin-view-in { from { opacity: 0; transform: translateY(4px); } }
.admin-page-heading {
  align-items: flex-end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-page-heading h1 {
  color: var(--admin-text);
  font-size: clamp(1.65rem,2.4vw,2.15rem);
  letter-spacing: -.035em;
  margin: 0 0 6px;
}
.admin-page-heading p { color: var(--admin-muted); font-size: .8rem; line-height: 1.5; margin: 0; }
.admin-health {
  background: #ecfdf5;
  border-color: #c9f3df;
  color: #167557;
  font-weight: 700;
  white-space: nowrap;
}
.admin-page .stats-grid {
  gap: 12px;
  grid-template-columns: repeat(5,minmax(0,1fr));
  margin-top: 0;
}
.admin-page .stats-grid article {
  background: #fff;
  border-color: var(--admin-border);
  border-radius: 13px;
  box-shadow: 0 4px 16px rgba(31,43,70,.035);
  min-height: 130px;
  padding: 17px;
  position: relative;
}
.admin-page .stats-grid article > span:not(.stat-icon) { color: #657087; font-weight: 680; }
.admin-page .stats-grid b { color: var(--admin-text); font-size: 1.65rem; margin: 15px 0 4px; }
.stat-icon {
  align-items: center;
  border-radius: 9px;
  display: flex !important;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
}
.stat-icon .lucide { height: 16px; width: 16px; }
.stat-icon.blue,.action-icon.blue { background: #eaf1ff; color: #2563eb; }
.stat-icon.amber,.action-icon.amber { background: #fff5dd; color: #b87408; }
.stat-icon.violet,.action-icon.violet { background: #f1edff; color: #7056da; }
.stat-icon.cyan { background: #e7f8fb; color: #078aa3; }
.stat-icon.green,.action-icon.green { background: #e9faf2; color: #168560; }
.admin-section-heading { align-items: flex-end; display: flex; justify-content: space-between; }
.admin-section-heading h2 { font-size: .92rem; margin: 0 0 4px; }
.admin-section-heading p { color: var(--admin-muted); font-size: .7rem; margin: 0; }
.admin-quick-actions { margin-top: 26px; }
.admin-action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin-top: 12px;
}
.admin-action-grid > button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  color: var(--admin-text);
  cursor: pointer;
  display: grid;
  gap: 11px;
  grid-template-columns: 38px 1fr 16px;
  min-height: 76px;
  padding: 12px;
  text-align: left;
  transition: border .18s,box-shadow .18s,transform .18s;
}
.admin-action-grid > button:hover {
  border-color: #b7c9ee;
  box-shadow: 0 10px 28px rgba(30,54,100,.08);
  transform: translateY(-1px);
}
.admin-action-grid > button > .lucide { color: #a0a8b8; height: 15px; width: 15px; }
.action-icon { align-items: center; border-radius: 10px; display: flex; height: 38px; justify-content: center; width: 38px; }
.action-icon .lucide { height: 18px; width: 18px; }
.admin-action-grid button b,.admin-action-grid button small { display: block; }
.admin-action-grid button b { font-size: .71rem; }
.admin-action-grid button small { color: var(--admin-muted); font-size: .61rem; line-height: 1.35; margin-top: 3px; }
.admin-overview-grid,.admin-two-column,.admin-ai-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.15fr .85fr;
  margin-top: 26px;
}
.admin-page .admin-card {
  border-color: var(--admin-border);
  border-radius: 14px;
  box-shadow: 0 5px 22px rgba(31,43,70,.045);
  padding: 20px;
}
.admin-page .admin-card h2 { color: var(--admin-text); font-size: .93rem; }
.admin-page .card-heading p { color: var(--admin-muted); }
.overview-health-metrics {
  background: #f7f9fc;
  border: 1px solid #edf0f5;
  border-radius: 11px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3,1fr);
  margin: 18px 0 12px;
  padding: 12px 0;
}
.overview-health-metrics > span { border-right: 1px solid #e4e8ef; padding: 0 13px; }
.overview-health-metrics > span:last-child { border-right: 0; }
.overview-health-metrics small,.overview-health-metrics b { display: block; }
.overview-health-metrics small { color: var(--admin-muted); font-size: .6rem; }
.overview-health-metrics b { font-size: .78rem; margin-top: 5px; }
.overview-service-list { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; }
.overview-service-list > span {
  align-items: center;
  background: #fff6f2;
  border-radius: 8px;
  color: #b05231;
  display: grid;
  gap: 7px;
  grid-template-columns: 17px 1fr auto;
  padding: 8px 9px;
}
.overview-service-list > span.ready { background: #f0faf6; color: #177357; }
.overview-service-list .lucide { height: 15px; width: 15px; }
.overview-service-list b { color: #354052; font-size: .62rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-service-list small { font-size: .57rem; }
.admin-card-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--admin-border);
  color: var(--admin-accent);
  cursor: pointer;
  display: flex;
  font-size: .67rem;
  font-weight: 750;
  gap: 6px;
  margin-top: 13px;
  padding: 13px 0 0;
}
.admin-card-link .lucide { height: 14px; width: 14px; }
.admin-plain-button { background: transparent; border: 0; color: var(--admin-accent); cursor: pointer; font-size: .67rem; font-weight: 750; }
.overview-recent-users { margin-top: 12px; }
.overview-recent-users > button {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--admin-border);
  color: var(--admin-text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px 1fr auto 14px;
  padding: 10px 0;
  text-align: left;
  width: 100%;
}
.overview-recent-users > button:hover b { color: var(--admin-accent); }
.overview-recent-users .user-avatar { border-radius: 9px; height: 34px; width: 34px; }
.overview-recent-users button b,.overview-recent-users button small { display: block; }
.overview-recent-users button b { font-size: .68rem; }
.overview-recent-users button small { color: var(--admin-muted); font-size: .6rem; margin-top: 3px; }
.overview-user-time { color: #8b93a5; font-size: .58rem; }
.overview-recent-users .lucide { color: #a1a8b6; height: 13px; width: 13px; }
.admin-view > .admin-card + .admin-card,.admin-view > .admin-card + .admin-two-column { margin-top: 14px; }
.user-list-header {
  border-bottom: 1px solid var(--admin-border);
  color: #8a93a5;
  display: grid;
  font-size: .59rem;
  font-weight: 800;
  gap: 12px;
  grid-template-columns: minmax(220px,.9fr) minmax(260px,1.5fr) auto minmax(170px,auto);
  letter-spacing: .06em;
  margin-top: 18px;
  padding: 0 2px 9px 50px;
  text-transform: uppercase;
}
.admin-page .user-list { margin-top: 0; }
.admin-page .user-row {
  gap: 12px;
  grid-template-columns: 38px minmax(170px,.9fr) minmax(250px,1.5fr) auto minmax(170px,auto);
  min-height: 86px;
  padding: 13px 2px;
}
.admin-page .user-identity b { font-size: .75rem; }
.admin-page .user-meta b { color: #414b5e; }
.admin-page .user-meta small { line-height: 1.3; }
.admin-page .user-actions button {
  align-items: center;
  border: 1px solid #e7eaf0;
  display: inline-flex;
  gap: 4px;
}
.admin-page .user-actions button .lucide { height: 13px; width: 13px; }
.admin-page .admin-two-column { align-items: start; grid-template-columns: 1fr 1fr; }
.admin-page .admin-two-column > .admin-card { height: 100%; }
.admin-page .google-card form { display: grid; grid-template-columns: 1fr 1fr; }
.admin-page .google-card form > label:first-child,.admin-page .google-card form .redirect-box,.admin-page .google-card form > button,.admin-page .google-card form > p { grid-column: 1/-1; }
.admin-page .google-card form .admin-check { grid-column: 1/-1; }
.admin-page .hubflix-admin-summary {
  background: #f7f9fc;
  border: 1px solid #e9edf4;
  margin: 0 0 14px;
}
.admin-page .hubflix-admin-summary > span {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px 1fr;
}
.admin-page .hubflix-admin-summary > span small { grid-column: 2; margin-top: -7px; }
.admin-page .hubflix-admin-movie { border-color: var(--admin-border); min-height: 76px; }
.admin-ai-layout { align-items: start; grid-template-columns: minmax(0,1fr) 310px; margin-top: 0; }
.admin-page .ai-policy-card { background: #fff; }
.ai-model-guide { position: sticky; top: 96px; }
.ai-model-guide > p { color: var(--admin-muted); line-height: 1.55; margin: 15px 0 0; }
.ai-model-summary { display: grid; gap: 8px; margin-top: 16px; }
.ai-model-summary > span {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e9edf3;
  border-radius: 10px;
  display: grid;
  gap: 9px;
  grid-template-columns: 32px 1fr auto;
  padding: 10px;
}
.ai-model-summary > span > .lucide { color: var(--admin-accent); height: 18px; width: 18px; }
.ai-model-summary b,.ai-model-summary small { display: block; }
.ai-model-summary b { font-size: .68rem; }
.ai-model-summary small { color: var(--admin-muted); font-size: .58rem; margin-top: 3px; }
.ai-model-summary em {
  color: #a05337;
  font-size: .56rem;
  font-style: normal;
  font-weight: 750;
}
.ai-model-summary em.online { color: #16805d; }
.admin-page .api-card {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px,.9fr) minmax(280px,1.2fr);
}
.api-card .endpoint-row { grid-column: 2; grid-row: 1; }
.api-card .api-actions { display: flex; gap: 8px; grid-column: 2; }
.api-card .secondary-button.inline-button { color: #3b4658; }
.admin-page .runtime-card { margin-top: 0; }
.admin-page .runtime-metrics { grid-template-columns: repeat(4,1fr); }
.security-grid { margin-top: 0; }
.security-guidance ul { display: grid; gap: 0; list-style: none; margin: 12px 0 0; padding: 0; }
.security-guidance li {
  align-items: flex-start;
  border-top: 1px solid var(--admin-border);
  display: flex;
  gap: 10px;
  padding: 12px 0;
}
.security-guidance li > .lucide { color: #15936a; height: 18px; margin-top: 1px; width: 18px; }
.security-guidance li b,.security-guidance li small { display: block; }
.security-guidance li b { font-size: .7rem; }
.security-guidance li small { color: var(--admin-muted); font-size: .62rem; line-height: 1.4; margin-top: 3px; }
.admin-sidebar-scrim { display: none; }

@media (max-width: 1180px) {
  .admin-sidebar { width: 230px; }
  .admin-workspace { padding-left: 230px; }
  .admin-topbar { grid-template-columns: minmax(150px,.6fr) minmax(220px,1fr) auto; padding-inline: 20px; }
  .admin-profile b,.admin-last-update { display: none; }
  .admin-page .stats-grid { grid-template-columns: repeat(3,1fr); }
  .admin-action-grid { grid-template-columns: 1fr 1fr; }
  .admin-page .user-list-header { display: none; }
  .admin-page .user-row { grid-template-columns: 38px minmax(150px,.8fr) minmax(210px,1.2fr) auto; }
  .admin-page .user-row .user-actions { grid-column: 2/-1; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .admin-sidebar {
    box-shadow: 18px 0 60px rgba(3,8,20,.3);
    transform: translateX(-105%);
    transition: transform .22s ease;
    width: min(290px,88vw);
  }
  .admin-sidebar-close,.admin-menu-button { display: flex; }
  .admin-sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-sidebar-open .admin-sidebar-scrim {
    background: rgba(8,13,25,.48);
    border: 0;
    display: block;
    inset: 0;
    position: fixed;
    z-index: 35;
  }
  .admin-workspace { padding-left: 0; }
  .admin-topbar { grid-template-columns: auto 1fr auto; }
  .admin-topbar-title > span { display: none; }
  .admin-command { grid-column: 2; }
  .admin-main { padding-inline: 20px; }
  .admin-overview-grid,.admin-ai-layout { grid-template-columns: 1fr; }
  .ai-model-guide { position: static; }
  .admin-page .user-row { grid-template-columns: 38px 1fr auto; }
  .admin-page .user-row .user-meta { grid-column: 2/-1; }
  .admin-page .user-row .user-actions { grid-column: 2/-1; }
  .admin-page .runtime-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .admin-topbar {
    gap: 8px;
    grid-template-columns: 38px minmax(0,1fr) auto;
    min-height: 64px;
    padding: 9px 12px;
  }
  .admin-topbar-actions .admin-topbar-icon[href="/docs"],.admin-profile,.admin-command kbd { display: none; }
  .admin-command input { font-size: 16px; height: 40px; padding-right: 10px; }
  .admin-main { padding: 22px 12px 48px; }
  .admin-page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .admin-page-heading .primary-button,.admin-page-heading .secondary-button { width: 100% !important; }
  .admin-page-heading h1 { font-size: 1.55rem; }
  .admin-page .stats-grid { gap: 8px; grid-template-columns: 1fr 1fr; }
  .admin-page .stats-grid article { min-height: 116px; padding: 14px; }
  .admin-page .stats-grid article:last-child { grid-column: 1/-1; }
  .admin-action-grid { grid-template-columns: 1fr; }
  .admin-action-grid > button { min-height: 70px; }
  .admin-overview-grid,.admin-two-column { grid-template-columns: 1fr; }
  .overview-service-list { grid-template-columns: 1fr; }
  .overview-health-metrics { grid-template-columns: 1fr; padding: 0 12px; }
  .overview-health-metrics > span { border-bottom: 1px solid #e4e8ef; border-right: 0; padding: 10px 0; }
  .overview-health-metrics > span:last-child { border-bottom: 0; }
  .overview-user-time { display: none; }
  .overview-recent-users > button { grid-template-columns: 36px 1fr 14px; }
  .admin-page .admin-card { border-radius: 12px; padding: 16px; }
  .admin-page .card-heading { align-items: flex-start; flex-direction: column; }
  .admin-page .google-card form { grid-template-columns: 1fr; }
  .admin-page .google-card form > * { grid-column: auto !important; }
  .admin-page .user-row { grid-template-columns: 38px 1fr auto; }
  .admin-page .user-row .user-meta { grid-column: 1/-1; }
  .admin-page .user-row .user-actions { grid-column: 1/-1; }
  .admin-page .user-actions { justify-content: flex-start; }
  .admin-page .user-actions button { flex: 1 1 auto; justify-content: center; }
  .admin-page .policy-options,.admin-page .runtime-metrics { grid-template-columns: 1fr; }
  .admin-page .policy-actions { align-items: stretch; flex-direction: column; }
  .admin-page .api-card { display: flex; flex-direction: column; }
  .api-card .endpoint-row,.api-card .api-actions { width: 100%; }
  .api-card .api-actions { flex-direction: column; }
  .api-card .api-actions a { justify-content: center; }
  .admin-page .hubflix-admin-summary { align-items: stretch; }
}

/* HubADM Biblioteca */
body.library-page {
  --library-ink: #241f19;
  --library-muted: #746b60;
  --library-paper: #f6f1e8;
  --library-card: #fffdf9;
  --library-line: rgba(77,62,43,.14);
  --library-accent: #2c66d5;
  background:
    radial-gradient(circle at 12% 6%,rgba(205,173,115,.14),transparent 30%),
    linear-gradient(180deg,#f9f6ef 0,#f3eee5 100%);
  color: var(--library-ink);
  min-height: 100dvh;
}
.library-page button,.library-page input,.library-page select,.library-page textarea { font: inherit; }
.library-page button { cursor: pointer; }
.library-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(250,248,243,.88);
  border-bottom: 1px solid var(--library-line);
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  height: 72px;
  padding: 0 clamp(18px,4vw,72px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.library-brand { align-items: center; color: #161b25; display: inline-flex; font-size: 1.35rem; font-weight: 800; gap: 8px; letter-spacing: -.04em; text-decoration: none; }
.library-brand img { display: block; height: 42px; object-fit: contain; width: 42px; }
.library-brand strong { color: #1768e5; font-weight: 800; }
.library-nav { align-items: center; display: flex; gap: 6px; justify-content: center; }
.library-nav a {
  border-radius: 999px;
  color: #655d54;
  font-size: .82rem;
  font-weight: 750;
  padding: 10px 15px;
  text-decoration: none;
}
.library-nav a:hover,.library-nav a.active { background: #fff; box-shadow: 0 5px 18px rgba(60,45,28,.08); color: #1f55b4; }
.library-header-actions { align-items: center; display: flex; gap: 10px; justify-content: flex-end; }
.library-icon-button,.library-avatar {
  align-items: center; background: #fff; border: 1px solid var(--library-line); border-radius: 50%; display: flex; height: 42px; justify-content: center; width: 42px;
}
.library-icon-button { color: #47413a; }
.library-avatar { background: #212d44; color: #fff; font-size: .82rem; font-weight: 850; }
.library-main { margin: auto; max-width: 1500px; padding: clamp(32px,5vw,76px) clamp(18px,5vw,76px) 90px; }
.library-welcome { align-items: end; display: grid; gap: 40px; grid-template-columns: 1fr minmax(330px,430px); }
.library-kicker,.library-section-heading span {
  color: #936d2d; display: block; font-size: .66rem; font-weight: 900; letter-spacing: .18em; margin-bottom: 12px;
}
.library-welcome h1 { font-family: Georgia,"Times New Roman",serif; font-size: clamp(2.6rem,5.4vw,5.6rem); font-weight: 500; letter-spacing: -.045em; line-height: .96; margin: 0; }
.library-welcome > div > p { color: var(--library-muted); font-size: 1.02rem; line-height: 1.7; margin: 24px 0 0; max-width: 680px; }
.library-ai-launch {
  align-items: center; background: #202c43; border: 0; border-radius: 22px; box-shadow: 0 24px 50px rgba(28,40,61,.18); color: #fff; display: grid; gap: 15px; grid-template-columns: 48px 1fr 22px; padding: 20px; text-align: left;
}
.library-ai-launch > span:first-child { align-items: center; background: linear-gradient(145deg,#477bed,#8755e8); border-radius: 14px; display: flex; height: 48px; justify-content: center; width: 48px; }
.library-ai-launch b,.library-ai-launch small { display: block; }
.library-ai-launch b { font-size: .94rem; }
.library-ai-launch small { color: #b8c3d6; font-size: .72rem; margin-top: 5px; }
.library-discovery {
  align-items: end; background: rgba(255,255,255,.72); border: 1px solid var(--library-line); border-radius: 20px; box-shadow: 0 16px 50px rgba(70,54,33,.06); display: grid; gap: 10px; grid-template-columns: minmax(260px,1fr) repeat(3,minmax(130px,180px)) 46px; margin: 52px 0 38px; padding: 12px;
}
.library-discovery label { display: flex; flex-direction: column; gap: 5px; }
.library-discovery label > span { color: #857b6e; font-size: .58rem; font-weight: 850; letter-spacing: .08em; padding-left: 10px; text-transform: uppercase; }
.library-discovery input,.library-discovery select {
  background: #f6f3ed; border: 0; border-radius: 12px; color: #2e2923; height: 46px; outline: 0; padding: 0 13px;
}
.library-search { align-items: center!important; background: #f6f3ed; border-radius: 12px; flex-direction: row!important; padding: 0 14px; }
.library-search input { background: transparent; flex: 1; padding: 0 4px; }
.library-search .lucide { color: #8c8378; height: 18px; width: 18px; }
.library-discovery > button { background: transparent; border: 0; border-radius: 12px; color: #7d7469; height: 46px; }
.library-discovery > button span { display: none; }
.library-feature {
  align-items: center; background: linear-gradient(125deg,#1d2a40,#303c50); border-radius: 30px; box-shadow: 0 28px 70px rgba(25,35,52,.2); color: #fff; display: grid; gap: clamp(30px,5vw,80px); grid-template-columns: minmax(190px,280px) 1fr; margin: 0 0 56px; min-height: 390px; overflow: hidden; padding: clamp(28px,4vw,54px);
}
.library-feature-cover {
  aspect-ratio: 2/3; background: linear-gradient(145deg,#9d7243,#553b2a); background-position: center; background-size: cover; border-radius: 8px 14px 14px 8px; box-shadow: 16px 22px 40px rgba(0,0,0,.38),inset -8px 0 10px rgba(0,0,0,.16); max-height: 335px; position: relative;
}
.library-feature-cover.fallback::after { align-items: center; content: attr(data-initials); display: flex; font-family: Georgia,serif; font-size: 3.3rem; inset: 0; justify-content: center; position: absolute; }
.library-feature-copy { max-width: 790px; }
.library-feature-copy .library-kicker { color: #e3b55e; }
.library-feature-copy h2 { font-family: Georgia,serif; font-size: clamp(2.3rem,4vw,4.4rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; margin: 0; }
.library-feature-author { color: #d6af70!important; font-size: .95rem!important; font-weight: 750; margin: 12px 0 20px!important; }
.library-feature-copy > p { color: #d2d8e1; font-size: .92rem; line-height: 1.7; max-width: 680px; }
.library-feature-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.library-feature-meta span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #e5e8ed; font-size: .68rem; font-weight: 750; padding: 7px 10px; }
.library-primary { align-items: center; background: #2c66d5; border: 0; border-radius: 12px; color: #fff; display: inline-flex; font-weight: 800; gap: 9px; justify-content: center; min-height: 44px; padding: 0 18px; }
.library-feature .library-primary { background: #fff; color: #1e2939; }
.library-section { margin: 50px 0; }
.library-section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 20px; }
.library-section-heading span { margin-bottom: 7px; }
.library-section-heading h2 { font-family: Georgia,serif; font-size: clamp(1.7rem,2.4vw,2.5rem); font-weight: 500; margin: 0; }
.library-section-heading > small { color: var(--library-muted); }
.library-shelf-stage { position: relative; }
.library-shelf-stage::after { background: linear-gradient(180deg,#9c7142,#684529); border-radius: 2px; bottom: -10px; box-shadow: 0 10px 14px rgba(62,39,20,.24); content: ""; height: 12px; left: -8px; position: absolute; right: -8px; }
.library-shelf { display: grid; gap: clamp(18px,2.2vw,34px); grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); }
.library-book { background: transparent; border: 0; color: inherit; min-width: 0; padding: 0; text-align: left; }
.library-book-cover {
  aspect-ratio: 2/3; background: linear-gradient(145deg,#315a7d,#1f324a); background-position: center; background-size: cover; border-radius: 5px 11px 11px 5px; box-shadow: 9px 12px 22px rgba(51,39,27,.22),inset -7px 0 9px rgba(0,0,0,.13); color: #fff; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 18px; position: relative; transition: transform .2s ease,box-shadow .2s ease;
}
.library-book:nth-child(5n+2) .library-book-cover:not(.has-cover) { background: linear-gradient(145deg,#7b3b3a,#492225); }
.library-book:nth-child(5n+3) .library-book-cover:not(.has-cover) { background: linear-gradient(145deg,#547347,#283d2a); }
.library-book:nth-child(5n+4) .library-book-cover:not(.has-cover) { background: linear-gradient(145deg,#765f91,#3f3152); }
.library-book:nth-child(5n+5) .library-book-cover:not(.has-cover) { background: linear-gradient(145deg,#a16f35,#5c3d1f); }
.library-book:hover .library-book-cover,.library-book:focus-visible .library-book-cover { box-shadow: 12px 18px 30px rgba(51,39,27,.3); transform: translateY(-8px) rotateY(-2deg); }
.library-book-cover > b { font-family: Georgia,serif; font-size: 2rem; letter-spacing: .06em; }
.library-book-cover > small { color: rgba(255,255,255,.72); font-size: .62rem; margin-top: 10px; }
.library-book-cover > em { background: rgba(10,12,18,.78); border-radius: 5px; bottom: 9px; font-size: .55rem; font-style: normal; font-weight: 850; left: 9px; letter-spacing: .06em; padding: 5px 6px; position: absolute; }
.library-book-info { display: block; padding: 14px 4px 4px; }
.library-book-info > b,.library-book-info > small,.library-book-info > em { display: block; }
.library-book-info > b { font-family: Georgia,serif; font-size: .95rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-book-info > small { color: #756c61; font-size: .66rem; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-book-info > em { color: #91877b; font-size: .58rem; font-style: normal; margin-top: 7px; }
.library-book-progress { background: #ddd5c9; border-radius: 99px; display: block; height: 4px; margin-top: 10px; overflow: hidden; }
.library-book-progress i { background: #2c66d5; display: block; height: 100%; }
.library-book.ai-match .library-book-cover { box-shadow: 0 0 0 4px #5485ef,10px 16px 28px rgba(44,102,213,.3); }
.library-book.compact { align-items: center; background: rgba(255,255,255,.68); border: 1px solid var(--library-line); border-radius: 16px; display: grid; gap: 16px; grid-template-columns: 70px 1fr; padding: 10px; }
.library-book.compact .library-book-cover { aspect-ratio: 2/3; min-height: 96px; padding: 8px; }
.library-book.compact .library-book-cover > b { font-size: 1rem; }
.library-book.compact .library-book-cover > small { display: none; }
.library-book.compact .library-book-cover > em { font-size: .45rem; }
#continueShelf { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); }
.library-empty { color: #80766b; padding: 80px 20px; text-align: center; }
.library-empty .lucide { height: 46px; width: 46px; }
.library-empty h3 { color: #322d27; font-family: Georgia,serif; font-size: 1.5rem; margin: 15px 0 5px; }
.library-empty p { margin: 0; }
.library-ai-dialog,.library-note-dialog,.library-admin-dialog,.library-reader-dialog { background: transparent; border: 0; max-height: none; max-width: none; padding: 0; }
.library-ai-dialog::backdrop,.library-note-dialog::backdrop,.library-admin-dialog::backdrop { backdrop-filter: blur(8px); background: rgba(28,25,22,.52); }
.library-ai-dialog > article { background: #f9f7f2; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.25); display: flex; flex-direction: column; height: min(720px,82dvh); overflow: hidden; width: min(720px,92vw); }
.library-ai-dialog header { align-items: center; background: #202c43; color: #fff; display: grid; gap: 14px; grid-template-columns: 44px 1fr 40px; padding: 22px 24px; }
.library-ai-dialog header > span { align-items: center; background: linear-gradient(145deg,#477bed,#8755e8); border-radius: 12px; display: flex; height: 44px; justify-content: center; width: 44px; }
.library-ai-dialog header small,.library-ai-dialog header h2 { display: block; margin: 0; }
.library-ai-dialog header small { color: #aab8ce; font-size: .58rem; font-weight: 900; letter-spacing: .14em; }
.library-ai-dialog header h2 { font-family: Georgia,serif; font-size: 1.45rem; font-weight: 500; margin-top: 4px; }
.library-ai-dialog header button,.library-note-dialog header button,.library-admin-dialog > article > header button { background: transparent; border: 0; color: inherit; }
.library-ai-conversation { display: flex; flex: 1; flex-direction: column; gap: 14px; overflow: auto; padding: 28px; }
.library-ai-conversation > p { color: #766e63; line-height: 1.7; margin: auto 0; text-align: center; }
.library-ai-user { align-self: flex-end; background: #e8e4dc; border-radius: 18px 18px 4px 18px; max-width: 78%; padding: 12px 15px; }
.library-ai-answer { align-self: flex-start; background: #fff; border: 1px solid var(--library-line); border-radius: 4px 18px 18px 18px; line-height: 1.65; max-width: 88%; padding: 16px; }
.library-ai-error { color: #b13942; }
.library-ai-thinking { align-items: center; align-self: flex-start; display: flex; gap: 4px; padding: 14px; }
.library-ai-thinking span { animation: libraryPulse 1s infinite alternate; background: #6c77e6; border-radius: 50%; height: 7px; width: 7px; }
.library-ai-thinking span:nth-child(2) { animation-delay: .2s; }.library-ai-thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes libraryPulse { to { opacity: .25; transform: translateY(-3px); } }
.library-ai-dialog form { align-items: end; background: #fff; border-top: 1px solid var(--library-line); display: flex; gap: 10px; padding: 16px; }
.library-ai-dialog textarea { border: 1px solid var(--library-line); border-radius: 14px; flex: 1; outline: 0; padding: 13px; resize: none; }
.library-ai-dialog form button { align-items: center; background: #2c66d5; border: 0; border-radius: 12px; color: #fff; display: flex; height: 44px; justify-content: center; width: 44px; }
.library-reader-dialog { height: 100dvh; width: 100vw; }
.library-reader { background: #ece7de; display: flex; flex-direction: column; height: 100dvh; width: 100vw; }
.library-reader-topbar { align-items: center; background: rgba(255,253,249,.96); border-bottom: 1px solid rgba(60,50,38,.12); display: grid; gap: 14px; grid-template-columns: 44px minmax(140px,1fr) minmax(160px,280px) auto; min-height: 70px; padding: 9px 18px; z-index: 10; }
.library-reader-topbar button { align-items: center; background: transparent; border: 0; border-radius: 9px; color: #56504a; display: flex; height: 40px; justify-content: center; min-width: 40px; }
.library-reader-topbar button:hover,.library-reader-topbar button.active { background: #e9e4db; color: #1f5fc9; }
.library-reader-identity b,.library-reader-identity small { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-reader-identity b { font-family: Georgia,serif; font-size: .94rem; }
.library-reader-identity small { color: #81786e; font-size: .61rem; margin-top: 4px; }
.library-reader-progress span { color: #756d63; display: block; font-size: .6rem; margin-bottom: 5px; text-align: right; }
.library-reader-progress span b { color: #245fc7; }
.library-reader-progress > div { background: #ddd6ca; border-radius: 99px; height: 4px; overflow: hidden; }
.library-reader-progress i { background: #2c66d5; display: block; height: 100%; transition: width .2s; width: 0; }
.library-reader-actions { align-items: center; display: flex; gap: 2px; }
.library-reader-actions button { position: relative; }
.library-reader-actions button b { align-items: center; background: #2c66d5; border-radius: 50%; color: #fff; display: flex; font-size: .5rem; height: 16px; justify-content: center; position: absolute; right: 0; top: 0; width: 16px; }
.library-reader-body { display: flex; flex: 1; min-height: 0; position: relative; }
.library-reader-toc { background: #f8f5ef; border-right: 1px solid rgba(60,50,38,.12); flex: 0 0 280px; overflow: auto; padding: 24px 14px; }
.library-reader-toc > div { padding: 0 10px 15px; }
.library-reader-toc small { color: #8a7450; font-size: .56rem; font-weight: 900; letter-spacing: .15em; }
.library-reader-toc h3 { font-family: Georgia,serif; font-size: 1.35rem; font-weight: 500; margin: 5px 0; }
.library-reader-toc nav { display: flex; flex-direction: column; gap: 3px; }
.library-reader-toc nav button { align-items: center; background: transparent; border: 0; border-radius: 10px; color: #645d55; display: grid; gap: 10px; grid-template-columns: 30px 1fr; padding: 10px; text-align: left; }
.library-reader-toc nav button span { color: #a39789; font-size: .55rem; font-weight: 850; }
.library-reader-toc nav button b { font-size: .68rem; line-height: 1.35; }
.library-reader-toc nav button.active { background: #e8e1d4; color: #204f9f; }
.library-reader-canvas { display: flex; flex: 1; flex-direction: column; min-width: 0; position: relative; }
.library-reader-canvas iframe { background: #fffdf8; border: 0; flex: 1; width: 100%; }
.library-reader-loading { align-items: center; background: #ede8df; display: flex; flex-direction: column; inset: 0 0 48px; justify-content: center; position: absolute; z-index: 4; }
.library-reader-loading span,.library-summary-loading span { animation: flixspin .8s linear infinite; border: 3px solid #d1c8bb; border-radius: 50%; border-top-color: #2c66d5; height: 32px; width: 32px; }
.library-reader-loading p { color: #756c61; font-size: .75rem; }
.library-reader-page-nav { align-items: center; background: #f8f5ef; border-top: 1px solid rgba(60,50,38,.12); display: flex; height: 48px; justify-content: space-between; padding: 0 14px; }
.library-reader-page-nav button { align-items: center; background: transparent; border: 0; color: #4e4943; display: flex; font-size: .7rem; font-weight: 750; gap: 5px; }
.library-reader-page-nav button:disabled { opacity: .28; }
.library-reader-page-nav > span { color: #82796e; font-size: .63rem; }
.library-reader-panel { background: #fbf9f5; border-left: 1px solid rgba(60,50,38,.12); box-shadow: -16px 0 40px rgba(40,31,20,.08); display: flex; flex-direction: column; flex: 0 0 0; overflow: hidden; transition: flex-basis .25s; }
.library-reader-panel.open { flex-basis: 380px; }
.library-reader-panel header { align-items: center; border-bottom: 1px solid var(--library-line); display: flex; justify-content: space-between; min-width: 380px; padding: 20px; }
.library-reader-panel header small { color: #8a7450; font-size: .54rem; font-weight: 900; letter-spacing: .14em; }
.library-reader-panel header h3 { font-family: Georgia,serif; font-size: 1.3rem; font-weight: 500; margin: 4px 0 0; }
.library-reader-panel header button { background: transparent; border: 0; }
.library-reader-panel > div { min-width: 380px; overflow: auto; padding: 18px; }
.library-note-card { background: #fff; border-left: 4px solid #e9c348; border-radius: 4px 12px 12px 4px; box-shadow: 0 6px 20px rgba(45,35,24,.06); margin-bottom: 12px; padding: 14px; }
.library-note-card.green { border-color: #65b583; }.library-note-card.blue { border-color: #5c92df; }.library-note-card.pink { border-color: #d878a1; }.library-note-card.violet { border-color: #886ed7; }
.library-note-card blockquote { color: #574f46; font-family: Georgia,serif; font-size: .79rem; line-height: 1.55; margin: 0; }
.library-note-card p { font-size: .72rem; line-height: 1.55; }
.library-note-card footer { align-items: center; display: flex; justify-content: space-between; }
.library-note-card footer small { color: #9a9085; }
.library-note-card footer button { background: transparent; border: 0; color: #9a9085; }
.library-panel-empty { color: #877e73; padding: 50px 20px; text-align: center; }
.library-panel-empty .lucide { height: 34px; width: 34px; }
.library-panel-empty b { color: #3c3731; display: block; margin-top: 12px; }
.library-panel-empty p { font-size: .72rem; line-height: 1.55; }
.library-summary-loading { align-items: center; display: flex; flex-direction: column; padding: 65px 20px; text-align: center; }
.library-summary-loading b { margin-top: 16px; }.library-summary-loading p { color: #82796e; font-size: .7rem; }
.library-summary > span { color: #8c744a; font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
.library-summary > div { font-family: Georgia,serif; font-size: .85rem; line-height: 1.75; margin: 14px 0 22px; }
.library-summary > small { align-items: center; background: #eef6f0; border-radius: 9px; color: #477357; display: flex; font-size: .58rem; gap: 7px; padding: 10px; }
.library-comic { align-items: flex-start; background: #171719; display: flex; flex: 1; justify-content: center; min-height: 0; overflow: auto; position: relative; }
.library-comic > img { display: block; height: auto; max-width: min(100%,1100px); object-fit: contain; }
.library-comic-lens { background-color: #fff; background-repeat: no-repeat; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 12px 38px rgba(0,0,0,.45); display: none; height: 210px; pointer-events: none; position: absolute; transform: translate(-50%,-50%); width: 210px; z-index: 5; }
.library-comic.magnifier-active .library-comic-lens { display: block; }
.library-note-dialog form { background: #fffdf9; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.28); padding: 24px; width: min(560px,92vw); }
.library-note-dialog header { align-items: center; display: flex; justify-content: space-between; }
.library-note-dialog header small { color: #8c744a; font-size: .58rem; font-weight: 900; letter-spacing: .13em; }
.library-note-dialog header h2 { font-family: Georgia,serif; font-weight: 500; margin: 4px 0; }
.library-note-dialog blockquote { background: #f2eee7; border-left: 4px solid #e5bd43; border-radius: 4px 12px 12px 4px; color: #62594f; font-family: Georgia,serif; line-height: 1.55; margin: 18px 0; max-height: 150px; overflow: auto; padding: 14px; }
.library-note-dialog label { color: #655d54; display: block; font-size: .7rem; font-weight: 750; margin: 13px 0; }
.library-note-dialog textarea { border: 1px solid var(--library-line); border-radius: 12px; display: block; margin-top: 7px; outline: 0; padding: 12px; resize: vertical; width: 100%; }
.library-note-colors { display: flex; gap: 9px; margin-top: 8px; }
.library-note-colors input { height: 28px; margin: 0 -37px 0 0; opacity: 0; width: 28px; z-index: 2; }
.library-note-colors i { border: 3px solid transparent; border-radius: 50%; height: 28px; width: 28px; }
.library-note-colors input:checked + i { border-color: #293753; }
.library-note-colors .yellow { background: #f4d55e; }.library-note-colors .green { background: #77c692; }.library-note-colors .blue { background: #76a8ee; }.library-note-colors .pink { background: #e78bae; }.library-note-colors .violet { background: #987fe3; }
.library-admin-dialog > article { background: #f7f5f1; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.28); display: flex; flex-direction: column; height: min(900px,92dvh); overflow: hidden; width: min(1250px,95vw); }
.library-admin-dialog > article > header { align-items: center; background: #202c43; color: #fff; display: flex; justify-content: space-between; padding: 20px 24px; }
.library-admin-dialog > article > header small { color: #9fafc8; font-size: .57rem; font-weight: 900; letter-spacing: .14em; }
.library-admin-dialog > article > header h2 { font-family: Georgia,serif; font-size: 1.55rem; font-weight: 500; margin: 4px 0; }
.library-admin-dialog > article > header p { color: #b5c0d1; font-size: .68rem; margin: 0; }
.library-admin-layout { display: grid; flex: 1; grid-template-columns: 330px 1fr; min-height: 0; }
.library-admin-list { background: #eeebe5; border-right: 1px solid var(--library-line); overflow: auto; padding: 16px; }
.library-admin-list-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 12px; }
.library-admin-list-heading h3 { font-family: Georgia,serif; font-weight: 500; }
.library-admin-list-heading button { background: #2c66d5; border: 0; border-radius: 9px; color: #fff; font-size: .65rem; font-weight: 750; padding: 9px 10px; }
#libraryAdminBooks { display: flex; flex-direction: column; gap: 5px; }
#libraryAdminBooks > button { align-items: center; background: transparent; border: 0; border-radius: 10px; color: #403a34; display: grid; gap: 10px; grid-template-columns: 40px 1fr auto auto; padding: 8px; text-align: left; }
#libraryAdminBooks > button:hover { background: #fff; }
.library-admin-mini-cover { align-items: center; aspect-ratio: 2/3; background: #344d6d center/cover; border-radius: 3px; color: #fff; display: flex; font-size: .6rem; font-weight: 800; justify-content: center; width: 38px; }
#libraryAdminBooks b,#libraryAdminBooks small { display: block; }
#libraryAdminBooks b { font-size: .71rem; }#libraryAdminBooks small { color: #82796f; font-size: .57rem; margin-top: 3px; }
#libraryAdminBooks em { background: #e8dcd5; border-radius: 5px; color: #9b554d; font-size: .5rem; font-style: normal; padding: 4px; }
.library-admin-empty { color: #8a8176; padding: 50px 15px; text-align: center; }
.library-book-form { overflow: auto; padding: 24px; }
.library-book-form-empty { color: #837b71; padding: 120px 20px; text-align: center; }
.library-book-form-empty .lucide { height: 46px; width: 46px; }.library-book-form-empty h3 { color: #3a3530; font-family: Georgia,serif; font-size: 1.5rem; font-weight: 500; }
.library-source-section { align-items: center; background: #fff; border: 1px solid var(--library-line); border-radius: 14px; display: flex; justify-content: space-between; padding: 14px; }
.library-source-section small,.library-source-section b { display: block; }.library-source-section small { color: #8c744a; font-size: .52rem; font-weight: 900; letter-spacing: .12em; }.library-source-section b { font-size: .72rem; margin-top: 4px; }
.library-source-section button { background: #f0ede7; border: 0; border-radius: 8px; font-size: .64rem; font-weight: 750; padding: 9px; }
.library-source-browser { background: #eae6df; border-radius: 12px; display: none; margin-top: 8px; padding: 10px; }
.library-source-browser.open { display: block; }
.library-source-browser > div:first-child { display: flex; gap: 8px; }
.library-source-browser select { background: #fff; border: 1px solid #c9c1b6; border-radius: 8px; color: #28231e; color-scheme: light; flex: 1; height: 38px; padding: 0 36px 0 10px; }
.library-source-browser select option { background: #fff; color: #28231e; }
.library-source-browser > div:first-child button { background: #fff; border: 0; border-radius: 8px; }
#libraryFileList { display: grid; gap: 5px; max-height: 220px; overflow: auto; padding-top: 8px; }
#libraryFileList > button { align-items: center; background: #fff; border: 0; border-radius: 8px; display: grid; gap: 9px; grid-template-columns: 28px 1fr auto; padding: 8px; text-align: left; }
#libraryFileList b,#libraryFileList small { display: block; }#libraryFileList b { font-size: .66rem; }#libraryFileList small { color: #8a8177; font-size: .54rem; margin-top: 2px; }
.library-form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2,1fr); margin-top: 18px; }
.library-form-grid .wide { grid-column: 1/-1; }
.library-form-grid label,.library-cover-editor label { color: #625b53; font-size: .62rem; font-weight: 750; }
.library-form-grid input,.library-form-grid textarea,.library-cover-editor input[type=url] { background: #fff; border: 1px solid var(--library-line); border-radius: 9px; color: #28231e; color-scheme: light; display: block; margin-top: 5px; outline: 0; padding: 10px; width: 100%; }
.library-cover-editor { background: #ece8e1; border-radius: 14px; display: grid; gap: 20px; grid-template-columns: 150px 1fr; margin-top: 18px; padding: 16px; }
.library-cover-preview { align-items: center; aspect-ratio: 2/3; background: linear-gradient(145deg,#526c88,#273b53) center/cover; border-radius: 5px 10px 10px 5px; color: #fff; display: flex; font-size: .62rem; justify-content: center; text-align: center; }
.library-cover-preview span { align-items: center; display: flex; flex-direction: column; gap: 7px; }
.library-cover-editor > div:last-child { display: flex; flex-direction: column; gap: 10px; }
.library-cover-editor output { float: right; }
.library-cover-editor input[type=range] { accent-color: #2c66d5; display: block; margin-top: 6px; width: 100%; }
.library-cover-upload { align-items: center; background: #fff; border: 1px dashed #aaa094; border-radius: 9px; display: flex!important; gap: 7px; justify-content: center; padding: 10px; }
.library-cover-upload input { display: none; }
.library-form-options { background: #fff; border-radius: 10px; display: flex; gap: 18px; margin-top: 15px; padding: 12px; }
.library-form-options label { font-size: .63rem; font-weight: 700; }
.library-form-message { color: #8e584c; font-size: .63rem; min-height: 16px; }
.library-form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.library-form-actions .danger { background: #fff0ef; border: 1px solid #efcecb; border-radius: 10px; color: #ad433b; font-weight: 750; padding: 10px; }
.library-toast { background: #202c43; border-radius: 10px; bottom: 24px; color: #fff; font-size: .72rem; font-weight: 750; left: 50%; opacity: 0; padding: 12px 16px; pointer-events: none; position: fixed; transform: translate(-50%,15px); transition: .2s; z-index: 100; }
.library-toast.visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1000px) {
  .library-header { grid-template-columns: 160px 1fr auto; padding: 0 18px; }
  .library-discovery { grid-template-columns: 1fr repeat(3,130px) 42px; }
  .library-reader-toc { flex-basis: 230px; }
  .library-reader-panel { bottom: 0; flex-basis: auto!important; position: absolute; right: 0; top: 0; transform: translateX(105%); transition: transform .25s; width: min(380px,90vw); z-index: 12; }
  .library-reader-panel.open { transform: translateX(0); }
}
@media (max-width: 760px) {
  .library-header { backdrop-filter: none; grid-template-columns: 1fr auto; height: 62px; }
  .library-brand { font-size: 1.05rem; gap: 6px; }
  .library-brand img { height: 34px; width: 34px; }
  .library-nav { background: rgba(255,253,249,.96); border-top: 1px solid var(--library-line); bottom: 0; gap: 0; justify-content: space-around; left: 0; padding: 6px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); position: fixed; right: 0; top: auto; z-index: 50; }
  .library-nav a { font-size: .65rem; padding: 9px 10px; }
  .library-header-actions { grid-column: 2; }
  .library-main { padding: 30px 16px 100px; }
  .library-welcome { display: block; }
  .library-welcome h1 { font-size: 2.75rem; }
  .library-welcome > div > p { font-size: .9rem; }
  .library-ai-launch { margin-top: 26px; width: 100%; }
  .library-discovery { align-items: stretch; grid-template-columns: 1fr 1fr; margin-top: 30px; }
  .library-search { grid-column: 1/-1; }
  .library-discovery label:nth-of-type(4) { grid-column: 1/-1; }
  .library-discovery > button { align-items: center; display: flex; gap: 6px; grid-column: 1/-1; height: 34px; justify-content: center; }
  .library-discovery > button span { display: inline; font-size: .65rem; }
  .library-feature { gap: 20px; grid-template-columns: 105px 1fr; min-height: 0; padding: 20px; }
  .library-feature-cover { max-height: 180px; }
  .library-feature-copy h2 { font-size: 1.7rem; }
  .library-feature-copy > p:not(.library-feature-author),.library-feature-meta { display: none; }
  .library-feature .library-primary { font-size: .65rem; min-height: 38px; padding: 0 12px; }
  .library-shelf { gap: 17px 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .library-book-cover { padding: 8px; }
  .library-book-cover > b { font-size: 1.25rem; }
  .library-book-info > b { font-size: .76rem; }
  .library-book-info > small { font-size: .57rem; }
  #continueShelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  #continueShelf .library-book { flex: 0 0 260px; scroll-snap-align: start; }
  .library-reader-topbar { grid-template-columns: 38px 1fr auto; min-height: 62px; padding: 7px 9px; }
  .library-reader-progress { display: none; }
  .library-reader-actions { overflow-x: auto; }
  .library-reader-actions button { flex: 0 0 38px; }
  .library-reader-identity { display: none; }
  .library-reader-toc { bottom: 48px; box-shadow: 14px 0 35px rgba(0,0,0,.15); flex-basis: 0; left: 0; padding: 0; position: absolute; top: 0; transform: translateX(-110%); width: 82vw; z-index: 9; }
  .library-reader-canvas { width: 100%; }
  .library-reader-page-nav button span { display: none; }
  .library-admin-dialog > article { border-radius: 0; height: 100dvh; width: 100vw; }
  .library-admin-layout { display: block; overflow: auto; }
  .library-admin-list { border: 0; max-height: 240px; }
  .library-book-form { overflow: visible; }
  .library-cover-editor { grid-template-columns: 105px 1fr; }
}
@media (max-width: 430px) {
  .library-shelf { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .library-feature { grid-template-columns: 88px 1fr; }
  .library-feature-author { margin: 7px 0 12px!important; }
  .library-form-grid { grid-template-columns: 1fr; }
  .library-form-grid .wide { grid-column: auto; }
  .library-cover-editor { grid-template-columns: 1fr; }
  .library-cover-preview { margin: auto; width: 125px; }
}

/* HubFlix playback, carousel and media editor */
.hubflix-page .hubflix-hero {
  background-position: center,center,var(--hero-position,center),center;
  transition: background-image .45s ease,background-position .35s ease;
}
.hubflix-hero.slide-ready .hubflix-hero-content {
  animation: hubflix-slide-copy .45s ease both;
}
@keyframes hubflix-slide-copy {
  from { opacity: .35; transform: translateY(9px); }
}
.hubflix-hero-progress {
  background: #3778ff;
  border-radius: 999px;
  bottom: 58px;
  height: 3px;
  left: clamp(24px,5vw,84px);
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  width: min(240px,36vw);
  z-index: 3;
}
.hubflix-hero-progress.running { animation: hubflix-hero-progress 8s linear forwards; }
@keyframes hubflix-hero-progress { to { transform: scaleX(1); } }
.hubflix-hero-navigation {
  align-items: center;
  bottom: 94px;
  display: flex;
  gap: 10px;
  position: absolute;
  right: clamp(24px,5vw,84px);
  z-index: 8;
}
.hubflix-hero-navigation > button {
  align-items: center;
  background: rgba(8,10,15,.62);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.hubflix-hero-navigation > button:hover { background: rgba(52,112,246,.9); }
.hubflix-hero-navigation > button .lucide { height: 17px; width: 17px; }
#heroDots { align-items: center; display: flex; gap: 7px; }
#heroDots button {
  background: rgba(255,255,255,.42);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 5px;
  padding: 0;
  transition: width .2s,background .2s;
  width: 17px;
}
#heroDots button.active { background: #fff; width: 34px; }
.hubflix-details-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hubflix-trailer-button {
  align-items: center;
  background: #242936;
  border: 1px solid #343b4b;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 780;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
}
.hubflix-trailer-button:hover { background: #303747; }
.hubflix-trailer-button .lucide { color: #ff4f5e; height: 19px; width: 19px; }
.hubflix-trailer-dialog {
  background: transparent;
  border: 0;
  color: #fff;
  max-height: 100dvh;
  max-width: 100vw;
  padding: 0;
}
.hubflix-trailer-dialog::backdrop {
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(10px);
}
.hubflix-trailer-dialog > article {
  background: #0b0d12;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 30px 100px rgba(0,0,0,.8);
  overflow: hidden;
  width: min(1040px,94vw);
}
.hubflix-trailer-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 18px;
  position: relative;
}
.hubflix-trailer-heading span small,.hubflix-trailer-heading span b { display: block; }
.hubflix-trailer-heading span small { color: #6e9eff; font-size: .58rem; font-weight: 850; letter-spacing: .16em; }
.hubflix-trailer-heading span b { font-size: .84rem; margin-top: 3px; }
.hubflix-trailer-heading .hubflix-close { position: static; }
.hubflix-trailer-frame { aspect-ratio: 16/9; background: #000; }
.hubflix-trailer-frame iframe { border: 0; height: 100%; width: 100%; }
.hubflix-track-controls {
  align-items: center;
  display: flex;
  gap: 7px;
  margin-left: auto;
}
.hubflix-track-controls label {
  align-items: center;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px;
}
.hubflix-track-controls label > .lucide { height: 15px; width: 15px; }
.hubflix-track-controls label > span { color: #aeb7c7; font-size: .61rem; font-weight: 700; }
.hubflix-track-controls select {
  background: #151923;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: .66rem;
  max-width: 150px;
  outline: 0;
}
.hubflix-player-controls .hubflix-fullscreen { margin-left: 2px; }
.hubflix-player-controls .hubflix-player-mode {
  color: #d9deea;
  margin-left: 2px;
}
.hubflix-player-controls .hubflix-player-mode.active {
  background: #2c6bed;
  color: #fff;
}
.hubflix-player-shell:fullscreen {
  background: #000;
  border-radius: 0;
  height: 100vh;
  max-height: none;
  width: 100vw;
}
.hubflix-player-shell:fullscreen video {
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.hubflix-player-controls #hubflixPlayPause {
  border: 2px solid rgba(255,255,255,.92);
  height: 50px;
  margin-right: 3px;
  width: 50px;
}
.hubflix-player-controls #hubflixPlayPause .lucide { fill: currentColor; height: 21px; width: 21px; }
.hubflix-player-shell video::cue {
  background: rgba(0,0,0,.78);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
}

.hubflix-source-heading {
  align-items: center;
  background: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0,1fr) auto;
  padding: 14px;
}
.hubflix-source-icon {
  align-items: center;
  background: #eaf1ff;
  border-radius: 10px;
  color: #2563eb;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.hubflix-source-icon .lucide { height: 21px; width: 21px; }
.hubflix-source-heading > span:nth-child(2) { min-width: 0; }
.hubflix-source-heading small,.hubflix-source-heading b,.hubflix-source-heading em { display: block; }
.hubflix-source-heading small {
  color: #6d75a1;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hubflix-source-heading b {
  color: #202a3d;
  font-size: .75rem;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hubflix-source-heading em {
  color: #7b8496;
  font-size: .61rem;
  font-style: normal;
  margin-top: 4px;
}
.hubflix-source-browser { border-top: 1px solid #e4e7ee; }
.hubflix-form-section-title {
  align-items: center;
  border-bottom: 1px solid #e4e8ef;
  display: flex;
  gap: 9px;
  margin-top: 8px;
  padding: 5px 0 10px;
}
.hubflix-form-section-title span {
  background: #eaf1ff;
  border-radius: 999px;
  color: #2563eb;
  font-size: .58rem;
  font-weight: 850;
  padding: 5px 8px;
  text-transform: uppercase;
}
.hubflix-form-section-title b { color: #202939; font-size: .76rem; }
.hubflix-track-summary {
  align-items: center;
  background: #f0f7ff;
  border: 1px solid #d9eaff;
  border-radius: 9px;
  color: #49617f;
  display: flex;
  font-size: .66rem;
  gap: 9px;
  line-height: 1.4;
  padding: 10px 12px;
}
.hubflix-track-summary .lucide { color: #3475df; flex: 0 0 auto; height: 18px; width: 18px; }
.hubflix-art-editor {
  align-items: start;
  background: #f7f9fc;
  border: 1px solid #e3e7ef;
  border-radius: 12px;
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(120px,.72fr) minmax(0,1.28fr);
  padding: 12px;
}
.hubflix-art-preview {
  align-items: center;
  background: linear-gradient(145deg,#dbe3f2,#eef2f8);
  background-position: center;
  background-size: cover;
  border: 1px solid #d9dee8;
  border-radius: 9px;
  color: #7b879c;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hubflix-art-preview.poster { aspect-ratio: 2/3; }
.hubflix-art-preview.backdrop { aspect-ratio: 16/9; }
.hubflix-art-preview > span {
  align-items: center;
  background: rgba(255,255,255,.86);
  border-radius: 7px;
  display: flex;
  font-size: .59rem;
  gap: 5px;
  padding: 6px 8px;
}
.hubflix-art-preview.has-image > span { display: none; }
.hubflix-art-preview .lucide { height: 14px; width: 14px; }
.hubflix-art-editor-body { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.hubflix-art-editor-body label { position: relative; }
.hubflix-art-editor-body output {
  color: #2563eb;
  float: right;
  font-size: .61rem;
  font-weight: 800;
}
.hubflix-art-editor-body input[type="range"] {
  accent-color: #2563eb;
  margin: 6px 0 0;
  padding: 0;
}
.hubflix-upload-button {
  align-items: center !important;
  background: #fff;
  border: 1px dashed #b9c6da;
  border-radius: 8px;
  color: #315fbd !important;
  cursor: pointer;
  flex-direction: row !important;
  gap: 7px !important;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
}
.hubflix-upload-button:hover { background: #edf4ff; border-color: #7da3e9; }
.hubflix-upload-button.uploading { cursor: wait; opacity: .68; }
.hubflix-upload-button input { display: none; }
.hubflix-upload-button .lucide { height: 15px; width: 15px; }
.hubflix-movie-dialog textarea {
  background: #fff;
  border: 1px solid #d8dce6;
  color: #272c38;
  font: inherit;
  line-height: 1.5;
  padding: 12px;
}
.hubflix-movie-dialog textarea::placeholder { color: #9298a7; }

@media (max-width: 760px) {
  .ebook-reader { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .ebook-reader aside { border-bottom: 1px solid #e1e4eb; border-right: 0; max-height: 170px; }
  .ebook-reader aside header { padding: 10px 14px; }
  .ebook-reader nav { display: flex; gap: 6px; padding: 7px; }
  .ebook-reader nav button { flex: 0 0 min(240px,72vw); }
  .ebook-frame { min-height: 430px; }
  .archive-list { grid-template-columns: 1fr; padding: 10px; }
  .archive-toolbar { padding-inline: 10px; }
  .archive-preview > header,.comic-reader > header { padding-inline: 8px; }
  .archive-preview > header b { display: none; }
  .comic-reader > header .drive-secondary { font-size: 0; padding: 9px; }
  .comic-reader > header .drive-secondary .lucide { margin: 0; }
  .hubflix-hero-navigation { bottom: 72px; right: 18px; }
  .hubflix-track-controls { gap: 4px; }
  .hubflix-track-controls label > span { display: none; }
  .hubflix-track-controls select { max-width: 105px; }
  .hubflix-source-heading { grid-template-columns: 40px 1fr; }
  .hubflix-source-heading > button { grid-column: 1/-1; justify-content: center; width: 100% !important; }
  .hubflix-art-editor { grid-template-columns: 110px minmax(0,1fr); }
}
@media (max-width: 560px) {
  .hubflix-hero-navigation > button { display: none; }
  #heroDots button { width: 12px; }
  #heroDots button.active { width: 25px; }
  .hubflix-details-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hubflix-details-actions button { padding-inline: 10px; }
  .hubflix-player-controls { padding-bottom: max(10px,env(safe-area-inset-bottom)); }
  .hubflix-player-controls > div { flex-wrap: wrap; }
  .hubflix-player-controls > div > #hubflixTime { font-size: .62rem; }
  .hubflix-track-controls {
    flex: 1 0 100%;
    margin: 7px 0 0;
    order: 2;
  }
  .hubflix-track-controls label { flex: 1; }
  .hubflix-track-controls select { max-width: none; width: 100%; }
  .hubflix-player-controls .hubflix-fullscreen { margin-left: auto; }
  .hubflix-art-editor { grid-template-columns: 1fr; }
  .hubflix-art-preview.poster { justify-self: center; width: min(210px,70vw); }
  .hubflix-trailer-dialog > article { width: 100vw; }
}

/* Bible study and local audiobook studio */
.library-bible-entry{align-items:center;background:linear-gradient(120deg,#20344f,#294b72 58%,#1c334e);border:1px solid rgba(255,255,255,.11);border-radius:24px;box-shadow:0 22px 55px rgba(27,46,70,.2);color:#fff;display:grid;gap:22px;grid-template-columns:64px 1fr auto;margin:32px 0;overflow:hidden;padding:24px 28px;position:relative}.library-bible-entry::after{background:radial-gradient(circle,rgba(225,194,121,.24),transparent 68%);content:"";height:240px;position:absolute;right:4%;top:-110px;width:240px}.library-bible-symbol{align-items:center;background:linear-gradient(145deg,#f5dfac,#cfae63);border-radius:18px;color:#263a54;display:flex;height:64px;justify-content:center;width:64px}.library-bible-symbol .lucide{height:29px;width:29px}.library-bible-entry .library-kicker{color:#e7ca89}.library-bible-entry h2{font-family:Georgia,serif;font-size:1.8rem;font-weight:500;margin:4px 0}.library-bible-entry p{color:#ccd7e5;font-size:.74rem;margin:0}.library-bible-entry>button{align-items:center;background:#fff;border:0;border-radius:13px;color:#26374e;display:flex;font-size:.69rem;font-weight:800;gap:9px;min-height:44px;padding:0 16px;position:relative;z-index:2}
.bible-dialog{background:#f6f2e9;color:#252821;height:100dvh;max-height:none;max-width:none;padding:0;width:100vw}.bible-dialog::backdrop{background:rgba(17,22,29,.66)}.bible-dialog>article{display:grid;grid-template-rows:74px auto 1fr;height:100%}.bible-dialog>article>header{align-items:center;background:#20344f;color:#fff;display:grid;gap:16px;grid-template-columns:46px 1fr auto;padding:10px 26px}.bible-dialog>article>header button{align-items:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:11px;color:#fff;display:flex;gap:8px;justify-content:center;min-height:42px;padding:0 13px}.bible-dialog>article>header small{color:#e1c27d;font-size:.52rem;font-weight:900;letter-spacing:.16em}.bible-dialog>article>header h2{font-family:Georgia,serif;font-size:1.34rem;font-weight:500;margin:2px 0 0}.bible-searchbar{align-items:center;background:#ebe5da;border-bottom:1px solid #d5cdbf;display:grid;gap:10px;grid-template-columns:20px 1fr 38px;padding:13px max(26px,calc((100vw - 1320px)/2))}.bible-searchbar input{background:#fffdf9;border:1px solid #cbc2b3;border-radius:12px;color:#292721;font-size:.78rem;height:46px;outline:0;padding:0 14px;width:100%}.bible-searchbar>button{background:#fffdf9;border:1px solid #cbc2b3;border-radius:10px;color:#5d625d;height:38px}.bible-layout{display:grid;grid-template-columns:300px 1fr;min-height:0}.bible-layout>aside{background:#eee8de;border-right:1px solid #d5cdbf;min-height:0;overflow:auto;padding:20px 14px}.bible-layout>aside>div{padding:0 8px 13px}.bible-layout>aside small{color:#867247;display:block;font-size:.52rem;font-weight:900;letter-spacing:.13em}.bible-layout>aside b{color:#71695d;font-size:.6rem}.bible-layout nav{display:flex;flex-direction:column;gap:5px}.bible-layout nav button{align-items:center;background:transparent;border:0;border-radius:10px;color:#484943;display:grid;gap:9px;grid-template-columns:34px 1fr;padding:9px;text-align:left}.bible-layout nav button:hover,.bible-layout nav button.active{background:#fffdf9;box-shadow:0 6px 18px rgba(65,54,40,.07);color:#203b5b}.bible-layout nav button span{align-items:center;background:#ddd4c6;border-radius:8px;display:flex;font-size:.57rem;height:31px;justify-content:center}.bible-layout nav button.active span{background:#dbe8f6;color:#2762a8}.bible-layout nav button b{font-family:Georgia,serif;font-size:.72rem;font-weight:500}.bible-layout>main{background:#fffdf8;min-width:0;overflow:auto}.bible-reading{display:grid;grid-template-rows:auto 1fr 55px;height:100%}.bible-reading-heading{border-bottom:1px solid #e5dfd4;padding:20px max(28px,calc((100% - 860px)/2))}.bible-reading-heading span{color:#967a43;font-size:.55rem;font-weight:900;letter-spacing:.12em}.bible-reading-heading h3{font-family:Georgia,serif;font-size:1.65rem;font-weight:500;margin:4px 0 0}.bible-reading iframe{border:0;height:100%;min-height:0;width:100%}.bible-reading footer{align-items:center;border-top:1px solid #e5dfd4;display:flex;justify-content:space-between;padding:7px 24px}.bible-reading footer button{align-items:center;background:#f2eee7;border:1px solid #ded7ca;border-radius:10px;color:#3b4652;display:flex;font-size:.65rem;font-weight:750;gap:6px;min-height:38px;padding:0 13px}.bible-reading footer button:disabled{opacity:.4}.bible-search-results{margin:auto;max-width:940px;padding:32px}.bible-search-results>header{border-bottom:1px solid #ddd6ca;margin-bottom:14px;padding-bottom:16px}.bible-search-results>header small{color:#8b7447;font-size:.53rem;font-weight:900;letter-spacing:.14em}.bible-search-results>header h3{font-family:Georgia,serif;font-size:1.7rem;font-weight:500;margin:5px 0}.bible-search-results>header p{color:#7f776d;font-size:.68rem;margin:0}.bible-search-results>button{align-items:center;background:#fff;border:1px solid #e2dbcf;border-radius:14px;color:#34342f;display:grid;gap:11px;grid-template-columns:130px 1fr 26px;margin:8px 0;padding:15px;text-align:left;width:100%}.bible-search-results>button>span{color:#37618b;font-size:.63rem;font-weight:850}.bible-search-results>button p{font-family:Georgia,serif;font-size:.77rem;line-height:1.55;margin:0}.bible-searching{color:#776e63;padding:90px 20px;text-align:center}.hub-bible-result{background:#ffe08a;border-radius:3px;padding:2px 3px}
.audiobook-shelf{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.audiobook-card{align-items:center;background:#fff;border:1px solid #ddd7cd;border-radius:18px;display:grid;gap:14px;grid-template-columns:62px 1fr auto;min-width:0;padding:12px}.audiobook-card-art{align-items:center;background:linear-gradient(145deg,#294761,#162a3f);border-radius:13px;color:#e4c982;display:flex;height:62px;justify-content:center;position:relative;width:62px}.audiobook-card-art::after{border:1px solid rgba(255,255,255,.18);border-radius:50%;content:"";height:36px;position:absolute;width:36px}.audiobook-card-copy{min-width:0}.audiobook-card-copy small{color:#907442;display:block;font-size:.5rem;font-weight:900;letter-spacing:.08em}.audiobook-card-copy h3{font-family:Georgia,serif;font-size:1rem;font-weight:500;margin:4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audiobook-card-copy p{color:#787168;font-size:.6rem;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audiobook-card>button{align-items:center;background:#20344f;border:0;border-radius:11px;color:#fff;display:flex;font-size:.64rem;font-weight:800;gap:7px;min-height:40px;padding:0 13px}.audiobook-progress{background:#e7e1d8;border-radius:9px;height:4px;margin-top:9px;overflow:hidden}.audiobook-progress i{background:linear-gradient(90deg,#2b6ec5,#8f65d9);display:block;height:100%;transition:width .4s}.audiobook-card.failed{border-color:#e5b9b4}.audiobook-card.failed .audiobook-card-art{background:#6f3434;color:#ffd4cf}
.audiobook-generate-dialog form{background:#fffdf9;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.32);color:#282b2c;padding:24px;width:min(720px,94vw)}.audiobook-generate-dialog header{align-items:flex-start;display:flex;justify-content:space-between}.audiobook-generate-dialog header small{color:#856d40;font-size:.54rem;font-weight:900;letter-spacing:.14em}.audiobook-generate-dialog header h2{font-family:Georgia,serif;font-size:1.55rem;font-weight:500;margin:5px 0}.audiobook-generate-dialog header p{color:#777068;font-size:.67rem;margin:0}.audiobook-generate-dialog header button{background:#eeeae3;border:0;border-radius:10px;height:38px;width:38px}.audiobook-engine{align-items:center;background:#20344f;border-radius:14px;color:#fff;display:grid;gap:12px;grid-template-columns:35px 1fr auto;margin:20px 0;padding:14px}.audiobook-engine b,.audiobook-engine small{display:block}.audiobook-engine small{color:#bfcadc;font-size:.58rem;margin-top:3px}.audiobook-engine>span{background:#2d735d;border-radius:20px;color:#d7fff0;font-size:.5rem;font-weight:900;padding:6px 9px}.audiobook-settings-grid{display:grid;gap:14px;grid-template-columns:1fr 1fr}.audiobook-settings-grid label{color:#5c5a55;font-size:.63rem;font-weight:750}.audiobook-settings-grid output{color:#2866b5;float:right}.audiobook-settings-grid select{background:#fff;border:1px solid #d8d1c6;border-radius:10px;color:#282b2c;display:block;height:42px;margin-top:6px;padding:0 10px;width:100%}.audiobook-settings-grid input[type=range]{accent-color:#2a6cc5;display:block;margin-top:12px;width:100%}.audiobook-estimate{align-items:flex-start;background:#f0ece5;border-radius:10px;color:#6f685f;display:flex;font-size:.61rem;gap:8px;line-height:1.5;padding:11px}.audiobook-generate-dialog .library-primary{margin-left:auto}
.audiobook-player{align-items:center;background:rgba(23,32,44,.97);border:1px solid rgba(255,255,255,.13);border-radius:18px;bottom:max(18px,env(safe-area-inset-bottom));box-shadow:0 22px 60px rgba(0,0,0,.38);color:#fff;display:grid;gap:12px;grid-template-columns:52px minmax(180px,1fr) auto 82px minmax(160px,1fr) 38px 38px;left:50%;max-width:1120px;padding:10px 12px;position:fixed;transform:translateX(-50%);transition:.2s;width:calc(100% - 34px);z-index:90}.audiobook-player.minimized{grid-template-columns:45px 1fr auto 38px;max-width:500px}.audiobook-player.minimized>#audiobookTime,.audiobook-player.minimized>#audiobookSeek,.audiobook-player.minimized>#audiobookMinimize{display:none}.audiobook-player-cover{align-items:center;background:linear-gradient(145deg,#d9b663,#80631f);border-radius:12px;color:#17283d;display:flex;height:48px;justify-content:center;position:relative;width:48px}.audiobook-player-cover>span{align-items:flex-end;bottom:4px;display:flex;gap:2px;height:10px;position:absolute}.audiobook-player-cover>span i{animation:audiobookWave .8s ease-in-out infinite alternate;background:#17283d;display:block;height:3px;width:2px}.audiobook-player-cover>span i:nth-child(2){animation-delay:.15s}.audiobook-player-cover>span i:nth-child(3){animation-delay:.3s}.audiobook-player-cover>span i:nth-child(4){animation-delay:.45s}.audiobook-player:not(.playing) .audiobook-player-cover>span i{animation-play-state:paused}@keyframes audiobookWave{to{height:10px}}.audiobook-player-info{min-width:0}.audiobook-player-info small{color:#e0c173;display:block;font-size:.48rem;font-weight:900;letter-spacing:.14em}.audiobook-player-info b,.audiobook-player-info em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audiobook-player-info b{font-family:Georgia,serif;font-size:.8rem}.audiobook-player-info em{color:#aeb9c7;font-size:.56rem;font-style:normal}.audiobook-player-controls{display:flex;gap:5px}.audiobook-player button{align-items:center;background:transparent;border:0;border-radius:50%;color:#fff;display:flex;height:36px;justify-content:center;width:36px}.audiobook-player-controls #audiobookToggle{background:#fff;color:#20344f;height:42px;width:42px}.audiobook-player>span{color:#b7c0cc;font-size:.55rem;text-align:center}.audiobook-player>input{accent-color:#d9b663;width:100%}
@media(max-width:760px){.library-bible-entry{grid-template-columns:50px 1fr;padding:18px}.library-bible-symbol{height:50px;width:50px}.library-bible-entry>button{grid-column:1/-1;width:100%}.audiobook-shelf{grid-template-columns:1fr}.bible-dialog>article{grid-template-rows:64px auto 1fr}.bible-dialog>article>header{grid-template-columns:40px 1fr auto;padding:8px 10px}.bible-dialog>article>header h2{font-size:1rem}.bible-dialog>article>header>button:last-child span{display:none}.bible-layout{display:block;position:relative}.bible-layout>aside{border:0;border-bottom:1px solid #d5cdbf;max-height:165px;padding:10px}.bible-layout nav{flex-direction:row;overflow-x:auto}.bible-layout nav button{flex:0 0 150px}.bible-layout>main{height:calc(100dvh - 64px - 73px - 165px)}.bible-searchbar{padding:10px}.bible-search-results{padding:18px 12px}.bible-search-results>button{grid-template-columns:1fr 24px}.bible-search-results>button>span{grid-column:1/-1}.audiobook-settings-grid{grid-template-columns:1fr}.audiobook-player{bottom:calc(62px + env(safe-area-inset-bottom));grid-template-columns:44px 1fr auto 34px;padding:8px}.audiobook-player>#audiobookTime,.audiobook-player>#audiobookSeek,.audiobook-player>#audiobookMinimize{display:none}.audiobook-player-cover{height:42px;width:42px}.audiobook-player-controls button:first-child,.audiobook-player-controls button:last-child{display:none}}
.drive-audiobook-dialog{background:#fff;border-radius:22px;box-shadow:0 30px 90px rgba(11,18,29,.32);color:#242831;padding:0;width:min(720px,94vw)}.drive-audiobook-dialog>header{align-items:center;border-bottom:1px solid #e3e6eb;display:flex;justify-content:space-between;padding:18px 20px}.drive-audiobook-dialog>header>div{align-items:center;display:flex;gap:12px}.drive-audiobook-dialog h2{font-size:1.05rem;margin:0}.drive-audiobook-dialog header small{color:#747c8c;display:block;font-size:.63rem;margin-top:3px}.drive-audiobook-engine{align-items:center;background:#17263c;border-radius:14px;color:#fff;display:grid;gap:12px;grid-template-columns:32px 1fr auto;margin:18px 20px;padding:14px}.drive-audiobook-engine b,.drive-audiobook-engine small{display:block}.drive-audiobook-engine small{color:#b4c0d1;font-size:.58rem;margin-top:3px}.drive-audiobook-engine em{background:#24674f;border-radius:20px;color:#caffec;font-size:.5rem;font-style:normal;font-weight:900;padding:6px 9px}.drive-audiobook-grid{display:grid;gap:15px;grid-template-columns:1fr 1fr;padding:0 20px}.drive-audiobook-grid label{color:#555d6a;font-size:.64rem;font-weight:750}.drive-audiobook-grid output{color:#2469c7;float:right}.drive-audiobook-grid select{background:#f8f9fb;border:1px solid #d9dde5;border-radius:10px;color:#242831;display:block;height:42px;margin-top:6px;padding:0 10px;width:100%}.drive-audiobook-grid input[type=range]{accent-color:#286fd0;display:block;margin-top:13px;width:100%}.drive-audiobook-dialog>p{align-items:flex-start;background:#f2f4f7;border-radius:10px;color:#677080;display:flex;font-size:.62rem;gap:8px;line-height:1.5;margin:18px 20px 0;padding:11px}.drive-audiobook-dialog>footer{display:flex;gap:9px;justify-content:flex-end;padding:18px 20px}@media(max-width:620px){.drive-audiobook-grid{grid-template-columns:1fr}.drive-audiobook-dialog{max-height:92dvh;overflow:auto}}
