/* Consistent typography and controls for the final dark interface. */
html, body, body * { font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif !important; }
html { scroll-behavior: smooth; }
body { font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
input, select, textarea { color-scheme: dark; }
button { cursor: pointer; }
button, .primary, .secondary, .nav a, .side-link, .side-action, .download-button, .result-actions a,
.share-menu summary, .row-actions button, .report-box button, .device-list button {
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
button:not(:disabled):active, .primary:active, .nav a:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; }
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-width: 0; max-width: 100%; color: #edf3ff; background-color: #111c2c;
  border: 1px solid #3a4d68; border-radius: 10px; font-size: 14px; line-height: 1.4;
}
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea)::placeholder { color: #99a9bf; opacity: 1; }
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
  border-color: #86adff; outline: 0; box-shadow: 0 0 0 3px rgba(113,157,241,.16);
}
select { min-height: 42px; padding: 9px 34px 9px 12px; }
textarea { min-height: 110px; padding: 12px; resize: vertical; }
input[type="search"] { min-height: 43px; padding: 9px 13px; }
input[type="checkbox"], input[type="radio"] { accent-color: #76a3ff; }
::file-selector-button { margin-right: 10px; padding: 8px 12px; border: 1px solid #455c7d; border-radius: 8px; background: #1a2a40; color: #e8f0ff; cursor: pointer; }
body:has(.management-shell) .site-video, body:has(.account-shell) .site-video { opacity: .16; }
body:has(.management-shell) .site-video-shade, body:has(.account-shell) .site-video-shade { background: linear-gradient(180deg,rgba(7,11,19,.89),#070b13 92%); }

.management-shell { --panel-border:#2a3850; width:min(100%,1510px); max-width:none; margin:auto; padding:40px clamp(18px,3.5vw,52px) 96px; }
.management-shell :is(#overview,#users,#settings,#activity,#reports) { scroll-margin-top:100px; }
.admin-heading { align-items:center; margin-bottom:22px; }
.admin-heading h1 { margin:0 0 5px; font-size:clamp(30px,3vw,43px); font-weight:750; letter-spacing:-.045em; }
.admin-heading p { margin:0; font-size:14px; }
.admin-heading .admin-kicker { margin:0 0 10px; color:#91b8ff; font-size:11px; font-weight:750; letter-spacing:.17em; }
.admin-heading > .secondary { display:inline-flex; align-items:center; justify-content:center; min-height:42px; white-space:nowrap; }
.admin-tabs { display:flex; gap:6px; overflow-x:auto; padding:5px; margin:0 0 26px; border:1px solid #2c3d59; border-radius:14px; background:#0c1423; scrollbar-width:thin; }
.admin-tabs a { display:inline-flex; justify-content:center; align-items:center; flex:none; min-height:38px; padding:7px 16px; border-radius:9px; color:#b7c5dc; font-size:13px; font-weight:650; white-space:nowrap; }
.admin-tabs a:hover, .admin-tabs a:focus-visible { color:#fff; background:#1b2c47; }

.management-shell .stat-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.management-shell .stat-grid article { position:relative; display:flex; flex-direction:column; min-width:0; min-height:126px; padding:18px; overflow:hidden; border:1px solid var(--panel-border); border-radius:15px; background:#101b2d; box-shadow:0 12px 30px rgba(0,0,0,.14); }
.management-shell .stat-grid article::before { position:absolute; content:""; top:0; left:18px; width:34px; height:2px; background:#75a2ff; }
.management-shell .stat-grid span { font-size:12px; font-weight:650; color:#b7c8e1; }
.management-shell .stat-grid b { margin:8px 0 3px; color:#f4f7ff; font-size:clamp(21px,2vw,27px); line-height:1.2; font-weight:750; letter-spacing:-.035em; overflow-wrap:anywhere; }
.management-shell .stat-grid small { margin-top:auto; font-size:11px; color:#94a5bf; line-height:1.3; }
.management-shell .management-grid { display:grid; grid-template-columns:minmax(320px,.72fr) minmax(0,1.7fr); align-items:start; gap:18px; }
.management-shell .admin-panel, .account-shell .account-card { min-width:0; border:1px solid var(--panel-border,#2a3850); border-radius:17px; background:#0e1829; color:#ecf2fc; box-shadow:0 18px 46px rgba(0,0,0,.17); }
.management-shell .admin-panel { padding:25px; }
.management-shell .panel-title { padding-bottom:17px; margin-bottom:19px; border-bottom:1px solid var(--panel-border); }
.management-shell .panel-title h2 { font-size:19px; font-weight:720; letter-spacing:-.025em; }
.management-shell .panel-title p { margin-top:4px; color:#a4b3ca; font-size:13px; }
.settings-form { gap:18px; }
.settings-form > label:not(.switch-row), .settings-form .field-pair label, .user-control-form label, .user-filter label { display:grid; align-content:start; gap:7px; min-width:0; color:#d7e0ee; font-size:13px; font-weight:650; }
.settings-form label > small, .user-control-form label > small { color:#93a5bf; font-size:11px; font-weight:450; line-height:1.35; }
.settings-form .field-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.settings-form input:not([type="checkbox"]), .settings-form select, .user-filter input, .user-filter select, .user-control-form input, .user-control-form select { display:block; width:100%; min-width:0; height:43px; margin:0; padding:9px 12px; border:1px solid #405272; border-radius:10px; background:#101d30; color:#f3f7ff; font-size:13px; outline:none; box-shadow:inset 0 1px 2px rgba(0,0,0,.12); }
.settings-form input::placeholder, .user-filter input::placeholder, .user-control-form input::placeholder { color:#8697b0; opacity:1; }
.settings-form :is(input,select):focus, .user-filter :is(input,select):focus, .user-control-form :is(input,select):focus { border-color:#95b7ff; box-shadow:0 0 0 3px rgba(120,160,240,.16); }
.settings-form :is(input,select):hover, .user-filter :is(input,select):hover, .user-control-form :is(input,select):hover { border-color:#627caa; }
.settings-form select, .user-filter select, .user-control-form select { padding-right:30px; }
.settings-form input[type="checkbox"] { width:19px; height:19px; flex:none; accent-color:#6699ff; }
.switch-row { gap:20px; padding:16px 0; border-color:var(--panel-border); }
.switch-row b { color:#e7edf7; font-size:13px; }
.switch-row small { color:#93a5bf; font-size:11px; }
.settings-form > button.primary { min-height:44px; width:100%; border-radius:10px; font-size:13px; }
.user-filter { display:grid; grid-template-columns:minmax(0,1fr) minmax(145px,.4fr) auto; align-items:end; gap:10px; margin:0 0 18px; }
.user-filter > button { height:43px; padding:0 17px; border-radius:10px; font-size:13px; }

.admin-users { display:grid; gap:11px; }
.admin-user-card { min-width:0; padding:18px; border:1px solid #2e3e58; border-radius:14px; background:#111e31; transition:border-color .18s,background .18s; }
.admin-user-card:hover { border-color:#44638e; background:#142238; }
.admin-user-head { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:12px; }
.admin-user-head .avatar { width:40px; height:40px; border-radius:12px; }
.admin-user-head h3 { margin:0; color:#f4f7ff; font-size:15px; font-weight:700; line-height:1.3; overflow-wrap:anywhere; }
.admin-user-head small { display:block; margin-top:2px; color:#a9b7cb; font-size:12px; overflow-wrap:anywhere; }
.own-account { margin-left:8px; color:#9fbcff; font-size:11px; font-weight:600; }
.status-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border:1px solid #2c6958; border-radius:99px; background:#143b32; color:#a6efd4; font-size:11px; font-weight:700; white-space:nowrap; }
.status-chip::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.status-chip.frozen { border-color:#70515c; background:#3b2931; color:#ffc2cb; }
.quota-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px 12px; margin:17px 0 0; color:#e6edf8; font-size:12px; font-weight:600; }
.quota-summary small { color:#91a4bf; font-size:11px; font-weight:450; }
.quota-summary progress { display:block; grid-column:1/-1; width:100%; height:7px; margin-top:4px; border:0; border-radius:99px; overflow:hidden; appearance:none; background:#2b3952; }
.quota-summary progress::-webkit-progress-bar { background:#2b3952; }
.quota-summary progress::-webkit-progress-value { border-radius:99px; background:linear-gradient(90deg,#4984e9,#85b7ff); }
.quota-summary progress::-moz-progress-bar { border-radius:99px; background:#76aaff; }
.manage-details { margin-top:15px; border-top:1px solid var(--panel-border); }
.manage-details summary, .password-reset summary { cursor:pointer; padding:12px 2px; color:#b8cfff; font-size:12px; font-weight:650; }
.manage-details summary:hover, .password-reset summary:hover { color:#fff; }
.manage-details[open] > summary { margin-bottom:3px; }
.user-facts, .account-shell .account-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; margin:4px 0 18px; padding:0; border:0; }
.user-facts > div, .account-meta > div { min-width:0; }
.user-facts dt, .account-meta dt { color:#94a5be; font-size:11px; }
.user-facts dd, .account-meta dd { margin:3px 0 0; color:#e6edf8; font-size:12px; font-weight:650; overflow-wrap:anywhere; }
.user-control-form { display:grid; grid-template-columns:minmax(140px,1fr) minmax(110px,.65fr) minmax(135px,.8fr) auto; align-items:start; gap:10px; margin:0; }
.user-control-form > button { align-self:end; min-height:43px; padding:0 16px; border:1px solid #4d79c9; border-radius:10px; background:#2455a2; color:#fff; font-size:12px; font-weight:700; }
.user-control-form > button:hover { background:#3267b9; }
.password-reset { margin-top:16px; border-top:1px solid var(--panel-border); }
.password-reset p { margin:0 0 14px; color:#a9b8cd; font-size:12px; }
.password-reset .settings-form > button { justify-self:start; width:auto; min-height:42px; padding:0 16px; border:1px solid #724854; border-radius:10px; background:#472732; color:#ffe3e7; font-size:12px; font-weight:700; }
.result-pages { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; margin-top:20px; color:#b9c7dc; font-size:13px; }
.result-pages a { display:inline-flex; align-items:center; min-height:38px; padding:7px 13px; }
.management-shell .reports-panel, .management-shell .recent-panel { margin-top:18px; }
.recent-table { overflow-x:auto; border:1px solid #2a3a53; border-radius:12px; }
.recent-row { display:grid; grid-template-columns:minmax(190px,2fr) minmax(100px,1fr) minmax(90px,.6fr) minmax(140px,.8fr); gap:15px; min-width:550px; align-items:center; padding:12px 15px; border-top:1px solid #27364e; color:#c4d0e2; font-size:12px; }
.recent-row:first-child { border-top:0; }
.recent-head { background:#14233a; color:#9baecc; font-size:11px; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }
.recent-row strong { color:#eef3fb; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recent-row time { white-space:nowrap; }
.report-list article { background:#111e31; border-color:#30415d; }
.report-list article b { color:#f1f5fc; }
.report-list article p { color:#aebbd0; }
.report-list button, .device-list button { min-height:38px; border-radius:9px; font-size:12px; }
.clean-state { margin:0; padding:17px; border:1px solid #28664c; border-radius:11px; background:#14382d; color:#a5ead1; font-size:13px; }

/* Workspace controls share one sizing and focus treatment across each state. */
.workspace .drive-content { min-width:0; }
.workspace .drive-title { align-items:center; gap:18px; }
.workspace .drive-title h1 { font-size:clamp(27px,3vw,37px); font-weight:730; letter-spacing:-.04em; }
.workspace .drive-title .eyebrow { margin-bottom:6px; color:#a5bcde; font-size:11px; letter-spacing:.12em; }
.workspace .new-folder { align-items:center; }
.workspace .new-folder input { min-height:43px; padding:9px 13px; }
.workspace .new-folder button, .workspace-search button, .workspace-search a, .workspace-move button, .workspace-move a,
.workspace-pagination a { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:9px 14px; border:1px solid #3a4c68; border-radius:10px; background:#17243a; color:#e3ecfb; font-size:13px; font-weight:650; }
.workspace .new-folder button:hover, .workspace-search button:hover, .workspace-search a:hover,
.workspace-move a:hover, .workspace-pagination a:hover { border-color:#6889bb; background:#1e304c; }
.workspace-search { display:grid; grid-template-columns:minmax(0,1fr) minmax(135px,190px) auto auto; gap:9px; }
.workspace-search input { width:100%; min-height:44px; }
.workspace-search select { min-height:44px; }
.workspace-search button { cursor:pointer; }
.workspace-search a { text-decoration:none; }
.workspace .upload-panel { margin-block:24px 32px; }
.workspace .dropzone { min-height:140px; }
.workspace .dropzone b { font-size:15px; }
.workspace .dropzone small { font-size:12px; }
.workspace .upload-panel .primary { min-width:150px; padding-inline:20px; border:0; border-radius:11px; }
.workspace .folder-card { min-height:110px; padding:18px; }
.workspace .file-table { overflow-x:auto; }
.workspace .file-row { min-width:720px; min-height:56px; }
.workspace .row-actions { flex-wrap:wrap; gap:7px; }
.workspace .row-actions button, .workspace .share-menu summary { min-height:36px; padding:7px 10px; border-radius:9px; font-size:12px; }
.workspace .workspace-pagination { display:flex; align-items:center; justify-content:center; gap:15px; margin-top:22px; color:#adbed6; font-size:13px; }
.workspace-crumbs { margin-bottom:17px; }
.workspace-crumbs ol { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; color:#aabbd4; font-size:13px; }
.workspace-crumbs li + li::before { content:"/"; margin-right:8px; color:#657996; }
.workspace-crumbs a:hover { color:#d9e7ff; }
.workspace .share-result { border-radius:16px; background:#102d29; }
.workspace .share-result input { min-height:44px; padding:9px 12px; }
.workspace .share-result button { min-height:42px; border:1px solid #3d766a; border-radius:10px; background:#17443b; color:#e3fff6; }
.workspace .workspace-move { padding:21px; border:1px solid #344b6c; border-radius:15px; background:#101b2d; }
.workspace .workspace-move form { display:flex; align-items:end; flex-wrap:wrap; gap:10px; }
.workspace .workspace-move label { display:grid; flex:1 1 260px; gap:7px; color:#dce7f6; font-size:13px; }
.workspace .workspace-move select { width:100%; }
.workspace .workspace-move .primary { min-height:42px; }
.workspace .dropzone:focus-within { border-color:#8bb3ff; }
.workspace .row-actions .danger-button, .workspace .danger-button { border-color:#754553; background:#3c222d; color:#ffdbe2; }
.workspace .row-actions .danger-button:hover, .workspace .danger-button:hover { border-color:#a35e70; background:#512b39; }
.workspace .result-card { background:#102b27; }
.workspace .result-actions button, .workspace .result-actions a { min-height:38px; padding:8px 11px; border-radius:9px; font-size:12px; }
.workspace .empty-state { min-height:220px; display:grid; place-content:center; justify-items:center; }
.workspace .empty-state h3 { font-size:17px; }

/* Public and sign-in pages keep readable rhythm over the animated background. */
.landing { position:relative; z-index:0; }
.landing .hero { padding-block:12px; }
.landing .hero h1 { font-family:inherit; font-size:clamp(42px,5.5vw,70px); line-height:1.04; letter-spacing:-.055em; }
.landing .hero-copy > p:not(.eyebrow) { max-width:56ch; font-size:17px; line-height:1.75; }
.landing .hero-actions .primary, .landing .hero-actions .secondary { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:11px 18px; }
.auth-card, .share-card { backdrop-filter:blur(22px); }
.auth-card h1, .share-card h1 { font-family:inherit; font-weight:740; letter-spacing:-.045em; }
.auth-card .login-form, .auth-card .form-grid, .share-card .unlock-form { gap:16px; }
.auth-card label, .share-card label { color:#dce5f4; }
.auth-card :is(input, select), .share-card :is(input, select) { min-height:46px; padding:11px 13px; }
.auth-card button.primary, .share-card button.primary { min-height:46px; border-radius:11px; }
.topbar .nav { min-width:0; }
.topbar .nav a, .topbar .nav button { min-height:38px; display:inline-flex; align-items:center; justify-content:center; }

.account-shell { max-width:1100px; gap:20px; }
.account-shell .account-card { padding:28px; }
.account-profile h1 { font-size:27px; letter-spacing:-.03em; }
.account-shell .quota-summary { margin-top:26px; }
.account-shell .account-meta { margin-top:24px; padding-top:22px; border-top:1px solid #2b3b54; }
.account-shell .device-list, .account-shell .device-list article { border-color:#2b3b54; }
.account-shell .device-list small { color:#98aac4; }
.account-shell .account-card > p { color:#aebbd0; font-size:13px; }
.account-shell .settings-form > button.primary { width:auto; padding:0 20px; }
@media (max-width:1300px) { .management-shell .stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:1020px) { .management-shell .management-grid { grid-template-columns:minmax(0,1fr); } .management-shell .platform-settings { order:2; } .management-shell .user-management { order:1; } }
@media (max-width:700px) {
  .management-shell { padding:24px 14px 70px; }
  .management-shell .stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .management-shell .admin-panel { padding:18px; }
  .user-filter { grid-template-columns:minmax(0,1fr) minmax(120px,.45fr); }
  .user-filter > button { grid-column:1/-1; }
  .user-control-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .user-control-form > button { justify-self:start; }
  .topbar { height:auto; min-height:68px; flex-wrap:wrap; gap:5px; padding:10px 14px; }
  .nav { width:100%; gap:16px; overflow-x:auto; padding:6px 0 2px; white-space:nowrap; }
  .nav > a:not(.nav-cta), .nav .account, .nav-cta { display:inline-flex; }
}
@media (max-width:440px) {
  .admin-heading { flex-direction:column; align-items:start; }
  .management-shell .stat-grid { gap:8px; }
  .management-shell .stat-grid article { min-height:112px; padding:14px; }
  .admin-user-head { grid-template-columns:35px minmax(0,1fr); }
  .admin-user-head .status-chip { grid-column:2; justify-self:start; }
  .user-control-form, .settings-form .field-pair { grid-template-columns:minmax(0,1fr); }
  .account-shell { grid-template-columns:1fr; padding:22px 14px 70px; }
  .account-shell .account-card { padding:19px; }
}
@media (max-width:780px) {
  .workspace .drive-title { align-items:stretch; }
  .workspace .new-folder { width:100%; }
  .workspace .new-folder input { flex:1; width:1px; }
  .workspace-search { grid-template-columns:minmax(0,1fr) auto; }
  .workspace-search input { grid-column:1/-1; }
  .workspace-search select { width:100%; }
  .workspace-search button, .workspace-search a { width:100%; }
  .workspace .upload-panel form { display:grid; grid-template-columns:minmax(0,1fr); }
  .workspace .upload-panel .primary { width:100%; min-height:46px; }
  .workspace .file-table { border-radius:12px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
