/* Shared styles for /study/notes/ and /study/solve/ (Ujjain Market study tools) */
*{box-sizing:border-box}
html{color-scheme:light}
html,body{overflow-x:hidden;max-width:100%}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Devanagari","Mangal",sans-serif;line-height:1.55;color:#1d1d1f;
  background:radial-gradient(1200px 500px at 10% -10%,#ffe9f3 0,transparent 60%),radial-gradient(900px 500px at 110% 0,#e5f0ff 0,transparent 55%),#fbf8ff}
[hidden]{display:none!important}
img,canvas{max-width:100%}
.st-wrap{max-width:880px;margin:0 auto;padding:0 14px 36px}
.st-top{position:sticky;top:0;z-index:30;background:linear-gradient(90deg,#3b0a6b,#7a1fa2 55%,#c2185b);color:#fff;box-shadow:0 2px 12px rgba(60,10,100,.25)}
.st-top .st-wrap{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px}
.st-top a{color:#fff;text-decoration:none;font-weight:800;min-height:44px;display:inline-flex;align-items:center}
.st-pill{border:1px solid rgba(255,255,255,.5);border-radius:999px;padding:0 14px;font-size:15px;background:rgba(255,255,255,.12)}
.st-hero{padding:20px 0 4px}
.st-hero h1{font-size:clamp(24px,6.4vw,38px);line-height:1.2;margin:0 0 6px;background:linear-gradient(90deg,#6a1b9a,#d81b60,#f57c00);-webkit-background-clip:text;background-clip:text;color:transparent}
.st-hero p{margin:0;color:#4a4a55}
.st-crumb{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:12px 0 0;font-size:14px;color:#666}
.st-crumb a{color:#5b1a8f;font-weight:700;min-height:32px;display:inline-flex;align-items:center}
.st-card{background:#fff;border-radius:20px;padding:16px;margin:14px 0;box-shadow:0 1px 0 rgba(0,0,0,.04),0 10px 30px rgba(90,40,140,.10);border:1px solid #efe6fa;min-width:0}
.st-card h2{font-size:clamp(18px,4.8vw,22px);margin:0 0 10px;line-height:1.3}
.st-card h3{font-size:17px;margin:12px 0 6px}
.st-note{font-size:13.5px;color:#5c5c66;margin:8px 0 0}
.st-note b{color:#333}
.st-ta{width:100%;min-height:170px;padding:12px;border-radius:14px;border:2px solid #e3d6f5;font:inherit;font-size:16px;line-height:1.5;resize:vertical;background:#fffefc;color:#222}
.st-ta:focus{outline:none;border-color:#9c27b0;box-shadow:0 0 0 3px rgba(156,39,176,.15)}
.st-row{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 0}
.st-row>*{flex:1 1 150px;min-width:0}

/* glossy 3D gradient buttons */
.gb{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 16px;border:0;border-radius:16px;
  font:inherit;font-weight:800;font-size:16px;line-height:1.2;color:#fff;text-decoration:none;cursor:pointer;text-align:center;overflow:hidden;
  text-shadow:0 1px 1px rgba(0,0,0,.25);-webkit-tap-highlight-color:transparent;
  background:linear-gradient(180deg,var(--c1,#7c4dff),var(--c2,#5e35b1));
  box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 -3px 0 rgba(0,0,0,.18),0 4px 0 var(--c3,#3f1f8a),0 8px 18px rgba(40,10,80,.25);
  transition:transform .08s,box-shadow .08s}
.gb::before{content:"";position:absolute;left:6%;right:6%;top:3px;height:45%;border-radius:12px 12px 40% 40%;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0));pointer-events:none}
.gb:active{transform:translateY(3px);box-shadow:inset 0 2px 0 rgba(255,255,255,.4),inset 0 -2px 0 rgba(0,0,0,.18),0 1px 0 var(--c3,#3f1f8a),0 3px 8px rgba(40,10,80,.25)}
.gb:focus-visible{outline:3px solid #ffb300;outline-offset:3px}
.gb[disabled]{opacity:.55;cursor:wait}
.gb .em{font-size:20px;text-shadow:none;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.gb.big{min-height:58px;font-size:18px;border-radius:18px}
.g-blue{--c1:#4fc3f7;--c2:#1e6fe0;--c3:#0d47a1}
.g-pink{--c1:#ff80ab;--c2:#e91e63;--c3:#9c0f42}
.g-green{--c1:#69f0ae;--c2:#16a34a;--c3:#0b6b2f}
.g-orange{--c1:#ffd54f;--c2:#fb8c00;--c3:#b45309}
.g-purple{--c1:#b388ff;--c2:#7b1fa2;--c3:#4a0d6b}
.g-teal{--c1:#64ffda;--c2:#00897b;--c3:#004d40}
.g-red{--c1:#ff8a80;--c2:#e53935;--c3:#8e1b17}
.g-grey{--c1:#cfd8dc;--c2:#78909c;--c3:#455a64}

/* option chips */
.st-opt{margin:12px 0 0}
.st-opt>.lbl{display:block;font-weight:800;font-size:14.5px;margin:0 0 6px;color:#3d2a55}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:999px;border:2px solid #e2d5f3;background:linear-gradient(180deg,#fff,#f4eefc);font:inherit;font-size:15px;font-weight:700;color:#3b2a52;cursor:pointer;max-width:100%}
.chip[aria-pressed="true"]{border-color:#8e24aa;background:linear-gradient(180deg,#f3e5f5,#e1bee7);color:#4a0d6b;box-shadow:0 2px 0 #8e24aa}
.chip:focus-visible{outline:3px solid #ffb300;outline-offset:2px}
.chk{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:8px 0;font-size:15px;cursor:pointer}
.chk input{width:22px;height:22px;margin:1px 0 0;accent-color:#8e24aa;flex:0 0 auto}
.sel{min-height:46px;width:100%;border-radius:12px;border:2px solid #e2d5f3;padding:0 10px;font:inherit;font-size:16px;background:#fff;color:#222}

/* progress + preview */
.st-prog{margin:10px 0 0;font-size:14px;color:#4a2a6a}
.st-bar{height:10px;border-radius:999px;background:#eee4f8;overflow:hidden;margin-top:6px}
.st-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#ab47bc,#ec407a,#ffa726);transition:width .2s}
.st-thumb{display:block;max-height:180px;max-width:100%;border-radius:12px;margin:10px 0 0;border:1px solid #eee}
.st-msg{padding:10px 12px;border-radius:12px;font-size:14.5px;margin:10px 0 0}
.st-msg.warn{background:#fff6e0;border:1px solid #ffe0a3;color:#6b4a00}
.st-msg.err{background:#ffebee;border:1px solid #ffcdd2;color:#8e1b17}
.st-msg.ok{background:#e8f5e9;border:1px solid #c8e6c9;color:#1b5e20}
.st-links{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.st-links>*{flex:1 1 160px}
code,kbd{font-family:ui-monospace,Menlo,Consolas,monospace;background:#f3eefa;border-radius:6px;padding:1px 5px;font-size:.92em;overflow-wrap:anywhere}
.help li{margin:4px 0;overflow-wrap:anywhere}
