:root{--bg: #f5f3ef;--card: #ffffff;--ink: #1f2937;--muted: #6b7280;--brand: #ef4444;--brand-ink: #b91c1c;--edge: #e5e7eb;--success: #047857}*{box-sizing:border-box}body{margin:0;font-family:Avenir Next,Manrope,Nunito Sans,Segoe UI,sans-serif;color:var(--ink);background:radial-gradient(circle at 10% 5%,#fee2e2 0%,transparent 35%),radial-gradient(circle at 95% 10%,#fef3c7 0%,transparent 28%),var(--bg);min-height:100vh}a{color:inherit}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit}input,select,textarea{width:100%;padding:.7rem .8rem;border-radius:.7rem;border:1px solid var(--edge);background:#fff}textarea{min-height:72px;resize:vertical}.login-page{min-height:100vh;display:grid;place-items:center;padding:1.25rem}.app-shell{padding:1rem;max-width:1400px;margin:0 auto}.card{background:var(--card);border:1px solid rgba(17,24,39,.07);border-radius:1rem;box-shadow:0 15px 40px #11182714;padding:1rem}.login-card{max-width:460px;width:100%;display:grid;gap:.9rem;text-align:center}.login-logo{width:164px;justify-self:center}.top-bar{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1rem}.brand{display:flex;gap:.8rem;align-items:center}.brand img{width:138px;border-radius:.6rem}.brand h1{font-size:1.1rem}.brand p{color:var(--muted);font-size:.88rem}.tab-nav{display:flex;gap:.6rem;margin-bottom:1rem;flex-wrap:wrap}.tab{border:1px solid var(--edge);border-radius:999px;background:#fff;padding:.5rem .85rem;cursor:pointer}.tab.active{border-color:var(--brand);background:#fee2e2;color:var(--brand-ink);font-weight:600}.primary-button,.secondary-button,.ghost-button{border-radius:.8rem;border:1px solid transparent;padding:.6rem .85rem;cursor:pointer}.primary-button{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.secondary-button{background:#fff;border-color:#d1d5db}.ghost-button{background:transparent;border-color:#e5e7eb}.muted{color:var(--muted)}.success-text{color:var(--success)}.error-text{color:#b91c1c}.otp-form,.stack-form,.question-form{display:grid;gap:.5rem;text-align:left}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.stat-card{min-height:130px;display:flex;flex-direction:column;justify-content:space-between}.card-eyebrow{color:var(--muted);font-size:.85rem}.stat-value{font-size:1.45rem;font-weight:700;line-height:1.2}.card-subtitle{color:var(--muted);font-size:.85rem}.screen-grid{display:grid;gap:.8rem}.split-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.rank-list,.category-list,.question-list{list-style:none;margin:.8rem 0 0;padding:0;display:grid;gap:.5rem}.rank-list li{display:grid;grid-template-columns:1.2fr 1fr auto;gap:.5rem;align-items:center;padding:.5rem;border:1px solid var(--edge);border-radius:.7rem}.management-layout{display:grid;grid-template-columns:300px 1fr;gap:.8rem;align-items:start}.content-stack{display:grid;gap:.8rem;align-content:start}.sidebar{align-self:start}.chip{width:100%;text-align:left;border:1px solid var(--edge);border-radius:.8rem;padding:.55rem .7rem;display:flex;justify-content:space-between;align-items:center;background:#fff;cursor:pointer}.chip small{color:var(--muted)}.chip.active{border-color:var(--brand);background:#fff1f2}.inline-form{display:grid;grid-template-columns:1fr auto;gap:.5rem;margin-top:.7rem}.question-list-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.question-list-title-block{display:grid;gap:.55rem;min-width:0}.category-sop-row{display:grid;gap:.35rem;max-width:760px}.category-sop-row label{color:var(--muted);font-size:.88rem}.category-sop-form{margin-top:0;max-width:760px}.question-subheader{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;margin-top:.4rem}.question-subheader h3{font-size:1rem}.question-list-controls{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.language-toggle{display:inline-flex;border:1px solid #d1d5db;border-radius:999px;overflow:hidden}.language-chip{background:#fff;border:none;border-right:1px solid #e5e7eb;padding:.4rem .7rem;cursor:pointer}.language-chip:last-child{border-right:none}.language-chip.active{background:#fee2e2;color:var(--brand-ink);font-weight:600}.question-form-header{display:flex;justify-content:space-between;align-items:center;gap:.75rem}.options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.form-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.4rem}.question-item{border:1px solid var(--edge);border-radius:.8rem;padding:.65rem;display:grid;gap:.6rem}.question-item p{color:#374151;margin-top:.3rem}.question-answer-meta{margin-top:.45rem;display:grid;gap:.25rem;color:#4b5563;font-size:.9rem}.question-item-actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.raw-header{display:flex;justify-content:space-between;align-items:center;gap:.8rem;margin-bottom:.8rem}.settings-card{max-width:860px;display:grid;gap:.8rem}.settings-header{display:grid;gap:.3rem}.settings-form{display:grid;gap:.6rem}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:.9rem;border:1px solid var(--edge);border-radius:.8rem;padding:.75rem .8rem}.toggle-copy{display:grid;gap:.25rem}.toggle-copy small{font-size:.88rem}.toggle-control{width:auto;height:1.1rem;margin:0;accent-color:#dc2626;flex-shrink:0}.table-wrapper{overflow:auto;border:1px solid var(--edge);border-radius:.8rem}table{width:100%;border-collapse:collapse;min-width:860px}th,td{border-bottom:1px solid var(--edge);padding:.55rem;text-align:left;vertical-align:top}th{background:#f9fafb;position:sticky;top:0;z-index:1}@media(max-width:1080px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split-grid,.management-layout{grid-template-columns:1fr}.sidebar{order:2}}@media(max-width:680px){.app-shell{padding:.65rem}.top-bar,.brand{flex-direction:column;align-items:flex-start}.brand img{width:124px}.stats-grid,.inline-form{grid-template-columns:1fr}.question-list-header{flex-direction:column;align-items:stretch}.question-subheader{flex-direction:column;align-items:flex-start;gap:.2rem}.question-form-header{flex-direction:column;align-items:stretch}.question-list-controls{justify-content:space-between}.options-grid{grid-template-columns:1fr}.question-item-actions{flex-direction:column;align-items:stretch}.raw-header,.toggle-row{flex-direction:column;align-items:flex-start}}
