/* Presentation only. No routing, visibility-state, wallet or financial overrides. */
:root {
  --ink: #10294b;
  --muted: #617590;
  --line: #dce7f5;
  --soft: #f3f7fd;
  --shadow: 0 14px 40px rgba(29, 74, 135, .08);
}
body { background: radial-gradient(ellipse at 85% 0, #e5f2ff 0, transparent 48%), #f5f8fd; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { transition: background-color .16s, border-color .16s, box-shadow .16s; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #72a9ff; outline-offset: 3px;
}
button:disabled { box-shadow: none; }
.sidebar { padding: 26px 16px 18px; border-right-color: #e3ebf6; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.brand { padding-bottom: 28px; }
.brand b { font-size: 23px; letter-spacing: -.6px; }
.brand small { display: block; margin-top: 5px; letter-spacing: .04em; font-size: 10px; }
.sidebar > nav { gap: 6px; }
.sidebar > nav button { height: 46px; border-radius: 13px; font-size: 14px; }
.sidebar > nav button.active { background: #eaf3ff; box-shadow: inset 3px 0 #1268f3; }
.sidebar > nav button:hover:not(.active) { background: #f4f8fe; }
.sidebar .network-pill { margin-top: auto; line-height: 1.45; background: #f7faff; }
.sidebar .settings-link { font-size: 13px; }
.workspace > header { padding-inline: clamp(22px, 3vw, 44px); background: rgba(255,255,255,.94); }
.page-title b { font-size: 16px; letter-spacing: -.2px; }
.page-title small { font-size: 11px; }
.workspace > main { max-width: 1320px; padding: 32px clamp(22px, 3vw, 44px) 48px; }
.page { line-height: 1.6; }
.page .heading { gap: 24px; align-items: center; margin-bottom: 25px; }
.heading > div { min-width: 0; }
.heading > div > span, .info-kicker, .eyebrow { font-size: 10px; letter-spacing: .15em; }
.heading h1 { font-size: clamp(27px, 2.9vw, 36px); letter-spacing: -.8px; line-height: 1.25; margin: 8px 0 12px; }
.heading p { font-size: 14px; max-width: 730px; line-height: 1.85; text-wrap: pretty; }
.heading em { flex-shrink: 0; font-size: 11px; font-weight: 600; border: 1px solid #d9e8ff; padding: 6px 11px; }
.heading h1::before { content: ''; display: inline-block; width: 36px; height: 36px; margin-right: 12px; vertical-align: -.18em; background: var(--page-icon) center / contain no-repeat; }
[data-page="pay"] { --page-icon: url('./assets/transfer-flow-v1.png'); }
[data-page="receive"] { --page-icon: url('./assets/receive-scan-v1.png'); }
[data-page="receipt"] { --page-icon: url('./assets/receive-scan-v1.png'); }
[data-page="escrow"] { --page-icon: url('./assets/escrow-shield-v1.png'); }
[data-page="schedule"] { --page-icon: url('./assets/schedule-clock-v1.png'); }
[data-page="lock"] { --page-icon: url('./assets/lock-padlock-v1.png'); }
[data-page="veil"] { --page-icon: url('./assets/privacy-vortex-v1.png'); }
[data-page="cross"] { --page-icon: url('./assets/cross-chain-v1.png'); }
[data-page="merchant"] { --page-icon: url('./assets/merchant-api-v1.png'); }
[data-page="settings"] .heading h1::before { display: none; }
.card { border-color: #dfe9f6; border-radius: 22px; box-shadow: 0 5px 24px rgba(35,78,133,.035); }
.two-column { gap: 22px; align-items: start; }
.two-column > * { min-width: 0; }
.form-card, .claim-card, .manage-card, .settings-card, .api-card, .code-card { padding: 28px; }
.two-column > .manage-card { margin-top: 0; }
.page h2 { font-size: 21px; letter-spacing: -.4px; line-height: 1.4; }
.form-head { gap: 14px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid #e8eef8; }
.form-head b { font-size: 17px; }
.form-head small { font-size: 12px; line-height: 1.6; margin-top: 4px; }
.page label { margin-bottom: 20px; min-width: 0; }
.page label > span { font-size: 13px; margin-bottom: 8px; color: #365171; }
input, select, textarea { min-width: 0; border-color: #d4e1f2; background-color: #fcfdff; line-height: 1.5; border-radius: 12px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select { min-height: 48px; }
input::placeholder, textarea::placeholder { color: #8797ad; opacity: 1; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: #a9c5eb; }
input:focus, select:focus, textarea:focus { background-color: #fff; border-color: #448ef5; box-shadow: 0 0 0 3px #1268f315; }
input[type="checkbox"], input[type="radio"] { accent-color: #1268f3; width: 17px; height: 17px; flex-shrink: 0; box-shadow: none; }
input:disabled, select:disabled, textarea:disabled { background-color: #f0f4fa; }
.page label > small { display: block; font-size: 12px; line-height: 1.75; margin-top: 7px; color: var(--muted); }
.input-action, .token-row { align-items: stretch; gap: 9px; min-width: 0; }
.input-action input, .token-row select { min-width: 0; }
.input-action button, .token-row button { padding: 10px 13px; font-size: 12px; font-weight: 600; color: #2a578f; background: #f8fbff; border-color: #d8e5f7; }
.primary, .ghost, .violet-button, .gold-button, .red-button, .packet-primary { min-height: 48px; height: auto; padding: 12px 20px; line-height: 1.5; border-radius: 13px; font-size: 14px; }
.primary { background: linear-gradient(125deg,#0871ff,#155ded); box-shadow: 0 5px 14px #1268f31b; }
.primary:not(:disabled):hover { background: #0c58d8; box-shadow: 0 7px 19px #1268f32b; }
.ghost:hover:not(:disabled), .secondary:hover:not(:disabled), .input-action button:hover:not(:disabled) { background: #edf5ff; border-color: #a7c9fa; }
.secondary { min-height: 44px; padding: 10px 14px; line-height: 1.5; color: #295c99; font-size: 13px; }
.switch-row { border: 1px solid #e1eaf7; background: #f6f9ff; padding: 15px; border-radius: 14px; }
.switch-row input { margin-top: 3px; }
.switch-row b { font-size: 13px; }
.switch-row small { line-height: 1.75; font-size: 12px; }
.notice { line-height: 1.85; border: 1px solid #e0ebfb; background: #f2f7ff; border-radius: 14px; font-size: 12px; padding: 15px 17px; }
.message { line-height: 1.8; overflow-wrap: anywhere; }
.message.error { color: #c32b43; }
.message.success { color: #07835e; }
.fee-breakdown { padding: 18px; border-radius: 15px; background: #f6f9ff; gap: 12px; margin-bottom: 20px; }
.fee-breakdown > div { font-size: 12px; gap: 18px; align-items: baseline; }
.fee-breakdown b { color: #203d63; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.fee-breakdown .grand { padding-top: 13px; border-top: 1px solid #dce7f7; }
.fee-breakdown .grand b { font-size: 17px; color: #0a5edc; }
.record-empty { padding: 24px 18px; border: 1px dashed #d6e3f5; background: #f7faff; border-radius: 14px; line-height: 1.85; font-size: 13px; overflow-wrap: anywhere; }
.detail-box, .confirm-details { background: #f5f8fe; border: 1px solid #e2eaf6; line-height: 1.85; overflow-wrap: anywhere; }
.manage-actions { gap: 10px; }
.manage-actions button { min-height: 42px; padding: 10px 14px; line-height: 1.5; font-size: 13px; }
.manage-card > h2 { margin: 8px 0 20px; }
.process { gap: 22px; margin: 28px 0; }
.process > div { gap: 15px; }
.process i { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #dbe9ff; font-size: 12px; }
.process b { font-size: 14px; }
.process small { font-size: 12px; line-height: 1.75; }
.info-card { min-height: 0; padding: 30px; background: linear-gradient(155deg,#fff,#f5faff); }
.info-card h2 { font-size: 25px; }
.hero { padding: clamp(28px,4vw,48px); gap: 32px; border: 1px solid #dce9fa; background: linear-gradient(115deg,#fff 18%,#f1f7ff); }
.hero h1 { font-size: clamp(30px,3.35vw,46px); letter-spacing: -1.2px; line-height: 1.25; max-width: 650px; text-wrap: balance; }
.hero p { font-size: 14px; line-height: 1.9; max-width: 650px; }
.hero .circuit-visual { flex-basis: 144px; width: 144px; height: 144px; border-radius: 32px; }
.hero-actions { flex-wrap: wrap; }
.quick-grid { gap: 16px; }
.quick-grid > button { padding: 23px; min-height: 146px; border-radius: 20px; border-color: #dee9f8; box-shadow: 0 4px 18px #22548f06; }
.quick-grid > button:not(:disabled):not(.network-pending):hover { transform: none; border-color: #a7cafa; box-shadow: 0 10px 26px #2155a012; background: #fbfdff; }
.quick-grid > button b { font-size: 16px; letter-spacing: -.3px; }
.quick-grid > button small { font-size: 12px; line-height: 1.75; margin-top: 5px; }
.quick-grid > button .site-feature-icon { margin-bottom: 14px; }
.wallet-summary { border-radius: 18px; }
.wallet-summary b { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tape-strip { padding: 22px; gap: 16px; background: #fafdff; }
.tape-strip b { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.tape-strip small { font-size: 11px; line-height: 1.8; }
.qr-card { min-height: 430px; padding: 32px; background: linear-gradient(150deg,#fff,#f4f9ff); }
.qr-card p { max-width: 350px; font-size: 13px; }
.qr-card input, .qr-card code { max-width: 100%; overflow-wrap: anywhere; }
.packet-banner { padding: 28px 34px; border: 1px solid #ef5261; border-radius: 22px; background: linear-gradient(115deg,#e94052,#c9233b); box-shadow: 0 8px 25px #ce33421a; }
.packet-banner h1 { font-size: 34px; letter-spacing: -.6px; }
.packet-banner p { line-height: 1.8; font-size: 13px; }
.packet-types { gap: 12px; }
.packet-types button { min-width: 0; border-radius: 15px; padding: 16px; }
.packet-types button.active { box-shadow: 0 0 0 2px #f044520b; }
.packet-types b { font-size: 14px; }
.packet-types small { font-size: 11px; line-height: 1.7; }
.claim-head { align-items: baseline; gap: 10px; flex-wrap: wrap; }
.claim-head span { font-size: 17px; }
.claim-head small { font-size: 11px; }
.packet-detail { min-height: 190px; align-content: center; padding: 28px 18px; background: #fff9fa; border: 1px solid #f7e6ea; }
.packet-detail small { line-height: 1.8; overflow-wrap: anywhere; }
.packet-primary { box-shadow: 0 5px 14px #cf304024; }
.packet-history { border-radius: 20px; }
.packet-history-item { border-radius: 16px; }
.packet-history-item-head { align-items: flex-start; }
.packet-history-item-head b { line-height: 1.65; overflow-wrap: anywhere; }
.packet-history-item-amount { font-variant-numeric: tabular-nums; }
.packet-welcome-summary b { font-variant-numeric: tabular-nums; }
.packet-welcome-links { flex-wrap: wrap; }
.packet-welcome-links button { min-height: 40px; }
.packet-welcome #packet-welcome-note { line-height: 1.8; }
.inbox-onboarding { border-radius: 19px; }
.escrow-trust > div { font-size: 13px; line-height: 1.7; }
.escrow-orders-card .card-copy, .escrow-log-card .card-copy { font-size: 13px; line-height: 1.85; }
.escrow-list:empty { min-height: 100px; }
.escrow-overview, .escrow-log-card, .arbitration-panel { border-radius: 22px; }
.escrow-progress > div { border-radius: 13px; }
.escrow-id-box summary, .optional-channel summary { font-size: 12px; line-height: 1.8; }
.lock-mode { gap: 12px; }
.lock-mode > button { border-radius: 16px; padding: 18px; }
.lock-mode b { font-size: 14px; }
.lock-mode small { font-size: 12px; line-height: 1.8; }
.lock-list-item { border-radius: 14px; }
.privacy-warning { padding: 18px; border-radius: 16px; line-height: 1.85; font-size: 13px; }
.privacy-tabs { padding: 5px; border: 1px solid #e3e1f2; background: #f0eff8; border-radius: 15px; gap: 5px; }
.privacy-tabs button { border-color: transparent; background: transparent; font-size: 13px; }
.privacy-tabs button.active { background: #fff; border-color: #e0dbfb; box-shadow: 0 3px 10px #5843ae0b; }
.privacy-stack > div { font-size: 12px; line-height: 1.8; }
.api-grid { gap: 22px; }
.api-grid > * { min-width: 0; }
.api-card pre, .code-card pre { background: #10263f; border: 1px solid #234261; padding: 21px; line-height: 1.85; font-size: 12px; tab-size: 2; }
.api-card p, .code-card p { line-height: 1.85; font-size: 13px; }
.receipt-guide { padding: 28px; }
.qr-panel { padding: 22px; border: 1px dashed #d5e4f6; border-radius: 15px; background: #f7faff; margin-block: 20px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
#merchant-verify { min-height: 44px; padding: 10px 16px; border: 1px solid #d2e2fa; border-radius: 12px; background: #f4f8ff; color: #275b98; font-size: 13px; }
.external-button { line-height: 1.65; }
.settings-grid { gap: 0 20px; }
.settings-actions { flex-wrap: wrap; }
.settings-actions button { min-height: 44px; }
.oracle-admin-grid b { font-variant-numeric: tabular-nums; }
.deployment-note p { font-size: 12px; line-height: 1.9; }
dialog:not(.packet-welcome) { max-height: calc(100dvh - 32px); border: 1px solid #dce7f6; border-radius: 23px; box-shadow: 0 28px 100px #0c244e38; }
dialog::backdrop { background: #122b4b66; backdrop-filter: blur(5px); }
.dialog-card { padding: 30px; }
.dialog-card h2 { font-size: 25px; letter-spacing: -.6px; line-height: 1.4; padding-right: 26px; }
.dialog-card .dialog-close { width: 36px; height: 36px; background: #eef4fc; color: #627d9e; border-radius: 11px; }
.dialog-card .dialog-close:hover { background: #dfecff; color: #155bbd; }
.dialog-card p, .dialog-card > small { font-size: 13px; line-height: 1.85; }
.confirm-check { padding: 15px 0; gap: 11px; }
.confirm-check span { font-size: 12px; line-height: 1.85; }
.scan-actions { flex-wrap: wrap; margin-bottom: 16px; }
.upload-button { min-height: 48px; display: inline-flex; align-items: center; font-size: 13px; }
.wallet-connect-option { border-radius: 15px; }
.wallet-connect-option small { line-height: 1.8; }
.wallet-assets { border-radius: 15px; padding: 17px; }
.connected-wallet-address code { line-height: 1.85; }
.site-footer { max-width: 1232px; width: calc(100% - 72px); padding: 24px 28px; margin: 0 auto 28px; box-shadow: none; background: #ffffffb3; border-radius: 19px; font-size: 12px; }
.footer-links > a { font-size: 12px; }
.sponsor-wallet { gap: 7px 10px; }
.sponsor-wallet code { font-size: 11px; }
.toast { max-width: calc(100% - 32px); line-height: 1.7; font-size: 13px; text-align: center; }
@media (min-width: 941px) and (max-height: 820px) {
  .sidebar { padding-top: 18px; }
  .brand { padding-bottom: 20px; }
  .sidebar > nav { gap: 3px; }
  .sidebar > nav button { height: 41px; }
}
@media (max-width: 1120px) and (min-width: 941px) {
  .workspace > header { gap: 10px; padding-inline: 24px; }
  .header-actions { gap: 7px; }
  .header-actions .network-switch-label { display: none; }
  .header-actions .scan-button { min-width: 42px; width: 42px; padding: 0; }
  .header-actions .scan-button b { display: none; }
  .two-column { grid-template-columns: minmax(0,1fr); }
  .hero .circuit-visual { display: none; }
}
@media (max-width: 940px) {
  .workspace > main { padding: 26px 22px 32px; }
  .two-column { grid-template-columns: minmax(0,1fr); }
  .bottom-nav { box-shadow: 0 -5px 25px #1c477d0a; }
  .bottom-nav > button { min-height: 56px; border-radius: 13px; font-size: 11px; padding: 6px 2px; }
  .bottom-nav > button.active { background: #eaf3ff; }
  .site-footer { width: calc(100% - 44px); margin-bottom: calc(94px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 680px) {
  .workspace > header { min-height: 112px; padding: 13px 16px; gap: 12px; }
  .mobile-brand { padding-right: 105px; }
  .mobile-brand b { display: block; font-size: 20px; }
  .header-actions { justify-content: flex-start; gap: 8px; }
  .header-actions .wallet-button { flex: 1 1 auto; max-width: none; min-width: 0; }
  .header-actions .wallet-button.connected { width: auto; }
  .header-actions .language-select { right: 16px; top: 13px; }
  .header-actions .language-select { min-height: 32px; height: 32px; }
  .workspace > main { padding: 22px 16px 28px; }
  .page .heading { flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
  .heading h1 { font-size: 28px; letter-spacing: -.6px; }
  .heading h1::before { width: 31px; height: 31px; margin-right: 9px; }
  .heading p { font-size: 13px; line-height: 1.9; }
  .heading em { font-size: 10px; }
  .form-card, .claim-card, .manage-card, .settings-card, .info-card, .api-card, .code-card { padding: 22px; border-radius: 20px; }
  .page h2 { font-size: 20px; }
  .two-column, .api-grid { gap: 16px; }
  .form-split, .inline-fields, .settings-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .hero { padding: 28px 24px; border-radius: 22px; }
  .hero h1 { font-size: clamp(28px,7.3vw,39px); line-height: 1.35; letter-spacing: -.9px; margin-block: 14px; }
  .hero p { font-size: 13px; }
  .hero-actions { display: grid; gap: 10px; margin-top: 23px; }
  .hero-actions button { width: 100%; }
  .hero .circuit-visual { display: none; }
  .quick-grid { gap: 12px; }
  .quick-grid > button { padding: 18px; min-height: 152px; border-radius: 18px; }
  .quick-grid > button b { font-size: 15px; }
  .quick-grid > button small { font-size: 11px; }
  .tape-strip { padding: 18px; align-items: flex-start; }
  .tape-strip img { width: 30px; height: 30px; }
  .tape-strip b { font-size: 12px; }
  .tape-strip small { font-size: 11px; }
  .packet-banner { padding: 24px; }
  .packet-banner h1 { font-size: 30px; }
  .packet-types { gap: 9px; }
  .packet-types button { padding: 13px; }
  .packet-types b { font-size: 13px; }
  .packet-types small { font-size: 10px; }
  .fee-breakdown { padding: 16px; }
  .fee-breakdown > div { gap: 10px; flex-wrap: wrap; }
  .fee-breakdown b { margin-left: auto; }
  .manage-actions { flex-wrap: wrap; }
  .manage-actions > button { flex: 1 1 130px; }
  .qr-card { min-height: 330px; }
  .privacy-warning { font-size: 12px; }
  .privacy-tabs button { padding: 10px 13px; }
  .dialog-card { padding: 25px 22px; }
  .dialog-card h2 { font-size: 23px; }
  .dialog-card .dialog-close { right: 12px; top: 12px; }
  .site-footer { width: calc(100% - 32px); padding: 20px; gap: 20px; }
}
@media (max-width: 380px) {
  .form-card, .claim-card, .manage-card, .settings-card, .info-card, .api-card { padding: 18px; }
  .hero { padding: 25px 20px; }
  .quick-grid > button { padding: 15px; }
  .input-action { flex-wrap: wrap; }
  .input-action input { flex-basis: 100%; }
  .input-action button { min-height: 42px; }
  .token-row { flex-wrap: wrap; }
  .token-row select { flex-basis: 100%; }
  .token-row button { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page { animation: none; }
  button, input, select, textarea { transition: none; }
}
