:root {
  color-scheme: dark;
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #edf0fa;
  background: #11131b;
  --panel: #191c27;
  --inset: #131620;
  --border: #2c3242;
  --muted: #a2adc3;
  --accent: #c6f477;
  --accent-ink: #1d2a0d;
  --danger: #ffac9f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, p { margin: 0; }

.topbar { border-bottom: 1px solid var(--border); }
.topbar-inner, .workspace { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 750; white-space: nowrap; }
.brand small { display: block; font-size: 9px; font-weight: 650; color: var(--muted); letter-spacing: .14em; margin-top: 2px; }
.mark, .upload-mark, .empty-mark { display: grid; place-items: center; border-radius: 12px; }
.mark { width: 41px; height: 41px; background: var(--accent); color: var(--accent-ink); font-size: 28px; }
.connection { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.connection i { display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.connection.online { color: var(--accent); background: #20291d; border-color: #37462a; }

.workspace { padding-block: 51px 35px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.intro h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 780; letter-spacing: -.055em; line-height: 1.15; }
.intro p { color: var(--muted); margin-top: 12px; line-height: 1.6; font-size: 14px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 24px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 18px; letter-spacing: -.025em; }
.quiet { color: var(--muted); font-size: 12px; line-height: 1.6; }
.activity { grid-column: 1 / -1; }

.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; padding: 10px 14px; font-size: 13px; font-weight: 680; text-decoration: none; white-space: nowrap; }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:not(:disabled):hover { background: #dafca2; }
.primary:disabled { background: #293247; color: #a2adc3; }
.secondary { border-color: #3e475c; background: transparent; color: #e1e7f7; }
.secondary:hover { background: #272e3e; }
.compact { padding: 7px 11px; }

.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.feedback { margin-top: 13px; color: var(--accent); font-size: 13px; line-height: 1.55; }
.feedback[data-error="true"], .entry-status[data-error="true"] { color: var(--danger); }

.dropzone { width: 100%; min-height: 155px; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 14px; color: inherit; background: var(--inset); border: 1px dashed #525e78; border-radius: 10px; }
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background: #20291d; }
.dropzone strong { font-size: 13px; }
.upload-mark { width: 38px; height: 38px; margin-bottom: 4px; background: #283747; color: var(--accent); font-size: 23px; }
.file-list, .share-list, .activity-list { list-style: none; margin: 0; padding: 0; }
.file-list:not(:empty), .share-list:not(:empty) { margin-top: 14px; }
.file-list li, .share-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 10px; }
.file-list li + li, .share-row + .share-row { border-top: 1px solid var(--border); }
.file-info { min-width: 0; display: grid; gap: 3px; }
.file-name { font-size: 13px; overflow-wrap: anywhere; }
.code-field { display: flex; gap: 8px; margin-top: 7px; }
.code-field input { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--inset); color: inherit; padding: 9px 12px; font: 650 17px ui-monospace, monospace; letter-spacing: .18em; }
.share-list { padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--inset); }
.share-code { display: inline-block; margin-top: 4px; color: var(--accent); font: 700 27px ui-monospace, monospace; letter-spacing: .23em; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.entry-icon { flex: none; display: grid; place-items: center; border-radius: 9px; background: #2a3348; color: #e0e9ff; }

.empty { display: grid; justify-items: center; gap: 6px; border: 1px dashed var(--border); border-radius: 11px; padding: 24px 14px; text-align: center; }
.empty p { font-size: 14px; font-weight: 650; }
.empty-mark { width: 42px; height: 42px; background: #272e40; color: #bdcbea; font-size: 24px; margin-bottom: 4px; }
.entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 13px 0; align-items: start; }
.entry + .entry { border-top: 1px solid var(--border); }
.entry-icon { height: 34px; width: 34px; }
.entry-title { margin-bottom: 3px; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
.entry-action { align-self: start; }

.toast { position: fixed; bottom: 20px; right: 20px; left: auto; max-width: calc(100% - 40px); overflow-wrap: anywhere; padding: 11px 14px; border: 1px solid #4c6140; border-radius: 9px; background: #20291d; color: #e7f4d9; box-shadow: 0 8px 30px #0005; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .topbar-inner, .workspace { width: calc(100% - 32px); }
  .topbar-inner { height: 64px; }
  .workspace { padding-top: 32px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 22px; }
  .panel { padding: 16px; border-radius: 13px; }
}
@media (max-width: 380px) {
  .entry { grid-template-columns: auto minmax(0, 1fr); }
  .entry-action { grid-column: 2; justify-self: start; }
}
