@import url('./type.css');

/* Shared PORT38 language: warm graphite, cream and muted terracotta. */
:root {
  --ink: var(--p38-bg); --graphite: var(--p38-raised); --panel: var(--p38-panel);
  --paper: var(--p38-paper); --signal: var(--p38-accent); --signal-dark: var(--p38-accent-ink);
  --steel: var(--p38-muted); --muted: var(--p38-muted); --line: var(--p38-line); --max: 1320px;
}
.shell { width: min(calc(100% - 64px), 1320px); }
.site-header { grid-template-columns: auto 1fr auto; gap: 32px; min-height: 84px; }
.brand { font: 800 22px/1 var(--font-ui); letter-spacing: -.03em; gap: 10px; }
.brand-mark { width: 26px; height: 26px; margin: 5px 8px 5px 5px; flex-shrink: 0; }
.nav { display: flex; justify-content: center; gap: 24px; }
.nav a { display: flex; min-height: 44px; align-items: center; font-size: 13px; white-space: nowrap; }
.nav a[aria-current='page'] { color: var(--paper); text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--signal); }
.header-actions { gap: 10px; }
.telegram { width: 44px; height: 44px; }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; border-radius: 4px; font-weight: 700; }
.ticker { height: 44px; font-size: 11px; }
.ticker-track { animation-duration: 42s; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-toggle { position: absolute; right: 0; inset-block: 0; display: grid; place-items: center; width: 48px; border: 0; border-left: 1px solid var(--p38-accent-ink); background: var(--signal); color: var(--ink); }
.ticker-toggle svg { width: 18px; height: 18px; }
.ticker-toggle:focus-visible { outline-offset: -5px; outline-color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 10px; }
.skip:focus { left: 12px; padding: 12px 18px; z-index: 200; color: var(--ink); background: var(--paper); }
h1 { font: 750 clamp(42px, 4.6vw, 68px)/1.06 var(--font-ui); letter-spacing: -.04em; text-transform: none; text-wrap: balance; }
h2, .section h2, .route-intro h2, .final h2 { font: 700 clamp(30px, 3.4vw, 46px)/1.12 var(--font-ui); letter-spacing: -.035em; text-transform: none; text-wrap: balance; }
h3 { letter-spacing: -.025em; }
.eyebrow { display: none; }
.hero::before, .hero::after, .receipt-glow { display: none; }
.site-home .hero { min-height: auto; overflow: visible; }
.hero-grid, .site-content .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 72px; min-height: auto; padding-block: 80px; }
.hero-grid > *, .site-content .hero > * { min-width: 0; }
.lead { margin-top: 24px; max-width: 54ch; color: var(--p38-muted); font-size: 18px; line-height: 1.65; }
.hero-actions, .actions { margin-top: 30px; gap: 24px; }
.primary-action, .button, .text-action { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; font-size: 14px; line-height: 1.4; }
.primary-action, .button { border-radius: 4px; text-transform: none; letter-spacing: 0; }
.hero-facts { margin-top: 32px; }
.hero-facts small { color: var(--p38-muted); font-size: 11px; line-height: 1.4; letter-spacing: 0; }
.hero-facts b { font-size: 13px; }
.hero-facts div { padding-top: 16px; }
.receipt-stage { min-height: 0; padding: 18px 12px; perspective: none; }
.receipt { position: relative; top: auto; left: auto; width: 100%; max-width: 510px; margin: auto; padding: 28px; transform: rotate(2deg); box-shadow: 10px 16px 32px #0004; }
.receipt-stage:hover .receipt { transform: rotate(2deg); }
.receipt-head { gap: 12px; font-size: 10px; line-height: 1.4; letter-spacing: .02em; padding-bottom: 16px; }
.receipt-title { color: var(--p38-secondary); margin-top: 20px; font-size: 11px; line-height: 1.4; letter-spacing: 0; }
.receipt-direction { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.receipt-direction small { color: var(--p38-secondary); font-size: 11px; line-height: 1.4; }
.receipt-direction strong { font: 750 clamp(21px, 2.15vw, 31px)/1.2 var(--font-ui); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.site-content .receipt-direction { grid-template-columns: 1fr; gap: 12px; }
.site-content .receipt-direction div:last-child { text-align: left; }
.site-content .receipt-direction strong { font-size: 26px; overflow-wrap: normal; }
.site-content .receipt-direction i { width: 28px; height: 28px; transform: rotate(90deg); }
.receipt-rate { gap: 12px; padding-block: 18px; margin-top: 22px; font-size: 11px; line-height: 1.6; }
.receipt-rate span, .receipt-total span, .receipt-foot { color: var(--p38-secondary); }
.receipt-rate b { text-align: right; }
.receipt-total { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
.receipt-total span { font-size: 11px; line-height: 1.4; letter-spacing: 0; }
.receipt-total span br { display: none; }
.receipt-total strong { font: 750 clamp(28px, 2.9vw, 40px)/1.15 var(--font-ui); letter-spacing: -.035em; font-variant-numeric: tabular-nums; text-align: left; overflow-wrap: anywhere; }
.receipt-foot { margin-top: 20px; font: 12px/1.5 var(--font-ui); }
.receipt-stamp { top: auto; bottom: 106px; right: 22px; width: 58px; height: 58px; border-color: var(--p38-focus); color: var(--p38-focus); font-size: 9px; opacity: .9; }
.trail { font-size: 12px; letter-spacing: 0; color: var(--p38-muted); }
.trail span { color: var(--p38-muted); }

/* The amount gets its own line. Currency controls never consume digit space. */
.exchange { padding: 72px 0; }
.section-head { gap: 40px; margin-bottom: 32px; }
.section-head p { font-size: 15px; max-width: 60ch; }
.exchange-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 24px; }
.calculator { padding: 28px; box-shadow: none; border-color: var(--p38-border); }
.calc-top { padding: 0 0 20px; gap: 14px; }
.calc-top b { font-size: 16px; }
.rate-indicator { font-size: 12px; color: var(--p38-secondary); }
.refresh-rate { width: 44px; height: 44px; flex-shrink: 0; }
.calc-grid { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
.money-field { grid-template-areas: 'label asset' 'input input'; padding: 18px; gap: 18px 8px; border: 1px solid transparent; }
.money-field:focus-within { border-color: var(--p38-focus); }
.money-field label { font-size: 13px; color: var(--p38-secondary); }
.money-field input { font-size: clamp(25px, 2.6vw, 38px); font-weight: 750; line-height: 1.25; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.asset { min-width: 98px; min-height: 44px; padding: 7px 10px; font-size: 13px; gap: 6px; }
.calc-swap { width: 44px; height: 44px; box-shadow: none; margin: 0; }
.calc-swap:hover { color: var(--ink); transform: none; }
.calc-swap svg { width: 24px; height: 24px; }
.quick-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-block: 12px 20px; }
.quick-amounts button { min-height: 44px; font-size: 12px; }
.calc-options, .calc-options.fiat-mode { grid-template-columns: 1fr; margin-block: 0 16px; }
.calc-option[hidden] { display: none; }
.calc-option { grid-template-columns: auto minmax(80px, 150px); align-items: center; gap: 24px; padding: 8px 16px; }
.calc-option label { font: 13px/1.4 var(--font-ui); color: var(--p38-secondary); letter-spacing: 0; }
.calc-option select { min-height: 44px; padding: 8px; font-size: 14px; }
.calc-meta { grid-template-columns: 1fr 1fr; margin-top: 0; border: 0; border-block: 1px solid var(--p38-border); }
.calc-meta div { padding: 14px 12px 14px 0; border: 0; }
.calc-meta div:last-child { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; padding-top: 0; }
.calc-meta small { font: 12px/1.5 var(--font-ui); color: var(--p38-secondary); margin: 0 0 4px; }
.calc-meta div:last-child small { margin: 0; }
.calc-meta b { font-size: 13px; line-height: 1.5; }
.rate-source { margin: 16px 0; color: var(--p38-secondary); font: 12px/1.5 var(--font-ui); letter-spacing: 0; }
.rate-source a { white-space: nowrap; }
.calc-action, .booking-submit { min-height: 54px; background: var(--signal); color: var(--p38-text); border-radius: 4px; font-size: 15px; }
.calc-action:hover, .booking-submit:hover { background: var(--p38-accent-hover); color: var(--p38-text); }
.calc-note { margin: 12px 0 0; font-size: 12px; color: var(--p38-secondary); line-height: 1.55; }
.office-card { min-height: 330px; padding: 24px; color: var(--p38-text); background: var(--p38-field); }
.office-card-head { align-items: start; flex-direction: column; gap: 16px; }
.office-card-head .mono { display: none; }
.reserve-pill { font-size: 11px; color: var(--p38-secondary); border-color: var(--p38-border); }
.office-card h3 { margin: 32px 0 16px; font: 700 27px/1.15 var(--font-ui); letter-spacing: -.03em; }
.office-card p { color: var(--p38-secondary); font-size: 14px; line-height: 1.65; }
.office-link { margin-top: 28px; min-height: 52px; padding-block: 14px; font-size: 13px; border-color: var(--p38-border); color: var(--p38-text); }
.site-asset-picker { display: flex; flex-direction: column; width: min(340px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); border-radius: 8px; }
.site-asset-picker[hidden] { display: none; }
.site-picker-head, .site-picker-tabs { flex-shrink: 0; }
.site-picker-head button { width: 44px; height: 44px; }
.site-picker-head strong { font-size: 14px; text-transform: none; letter-spacing: 0; }
.site-picker-tabs button { min-height: 44px; font-size: 13px; text-transform: none; }
.site-picker-list { min-height: 0; max-height: 315px; overflow-y: auto; overscroll-behavior: contain; }
.site-picker-option small { font-size: 12px; color: var(--p38-secondary); line-height: 1.4; }
.site-picker-option > small { font-size: 11px; }
.site-picker-option b { font-size: 14px; }

/* Supporting information deliberately has less weight than the calculator. */
.site-market, .thailand-route, .process, .proof, .office-detail, .reputation, .faq, .section { padding-block: 72px; }
.route-intro .mono { display: none; }
.route-intro h2 { margin: 0; }
.route-intro { gap: 40px; }
.route-rail article { min-height: 240px; }
.route-rail strong { margin-top: 28px; font: 750 46px/1 var(--font-ui); letter-spacing: -.03em; }
.route-rail h3 { margin-top: 24px; }
.route-rail small, .step span, .card small { font-size: 12px; }
.route-rail p, .step p { font-size: 14px; }
.route-rail article:not(.route-core) p, .route-rail article:not(.route-core) small { color: var(--p38-muted); }
.route-core small, .route-core p { color: var(--p38-text); }
.route-disclosure { color: var(--p38-muted); font-size: 13px; }
.route-guides b { font-size: 12px; }
.route-guides a { min-height: 98px; }
.site-market-head { gap: 40px; }
.site-market-head p, .process-head p, .step p { color: var(--p38-muted); }
.site-market-shell { grid-template-columns: minmax(0, 1fr) 260px; }
.site-market-tab { font-size: 14px; text-transform: none; letter-spacing: 0; }
.site-market-info { background: var(--p38-raised); color: var(--paper); min-height: 320px; }
.site-market-info .mono { color: var(--p38-muted); font-size: 12px; }
.site-market-info h3 { margin-top: 32px; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; }
.site-market-info p { font-size: 14px; color: var(--p38-muted); }
.site-market-info strong { border-color: var(--line); }
.site-market-columns { font-size: 12px; letter-spacing: 0; color: var(--p38-muted); }
.site-market-asset small { font-size: 12px; color: var(--p38-muted); }
.calc-ticker { margin: 0 0 20px; padding: 0 0 8px; gap: 10px; }
.calc-ticker-button { flex-basis: 156px; min-height: 80px; padding: 14px; background: transparent; border-color: var(--p38-secondary); color: var(--paper); }
.calc-ticker-button span { font-size: 13px; }
.calc-ticker-button b { font-size: 16px; }
.calc-ticker-button small { font-size: 11px; color: var(--p38-muted); }
.step { min-height: 220px; }
.step h3 { margin-top: 32px; font-size: 20px; }
.card h3 { margin-top: 24px; }
.card p, .prose p, .prose li { font-size: 16px; line-height: 1.75; }
.aside b { font-size: 12px; line-height: 1.5; }
.aside p { font-size: 14px; }
.prose { gap: 48px; }
.faq-list summary { min-height: 56px; font-size: 17px; }
.faq-list p { line-height: 1.7; }
.footer, .footer-row { font-size: 13px; color: var(--p38-muted); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.converter-shell { box-shadow: none; padding: 28px; }
.converter-head h2 { font-size: 32px; text-transform: none; letter-spacing: -.03em; }
.converter-head small, .converter-foot, .rate-state { font-size: 12px; line-height: 1.5; color: var(--p38-secondary); letter-spacing: 0; }
.converter-grid label, .converter-result { grid-template-areas: 'label code' 'value value'; padding: 20px; }
.converter-grid input, .converter-result strong { font: 750 clamp(28px, 3.4vw, 46px)/1.3 var(--font-ui); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.converter-grid input:focus-visible, .money-field input:focus-visible, .calc-option select:focus-visible { outline: 2px solid var(--p38-focus); outline-offset: 4px; }
.converter-head button { min-height: 44px; }
.rate-board strong { letter-spacing: -.03em; font-size: clamp(30px, 4vw, 52px); }
.proof-kicker, .proof-card::after { display: none; }
.proof-intro { grid-template-columns: 1fr; margin-bottom: 30px; }
.proof-intro p { margin-top: 16px; max-width: 65ch; font-size: 16px; }
.proof-card { min-height: 205px; padding: 24px; }
.proof-card small { font-size: 12px; color: var(--p38-secondary); }
.proof-card h3 { margin-top: 26px; font-size: 27px; line-height: 1.2; letter-spacing: -.03em; }
.office-info .mono, .office-specs small { color: var(--p38-secondary); font-size: 12px; letter-spacing: 0; }
.office-info h2 { margin-top: 24px; }
.office-specs { margin-top: 28px; }
.booking-action:hover { color: var(--p38-text); }
.site-home .faq-list summary { grid-template-columns: 1fr auto; }
.site-home .faq-list summary small { display: none; }
.site-home .faq-list details p { margin-left: 0; }
.final-grid h2 { font: 750 clamp(36px, 4.5vw, 62px)/1.1 var(--font-ui); letter-spacing: -.035em; text-transform: none; }
.final-button { width: auto; height: auto; min-height: 54px; padding: 18px 30px; border-radius: 4px; }
.final-button br { display: none; }
.final-button:hover { transform: none; background: var(--p38-panel); }
.dialog-head b { font-family: var(--font-ui); }
.dialog-close { width: 44px; height: 44px; }
.quote-flow strong { line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.quote-card-head, .quote-flow small, .quote-meta small, .booking-fields label, .consent, .dialog-note { color: var(--p38-secondary); font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.quote-meta b { font-size: 13px; }
.booking-fields input:focus-visible, .booking-fields select:focus-visible { outline: 2px solid var(--p38-focus); outline-offset: 2px; }
.consent { min-height: 44px; align-items: center; }
.consent input { width: 20px; height: 20px; }
.dialog-submit { min-height: 54px; color: var(--p38-text); border-radius: 4px; }

/* Color-only normalization of the legacy homepage and generated templates. */
.nav a, .prose p, .prose li, .route-intro p { color: var(--muted); }
.nav a:hover, .nav a:focus-visible, .site-market-head h2, .site-market-row, .route-disclosure b { color: var(--paper); }
.ticker, .primary-action, .button.primary, .final, .final-cta, .route-rail article.route-core { color: var(--p38-text); }
.primary-action:hover, .button.primary:hover, .dialog-submit:hover:not(:disabled) { background: var(--p38-accent-hover); }
.receipt, .exchange, .proof, .office-detail, .faq, .booking-dialog { color: var(--p38-text); }
.receipt-stamp { color: var(--signal-dark); border-color: var(--signal-dark); }
.receipt-direction i, .calc-swap, .booking-action, .final-button, .dialog-head, .success-mark { background: var(--ink); color: var(--paper); }
.calculator, .calc-option, .asset, .quote-card, .booking-fields input, .booking-fields select, .success-code { background: var(--p38-card); color: var(--p38-text); }
.money-field, .converter-grid label, .converter-result, .site-picker-tabs, .proof { background: var(--p38-field); }
.money-field input, .calc-option select, .site-picker-option, .site-picker-head button { color: var(--p38-text); }
.asset, .calc-option, .quick-amounts button, .booking-fields input, .booking-fields select { border-color: var(--p38-control-border); }
.asset i { color: var(--paper); background: var(--ink); }
.asset.usdt i { color: var(--p38-text); background: var(--signal); }
.asset::after, .site-picker-tabs button, .converter-grid label span, .converter-result span { color: var(--p38-secondary); }
.calc-swap:hover, .booking-action:hover { color: var(--p38-text); background: var(--signal); }
.quick-amounts button { color: var(--p38-secondary); background: var(--p38-card); }
.quick-amounts button:hover, .quick-amounts button.is-active, .site-picker-tabs button.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.site-asset-picker { background: var(--p38-card); color: var(--p38-text); border-color: var(--p38-border); }
.site-picker-option, .site-picker-head button, .quote-card, .quote-card-head, .quote-meta { border-color: var(--p38-border); }
.site-picker-option .picker-icon { background: var(--p38-paper); border-color: var(--p38-border); }
.site-picker-option:hover, .site-picker-option:focus-visible, .site-picker-option.is-active { background: var(--p38-accent-wash); }
.site-market, .thailand-route, .rail-arrow { background: var(--ink); }
.site-market-board, .route-rail article, .office-map { background: var(--graphite); }
.site-market-row:hover, .site-market-row.is-selected, .site-market-icon { background: var(--panel); }
.site-market-board, .site-market-tabs, .site-market-columns, .site-market-row, .site-market-icon,
.route-rail, .route-disclosure, .route-guides, .route-guides a { border-color: var(--line); }
.site-market-tab, .site-market-loading { color: var(--muted); }
.site-market-tab.is-active { color: var(--p38-text); background: var(--paper); }
.site-market-change.up { color: var(--p38-positive); }
.site-market-change.down { color: var(--p38-negative); }
.calc-ticker-button:hover, .calc-ticker-button.is-active { background: var(--p38-accent-wash); }
.proof-intro p, .proof-card p, .office-copy, .faq-copy p, .faq-list details p,
.dialog-body > p, .dialog-success p, .success-code { color: var(--p38-secondary); }
.site-content .faq-list details p { color: var(--muted); }
.proof-grid, .proof-card, .office-grid, .office-specs, .office-specs div,
.site-home .faq-list, .site-home .faq-list details, .site-home .faq-list summary i { border-color: var(--p38-border); }
.office-map { color: var(--paper); }
.office-map::after { color: var(--panel); }
.final-grid p, .route-core small, .route-core p { color: var(--p38-text); }
.quote-card::after { color: var(--p38-field); }
.quote-flow i { color: var(--signal-dark); }
.booking-fields input::placeholder { color: var(--p38-secondary); opacity: 1; }
.booking-fields input[aria-invalid='true'] { border-color: var(--p38-error-ink); }
.field-error { color: var(--p38-error-ink); }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; gap: 4px 20px; padding-top: 14px; }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; overflow-x: auto; gap: 26px; padding-block: 4px; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .hero-grid, .site-content .hero { gap: 32px; padding-block: 56px; }
  .receipt { padding: 22px; }
  .site-home .receipt-direction { grid-template-columns: 1fr; gap: 10px; }
  .site-home .receipt-direction div:last-child { text-align: left; }
  .site-home .receipt-direction i { display: none; }
  .exchange-layout { grid-template-columns: minmax(0, 1fr); }
  .office-card { min-height: auto; display: grid; grid-template-columns: 1fr auto; gap: 12px 32px; }
  .office-card-head { grid-column: 1 / -1; }
  .office-card h3 { max-width: none; margin: 0 0 10px; font-size: 24px; }
  .office-card p { max-width: 65ch; }
  .office-link { align-self: end; }
  .site-market-shell { grid-template-columns: 1fr; }
  .site-market-info { min-height: auto; }
  .site-market-info h3 { margin-top: 16px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .hero-grid, .site-content .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 42px; }
  h1 { max-width: 650px; font-size: clamp(36px, 7.2vw, 52px); }
  h2, .section h2, .route-intro h2, .final h2 { font-size: clamp(30px, 6.5vw, 40px); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
  .lead { margin-top: 20px; font-size: 16px; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
  .hero-facts div { display: block; padding: 12px 8px 0 0; border-bottom: 0; }
  .hero-facts small { font-size: 10px; }
  .hero-facts b { font-size: 12px; }
  .receipt-stage { min-height: 0; width: 100%; max-width: 510px; justify-self: center; padding: 14px 4px; }
  .receipt, .receipt-stage:hover .receipt { transform: none; padding: 20px; }
  .site-home .receipt-direction { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .site-home .receipt-direction div:last-child { text-align: right; }
  .receipt-direction strong { font-size: clamp(20px, 4.8vw, 27px); }
  .receipt-title { margin-top: 14px; }
  .receipt-rate { margin-top: 16px; padding-block: 14px; }
  .receipt-total { display: none; }
  .receipt-stamp { display: none; }
  .receipt-foot { margin-top: 14px; }
  .site-content .receipt-direction { grid-template-columns: 1fr; }
  .receipt-head { padding-bottom: 12px; }
  .section-head, .route-intro { grid-template-columns: 1fr; gap: 16px; }
  .exchange, .site-market, .thailand-route, .process, .proof, .office-detail, .reputation, .faq, .section { padding-block: 52px; }
  .site-market-head { align-items: start; flex-direction: column; gap: 16px; }
  .site-market-columns, .site-market-row { grid-template-columns: minmax(0, 1fr) 104px 64px; gap: 10px; }
  .site-market-price { font-size: 12px; white-space: nowrap; }
  .site-market-change { font-size: 11px; }
  .site-market-asset { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .site-market-icon { width: 32px; height: 32px; }
  .office-card { display: flex; }
  .office-card h3 { margin-top: 12px; }
  .office-link { margin-top: 8px; }
  .site-content .prose { gap: 28px; }
  .converter-head { gap: 16px; }
  .converter-grid { grid-template-columns: 1fr; }
  .converter-swap { margin: 8px auto; transform: rotate(90deg); }
}
@media (max-width: 520px) {
  .brand { font-size: 18px; }
  .header-cta { padding-inline: 12px; font-size: 12px; }
  .header-actions { gap: 8px; }
  .telegram { width: 40px; }
  .nav { gap: 22px; }
  .nav a { font-size: 12px; }
  .calculator { padding: 16px; }
  .calc-top { align-items: start; flex-direction: column; gap: 8px; }
  .rate-tools { width: 100%; justify-content: space-between; }
  .calc-grid { grid-template-columns: 1fr; gap: 8px; }
  .money-field { padding: 16px; }
  .money-field input { font-size: 32px; }
  .calc-swap { margin: 0; transform: rotate(90deg); }
  .calc-swap:hover { transform: rotate(90deg); }
  .quick-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-meta { grid-template-columns: 1fr; }
  .calc-meta div:nth-child(2) { padding-top: 0; }
  .calc-meta div:last-child { border: 0; }
  .rate-source { flex-wrap: wrap; gap: 8px; }
  .site-market-columns, .site-market-row { padding-inline: 10px; grid-template-columns: minmax(0, 1fr) 94px 56px; gap: 6px; }
  .site-market-asset small { white-space: normal; font-size: 11px; line-height: 1.4; }
  .site-market-asset b { font-size: 14px; }
  .site-market-change { font-size: 10px; }
  .site-market-columns { font-size: 10px; }
  .converter-shell { padding: 20px 16px; }
  .converter-head h2 { font-size: 28px; }
  .quote-flow { grid-template-columns: 1fr; }
  .quote-flow div:last-child { text-align: left; }
  .quote-flow i { transform: rotate(90deg); width: 20px; }
}
@media (max-width: 380px) {
  .header-actions .telegram { display: none; }
  .header-cta { white-space: nowrap; }
}
