:root { --navy: #0f1d2b; --navy-2: #172b3d; --paper: #f4f0e8; --white: #fffdf8; --orange: #e86a33; --teal: #2c8c82; --ink: #162532; --muted: #71808a; --line: #d9d9d1; --mono: 'IBM Plex Mono', monospace; --display: 'Space Grotesk', sans-serif; --body: 'Noto Sans SC', sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 216px; flex: 0 0 216px; background: var(--navy); color: #d8e0e5; display: flex; flex-direction: column; padding: 26px 18px 20px; min-height: 100vh; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: #fffdf8; font: 700 14px var(--display); }
.brand-mark { width: 28px; height: 28px; background: var(--orange); color: white; display: grid; place-items: center; font: 700 16px var(--display); }
.sidebar-label, .section-kicker, .eyebrow, .stat-label, .field-label { font: 500 10px var(--mono); text-transform: uppercase; }
.sidebar-label { color: #718696; margin: 58px 10px 14px; }
.nav-list { display: grid; gap: 4px; }
.nav-item { border: 0; background: transparent; color: #9cafbc; display: flex; align-items: center; gap: 12px; padding: 11px 12px; text-align: left; transition: .2s ease; }
.nav-item svg { width: 16px; height: 16px; }
.nav-item:hover, .nav-item.active { color: #fffdf8; background: var(--navy-2); }
.nav-item.active { box-shadow: inset 3px 0 var(--orange); }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 7px; border-top: 1px solid #2a3b4a; padding: 18px 8px 0; color: #93a4b0; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--teal); box-shadow: 0 0 0 3px rgba(44,140,130,.16); }
.mono, code, pre { font-family: var(--mono); }
.main-content { width: min(1480px, calc(100% - 216px)); padding: 34px clamp(24px, 4vw, 64px) 28px; overflow: hidden; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--orange); margin: 0 0 6px; }
h1, h2, p { margin: 0; }
h1 { font: 600 36px var(--display); }
h2 { font: 600 18px var(--display); }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.connection { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--muted); }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--ink); }
.icon-button:hover { border-color: var(--orange); color: var(--orange); }
.icon-button.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.icon-button svg, .primary-button svg, .outline-button svg, .table-action svg { width: 15px; height: 15px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.stat-block { padding: 22px 22px 20px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.stat-block:last-child { border-right: 0; margin-right: 0; }
.stat-block.accent .stat-value { color: var(--orange); }
.stat-label { color: var(--muted); }
.stat-value { font: 600 31px var(--display); margin: 8px 0 2px; }
.stat-note { color: var(--muted); font-size: 12px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr); gap: 24px; margin-bottom: 24px; }
.panel { background: var(--white); border: 1px solid var(--line); }
.upload-panel { padding: 25px 28px 22px; min-height: 350px; }
.activity-panel { padding: 25px 24px 16px; }
.panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.section-kicker { color: var(--orange); margin-bottom: 7px; }
.format-hint, .live-tag, .method { font: 500 10px var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 5px 8px; white-space: nowrap; }
.live-tag { color: var(--teal); display: inline-flex; align-items: center; gap: 6px; border-color: #b8d8d2; }
.method { color: var(--teal); border-color: #b8d8d2; }
.field-label { display: block; color: var(--muted); margin-bottom: 8px; }
select, input:not([type=file]) { border: 1px solid var(--line); background: var(--paper); padding: 11px 12px; width: 100%; color: var(--ink); outline: none; }
select:focus, input:focus { border-color: var(--orange); }
.drop-zone { border: 1px dashed #aebbbd; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 158px; margin: 15px 0; transition: .2s ease; cursor: pointer; background: #fcfaf5; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--orange); background: #fff4ed; }
.drop-zone input { display: none; }
.drop-icon { color: var(--orange); margin-bottom: 10px; }
.drop-icon svg { width: 26px; height: 26px; stroke-width: 1.4; }
.drop-title { font: 500 15px var(--display); }
.drop-subtitle { color: var(--muted); font-size: 12px; margin-top: 6px; }
.upload-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.upload-message { color: var(--muted); font-size: 12px; }
.primary-button, .outline-button { border: 0; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.primary-button { color: white; background: var(--orange); }
.primary-button:hover { background: #ca5424; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.outline-button { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.outline-button:hover { color: var(--orange); border-color: var(--orange); }
.activity-list { display: grid; }
.activity-item { display: flex; border: 0; border-top: 1px solid var(--line); padding: 13px 0; align-items: center; justify-content: space-between; color: var(--ink); background: transparent; text-align: left; }
.activity-item:hover strong { color: var(--orange); }
.activity-item svg { width: 16px; color: #9aa8ad; }
.activity-file { display: flex; align-items: center; gap: 11px; min-width: 0; }
.activity-file strong { display: block; font: 500 13px var(--display); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-file small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.file-badge { background: #e7f1ef; color: var(--teal); font: 600 9px var(--mono); padding: 7px 5px; }
.empty-state { color: var(--muted); padding: 26px 0; text-align: center; font-size: 12px; }
.buckets-panel { padding: 25px 28px 10px; margin-bottom: 24px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 670px; }
th { color: var(--muted); font: 500 10px var(--mono); text-align: left; padding: 0 10px 11px; text-transform: uppercase; }
td { border-top: 1px solid var(--line); padding: 13px 10px; color: #40515b; }
.bucket-name { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 0; background: transparent; color: var(--ink); text-align: left; }
.bucket-name strong { display: block; font: 500 14px var(--display); }
.bucket-name small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }
.bucket-name:hover strong { color: var(--orange); }
.bucket-symbol { width: 29px; height: 29px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.bucket-symbol svg { width: 15px; }
.table-action { width: 30px; height: 30px; border: 1px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; }
.table-action:hover { color: #b64027; border-color: #b64027; }
.api-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr); gap: 24px; }
.api-panel, .preview-panel { padding: 25px 28px; }
.api-copy { color: var(--muted); font-size: 12px; margin: -8px 0 18px; }
.endpoint-row { display: flex; align-items: stretch; }
.endpoint-row code { background: var(--navy); color: #e8f0ec; padding: 15px 16px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.api-meta { display: flex; gap: 18px; color: var(--muted); font: 11px var(--mono); margin-top: 12px; }
.preview-panel pre { margin: 0; background: var(--navy); color: #d9e6df; padding: 15px; min-height: 120px; max-height: 200px; overflow: auto; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.footer { display: flex; justify-content: space-between; color: #8b9696; font: 10px var(--mono); padding: 24px 2px 0; }
dialog { width: min(440px, calc(100% - 32px)); border: 1px solid var(--line); padding: 0; background: var(--white); color: var(--ink); }
dialog::backdrop { background: rgba(15, 29, 43, .48); }
#bucketForm { padding: 25px 28px 28px; }
.dialog-head { display: flex; justify-content: space-between; margin-bottom: 25px; }
.dialog-head .icon-button { border: 0; }
#bucketForm input { margin-bottom: 17px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 7px; }
.toast { position: fixed; right: 28px; bottom: 25px; padding: 12px 16px; background: var(--navy); color: white; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 12px; border-left: 3px solid var(--teal); }
.toast[data-kind=error] { border-left-color: #b64027; }
.toast.show { opacity: 1; transform: translateY(0); }
.auth-screen[hidden], .shell[hidden], .token-reveal[hidden], .auth-error[hidden], .auth-screen [hidden] { display: none !important; }
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(450px, 58%) 1fr; background: var(--paper); }
.auth-frame { min-height: 100vh; padding: 32px clamp(24px, 6vw, 88px) 24px; display: flex; flex-direction: column; }
.auth-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font: 700 14px var(--display); }
.auth-form-wrap { width: min(390px, 100%); margin: auto; padding: 45px 0 70px; }
.auth-form-wrap h1 { font-size: 34px; letter-spacing: 0; }
.auth-description { color: var(--muted); margin: 10px 0 30px; line-height: 1.7; }
.auth-form-wrap .field-label { margin-top: 18px; }
.auth-hint { min-height: 20px; margin: 9px 0 15px; color: var(--muted); font-size: 11px; }
.auth-submit { width: 100%; min-height: 44px; }
.auth-error { margin-top: 15px; padding: 11px 12px; border-left: 3px solid #b64027; background: #f8e8e2; color: #8b321f; font-size: 12px; }
.auth-foot { display: flex; justify-content: space-between; gap: 14px; color: #8b9696; font: 10px var(--mono); }
.auth-side { position: relative; overflow: hidden; min-height: 100vh; padding: 42px clamp(30px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: var(--white); }
.auth-side::before { content: ''; position: absolute; width: 460px; height: 460px; border: 1px solid #30485a; right: -120px; top: 15%; transform: rotate(45deg); }
.auth-side::after { content: ''; position: absolute; width: 300px; height: 300px; border: 1px solid #30485a; right: -40px; top: calc(15% + 80px); transform: rotate(45deg); }
.auth-side-index, .auth-side-foot { position: absolute; left: clamp(30px, 5vw, 72px); color: #91a5b2; font: 10px var(--mono); }
.auth-side-index { top: 42px; }
.auth-side-foot { bottom: 38px; }
.auth-side-mark { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-bottom: 26px; }
.auth-side-mark span { display: block; width: 18px; background: var(--orange); }
.auth-side-mark span:nth-child(1) { height: 36px; }
.auth-side-mark span:nth-child(2) { height: 63px; }
.auth-side-mark span:nth-child(3) { height: 90px; background: var(--teal); }
.auth-side > p { position: relative; z-index: 1; font: 600 38px/1.35 var(--body); }
.logout-button { padding: 8px 11px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px; margin-top: 24px; }
.settings-panel { padding: 25px 28px; min-width: 0; }
.config-form, .token-form { margin-bottom: 21px; }
.inline-field { display: flex; align-items: stretch; gap: 8px; }
.inline-field input { min-width: 0; }
.inline-field button { flex: 0 0 auto; }
.token-reveal { border: 1px solid #b8d8d2; background: #edf6f3; padding: 12px; margin: -3px 0 18px; }
.token-reveal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--teal); font-size: 12px; }
.token-reveal code { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: 11px; line-height: 1.6; user-select: all; }
.token-list-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.token-list-head .field-label { margin: 0; }
.token-list-head .mono { color: var(--muted); font-size: 10px; }
.token-list { display: grid; }
.token-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.token-info { min-width: 0; }
.token-info strong { display: block; font: 500 13px var(--display); overflow-wrap: anywhere; }
.token-info small { display: block; margin-top: 4px; color: var(--muted); font: 10px var(--mono); }
.example-panel pre { min-height: 102px; max-height: none; overflow-wrap: anywhere; }
.password-form { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.password-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.password-fields input { min-width: 0; }
.password-fields .outline-button { padding-inline: 10px; }
@media (max-width: 940px) { .sidebar { width: 70px; flex-basis: 70px; padding: 22px 10px; } .brand { justify-content: center; } .brand > span:last-child, .sidebar-label, .nav-item span, .sidebar-foot > span:not(.status-dot) { display: none; } .nav-item { justify-content: center; padding: 12px 0; } .sidebar-foot { justify-content: center; } .main-content { width: calc(100% - 70px); } .work-grid, .api-layout { grid-template-columns: 1fr; } }
@media (max-width: 940px) { .settings-grid { grid-template-columns: 1fr; } .password-fields { grid-template-columns: 1fr 1fr; } .password-fields .outline-button { grid-column: 1 / -1; } }
@media (max-width: 620px) { h1 { font-size: 28px; } .auth-screen { grid-template-columns: 1fr; } .auth-frame { min-height: 100vh; padding: 22px 20px 20px; } .auth-form-wrap { padding: 36px 0; } .auth-form-wrap h1 { font-size: 29px; } .auth-side { display: none; } .auth-foot { font-size: 8px; } .main-content { padding: 23px 16px; } .topbar { align-items: flex-start; } .topbar-actions { gap: 8px; } .topbar-actions .connection { display: none; } .logout-button { padding: 8px; font-size: 0; } .logout-button svg { width: 16px; height: 16px; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-block { padding: 16px 12px 16px 0; margin-right: 12px; } .stat-value { font-size: 25px; } .upload-panel, .activity-panel, .buckets-panel, .api-panel, .preview-panel, .settings-panel { padding: 20px 17px; } .panel-head { margin-bottom: 18px; } .format-hint { display: none; } .footer { display: block; line-height: 1.8; } .footer span { display: block; } .inline-field { align-items: stretch; } .inline-field .outline-button { font-size: 0; width: 42px; padding: 0; } .password-fields { grid-template-columns: 1fr; } .password-fields .outline-button { grid-column: auto; } .api-meta { flex-wrap: wrap; } }
