:root{--bg:#f5f6f8;--ink:#192c39;--muted:#6d7d89;--line:#e1e7ec;--nav:#132c37;--teal:#157c73;--teal-light:#e6f4ee;--amber:#9b670e;--amber-bg:#fff4df;--red:#b7504d;--red-bg:#fceeed;--blue:#426cbc;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Tahoma,"DejaVu Sans",Arial,sans-serif;font-size:13px;line-height:1.9}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:9px 15px;transition:background .15s}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #61bbae;outline-offset:3px}.primary{background:var(--teal);color:white}.primary:hover{background:#10655e}.ghost{background:#f0f3f5;color:#375462;border:1px solid var(--line)}.danger{background:var(--red-bg);color:var(--red);border:1px solid #efc9c5}.text-button{color:var(--teal);background:transparent;padding:5px 8px}.muted,small{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:27px;line-height:1.65;margin-bottom:5px}h2{font-size:19px}h3{font-size:14px}.eyebrow{display:block;color:var(--teal);font-size:11px;letter-spacing:.03em;margin-bottom:10px}.brand{display:flex;gap:12px;align-items:center;font-size:24px;font-weight:bold}.brand small{font-size:10px;display:block;color:#98b6be;font-weight:normal}.brandmark{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;color:#fff;background:#218f82;font-size:28px}.login-page{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh}.login-story{background:var(--nav);color:#fff;padding:8vw;position:relative;display:flex;flex-direction:column;justify-content:center}.login-story .brand{margin-bottom:70px}.login-story .eyebrow{color:#88cbbd}.login-story h1{font-size:48px;line-height:1.6;letter-spacing:-2px}.login-story p{color:#b4c7ce;max-width:430px;font-size:15px;line-height:2.2}.story-note{margin-top:40px;font-size:11px;color:#8cadb5}.login-card{align-self:center;width:75%;max-width:390px;margin:50px auto;background:#fff;border:1px solid var(--line);padding:35px;border-radius:16px;box-shadow:0 20px 60px #162d3810}.login-card button{width:100%;display:flex;justify-content:space-between;margin-top:22px}.login-card label{margin-top:16px}.shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.shell[hidden],.login-page[hidden]{display:none}aside{background:var(--nav);color:#d2dfe3;padding:30px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}aside .brand{padding:0 9px 38px}.nav-label{font-size:10px;color:#7c9ba6;margin:6px 14px 13px}nav{display:grid;gap:6px}nav button{background:transparent;color:#b0c5cd;text-align:right;display:flex;gap:12px;align-items:center;font-size:12px;padding:11px 14px;border-radius:8px}nav button.active{background:#244852;color:#fff}nav button:hover{background:#20424e}nav .nav-icon{width:21px;font-size:18px;text-align:center;color:#8db6bd}.aside-bottom{border-top:1px solid #35505b;margin-top:auto;padding:24px 8px 0;font-size:11px}.aside-bottom p{color:#85a0ab;font-size:10px;margin:7px 12px}.dot{display:inline-block;background:#51b393;width:6px;height:6px;border-radius:50%;margin-left:6px}.workspace{min-width:0}header{height:76px;background:#fff;border-bottom:1px solid var(--line);padding:0 35px;display:flex;align-items:center;justify-content:space-between;font-size:11px}.breadcrumb{color:var(--muted)}.breadcrumb span{margin:0 13px;color:#bcc7cf}.breadcrumb b{color:var(--ink);font-weight:normal}.header-actions{display:flex;gap:18px;align-items:center}.user{border-right:1px solid var(--line);padding-right:18px}main{padding:32px 35px 55px;min-height:calc(100vh - 128px)}.page-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.page-title p{color:var(--muted);font-size:12px;margin:0}.page-title .eyebrow{margin-bottom:4px}.notice{padding:11px 16px;background:#eef4f5;border:1px solid #d9e6e7;border-radius:9px;color:#506f7a;font-size:11px;margin:20px 0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px 20px;position:relative;overflow:hidden}.stat-label{font-size:11px;color:var(--muted)}.stat strong{display:block;font-size:31px;line-height:1.7;font-weight:normal}.stat small{font-size:10px}.stat-symbol{position:absolute;left:18px;top:20px;background:var(--teal-light);color:var(--teal);border-radius:10px;width:34px;height:34px;display:grid;place-items:center;font-size:17px}.stat.warn .stat-symbol{background:var(--amber-bg);color:var(--amber)}.stat.red .stat-symbol{background:var(--red-bg);color:var(--red)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:20px}.panel-body{padding:22px}.panel-heading{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-heading h2,.panel-heading h3{margin:0;font-size:14px}.panel-heading small{font-size:10px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:right;font-size:11px}thead{color:var(--muted);background:#fafbfc;font-size:10px;font-weight:normal}th{font-weight:normal}th,td{padding:14px 20px;border-bottom:1px solid #edf0f3}tr:last-child td{border-bottom:0}.item-title{display:block;font-weight:bold;max-width:280px;overflow:hidden;text-overflow:ellipsis;color:#2f4857}.item-id{font-size:10px;color:#8a9aa5;direction:ltr;display:block;text-align:right}.badge{font-size:10px;padding:4px 9px;border-radius:5px;display:inline-block;white-space:nowrap;background:#edf1f4;color:#5b7282}.badge.ready,.badge.equal,.badge.suggested{background:var(--teal-light);color:#247766}.badge.mismatch,.badge.rule_conflict,.badge.forced{background:var(--red-bg);color:var(--red)}.badge.insufficient,.badge.interactive,.badge.stale{background:var(--amber-bg);color:var(--amber)}.rate{font-size:17px;direction:ltr;display:inline-block}.list-row{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #edf0f3;align-items:center}.list-row:last-child{border:0}.list-row p{margin:0;font-size:11px}.list-row small{font-size:10px}.mini-track{height:6px;background:#edf2f4;border-radius:10px;display:flex;overflow:hidden;margin:20px 0}.mini-track span{height:100%;flex:1;background:var(--teal)}.pipeline{display:flex;justify-content:space-between;gap:10px;margin:24px 0 8px}.pipeline span{background:#f4f7f8;padding:9px 14px;border-radius:7px;font-size:10px}.pipeline .active{background:var(--teal-light);color:var(--teal)}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.toolbar input{flex:1;min-width:200px}.toolbar select{min-width:140px}label{display:block;font-size:11px;color:#49606c}input,select,textarea{display:block;width:100%;border:1px solid #d8e1e6;background:#fff;border-radius:7px;padding:10px 12px;color:var(--ink);outline:none}textarea{min-height:100px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--teal)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.full{grid-column:1/-1}.form-actions{display:flex;gap:10px;margin-top:20px;align-items:center;flex-wrap:wrap}.error{color:var(--red);font-size:11px;margin:12px 0 0}.empty{text-align:center;padding:40px 20px;color:var(--muted)}.rules-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.rule-card{border:1px solid var(--line);border-radius:10px;padding:20px;background:#fff}.rule-card p{font-size:12px;color:#637985;white-space:pre-wrap}.rule-meta{display:flex;gap:18px;font-size:10px;color:var(--muted);flex-wrap:wrap}.rule-card h3{margin:12px 0}.code{direction:ltr;text-align:left;font-family:monospace;font-size:12px;white-space:pre-wrap;background:#f4f6f8;padding:16px;border-radius:8px;overflow-wrap:anywhere}.pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}.warning-box{background:var(--amber-bg);border:1px solid #ecd9b6;color:#896222;border-radius:9px;padding:16px;margin-top:16px;font-size:12px}.warning-box[hidden]{display:none}.success{color:var(--teal)}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:15px 35px;font-size:10px;color:#8a9aa5}dialog{border:1px solid var(--line);border-radius:15px;padding:0;width:min(900px,94vw);max-height:90vh;color:var(--ink)}dialog::backdrop{background:#0c2638a6;backdrop-filter:blur(2px)}.dialog-head{display:flex;justify-content:space-between;padding:22px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.dialog-head h2{margin:0}.dialog-body{padding:24px}.decision-values{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.decision-values>div{background:#f5f8f9;border-radius:8px;padding:15px}.decision-values small{display:block;font-size:10px}.decision-values strong{font-size:24px;font-weight:normal}.evidence{border-right:3px solid #67ac9d;background:#f0f7f5;padding:15px;margin:10px 0;font-size:12px}.evidence p{margin:5px 0}.actions-strip{display:flex;gap:9px;flex-wrap:wrap;padding-top:15px}.tabs-mini{display:flex;gap:8px;margin:20px 0}.tabs-mini button{font-size:11px}.timeline{padding:5px 18px;border-right:2px solid var(--line);margin:15px 4px;font-size:11px}.timeline p{margin:0}.toast{position:fixed;bottom:24px;left:24px;max-width:min(500px,90vw);background:var(--nav);color:white;padding:15px 23px;border-radius:10px;box-shadow:0 8px 35px #19374533;z-index:10;font-size:12px}.check{width:auto;display:inline-block;accent-color:var(--teal)}.batch-results{margin-top:20px}.pill-row{display:flex;gap:8px;flex-wrap:wrap}.subtle{background:#fafcfc;border:1px dashed #cddce1;border-radius:10px;padding:22px;color:var(--muted);font-size:12px}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.info-grid div{padding:18px;background:#f6f8fa;border-radius:9px}.info-grid b{display:block;font-size:12px}.info-grid small{font-size:10px}@media(max-width:1150px){.shell{grid-template-columns:195px minmax(0,1fr)}main{padding:25px 22px}.stats{gap:10px}.stat{padding:15px}.stat-symbol{display:none}.dashboard-grid{grid-template-columns:1fr}.rules-grid{grid-template-columns:1fr}}@media(max-width:760px){.shell{display:block}aside{position:relative;height:auto;padding:18px}aside .brand{padding:0 0 15px}.nav-label,.aside-bottom{display:none}nav{display:flex;overflow:auto;gap:5px}nav button{white-space:nowrap;padding:7px 10px}nav .nav-icon{display:none}header{height:60px;padding:0 18px}.header-actions{gap:8px}#date,.breadcrumb{display:none}main{padding:22px 15px}.page-title{align-items:flex-start}.page-title h1{font-size:22px}.stats{grid-template-columns:1fr 1fr}.pair,.form-grid,.rules-grid,.info-grid{grid-template-columns:1fr}.decision-values{grid-template-columns:1fr 1fr}.full{grid-column:auto}.login-page{display:block}.login-story{padding:30px}.login-story .brand{margin-bottom:25px}.login-story h1{font-size:30px}.login-story p,.story-note{display:none}.login-card{width:90%;margin:25px auto}.pipeline{flex-wrap:wrap}footer{gap:15px;padding:15px}.header-actions .user{border:0;padding:0}}

/* Tasmim 0.2 — Persian workspace design system */
@font-face{font-family:Vazirmatn;src:url('/fonts/Vazirmatn-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Vazirmatn;src:url('/fonts/Vazirmatn-Bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
:root{--bg:#f6f8fc;--ink:#21354d;--muted:#78859a;--line:#e8edf4;--nav:#fff;--teal:#0a66c2;--teal-light:#eaf3ff;--blue:#0a66c2;--turquoise:#169eaa;--burgundy:#8b2546;--saffron:#cd563c;--gold:#b58a35;--cream:#fcf7ed;--red:#9e3454;--red-bg:#faedf1;--amber:#9a7327;--amber-bg:#fbf4e4}
body{font-family:Vazirmatn,Tahoma,sans-serif;font-size:14px;line-height:1.9;letter-spacing:0}button{font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;border-radius:10px}button .icon{width:18px;height:18px;flex-shrink:0}.icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}.primary{background:#0a66c2;box-shadow:0 4px 12px #0a66c21a}.primary:hover{background:#085aa9}.ghost{background:#fff;border-color:#dfe7ef}.ghost:hover{background:#f2f6fb}.text-button{color:#0a66c2;font-weight:600;font-size:12px;min-height:32px}.danger{background:#8b2546;color:#fff;border-color:#8b2546}.danger:hover{background:#711c38}.red-text{color:var(--burgundy)}.muted{color:#758196}h1{font-size:25px;font-weight:700;letter-spacing:-.5px}h2{font-size:20px}h3{font-size:15px}.eyebrow{font-size:11px;font-weight:600;letter-spacing:1px;color:#0a66c2}.shell{grid-template-columns:250px minmax(0,1fr)}.shell>aside{border-left:1px solid var(--line);padding:28px 18px 16px;overflow-y:auto;color:var(--ink);background:#fff}.brand{color:#173d66;font-size:27px}.brandmark{background:linear-gradient(145deg,#0a66c2,#20afba);box-shadow:0 5px 14px #157ca22b;border-radius:13px;width:45px;height:45px}.brand small{color:#9ba6b5;font-size:10px}.shell>aside .brand{padding:0 15px 28px}.nav-label{font-size:11px;color:#a1acb8;margin:10px 15px 10px}nav{gap:4px}nav button{color:#6f7b8e;padding:11px 14px;border-radius:9px;font-size:12px;justify-content:flex-start;font-weight:400;gap:12px;min-height:43px}nav button .icon{color:#899aaf;width:19px;height:19px}nav button.active{background:#eaf3ff;color:#0a66c2;font-weight:700}nav button.active .icon{color:#0a66c2}nav button:hover{background:#f3f7fc;color:#0a66c2}.nav-new{margin-right:auto;background:#ddf3f2;color:#15939a;padding:0 6px;border-radius:5px;font-size:9px;font-weight:700}.admin-label{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:18px;margin-top:18px;font-size:10px}.admin-label span{font-size:8px}.aside-bottom{padding:20px 10px 0;margin-top:25px;border-color:var(--line);color:#5e7186}.aside-bottom p{color:#9aabba;font-size:10px}.env-pill{font-size:11px;background:#f5f8fb;padding:7px 10px;border-radius:7px}.dot{background:#22a7a8}header{height:82px;padding:0 36px;border-bottom-color:var(--line)}.breadcrumb{font-size:12px}.header-actions{gap:20px}.user{display:flex;align-items:center;gap:9px;border:0;padding:0;font-size:12px;line-height:1.5}.user small{display:block;font-size:10px;color:#99a5b4}.avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:12px;background:#e9f2fe;color:#0a66c2;font-weight:700;flex-shrink:0;font-size:15px}.avatar.teal{color:#147d85;background:#e5f5f4}#logout{font-size:11px;padding:5px 12px;min-height:32px;color:#7e8b9b}#date{color:#8493a4;font-size:11px}main{padding:28px 35px 44px}.page-title{margin-bottom:25px}.page-title p{font-size:12px}.page-title .eyebrow{margin-bottom:7px}.welcome{border:1px solid #dfeaf6;background:linear-gradient(115deg,#eef6fd 0%,#f2f7fc 45%,#faf8f1 100%);border-radius:17px;padding:30px 30px;display:flex;justify-content:space-between;gap:20px;margin-bottom:24px;overflow:hidden;min-height:223px}.welcome>div:first-child{max-width:70%;z-index:1}.welcome .eyebrow{font-size:10px}.welcome h1{font-size:25px;line-height:1.8;margin:8px 0}.welcome p{font-size:12px;color:#7b8da2;margin-bottom:19px}.welcome-actions{display:flex;gap:10px}.welcome-actions button{font-size:12px;padding:10px 17px}.welcome-art{width:240px;position:relative;flex-shrink:0}.orbit{position:absolute;border:1px solid #bdd8e666;border-radius:50%;width:175px;height:175px;left:14px;top:0}.orbit.two{width:235px;height:235px;left:-16px;top:-30px}.art-card{position:absolute;background:#fff;border:1px solid #e1e9f1;border-radius:14px;box-shadow:0 12px 28px #184a7710;display:flex;flex-direction:column;align-items:flex-start;padding:16px}.art-back{width:134px;height:137px;top:-4px;left:58px;transform:rotate(9deg);color:#b29553;font-size:10px}.art-back .icon{margin-bottom:10px}.art-back i{display:block;width:70px;height:5px;background:#f1eee5;border-radius:5px;margin-top:8px}.art-front{width:166px;left:0;top:64px;transform:rotate(-6deg);font-size:12px;color:#0a66c2}.art-front .icon{color:#19a3aa;margin-bottom:5px}.art-front small{font-size:8px;color:#9da9b8}.art-check{position:absolute;left:13px;top:17px;background:#e2f4ed;color:#21a384;border-radius:50%;width:23px;height:23px;text-align:center}.art-spark{position:absolute;left:-6px;top:20px;color:#d9a64a;font-size:30px}.stats{gap:17px}.stat{border:1px solid var(--line);border-radius:14px;box-shadow:0 3px 10px #25415c03;padding:19px 22px}.stat strong{font-family:Vazirmatn,sans-serif;font-size:32px;font-weight:700;margin-top:8px}.stat-label{font-size:12px;color:#6e7d91}.stat small{font-size:10px;color:#98a3b2}.stat-symbol{background:#eaf3ff;left:20px;top:20px;width:39px;height:39px;border-radius:11px;color:#0a66c2}.stat-symbol .icon{width:20px;height:20px}.stat.gold .stat-symbol,.quick-icon.gold{background:#fcf2dd;color:#b28b37}.stat.burgundy .stat-symbol{background:#faedf1;color:#953356}.stat.turquoise .stat-symbol,.quick-icon.turquoise{background:#e4f6f4;color:#159da1}.quick-icon.blue{background:#eaf3ff;color:#0a66c2}.dashboard-grid{grid-template-columns:minmax(0,1.85fr) minmax(265px,1fr);gap:22px}.panel{border-radius:14px;border-color:var(--line);box-shadow:0 2px 5px #1d355002}.panel-heading{padding:18px 22px;min-height:68px}.panel-heading h2,.panel-heading h3{font-size:14px;font-weight:700}.panel-heading small{font-size:10px;color:#99a5b4}.panel-body{padding:22px}.table-wrap th{background:#fafbfd;color:#8896a8;font-size:10px;padding:12px 19px}td{padding:16px 19px;font-size:12px;color:#60728a}.item-title{font-size:12px;font-weight:600;max-width:260px}.item-id{font-size:10px;color:#a3adbb;margin-top:2px}.rate{font-size:17px;font-weight:600;color:#304760}.badge{font-size:10px;padding:3px 8px;border-radius:5px;font-weight:400}.badge.ready{background:#eaf3ff;color:#0a66c2}.badge.equal,.badge.suggested{background:#e3f5ef;color:#24876d}.badge.mismatch,.badge.forced{background:#faedf1;color:#933756}.badge.rule_conflict{background:#fbeddf;color:#af6532}.badge.insufficient,.badge.stale,.badge.interactive{background:#fbf4e4;color:#9b7b35}.badge.admin-role{background:#eaf3ff;color:#0a66c2}.badge.expert-role{background:#e3f5f2;color:#158c90}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.quick-card{display:grid;grid-template-columns:42px 1fr 20px;grid-template-rows:auto auto;text-align:right;background:#fff;border:1px solid var(--line);border-radius:13px;gap:1px 12px;padding:18px;color:#37536d;transition:transform .15s}.quick-card:hover{transform:translateY(-2px);border-color:#cbdff1}.quick-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:11px;background:#eaf3ff;color:#0a66c2}.quick-card>.quick-icon{grid-row:1/3}.quick-card>b{font-size:12px}.quick-card>small{font-size:9px;font-weight:400;grid-column:2}.quick-card>.icon{grid-column:3;grid-row:1/3;color:#9aadbe;width:16px}.activity{display:flex;gap:12px;padding:0 0 18px;margin-bottom:15px;border-bottom:1px solid #f0f3f7;line-height:1.7}.activity:last-child{border-bottom:0;margin:0;padding-bottom:0}.activity b{font-size:12px;font-weight:600}.activity p{margin:5px 0}.activity small{font-size:9px;color:#a1adbb}.activity-dot{width:9px;height:9px;background:#17a7aa;border-radius:50%;margin-top:7px;box-shadow:0 0 0 5px #eaf7f6}.activity-dot.forced{background:#9f3357;box-shadow:0 0 0 5px #faedf1}.activity-dot.interactive{background:#c69c42;box-shadow:0 0 0 5px #fcf6e8}.live-dot{width:7px;height:7px;background:#20aaa0;border-radius:50%}.insight-card{background:#fcf7ed;border:1px solid #f2e8d3;border-radius:13px;padding:23px;margin-bottom:20px}.insight-card .eyebrow{color:#b09052;font-size:9px}.insight-card h3{font-size:15px;color:#856b3b;margin:9px 0}.insight-card p{color:#a18b66;font-size:12px;line-height:2}.insight-card .badge{background:#fffaf1;color:#9a8152}.friendly-empty{text-align:center;padding:20px 0;color:#a5b2bf}.friendly-empty>.icon{width:34px;height:34px;color:#b7cde0}.friendly-empty h3{font-size:13px;margin:15px 0 5px;color:#6a8197}.friendly-empty p{font-size:11px}.notice{font-size:11px;background:#edf6fc;border-color:#daeaf6;color:#608097;border-radius:10px;padding:13px 17px;line-height:2}.toolbar label{flex:1;margin:0}.toolbar input{padding:11px 14px}.toolbar select{width:auto}input,select,textarea{font-size:13px;border-radius:9px;border-color:#dce4ee;padding:11px 13px;font-weight:400;font-family:Vazirmatn,sans-serif;line-height:1.8}input::placeholder,textarea::placeholder{color:#a4b1bf;font-size:11px}label{font-size:12px;font-weight:400;color:#65778e}label>input,label>textarea,label>select{margin-top:6px}input[readonly]{background:#f5f7fa;color:#8f9dad}.form-grid{gap:18px}.check-label{display:flex;gap:9px;align-items:center}.check-label .check{margin:0}.check{accent-color:#0a66c2}.form-actions{margin-top:20px}.person{display:flex;gap:12px;align-items:center}.person b{display:block;color:#425973;font-size:12px}.person small{display:block;font-size:10px}.ltr{direction:ltr;text-align:right}.role-card{border:1px solid var(--line);padding:24px;background:#fff;border-radius:13px}.role-card h3{margin:13px 0 5px}.role-card p{font-size:12px;color:#8593a5;margin:0}.blue-insight{background:#eff6fe;border-color:#deebfa}.blue-insight h3{color:#39699b}.blue-insight p{color:#7390ad}.model-layout{grid-template-columns:minmax(0,1.75fr) minmax(250px,1fr)}.checklist{padding-right:22px;font-size:12px;color:#7c8ea2;line-height:2.4}.prompt-card textarea{background:#fafcfe;line-height:2.1;resize:vertical;min-height:330px}.prompt-card .panel-heading{align-items:center}.prompt-card .eyebrow{font-size:9px;margin:0}.prompt-card .muted{font-size:11px}.save-bar{background:white;border:1px solid var(--line);border-radius:12px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between}.save-bar b{display:block;font-size:12px}.save-bar small{font-size:10px}.prompt-text{font-family:inherit;font-size:12px;white-space:pre-wrap;background:#f4f8fc;padding:15px;border-radius:9px;line-height:2.2}.knowledge-summary{display:flex;align-items:center;gap:18px;padding:20px 25px;background:linear-gradient(110deg,#eaf5fc,#f3faf8);border:1px solid #deedf1;border-radius:13px;margin-bottom:24px}.knowledge-summary small{display:block;font-size:11px}.knowledge-summary b{font-size:13px}.knowledge-number{font-size:32px;font-weight:700;color:#198b9e}.knowledge-summary>.badge{margin-right:auto;background:white}.rules-grid{grid-template-columns:repeat(2,1fr);margin-bottom:25px}.rule-card{border-radius:13px;padding:22px}.rule-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.rule-card h3{font-size:15px;margin:18px 0 10px}.rule-card .rule-excerpt{font-size:12px;line-height:2;min-height:48px;color:#8795a7}.rule-meta{font-size:11px;justify-content:space-between;color:#6c879b;border-top:1px solid #eef2f7;padding-top:14px}.rule-meta>span{color:#0a66c2;font-weight:600}.rule-source{font-size:10px;color:#a3aebc;margin-top:13px}.rule-footer{display:flex;justify-content:space-between;align-items:center;margin-top:13px;padding-top:12px;border-top:1px solid #edf2f7}.rule-footer>bdi{font-size:9px;color:#a7b2bf}.rule-footer .text-button{font-size:10px;padding:3px 7px}.rule-card.archived{background:#f8f9fb;opacity:.75}.event-tabs{display:flex;gap:7px;overflow-x:auto;white-space:nowrap;padding:0 0 14px;margin-bottom:14px;scrollbar-width:thin}.event-tabs button{padding:8px 13px;color:#8594a6;background:#fff;border:1px solid #e4ebf3;font-size:11px;font-weight:400;min-height:35px}.event-tabs button.active{background:#0a66c2;border-color:#0a66c2;color:white}.pagination{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;color:#8b9aad;font-size:11px;border-top:1px solid var(--line)}.pagination>div{display:flex;gap:8px}.pagination button{font-size:11px;min-height:32px}.event-code{display:block;direction:ltr;text-align:right;font-size:9px;margin-top:4px;color:#a4b0c0}.badge.security{color:#9a4563;background:#fbedf2}.badge.users{color:#0a66c2;background:#ecf4ff}.badge.chat{color:#148c98;background:#e6f6f5}.badge.prompts,.badge.model{color:#796099;background:#f2eef9}.advisor-shell{display:grid;grid-template-columns:215px minmax(0,1fr);border:1px solid #e0e8f1;background:white;border-radius:16px;overflow:hidden;min-height:580px}.chat-sidebar{position:static;height:auto;background:#fafcfe;color:var(--ink);padding:20px 14px;border-left:1px solid #e6edf5}.chat-sidebar h3{font-size:12px;display:flex;justify-content:space-between;padding:0 8px 15px;margin:0;color:#8192a6}.chat-sidebar h3 span{font-size:10px;color:#0a66c2;background:#eaf3ff;padding:0 6px;border-radius:5px}.chat-link{display:flex;text-align:right;background:transparent;border:1px solid transparent;padding:12px 10px;color:#7d8fa4;justify-content:flex-start;width:100%;margin-bottom:5px;font-weight:400}.chat-link>span{min-width:0}.chat-link b{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px;font-weight:600}.chat-link small{font-size:9px;display:block;color:#a2b1c2;margin-top:4px}.chat-link.active{background:#eaf4fc;border-color:#d9eaf9;color:#0a66c2}.chat-link .icon{width:16px}.sidebar-note{margin-top:auto;padding:22px 7px 0;color:#a3b0bf;font-size:10px;line-height:2}.chat-sidebar>.muted{font-size:11px;padding:20px 8px}.conversation{display:flex;flex-direction:column;min-width:0;max-height:calc(100vh - 205px);min-height:580px}.advisor-empty{margin:auto;max-width:500px;text-align:center;padding:40px 24px}.advisor-emblem{background:linear-gradient(145deg,#0a66c2,#17b0b3);width:70px;height:70px;border-radius:22px;display:grid;place-items:center;margin:0 auto 25px;box-shadow:0 15px 35px #168cad24;color:white;transform:rotate(-5deg)}.advisor-emblem .icon{width:31px;height:31px}.advisor-empty .eyebrow{font-size:10px;color:#1c9eaa;letter-spacing:0}.advisor-empty h2{font-size:24px;color:#2e5879;margin-bottom:12px}.advisor-empty p{font-size:12px;line-height:2.2;color:#8d9cb0}.advisor-empty .primary{margin-top:12px;font-size:12px}.advisor-steps{display:flex;justify-content:center;gap:16px;font-size:9px;color:#a2b1c2;border-top:1px solid #edf2f7;margin-top:30px;padding-top:23px}.conversation-head{padding:18px 22px;display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #eaf0f6;align-items:center}.conversation-head h3{font-size:13px;margin:0}.conversation-head small{font-size:10px;color:#8fa1b4}.conversation-head button{font-size:10px;padding:6px 10px;min-height:32px}.messages{flex:1;overflow-y:auto;min-height:250px;padding:22px;background:#fff;scroll-behavior:smooth}.context-message{font-size:11px;color:#8b9eae;max-width:90%;border:1px dashed #e0e8ef;border-radius:10px;padding:12px 15px;margin:0 auto 25px;text-align:center;white-space:pre-wrap}.chat-message{display:flex;gap:11px;margin-bottom:23px;font-size:12px;align-items:flex-start}.chat-message>div{max-width:90%;min-width:0}.chat-message.human>div{background:#eaf3ff;border-radius:13px 0 13px 13px;padding:12px 17px;min-width:100px}.chat-message.human small{font-size:9px;color:#7395b7}.chat-message.human p{color:#386796;margin:4px 0;white-space:pre-wrap}.chat-message .avatar{width:29px;height:29px;font-size:12px;border-radius:9px}.assistant-icon{display:grid;place-items:center;background:linear-gradient(135deg,#159dae,#0a66c2);color:white;border-radius:9px;width:29px;height:29px;flex-shrink:0}.bubble{border:1px solid #e4edf5;background:#fafcfe;border-radius:0 13px 13px 13px;padding:18px;width:100%}.answer-header{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:13px}.answer-header b{font-size:11px;color:#46738d}.bubble>p{font-size:12px;line-height:2.2;white-space:pre-wrap;color:#5e7a91}.answer-rate{background:#eaf6f5;border:1px solid #d9eeea;border-radius:9px;display:flex;align-items:center;justify-content:space-between;padding:8px 16px;margin:15px 0}.answer-rate small{font-size:11px;color:#4a938e}.answer-rate strong{font-size:28px;color:#188f92;line-height:1.8}.answer-meta{font-size:9px;color:#9aafbf;margin-top:17px}.answer-sources{font-size:11px;border-top:1px solid #e3edf3;margin-top:16px;padding-top:12px;color:#4d83a6}.answer-sources summary{cursor:pointer;font-size:10px}.answer-sources .icon{width:14px;height:14px;margin-left:5px}.answer-sources article{background:white;border:1px solid #e3edf3;border-radius:8px;padding:12px;margin-top:10px}.answer-sources p{white-space:pre-wrap;font-size:11px;color:#7490a4;margin:10px 0;line-height:2.1}.answer-sources .badge{font-size:8px;margin-right:5px}.answer-sources small{font-size:9px}.missing-info{background:#fcf7eb;border-radius:9px;padding:12px 15px;font-size:11px;color:#9b813e}.missing-info ul{margin:5px 0;padding-right:17px}.composer{border-top:1px solid #e6edf5;padding:16px 20px;background:#fff}.composer textarea{border-color:#dde8f1;background:#fafcfe;min-height:70px;max-height:160px;resize:vertical;font-size:12px}.composer>div{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.composer small{font-size:9px;color:#a1b1c0}.composer button{font-size:11px;padding:8px 13px;min-height:34px}.chat-hint{font-size:12px;text-align:center;color:#8fa7b9;padding:30px}.upload-box{position:relative;border:1px dashed #bcd6e8;background:#f5fafc;border-radius:10px;padding:18px;text-align:center;color:#598ca6;cursor:pointer;display:flex;flex-direction:column;gap:5px;align-items:center;font-size:12px}.upload-box small{font-size:10px;color:#9bb2c3}.upload-box input{font-size:11px;max-width:350px;padding:5px;background:transparent;border:0;text-align:center}.uploaded-file{border:1px solid #e1ecf3;border-radius:9px;padding:10px 14px;background:#f9fcfd;margin-bottom:8px;font-size:11px;color:#5d839c}.uploaded-file summary{cursor:pointer}.uploaded-file summary .icon{width:15px}.uploaded-file p{max-height:130px;overflow:auto;white-space:pre-wrap;background:white;padding:10px;margin-top:10px;color:#88a0b0}.version-entry{border:1px solid #e1eaf2;border-radius:9px;padding:15px;margin:12px 0;font-size:12px}.version-entry summary{cursor:pointer;color:#517b9c}.document-text{white-space:pre-wrap;font-size:13px;line-height:2.2;color:#59758c;background:#f8fbfd;padding:20px;border:1px solid #e7eff5;border-radius:10px;overflow-wrap:anywhere;margin-bottom:18px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:0;border-radius:16px;width:min(900px,94vw);box-shadow:0 35px 100px #12345733}dialog::backdrop{background:#1b375874;backdrop-filter:blur(4px)}.dialog-head{padding:23px 26px}.dialog-head .eyebrow{font-size:9px;margin:0 0 5px}.dialog-head h2{font-size:19px}.dialog-body{padding:25px}.icon-button{width:34px;height:34px;min-height:34px;padding:0}.decision-values>div{background:#f1f6fc;border:1px solid #e0eaf5}.decision-values>div:nth-child(2){background:#eaf7f4;border-color:#d9eee7}.decision-values strong{font-weight:700;color:#0a66c2}.evidence{border-right-color:#20a4aa;background:#f0f9f7;border-radius:8px;font-size:12px}.actions-strip{gap:8px}.actions-strip button{font-size:11px}.timeline{border-right-color:#dbe8f3}.toast{background:#183d62;font-size:12px;border-radius:12px;max-width:540px}.login-page{background:#f7f9fc}.login-story{background:linear-gradient(145deg,#0a66c2,#14799e 65%,#189eab);padding:7vw}.login-story .brand{color:white}.login-story .brandmark{background:#ffffff24;box-shadow:none}.login-story .brand small{color:#c0e5f4}.login-story .eyebrow{color:#b8e6e9;font-size:10px}.login-story h1{font-family:Vazirmatn,sans-serif;font-size:46px;font-weight:700;line-height:1.8;letter-spacing:-1px}.login-story p{color:#d4eaf5;font-size:14px}.story-note{color:#bee4ed}.login-card{padding:35px;border-color:#e3ebf4;border-radius:18px;box-shadow:0 18px 65px #27436909}.login-card h2{font-size:24px;color:#244d73}.login-card .muted{font-size:12px}.login-card label{font-size:12px}.login-card small.muted{font-size:10px}.login-card button{font-size:13px;padding:12px 18px}footer{font-size:10px;color:#a6b1bf;padding:14px 35px;background:#fafcfe}
@media(min-width:1550px){main{max-width:1450px;margin:0 auto}.welcome>div:first-child{max-width:70%}.welcome-art{margin-left:30px}}
@media(max-width:1250px){.shell{grid-template-columns:220px minmax(0,1fr)}main{padding:25px}.welcome h1{font-size:22px}.welcome-art{width:190px}.welcome>div:first-child{max-width:67%}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stat-symbol{display:none}.model-layout{grid-template-columns:1fr}.advisor-shell{grid-template-columns:185px minmax(0,1fr)}.chat-link b{max-width:110px}}
@media(max-width:900px){.welcome-art{display:none}.welcome>div:first-child{max-width:100%}.rules-grid{grid-template-columns:1fr}.pair{grid-template-columns:1fr}.dashboard-grid>div:last-child{display:block}.advisor-shell{grid-template-columns:1fr}.chat-sidebar{border-left:0;border-bottom:1px solid var(--line);display:block;padding:12px;max-height:150px;overflow:auto}.chat-sidebar h3{padding-bottom:7px}.chat-link{display:inline-flex;width:auto;max-width:200px;margin:0 4px 0 0;padding:8px}.chat-link b{max-width:150px}.sidebar-note{display:none}.conversation{min-height:520px;max-height:700px}}
@media(max-width:760px){.shell{display:block}.shell>aside{padding:14px 16px 10px;height:auto;position:static;overflow:visible}.shell>aside .brand{padding:0 0 12px;font-size:23px}.shell>aside .brandmark{width:35px;height:35px;font-size:24px}.shell>aside .brand small{font-size:8px}nav{display:flex;gap:6px;overflow-x:auto;padding-bottom:7px;scrollbar-width:thin}nav button{white-space:nowrap;padding:7px 10px;font-size:11px;min-height:35px;gap:6px}nav button .icon{width:15px;height:15px}.admin-label,.nav-label,.aside-bottom{display:none}header{height:60px;padding:0 18px}.header-actions{width:100%;justify-content:space-between}#date{display:none}.user{font-size:11px}.user .avatar{width:29px;height:29px;font-size:12px}main{padding:20px 15px}.welcome{padding:22px;min-height:auto;border-radius:13px}.welcome h1{font-size:22px;line-height:1.9}.welcome p{font-size:11px}.welcome-actions{flex-wrap:wrap}.welcome-actions button{font-size:11px}.stats{grid-template-columns:1fr 1fr;gap:11px}.stat{padding:15px 18px}.stat strong{font-size:29px}.stat-label{font-size:11px}.stat small{font-size:9px}.stat-symbol{display:none}.quick-grid{grid-template-columns:1fr}.page-title{align-items:flex-start;gap:10px}.page-title h1{font-size:22px}.page-title p{font-size:11px}.page-title>button{font-size:10px;white-space:nowrap;padding:8px 12px}.page-title .eyebrow{font-size:8px}.panel-heading{padding:16px}.panel-body{padding:18px}.table-wrap th,.table-wrap td{padding:13px 15px}.item-title{font-size:11px}.rule-card{padding:18px}.knowledge-summary{padding:16px;gap:12px}.knowledge-summary small{font-size:9px}.knowledge-summary>.badge{font-size:9px}.form-grid{grid-template-columns:1fr}.model-layout{display:block}.save-bar{gap:15px;padding:15px}.save-bar small{font-size:9px}.save-bar button{font-size:11px;white-space:nowrap}.conversation-head{padding:15px;align-items:flex-start;flex-direction:column}.messages{padding:16px}.composer{padding:12px 15px}.bubble{padding:13px}.chat-message{gap:8px}.chat-message>div{max-width:calc(100% - 36px)}.advisor-empty{padding:30px 20px}.advisor-empty h2{font-size:22px}.advisor-steps{font-size:8px;gap:10px}.advisor-shell{min-height:480px}.login-story{padding:30px}.login-story .brand{margin-bottom:28px}.login-story h1{font-size:31px}.login-card{padding:27px;margin:25px auto}.dialog-body{padding:20px}.dialog-head{padding:20px}.dialog-head h2{font-size:17px}.decision-values strong{font-size:23px}.actions-strip button{font-size:10px}.toast{left:15px;right:15px;bottom:15px;max-width:100%;font-size:11px}footer{padding:14px 18px;font-size:9px;gap:20px}.event-tabs{gap:5px}.event-tabs button{font-size:10px}.pagination{padding:13px;font-size:10px}.prompt-card textarea{min-height:260px}.upload-box{padding:14px}.upload-box input{width:100%}}
/* Readability: secondary labels remain legible against the light surfaces. */
:root{--muted:#64748b}.muted,small,.page-title p,.stat small,.stat-label,.item-id,.rule-card .rule-excerpt,.rule-source,.role-card p,.welcome p,.context-message,.composer small,.conversation-head small,.answer-meta,.sidebar-note,.event-code,.panel-heading small,.save-bar small,.knowledge-summary small{color:#64748b}.table-wrap th{color:#64748b}.chat-message.human small{color:#4f779e}.answer-sources small{color:#64748b}.nav-label{color:#7c8a9d}nav button{font-size:13px}.table-wrap td{font-size:13px}.stat small,.panel-heading small{font-size:11px}.rule-source{font-size:11px}.blue-insight p{color:#57758f}.insight-card p{color:#8a734c}.login-card small.muted{font-size:11px}.user small{color:#64748b}@media(max-width:760px){nav button{font-size:11px}.table-wrap td{font-size:12px}.stat small{font-size:10px}}
