:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  --bg: #f4f3ee;
  --paper: #fffefa;
  --ink: #23241d;
  --muted: #5b5e53;
  --edge: #ddded4;
  --lime: #dafa62;
  --lime-hover: #c8e94d;
  --error: #9d2822;
  --radius: 1.5rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #4b6812; outline-offset: 3px; }
.top { background: var(--ink); color: #fffefa; }
.top-inner { max-width: 74rem; min-height: 4.5rem; margin: auto; padding: .75rem clamp(1rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-size: 1.075rem; letter-spacing: -.04em; white-space: nowrap; }
.brand strong { color: var(--lime); font-weight: 680; }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-content: center; background: var(--lime); border-radius: .52rem; }
.brand-mark i { width: .66rem; height: .44rem; display: block; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: skew(-26deg) rotate(27deg); }
.top .quiet { color: #fffefa; border-color: #74786a; background: transparent; }
.top .quiet:hover { background: #3e4037; }
.top :focus-visible { outline-color: var(--lime); }
.dashboard { max-width: 74rem; padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); margin: auto; }
.intro { margin-bottom: 2rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.15rem, 5vw, 3.9rem); letter-spacing: -.065em; line-height: 1.04; }
h2 { font-size: 1.4rem; letter-spacing: -.045em; line-height: 1.2; }
p { color: var(--muted); line-height: 1.55; }
.intro p { margin-top: .75rem; }
.grid { display: grid; align-items: start; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.25rem; }
.panel { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); padding: clamp(1.2rem, 3.5vw, 2rem); box-shadow: 0 .35rem 1.25rem #26291108; }
.center { display: grid; place-items: start center; padding: clamp(2rem, 10vh, 7rem) 1rem 2rem; }
.gate { width: min(100%, 31rem); }
.gate h1 { margin-top: 1rem; font-size: clamp(2rem, 5vw, 2.75rem); }
.gate p { margin-top: .8rem; }
.gate-icon { width: 3.75rem; height: 3.75rem; border-radius: 1rem; background: var(--lime); display: grid; place-items: center; }
.lock-icon { width: 1.25rem; height: 1rem; border: 2px solid var(--ink); border-radius: .25rem; position: relative; margin-top: .42rem; }
.lock-icon::before { content: ""; position: absolute; width: .65rem; height: .54rem; border: 2px solid var(--ink); border-bottom: 0; border-radius: .65rem .65rem 0 0; bottom: 100%; left: 50%; transform: translateX(-50%); }
.file-icon { display: inline-block; width: 1.08rem; height: 1.45rem; border: 2px solid currentColor; border-radius: .2rem; position: relative; flex: none; }
.file-icon::after { content: ""; position: absolute; background: currentColor; width: .5rem; height: 2px; left: .17rem; bottom: .37rem; box-shadow: 0 -.26rem currentColor; }
.drop { display: flex; position: relative; align-items: center; flex-direction: column; gap: .55rem; margin-top: 1.25rem; padding: 1.35rem 1rem; border: 1px dashed #9da38b; border-radius: 1rem; background: #f7f8ee; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.drop:hover, .drop.dragging, .drop:focus-within { border-color: #516b15; background: #f1f7dc; }
.drop:focus-within { outline: 2px solid #4b6812; outline-offset: 3px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .file-icon { margin-bottom: .15rem; }
.drop span:last-child, small { color: var(--muted); font-size: .875rem; }
.field { display: grid; gap: .4rem; margin: 1.35rem 0 1.2rem; }
.field label, .share-result label { font-weight: 650; font-size: .925rem; }
.password-group { display: flex; position: relative; }
.password-group input, .share-result input { color: var(--ink); background: white; border: 1px solid #aaad9f; border-radius: .6rem; width: 100%; min-width: 0; padding: .7rem .75rem; }
.password-group input { padding-right: 5.6rem; }
.reveal { position: absolute; inset: .25rem .25rem .25rem auto; color: #3e4e20; background: #eef1e5; border: 0; border-radius: .4rem; padding: 0 .55rem; font-size: .875rem; font-weight: 600; }
.primary, .quiet, .remove { min-height: 2.65rem; padding: .55rem .85rem; border: 1px solid var(--edge); border-radius: .6rem; font-size: .9rem; font-weight: 640; }
.primary { background: var(--lime); color: var(--ink); border-color: transparent; }
.primary:hover { background: var(--lime-hover); }
.quiet { background: var(--paper); color: var(--ink); }
.quiet:hover { background: #f0f1e9; }
.remove { color: var(--error); background: var(--paper); border-color: #e4ccc9; }
.remove:hover { background: #f9efed; }
.full { width: 100%; }
.upload-actions, .file-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.progress-box, .share-result { display: grid; gap: .5rem; margin-top: 1rem; }
.progress-box label { font-size: .9rem; color: var(--muted); }
progress { width: 100%; accent-color: #668522; }
.share-result { padding: 1rem; background: #eff7d5; border: 1px solid #d7e5b6; border-radius: .75rem; }
.share-result button { justify-self: start; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; justify-content: space-between; }
.section-heading span { font-size: .875rem; color: var(--muted); }
.manager-note { margin-top: .55rem; }
.notice { margin-top: 1rem; padding: .85rem; border: 1px solid var(--edge); border-radius: .8rem; background: #f7f7ef; }
.file-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.file-list:empty { display: none; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; padding: .8rem 0; border-top: 1px solid var(--edge); }
.file-details { min-width: 0; display: grid; gap: .2rem; }
.file-details strong { overflow-wrap: anywhere; }
.file-row .active { display: inline-block; justify-self: start; color: #364716; background: #eaf2d1; border-radius: .35rem; padding: .15rem .45rem; font-size: .875rem; }
.error { color: var(--error); }
.gate .error { margin: 0 0 1rem; }
#upload-message:not(:empty), .manager-message:not(:empty) { margin-top: .8rem; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
