:root {
  --canvas:#f7f8fb; --paper:#fff; --ink:#242638; --secondary:#62677b; --line:#dfe2ec;
  --brand:#3c50b7; --cool:#eff1ff; --peach:#ffb785;
  font-family:Inter,"Segoe UI Variable","Segoe UI",Arial,sans-serif; color:var(--ink); background:var(--canvas);
  font-synthesis:none; color-scheme:light;
}
*,*::before,*::after { box-sizing:border-box; }
body { margin:0; min-height:100vh; line-height:1.5; }
button,input { font:inherit; }
a { text-underline-offset:3px; color:var(--brand); }
button { cursor:pointer; }.skip { position:fixed; z-index:4; top:-15rem; left:1rem; padding:.6rem .9rem; background:#fff; border-radius:7px; }.skip:focus { top:.5rem; }
:focus-visible { outline:3px solid #a25a1a; outline-offset:3px; }
[hidden] { display:none!important; }
.boundary { width:min(100% - 3rem,1130px); margin-inline:auto; }
.mast { background:#fff; border-bottom:1px solid var(--line); }
.mast-inner { min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { display:inline-flex; align-items:center; color:var(--ink); font-size:1.68rem; font-weight:740; letter-spacing:-.067em; text-decoration:none; }
.brand img { margin-right:9px; }.brand span { color:#ce7945; }
.mast nav { display:flex; gap:7px; }.mast nav a { text-decoration:none; padding:7px 12px; font-size:.94rem; font-weight:620; border-radius:8px; color:#51586e; }.mast nav a:hover,.mast nav a[aria-current=page] { background:var(--cool); color:var(--brand); }
main { outline:none; padding:clamp(24px,5.8vw,76px) 0 64px; }
.auth-layout { display:grid; grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr); gap:clamp(22px,4.6vw,64px); align-items:center; }
.learning-card { position:relative; display:flex; isolation:isolate; flex-direction:column; justify-content:space-between; min-height:440px; padding:clamp(22px,3.7vw,49px); overflow:hidden; border-radius:25px; color:#fff; background:linear-gradient(135deg,#3448af,#566bcf 75%,#7686df); }
.learning-copy { position:relative; z-index:1; }.learning-copy h2,.welcome h1 { margin:0; max-width:14ch; font-weight:670; font-size:clamp(2.1rem,4vw,3.55rem); line-height:1.05; letter-spacing:-.057em; text-wrap:balance; }
.learning-copy p { max-width:38ch; margin:11px 0 0; color:#f2f3ff; font-size:1.02rem; }
.art { width:100%; min-height:177px; max-width:365px; position:relative; margin:1.6rem auto 0; pointer-events:none; }
.art::before { content:""; position:absolute; inset:-15px -40px -32px; background-image:linear-gradient(#dfe4ff28 1px,transparent 1px),linear-gradient(90deg,#dfe4ff28 1px,transparent 1px); background-size:23px 23px; mask-image:linear-gradient(100deg,transparent,#000 18%,#000 86%,transparent); }
.art-trail { position:absolute; inset:13px -30px 21px; border:1.5px solid #d4dbff50; transform:rotate(-12deg); border-radius:50%; }
.flash { border:2px solid #2c3153; border-radius:12px; position:absolute; box-shadow:3px 4px 0 #2c3153; color:#2a2b43; padding:11px 15px; width:51%; max-width:166px; aspect-ratio:1.4; display:flex; flex-direction:column; justify-content:space-between; }
.flash small { display:flex; justify-content:space-between; font-size:.63rem; font-weight:760; line-height:1; letter-spacing:.12em; }.flash small i { font-style:normal; }
.flash b { font:600 clamp(2.05rem,3.55vw,3.5rem)/1 Georgia,serif; letter-spacing:-.07em; }
.flash span { width:22%; height:2px; border-radius:100px; background:currentColor; }
.flash.en { top:5%; left:10%; background:#f4f2ff; transform:rotate(-12deg); }.flash.uz { top:42%; right:3%; background:var(--peach); transform:rotate(9deg); }
.form-panel,.card { min-width:0; background:#fff; border:1px solid var(--line); border-radius:20px; padding:clamp(22px,3.5vw,42px); }
.form-panel h1,.profile-title h1 { margin:0; color:var(--ink); font-size:clamp(1.8rem,3vw,2.65rem); font-weight:665; line-height:1.14; letter-spacing:-.05em; overflow-wrap:anywhere; }
.form-panel p,.card p,.profile-title p { color:var(--secondary); }.form-panel .lead { margin:10px 0 24px; }
.primary,.secondary,.danger-solid,.text-button { display:inline-flex; justify-content:center; align-items:center; overflow-wrap:anywhere; min-height:43px; padding:9px 15px; border-radius:9px; font-weight:640; font-size:.94rem; text-decoration:none; line-height:1.35; }
.primary { border:1px solid var(--brand); color:#fff; background:var(--brand); }.primary:hover { background:#30439f; }
.secondary { border:1px solid #cfd5e6; color:#40509e; background:#fff; }.secondary:hover { background:#f0f2ff; }
.danger-solid { border:1px solid #9a3835; color:#fff; background:#9a3835; }
.text-button { border:1px solid transparent; background:transparent; color:var(--brand); padding:6px 7px; }.text-button:hover,.text-link:hover { text-decoration:underline; }
.text-link { display:inline-flex; align-items:center; min-height:40px; font-size:.9rem; font-weight:620; }
button:disabled { opacity:.58; cursor:wait; }
.button-row,.welcome-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:11px; }
.back { display:block; margin-top:8px; }
.pair-panel,.verified { background:#f1f3fd; margin:8px 0 19px; padding:14px 17px; border:1px solid #dfe4f8; border-radius:12px; display:grid; gap:2px; }
.pair-panel span,.verified>span,.pair-panel small { color:#5c6582; font-size:.86rem; }.pair-panel strong { font-size:clamp(1.8rem,4vw,2.22rem); letter-spacing:.18em; line-height:1.35; font-variant-numeric:tabular-nums; color:#2f4083; overflow-wrap:anywhere; }
.verified strong { color:#253661; font-size:1.18rem; overflow-wrap:anywhere; }.verified b { font-size:.98rem; font-weight:560; color:#4a5169; }
.fallback { border-top:1px solid var(--line); margin-top:18px; padding-top:12px; font-size:.92rem; }.fallback p { margin:0; }
.field-message:not(:empty) { margin:13px 0 0; padding:10px 12px; border-left:3px solid #8592d6; color:#384467; background:#f0f3ff; border-radius:4px; font-size:.89rem; }
.field-message:empty { display:none; }
.loading-card { min-height:180px; display:flex; align-items:center; justify-content:center; gap:12px; color:var(--secondary); }
.loader { width:19px; height:19px; border:2px solid #e0e3f2; border-top-color:var(--brand); border-radius:50%; animation:spin .8s linear infinite; }@keyframes spin { to{transform:rotate(360deg);} }
.welcome { display:flex; justify-content:space-between; align-items:center; gap:20px; overflow:hidden; background:linear-gradient(112deg,#3448af,#6277d4); border-radius:23px; padding:clamp(24px,4.8vw,57px); color:white; }
.welcome .art { max-width:310px; width:37%; flex-shrink:0; margin:0 14px 19px 0; }
.welcome-copy { min-width:0; }.welcome h1 { max-width:none; font-size:clamp(2rem,3.5vw,2.9rem); overflow-wrap:anywhere; }.welcome-copy p { margin:10px 0; color:#f1f3ff; }
.eyebrow { font-size:.76rem; letter-spacing:.14em; font-weight:680; }.welcome .primary { background:#fff; color:#34459b; border-color:#fff; }.welcome .secondary { border-color:#bfc7fa; color:#fff; background:transparent; }.welcome .secondary:hover { background:#5063c7; }
.profile-title { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:22px; }.profile-title p { margin:6px 0 0; }
.profile-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:20px; }.card { padding:clamp(20px,2.4vw,31px); }
.card h2 { font-size:1.3rem; margin:0; letter-spacing:-.035em; font-weight:660; }.card>p { margin:5px 0 14px; font-size:.94rem; }
.field-label,legend { display:block; margin:16px 0 5px; font-size:.89rem; font-weight:620; color:#40475c; }
.card input[type=text] { width:100%; min-height:42px; padding:8px 10px; border-radius:8px; color:var(--ink); background:#fff; border:1px solid #cbd1e0; }
.masked { display:block; color:#51596b; font-variant-numeric:tabular-nums; }
fieldset { margin:16px 0 22px; padding:0; border:0; min-width:0; }legend { margin:0 0 7px; }
.goals { display:flex; gap:6px; flex-wrap:wrap; }.goal-option { display:inline-flex; }.goal-option input { position:absolute; width:1px; height:1px; opacity:0; }
.goal-option span { display:inline-block; padding:8px 11px; color:#5b6279; border:1px solid #cfd3e1; border-radius:8px; font-size:.89rem; cursor:pointer; }.goal-option input:checked+span { color:#35479e; border-color:#5c6dbe; background:#edf0ff; font-weight:670; }.goal-option input:focus-visible+span { outline:3px solid #a25a1a; outline-offset:2px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.session-list { padding:0; margin:0 0 12px; list-style:none; }.session-list li { display:flex; justify-content:space-between; gap:12px; align-items:center; border-top:1px solid var(--line); padding:12px 0; }
.session-list li>div { min-width:0; }.session-list strong,.session-list small { display:block; overflow-wrap:anywhere; }.session-list strong { font-size:.95rem; }.session-list small { color:#646a7d; font-size:.82rem; }
.this-device { color:#37664b; background:#eaf5ed; padding:2px 7px; border-radius:6px; white-space:nowrap; font-size:.75rem; font-weight:650; }
.confirm-box { border:1px solid #eddacb; background:#fff5e9; border-radius:10px; padding:13px; margin:12px 0 0; }.confirm-box strong { font-size:.93rem; overflow-wrap:anywhere; }
.danger,.logout { color:#92423c; }.logout { margin:14px 0 0; padding-left:0; }
#account-notice { position:fixed; z-index:5; bottom:1rem; left:50%; transform:translateX(-50%); max-width:min(90vw,36rem); border-radius:8px; background:#282d44; color:#fff; font-size:.9rem; }#account-notice:not(:empty){padding:9px 14px;}#account-notice:empty{display:none;}
noscript { text-align:center; }
@media(max-width:720px) {
  .boundary { width:calc(100% - 2rem); }.mast-inner { min-height:63px; }.auth-layout,.profile-grid { grid-template-columns:1fr; gap:14px; }
  .learning-card { flex-direction:row; align-items:center; gap:5px; min-height:135px; padding:19px 20px; border-radius:16px; }.learning-copy { flex:1; }.learning-copy h2 { font-size:clamp(1.52rem,5.1vw,2rem); }.learning-copy p { margin-top:6px; font-size:.88rem; }
  .learning-card .art { width:30%; min-height:75px; margin:0; }.learning-card .flash { padding:5px; border-radius:6px; border-width:1px; box-shadow:2px 2px 0 #2c3153; }.learning-card .flash small { font-size:.43rem; }.learning-card .flash b { font-size:clamp(.9rem,3.3vw,1.8rem); }.learning-card .flash.en { left:0; }.learning-card .flash.uz { right:0; }
  .form-panel,.card { border-radius:16px; }.form-panel .lead { margin-bottom:17px; }
  .welcome .art { display:none; }.profile-title { align-items:flex-start; }.profile-title .secondary { flex:none; }
}
@media(max-width:400px) {
  .boundary { width:calc(100% - 1.4rem); }.brand { font-size:1.42rem; }.brand img { width:31px; height:31px; }.mast nav a { padding:6px 9px; }
  .profile-title { flex-direction:column; gap:9px; }.learning-card { padding:15px; }.form-panel,.card { padding:17px; }
}
@media(prefers-reduced-motion:reduce) { .loader { animation:none; } }
