:root {
    color-scheme: light;
    --brand: #155eef;
    --brand-dark: #0f48be;
    --brand-soft: #edf3ff;
    --ink: #17212b;
    --ink-soft: #4d5d6c;
    --muted: #6c7a88;
    --line: #dfe5ec;
    --line-strong: #b8c4d0;
    --surface: #ffffff;
    --surface-soft: #f5f7fa;
    --page: #f4f7fb;
    --success: #16794d;
    --success-soft: #eaf8f1;
    --warning: #8a5500;
    --warning-soft: #fff7df;
    --danger: #b42318;
    --danger-dark: #8f1c13;
    --danger-soft: #fff1f0;
    --shadow-sm: 0 1px 2px rgba(20, 31, 43, .05), 0 4px 14px rgba(20, 31, 43, .04);
    --shadow-md: 0 18px 50px rgba(25, 39, 58, .10);
    --radius-sm: 9px;
    --radius: 16px;
    --radius-lg: 22px;
    --page-gutter: clamp(16px, 4vw, 32px);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--page);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 4%, rgba(21, 94, 239, .055), transparent 28rem),
        var(--page);
}

body.modal-open {
    overflow: hidden;
}

main {
    flex: 1 0 auto;
}

section[id] {
    scroll-margin-top: 90px;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
summary,
label,
input[type="file"] {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--brand-dark);
    text-underline-offset: .16em;
    text-decoration-thickness: .08em;
}

a:hover {
    text-decoration-thickness: .12em;
}

::selection {
    color: var(--ink);
    background: #cfe0ff;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container,
.wide-container {
    width: min(760px, calc(100% - (2 * var(--page-gutter))));
    margin: clamp(30px, 5vw, 58px) auto clamp(50px, 8vw, 88px);
}

.wide-container {
    width: min(1080px, calc(100% - (2 * var(--page-gutter))));
}

/* Header and navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 229, 236, .9);
    box-shadow: 0 1px 0 rgba(23, 33, 43, .025);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1160px, calc(100% - (2 * var(--page-gutter))));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 38px);
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 154px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 30px);
    margin-right: auto;
}

.main-nav a,
.header-login,
.account-link {
    color: var(--ink-soft);
    font-size: .93rem;
    font-weight: 650;
    text-decoration: none;
}

.main-nav a:hover,
.header-login:hover,
.account-link:hover {
    color: var(--brand);
}

.header-account {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.plan-badge,
.status-dot,
.result-count,
.content-type,
.lock-label,
.expiry-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.plan-badge {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid #d4e1ff;
}

.account-link {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.account-link > span:last-child {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-avatar {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), #6d50df);
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 800;
}

.logout-form {
    margin: 0;
}

.button-link {
    display: inline;
    padding: 2px;
    color: var(--brand-dark);
    background: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .18em;
    cursor: pointer;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    display: none;
    place-content: center;
    gap: 5px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
    width: 20px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 99px;
    transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle.is-open > span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open > span:nth-of-type(3) {
    opacity: 0;
}

.menu-toggle.is-open > span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    width: min(100% - (2 * var(--page-gutter)), 760px);
    margin: 0 auto;
    padding: 10px 0 18px;
    display: grid;
    border-top: 1px solid var(--line);
}

.mobile-menu a,
.mobile-menu .button-link {
    width: 100%;
    padding: 11px 4px;
    display: block;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
}

.mobile-menu form {
    margin: 0;
}

/* Type and content */

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -.025em;
}

h1 {
    margin: 6px 0 15px;
    font-size: clamp(2.1rem, 6vw, 3.35rem);
}

h2 {
    margin: 0 0 13px;
    font-size: clamp(1.45rem, 3.6vw, 2rem);
}

h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    padding-left: 1.35rem;
}

li + li {
    margin-top: .5em;
}

.hero,
.page-heading {
    margin-bottom: 28px;
}

.hero.compact {
    margin-bottom: 24px;
}

.hero > p:not(.eyebrow),
.page-heading > p:not(.eyebrow) {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 2vw, 1.15rem);
}

.page-heading h1 {
    margin-bottom: 11px;
}

.eyebrow {
    margin: 0;
    color: #5c6c7d;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.centered {
    text-align: center;
}

.centered > p:not(.eyebrow) {
    margin-inline: auto;
}

.card {
    margin-bottom: 24px;
    padding: clamp(24px, 5vw, 40px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card > :first-child {
    margin-top: 0;
}

.card > :last-child {
    margin-bottom: 0;
}

.narrow {
    max-width: 570px;
    margin-inline: auto;
}

article.card {
    color: #354555;
}

article.card h2 {
    color: var(--ink);
    margin-top: 2px;
}

article.card ul,
article.card ol {
    padding-left: 1.45rem;
}

code {
    padding: .1em .35em;
    color: #354555;
    background: #eef1f4;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .88em;
}

hr {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

/* Forms and buttons */

label,
legend {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-weight: 720;
}

.optional {
    color: var(--muted);
    font-weight: 500;
}

input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    width: 100%;
    min-height: 48px;
    margin: 0 0 20px;
    padding: 11px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(17, 32, 48, .025);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

select {
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: #8a96a2;
    opacity: 1;
}

input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]):hover,
textarea:hover,
select:hover {
    border-color: #94a4b3;
}

input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]):focus,
textarea:focus,
select:focus,
.slug-input:focus-within {
    border-color: var(--brand);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(21, 94, 239, .16);
}

input:disabled,
textarea:disabled,
select:disabled {
    color: var(--muted);
    background: #f1f3f5;
    cursor: not-allowed;
}

input[type="file"]:not(.visually-hidden-file) {
    padding: 9px;
}

input[type="file"]::file-selector-button {
    min-height: 34px;
    margin-right: 11px;
    padding: 6px 12px;
    color: var(--ink);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.form-stack > .button,
.compact-form > .button {
    justify-self: start;
}

.compact-form {
    max-width: 620px;
    padding-top: 18px;
}

.inline-form {
    margin-top: 14px;
}

.button {
    min-height: 46px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: var(--brand);
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(21, 94, 239, .17);
    font: inherit;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.button.secondary {
    background: #344658;
    box-shadow: 0 5px 14px rgba(31, 47, 63, .13);
}

.button.ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--line-strong);
    box-shadow: none;
}

.button.danger {
    background: var(--danger);
    box-shadow: 0 5px 14px rgba(180, 35, 24, .16);
}

.button.small {
    min-height: 38px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: .88rem;
}

.button.full-width,
.full-width {
    width: 100%;
}

.button:disabled,
.button.is-loading {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.button.is-loading::before {
    width: 15px;
    height: 15px;
    content: "";
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.button.ghost.is-loading::before {
    border-color: rgba(23, 33, 43, .25);
    border-top-color: var(--ink);
}

.button-link.danger-link {
    color: var(--danger);
}

.text-link {
    font-size: .92rem;
    font-weight: 750;
    white-space: nowrap;
}

.field-help,
.fine-print,
.modal-legal {
    color: var(--muted);
    font-size: .82rem;
}

.field-help {
    margin: -12px 0 19px;
}

.fine-print {
    margin: 18px 0 0;
}

/* Feedback */

.alert {
    margin: 0 0 22px;
    padding: 14px 16px;
    color: #294458;
    background: #edf5fb;
    border: 1px solid #d5e8f6;
    border-radius: 11px;
}

.alert-error {
    color: #84231b;
    background: var(--danger-soft);
    border-color: #f1c9c5;
}

.alert-success {
    color: #11613e;
    background: var(--success-soft);
    border-color: #bfe8d2;
}

.deployment-warning {
    border-width: 2px;
}

.secure-banner {
    margin: 0 0 18px;
    padding: 15px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #704700;
    background: var(--warning-soft);
    border: 1px solid #efd596;
    border-radius: 13px;
}

.secure-banner > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.secure-banner strong {
    color: #664000;
}

.secure-banner span {
    font-size: .9rem;
}

.secure-banner .button {
    flex: 0 0 auto;
}

.toast {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1200;
    max-width: min(360px, calc(100% - 36px));
    padding: 12px 16px;
    color: #fff;
    background: #203040;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    font-size: .9rem;
    font-weight: 700;
    animation: toast-in .18s ease-out;
}

.toast.is-error {
    background: var(--danger);
}

.clipboard-helper {
    position: fixed !important;
    top: 0 !important;
    left: -9999px !important;
    width: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
}

/* Landing page */

.landing-hero,
.feature-strip {
    width: min(1080px, calc(100vw - (2 * var(--page-gutter))));
    margin-left: 50%;
    transform: translateX(-50%);
}

.landing-hero {
    min-height: 470px;
    padding: clamp(38px, 7vw, 80px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: clamp(36px, 7vw, 84px);
}

.landing-hero h1 {
    max-width: 690px;
    font-size: clamp(2.65rem, 6vw, 4.5rem);
}

.landing-hero > div:first-child > p:not(.eyebrow) {
    max-width: 570px;
    margin-bottom: 26px;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.landing-visual {
    position: relative;
    min-height: 350px;
}

.visual-card {
    position: absolute;
    width: min(340px, 92%);
    min-height: 226px;
    padding: 30px;
    display: grid;
    align-content: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.visual-card.back {
    top: 30px;
    right: 25px;
    background: linear-gradient(145deg, #dce8ff, #eef3ff);
    border-color: #cbdcff;
    transform: rotate(7deg);
}

.visual-card.front {
    top: 78px;
    left: 0;
}

.visual-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), #6d50df);
    border-radius: 15px;
    font-size: 1.6rem;
    font-weight: 800;
}

.visual-card strong {
    font-size: 1.03rem;
}

.visual-card small {
    color: var(--muted);
}

.visual-link {
    margin-top: 8px;
    padding: 9px 11px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 700;
}

.feature-strip {
    margin-top: 6px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.feature-strip > div {
    padding: 20px 22px;
    display: grid;
    gap: 3px;
}

.feature-strip > div + div {
    border-left: 1px solid var(--line);
}

.feature-strip strong {
    font-size: .92rem;
}

.feature-strip span {
    color: var(--muted);
    font-size: .83rem;
}

/* Authentication modal */

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    display: grid;
    place-items: center;
    overflow-y: auto;
    background: rgba(16, 27, 40, .67);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.auth-modal {
    position: relative;
    width: min(470px, 100%);
    max-height: calc(100dvh - 36px);
    padding: clamp(24px, 5vw, 38px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(4, 15, 27, .30);
    animation: modal-in .2s ease-out;
}

.auth-logo {
    width: 145px;
    margin-bottom: 25px;
    display: block;
}

.auth-modal h2 {
    margin-top: 7px;
}

.public-share-dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 1100;
    width: min(610px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: 0;
    padding: 0;
    overflow: visible;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(4, 15, 27, .34);
    transform: translate(-50%, -50%);
}

.public-share-dialog:not([open]) {
    display: none;
}

.public-share-dialog::backdrop {
    background: rgba(16, 27, 40, .67);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.public-share-dialog[open] .public-share-dialog-content {
    animation: modal-in .2s ease-out;
}

.public-share-dialog-content {
    padding: clamp(25px, 5vw, 38px);
}

.public-share-dialog h2 {
    margin: 7px 0 12px;
}

.public-share-dialog h2 + p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.public-share-dialog-actions {
    margin-top: 27px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.public-share-dialog-actions .button {
    width: 100%;
    min-width: 0;
}

.no-script-share-choice {
    margin: 0 0 18px;
}

.no-script-share-choice p {
    margin: 7px 0;
}

.no-script-share-choice .check-row {
    margin-top: 12px;
    background: #fff;
}

.auth-modal [data-auth-panel] > p:not(.eyebrow) {
    color: var(--ink-soft);
}

.modal-close {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.slug-input {
    min-height: 50px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.slug-input > span {
    padding-left: 13px;
    font-size: .91rem;
    white-space: nowrap;
}

.slug-input input {
    min-width: 0;
    min-height: 48px !important;
    margin: 0 !important;
    padding-left: 3px !important;
    border: 0 !important;
    box-shadow: none !important;
}

.auth-switch {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

.modal-legal {
    margin: 23px 0 0;
    text-align: center;
}

/* Sharing composer */

.share-card {
    overflow: hidden;
}

.share-composer-hero h1 {
    margin-bottom: 0;
}

.text-composer,
.file-composer {
    position: relative;
    height: 150px;
    margin-bottom: 58px;
}

.share-panel[data-type-panel] {
    min-height: 260px;
}

.text-composer textarea,
.file-drop {
    width: 100%;
    height: 150px;
    min-height: 150px;
    margin: 0;
}

.composer-actions {
    position: absolute;
    right: 16px;
    bottom: -18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    max-width: calc(100% - 20px);
    transform: none;
}

.composer-action {
    min-height: 34px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .94);
    font-size: .78rem;
}

.text-composer textarea {
    padding-bottom: 60px;
}

.share-type-picker {
    margin: 0 0 27px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border: 0;
}

.share-type-option {
    position: relative;
    min-height: 94px;
    margin: 0;
    padding: 15px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}

.share-type-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.share-type-option:has(input:checked) {
    background: var(--brand-soft);
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(21, 94, 239, .09);
}

.share-type-option:has(input:focus-visible) {
    outline: 3px solid rgba(21, 94, 239, .22);
    outline-offset: 2px;
}

.type-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    background: #e5eeff;
    border-radius: 13px;
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: -.04em;
}

.file-icon {
    font-size: 1.45rem;
}

.share-type-option strong,
.share-type-option small {
    display: block;
}

.share-type-option strong {
    margin-bottom: 2px;
}

.share-type-option small {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 550;
}

.share-panel {
    animation: none;
}

.share-panel textarea {
    min-height: 150px;
}

.upload-panel {
    margin-bottom: 0;
}

.file-drop {
    margin: 0;
    padding: 12px 20px 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--ink);
    background: #f8faff;
    border: 2px dashed #aebfdb;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.file-drop:hover,
.file-drop.is-dragging {
    background: var(--brand-soft);
    border-color: var(--brand);
}

.file-drop.is-dragging {
    box-shadow: 0 0 0 4px rgba(21, 94, 239, .12);
    transform: translateY(-2px);
}

.upload-panel:has(.visually-hidden-file:focus-visible) .file-drop {
    border-color: var(--brand);
    outline: 3px solid rgba(21, 94, 239, .18);
    outline-offset: 2px;
}

.upload-symbol {
    width: 32px;
    height: 32px;
    margin: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 14px;
    font-size: 1.1rem;
}

.upload-label {
    font-size: 1rem;
    line-height: 1.25;
}

.composer-action.is-muted {
    color: #617080;
    background: #e8edf2;
    border-color: #d2dae3;
    opacity: 1;
    filter: none;
}

.composer-action.is-muted:hover {
    color: #617080 !important;
    background: #e8edf2 !important;
    border-color: #d2dae3 !important;
}

.composer-action:hover {
    transform: none !important;
}

.visually-hidden-file {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.upload-limits {
    margin-top: 0;
    text-align: center;
}

.primary-action:disabled {
    color: #73808c;
    background: #e8edf2;
    border-color: #d2dae3;
    box-shadow: none;
    opacity: 1;
}

.selected-files:empty {
    display: none;
}

.selected-files {
    margin: 0 0 22px;
}

.selected-files ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
}

.selected-files li {
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.selected-file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 700;
}

.selected-file-size {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .78rem;
}

.selected-files-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .8rem;
}

.share-options,
.settings-details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.share-options {
    margin: 5px 0 22px;
    overflow: clip;
}

.share-options summary,
.settings-details summary {
    position: relative;
    min-height: 52px;
    padding: 14px 46px 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 760;
    list-style: none;
    cursor: pointer;
}

.share-options summary::-webkit-details-marker,
.settings-details summary::-webkit-details-marker {
    display: none;
}

.share-options summary::after,
.settings-details summary::after {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 9px;
    height: 9px;
    content: "";
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-68%) rotate(45deg);
    transition: transform .16s ease;
}

.share-options[open] summary::after,
.settings-details[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.share-options summary span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 520;
}

.share-options[open] summary,
.settings-details[open] summary {
    border-bottom: 1px solid var(--line);
}

.options-content {
    padding: 22px 18px 18px;
}

.check-row {
    margin: 2px 0 0;
    padding: 13px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.check-row input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 2px 0 0;
    accent-color: var(--brand);
}

.check-row strong,
.check-row small {
    display: block;
}

.check-row small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .79rem;
    font-weight: 500;
}

.compact-check {
    margin: 0 0 18px;
    padding: 10px 12px;
}

.primary-action {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
}

/* Dashboard and settings */

.dashboard-section,
.profile-content {
    margin-top: 42px;
}

.section-heading {
    margin-bottom: 17px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    margin: 4px 0 0;
}

.share-list,
.download-list {
    display: grid;
    gap: 10px;
}

.share-list-item {
    min-width: 0;
    padding: 15px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(21, 34, 48, .025);
}

.item-type {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 11px;
    font-size: .86rem;
    font-weight: 850;
}

.share-list-item h3 {
    margin: 0 0 3px;
}

.share-list-item h3 a {
    color: var(--ink);
    text-decoration: none;
}

.share-list-item p {
    margin: 0;
    color: var(--muted);
    font-size: .79rem;
}

.item-action {
    padding: 8px;
    font-size: .84rem;
    font-weight: 750;
}

.empty-state {
    padding: 30px 22px;
    color: var(--muted);
    background: rgba(255, 255, 255, .68);
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    text-align: center;
}

.accent-card {
    border-top: 4px solid #e2a72c;
}

.status-dot.warning {
    color: var(--warning);
    background: var(--warning-soft);
    border: 1px solid #efd596;
}

.status-dot.success {
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid #bfe8d2;
}

.settings-details {
    margin-top: 12px;
    overflow: clip;
}

.settings-details form {
    padding: 0 17px 18px;
}

.url-preview {
    margin: 15px 0 22px;
    padding: 11px 13px;
    overflow-wrap: anywhere;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 9px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .85rem;
}

.current-logo {
    width: auto;
    max-width: 220px;
    max-height: 110px;
    margin: 2px 0 13px;
    padding: 10px;
    display: block;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.locked-feature,
.profile-upsell {
    padding: 17px;
    color: var(--ink-soft);
    background: var(--brand-soft);
    border: 1px solid #d4e1ff;
    border-radius: 11px;
}

.locked-feature strong {
    color: var(--ink);
}

.locked-feature p {
    margin: 5px 0 8px;
}

.danger-zone {
    border-color: #efc8c4;
    background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
}

.danger-zone h2 {
    color: #7d261f;
}

/* Profiles */

.profile-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
}

.profile-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-avatar,
.profile-logo {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border-radius: 22px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), #6d50df);
    font-size: 2rem;
    font-weight: 850;
}

.profile-logo {
    padding: 9px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
}

.profile-identity h1 {
    margin: 5px 0 4px;
    font-size: clamp(2rem, 5vw, 3rem);
}

.profile-handle {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.profile-description,
.profile-upsell {
    grid-column: 1 / -1;
}

.profile-description {
    max-width: 780px;
    padding-top: 24px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    font-size: 1.04rem;
}

.profile-upsell {
    font-size: .9rem;
}

.result-count {
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line);
}

.profile-share-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-share-card {
    min-width: 0;
    padding: 21px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.profile-share-top {
    margin-bottom: 17px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.content-type {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.lock-label {
    color: var(--warning);
    background: var(--warning-soft);
}

.profile-share-card h3 {
    font-size: 1.12rem;
}

.profile-share-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.profile-share-card > p {
    flex: 1;
    color: var(--ink-soft);
    font-size: .9rem;
}

.profile-shared-text {
    max-height: 32rem;
    margin: 0 0 18px;
    padding: 14px;
    flex: 1;
    overflow: auto;
    overflow-wrap: anywhere;
    color: var(--ink-soft);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.58;
}

.profile-copy-text-button {
    margin: 0 0 18px;
    align-self: flex-start;
}

.compact-download-list {
    margin: 0 0 18px;
}

.compact-download-list .download-item {
    padding: 11px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.profile-share-meta {
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: .76rem;
}

.profile-share-delete {
    margin: 12px 0 0;
    padding: 11px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: .8rem;
}

.profile-share-delete .button-link {
    flex: 0 0 auto;
    font-weight: 800;
}

.private-profile-section {
    margin-top: 36px;
}

.private-profile-section h2 span {
    color: var(--muted);
    font-size: .58em;
    font-weight: 650;
}

.private-share-card {
    border-color: #efd596;
}

.profile-empty p {
    margin: 5px 0 0;
}

/* Share result, management and download */

.success-mark,
.pending-mark,
.error-mark,
.lock-mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.55rem;
    font-weight: 850;
}

.success-mark {
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid #bfe8d2;
}

.pending-mark {
    color: var(--warning);
    background: var(--warning-soft);
    border: 1px solid #efd596;
}

.error-mark {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid #efc8c4;
}

.lock-mark {
    color: var(--warning);
    background: var(--warning-soft);
    border: 1px solid #efd596;
}

.error-card,
.password-card {
    text-align: center;
}

.password-card form {
    text-align: left;
}

.copy-row {
    margin: 0 0 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.copy-row input {
    margin: 0 !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .88rem;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.management-options {
    margin-top: 28px;
    margin-bottom: 0;
}

.secondary-copy-block {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.secondary-copy-block > label {
    margin-top: 6px;
}

.secondary-copy-block > p:not(.eyebrow) {
    margin: -10px 0 15px;
    color: var(--muted);
    font-size: .88rem;
}

.secondary-copy-block .copy-row {
    margin-bottom: 10px;
}

.details {
    margin: 0 0 24px;
}

.details > div {
    padding: 9px 0;
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.details dt {
    font-weight: 750;
}

.details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.shared-content {
    padding: clamp(24px, 5vw, 44px);
}

.shared-header {
    margin-bottom: 27px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.shared-header h1 {
    margin-bottom: 0;
}

.expiry-pill {
    flex: 0 0 auto;
    color: var(--ink-soft);
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.shared-text {
    max-height: 65vh;
    padding: 22px;
    overflow: auto;
    overflow-wrap: anywhere;
    color: #263645;
    background: #f7f9fb;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    font-size: 1.02rem;
    line-height: 1.68;
}

.copy-text-button {
    margin-top: 16px;
}

.shared-link {
    padding: 18px;
    overflow-wrap: anywhere;
    background: var(--brand-soft);
    border-radius: 10px;
    font-size: 1.04rem;
}

.download-item {
    min-width: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.file-kind {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    background: #e4edff;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 800;
}

.download-item strong,
.download-item span {
    display: block;
    overflow-wrap: anywhere;
}

.download-item span {
    margin-top: 2px;
    color: var(--muted);
    font-size: .8rem;
}

.download-safety {
    margin-top: 20px;
    padding: 13px 15px;
    color: var(--ink-soft);
    background: var(--warning-soft);
    border: 1px solid #efdcae;
    border-radius: 10px;
    font-size: .84rem;
}

/* Pricing components support both pricing-* and plan-* naming */

.pricing-hero {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.pricing-grid,
.plan-grid,
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.pricing-card,
.plan-card {
    position: relative;
    min-width: 0;
    padding: 27px 24px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.pricing-card.featured,
.pricing-card.recommended,
.plan-card.featured,
.plan-card.recommended {
    border-color: var(--brand);
    box-shadow: 0 16px 42px rgba(21, 94, 239, .12);
}

.popular-badge,
.recommended-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    padding: 5px 10px;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}

.price,
.plan-price,
.price-tag {
    margin: 12px 0 18px;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: -.04em;
}

.price small,
.plan-price small,
.price-tag small {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 550;
    letter-spacing: 0;
}

.price-tax-note {
    margin: -14px 0 18px;
    color: var(--muted);
    font-size: .82rem;
}

.plan-features,
.pricing-features {
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.plan-features li,
.pricing-features li {
    position: relative;
    margin: 0;
    padding-left: 23px;
    color: var(--ink-soft);
    font-size: .9rem;
}

.plan-features li::before,
.pricing-features li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: var(--success);
    font-weight: 850;
}

.pricing-card .button,
.plan-card .button {
    width: 100%;
    margin-top: auto;
}

.pricing-note,
.billing-note {
    max-width: 760px;
    margin: 28px auto 0;
    color: var(--muted);
    font-size: .86rem;
    text-align: center;
}

.comparison-table {
    width: 100%;
    margin-top: 35px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

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

.form-grid[aria-label="Medlemsplaner"] {
    width: min(1080px, calc(100vw - (2 * var(--page-gutter))));
    margin: 0 0 28px 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    transform: translateX(-50%);
}

.form-grid[aria-label="Medlemsplaner"] > .card {
    min-width: 0;
    margin: 0;
    padding: 27px 24px;
    display: flex;
    flex-direction: column;
}

.form-grid[aria-label="Medlemsplaner"] > .card:nth-child(2) {
    border-color: #9db9f4;
    box-shadow: 0 15px 38px rgba(21, 94, 239, .10);
}

.form-grid[aria-label="Medlemsplaner"] h2 {
    margin-top: 7px;
}

.form-grid[aria-label="Medlemsplaner"] h2 + p strong {
    color: var(--ink);
    font-size: 1.65rem;
    letter-spacing: -.035em;
}

.form-grid[aria-label="Medlemsplaner"] ul {
    flex: 1;
    margin: 8px 0 25px;
    padding: 0;
    display: grid;
    align-content: start;
    gap: 10px;
    list-style: none;
}

.form-grid[aria-label="Medlemsplaner"] li {
    position: relative;
    margin: 0;
    padding-left: 23px;
    color: var(--ink-soft);
    font-size: .88rem;
}

.form-grid[aria-label="Medlemsplaner"] li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: var(--success);
    font-weight: 850;
}

.form-grid[aria-label="Medlemsplaner"] form {
    margin-top: auto;
}

.form-grid[aria-label="Medlemsplaner"] .button {
    width: 100%;
    margin-top: auto;
}

.form-grid[aria-label="Medlemsplaner"] .button[aria-current="true"] {
    cursor: default;
    opacity: .78;
}

.form-grid[aria-label="Medlemsplaner"] .fine-print {
    margin-top: auto;
}

.alert form {
    margin-top: 13px;
}

/* Footer */

.site-footer {
    flex: 0 0 auto;
    color: var(--muted);
    background: rgba(255, 255, 255, .78);
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(1080px, calc(100% - (2 * var(--page-gutter))));
    min-height: 150px;
    margin: 0 auto;
    padding: 32px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px 44px;
}

.footer-brand img {
    width: 141px;
    display: block;
}

.footer-brand p,
.footer-note {
    margin: 8px 0 0;
    font-size: .8rem;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 24px;
}

.footer-inner nav a {
    color: var(--ink-soft);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-note {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

/* Interaction states */

:where(a, button, summary, input, textarea, select):focus-visible {
    outline: 3px solid rgba(21, 94, 239, .28);
    outline-offset: 3px;
}

@media (hover: hover) {
    .button:hover {
        color: #fff;
        background: var(--brand-dark);
        box-shadow: 0 7px 18px rgba(21, 94, 239, .22);
        text-decoration: none;
        transform: translateY(-1px);
    }

    .button.secondary:hover {
        background: #253747;
    }

    .button.ghost:hover {
        color: var(--ink);
        background: var(--surface-soft);
        border-color: #95a5b4;
        box-shadow: none;
    }

    .button.danger:hover {
        background: var(--danger-dark);
    }

    .share-type-option:hover {
        border-color: #879db5;
        transform: translateY(-1px);
    }

    .profile-share-card:hover {
        border-color: #c6d1db;
        box-shadow: 0 10px 25px rgba(20, 31, 43, .07);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .main-nav {
        gap: 17px;
    }

    .header-account {
        gap: 8px;
    }

    .header-account .plan-badge,
    .logout-form {
        display: none;
    }
}

@media (max-width: 840px) {
    .header-inner {
        min-height: 66px;
    }

    .brand img {
        width: 143px;
    }

    .main-nav,
    .header-account {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .landing-hero {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .landing-hero > div:first-child {
        max-width: 680px;
    }

    .landing-visual {
        min-height: 300px;
    }

    .visual-card {
        width: min(340px, 76%);
    }

    .visual-card.back {
        right: 12%;
    }

    .visual-card.front {
        left: 13%;
        top: 64px;
    }

    .pricing-grid,
    .plan-grid,
    .plans-grid,
    .form-grid[aria-label="Medlemsplaner"] {
        width: min(620px, calc(100vw - (2 * var(--page-gutter))));
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
    }
}

@media (max-width: 700px) {
    .form-grid,
    .profile-share-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .profile-share-grid {
        gap: 13px;
    }

    .feature-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-strip > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .profile-header {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .profile-header > .button {
        justify-self: start;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner nav {
        justify-content: flex-start;
    }

    .footer-note {
        grid-column: auto;
    }
}

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

    .container,
    .wide-container {
        margin-top: 27px;
        margin-bottom: 55px;
    }

    h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .landing-hero {
        padding-top: 32px;
    }

    .landing-hero h1 {
        font-size: clamp(2.4rem, 13vw, 3.35rem);
    }

    .landing-visual {
        min-height: 265px;
    }

    .visual-card {
        width: 86%;
        min-height: 190px;
        padding: 22px;
    }

    .visual-card.back {
        top: 18px;
        right: 4%;
    }

    .visual-card.front {
        top: 53px;
        left: 4%;
    }

    .visual-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .card {
        padding: 21px 18px;
        border-radius: 16px;
    }

    .secure-banner {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .secure-banner .button {
        width: 100%;
    }

    .share-type-picker {
        grid-template-columns: minmax(0, 1fr);
    }

    .composer-actions {
        right: 12px;
        left: auto;
    }

    .composer-action {
        flex: 1 1 auto;
        font-size: .74rem;
    }

    .share-type-option {
        min-height: 82px;
    }

    .file-drop {
        min-height: 150px;
    }

    .share-options summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 1px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .share-list-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .share-list-item .item-action {
        grid-column: 2;
        justify-self: start;
        padding-left: 0;
    }

    .profile-identity {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .profile-avatar,
    .profile-logo {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
        border-radius: 19px;
    }

    .profile-share-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .shared-header {
        flex-direction: column;
        gap: 12px;
    }

    .copy-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .copy-row .button,
    .action-row .button {
        width: 100%;
    }

    .action-row {
        flex-direction: column;
    }

    .details > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .download-item {
        grid-template-columns: 43px minmax(0, 1fr);
    }

    .download-item .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .compact-download-list .download-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .compact-download-list .download-item .button {
        grid-column: auto;
    }

    .public-share-dialog {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
        overflow: auto;
        border-radius: 18px;
    }

    .public-share-dialog-content {
        padding: 25px 19px;
    }

    .public-share-dialog-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-overlay {
        padding: 12px 0 0;
        place-items: end center;
    }

    .auth-modal {
        width: 100%;
        max-height: calc(100dvh - 12px);
        padding: 27px 19px max(24px, env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }

    .slug-input > span {
        padding-left: 10px;
        font-size: .82rem;
    }

    .footer-inner {
        min-height: 0;
        padding: 28px 0;
    }

    .footer-inner nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .toast {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        max-width: calc(100% - 28px);
    }
}

@media (max-height: 420px) {
    .public-share-dialog {
        max-height: calc(100dvh - 24px);
        overflow: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
