:root {
  color-scheme: light;
  --ink: #192b3a;
  --muted: #788895;
  --line: #e7edf0;
  --soft: #f5f8f8;
  --teal: #137e79;
  --teal-dark: #0c6965;
  --teal-pale: #e9f5f3;
  --white: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fbfcfc; font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.7px; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; color: #fff; background: var(--teal); font-size: 16px; }
.eyebrow { margin: 0 0 9px; color: #82929d; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; line-height: 1.6; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: 'Segoe UI', Arial, sans-serif; letter-spacing: -.65px; }
h1 { margin-bottom: 7px; font-size: 27px; }
h2 { margin-bottom: 5px; font-size: 17px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 18px; border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; transition: background .16s, transform .16s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--teal); }
.button.primary:hover { background: var(--teal-dark); }
.button:disabled { cursor: wait; opacity: .7; }
.wide { width: 100%; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 35px #203c4710; }
.auth-wrap, .public-wrap { display: flex; min-height: 100vh; align-items: center; justify-content: center; flex-direction: column; padding: 34px 20px; background: radial-gradient(ellipse at 50% 35%, #e9f5f2 0, #f8fbfa 49%, #fbfcfc 77%); }
.auth-wrap > .brand, .public-wrap > .brand { margin-bottom: 22px; }
.auth-panel { width: min(100%, 410px); padding: 35px; }
.auth-panel > .muted { margin-bottom: 26px; }
.auth-panel label { display: block; margin: 18px 0 7px; font-size: 12px; font-weight: 700; }
.auth-panel input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #dfe7e9; border-radius: 7px; outline: 0; }
.auth-panel input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #137e7915; }
.auth-panel .remember-option { display: flex; align-items: center; gap: 9px; margin: 15px 0 0; color: #60737f; cursor: pointer; font-size: 12px; font-weight: 500; }
.auth-panel .remember-option input { width: 15px; height: 15px; flex: 0 0 auto; margin: 0; accent-color: var(--teal); }
.auth-panel .button { margin-top: 21px; }
.auth-foot { margin: 22px 0 0; text-align: center; }
.form-error { margin: 12px 0 0; color: #ad3b37; font-size: 12px; line-height: 1.5; }
.share-panel { width: min(100%, 450px); padding: 38px; text-align: center; }
.share-panel h1 { overflow-wrap: anywhere; font-size: 22px; }
.share-panel > .muted { margin: 11px 0 25px; }
.share-panel .tiny { margin: 17px 0 0; }
.file-icon { display: inline-grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--teal); background: var(--teal-pale); font-size: 17px; }
.file-icon.large { width: 54px; height: 54px; margin-bottom: 19px; border-radius: 16px; font-size: 24px; }
.footer-note { margin: 19px 0 0; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; display: flex; width: 244px; flex-direction: column; padding: 26px 17px 15px; border-right: 1px solid var(--line); background: #fff; }
.sidebar > .brand { padding: 0 6px; }
.side-label { margin: 46px 8px 13px; color: #99a6ae; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.nav-link { display: flex; height: 40px; align-items: center; gap: 11px; padding: 0 11px; border-radius: 7px; color: #667986; font-size: 12px; font-weight: 600; }
.nav-link span { font-size: 16px; }
.nav-link.active, .nav-link:hover { color: var(--teal); background: #eff7f6; }
.sidebar-bottom { margin-top: auto; }
.storage-card { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; }
.storage-card strong { font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; }
.storage-card .muted { font-size: 11px; }
.profile { display: flex; align-items: center; gap: 9px; padding: 13px 2px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--teal); background: var(--teal-pale); font-weight: 700; }
.profile-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.profile-text strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.profile-text .muted { font-size: 10px; }
.profile form { margin: 0; }
.icon-button { width: 30px; height: 30px; border: 0; border-radius: 7px; color: #81919b; background: transparent; cursor: pointer; font-size: 17px; }
.icon-button:hover { color: var(--teal); background: var(--soft); }
.main-content { width: min(100% - 244px, 1120px); margin-left: 244px; padding: 35px 48px 22px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.topbar .eyebrow { margin-bottom: 6px; }
.topbar h1 { margin: 0; font-size: 25px; }
.topbar-tag { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 20px; color: #657985; background: #fff; font-size: 10px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #40a879; box-shadow: 0 0 0 3px #40a87918; }
.upload-panel { display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 21px 23px; border: 1px solid #d9eae7; border-radius: 12px; background: linear-gradient(110deg, #f1f8f7, #fbfdfc); }
.upload-copy { display: flex; align-items: center; gap: 14px; }
.upload-copy h2 { margin-bottom: 4px; }
.upload-copy p { margin: 0; font-size: 11px; }
.upload-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: var(--teal); background: #deefec; font-size: 23px; }
.upload-button { min-width: 116px; }
.progress-wrap { width: 100%; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: #60737f; font-size: 11px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 5px; background: #dfe9e8; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .2s; }
.upload-error { width: 100%; }
.section { margin-top: 34px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading p { margin: 0; font-size: 11px; }
.count-pill { display: inline-grid; min-width: 25px; height: 25px; place-items: center; padding: 0 7px; border-radius: 15px; color: var(--teal); background: var(--teal-pale); font-size: 10px; font-weight: 700; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 15px; border-bottom: 1px solid var(--line); color: #93a0a8; font-size: 9px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
td { padding: 12px 15px; border-bottom: 1px solid #eff2f3; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
.file-cell { display: flex; max-width: 350px; align-items: center; gap: 10px; }
.file-name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.align-right { text-align: right; white-space: nowrap; }
.action-cell { display: flex; justify-content: flex-end; gap: 13px; }
.text-action { padding: 0; border: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.text-action:hover { color: var(--teal-dark); text-decoration: underline; }
.empty-state { padding: 35px 16px; border: 1px dashed #dfe7e9; border-radius: 10px; background: #fff; text-align: center; }
.empty-state strong { display: block; margin: 10px 0 5px; font-family: 'Segoe UI', Arial, sans-serif; font-size: 13px; }
.empty-state p { margin: 0; font-size: 11px; }
.empty-icon { color: #9aacae; font-size: 22px; }
.empty-state.compact { padding: 20px; }
.empty-state.compact p { margin: 0; }
.activity-section { margin-top: 32px; }
.event-badge { display: inline-block; padding: 5px 8px; border-radius: 12px; color: #527167; background: #edf6f1; font-size: 9px; font-weight: 700; }
.main-footer { margin-top: 34px; padding: 15px 0; border-top: 1px solid var(--line); color: #9aa6ad; font-size: 10px; }

@media (max-width: 900px) {
  .main-content { padding-right: 26px; padding-left: 26px; }
}
@media (max-width: 680px) {
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-label, .nav-link, .sidebar-bottom { display: none; }
  .app-shell { display: block; }
  .main-content { width: 100%; margin: 0; padding: 25px 16px 15px; }
  .topbar h1 { font-size: 22px; }
  .topbar-tag { padding: 7px 9px; font-size: 9px; }
  .upload-panel { padding: 17px; }
  .upload-copy { gap: 10px; }
  .upload-copy p { max-width: 220px; line-height: 1.5; }
  .upload-button { width: 100%; }
  th, td { padding: 11px 10px; }
  .file-cell { max-width: 170px; }
  .action-cell { gap: 9px; }
  .auth-panel { padding: 28px 23px; }
}
