:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --surface: #111512;
  --surface-hover: #191e1a;
  --line: #252d27;
  --text: #f0f3ef;
  --muted: #99a69b;
  --green: #b4f272;
  --green-dim: #182415;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; border-radius: 7px; }
button:disabled { opacity: .45; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
button, a, input { transition: background .15s, border-color .15s, color .15s; }
input { border: 1px solid #344036; border-radius: 7px; padding: 14px 16px; width: 100%; background: #101411; color: var(--text); }
input::placeholder { color: #7c8980; opacity: 1; }
input:hover { border-color: #52604f; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 650; letter-spacing: -.8px; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; display: inline-block; background: var(--green); border-radius: 5px 5px 5px 0; position: relative; }
.brand-mark::after { content: ''; width: 7px; height: 7px; position: absolute; bottom: 4px; right: 4px; border: 1.5px solid #1b2b11; border-top: 0; border-left: 0; }
.eyebrow, .nav-label { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1.8px; color: var(--muted); }
.primary { background: var(--green); color: #14200e; padding: 13px 21px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.primary:hover { background: #c9ff94; }
.secondary { background: transparent; border: 1px solid #38433a; color: #dce5dc; padding: 12px 17px; font-size: 13px; white-space: nowrap; }
.secondary:hover { background: var(--surface-hover); border-color: #65785b; }
.app { display: grid; grid-template-columns: 224px minmax(0,1fr); min-height: 100vh; }
aside { background: #0e110f; border-right: 1px solid var(--line); padding: 33px 22px 25px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.nav-label { margin: 61px 12px 17px; font-size: 9px; color: #7d8b80; }
.nav { display: flex; gap: 12px; align-items: center; text-align: left; padding: 13px 14px; color: var(--green); background: var(--green-dim); font-size: 13px; font-weight: 550; border: 1px solid #2c3d24; }
.storage { border-top: 1px solid var(--line); padding: 22px 3px 0; margin-top: auto; }
.storage-icon { font-size: 23px; color: var(--green); margin-bottom: 12px; }
.storage strong { font-size: 12px; font-weight: 500; }
.storage p { font-size: 11px; color: var(--muted); margin: 10px 0 12px; }
.storage small { display: block; font-size: 10px; color: #8a988b; margin-top: 10px; }
progress { appearance: none; width: 100%; height: 3px; border: 0; border-radius: 5px; overflow: hidden; background: #2b342c; }
progress::-webkit-progress-bar { background: #2b342c; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.logout { background: none; text-align: left; color: var(--muted); margin-top: 32px; font-size: 12px; padding: 8px 3px; }
.logout:hover { color: var(--green); }
main { padding: 45px clamp(24px,4.5vw,72px) 24px; max-width: 1550px; width: 100%; margin: 0 auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
header .eyebrow { color: var(--green); }
header h1 { font-size: clamp(26px,3vw,39px); font-weight: 500; letter-spacing: -1.3px; line-height: 1.5; margin: 15px 0 7px; }
h1 span { color: var(--green); }
header p { font-size: 13px; color: var(--muted); margin: 0; }
.avatar { border: 1px solid #394531; background: var(--green-dim); border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; color: var(--green); font: 14px ui-monospace, monospace; flex-shrink: 0; }
.overview { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 34px 0 33px; padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.overview>div { display: flex; align-items: center; gap: 17px; padding: 0 28px; border-left: 1px solid var(--line); }
.overview>div:first-child { padding-left: 0; border-left: 0; }
.overview small { font-size: 11px; color: var(--muted); display: block; margin-bottom: 9px; }
.overview strong { display: block; font-size: 23px; font-weight: 450; letter-spacing: -.5px; }
.overview-mark { color: var(--green); font-size: 25px; width: 30px; text-align: center; }
.overview-mark.lilac { color: #97a58f; }
.device i { background: var(--green); width: 7px; height: 7px; border-radius: 50%; margin: 0 13px; }
.device strong { font-size: 19px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.actions { display: flex; gap: 9px; }
#breadcrumbs { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 14px; }
#breadcrumbs button { padding: 5px 0; background: none; color: #e3eae0; font-size: 14px; }
#breadcrumbs button:hover { color: var(--green); }
#breadcrumbs span { color: #70816f; }
.search { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid #344036; margin: 17px 0 22px; color: #9bad98; }
.search input { border: 0; border-radius: 0; padding: 15px 0; font-size: 12px; background: transparent; outline-offset: 0; }
.search span { font-size: 24px; }
.dropzone { border: 1px dashed #3a4a32; border-radius: 8px; background: #10170e; display: flex; align-items: center; gap: 17px; padding: 23px; transition: background .15s; }
.dropzone.drag { background: #203518; border-color: var(--green); }
.drop-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #3a4a32; border-radius: 7px; color: var(--green); font-size: 24px; flex-shrink: 0; }
.dropzone strong { font-size: 13px; font-weight: 500; color: #d8e5d0; }
.dropzone p { font-size: 11px; color: #93a58a; margin: 7px 0 0; }
.drop-note { font: 8px ui-monospace, monospace; letter-spacing: 1.4px; color: #8eaa7c; margin-left: auto; }
#message { font-size: 12px; min-height: 18px; color: var(--green); margin: 15px 0; }
.error, #message.error { color: #ff9b8d; }
.file-table { border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { background: #111512; color: #99a497; font-size: 10px; font-weight: 400; padding: 15px 20px; border-bottom: 1px solid var(--line); }
td { padding: 17px 20px; font-size: 12px; border-bottom: 1px solid #202721; color: #9caa9b; }
tbody tr:hover { background: #121a10; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: #e1e8dd; }
.file-name { display: flex; align-items: center; gap: 12px; max-width: 480px; }
.file-name span:last-child { overflow: hidden; text-overflow: ellipsis; }
.file-icon { display: grid; place-items: center; color: var(--green); width: 30px; min-width: 30px; height: 34px; border-radius: 5px; background: #1d2918; font-size: 18px; }
.file-icon.doc { color: #a9b7a3; background: #1b221c; }
.file-button { background: none; color: inherit; padding: 0; max-width: 100%; text-align: left; }
.file-button:hover { color: var(--green); }
.download { font-size: 11px; color: var(--green); padding: 7px; border-radius: 5px; }
.download:hover { background: #26371d; }
.empty { text-align: center; padding: 39px 20px 43px; color: var(--muted); }
.empty>span { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1px solid #35422c; border-radius: 50%; font-size: 32px; color: #9abc80; }
.empty h3 { font-size: 14px; font-weight: 450; color: #d2decc; margin-top: 20px; }
.empty p { font-size: 12px; color: #8f9e8b; }
footer { display: flex; justify-content: space-between; gap: 15px; color: #85937f; font: 9px ui-monospace, monospace; margin: 26px 0 10px; letter-spacing: .15px; }
.upload-progress { margin-top: 15px; font-size: 12px; color: var(--green); }
.upload-progress progress { display: block; margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.login-page { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-story { background: #0d120c; border-right: 1px solid var(--line); padding: 43px 11%; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; position: relative; }
.login-story>div { padding: 50px 0; }
.login-story h1 { font-size: clamp(38px,4.3vw,67px); line-height: 1.42; font-weight: 450; letter-spacing: -2px; margin: 28px 0; }
.login-story .eyebrow { color: var(--green); font-size: 9px; }
.login-story p { color: #a0b09a; font-size: 14px; line-height: 1.9; }
.login-story small { font-size: 10px; color: #8d9f83; display: flex; align-items: center; gap: 9px; }
.login-story small::before { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.login-panel { display: grid; place-items: center; padding: 45px; }
.login-panel form { width: 100%; max-width: 355px; }
.pill { font: 9px ui-monospace, monospace; letter-spacing: 1.5px; color: var(--green); display: inline-block; padding: 0 0 10px; border-bottom: 1px solid #506f37; }
h2 { font-size: 28px; font-weight: 450; letter-spacing: -.7px; margin: 27px 0 10px; }
.login-panel p { font-size: 13px; color: var(--muted); margin: 0 0 34px; }
label[for] { display: block; font-size: 12px; color: #b5c1af; margin: 23px 0 11px; }
.login-panel .primary { width: 100%; margin-top: 18px; display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; }
.login-panel small { display: block; color: #8f9d8b; font-size: 10px; text-align: center; margin-top: 25px; line-height: 1.8; }
.login-panel .error { color: #ff9b8d; margin: 15px 0; }
dialog { border: 1px solid #3b4c30; border-radius: 12px; max-width: 450px; width: calc(100% - 40px); padding: 32px; color: var(--text); background: #111710; }
dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
@media(max-width:1000px) {
  .app { grid-template-columns: 190px minmax(0,1fr); }
  aside { padding: 30px 17px; }
  .brand { font-size: 19px; }
  main { padding: 35px 27px 20px; }
  .overview>div { padding: 0 20px; gap: 9px; }
  .overview-mark { display: none; }
  .device i { margin: 0 6px; }
  .drop-note { display: none; }
  .file-name { max-width: 230px; }
  th, td { padding: 15px; }
}
@media(max-width:750px) {
  .toolbar { align-items: flex-start; flex-direction: column; }
  .actions { width: 100%; }
  .actions button { flex: 1; }
  .overview strong { font-size: 19px; }
  .login-story { padding: 35px 9%; }
  .login-panel { padding: 30px; }
}
@media(max-width:600px) {
  .app { display: block; }
  aside { height: auto; position: static; flex-direction: row; align-items: center; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-label, .nav, .storage { display: none; }
  .logout { margin: 0 0 0 auto; padding: 7px; font-size: 11px; }
  header h1 { font-size: 27px; letter-spacing: -.8px; margin-top: 12px; }
  header p { font-size: 11px; }
  header .eyebrow { font-size: 8px; }
  main { padding: 28px 19px 20px; }
  .overview { margin: 27px 0; padding: 20px 0; }
  .overview>div { padding: 0 12px; }
  .overview strong { font-size: 16px; }
  .overview small { font-size: 9px; }
  .device i { display: none; }
  .dropzone { padding: 19px 15px; gap: 12px; }
  .dropzone strong { font-size: 12px; }
  .dropzone p { font-size: 10px; }
  .search { margin-top: 12px; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  .file-name { max-width: 165px; gap: 8px; }
  th, td { padding: 13px 11px; }
  .download { font-size: 10px; padding: 5px; }
  footer span:last-child { display: none; }
  .login-page { display: block; }
  .login-story { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 25px; }
  .login-story>div { padding: 35px 0 10px; }
  .login-story h1 { font-size: 37px; line-height: 1.45; letter-spacing: -1px; margin: 13px 0 6px; }
  .login-story h1 br { display: none; }
  .login-story p, .login-story small { display: none; }
  .login-panel { padding: 38px 25px; }
  .login-panel form { max-width: 400px; }
  .avatar { width: 36px; height: 36px; }
  h2 { font-size: 26px; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none !important; } }
