:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #202b32; background: #f6f8f8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { border: 1px solid #ced8d7; border-radius: 6px; background: white; color: #304442; padding: 8px 14px; cursor: pointer; min-height: 38px; }
button:hover { background: #eaf2ef; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #56bca3; outline-offset: 3px; }
.primary { background: #157d63; border-color: #157d63; color: white; }
.primary:hover { background: #10654f; }
.danger { color: #a52d3a; border-color: #e2b6bc; }
.topbar { height: 68px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid #dce4e2; }
.brand { display: flex; align-items: center; gap: 10px; color: #23413a; text-decoration: none; font-weight: 600; }
main { width: min(1080px, calc(100% - 48px)); margin: 40px auto 0; padding-bottom: 116px; }
h1 { margin: 0; font-size: 28px; line-height: 1.4; }
.gate { width: min(100%, 360px); margin: 100px auto 0; }
.gate h1 { margin-bottom: 32px; }
form { display: grid; gap: 14px; }
label { font-size: 14px; }
input[type=password] { width: 100%; border: 1px solid #aebfba; border-radius: 6px; padding: 12px; background: white; }
.heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.heading p { color: #677774; font-size: 14px; margin: 7px 0 0; }
.table-wrap { background: white; border-top: 1px solid #d4dfdc; border-bottom: 1px solid #d4dfdc; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { text-align: left; padding: 13px 16px; color: #677774; background: #eef3f1; font-size: 13px; font-weight: 500; }
td { padding: 17px 16px; border-top: 1px solid #e6ecea; font-size: 14px; }
.size-column { width: 112px; }
.date-column { width: 174px; }
.actions-column { width: 166px; text-align: right; }
.filename { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-mark { flex: 0 0 32px; height: 38px; border: 1px solid #b1cec4; border-radius: 3px; display: grid; place-items: center; color: #197657; background: #eef8f3; font-size: 10px; font-weight: 600; overflow: hidden; }
.filename-text { overflow-wrap: anywhere; line-height: 1.6; }
.file-actions { display: flex; justify-content: flex-end; gap: 8px; }
.file-actions button { padding: 5px 10px; font-size: 13px; }
#empty { color: #7a8884; padding: 64px 16px; text-align: center; }
.upload-bar { position: fixed; bottom: 0; left: 0; right: 0; min-height: 80px; border-top: 1px solid #d4dfdc; background: #fffffff5; display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 16px max(24px, calc((100% - 1080px) / 2)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
#uploadLimit { color: #677774; font-size: 13px; }
#message { font-size: 14px; color: #196a52; overflow-wrap: anywhere; }
#message.error { color: #b33b47; }
#transfer { position: fixed; z-index: 10; right: max(12px, calc((100% - 1080px) / 2)); bottom: 96px; width: min(440px, calc(100% - 24px)); padding: 18px; border: 1px solid #d4dfdc; border-radius: 8px; background: white; box-shadow: 0 6px 24px #243c361a; }
.transfer-heading, .transfer-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#transferName { margin: 8px 0 12px; overflow-wrap: anywhere; color: #677774; font-size: 14px; }
progress { width: 100%; height: 12px; accent-color: #157d63; }
.transfer-meta { margin-top: 8px; font-size: 13px; color: #677774; }
dialog { position: fixed; margin: 0; padding: 20px; width: min(320px, calc(100vw - 24px)); border: 1px solid #cbd7d3; border-radius: 8px; box-shadow: 0 8px 32px #243c3626; }
dialog::backdrop { background: #142a2312; }
dialog h2 { margin: 0; font-size: 17px; }
dialog p { color: #677774; font-size: 14px; overflow-wrap: anywhere; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
#deleteError { color: #b33b47; }
@media(max-width: 650px) {
  .topbar { padding: 0 16px; }
  main { width: calc(100% - 24px); margin-top: 24px; }
  .date-column, td.date-cell, .size-column, td.size-cell { display: none; }
  td, th { padding: 12px 8px; }
  .actions-column { width: 140px; }
  .file-mark { display: none; }
  .gate { margin-top: 64px; }
}
