:root {
  color-scheme: light;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: #132033;
  background: #f2f6f8;
  font-synthesis: none;
  --muted: #526478;
  --line: #dbe4eb;
  --primary: #036466;
  --soft: #eaf4f3;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
.wrap { width: min(1090px, calc(100% - 64px)); margin-inline: auto; }
.top { background: #132033; color: #fff; }
.top-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; background: #67d8c1; color: #0b3439; border-radius: 10px; font-size: 21px; }
.heading { margin: 42px 0 26px; }
h1 { margin: 0; font-size: clamp(1.78rem, 5vw, 2.65rem); line-height: 1.2; letter-spacing: -.05em; }
h2 { margin: 0; font-size: 1.34rem; letter-spacing: -.025em; line-height: 1.3; }
p { line-height: 1.6; }
.heading p, .muted { color: var(--muted); }
.heading p { margin: 8px 0 0; }
.columns { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: start; padding-bottom: 42px; }
.panel, dialog { background: white; border: 1px solid var(--line); border-radius: 19px; padding: 24px; box-shadow: 0 5px 24px #223b4e0b; min-width: 0; }
.narrow { width: min(100%, 440px); margin: 48px auto; }
.narrow h1 { font-size: 1.73rem; }
.narrow form { margin-top: 22px; }
.narrow form .primary { margin-top: 13px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #eef3f6; border-radius: 10px; padding: 4px; gap: 3px; margin: 18px 0 14px; }
.tabs button { background: transparent; color: var(--muted); border: 0; }
.tabs button[aria-pressed="true"] { background: white; color: var(--primary); box-shadow: 0 1px 4px #1f354a16; }
button, .primary, .secondary, .small { min-height: 40px; border: 1px solid transparent; padding: 8px 13px; border-radius: 8px; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1.35; }
button:disabled { opacity: .48; cursor: default; }
.primary { background: var(--primary); color: white; }
.primary:hover:not(:disabled) { background: #054f51; }
.secondary { background: var(--soft); color: #04595a; border-color: #d5eae6; }
.small { background: #f0f4f7; color: #33495d; padding-inline: 10px; }
.header-actions { display: flex; gap: 6px; }
.top-button { background: #293a50; color: white; border-radius: 8px; padding: 8px 10px; text-decoration: none; font-weight: 750; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions > * { flex: 1 1 auto; }
label:not(.file-picker) { display: block; margin: 12px 0 6px; font-weight: 720; }
input:not([type="file"]), textarea { display: block; width: 100%; padding: 11px 12px; font: inherit; color: inherit; border: 1px solid #bdcbd6; border-radius: 8px; background: #fff; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid #208b89; outline-offset: 3px; }
.file-picker { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 148px; padding: 16px; position: relative; border: 2px dashed #acc9cc; border-radius: 12px; background: #f7fbfb; cursor: pointer; text-align: center; overflow-wrap: anywhere; }
.file-picker:is(.dragging, :focus-within) { background: #e8f7f4; border-color: #188c88; }
.file-picker strong { font-size: 1.08rem; color: #076566; }
.file-picker span { font-size: .88rem; color: var(--muted); }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.inbox-head, .dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.count { margin-left: 4px; color: var(--primary); font-size: .95rem; }
.inbox #inbox-info { margin: 9px 0 12px; font-size: .93rem; }
.empty { padding: 22px 10px; margin: 8px 0 0; color: var(--muted); text-align: center; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfc; }
.entry { display: grid; grid-template-columns: auto 1fr; padding: 13px 0; gap: 7px 11px; border-top: 1px solid var(--line); }
.entry .entry-kind { font-size: .78rem; align-self: start; border-radius: 6px; padding: 4px 7px; background: #edf3f7; color: #36536b; font-weight: 720; }
.entry h3 { font-size: 1rem; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.entry p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry .entry-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.entry .entry-actions > * { font-size: .85rem; min-height: 35px; }
.entry .remove { color: #8e3033; background: #fff; border-color: #eee2e2; }
.status { color: var(--muted); margin-bottom: 0; }
.status:empty { display: none; }
.status[data-error="true"] { color: #90343a; }
progress { width: 100%; margin-top: 12px; height: 12px; accent-color: var(--primary); }
dialog { width: min(410px, calc(100% - 24px)); color: inherit; }
dialog::backdrop { background: #101b2cb8; }
.qr-box { display: grid; place-items: center; min-height: 246px; background: #f4f8f9; border-radius: 12px; }
.qr-box img { width: min(244px, 100%); height: auto; }
.receive-name { display: block; font-size: 1.12rem; overflow-wrap: anywhere; }
pre { color: inherit; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: #f7fafb; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .heading { margin: 28px 0 18px; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .panel, dialog { padding: 18px; }
  .narrow { margin-block: 26px; }
}
