
:root{
  --bg:#0a0a0b;
  --panel:#141417;
  --panel-2:#1b1c20;
  --text:#f3f4f6;
  --muted:#a1a1aa;
  --stroke:#2a2b31;
  --accent:#f5f5f5;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
body{min-height:100vh}
.app-shell{max-width:480px;margin:0 auto;min-height:100vh;padding:14px 14px 92px}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.app-title{font-size:1.35rem;font-weight:800}
.app-subtitle{font-size:.78rem;color:var(--muted)}
.lang-select{background:var(--panel);color:var(--text);border:1px solid var(--stroke);border-radius:14px;padding:10px 12px}
.screen-container{display:block}
.card{background:linear-gradient(180deg,var(--panel),var(--panel-2));border:1px solid var(--stroke);border-radius:22px;padding:14px;margin-bottom:12px;box-shadow:0 10px 24px rgba(0,0,0,.22)}
.input, .select, .file-input{
  width:100%;background:#0e0f12;color:var(--text);border:1px solid var(--stroke);border-radius:16px;padding:14px 14px;font-size:16px
}
.row{display:flex;gap:10px;align-items:center}
.space{display:flex;justify-content:space-between;align-items:center;gap:10px}
.stack{display:flex;flex-direction:column;gap:10px}
.muted{color:var(--muted)}
.small{font-size:.85rem}
.tiny{font-size:.75rem}
.section-title{font-size:1rem;font-weight:700;margin:0 0 8px}
.paint-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.paint-row:last-child{border-bottom:0;padding-bottom:0}
.swatch{width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.08);flex:0 0 auto}
.paint-main{flex:1;min-width:0}
.paint-name{font-weight:700;font-size:.96rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.paint-meta{font-size:.78rem;color:var(--muted)}
.btn{border:0;border-radius:14px;padding:12px 14px;font-weight:700;background:#f3f4f6;color:#0a0a0b}
.btn.secondary{background:#23242a;color:var(--text);border:1px solid var(--stroke)}
.btn.small{padding:10px 12px;font-size:.82rem}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{background:#23242a;border:1px solid var(--stroke);color:var(--text);padding:8px 10px;border-radius:999px;font-size:.78rem}
.chip.active{background:#f3f4f6;color:#0a0a0b}
.hero{display:grid;grid-template-columns:88px 1fr;gap:12px;align-items:center}
.hero-swatch{width:88px;height:88px;border-radius:20px;border:1px solid rgba(255,255,255,.08)}
.actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:12px}
.actions.two{grid-template-columns:1fr 1fr}
.subgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.data-box{background:#101114;border:1px solid var(--stroke);border-radius:16px;padding:12px}
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;max-width:480px;margin:0 auto;
  background:rgba(10,10,11,.96);backdrop-filter:blur(10px);border-top:1px solid var(--stroke);
  display:grid;grid-template-columns:repeat(5,1fr);padding:8px 8px calc(8px + env(safe-area-inset-bottom))
}
.nav-btn{border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 4px;border-radius:16px;font-size:.7rem}
.nav-btn.active{background:#f3f4f6;color:#0a0a0b;font-weight:700}
.nav-btn .icon{font-size:1.1rem}
.preview{
  height:240px;border-radius:20px;background:radial-gradient(circle at center, rgba(255,255,255,.16), rgba(255,255,255,.04) 30%, rgba(255,255,255,.02) 45%, transparent 48%), linear-gradient(135deg,#3b3b41,#64646d,#2f2f36);
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border:1px solid var(--stroke)
}
.picker{width:64px;height:64px;border-radius:999px;border:4px solid white;box-shadow:0 6px 20px rgba(0,0,0,.3)}
.wheel{
  width:min(78vw,300px);height:min(78vw,300px);margin:0 auto;border-radius:50%;
  background:conic-gradient(#ff4d4d,#ffb84d,#ffff66,#66ff66,#66ffff,#6699ff,#b366ff,#ff66cc,#ff4d4d);
  display:flex;align-items:center;justify-content:center;border:1px solid var(--stroke)
}
.wheel-center{
  width:38%;height:38%;border-radius:50%;background:#111215;border:1px solid var(--stroke);
  display:flex;align-items:center;justify-content:center
}
.wheel-dot{width:38px;height:38px;border-radius:50%;border:4px solid white;background:#3e8255}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.library-item{padding:14px;border-radius:18px;background:#17181c;border:1px solid var(--stroke);font-weight:700}
.hidden{display:none !important}
details{background:#101114;border:1px solid var(--stroke);border-radius:16px;padding:10px 12px}
summary{cursor:pointer}
@media (max-width:370px){
  .actions{grid-template-columns:1fr 1fr}
}


body, input, textarea, select, button{
  direction:ltr;
  unicode-bidi:plaintext;
  text-align:left;
}
.input{
  direction:ltr;
  unicode-bidi:plaintext;
  text-align:left;
  caret-color:#f3f4f6;
}

