:root {
  color-scheme: light;
  --ink: #211e1b;
  --muted: #6b645c;
  --paper: #f7f5f0;
  --card: #fffefa;
  --line: #e7e0d6;
  --accent: #b83c26;
  --accent-hover: #982d1a;
  --accent-wash: #faebe5;
  --green: #2e6749;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.frame { max-width: 1144px; margin: 0 auto; padding-inline: 32px; }

.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.06em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--accent); color: white; border-radius: 11px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.connection { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.signal { width: 8px; height: 8px; border-radius: 50%; background: #a96f26; }
.public .signal { background: #377f57; }

.intro { padding: 63px 0 42px; }
.eyebrow { font-weight: 800; font-size: 11px; letter-spacing: .17em; color: var(--accent); }
.eyebrow span { display: inline-block; width: 21px; height: 2px; margin-right: 7px; vertical-align: 3px; background: var(--accent); }
.intro h1 { margin: 11px 0 13px; font-size: clamp(49px, 7vw, 88px); line-height: .99; letter-spacing: -.075em; font-weight: 850; }
.intro em { color: var(--accent); font-style: normal; }
.intro > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 580px; }
.dashboard { display: grid; grid-template-columns: 1fr 1.02fr; align-items: start; gap: 22px; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 4px 14px #34201008; min-width: 0; }
.compose, .history { padding: 24px; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.section-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
h2 { font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.panel-heading p, .dialog-head p { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 3px; }
.count { margin-left: auto; min-width: 30px; padding: 5px 8px; border-radius: 7px; background: var(--paper); text-align: center; color: var(--muted); font-size: 12px; font-weight: 750; }

.picker-button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 16px; text-align: left; border: 1px dashed #d0a493; border-radius: 12px; background: #fdf7f2; }
.picker-button:hover { background: var(--accent-wash); }
.picker-icon { display: grid; place-items: center; width: 35px; height: 35px; background: var(--accent-wash); color: var(--accent); border-radius: 10px; flex: 0 0 auto; }
.picker-button strong { display: block; font-size: 14px; font-weight: 750; }
.picker-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.trailing { margin-left: auto; color: var(--accent); width: 16px; height: 16px; }
label { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 720; margin: 16px 0 7px; }
label > span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 550; }
label .icon { width: 15px; height: 15px; color: var(--muted); }
input, select { width: 100%; min-width: 0; min-height: 43px; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 11px; font-size: 13px; }
input:disabled { background: var(--paper); }
input::placeholder { color: var(--muted); opacity: 1; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.options > div { min-width: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 750; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.primary { background: var(--accent); color: #fff; min-height: 45px; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.primary:disabled { background: #e7dcd2; color: #62564c; }
.full { width: 100%; margin-top: 19px; }
.secondary { background: #fff; border-color: var(--line); }
.secondary:hover:not(:disabled) { border-color: #c6a99b; background: #fdf7f2; }
.secondary:disabled { color: #857b72; }
.quiet { background: transparent; color: var(--muted); }
.quiet:hover { background: var(--accent-wash); color: var(--accent); }
.icon-button { width: 33px; height: 33px; display: inline-grid; place-items: center; flex: 0 0 auto; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); }
.icon-button:hover { background: var(--accent-wash); color: var(--accent); }
.icon-button .icon { width: 16px; height: 16px; }
.error { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #a62719; }

.empty { min-height: 280px; border: 1px dashed var(--line); border-radius: 13px; background: #fcfaf6; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.empty-art { width: 58px; height: 58px; border-radius: 18px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; margin-bottom: 13px; }
.empty-art .icon { width: 26px; height: 26px; }
h3 { font-size: 15px; letter-spacing: -.02em; }
.empty p, .share-details p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.selection, .shares { border: 1px solid var(--line); border-radius: 10px; }
.selection { margin-top: 9px; max-height: 200px; overflow: auto; }
.selection li, .entries li { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 4px 8px 4px 11px; }
.selection li + li, .entries li + li, .share-row + .share-row { border-top: 1px solid var(--line); }
.selection li > .icon, .entry-name .icon { color: var(--accent); width: 17px; height: 17px; }
.selected-name { flex: 1; font-size: 13px; overflow-wrap: anywhere; }
.selection small, .entry-size { color: var(--muted); font-size: 11px; white-space: nowrap; }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 13px; }
.share-details { overflow-wrap: anywhere; }
.share-actions { display: flex; flex-wrap: wrap; gap: 5px; grid-column: 1 / -1; }
.badge { font-size: 11px; font-weight: 760; background: var(--paper); color: var(--muted); padding: 4px 8px; border-radius: 999px; }
.badge.active { background: #edf5eb; color: var(--green); }
.result { background: #edf5eb; border: 1px solid #d4e3d2; padding: 11px; border-radius: 11px; margin-top: 13px; }
.result label { color: var(--green); margin-top: 0; }
.result > div { display: flex; gap: 6px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 12px; padding: 19px 1px 32px; }

dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: var(--ink); background: var(--card); box-shadow: 0 18px 60px #211e1b38; }
dialog::backdrop { background: #211e1b68; }
.dialog-head { display: flex; justify-content: space-between; gap: 10px; }
.browse-shortcuts, .location, .dialog-foot { display: flex; flex-wrap: wrap; gap: 7px; }
.browse-shortcuts { margin: 14px 0 8px; }
.drive-select { width: auto; max-width: min(100%, 240px); min-height: 36px; }
.location { flex-wrap: nowrap; }
.browse-status { font-size: 13px; color: var(--muted); margin: 7px 0; }
.browse-status:empty { display: none; }
.entries { max-height: min(47vh, 360px); overflow: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; }
.entries:empty { display: none; }
.entry-name { flex: 1; display: flex; gap: 8px; align-items: center; min-width: 0; text-align: left; overflow-wrap: anywhere; font-size: 13px; }
button.entry-name { border: 0; background: transparent; padding: 5px 0; }
button.entry-name:hover { text-decoration: underline; }
.entry-add { border-color: var(--line); }
.entry-add.picked { background: #edf5eb; color: var(--green); }
.dialog-foot { justify-content: space-between; margin-top: 13px; }
.toast { position: fixed; bottom: 20px; right: 20px; z-index: 3; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.receive { display: grid; place-items: start center; padding: 64px 16px; }
.receive-card { width: min(100%, 470px); padding: 30px; text-align: center; }
.receive-card .empty-art { margin-inline: auto; }
.receive-card h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.12; letter-spacing: -.05em; margin: 10px 0; overflow-wrap: anywhere; }
.receive-card > p:not(.eyebrow) { font-size: 15px; line-height: 1.5; color: var(--muted); }
.receive-card > p.error { color: #a62719; }
.file-ticket { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 18px 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; text-align: left; }
.file-ticket span { overflow-wrap: anywhere; min-width: 0; }
.file-ticket strong { color: var(--muted); white-space: nowrap; }
.receive-card .primary { width: 100%; }
.unlock { text-align: left; }
.unlock .primary { margin-top: 10px; }

@media (max-width: 760px) {
  .frame { padding-inline: 18px; }
  .topbar-inner { min-height: 62px; }
  .intro { padding-block: 42px 28px; }
  .intro > p:last-child { font-size: 15px; }
  .dashboard { grid-template-columns: 1fr; gap: 14px; }
  .compose, .history { padding: 17px; }
  .empty { min-height: 185px; }
  .receive { padding-top: 36px; }
}
@media (max-width: 360px) {
  .options { grid-template-columns: 1fr; gap: 0; }
  .receive-card { padding: 21px; }
}
