:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #243029; background: #fbfcfa; font-synthesis: none; --paper: #fbfcfa; --panel: #f0f3ed; --line: #dce3d8; --muted: #737d71; --ink: #243029; --green: #376147; --hover: #e8eee4; --red: #a33a36; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, main:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { padding: 32px 20px 24px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.sidebar-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 8px; }
.brand { font-weight: 750; font-size: 30px; letter-spacing: -2px; text-decoration: none; }
.brand span { font-weight: 450; }
.brand-note { font-size: 11px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; min-height: 40px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 550; white-space: nowrap; text-decoration: none; }
.button:hover { background: var(--hover); }
.button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.button.primary:hover { filter: brightness(1.1); }
.button.danger { background: var(--red); border-color: var(--red); color: #fff; }
.new-zone { justify-content: flex-start; gap: 12px; padding-left: 14px; min-height: 44px; }
.new-zone span { font-size: 22px; font-weight: 300; line-height: 1; }
.recent-heading { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 0; }
.recent-heading h2 { font-size: 11px; color: var(--muted); font-weight: 550; letter-spacing: .03em; }
.text-button { background: none; padding: 4px 0; border: 0; color: var(--muted); font-size: 11px; white-space: nowrap; text-decoration: none; }
.text-button:hover, .text-link:hover { color: var(--green); text-decoration: underline; }
.recent-zones { display: flex; flex-direction: column; gap: 5px; margin-top: -13px; }
.recent-zone { display: flex; text-align: left; padding: 11px 10px; border-radius: 6px; border: 1px solid transparent; color: var(--ink); text-decoration: none; gap: 9px; align-items: center; min-width: 0; }
.recent-zone:hover { background: var(--hover); }
.recent-zone[aria-current="page"] { background: var(--paper); border-color: var(--line); }
.recent-zone-icon { color: var(--green); font-size: 21px; line-height: 1; }
.recent-zone-info { flex: 1; min-width: 0; }
.recent-zone-id { display: block; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.recent-zone-time { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.recent-mode { font-size: 9px; color: var(--muted); border: 1px solid var(--line); padding: 1px 4px; border-radius: 3px; }
.recent-empty { font-size: 12px; color: var(--muted); padding: 10px 8px; }
.sidebar-note { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: auto; padding: 35px 8px 0; }
main { padding: 54px 6%; min-width: 0; position: relative; }
.welcome { max-width: 660px; margin: 16vh auto 0; }
.welcome-mark { font-size: 56px; font-weight: 600; letter-spacing: -5px; color: var(--green); margin-bottom: 32px; }
.welcome h1 { font-size: clamp(23px, 3vw, 34px); font-weight: 600; letter-spacing: -.055em; line-height: 1.45; }
.welcome > p { margin-top: 18px; color: var(--muted); line-height: 1.9; font-size: 14px; }
.welcome > .button { margin-top: 32px; padding: 12px 20px; gap: 40px; }
.welcome > p.welcome-footnote { font-size: 11px; margin-top: 18px; }
.zone-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.badge { background: var(--panel); padding: 3px 7px; border-radius: 4px; letter-spacing: 0; font-size: 10px; }
.badge.manage { color: var(--green); }
.zone-header h1 { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 25px; letter-spacing: -.05em; font-weight: 500; margin-top: 9px; overflow-wrap: anywhere; }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.header-actions .button { font-size: 11px; }
.notice { display: flex; gap: 15px; justify-content: space-between; align-items: center; font-size: 11px; line-height: 1.8; color: var(--muted); padding: 15px 0 0; }
.notice .text-button { color: var(--green); }
.browser-toolbar { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12px; min-width: 0; }
#breadcrumbs button { border: 0; padding: 5px 1px; background: transparent; color: var(--muted); overflow-wrap: anywhere; text-align: left; }
#breadcrumbs button:last-child { color: var(--ink); }
#breadcrumbs button:hover { text-decoration: underline; }
.breadcrumb-divider { color: var(--line); }
.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); font-size: 23px; border-radius: 6px; }
.icon-button:hover { background: var(--panel); color: var(--ink); }
.table-scroll { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; table-layout: fixed; }
th { font-size: 10px; font-weight: 500; color: var(--muted); padding: 11px 10px; background: var(--panel); }
th:first-child { border-radius: 6px 0 0 6px; padding-left: 15px; width: 48%; }
th:last-child { border-radius: 0 6px 6px 0; width: 142px; }
th.size-cell { width: 86px; }
th.date-cell { width: 135px; }
td { padding: 15px 10px; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: middle; }
td:first-child { padding-left: 15px; }
tr:hover td { background: color-mix(in srgb, var(--panel), transparent 55%); }
.file-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-symbol { color: var(--muted); font-size: 23px; flex: 0 0 22px; line-height: 1; }
.file-symbol.folder { color: var(--green); }
.file-link { border: none; padding: 6px 0; background: transparent; color: var(--ink); text-decoration: none; font-size: 12px; text-align: left; overflow-wrap: anywhere; white-space: pre-wrap; }
.file-link:hover { color: var(--green); text-decoration: underline; }
.size-cell, .date-cell { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.file-actions { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.file-actions a, .file-actions button { font-size: 10px; }
.file-actions .delete-action:hover { color: var(--red); }
.file-footer { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 10px; }
.muted { color: var(--muted); }
.empty-state { padding: 70px 10px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.folder-symbol { font-size: 44px; color: var(--green); display: block; line-height: 1; margin-bottom: 22px; }
.empty-state h2 { font-size: 14px; font-weight: 500; }
.empty-state p { margin-top: 9px; color: var(--muted); font-size: 12px; }
.loading-state, .list-error { text-align: center; padding: 70px 15px; color: var(--muted); font-size: 12px; }
.list-error .button { margin-top: 18px; }
.storage-note { margin-top: 40px; text-align: center; font-size: 11px; color: var(--muted); }
.uploads-panel { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 22px; background: var(--panel); }
.uploads-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uploads-heading h2 { font-size: 12px; font-weight: 600; }
#upload-list { list-style: none; padding: 0; margin: 12px 0 0; }
.upload-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 12px 0; }
.upload-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-status { font-size: 10px; color: var(--muted); }
.upload-controls { grid-row: 1 / span 3; grid-column: 2; display: flex; gap: 12px; align-items: center; }
.upload-item progress { width: 100%; height: 3px; accent-color: var(--green); border: none; border-radius: 3px; overflow: hidden; background: var(--line); }
.upload-item progress::-webkit-progress-bar { background: var(--line); }
.upload-item progress::-webkit-progress-value { background: var(--green); }
.upload-item progress::-moz-progress-bar { background: var(--green); }
.upload-note { font-size: 10px; margin-top: 8px; }
.error-view { max-width: 540px; margin: 20vh auto 0; }
.error-view h1 { font-size: 24px; font-weight: 500; letter-spacing: -.04em; margin: 15px 0; }
.error-view > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.error-view .text-link { display: block; margin-top: 26px; font-size: 12px; text-underline-offset: 4px; }
.error-view .button { margin-top: 22px; }
.drop-overlay { position: fixed; inset: 14px; background: color-mix(in srgb, var(--paper), transparent 5%); border: 2px dashed var(--green); border-radius: 14px; display: flex; align-items: center; justify-content: center; z-index: 30; pointer-events: none; }
.drop-overlay p { font-size: 22px; color: var(--green); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--paper); font-size: 12px; padding: 13px 20px; border-radius: 8px; max-width: calc(100vw - 32px); z-index: 100; box-shadow: 0 4px 18px #0002; }
dialog { width: 450px; max-width: calc(100vw - 32px); padding: 24px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 80px #0002; }
dialog::backdrop { background: #1118; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-heading h2 { font-size: 18px; font-weight: 550; }
#dialog-description { font-size: 12px; color: var(--muted); margin-top: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
#dialog-field { display: block; margin-top: 24px; font-size: 11px; }
#dialog-input { display: block; width: 100%; margin-top: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--paper); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 28px; }
.field-error { color: var(--red); font-size: 11px; margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 15px; padding: 10px 15px; background: var(--paper); border: 1px solid var(--green); z-index: 200; }
.skip-link:focus { top: 10px; }
@media (min-width: 1500px) { main { padding-right: 9%; padding-left: 9%; } }
@media (max-width: 1100px) { .shell { grid-template-columns: 210px minmax(0, 1fr); } main { padding: 40px 4%; } .zone-header { align-items: flex-start; flex-direction: column; } .header-actions { justify-content: flex-start; } th:first-child { width: auto; } .date-cell { display: none; } .notice { align-items: flex-start; } }
@media (max-width: 680px) { .shell { display: block; } .sidebar { padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar-head { padding: 0; justify-content: flex-start; gap: 12px; } .brand { font-size: 26px; } .new-zone { min-height: 38px; padding: 5px 12px; } .recent-heading { grid-column: 1 / -1; padding: 0; margin-top: 4px; } .recent-zones { grid-column: 1 / -1; flex-direction: row; overflow-x: auto; gap: 7px; margin-top: -7px; padding-bottom: 2px; } .recent-zone { flex: 0 0 auto; padding: 7px 9px; } .recent-zone-id { font-size: 11px; max-width: 130px; } .recent-zone-time, .recent-zone-icon, .sidebar-note { display: none; } .recent-empty { padding: 4px 0; font-size: 11px; } main { padding: 28px 20px 55px; } .welcome { margin-top: 9vh; } .welcome-mark { margin-bottom: 22px; } .welcome h1 { font-size: 25px; } .welcome > p { font-size: 12px; } .zone-header { gap: 20px; padding-bottom: 24px; } .zone-header h1 { font-size: 23px; } .header-actions { width: 100%; gap: 6px; } .header-actions .button { font-size: 10px; padding: 8px 10px; } .notice { flex-direction: column; gap: 5px; } .browser-toolbar { min-height: 88px; gap: 8px; } .toolbar-actions .button { padding: 8px 10px; font-size: 10px; } th { padding: 10px 7px; } th:first-child, td:first-child { padding-left: 9px; } th.size-cell { width: 68px; } th:last-child { width: 50px; } td { padding: 12px 7px; } .file-name { gap: 6px; } .file-symbol { font-size: 19px; flex-basis: 18px; } .file-link { font-size: 11px; } .file-actions { flex-direction: column; gap: 1px; } .file-actions .text-button { font-size: 9px; } .file-actions a { display: none; } .empty-state { padding: 54px 10px; } .storage-note { display: none; } .uploads-panel { padding: 12px; } .upload-name { font-size: 11px; } .error-view { margin-top: 12vh; } }
@media (prefers-color-scheme: dark) { :root { color: #e0e7dc; background: #151a16; --paper: #151a16; --panel: #1d251e; --line: #333e34; --muted: #97a491; --ink: #e0e7dc; --green: #608e69; --hover: #29372c; --red: #b7564f; } .toast { background: #e0e7dc; color: #151a16; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
