@font-face{font-family:system;src:local('Segoe UI')}:root{font-family:system,'Segoe UI',Arial,sans-serif;color:#182936;background:#f2f5f7;font-size:14px;--ink:#122c3a;--muted:#667d89;--line:#dfe7eb;--accent:#0c776f}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);padding:10px 14px;font-weight:600}button:hover{background:#edf5f4}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--accent);color:white;border-color:var(--accent)}.primary:hover{background:var(--action-hover)}.subtle{background:transparent;border-color:transparent;color:#5d7481}.danger{color:#b13b4b}.hidden{display:none!important}.shell{display:flex;min-height:100vh}aside{width:236px;background:var(--sidebar-bg);color:var(--sidebar-text);padding:30px 20px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{font-size:var(--text-2xl);text-decoration:none;color:#7bd7c6;display:flex;align-items:center;gap:var(--space-3);font-weight:800}.brand span{font-size:var(--text-l);letter-spacing:2px;color:white}.brand small{font-size:8px;font-weight:400;letter-spacing:1.5px;color:#9eb8c4;display:block;margin-top:5px}.property{display:flex;gap:10px;padding:var(--space-5) 0;border-bottom:1px solid #2b4553;margin-bottom:18px}.property small{display:block;font-size:11px;color:#9eb3bd;margin-top:5px}.hotel-icon{font-size:28px;color:#96c8c7}nav{overflow:auto}nav button{border:0;background:transparent;color:var(--sidebar-text-weak);display:flex;gap:var(--space-3);width:100%;text-align:left;margin:3px 0;font-weight:500;padding:var(--space-3)}nav button.active{background:#284854;color:white;border-left:3px solid #73d4c1}nav button:hover{background:#203e4b}.side-bottom{font-size:11px;color:#a8c0ca;margin-top:auto;padding-top:var(--space-5)}.side-bottom small{display:block;margin-top:var(--space-2);color:#7d9ca9}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#79d8b4;margin-right:5px}.workspace{margin-left:236px;width:calc(100% - 236px)}header{display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid var(--line);padding:var(--space-5) var(--space-6)}h1,h2,h3,p{margin-top:0}h1{font-size:var(--text-xl);letter-spacing:-.6px;margin:6px 0 0}h2{font-size:var(--text-l);letter-spacing:-.2px}h3{font-size:15px}.eyebrow{font-size:var(--text-xs);color:#718791;letter-spacing:1.5px;font-weight:700}.header-actions{display:flex;align-items:center;gap:var(--space-2)}.header-actions span{font-size:var(--text-s);color:var(--muted);margin-right:var(--space-3)}.pilot-banner{padding:10px var(--space-6);background:#e9f3ef;color:#3b6b61;font-size:var(--text-s);border-bottom:1px solid #d7e8e0}main{padding:28px var(--space-6);max-width:2000px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-4);margin-bottom:var(--space-5)}.metric,.panel{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 10px #102d3c03}.metric{padding:22px}.metric strong{display:block;font-size:29px;letter-spacing:-1px;margin:10px 0;color:#142e3b}.metric small{color:var(--muted);font-size:11px}.metric label{color:#667b85;display:block;font-size:var(--text-s)}.panel{padding:var(--space-5);margin-bottom:22px}.panel-head,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap;margin-bottom:20px}.panel-head h2{margin:0}.panel-head p{font-size:var(--text-s);color:var(--muted);margin:6px 0 0}.toolbar{justify-content:flex-start;margin-bottom:var(--space-4)}.toolbar label{display:flex;align-items:center;gap:var(--space-2);font-size:var(--text-s);color:var(--muted)}input,select,textarea{padding:10px var(--space-3);border:1px solid #cbd8df;border-radius:7px;color:#183440;background:white;min-width:0}input:focus,select:focus,textarea:focus{border-color:#158f83}textarea{min-height:70px;resize:vertical}.toolbar input[type=search]{min-width:240px}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:var(--text-s)}th{background:var(--surface-header);font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.5px;color:#6b808a;font-weight:600}td,th{padding:13px var(--space-3);border-bottom:1px solid #e8eef1;white-space:nowrap}tbody tr:hover{background:#f8fbfb}td .sub{font-size:var(--text-xs);display:block;color:var(--muted);margin-top:var(--space-1)}.grid{table-layout:fixed;min-width:1250px}.grid th:first-child{width:140px;position:sticky;left:0;z-index:2}.grid td{padding:3px;border:1px solid #edf1f3;height:52px}.grid th{padding:10px var(--space-1);text-align:center;white-space:normal}.grid thead th small{display:block;font-size:9px;font-weight:400;margin-top:var(--space-1)}.grid tbody th{text-align:left;padding-left:var(--space-3);background:white;text-transform:none;letter-spacing:0;font-size:var(--text-s)}.grid tbody th small{color:var(--muted);font-size:var(--text-xs)}.grid button{font-size:var(--text-xs);padding:5px 3px;border-radius:4px;height:36px;width:100%;border:0;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grid .free{background:transparent;color:transparent}.grid .free:hover{background:#dff2ed;color:#14766b}.grid .confirmed{background:#d8eae4;color:#176251;border-left:2px solid #419d83}.grid .checked_in{background:#dcebf9;color:#2a639a;border-left:2px solid #5e97ce}.grid .checked_out{background:#e9edf0;color:#637c89}.grid .blocked{background:repeating-linear-gradient(45deg,#f6e7d9,#f6e7d9 5px,#fdf7f1 5px,#fdf7f1 10px);color:#9a6334}.legend{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin-top:18px}.legend span:before{content:' ';display:inline-block;width:8px;height:8px;border-radius:2px;background:#b8d9ce;margin-right:7px}.legend span:nth-child(2):before{background:#b7d7f5}.legend span:nth-child(3):before{background:#dce3e8}.legend span:nth-child(4):before{background:#eed5bc}.badge{display:inline-block;border-radius:5px;background:#edf3f5;padding:5px var(--space-2);font-size:var(--text-xs);color:#526d7a}.badge.good{background:var(--state-good-bg);color:var(--state-good-text)}.badge.warn{background:var(--state-warn-bg);color:#976b2a}.badge.blue{background:var(--state-info-bg);color:#336f9f}.badge.bad{background:var(--state-bad-bg);color:#b34f60}.actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.actions button{padding:6px 9px;font-size:11px}.empty{padding:35px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:8px}.muted{color:var(--muted)}.note{color:var(--muted);font-size:var(--text-s);line-height:1.7}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-4)}.cards .panel{margin:0}.cards p{font-size:var(--text-s);line-height:1.7;color:var(--muted)}.cards h3{margin:var(--space-3) 0}.chart{display:flex;align-items:flex-end;gap:6px;overflow:auto;padding:var(--space-4) 0}.chart-item{min-width:35px;display:flex;align-items:center;flex-direction:column;gap:var(--space-2);font-size:9px;color:var(--muted)}meter{width:30px;height:130px;writing-mode:vertical-lr;direction:rtl;accent-color:#368d7a}progress{accent-color:#368d7a;width:130px;max-width:100%}.auth{min-height:100vh;background:var(--sidebar-bg);display:flex;align-items:center;justify-content:center;gap:90px;padding:30px}.auth-brand{color:#8ad8c8;font-size:120px;font-weight:700}.auth-brand span{display:block;font-size:34px;letter-spacing:7px;color:white}.auth-brand small{display:block;font-size:11px;letter-spacing:3px;font-weight:400;color:#9bb7c4;margin-top:10px}.auth-card{background:white;border-radius:16px;padding:40px;width:430px}.auth-card h1{margin-bottom:var(--space-4)}.auth-card p{color:var(--muted);font-size:13px;line-height:1.7}.auth-card label{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-4);font-size:var(--text-s)}.auth-card button{margin-top:var(--space-5);width:100%}.auth-card small{font-size:var(--text-xs);color:var(--muted);line-height:1.6;display:block;margin-top:20px}#auth-error,#modal-error{color:#b43d53;font-size:var(--text-s);white-space:pre-wrap}dialog{border:0;border-radius:var(--radius-l);padding:28px;width:min(680px,94vw);box-shadow:0 24px 80px #0c283b50;color:var(--ink)}dialog::backdrop{background:#0c273d70;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-head h2{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4)}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:var(--text-s);color:#496472}.form-grid .wide{grid-column:1/-1}.form-grid p{margin:0;line-height:1.7}.dialog-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:var(--space-5)}#toast{position:fixed;bottom:25px;right:30px;z-index:20;background:#143d40;color:white;padding:var(--space-4) 22px;box-shadow:0 5px 30px #102f3e30;border-radius:var(--radius-m);max-width:600px;white-space:pre-wrap}footer{padding:10px var(--space-6) 25px;color:#83949c;font-size:var(--text-xs)}.booking-page{min-height:100vh;background:#f5f0e8;color:#273932}.booking-header{padding:28px 7%;border-bottom:1px solid #dcd8cf;display:flex;justify-content:space-between;align-items:center}.booking-header a{color:inherit}.booking-hero{max-width:1100px;margin:60px auto;padding:0 var(--space-5)}.booking-hero h1{font-size:58px;letter-spacing:-2px;max-width:700px;line-height:1.1;margin:20px 0}.booking-hero>p{font-size:16px;color:#6b796c;line-height:1.8;max-width:650px}.booking-search{display:flex;flex-wrap:wrap;gap:var(--space-4);align-items:end;padding:26px;background:#fffcf7;border:1px solid #dcded4;border-radius:12px;margin:30px 0}.booking-search label{display:flex;flex-direction:column;gap:var(--space-2)}.booking-results{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-4)}.booking-results .panel{background:#fffcf7}.room-art{height:110px;background:linear-gradient(140deg,#cad5be,#597967);border-radius:8px;display:grid;place-items:center;color:#eef5e9;font-size:42px}.booking-page.city{background:#eef2f7}.city .room-art{background:linear-gradient(140deg,#c6d7e5,#3c5a72)}.city .booking-search,.city .panel{background:white}.booking-page h2{margin-top:15px}.booking-results button{width:100%;margin-top:var(--space-3)}.booking-results strong{font-size:22px}.booking-confirm{padding:22px;border:1px solid #88b29b;background:#e0efe5;line-height:1.8}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--text-s)}@media(max-width:1100px){aside{width:200px;padding:var(--space-5) var(--space-3)}.workspace{margin-left:200px;width:calc(100% - 200px)}main,header{padding:22px}.metrics{gap:10px}.metric{padding:var(--space-4)}.metric strong{font-size:23px}.cards{grid-template-columns:1fr 1fr}}@media(max-width:760px){aside{position:static;width:100%;padding:14px}.shell{display:block}.workspace{margin-left:0;width:100%}.brand{font-size:24px}.brand small,.property,.side-bottom{display:none}nav{display:flex;margin-top:var(--space-3);gap:var(--space-1)}nav button{white-space:nowrap;width:auto;padding:var(--space-2);font-size:var(--text-s)}.header-actions{gap:2px;flex-wrap:wrap}.header-actions span{width:100%;text-align:right}header,main{padding:18px}h1{font-size:22px}.pilot-banner{padding:10px 18px}.metrics{grid-template-columns:1fr 1fr}.metric strong{font-size:24px}.panel{padding:var(--space-4)}.cards,.booking-results{grid-template-columns:1fr}.auth{padding:20px}.auth-brand{display:none}.auth-card{padding:26px;width:100%;max-width:430px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.booking-hero{margin:35px auto}.booking-hero h1{font-size:42px}.booking-header{padding:20px}footer{padding:20px}}
.grid tbody th small{display:block;line-height:1.4}
@media(max-width:760px){input,select,textarea{font-size:16px}button{min-height:44px}.brand img{width:34px;height:34px}.grid .free{color:#568377}.booking-search label{flex:1;min-width:120px}.header-actions span{overflow-wrap:anywhere}#toast{left:var(--space-3);right:var(--space-3);bottom:var(--space-3);max-width:none}dialog{max-height:90vh;overflow:auto}.booking-hero h1{overflow-wrap:anywhere}}
.party-editor{padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius-m);background:#f8fbfa}.party-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.party-head h3{margin:0}.child-row{display:grid;grid-template-columns:1fr 1fr 44px;gap:10px;align-items:end;margin-top:var(--space-3)}.child-row label,.photo-manager>label,.layout-block>label{display:flex;flex-direction:column;gap:7px;margin-bottom:10px}.child-price-row{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:var(--space-3);align-items:center;padding:var(--space-3) 0;border-top:1px solid var(--line)}.child-price-row small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.child-price-row label{font-size:var(--text-s);display:flex;flex-direction:column;gap:6px}.age-group{display:grid;grid-template-columns:1.4fr 1fr 70px 70px 44px;gap:var(--space-2);align-items:end;margin:14px 0}.age-group input,.age-group select{width:100%}.price-breakdown{font-size:var(--text-s);line-height:1.5;color:var(--ink)}.price-breakdown p{margin:5px 0!important}.price-total{font-size:var(--text-l)!important;padding-top:var(--space-2)}.layout-block{border:1px solid var(--line);border-radius:9px;padding:14px;margin-bottom:14px}.check-label{flex-direction:row!important;align-items:center}.photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}.photo-grid figure{margin:0}.photo-grid img{width:100%;height:150px;object-fit:cover;border-radius:8px}.photo-grid figcaption{font-size:11px;margin:7px 0;overflow-wrap:anywhere}.photo-manager input[type=file]{width:100%}.room-thumb{display:block;width:96px;height:64px;object-fit:cover;border-radius:7px;margin:var(--space-2) 0}.site-layout{max-width:1120px;margin:0 auto;padding:var(--space-5)}.site-section{margin:30px 0 45px;padding-top:10px}.site-section>p{white-space:pre-line;line-height:1.8}.hero-section h1{font-size:54px;line-height:1.08;letter-spacing:-1.5px;margin:20px 0}.hero-section p{line-height:1.8}.hero-section>img{width:100%;height:380px;object-fit:cover;border-radius:16px;margin-top:var(--space-5)}.hero-split.has-cover .hero-section{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:35px}.booking-search .party-editor{flex-basis:100%}.room-gallery{display:flex;overflow:auto;scroll-snap-type:x mandatory;gap:var(--space-2);border-radius:9px}.room-gallery img{width:100%;min-width:100%;height:180px;object-fit:cover;scroll-snap-align:start}.embedded-booking .booking-header,.embedded-booking>footer{display:none}.embedded-booking .site-layout{padding:var(--space-3)}.embedded-booking .site-section{margin:0}.booking-results .panel p{white-space:normal;overflow-wrap:anywhere}.layout-block textarea{width:100%;min-height:100px}
@media(max-width:760px){.child-price-row{grid-template-columns:1fr 1fr}.child-price-row strong{grid-column:1/-1}.age-group{grid-template-columns:1fr 1fr}.age-group label{min-width:0}.party-head{flex-wrap:wrap}.child-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}.child-row input,.child-row select{width:100%;padding:10px 5px}.hero-section h1{font-size:38px}.hero-split.has-cover .hero-section{display:block}.hero-section>img{height:240px}.site-layout{padding:18px}.photo-grid{grid-template-columns:1fr 1fr}.booking-search{padding:14px}.booking-results{grid-template-columns:1fr}}
.occupant-card{border:1px solid #d9e5e8;border-radius:var(--radius-l);padding:18px;margin:14px 0;background:#fff}.occupant-card h4{margin:0 0 14px}.occupant-card details{margin-top:14px}.occupant-card summary{cursor:pointer;color:#0c776f;padding:var(--space-2) 0}.registration-summary{padding:var(--space-4) 0}.registration-summary li{margin:6px 0}.occupant-card .form-grid{gap:14px}
.brand span{font-size:16px;letter-spacing:1.2px}.auth-brand span{letter-spacing:3px}
/* Calendar selectors stay inside the panel on narrow screens. */
.calendar-toolbar label{max-width:100%;min-width:0}.calendar-toolbar select{min-width:0;max-width:100%;flex:1}
@media(max-width:760px){.calendar-toolbar label{flex-direction:column;align-items:stretch;width:100%}.calendar-toolbar select,.calendar-toolbar input{width:100%;max-width:100%}}
.grid button.inventory-held{background:#f4e4bd;color:#694c19}.grid button.inventory-confirmed{background:#cddfea;color:#173e55}
.property-details{min-width:0;overflow-wrap:anywhere}.property-details strong{display:block;font-size:16px;line-height:1.4}.property-details small{display:block;line-height:1.5}.property-details #property-type{letter-spacing:.06em;font-size:11px;text-transform:uppercase}.property-details #workspace-license{margin-top:var(--space-2);padding:7px 9px;border-radius:var(--radius-s);background:#244955;color:#c8f2e7;font-size:var(--text-s)}.property-details #workspace-license[data-level="warning"],.property-details #workspace-license[data-level="trial"]{background:#4d452e;color:#ffe1a0}.property-details #workspace-license[data-level="urgent"],.property-details #workspace-license[data-level="expired"]{background:#64343b;color:#ffe1e4}.property-details #workspace-license-note{font-size:11px;margin-top:var(--space-1);color:#e1d3ae}
@media(max-width:760px){.property{display:flex;padding:var(--space-3) 0 2px;margin:0;border:0}.property .hotel-icon{display:none}.property-details{display:grid;width:100%;grid-template-columns:minmax(0,1fr) minmax(140px,1fr);column-gap:var(--space-3)}.property-details #property-type{grid-column:1;grid-row:1}.property-details #property-name{grid-column:1;grid-row:2}.property-details #workspace-license{grid-column:2;grid-row:1 / span 2;margin-top:0;align-self:center}.property-details #workspace-license-note{grid-column:1 / -1;grid-row:3}}
.mfa-qr{display:block;width:280px;max-width:100%;background:white;margin:var(--space-3) 0}
.backup-warning{border:1px solid #a23b38;color:#842d2a;background:#fff3ee}.backup-alert{border-left:3px solid #a23b38;padding:var(--space-3) var(--space-4);margin:var(--space-3) 0;background:#fff8f2}.backup-alert small{display:block;color:#536975}
.profile-menu{padding:0 var(--space-5) var(--space-4);color:#c6dbe3}.profile-menu label{display:block;font-size:.8rem}.profile-menu select{width:100%;margin:6px 0}.profile-menu button{width:100%;font-size:.8rem}.profile-menu small{display:block;line-height:1.4;margin-top:6px}.industry-cards{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:var(--space-4)}.industry-cards article{padding:var(--space-4);border:1px solid #d7e3e8;border-radius:var(--radius-m)}.feature-options label{display:flex;align-items:center;gap:10px;margin:var(--space-2) 0}.feature-options input{width:auto;min-height:20px}
.access-summary{padding:var(--space-3) var(--space-6);background:#fff3d9;border-bottom:1px solid #e3d1a6;color:#614a19;font-size:13px}
@media(min-width:761px) and (max-height:720px){aside{overflow-y:auto}aside>.brand,aside>.property,aside>.profile-menu,aside>.side-bottom{flex-shrink:0}aside>#nav{flex:0 0 auto;overflow:visible;min-height:160px}}
.evidence-hash{overflow-wrap:anywhere;word-break:break-all;font-size:11px}.photo-grid figcaption{overflow-wrap:anywhere}.photo-grid [data-private-evidence]{max-height:260px;object-fit:contain}
/* ===== WelQora design tokens =====
   Additive layer. The original --accent/--ink/--line/--muted names keep
   working; semantic roles are defined in terms of them so no component
   has to change. --muted is re-pointed to a darker tint of the same hue
   so body text clears WCAG AA 4.5:1 on every surface the app uses. */
:root{
--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;
--text-xs:10px;--text-s:12px;--text-l:18px;--text-xl:25px;--text-2xl:30px;
--radius-s:6px;--radius-m:10px;--radius-l:14px;
--muted:#5e737e;
--surface-header:#f5f8f9;
--action-hover:#095e58;
--focus-ring:var(--accent);--focus-ring-on-dark:#7bd7c6;
--state-good-bg:#e1f1e9;--state-good-text:#28745a;
--state-warn-bg:#fff1db;
--state-bad-bg:#fbe6e8;
--state-info-bg:#e2eefb;
--sidebar-bg:#112d3b;--sidebar-text:#e7f1f4;--sidebar-text-weak:#a9bec7;
}
/* Contrast: each colour below measured under 4.5:1 against the surface it
   actually renders on. Replacements are the same hue, darkened to clear AA. */
footer{color:#62737b}
.eyebrow{color:#657a83}
th{color:#61747e}
.metric label{color:#647982}
/* Keyboard focus. The app previously relied on the UA default ring, which
   measures 1.33:1 against the #112d3b sidebar and is effectively invisible
   there. Re-point the ring per surface instead of restyling components. */
:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}
aside :focus-visible{outline-color:var(--focus-ring-on-dark)}
/* The property selector was 1.3px narrower than its own Russian label
   (needs 125.3px, had 124.0px) because .profile-menu re-pads inside an
   aside that is already padded. Drop the duplicate inset. */
.profile-menu{padding:0 0 var(--space-4)}
/* Sidebar: at 1440x900 the nav scroller is 348px tall for 1181px of items,
   so 18 of 26 sections sit below an inner fold. Reuse the pattern the
   stylesheet already applies under 720px, widened to ordinary laptops. */
@media(min-width:761px) and (max-height:1100px){aside{overflow-y:auto}aside>.brand,aside>.property,aside>.profile-menu,aside>.side-bottom{flex-shrink:0}aside>#nav{flex:0 0 auto;overflow:visible;min-height:160px}}
/* Touch targets under 44px on phones, scoped to control clusters so the
   dense booking grid keeps its deliberate density. */
@media(max-width:760px){.toolbar button,.actions button,.panel-head button,.dialog-foot button,.header-actions button{min-width:44px}}
/* --- Phone and small-tablet layout corrections (measured) ------------- */
/* The header action row is a nowrap flex line. In Russian the labels are
   long enough that below ~870px it pushes the whole document sideways:
   measured document overflow 761px ru 108 / en 13, 800px ru 69, 860px
   ru 9. Above 760px the stylesheet never allowed it to wrap. */
@media(max-width:1100px){.header-actions{flex-wrap:wrap;justify-content:flex-end}}
/* The 4-up metric row needs 642px of min-content in English (the widest of
   the three locales for these labels: ru 555, zh 614) plus 244px of
   sidebar and padding, so it only fits from 887px up. Measured document
   overflow before: 761px ru 108 / en 103 / zh 75, 800px 69/64/36, 860px
   9/4/0, 880px 0/6/0. Switching at 900 would leave 13px of headroom, which
   one seven-figure sum erases, so the 2-up band runs to 999px.
   The 2-up row is then sized by the min-content width of the big figure,
   so a 1fr column could not shrink below it: 390px ru 0 / en 35 / zh 22,
   320px 44/105/92. Outside Russian the amount is one unbreakable token
   ("RUB 100,800.00" against "100 800,00 ₽"), which is why the default
   locale hides it. minmax(0,1fr) lets the columns resolve equal, and
   letting the figure break is the backstop for a longer value. */
@media(max-width:999px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric strong{overflow-wrap:anywhere}}
/* One tile per row on phones keeps every amount on a single line in all
   three languages, instead of breaking a money figure mid-digits. */
@media(max-width:430px){.metrics{grid-template-columns:1fr}}
/* The free-cell label on phones measured 4.28:1 on white, under AA 4.5.
   #14766b is the colour this cell already uses on hover, so the resting
   and hover states now agree and no new value enters the palette:
   5.48:1 on white, 4.71:1 on the #dff2ed hover fill. */
@media(max-width:760px){.grid .free{color:#14766b}}
