:root {
  --bg: #0a0d10;
  --panel: #11161b;
  --panel-2: #161c22;
  --line: #27313a;
  --text: #f3f6f8;
  --muted: #8f9ba6;
  --cyan: #55ddcd;
  --cyan-dark: #113f3b;
  --amber: #f1bd5e;
  --red: #ff7c7c;
  --green: #72e1a8;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: "Segoe UI Variable", "Aptos", "Inter", sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.topbar { height: 70px; padding: 0 4vw; border-bottom: 1px solid var(--line); display: flex; align-items: center; position: sticky; top: 0; z-index: 20; background: rgba(10,13,16,.96); }
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: .12em; font-size: 13px; white-space: nowrap; }
.wordmark span { width: 35px; height: 35px; display: grid; place-items: center; background: var(--cyan); color: #05100e; letter-spacing: -.05em; font-weight: 850; }
.topbar nav { margin-left: auto; display: flex; align-items: center; height: 100%; gap: 4px; }
.nav-button, .logout-button { height: 38px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.nav-button:hover, .nav-button.active { color: var(--text); background: var(--panel-2); }
.logout-button { border-left: 1px solid var(--line); margin-left: 8px; }
.logout-button:hover { color: var(--red); }

.app-shell { width: min(1420px, 92vw); margin: 0 auto; padding: 64px 0 100px; }
.view { display: none; }
.active-view { display: block; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.page-heading h1, .login-brand h1 { font-size: clamp(42px, 6vw, 72px); line-height: .96; letter-spacing: -.055em; margin: 0; }
.page-heading p:not(.overline), .login-copy { color: var(--muted); font-size: 15px; margin: 18px 0 0; line-height: 1.6; }
.overline, .card-kicker, .code-title { color: var(--cyan); font-size: 10px !important; letter-spacing: .2em; font-weight: 760; margin: 0 0 15px !important; }
.primary-button, .secondary-button { border: 0; cursor: pointer; font-weight: 700; }
.primary-button { background: var(--cyan); color: #06110f; padding: 14px 18px; }
.primary-button:hover { background: #76e9dc; }
.primary-button.compact { padding: 11px 16px; font-size: 13px; }
.secondary-button { background: transparent; color: var(--muted); padding: 11px 16px; }

.storage-panel { border: 1px solid var(--line); background: var(--panel); display: grid; grid-template-columns: 220px 1fr 70px; gap: 24px; align-items: center; padding: 20px 22px; }
.storage-copy span { display: block; color: var(--muted); letter-spacing: .14em; font-size: 9px; margin-bottom: 7px; }
.storage-copy strong, .storage-percent { font-family: "Cascadia Mono", monospace; }
.meter { height: 5px; background: #28323a; overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; background: var(--cyan); transition: width .35s ease; }
.storage-percent { text-align: right; color: var(--cyan); }

.dropzone { margin: 18px 0 38px; min-height: 230px; border: 1px dashed #3a4854; background: #0d1216; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.dragging { border-color: var(--cyan); background: #0e1818; }
.upload-symbol { width: 42px; height: 42px; display: grid; place-items: center; color: var(--cyan); background: var(--cyan-dark); font-size: 23px; margin-bottom: 7px; }
.dropzone strong { font-size: 15px; }
.dropzone > span { color: var(--muted); font-size: 12px; }
.visibility-choice { margin-top: 16px; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.visibility-choice input { accent-color: var(--cyan); }
.upload-queue { display: grid; gap: 8px; margin-top: -20px; margin-bottom: 32px; }
.upload-row { border: 1px solid var(--line); background: var(--panel); padding: 12px 14px; display: grid; grid-template-columns: 1fr 160px 60px; gap: 14px; align-items: center; font-size: 12px; }
.upload-progress { height: 4px; background: #2b353d; }
.upload-progress i { display: block; height: 100%; background: var(--cyan); }
.upload-state { color: var(--muted); text-align: right; }

.library-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.search-wrap input { width: min(430px, 60vw); padding: 11px 13px; border: 1px solid var(--line); background: var(--panel); color: var(--text); outline: 0; }
.search-wrap input:focus { border-color: var(--cyan); }
.file-count { color: var(--muted); font-size: 12px; }
.file-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.file-card { border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.file-preview { aspect-ratio: 4/3; background: #080b0e; overflow: hidden; position: relative; cursor: pointer; display: grid; place-items: center; }
.file-preview img, .file-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder { color: #5f6d78; text-align: center; }
.video-placeholder strong { display: block; font-size: 30px; color: var(--cyan); margin-bottom: 7px; }
.type-badge { position: absolute; top: 10px; left: 10px; background: rgba(6,9,12,.82); color: var(--muted); padding: 5px 7px; font-size: 9px; letter-spacing: .12em; }
.public-badge { position: absolute; top: 10px; right: 10px; color: var(--green); background: rgba(6,9,12,.82); padding: 5px 7px; font-size: 9px; letter-spacing: .1em; }
.file-details { padding: 14px; }
.file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 650; }
.file-meta { color: var(--muted); font-size: 10px; margin-top: 6px; }
.file-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-top: 13px; }
.file-actions button { border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); padding: 7px 8px; font-size: 10px; cursor: pointer; }
.file-actions button:hover { color: var(--text); border-color: #44525d; }
.file-actions .danger:hover { color: var(--red); border-color: rgba(255,124,124,.4); }
.empty-state { border: 1px dashed var(--line); min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.empty-state span { color: var(--muted); font-size: 13px; }

.notice { border-left: 3px solid var(--amber); padding: 16px 18px; background: #18160f; margin-bottom: 20px; display: flex; flex-direction: column; gap: 5px; }
.notice strong { font-size: 13px; color: var(--amber); }
.notice span { color: #aaa38f; font-size: 12px; }
.code-card { background: #080b0e; border: 1px solid var(--line); padding: 22px; overflow: auto; }
.code-card pre { margin: 0; color: #c9d6dc; font: 12px/1.7 "Cascadia Mono", monospace; }
.subheading { font-size: 16px; margin: 38px 0 14px; }
.settings-list, .settings-card { border: 1px solid var(--line); background: var(--panel); }
.settings-row { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row strong, .settings-row span { display: block; }
.settings-row strong { font-size: 13px; }
.settings-row span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.settings-row button { background: transparent; border: 1px solid var(--line); color: var(--red); padding: 7px 10px; cursor: pointer; }
.settings-card { max-width: 620px; padding: 26px; }
.settings-card h2 { margin: 0 0 22px; font-size: 18px; }
.settings-card label, .login-card label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.settings-card input, .login-card input { width: 100%; display: block; border: 1px solid var(--line); background: #0b0f13; color: var(--text); padding: 12px 13px; margin-top: 8px; outline: 0; }
.settings-card input:focus, .login-card input:focus { border-color: var(--cyan); }

.login-body { display: grid; place-items: center; padding: 40px 20px; }
.login-shell { width: min(1120px, 100%); display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: center; }
.login-brand .wordmark { margin-bottom: 100px; }
.login-brand .overline { margin-bottom: 18px !important; }
.login-copy { max-width: 580px; }
.login-card { border: 1px solid var(--line); background: var(--panel); padding: 34px; }
.login-card h2 { margin: 0 0 26px; font-size: 26px; }
.login-card .primary-button { width: 100%; margin-top: 4px; }
.form-error { background: #291517; border-left: 3px solid var(--red); color: #ffb2b2; padding: 11px 12px; font-size: 12px; margin-bottom: 18px; }
.secure-note { color: #66737d; font-size: 10px; text-align: center; line-height: 1.5; margin: 18px 0 0; }

dialog { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0; }
dialog::backdrop { background: rgba(2,4,6,.88); }
.preview-dialog { width: min(1200px, 92vw); max-height: 92vh; }
.preview-dialog #previewContent { display: grid; place-items: center; min-height: 300px; }
.preview-dialog img, .preview-dialog video { max-width: 100%; max-height: 82vh; }
.dialog-close { position: fixed; right: 5vw; top: 4vh; z-index: 2; border: 1px solid #4a5660; background: #090d10; color: var(--text); padding: 9px 12px; cursor: pointer; }
.key-dialog { width: min(620px, 92vw); padding: 30px; }
.key-dialog code { display: block; overflow-wrap: anywhere; background: #080b0e; border: 1px solid var(--line); padding: 15px; color: var(--cyan); margin: 20px 0; font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--text); color: #0a0d10; padding: 12px 16px; font-size: 12px; font-weight: 650; transform: translateY(120px); opacity: 0; transition: .25s; z-index: 100; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1050px) { .file-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 800px) {
  .topbar { padding: 0 20px; }
  .topbar .wordmark { font-size: 0; gap: 0; }
  .nav-button { padding: 0 9px; }
  .app-shell { width: calc(100% - 32px); padding-top: 42px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .storage-panel { grid-template-columns: 1fr auto; }
  .storage-panel .meter { grid-column: 1/-1; grid-row: 2; }
  .file-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .login-shell { grid-template-columns: 1fr; gap: 45px; }
  .login-brand .wordmark { margin-bottom: 60px; }
}
@media (max-width: 520px) {
  .topbar nav { gap: 0; }
  .nav-button { font-size: 11px; padding: 0 7px; }
  .logout-button { font-size: 0; padding: 0 8px; }
  .logout-button::after { content: "↗"; font-size: 15px; }
  .file-grid { grid-template-columns: 1fr; }
  .storage-panel { grid-template-columns: 1fr auto; gap: 10px; }
  .upload-row { grid-template-columns: 1fr 80px; }
  .upload-state { grid-column: 1/-1; text-align: left; }
}

/* Apple-inspired liquid glass visual system */
:root {
  --bg: #05070b;
  --panel: rgba(24, 28, 38, .58);
  --panel-2: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .11);
  --text: rgba(255, 255, 255, .96);
  --muted: rgba(222, 230, 242, .60);
  --cyan: #83e9ff;
  --cyan-dark: rgba(78, 204, 255, .14);
  --amber: #ffd479;
  --red: #ff8585;
  --green: #83f2bd;
  --glass-shadow: 0 24px 70px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(75, 114, 255, .22), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(136, 73, 255, .19), transparent 27%),
    radial-gradient(circle at 67% 85%, rgba(34, 211, 199, .14), transparent 32%),
    linear-gradient(145deg, #05070b 0%, #0b101c 48%, #07090e 100%);
  background-attachment: fixed;
  letter-spacing: -.01em;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(8px);
  opacity: .72;
}

body::before {
  width: 340px;
  height: 340px;
  top: 10vh;
  left: -130px;
  background: radial-gradient(circle at 60% 50%, rgba(94, 151, 255, .34), rgba(94, 151, 255, 0) 68%);
}

body::after {
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: -90px;
  background: radial-gradient(circle at 45% 45%, rgba(87, 237, 211, .22), rgba(87, 237, 211, 0) 68%);
}

.topbar {
  height: 74px;
  width: min(1400px, calc(100% - 32px));
  top: 14px;
  margin: 0 auto;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(14, 18, 27, .60);
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  box-shadow: var(--glass-shadow);
}

.wordmark { letter-spacing: .08em; font-size: 12px; }
.wordmark span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, #61a8ff, #8b68ff 58%, #5ee2d2);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.46), 0 9px 24px rgba(97,168,255,.25);
}

.topbar nav {
  height: auto;
  padding: 4px;
  gap: 2px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.nav-button, .logout-button { height: 36px; border-radius: 10px; transition: .2s ease; }
.nav-button:hover, .nav-button.active { background: rgba(255,255,255,.11); box-shadow: inset 0 1px 0 rgba(255,255,255,.09); }
.logout-button { border-left: 0; margin-left: 2px; }

.app-shell { padding-top: 84px; }
.page-heading h1, .login-brand h1 { font-weight: 720; letter-spacing: -.06em; }
.overline, .card-kicker, .code-title { color: var(--cyan); letter-spacing: .16em; }

.primary-button {
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #3f8cff, #7c62f6 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 12px 28px rgba(66,119,255,.25);
  transition: transform .18s ease, filter .18s ease;
}
.primary-button:hover { background: linear-gradient(135deg, #579cff, #8e76ff 72%); filter: brightness(1.04); transform: translateY(-1px); }
.secondary-button { border-radius: 12px; }

.storage-panel,
.file-card,
.settings-list,
.settings-card,
.code-card,
.notice,
.upload-row,
.login-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  box-shadow: var(--glass-shadow);
}

.storage-panel { border-radius: 22px; padding: 22px 24px; }
.meter { height: 7px; border-radius: 99px; background: rgba(255,255,255,.075); }
.meter i { border-radius: inherit; background: linear-gradient(90deg, #55a6ff, #7f7aff, #65e5d2); box-shadow: 0 0 18px rgba(104,211,255,.5); }

.dropzone {
  min-height: 245px;
  border: 1px dashed rgba(193, 218, 255, .25);
  border-radius: 24px;
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.dropzone:hover, .dropzone.dragging { border-color: rgba(131,233,255,.72); background: rgba(106,177,255,.07); box-shadow: inset 0 0 45px rgba(83,184,255,.06); }
.upload-symbol { border-radius: 14px; background: rgba(115,205,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.upload-row { border-radius: 14px; }

.search-wrap input,
.settings-card input,
.login-card input {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  background: rgba(2,5,10,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus, .settings-card input:focus, .login-card input:focus {
  border-color: rgba(120,190,255,.72);
  box-shadow: 0 0 0 4px rgba(82,151,255,.12);
}

.file-grid { gap: 20px; }
.file-card { border-radius: 22px; overflow: hidden; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.file-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); box-shadow: 0 28px 75px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12); }
.file-preview { background: rgba(2,5,10,.55); }
.type-badge, .public-badge { border: 1px solid rgba(255,255,255,.11); border-radius: 9px; background: rgba(8,12,18,.54); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.file-details { padding: 16px; }
.file-actions button { border-color: rgba(255,255,255,.09); border-radius: 9px; background: rgba(255,255,255,.055); }

.notice { border-left: 1px solid rgba(255,212,121,.32); border-radius: 18px; background: rgba(62,46,14,.28); }
.code-card, .settings-list, .settings-card { border-radius: 22px; }
.settings-row button { border-radius: 10px; background: rgba(255,255,255,.035); }

.login-body { overflow-x: hidden; }
.login-shell { position: relative; }
.login-brand .wordmark { margin-bottom: 92px; }
.login-brand h1 {
  background: linear-gradient(118deg, #fff 15%, #bcd3ff 52%, #a8fff0 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-card { border-radius: 28px; padding: 38px; background: rgba(22,27,38,.57); }
.login-card h2 { font-weight: 660; letter-spacing: -.035em; }
.login-card .primary-button { border-radius: 13px; min-height: 50px; }
.secure-note strong { color: rgba(255,255,255,.8); }
.form-error { border-left: 0; border: 1px solid rgba(255,133,133,.25); border-radius: 12px; background: rgba(98,25,31,.28); }

dialog { border-radius: 24px; background: rgba(17,22,31,.78); backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); box-shadow: 0 35px 100px rgba(0,0,0,.58); }
.dialog-close { border-radius: 12px; background: rgba(18,23,31,.72); backdrop-filter: blur(18px); }
.toast { border-radius: 14px; color: white; background: rgba(31,38,50,.82); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(20px); box-shadow: var(--glass-shadow); }

@media (max-width: 800px) {
  .topbar { width: calc(100% - 20px); top: 10px; padding: 0 10px; border-radius: 18px; }
  .app-shell { padding-top: 68px; }
  .login-card { padding: 28px; }
}

/* White frosted-glass theme */
:root {
  --bg: #e9eef5;
  --panel: rgba(255, 255, 255, .58);
  --panel-2: rgba(255, 255, 255, .48);
  --line: rgba(255, 255, 255, .82);
  --text: #111827;
  --muted: rgba(45, 55, 72, .62);
  --cyan: #087cff;
  --cyan-dark: rgba(0, 122, 255, .10);
  --amber: #a56700;
  --red: #d83b43;
  --green: #07834c;
  --glass-shadow: 0 24px 70px rgba(75, 91, 116, .16), inset 0 1px 0 rgba(255, 255, 255, .94);
}

html { background: #e9eef5; }
body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .98), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(199, 226, 255, .76), transparent 31%),
    radial-gradient(circle at 68% 88%, rgba(207, 244, 239, .58), transparent 34%),
    linear-gradient(145deg, #edf2f8 0%, #dce7f2 52%, #f3f6f9 100%);
}

body::before {
  background: radial-gradient(circle at 60% 50%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 70%);
}

body::after {
  background: radial-gradient(circle at 45% 45%, rgba(170, 224, 234, .38), rgba(255, 255, 255, 0) 70%);
}

.topbar {
  background: rgba(255, 255, 255, .56);
  border-color: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 50px rgba(70, 88, 112, .14), inset 0 1px 0 white;
}

.wordmark span {
  color: white;
  background: linear-gradient(145deg, #1593ff, #007aff 58%, #31b7b0);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.58), 0 9px 24px rgba(0,122,255,.20);
}

.topbar nav {
  border-color: rgba(30, 50, 75, .08);
  background: rgba(255, 255, 255, .44);
}

.nav-button, .logout-button { color: rgba(31, 41, 55, .62); }
.nav-button:hover, .nav-button.active {
  color: #111827;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 4px 16px rgba(55, 74, 97, .10), inset 0 1px 0 white;
}

.primary-button {
  color: white;
  background: linear-gradient(180deg, #168cff, #0071e3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 12px 28px rgba(0,113,227,.20);
}
.primary-button:hover { background: linear-gradient(180deg, #2997ff, #087cea); }

.storage-panel,
.file-card,
.settings-list,
.settings-card,
.code-card,
.notice,
.upload-row,
.login-card {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(255, 255, 255, .88);
  box-shadow: var(--glass-shadow);
}

.meter { background: rgba(40, 59, 82, .10); }
.meter i {
  background: linear-gradient(90deg, #0a84ff, #40a9ff, #44c6bc);
  box-shadow: 0 0 18px rgba(10,132,255,.28);
}

.dropzone {
  color: var(--text);
  border-color: rgba(42, 78, 116, .20);
  background: rgba(255, 255, 255, .34);
}
.dropzone:hover, .dropzone.dragging {
  border-color: rgba(0,122,255,.55);
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 0 45px rgba(0,122,255,.045);
}
.upload-symbol { color: #007aff; background: rgba(0,122,255,.09); }

.search-wrap input,
.settings-card input,
.login-card input {
  color: #111827;
  border-color: rgba(36, 53, 73, .12);
  background: rgba(255, 255, 255, .56);
  box-shadow: inset 0 1px 2px rgba(70, 88, 110, .045);
}
.search-wrap input:focus, .settings-card input:focus, .login-card input:focus {
  border-color: rgba(0,122,255,.55);
  box-shadow: 0 0 0 4px rgba(0,122,255,.10);
}

.file-card:hover {
  border-color: white;
  box-shadow: 0 28px 75px rgba(69,85,107,.20), inset 0 1px 0 white;
}
.file-preview { background: rgba(225, 232, 241, .72); }
.video-placeholder { color: rgba(31, 41, 55, .48); }
.video-placeholder strong { color: #007aff; }
.type-badge, .public-badge {
  border-color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.70);
  box-shadow: 0 6px 18px rgba(54,70,92,.10);
}
.file-actions button {
  color: rgba(31,41,55,.68);
  border-color: rgba(37, 54, 73, .09);
  background: rgba(255,255,255,.52);
}
.file-actions button:hover { color: #111827; border-color: rgba(0,122,255,.20); }

.notice {
  border-color: rgba(164, 103, 0, .20);
  background: rgba(255, 247, 222, .56);
}
.notice strong { color: #8d5900; }
.notice span { color: rgba(75,59,29,.68); }
.code-card { background: rgba(255,255,255,.52); }
.code-card pre { color: #26364a; }
.settings-row button { background: rgba(255,255,255,.44); }

.login-brand h1 {
  color: #101827;
  background: linear-gradient(118deg, #101827 18%, #365b82 62%, #147d86 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.login-card { background: rgba(255,255,255,.60); }
.login-card h2 { color: #101827; }
.secure-note strong { color: #26364a; }
.form-error {
  color: #9d2730;
  border-color: rgba(216,59,67,.18);
  background: rgba(255,230,232,.62);
}

dialog {
  color: var(--text);
  background: rgba(255,255,255,.76);
  border-color: rgba(255,255,255,.90);
  box-shadow: 0 35px 100px rgba(62,78,99,.28), inset 0 1px 0 white;
}
dialog::backdrop { background: rgba(111, 126, 145, .34); backdrop-filter: blur(12px); }
.dialog-close { color: #111827; border-color: rgba(25,42,62,.10); background: rgba(255,255,255,.76); }
.key-dialog code { color: #0069cf; background: rgba(232,239,247,.72); border-color: rgba(35,53,74,.10); }
.toast {
  color: #111827;
  background: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.90);
  box-shadow: 0 18px 55px rgba(69,85,107,.20), inset 0 1px 0 white;
}
