@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    color-scheme: light;
    --brand: #009ee3;
    --brand-hover: #007fb7;
    --brand-soft: #e2f5fc;
    --page: #f3f5f7;
    --surface: #ffffff;
    --surface-muted: #edf1f4;
    --surface-hover: #f7fafb;
    --header: #3f3f3f;
    --header-border: #565656;
    --text: #191919;
    --text-muted: #565656;
    --border: #d9e0e5;
    --border-strong: #c5cfd6;
    --success: #178454;
    --success-soft: #e3f5ec;
    --warning: #a66500;
    --warning-soft: #fff2d8;
    --error: #c23b32;
    --error-soft: #fce8e6;
    --shadow-sm: 0 1px 2px rgba(25, 25, 25, .05), 0 5px 16px rgba(25, 25, 25, .045);
    --shadow-md: 0 14px 36px rgba(25, 25, 25, .09);
    --radius: 12px;
    --radius-sm: 8px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --brand: #00abe6;
    --brand-hover: #31d5ff;
    --brand-soft: #123a48;
    --page: #191919;
    --surface: #252525;
    --surface-muted: #343434;
    --surface-hover: #2d2d2d;
    --header: #242424;
    --header-border: #3a3a3a;
    --text: #f7f8f9;
    --text-muted: #b8c0c5;
    --border: #454545;
    --border-strong: #565656;
    --success: #62d49d;
    --success-soft: #173c2c;
    --warning: #f6b74c;
    --warning-soft: #493617;
    --error: #ff8178;
    --error-soft: #4a2422;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .18), 0 5px 18px rgba(0, 0, 0, .16);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--page); }
body { min-height: 100vh; margin: 0; background: var(--page); color: var(--text); font-family: "Open Sans", Arial, sans-serif; font-size: 15px; line-height: 1.55; text-rendering: optimizeLegibility; }
body.has-modal { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 42%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }
.svg-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

h1, h2, h3 { margin: 0; color: var(--text); font-family: "Rajdhani", sans-serif; line-height: 1.12; }
h1 { font-size: clamp(2rem, 4vw, 2.65rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.eyebrow { margin-bottom: 5px; color: var(--brand); font-family: "Rajdhani", sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fine-print { color: var(--text-muted); font-size: .73rem; }

.app-header { position: relative; z-index: 10; min-height: 76px; background: var(--header); color: #fff; border-bottom: 1px solid var(--header-border); }
.app-header__inner, .page-shell, .app-footer__inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.app-header__inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__logo { display: flex; height: 44px; align-items: center; padding: 8px 12px; border-radius: 8px; background: #fff; }
.brand__logo img { display: block; width: 128px; height: auto; }
.brand__product { display: flex; flex-direction: column; font-family: "Rajdhani", sans-serif; line-height: 1; }
.brand__product strong { font-size: 1.45rem; }
.brand__product span { margin-top: 4px; color: #cbd0d3; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.main-nav { display: flex; align-self: stretch; align-items: stretch; margin-left: auto; }
.main-nav a { position: relative; display: inline-flex; align-items: center; padding-inline: 17px; color: #d8dcde; font-family: "Rajdhani", sans-serif; font-size: .98rem; font-weight: 600; text-decoration: none; }
.main-nav a::after { position: absolute; right: 16px; bottom: -1px; left: 16px; height: 3px; content: ""; border-radius: 3px 3px 0 0; background: transparent; }
.main-nav a:hover, .main-nav a.is-active { color: #fff; background: rgba(255, 255, 255, .045); }
.main-nav a.is-active::after { background: var(--brand-hover); }
.theme-toggle { position: relative; display: grid; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; place-items: center; color: #fff; border: 1px solid #686868; border-radius: 50%; background: #4a4a4a; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.theme-toggle:hover { color: var(--brand-hover); border-color: var(--brand-hover); background: #353535; }
.theme-toggle svg { position: absolute; width: 19px; height: 19px; transition: opacity .18s ease, transform .18s ease; }
.theme-toggle__moon, [data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: scale(.7) rotate(-20deg); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: scale(1) rotate(0); }

.noscript-alert { width: min(1080px, calc(100% - 48px)); margin: 18px auto 0; padding: 14px 16px; color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border)); border-radius: var(--radius-sm); background: var(--warning-soft); }
.noscript-alert details { margin-top: 8px; color: var(--text); }
.noscript-alert summary { font-weight: 700; cursor: pointer; }

.page-shell { min-height: calc(100vh - 205px); padding-block: 52px 70px; }
.page-shell--narrow { width: min(560px, calc(100% - 48px)); }
.hero { max-width: 850px; margin-bottom: 27px; }
.hero > p:last-child { max-width: 790px; margin-top: 10px; color: var(--text-muted); font-size: 1rem; }
.hero--compact { margin-bottom: 25px; }
.hero--result { display: flex; max-width: none; align-items: center; gap: 17px; }
.hero--result > div > p:last-child { margin-top: 6px; color: var(--text-muted); }
.result-icon { display: grid; width: 62px; height: 62px; flex: 0 0 62px; place-items: center; color: var(--brand); border-radius: 50%; background: var(--brand-soft); }
.result-icon svg { width: 30px; height: 30px; }
.result-icon--success { color: var(--success); background: var(--success-soft); }

.composer-card, .panel, .state-card, .doc-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.composer-card { padding: 28px; }
.note-type-selector { min-width: 0; padding: 0; margin: 0 0 22px; border: 0; }
.note-type-selector legend { margin-bottom: 9px; color: var(--text); font-weight: 700; }
.note-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.note-type-option { position: relative; min-width: 0; cursor: pointer; }
.note-type-option input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }
.note-type-option > span { display: flex; min-height: 78px; flex-direction: column; justify-content: center; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-hover); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.note-type-option strong { color: var(--text); font-family: "Rajdhani", sans-serif; font-size: 1rem; }
.note-type-option small { margin-top: 3px; color: var(--text-muted); font-size: .68rem; line-height: 1.35; }
.note-type-option:hover > span { border-color: var(--brand); background: var(--brand-soft); }
.note-type-option input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 15%, transparent); }
.note-type-option input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 42%, transparent); outline-offset: 2px; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 9px; }
.field-heading label, .field-group > label, .secret-row__label label { color: var(--text); font-weight: 700; }
.field-heading span { color: var(--text-muted); font-size: .75rem; }
.field-heading .field-heading__label { color: var(--text); font-size: .9rem; font-weight: 700; }
.secret-textarea { display: block; width: 100%; min-height: 360px; resize: vertical; padding: 17px 18px; color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-hover); font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9rem; line-height: 1.55; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.structured-composer { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-hover); }
.structured-fields { display: grid; gap: 14px; }
.structured-fields--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.structured-fields--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.structured-fields__wide { grid-column: 1 / -1; }
.structured-fields input { width: 100%; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.secret-textarea:focus, input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); background: var(--surface); }
.field-help { margin-top: 7px; color: var(--text-muted); font-size: .76rem; }
.field-error { margin-top: 7px; color: var(--error); font-size: .8rem; font-weight: 600; }
.options-grid { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(480px, 1.4fr); gap: 16px; margin-top: 20px; }
.option-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-hover); }
.option-card__icon { display: grid; width: 38px; height: 38px; margin-top: 28px; place-items: center; color: var(--brand); border-radius: 8px; background: var(--brand-soft); }
.option-card__icon svg { width: 20px; height: 20px; }
.field-group { min-width: 0; }
.field-group > label { display: block; margin-bottom: 6px; font-size: .83rem; }
.field-group > label span { color: var(--text-muted); font-size: .7rem; font-weight: 400; }
.field-group > p { margin-top: 6px; color: var(--text-muted); font-size: .7rem; }
input, select { min-height: 42px; padding: 8px 11px; color: var(--text); border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: .68; }
select { width: 100%; }
.input-action { display: flex; gap: 8px; }
.input-action input { width: 100%; min-width: 0; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.form-submit { display: flex; min-height: 80px; align-items: center; justify-content: flex-end; gap: 18px; margin: 25px -28px -28px; padding: 17px 28px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface-hover); }
.security-note { display: flex; max-width: 430px; align-items: center; gap: 9px; margin-right: auto; color: var(--text-muted); font-size: .73rem; }
.security-note svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--success); }
.submit-progress { display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: .78rem; font-weight: 600; }
.spinner { width: 17px; height: 17px; border: 2px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid transparent; border-radius: 7px; font-family: "Rajdhani", sans-serif; font-size: .95rem; font-weight: 700; line-height: 1.15; text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.button svg { width: 18px; height: 18px; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button--primary { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 5px 14px color-mix(in srgb, var(--brand) 22%, transparent); }
.button--primary:hover { color: #fff; border-color: var(--brand-hover); background: var(--brand-hover); }
.button--secondary { color: var(--text); border-color: var(--border-strong); background: var(--surface); }
.button--secondary:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.button--danger { color: #fff; border-color: var(--error); background: var(--error); }
.button--danger:hover { color: #fff; filter: brightness(.92); }
.button--danger-quiet { color: var(--error); border-color: color-mix(in srgb, var(--error) 40%, var(--border)); background: var(--error-soft); }
.button--danger-quiet:hover { color: var(--error); border-color: var(--error); }
.button--large { min-height: 48px; padding-inline: 20px; font-size: 1rem; }
.button--full { width: 100%; }
.button--copy { flex: 0 0 auto; color: #fff; border-radius: 0 7px 7px 0; background: var(--brand); }
.button--copy:hover { color: #fff; background: var(--brand-hover); transform: none; }
.icon-button { display: grid; width: 42px; height: 42px; flex: 0 0 42px; padding: 0; place-items: center; color: var(--brand); border: 0; border-left: 1px solid var(--border); border-radius: 0 7px 7px 0; background: var(--surface-muted); }
.icon-button:hover { color: var(--brand-hover); background: var(--brand-soft); }
.icon-button svg { width: 18px; height: 18px; }

.alert { display: flex; gap: 11px; margin-bottom: 20px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.alert > svg { width: 22px; height: 22px; flex: 0 0 22px; }
.alert > div { display: flex; flex-direction: column; }
.alert > div span { margin-top: 2px; font-size: .78rem; }
.alert--error { color: var(--error); border-color: color-mix(in srgb, var(--error) 32%, var(--border)); background: var(--error-soft); }
.alert--success { color: var(--success); border-color: color-mix(in srgb, var(--success) 32%, var(--border)); background: var(--success-soft); }

.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 20px; }
.result-main, .result-aside { display: grid; gap: 20px; }
.panel { padding: 23px; }
.panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel__heading > div > p + h2 { margin-top: 0; }
.panel__heading-icon { width: 27px; height: 27px; color: var(--brand); }
.panel > p { margin-bottom: 15px; color: var(--text-muted); font-size: .83rem; }
.status-badge { display: inline-flex; min-height: 27px; align-items: center; padding: 4px 10px; color: var(--success); border-radius: 14px; background: var(--success-soft); font-size: .68rem; font-weight: 700; }
.copy-field { display: flex; }
.copy-field input { width: 100%; min-width: 0; border-radius: 7px 0 0 7px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.copy-field--compact { width: min(100%, 410px); margin-left: auto; }
.secret-list { border-top: 1px solid var(--border); }
.secret-row { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(260px, 1fr); align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.secret-row:last-child { padding-bottom: 0; border-bottom: 0; }
.secret-row__label { display: flex; flex-direction: column; }
.secret-row__label span { margin-top: 2px; color: var(--text-muted); font-size: .7rem; }
.secret-row--warning .secret-row__label label { color: var(--warning); }
.mail-form { display: grid; grid-template-columns: 1fr 1.35fr auto; align-items: end; gap: 12px; }
.mail-form input { width: 100%; }
.qr-panel { text-align: center; }
.qr-panel .panel__heading { text-align: left; }
.qr-code { width: 100%; margin: 18px auto 15px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.qr-code canvas, .qr-code img, .qr-code svg { display: block; width: min(100%, 256px) !important; height: auto !important; margin: auto; }
.danger-zone { border-color: color-mix(in srgb, var(--error) 28%, var(--border)); }
.danger-zone .eyebrow, .danger-zone .panel__heading-icon { color: var(--error); }

.confirm-modal { position: fixed; z-index: 100; inset: 0; display: grid; padding: 24px; place-items: center; }
.confirm-modal__backdrop { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(10, 14, 17, .7); cursor: default; animation: modal-fade-in .16s ease both; }
.confirm-modal__dialog { position: relative; z-index: 1; width: min(100%, 470px); max-height: calc(100vh - 48px); overflow: auto; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 24px 70px rgba(0, 0, 0, .32); animation: modal-rise-in .2s ease both; }
.confirm-modal__heading { display: flex; align-items: center; gap: 14px; }
.confirm-modal__heading p { color: var(--error); font-family: "Rajdhani", sans-serif; font-size: 1.25rem; font-weight: 700; line-height: 1.15; }
.confirm-modal__icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; color: var(--error); border-radius: 50%; background: var(--error-soft); }
.confirm-modal__icon svg { width: 25px; height: 25px; }
.confirm-modal__dialog > p:not(.eyebrow) { margin-top: 10px; color: var(--text-muted); }
.confirm-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
@keyframes modal-fade-in { from { opacity: 0; } }
@keyframes modal-rise-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }

.note-reader { padding: 0; overflow: hidden; }
.note-reader__heading { padding: 22px 24px; margin: 0; border-bottom: 1px solid var(--border); }
.note-reader__heading p { margin-top: 4px; color: var(--text-muted); font-size: .76rem; }
.note-reader__heading .eyebrow { margin: 0 0 3px; color: var(--brand); font-size: .72rem; }
.secret-textarea--reader { min-height: 420px; resize: vertical; border: 0; border-radius: 0; background: var(--surface-hover); box-shadow: none; }
.secret-textarea--reader:focus { background: var(--surface-hover); box-shadow: inset 0 0 0 2px var(--brand); }
.structured-secret-list { padding: 5px 24px; background: var(--surface-hover); }
.structured-secret-row { display: grid; grid-template-columns: minmax(150px, .4fr) minmax(260px, 1fr); align-items: center; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.structured-secret-row:last-child { border-bottom: 0; }
.structured-secret-row__label label { color: var(--text); font-weight: 700; }
.structured-secret-row .copy-field input { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.note-reader__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; border-top: 1px solid var(--border); }
.expiry { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: .8rem; }
.expiry svg { width: 20px; height: 20px; color: var(--warning); }
.expiry strong { color: var(--text); }

.state-card { padding: 36px; text-align: center; }
.state-card__icon { display: grid; width: 64px; height: 64px; margin: 0 auto 18px; place-items: center; color: var(--brand); border-radius: 50%; background: var(--brand-soft); }
.state-card__icon svg { width: 31px; height: 31px; }
.state-card__icon--success { color: var(--success); background: var(--success-soft); }
.state-card__icon--error { color: var(--error); background: var(--error-soft); }
.state-card > p:not(.eyebrow) { margin: 10px 0 22px; color: var(--text-muted); }
.stack-form { display: grid; gap: 16px; margin-top: 24px; text-align: left; }
.stack-form input { width: 100%; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.state-actions { display: flex; justify-content: center; gap: 10px; margin-top: 23px; }

.doc-header { max-width: 760px; margin-bottom: 30px; }
.doc-header > p:last-child { margin-top: 9px; color: var(--text-muted); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 24px; }
.doc-nav { position: sticky; top: 18px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.doc-nav strong { display: block; margin-bottom: 8px; font-family: "Rajdhani", sans-serif; }
.doc-nav a { display: block; padding: 7px 9px; color: var(--text-muted); border-radius: 6px; font-size: .78rem; text-decoration: none; }
.doc-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.doc-content { display: grid; gap: 14px; }
.doc-card { padding: 24px; scroll-margin-top: 20px; }
.doc-card h2 { margin-bottom: 10px; }
.doc-card p { color: var(--text-muted); }
.doc-card p + p { margin-top: 12px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
.faq-item summary { position: relative; padding: 17px 48px 17px 19px; color: var(--text); font-family: "Rajdhani", sans-serif; font-size: 1.05rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 19px; content: "+"; color: var(--brand); font-size: 1.5rem; transform: translateY(-50%); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { padding: 0 19px 19px; color: var(--text-muted); }
.faq-item__body p + p { margin-top: 12px; }

.app-footer { border-top: 1px solid var(--border); background: var(--surface); }
.app-footer__inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); font-size: .7rem; }
.trust-list span { display: inline-flex; align-items: center; gap: 6px; }
.trust-list svg { width: 16px; height: 16px; color: var(--brand); }
.copyright { color: var(--text-muted); font-size: .7rem; }
.toast-region { position: fixed; z-index: 50; top: 94px; left: 50%; display: grid; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { min-width: 250px; padding: 11px 16px; color: #fff; border-radius: 22px; background: #303030; box-shadow: var(--shadow-md); text-align: center; font-size: .78rem; font-weight: 600; animation: toast-in .18s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 900px) {
    .app-header__inner { flex-wrap: wrap; gap: 0 18px; padding-block: 12px 0; }
    .brand { margin-right: auto; }
    .main-nav { width: 100%; order: 3; margin-top: 10px; overflow-x: auto; border-top: 1px solid var(--header-border); }
    .main-nav a { min-height: 46px; flex: 0 0 auto; padding-inline: 14px; }
    .options-grid, .result-layout, .doc-layout { grid-template-columns: 1fr; }
    .note-type-grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); overflow-x: auto; padding: 3px; }
    .option-card { min-width: 0; }
    .result-aside { grid-template-columns: 1fr 1fr; }
    .mail-form { grid-template-columns: 1fr 1fr; }
    .mail-form .button { grid-column: 1 / -1; }
    .doc-nav { position: static; }
}

@media (max-width: 620px) {
    body { font-size: 14px; }
    .app-header__inner, .page-shell, .app-footer__inner, .noscript-alert { width: min(100% - 28px, 1160px); }
    .brand__logo { height: 38px; padding: 7px 9px; }
    .brand__logo img { width: 105px; }
    .brand__product span { display: none; }
    .theme-toggle { width: 38px; height: 38px; flex-basis: 38px; }
    .page-shell { padding-block: 35px 48px; }
    .hero--result { align-items: flex-start; }
    .result-icon { width: 50px; height: 50px; flex-basis: 50px; }
    .composer-card, .panel { padding: 18px; }
    .secret-textarea { min-height: 330px; padding: 14px; }
    .note-type-grid, .structured-fields--two, .structured-fields--three { grid-template-columns: 1fr; }
    .note-type-grid { overflow: visible; }
    .structured-fields__wide { grid-column: auto; }
    .options-grid { grid-template-columns: minmax(0, 1fr); }
    .option-card { padding: 14px; }
    .input-action { flex-direction: column; }
    .form-submit { align-items: stretch; flex-direction: column; margin: 20px -18px -18px; padding: 17px 18px; }
    .security-note { max-width: none; }
    .button--large { width: 100%; }
    .result-layout, .result-aside { grid-template-columns: 1fr; }
    .panel__heading, .note-reader__heading, .note-reader__footer { align-items: stretch; flex-direction: column; }
    .secret-row { grid-template-columns: 1fr; gap: 8px; }
    .copy-field--compact { width: 100%; }
    .mail-form { grid-template-columns: 1fr; }
    .mail-form .button { grid-column: auto; width: 100%; }
    .secret-textarea--reader { min-height: 380px; }
    .structured-secret-list { padding-inline: 18px; }
    .structured-secret-row { grid-template-columns: 1fr; gap: 8px; }
    .state-card { padding: 27px 20px; }
    .state-actions { align-items: stretch; flex-direction: column; }
    .confirm-modal { padding: 14px; }
    .confirm-modal__dialog { max-height: calc(100vh - 28px); padding: 24px 20px 20px; }
    .confirm-modal__actions { align-items: stretch; flex-direction: column-reverse; }
    .confirm-modal__actions .button { width: 100%; }
    .app-footer__inner { align-items: flex-start; flex-direction: column; padding-block: 20px; }
    .trust-list { gap: 10px 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
