:root {
    color-scheme: light;
    --bg: #f4f7f4;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --ink: #18140d;
    --muted: #6f665a;
    --line: #dbe5dd;
    --honey: #f4b63c;
    --honey-deep: #a85b0d;
    --charcoal: #15120e;
    --teal: #0f766e;
    --danger: #b42318;
    --warning: #8a5a00;
    --ok: #087443;
    --shadow: 0 18px 44px rgba(25, 40, 34, 0.1);
    --page-gutter: 24px;
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --content-gutter-left: max(var(--page-gutter), var(--safe-left));
    --content-gutter-right: max(var(--page-gutter), var(--safe-right));
    --content-max: 1120px;
    --content-margin-left: max(var(--content-gutter-left), calc((100% - var(--content-max)) / 2));
    --content-margin-right: max(var(--content-gutter-right), calc((100% - var(--content-max)) / 2));
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    text-rendering: geometricPrecision;
}

a {
    color: inherit;
}

.landing-page {
    background: var(--charcoal);
}

.app-page {
    background:
        linear-gradient(180deg, rgba(244, 182, 60, 0.12) 0, rgba(244, 182, 60, 0) 240px),
        linear-gradient(180deg, #f7faf7 0, #f3f7f4 420px, #edf4ef 100%);
}

.site-nav {
    position: relative;
    z-index: 2;
    --content-max: 1120px;
    width: auto;
    min-height: 72px;
    margin: 0 var(--content-margin-right) 0 var(--content-margin-left);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
}

.site-nav--overlay {
    position: absolute;
    inset: 0 var(--content-margin-right) auto var(--content-margin-left);
    margin: 0;
    color: #fff8e3;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    font-size: 19px;
    font-weight: 900;
    text-decoration: none;
}

.brand-mark {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fde9b8 url("/static/img/pwa-icon-192.png?v=honey-drop-logo-1") center / cover no-repeat;
    box-shadow: 0 12px 28px rgba(244, 182, 60, 0.24);
    overflow: hidden;
}

.brand-mark::before {
    content: none;
}

.brand-mark::after {
    content: none;
}

.brand-text {
    overflow-wrap: anywhere;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a,
.nav-install {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 800;
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.nav-links a[aria-current="page"],
.nav-links .is-active {
    border-color: rgba(255, 216, 107, 0.62);
    background: rgba(255, 216, 107, 0.22);
    color: #fff8e3;
}

.nav-install {
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.app-page .nav-links a,
.app-page .nav-install {
    border-color: rgba(24, 58, 50, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(25, 40, 34, 0.06);
}

.app-page .nav-links a[aria-current="page"],
.app-page .nav-links .is-active {
    border-color: rgba(168, 91, 13, 0.34);
    background: linear-gradient(180deg, #fff2c8, #f7d476);
    color: #4a2f06;
}

.home-hero {
    position: relative;
    --content-max: 1120px;
    min-height: 78vh;
    min-height: 78svh;
    display: flex;
    align-items: center;
    padding: 132px var(--content-margin-right) 74px var(--content-margin-left);
    color: #fff8e3;
    background:
        linear-gradient(90deg, rgba(12, 10, 8, 0.96) 0, rgba(12, 10, 8, 0.86) 36%, rgba(12, 10, 8, 0.2) 70%),
        linear-gradient(180deg, rgba(12, 10, 8, 0.34), rgba(12, 10, 8, 0.72)),
        url("/static/img/honey-transfer-hero.png");
    background-size: cover;
    background-position: center right;
    overflow: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 216, 107, 0.7), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(600px, 100%);
}

.eyebrow,
.label,
label {
    margin: 0;
    color: var(--honey-deep);
    font-size: 14px;
    font-weight: 900;
}

.home-hero .eyebrow {
    color: #ffd86b;
}

.home-hero h1,
.page-heading h1 {
    margin: 8px 0 16px;
    font-size: 64px;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 520px;
    margin: 0;
    color: #f9e9bc;
    font-size: 21px;
    font-weight: 650;
}

.actions {
    display: flex;
    min-width: 0;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
}

.actions--primary-flow {
    margin-top: 10px;
}

.quick-code {
    display: grid;
    gap: 10px;
    max-width: 560px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.quick-code label {
    color: #ffd86b;
}

.quick-code-row {
    display: grid;
    grid-template-columns: minmax(110px, 160px) minmax(0, 190px);
    gap: 10px;
    align-items: stretch;
}

.quick-code input[type="text"] {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font: inherit;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
    outline: none;
}

.quick-code input[type="text"]:focus {
    border-color: #ffd86b;
    box-shadow: 0 0 0 4px rgba(255, 216, 107, 0.16);
}

.quick-code .button {
    min-height: 50px;
    margin: 0;
}

.quick-code p {
    margin: 0;
    color: #f9e9bc;
    font-size: 13px;
    font-weight: 800;
}

.button {
    display: inline-flex;
    max-width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 18px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(50, 32, 8, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(168, 91, 13, 0.42);
}

.button.primary {
    border-color: #f7bd45;
    background: linear-gradient(180deg, #ffd86b, #f3a92f);
    color: #201305;
}

.button.ghost {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff8e3;
    backdrop-filter: blur(12px);
    box-shadow: none;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.button-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(24, 20, 13, 0.1);
    font-weight: 900;
}

.button.ghost .button-icon {
    background: rgba(255, 255, 255, 0.16);
}

.trust-band {
    position: relative;
    z-index: 1;
    --content-max: 1120px;
    width: auto;
    margin: -24px var(--content-margin-right) 56px var(--content-margin-left);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.trust-band div {
    min-width: 0;
    border: 1px solid rgba(234, 220, 194, 0.72);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 250, 240, 0.94);
    box-shadow: var(--shadow);
}

.trust-band strong,
.trust-band span {
    display: block;
}

.trust-band strong {
    margin-bottom: 4px;
    font-size: 18px;
}

.trust-band span {
    color: var(--muted);
    font-weight: 700;
}

.shell {
    --content-max: 960px;
    width: min(var(--content-max), calc(100% - var(--content-gutter-left) - var(--content-gutter-right)));
    margin: 0 auto;
    padding: 18px 0 56px;
}

.shell.wide {
    --content-max: 1440px;
}

.site-footer {
    --content-max: 960px;
    width: min(var(--content-max), calc(100% - var(--content-gutter-left) - var(--content-gutter-right)));
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: -28px auto 36px;
    padding-top: 6px;
}

.landing-page .site-footer {
    --content-max: 1120px;
    margin-top: -30px;
}

.site-footer a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(24, 58, 50, 0.12);
    border-radius: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer a[aria-current="page"] {
    border-color: rgba(168, 91, 13, 0.34);
    background: rgba(255, 242, 200, 0.9);
    color: var(--honey-deep);
    outline: none;
}

.app-shell {
    display: grid;
    gap: 16px;
}

.page-heading {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding-top: 10px;
}

.page-heading h1 {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--ink);
    font-size: 44px;
}

.page-heading .muted {
    max-width: 620px;
    margin: 0;
    font-size: 17px;
}

.panel {
    min-width: 0;
    border: 1px solid rgba(24, 58, 50, 0.12);
    border-radius: 8px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.panel > .muted {
    max-width: 760px;
}

.panel-heading,
.code-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.panel-heading {
    margin-bottom: 12px;
    align-items: center;
}

.panel h1,
.panel h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: 0;
}

.panel-badge {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 118, 110, 0.26);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--teal);
    font-size: 13px;
    font-weight: 900;
}

.mode-switch {
    flex: 0 1 auto;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    white-space: normal;
}

.mode-switch--advanced {
    border-color: rgba(168, 91, 13, 0.18);
    background: rgba(244, 182, 60, 0.12);
    color: var(--honey-deep);
}

.mode-switch:hover,
.mode-switch:focus-visible {
    border-color: rgba(15, 118, 110, 0.46);
    background: rgba(15, 118, 110, 0.14);
    outline: none;
}

.send-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.send-picker-actions {
    flex: 1 1 auto;
}

.transfer-mode-trigger {
    flex: 0 0 auto;
    min-height: 42px;
    border-color: rgba(15, 118, 110, 0.24);
    background: rgba(232, 246, 243, 0.86);
    color: var(--teal);
    box-shadow: none;
}

.modal-open {
    overflow: hidden;
}

.transfer-mode-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.transfer-mode-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 24, 20, 0.42);
}

.transfer-mode-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid rgba(24, 58, 50, 0.16);
    border-radius: 8px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 80px rgba(24, 58, 50, 0.28);
}

.transfer-mode-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.transfer-mode-head h2 {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: 0;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.transfer-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.transfer-mode-card {
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: start;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    padding: 18px;
    background: rgba(246, 251, 248, 0.88);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.transfer-mode-card.is-current {
    border-color: rgba(15, 118, 110, 0.52);
    background: rgba(232, 246, 243, 0.92);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.transfer-mode-card:hover,
.transfer-mode-card:focus-visible {
    border-color: rgba(15, 118, 110, 0.56);
    background: rgba(255, 253, 250, 0.98);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.transfer-mode-card-head {
    display: grid;
    gap: 4px;
}

.transfer-mode-card strong {
    font-size: 22px;
    line-height: 1.18;
}

.transfer-mode-card p {
    margin: 0;
    color: var(--ink);
    font-weight: 850;
}

.transfer-mode-card > span:not(.label):not(.panel-badge) {
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

.transfer-mode-card .button,
.transfer-mode-card .panel-badge {
    justify-self: start;
    margin-top: 4px;
}

.transfer-mode-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 4px;
    padding: 0;
    list-style: none;
}

.flow-steps li {
    min-width: 0;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 8px;
    padding: 12px;
    background: rgba(232, 246, 243, 0.58);
}

.flow-steps strong,
.flow-steps span {
    display: block;
}

.flow-steps strong {
    color: var(--teal);
    font-size: 14px;
    font-weight: 900;
}

.flow-steps span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.advanced-mode {
    margin-top: 18px;
    border-top: 1px solid rgba(15, 118, 110, 0.12);
    padding-top: 14px;
    color: var(--muted);
}

.advanced-mode summary {
    width: fit-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-weight: 900;
    cursor: pointer;
}

.advanced-mode:not([open]) > :not(summary) {
    display: none;
}

.advanced-mode p {
    max-width: 620px;
    margin: 6px 0 8px;
}

.advanced-mode a {
    color: var(--teal);
    font-weight: 900;
}

.muted {
    color: var(--muted);
}

.field {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

input[type="file"],
input[type="text"],
input[type="password"],
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(168, 91, 13, 0.24);
    border-radius: 8px;
    padding: 9px 12px;
    background: #fffdfa;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    outline: none;
}

input[type="file"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 850;
}

.toggle-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

input[type="file"]::file-selector-button {
    min-height: 34px;
    margin-right: 12px;
    border: 0;
    border-radius: 7px;
    padding: 0 12px;
    background: #f4b63c;
    color: #201305;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

input.file-picker-input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.drop-zone {
    min-height: 116px;
    display: grid;
    place-items: center;
    gap: 4px;
    margin: 18px 0 18px;
    border: 2px dashed rgba(15, 118, 110, 0.34);
    border-radius: 8px;
    padding: 18px;
    background: rgba(247, 250, 247, 0.74);
    color: var(--ink);
    text-align: center;
    cursor: copy;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.drop-zone strong,
.drop-zone span {
    pointer-events: none;
}

.drop-zone strong {
    font-size: 18px;
    font-weight: 900;
}

.drop-zone span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragover {
    border-color: var(--teal);
    background: rgba(232, 246, 243, 0.86);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    outline: none;
}

.drop-zone.is-dragover {
    transform: translateY(-1px);
}

.drop-zone.is-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.code-input input {
    max-width: 220px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0;
}

.hidden {
    display: none !important;
}

.error {
    color: var(--danger);
    font-weight: 800;
}

.error:not(:empty) {
    margin: 16px 0 0;
    border: 1px solid rgba(180, 35, 24, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff1f0;
}

.warning {
    max-width: 100%;
    border-left: 4px solid rgba(138, 90, 0, 0.76);
    padding: 10px 12px;
    border-radius: 7px;
    background: rgba(244, 182, 60, 0.12);
    color: var(--warning);
    font-weight: 800;
}

.policy-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.quick-guide {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quick-guide li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
}

.quick-guide strong {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.12);
    color: var(--teal);
    font-size: 13px;
}

.resume-hint {
    margin: 0;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(232, 246, 243, 0.62);
    color: var(--teal);
    font-size: 13px;
    font-weight: 850;
}

.flow-panel {
    display: grid;
    gap: 16px;
}

.selection-summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(247, 250, 247, 0.86);
    color: var(--muted);
    font-weight: 850;
}

.selection-summary span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selection-summary span:last-child {
    flex: 0 0 auto;
    color: var(--ink);
}

.resolve-status:empty {
    display: none;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.p2p-save-actions {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.p2p-save-actions > .button {
    width: 100%;
}

.p2p-save-actions .download-links {
    margin-top: 0;
}

.download-links .button {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.preview-panel {
    display: grid;
    gap: 12px;
    text-align: left;
}

.preview-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
    font-weight: 900;
}

.preview-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.preview-list {
    display: grid;
    gap: 8px;
}

.preview-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 253, 250, 0.86);
}

.preview-icon {
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(244, 182, 60, 0.18);
    color: var(--honey-deep);
    font-size: 12px;
    font-weight: 950;
}

.preview-info {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.preview-info strong,
.preview-info span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-info span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
}

.confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 18, 8, 0.42);
}

.confirm-dialog {
    position: relative;
    width: min(420px, 100%);
    display: grid;
    gap: 14px;
    border-radius: 8px;
    padding: 20px;
    background: #fffdfa;
    box-shadow: 0 18px 50px rgba(23, 18, 8, 0.22);
}

.confirm-dialog h2,
.confirm-dialog p {
    margin: 0;
}

.confirm-dialog p {
    color: var(--muted);
    font-weight: 800;
}

.code-row {
    margin-bottom: 20px;
}

.qr-panel {
    display: grid;
    grid-template-columns: minmax(128px, 168px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 0 0 22px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    padding: 14px;
    background: rgba(232, 246, 243, 0.72);
}

.qr-code {
    width: 100%;
    max-width: 168px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    overflow: hidden;
}

.qr-code svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.qr-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.qr-copy strong {
    font-size: 18px;
}

.qr-copy span {
    color: var(--muted);
    font-weight: 700;
}

.qr-copy a {
    color: var(--teal);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.code {
    display: block;
    min-width: 4ch;
    color: var(--honey-deep);
    font-size: 54px;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.transfer-focus {
    display: grid;
    gap: 22px;
    text-align: center;
}

.transfer-focus .qr-panel {
    margin: 0;
    text-align: left;
}

.send-code-focus {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.send-code-focus .code {
    font-size: 76px;
}

.focus-copy {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
}

.state-title {
    display: block !important;
    min-height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--ink) !important;
    font-size: 32px !important;
    line-height: 1.16;
    font-weight: 950;
}

.big-percent {
    color: var(--honey-deep);
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.compact-file-name {
    max-width: 100%;
    margin: -10px 0 0;
    color: var(--muted);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.download-main {
    width: 100%;
    min-height: 60px;
    font-size: 18px;
}

.download-main.is-disabled {
    border-color: #d6dfd8;
    background: #e7ede8;
    color: #66736b;
    box-shadow: none;
    pointer-events: none;
    opacity: 1;
}

.subtle-action {
    width: fit-content;
    justify-self: center;
    background: transparent;
    box-shadow: none;
}

.transfer-actions {
    justify-content: center;
    margin-top: 0;
}

#transferStatusText,
#receiverStatusText,
#rtcStatusText,
#pathStatusText {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--teal);
    font-size: 14px;
    font-weight: 900;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.status-grid div {
    min-width: 0;
    border: 1px solid rgba(24, 58, 50, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(247, 250, 247, 0.86);
}

.status-grid dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.status-grid dd {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    font-weight: 850;
}

.file-list-panel {
    margin: -4px 0 22px;
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f7faf7);
    box-shadow: 0 14px 30px rgba(25, 40, 34, 0.08);
}

.file-list-header {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid rgba(15, 118, 110, 0.12);
    padding: 0 16px;
    background: linear-gradient(180deg, #ffffff, #fbfdfc);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.file-list-title {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 800;
}

.file-list-summary {
    min-width: 0;
    flex: 1 1 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list-chevron {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-right: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.file-list-panel.is-collapsed .file-list-chevron {
    transform: rotate(-45deg);
}

.selected-file-list {
    max-height: 430px;
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    list-style: none;
}

.file-list-panel.is-collapsed .selected-file-list {
    display: none;
}

.file-list-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid rgba(15, 118, 110, 0.12);
    padding: 10px;
}

.file-list-panel.is-collapsed .file-list-actions {
    display: none;
}

.selected-file-item {
    margin: 0;
}

.selected-file-row {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    padding: 7px 8px 7px var(--depth-indent, 8px);
    background: rgba(255, 255, 255, 0.82);
    color: inherit;
    font: inherit;
    text-align: left;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.selected-file-row:hover,
.selected-file-row:focus-within {
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.08);
}

.selected-file-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.selected-file-main--folder {
    cursor: pointer;
}

.selected-file-main--folder:hover .selected-file-name {
    color: var(--teal);
}

.selected-file-item:first-child {
    border-top: 0;
}

.selected-file-children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.selected-file-item.is-collapsed > .selected-file-children {
    display: none;
}

.selected-file-folder-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-right: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.selected-file-item.is-collapsed > .selected-file-row .selected-file-folder-chevron {
    transform: rotate(-45deg);
}

.selected-file-icon {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #f2f4f5;
    box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.04);
}

.selected-file-icon::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 13px;
    width: 14px;
    height: 18px;
    border: 1.5px solid #68717a;
    border-radius: 2px;
    background: #fff;
}

.selected-file-icon::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 21px;
    width: 6px;
    height: 6px;
    border-left: 1.5px solid #68717a;
    border-bottom: 1.5px solid #68717a;
    background: #f0f0ef;
}

.selected-file-icon--folder::before {
    top: 14px;
    left: 8px;
    width: 25px;
    height: 15px;
    border-color: #7a6338;
    border-radius: 2px 3px 3px 3px;
    background: #ffd978;
}

.selected-file-icon--folder::after {
    top: 10px;
    left: 9px;
    width: 13px;
    height: 7px;
    border: 1.5px solid #7a6338;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
    background: #ffe7a2;
}

.selected-file-info {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 2px;
}

.selected-file-name {
    overflow: hidden;
    color: #2f3943;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file-row--folder .selected-file-name {
    font-weight: 800;
}

.selected-file-size {
    color: #9aa3ad;
    font-size: 12px;
    font-weight: 700;
}

.selected-file-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.selected-file-action {
    min-height: 32px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 7px;
    padding: 0 10px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.selected-file-action:hover {
    border-color: rgba(15, 118, 110, 0.28);
    background: #eef7f5;
}

.selected-file-action--save {
    border-color: rgba(15, 118, 110, 0.28);
    background: var(--teal);
    color: #fff;
}

.selected-file-action--save:hover {
    background: #0b5f59;
}

.selected-file-action--danger {
    color: var(--danger);
}

.selected-file-action--danger:hover {
    border-color: rgba(180, 35, 24, 0.28);
    background: #fff1f0;
}

.selected-file-action:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

.selected-file-rename {
    min-width: 0;
    flex: 1 1 auto;
}

.selected-file-rename-input {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(15, 118, 110, 0.28);
    border-radius: 7px;
    padding: 0 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.progress-wrap {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(24, 58, 50, 0.1);
    border-radius: 8px;
    padding: 14px;
    background: rgba(247, 250, 247, 0.72);
}

progress {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e4ece6;
    accent-color: var(--honey);
}

progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e4ece6;
}

progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal), var(--honey));
}

progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal), var(--honey));
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 800;
}

.download-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.download-entry {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.68);
}

.download-entry-info {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.download-entry-info strong,
.download-entry-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-entry-info span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.download-entry-button {
    min-height: 40px;
    padding: 0 14px;
    box-shadow: none;
}

.button.is-disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.58;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: start;
}

.account-form {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.danger-zone {
    border-color: rgba(185, 28, 28, 0.25);
}

.danger-zone .button {
    border-color: rgba(185, 28, 28, 0.35);
    color: #991b1b;
}

.account-form h3 {
    margin: 0;
    font-size: 18px;
}

.account-list {
    display: grid;
    gap: 10px;
}

.account-item {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 8px;
    padding: 12px;
    background: rgba(247, 250, 247, 0.82);
}

.account-item-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.account-item-body strong,
.account-item-body span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-item-body span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.account-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.account-item-actions .button {
    min-height: 40px;
    padding: 0 14px;
    box-shadow: none;
}

.account-empty {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(168, 91, 13, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    border-bottom: 1px solid rgba(168, 91, 13, 0.12);
    padding: 10px;
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-weight: 900;
}

.inline-admin-form {
    margin: 0;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.admin-metrics div {
    min-width: 0;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 8px;
    padding: 12px;
    background: rgba(247, 250, 247, 0.74);
}

.admin-metrics span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.admin-metrics strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
}

.admin-speed-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.admin-speed-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.admin-speed-form .button {
    min-height: 48px;
}

.table-check {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.table-check input {
    width: 18px;
    height: 18px;
}

.privacy-policy {
    max-width: 980px;
}

.policy-document {
    color: var(--ink);
    line-height: 1.72;
}

.policy-document h2 {
    margin: 34px 0 12px;
    font-size: 24px;
}

.policy-document h3 {
    margin: 22px 0 10px;
    font-size: 18px;
}

.policy-document p,
.policy-document li {
    color: var(--muted-strong);
}

.policy-document ul {
    margin: 10px 0 0;
    padding-left: 22px;
}

.policy-document a {
    color: var(--teal);
    font-weight: 700;
}

.policy-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 30px;
}

.policy-meta div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.policy-meta dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.policy-meta dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.policy-table-wrap {
    width: 100%;
    margin: 14px 0 22px;
    overflow-x: auto;
}

.policy-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.policy-table th,
.policy-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.policy-table th {
    color: var(--ink);
    font-size: 14px;
}

.policy-table td {
    color: var(--muted-strong);
}

.policy-table tr:last-child td {
    border-bottom: 0;
}

.manual-page {
    --content-max: 1040px;
}

.manual-section {
    display: grid;
    gap: 24px;
}

.manual-section-head {
    display: grid;
    gap: 6px;
}

.manual-section-head h2,
.manual-shot h3,
.manual-phone h3,
.manual-info-grid h3 {
    margin: 0;
}

.manual-shot {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    gap: 22px;
    align-items: center;
    border-top: 1px solid rgba(15, 118, 110, 0.12);
    padding-top: 24px;
}

.manual-shot:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.manual-shot img,
.manual-phone img {
    width: 100%;
    display: block;
    border: 1px solid rgba(24, 58, 50, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(25, 40, 34, 0.12);
}

.manual-shot h3,
.manual-phone h3,
.manual-info-grid h3 {
    font-size: 20px;
    line-height: 1.25;
}

.manual-shot p,
.manual-shot li,
.manual-phone p,
.manual-info-grid p {
    color: var(--muted);
    font-weight: 760;
}

.manual-shot ol {
    margin: 12px 0 0;
    padding-left: 22px;
}

.manual-phone-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.manual-phone {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.manual-phone img {
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top center;
}

.manual-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.manual-info-grid div {
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 8px;
    padding: 16px;
    background: rgba(247, 250, 247, 0.82);
}

@media (max-width: 820px) {
    .site-nav {
        min-height: 66px;
    }

    .home-hero {
        min-height: 76vh;
        min-height: 76svh;
        padding-top: 116px;
        background-position: 62% center;
    }

    .home-hero h1 {
        font-size: 48px;
    }

    .page-heading h1 {
        font-size: 36px;
    }

    .hero-copy {
        font-size: 18px;
    }

    .trust-band {
        grid-template-columns: 1fr;
        margin-top: -18px;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }

    .admin-speed-form {
        grid-template-columns: 1fr;
    }

    .admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .policy-meta {
        grid-template-columns: 1fr;
    }

    .manual-shot,
    .manual-phone-grid,
    .manual-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    :root {
        --page-gutter: 16px;
    }

    .admin-metrics {
        grid-template-columns: 1fr;
    }

    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav--overlay {
        position: absolute;
    }

    .brand {
        font-size: 17px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .desktop-only {
        display: none !important;
    }

    .home-hero {
        min-height: 74vh;
        min-height: 74svh;
        padding: 146px var(--content-margin-right) 52px var(--content-margin-left);
        background-position: 70% center;
    }

    .home-hero h1 {
        max-width: 10ch;
        font-size: 42px;
    }

    .actions,
    .button {
        width: 100%;
    }

    .quick-code {
        margin-top: 18px;
        padding-top: 16px;
    }

    .quick-code-row {
        grid-template-columns: 1fr;
    }

    .quick-code input[type="text"],
    .quick-code .button,
    .button {
        min-height: 52px;
    }

    .panel {
        padding: 20px;
    }

    .page-heading {
        text-align: center;
    }

    .panel-heading {
        align-items: flex-start;
    }

    .panel-heading .mode-switch {
        width: 100%;
    }

    .send-picker-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .send-picker-actions {
        margin-top: 20px;
    }

    .transfer-mode-trigger {
        width: 100%;
        margin-top: 0;
    }

    .transfer-mode-modal {
        padding: 14px;
    }

    .transfer-mode-dialog {
        max-height: calc(100vh - 28px);
        padding: 18px;
    }

    .transfer-mode-options {
        grid-template-columns: 1fr;
    }

    .transfer-mode-head h2 {
        font-size: 24px;
    }

    .transfer-mode-foot .button {
        width: 100%;
    }

    .drop-zone {
        display: none;
    }

    .qr-panel {
        grid-template-columns: 1fr;
    }

    .qr-code {
        width: min(100%, 220px);
        max-width: 220px;
        justify-self: center;
    }

    .code {
        font-size: 42px;
    }

    .send-code-focus .code {
        font-size: 64px;
    }

    .state-title {
        font-size: 26px !important;
    }

    .big-percent {
        font-size: 32px;
    }

    .selection-summary,
    .progress-meta {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .selection-summary span:first-child {
        white-space: normal;
    }

    .transfer-actions .button,
    .download-main {
        width: 100%;
    }

    .selected-file-list {
        max-height: 360px;
    }

    .selected-file-row {
        align-items: flex-start;
        flex-direction: column;
        padding-left: var(--depth-indent, 8px);
    }

    .selected-file-actions {
        width: 100%;
        justify-content: flex-end;
        padding-left: 0;
    }

    .selected-file-action {
        flex: 1 1 76px;
    }

    .file-list-actions .selected-file-action {
        flex: 0 1 160px;
    }

    .download-entry {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 360px) {
    :root {
        --page-gutter: 12px;
    }

    .panel {
        padding: 16px;
    }

    .panel h1,
    .panel h2 {
        font-size: 24px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}
