/* Tech Pack Studio (TP) — visual theme (warm ivory + copper), app shell (top bar, side menu, step bar, bottom action bar) */
:root{
  --ink:#242321; --muted:#746C65; --muted-2:#6D6862; --line:#E2DAD1; --paper:#FAF8F5; --bg-2:#F0EAE2; --card:#FFFFFF;
  --accent:#A56543; --accent-d:#925437; --accent-soft:#F3E6DD; --ok:#5E8C5B; --side:276px;
  --r:14px; --r-sm:10px; --shadow:0 1px 2px rgba(60,40,25,.05),0 6px 18px rgba(60,40,25,.05);
}
html,body{background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}
body{padding-bottom:84px}
::selection{background:var(--accent-soft)}

/* ---------- top bar ---------- */
header.top{display:none!important}
#ksTop{position:sticky;top:0;z-index:60;background:rgba(246,241,235,.92);backdrop-filter:saturate(1.2) blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
#ksTop .in{display:flex;align-items:center;gap:10px;padding:10px 16px;max-width:1240px;margin:0 auto}
.ksBrand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);min-width:0}
.ksBrand img{height:34px;width:auto;display:block}
.ksBrand .sep{width:1px;height:30px;background:var(--ink);opacity:.5}
.ksWord{display:flex;flex-direction:column;line-height:1.1;direction:ltr;text-align:left}
.ksWord b{font-family:"Inter",sans-serif;font-weight:500;letter-spacing:.24em;font-size:15px;white-space:nowrap}
.ksWord small{font-family:"Inter",sans-serif;font-size:9.5px;letter-spacing:.34em;color:var(--accent-d);font-weight:500;margin-top:4px;white-space:nowrap}
#ksTop .grow{flex:1}
.ksIcon{border:0;background:transparent;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.ksIcon:hover{background:var(--accent-soft)}
.ksIcon svg{width:22px;height:22px}
#ksTop .lang{border:1px solid var(--line);border-radius:999px;background:var(--card);padding:2px}
#ksTop .lang button{border-radius:999px;padding:4px 11px;font-size:12.5px;background:transparent;color:var(--muted)}
#ksTop .lang button.on{background:var(--ink);color:#fff}
#ksTop .badge{border:1px solid var(--line);border-radius:999px;padding:3px 10px;font-size:11.5px;color:var(--muted);background:var(--card)}

/* ---------- side menu ---------- */
#ksSide{position:fixed;top:0;bottom:0;inset-inline-start:0;width:var(--side);background:var(--card);border-inline-end:1px solid var(--line);z-index:80;display:flex;flex-direction:column;padding:22px 16px 16px;overflow-y:auto;transition:transform .25s ease}
#ksSide .logo{display:flex;flex-direction:column;align-items:center;gap:10px;padding:4px 0 18px;border-bottom:1px solid var(--line);margin-bottom:16px}
#ksSide .logo img{height:64px}
#ksSide .logo .ksWord{align-items:center;text-align:center}
#ksSide .logo .ksWord b{font-size:16px}
#ksSide .new{width:100%;justify-content:center;margin-bottom:16px;min-height:48px}
#ksSide .new svg{width:18px;height:18px}
#ksSide nav{display:flex;flex-direction:column;gap:4px}
#ksSide nav button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;font:inherit;font-size:14.5px;color:var(--ink);padding:11px 12px;border-radius:12px;cursor:pointer;text-align:start}
#ksSide nav button svg{width:20px;height:20px;flex:0 0 auto;color:var(--muted)}
#ksSide nav button:hover{background:var(--paper)}
#ksSide nav button.on{background:var(--accent-soft);color:var(--accent-d);font-weight:600}
#ksSide nav button.on svg{color:var(--accent)}
#ksSide .sp{flex:1;min-height:16px}
#ksSide .foot{border-top:1px solid var(--line);padding-top:12px;margin-top:8px}
#ksSide .me{display:flex;align-items:center;gap:10px;padding:14px 6px 2px;border-top:1px solid var(--line);margin-top:10px}
#ksSide .me .av{width:40px;height:40px;border-radius:50%;background:var(--accent-soft);color:var(--accent-d);display:grid;place-items:center;font-weight:700;font-size:14px;direction:ltr}
#ksSide .me b{display:block;font-size:14px}
#ksSide .me small{color:var(--muted);font-size:12px}
#ksDim{position:fixed;inset:0;background:rgba(30,20,12,.35);z-index:75;opacity:0;pointer-events:none;transition:opacity .2s}
body.ksMenu #ksDim{opacity:1;pointer-events:auto}
@media (min-width:1100px){
  body{padding-inline-start:var(--side)}
  #ksMenuBtn,#ksTop .ksBrand{display:none}
  #ksTop .in{justify-content:flex-end}
}
@media (max-width:1099px){
  #ksSide{transform:translateX(-105%)}
  [dir=rtl] #ksSide{transform:translateX(105%)}
  body.ksMenu #ksSide{transform:none;box-shadow:0 0 40px rgba(0,0,0,.2)}
}

/* ---------- layout + cards ---------- */
.wrap{max-width:1180px;padding:18px 18px 24px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px;margin-bottom:16px;box-shadow:var(--shadow)}
h2{font-size:18px;font-weight:700;gap:12px}
h2 .n{background:var(--accent-soft);color:var(--accent-d);border-radius:10px;width:32px;height:32px;font-family:"IBM Plex Sans Arabic",sans-serif;font-weight:700;font-size:14px}
section.card>h2::after,section.card.cx>h2::after{content:''!important;font-size:0!important;padding:0!important;flex:0 0 auto;width:8px;height:8px;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(45deg);opacity:.7;margin-inline-start:auto;margin-top:-4px;margin-inline-end:6px}
section.card.cx>h2::after{transform:rotate(-45deg);margin-top:0}
[dir=rtl] section.card.cx>h2::after{transform:rotate(135deg)}
.note{color:var(--muted)}
.cwbox,.profbox{background:var(--paper);border:1px solid var(--line);border-radius:var(--r-sm)}

/* ---------- inputs + buttons ---------- */
label.f{font-size:13px;color:var(--ink);font-weight:500;gap:6px}
label.f input,label.f select,textarea,#revNote,.pjsel{border:1px solid var(--line)!important;border-radius:var(--r-sm)!important;padding:10px 12px!important;background:#fff;min-height:44px;transition:border-color .15s,box-shadow .15s}
textarea{min-height:84px}
label.f input:focus,label.f select:focus,textarea:focus,#revNote:focus{outline:none;border-color:var(--accent)!important;box-shadow:0 0 0 3px var(--accent-soft)}
.btn{background:var(--accent);border-color:var(--accent);border-radius:var(--r-sm);padding:11px 22px;display:inline-flex;align-items:center;gap:8px;transition:background .15s,transform .05s}
.btn:hover:not(:disabled){background:var(--accent-d);border-color:var(--accent-d)}
.btn:active:not(:disabled){transform:translateY(1px)}
.btn.ghost{background:var(--card);color:var(--ink);border:1px solid var(--line)}
.btn.ghost:hover:not(:disabled){background:var(--paper);border-color:#d9cbbd;color:var(--ink)}
.btn.sm{padding:7px 13px;font-size:13px;border-radius:9px}
input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:17px;height:17px}

/* ---------- photo drops ---------- */
.drop{border:1.5px dashed #D9C8B8;border-radius:var(--r);background:var(--paper);transition:border-color .15s,background .15s}
.drop:hover,.drop.over{border-color:var(--accent);background:var(--accent-soft)}
.drop .x{background:var(--ink)}

/* ---------- prompts, pages, misc ---------- */
.prompt{border-radius:var(--r-sm);border-color:var(--line);box-shadow:var(--shadow)}
.prompt .ph{background:var(--paper)}
.prompt.master{border-color:var(--accent)}.prompt.master .ph{background:var(--accent)}
.tpsvg{border-radius:var(--r-sm);border-color:var(--line)}
.analysis .sum{background:var(--accent-soft);border-inline-start:4px solid var(--accent);border-right:0}
[dir=rtl] .analysis .sum{border-right:4px solid var(--accent);border-left:0}
.toast{background:var(--ink);border-radius:999px;bottom:96px}
footer.legal{max-width:1180px;border-top:1px solid var(--line)}
.profbox .chip.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-d)}

/* ---------- step bar ---------- */
html body #stepBar{position:sticky;top:var(--topH,61px);z-index:50;background:rgba(246,241,235,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:12px 14px 10px;gap:0;justify-content:center}
html body #stepBar button.pj{display:none}
html body #stepBar button{flex:1 1 0;min-width:62px;max-width:200px;border:0!important;background:transparent!important;color:var(--muted)!important;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 2px;border-radius:0;position:relative;font-size:12.5px}
html body #stepBar button i{font-style:normal;width:30px;height:30px;border-radius:50%;border:1.5px solid #CFC2B6;background:var(--card);display:grid;place-items:center;font-size:13px;font-weight:600;position:relative;z-index:1;color:var(--muted)}
html body #stepBar button::before{content:'';position:absolute;top:15px;inset-inline-start:-50%;width:100%;height:1.5px;background:#D9CDC2}
html body #stepBar button:first-child::before{display:none}
html body #stepBar button.done::before,html body #stepBar button.cur::before{background:var(--accent)}
html body #stepBar button.done i{background:var(--ink);border-color:var(--ink);color:#fff}
html body #stepBar button.cur i{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 0 0 4px var(--accent-soft)}
html body #stepBar button.cur{color:var(--accent-d)!important;font-weight:700}
html body #stepBar button.done{color:var(--ink)!important}
html body #stepBar button[disabled]{opacity:1}
html body #stepBar button[disabled] i{opacity:.7}
@media (min-width:1100px){
  html body #stepBar{padding:12px 24px;gap:6px}
  html body #stepBar button{flex-direction:row;justify-content:center;gap:10px;font-size:14px;padding:9px 14px;max-width:none;background:var(--card)!important;border:1px solid var(--line)!important;border-radius:12px}
  html body #stepBar button::before{display:none}
  html body #stepBar button i{width:26px;height:26px;font-size:12.5px}
  html body #stepBar button.cur{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
  html body #stepBar button.cur i{background:#fff;color:var(--accent);border-color:#fff;box-shadow:none}
  html body #stepBar button.done i{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--accent-d)}
}

/* ---------- size chips ---------- */
.ksSizes{display:flex;flex-wrap:wrap;gap:8px}
.ksSizes button{font:inherit;font-size:14px;min-width:52px;height:42px;padding:0 12px;border:1px solid var(--line);background:#fff;border-radius:10px;cursor:pointer;color:var(--ink);direction:ltr}
.ksSizes button.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.ksSizes button.add{border-style:dashed;color:var(--muted)}
.ksSizes button.base.on::after{content:'●';font-size:7px;margin-inline-start:4px;vertical-align:super}
label.f.ksSizeF{grid-column:1/-1}
label.f.ksSizeF>input,label.f.ksBaseF>input{display:none}

/* ---------- bottom action bar ---------- */
#ksBar{position:fixed;bottom:0;inset-inline:0;z-index:70;background:rgba(255,252,249,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
#ksBar .in{display:flex;gap:10px;max-width:1180px;margin:0 auto}
#ksBar .btn{flex:1;justify-content:center;min-height:48px;font-size:15px}
#ksBar .btn.ghost{flex:0 0 34%}
#ksBar .btn svg{width:18px;height:18px}
@media (min-width:1100px){ #ksBar{inset-inline-start:var(--side)} #ksBar .btn.ghost{flex:0 0 180px} #ksBar .in{justify-content:flex-end} #ksBar .btn:not(.ghost){flex:0 0 340px} }
@media (max-width:759px){ #ksTop .lang button{font-size:0;padding:5px 9px} #ksTop .lang button::after{content:attr(data-short);font-size:12.5px} #ksTop .in{padding:8px 10px;gap:6px} .ksBrand{gap:8px} .ksBrand .sep{height:24px} .ksWord b{font-size:11.5px!important;letter-spacing:.14em!important} .ksWord small{font-size:8px;letter-spacing:.24em} html body #stepBar button{font-size:11.5px;min-width:54px} .card{padding:16px;border-radius:12px} .wrap{padding:12px 12px 18px} .ksWord b{font-size:13px;letter-spacing:.18em} .ksBrand img{height:30px} #ksTop .badge{display:none} }

/* ================= v2 polish: typography, section icons, drops, prompt + page cards ================= */
:root{--font:"Inter","IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",sans-serif;--font-head:"Manrope","Inter","IBM Plex Sans Arabic",system-ui,sans-serif;--latin:"Inter","IBM Plex Sans Arabic",system-ui,sans-serif}
html[lang=ar]{--font:"IBM Plex Sans Arabic","Inter",system-ui,sans-serif;--font-head:var(--font)}
html[lang=ar] body{line-height:1.7}
html[lang=ar] .card>h2,html[lang=ar] section.card>h2,html[lang=ar] label.f,html[lang=ar] .btn{letter-spacing:0}
.card>h2,section.card>h2,#ksBar .btn{font-family:var(--font-head)} html:not([lang=ar]) .card>h2{font-weight:600}
table,input,.prompt pre,.cwrow .num,.ksSizes button,#stepBar button i,.badge{font-variant-numeric:tabular-nums}
label.f input,label.f select,#revNote,.pjsel{border-radius:8px!important;min-height:48px}
html,body,button,input,select,textarea{font-family:var(--font)}
body{font-size:15px;line-height:1.7;font-weight:400;letter-spacing:0}
b,strong{font-weight:600}
.ltr,.badge,.tplName,.tpage figcaption,.tpage figcaption b,.prompt .ph b,.prompt .meta,.cwrow .num,.tplgrid figcaption b{font-family:var(--latin)!important}
.tplName{font-size:14px;font-weight:600;letter-spacing:.02em;color:var(--accent-d)}
.card>h2,section.card>h2{font-size:17px;font-weight:600;letter-spacing:-.005em;flex-wrap:wrap;row-gap:2px;align-items:center;margin:0 0 14px}
.card>h2>.note,section.card>h2>.note{order:3;flex-basis:100%;font-size:12.5px;font-weight:400;color:var(--muted);padding-inline-start:50px;margin-top:-2px!important;line-height:1.6}
section.card>h2::after{order:2}
h2 .n{width:38px;height:38px;border-radius:12px;background:var(--accent-soft);color:var(--accent);flex:0 0 auto}
h2 .n svg{width:20px;height:20px}
section.card.cx>h2{margin-bottom:0}
label.f{font-size:12.5px;font-weight:500;color:#5E544D;letter-spacing:.01em}
label.f input,label.f select,textarea,#revNote{font-size:14.5px;color:var(--ink)}
label.f input::placeholder,textarea::placeholder{color:#B5AAA1}
.btn{font-weight:500;letter-spacing:.01em;box-shadow:0 1px 0 rgba(255,255,255,.15) inset,0 2px 6px rgba(151,80,46,.18)}
.btn.ghost{box-shadow:none}
.btn:disabled{opacity:.45;box-shadow:none}
.note{font-size:13px;line-height:1.7}
/* photo drop zones */
.drop{min-height:150px;gap:4px}
.drop:not(:has(img))::before{content:'';width:42px;height:42px;border-radius:12px;background:var(--card) center/22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B4623A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='m21 16-5-5-8 9'/%3E%3C/svg%3E");border:1px solid var(--line);margin-bottom:6px}
.drop .lbl{font-size:15px;font-weight:600}
.drop .hint{font-size:12px;line-height:1.6}
.drop:has(img){background:#fff;border-style:solid;border-color:var(--line)}
/* prompt cards */
.prompt{background:var(--card);margin-bottom:14px}
.prompt .ph{background:transparent;border-bottom:1px solid var(--line);padding:14px 16px}
.prompt .ph b{font-size:13.5px;font-weight:600;letter-spacing:.06em}
.prompt .ph .note{font-size:12.5px}
.prompt .meta{font-size:11px;letter-spacing:.04em}
.prompt.master{border:1.5px solid var(--accent)}
.prompt.master .ph{background:var(--accent-soft);color:var(--ink)}
.prompt.master .ph .note,.prompt.master .ph .meta{color:var(--muted)}
.prompt pre{background:#FBF8F4;font-size:11.5px;color:#4A403A}
.prompt .attach{border-top:1px solid var(--line)}
.bprow .btn.ghost{background:#fff}
/* tech pack pages */
.tpage figcaption{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.tpage figcaption b{color:var(--accent-d);font-weight:600}
.tpsvg{background:#fff;box-shadow:var(--shadow)}
/* step bar + bottom bar type */
html body #stepBar button span{font-weight:500}
#ksBar .btn{font-weight:600;font-size:15px}
#ksSide nav button{font-weight:500;font-size:14px}
.ksWord b{font-family:"Inter",sans-serif;font-weight:500}
@media (max-width:759px){ .card>h2>.note,section.card>h2>.note{padding-inline-start:0} h2 .n{width:34px;height:34px;border-radius:10px} .card>h2,section.card>h2{font-size:16px} }
@media (max-width:759px){
  #drops{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px}
  #drops .drop:first-child{grid-column:1/-1;min-height:170px}
  #drops .drop:not(:first-child){min-height:128px;padding:10px 6px}
  #drops .drop:not(:first-child) .hint{display:none}
  #drops .drop:not(:first-child) .lbl{font-size:13.5px}
  #drops .drop:not(:first-child)::before{width:36px;height:36px;background-size:19px}
}
.prompt .ph .row{gap:6px;flex-wrap:wrap}
.prompt .ph .row .btn.sm{padding:6px 11px;font-size:12.5px}
.prompt .bpres:not(:empty){padding:10px 16px;border-bottom:1px solid var(--line)}
@media (max-width:759px){ .prompt .ph .row{width:100%} .prompt .ph .row .btn.sm{flex:1 1 auto;justify-content:center} }
.prompt,.prompt.master{padding:0!important}

.ksAdd{display:inline-flex;gap:6px;align-items:center}
.ksAdd input{width:130px;height:42px;border:1px solid var(--accent);border-radius:10px;padding:0 10px;font:inherit;font-size:14px;outline:none;box-shadow:0 0 0 3px var(--accent-soft)}
.ksSizes .ksAdd button{min-width:42px;padding:0}
.ksSizes .ksAdd .ok{background:var(--accent);border-color:var(--accent);color:#fff}
/* ---------- sign-in screen (split: brand + real tech pack pages | form) ---------- */
body.auLock{overflow:hidden}
#auGate{position:fixed;inset:0;z-index:200;background:var(--paper);display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);overflow-y:auto;overflow-x:hidden;font-family:var(--font)}
#auGate .ksWord b{font-family:"Inter",sans-serif;font-weight:500}
.auVis{position:relative;background:var(--bg-2);border-inline-end:1px solid var(--line);padding:40px clamp(32px,4vw,64px);display:flex;flex-direction:column;gap:32px;overflow:hidden;min-height:100dvh}
.auBrand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.auBrand img{height:36px;width:auto}
.auVisTxt{max-width:30em}
.auVisTxt h2{margin:0 0 12px;font-size:clamp(1.75rem,1rem + 2vw,2.5rem);line-height:1.2;font-weight:600;font-family:var(--font-head)}
html[lang=ar] .auVisTxt h2{line-height:1.45}
.auVisTxt p{margin:0;color:var(--muted-2);font-size:1.0625rem;line-height:1.7}
.auStack{position:relative;flex:1;min-height:300px}
.auDoc{position:absolute;margin:0;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 1px 2px rgba(36,35,33,.06),0 22px 44px -16px rgba(36,35,33,.28);overflow:hidden}
.auDoc img{display:block;width:100%;height:auto}
.auDoc.a{width:58%;top:0;inset-inline-start:2%;transform:rotate(-4deg)}
.auDoc.b{width:64%;top:16%;inset-inline-end:0;transform:rotate(3deg)}
.auDoc.c{width:66%;bottom:2%;inset-inline-start:10%;transform:rotate(-1deg)}
.auMain{display:flex;flex-direction:column;min-height:100dvh;padding:24px clamp(20px,4vw,56px)}
.auTop{display:flex;align-items:center;justify-content:flex-end;gap:16px}
.auTop .auBrand.sm{display:none;margin-inline-end:auto}
.auLang{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:3px;background:var(--card)}
.auLang button{border:0;background:transparent;font:inherit;font-family:"Inter","IBM Plex Sans Arabic",sans-serif;font-size:13px;font-weight:500;color:var(--muted-2);height:30px;padding:0 12px;border-radius:999px;cursor:pointer}
.auLang button[aria-pressed=true]{background:var(--ink);color:#fff}
.auForm{width:100%;max-width:420px;margin:auto;padding:40px 0;display:flex;flex-direction:column;gap:16px}
.auForm h1{margin:0;font-size:clamp(1.5rem,1.2rem + 1vw,2rem);font-weight:600;line-height:1.25;font-family:var(--font-head)}
html[lang=ar] .auForm h1{line-height:1.45}
.auSub{margin:-6px 0 8px;color:var(--muted-2);font-size:1rem;line-height:1.6}
.auBtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;border-radius:10px;font:inherit;font-size:1rem;font-weight:500;cursor:pointer;transition:background .18s,border-color .18s,transform .1s}
.auBtn:active{transform:translateY(1px)} .auBtn:disabled{opacity:.6;cursor:progress}
.auG{background:#fff;border:1px solid var(--line);color:var(--ink)} .auG:hover{border-color:#CBBFB2;background:#FDFCFA}
.auPri{background:var(--accent);border:1px solid var(--accent);color:#fff;font-weight:600;margin-top:4px} .auPri:hover{background:var(--accent-d)}
html[lang=ar] .auPri{font-weight:500}
.auOr{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.875rem}
.auOr::before,.auOr::after{content:"";flex:1;height:1px;background:var(--line)}
.auField{display:flex;flex-direction:column;gap:8px}
.auField label{font-size:.9375rem;font-weight:500;color:var(--ink)}
.auLbl{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.auLbl a,.auAlt a,.auLegal a{color:var(--accent-d);text-decoration:none;font-weight:500}
.auLbl a{font-size:.875rem} .auLbl a:hover,.auAlt a:hover,.auLegal a:hover{text-decoration:underline}
.auField input{width:100%;height:50px;border:1px solid var(--line);border-radius:8px;padding:0 14px;font:inherit;font-family:"Inter",sans-serif;font-size:16px;background:#fff;color:var(--ink);transition:border-color .15s,box-shadow .15s}
.auField input:focus{outline:none;border-color:var(--accent-d);box-shadow:0 0 0 3px var(--accent-soft)}
.auPw{position:relative} .auPw input{padding-inline-end:52px}
.auEye{position:absolute;top:3px;inset-inline-end:3px;width:44px;height:44px;border:0;background:transparent;border-radius:6px;color:var(--muted-2);display:grid;place-items:center;cursor:pointer}
.auEye:hover{color:var(--ink)} .auEye svg{width:20px;height:20px}
.auField small{color:var(--muted);font-size:.8125rem}
.auMsg{margin:0;min-height:1.3em;font-size:.9375rem;line-height:1.5} .auMsg.bad{color:#B3261E} .auMsg.ok{color:#3F6E3C}
.auAlt{margin:0;text-align:center;color:var(--muted-2);font-size:.9375rem}
.auLegal{margin:8px 0 0;text-align:center;color:var(--muted);font-size:.8125rem;line-height:1.6}
.auHome{display:inline-flex;align-items:center;gap:8px;align-self:center;margin-top:4px;color:var(--muted-2);text-decoration:none;font-size:.875rem;min-height:44px}
.auHome:hover{color:var(--ink)} .auHome svg{width:16px;height:16px} html[dir=rtl] .auBack{transform:scaleX(-1)}
#auGate :focus-visible{outline:2px solid var(--accent-d);outline-offset:2px}
@media (max-width:1023px){ #auGate{grid-template-columns:minmax(0,1fr)} .auVis{display:none} .auTop .auBrand.sm{display:flex} .auMain{padding:16px 20px calc(16px + env(safe-area-inset-bottom))} .auForm{padding:24px 0;margin:0 auto} }
@media (max-width:420px){ .auTop .auBrand.sm img{height:28px} .auTop .ksWord b{font-size:10.5px;letter-spacing:.14em} .auTop .ksWord small{font-size:7.5px} .auLang button{padding:0 8px;font-size:12px} }
@media (prefers-reduced-motion:reduce){ #auGate *{transition:none!important} }
#auOut{width:100%;justify-content:center}
#ksSide .me a,#ksSide .me b,#ksSide .me small{color:inherit!important;text-decoration:none!important}

/* tokens v3: focus + states */
:focus-visible{outline:2px solid var(--accent-d);outline-offset:2px}
.btn:focus-visible,#ksBar .btn:focus-visible{box-shadow:0 0 0 3px var(--accent-soft)}
a{color:var(--accent-d)}
.note{color:var(--muted-2)}
label.f select,label.f input{max-width:100%;min-width:0} .row>label.f{min-width:0;max-width:100%}
.cwbox .row>label.f{flex-wrap:wrap} .cwbox .row>label.f select{flex:1 1 160px;width:auto}
@media (max-width:600px){ .cwbox .row>label.f{flex:1 1 100%} .cwbox .row>label.f select{flex:1 1 0;min-width:0;width:0} }

/* TP identity: founder line stays secondary */
.ksWord small{font-weight:400!important;font-size:8.5px!important;opacity:.9}
#ksSide .logo img{height:56px}
.ksBrand img,.auBrand img{width:auto}
