@font-face{font-family:Vazirmatn;src:url('vazirmatn-arabic-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC;}
@font-face{font-family:Vazirmatn;src:url('vazirmatn-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF;}
@font-face{font-family:Vazirmatn;src:url('vazirmatn-arabic-700-normal.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC;}
@font-face{font-family:Vazirmatn;src:url('vazirmatn-latin-700-normal.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF;}
:root{--blue:#245fd1;--navy:#12316a;--ink:#192b47;--muted:#758297;--line:#e3e9f2;--bg:#f3f6fa;--mint:#139a89;--shadow:0 5px 22px #19376605}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:Vazirmatn,Tahoma,Arial,sans-serif;font-size:13px;line-height:1.9}a{color:var(--blue);text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #91b7ff;outline-offset:3px}[hidden]{display:none!important}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:26px;line-height:1.6;letter-spacing:-.7px}h2{font-size:15px}h3{font-size:14px}p{margin:7px 0 13px}small,.small{font-size:11px}.muted{color:var(--muted)}.block{display:block;color:var(--muted);font-size:10px}.eyebrow{font-size:10px;color:var(--blue);font-weight:700;letter-spacing:.3px}.tag{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:7px;background:#eaf1ff;color:#345c99;font-size:10px;white-space:nowrap}.app{display:flex;min-height:100vh}.sidebar{width:230px;background:#f7f9fc;border-left:1px solid var(--line);padding:24px 17px;position:fixed;top:0;bottom:0;right:0;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;color:var(--navy);font-size:26px;font-weight:900;line-height:1.3}.brand small{display:block;font-size:10px;font-weight:400;margin-top:6px;color:var(--muted)}.brand-mark{display:grid;place-items:center;background:var(--blue);width:43px;height:47px;border-radius:13px;color:white;font-size:34px;box-shadow:0 6px 12px #245fd120}.side-label{font-size:10px;color:#8c99ad;margin:48px 14px 12px}.sidebar nav{display:grid;gap:9px}.nav-item{text-align:right;background:transparent;display:flex;align-items:center;gap:13px;width:100%;padding:12px 14px;border-radius:8px;color:#596982;font-size:12px;border-right:3px solid transparent}.nav-item span{font-size:19px;width:21px;line-height:1}.nav-item:hover{background:#edf2fa}.nav-item.active{background:#e5edff;border-right-color:var(--blue);color:var(--navy);font-weight:700}.side-bottom{margin-top:auto;padding-top:30px}.energy-note{background:#edf3fe;border:1px solid #dce7fb;border-radius:11px;padding:14px;color:#466087}.energy-note>span{display:block;font-size:24px;color:#5484dd}.energy-note b,.energy-note small{display:block}.energy-note b{font-size:12px}.energy-note small{font-size:9px;color:#7b91b2;margin-top:4px}.logout{display:block;margin:22px 12px;color:#6a7d98;font-size:11px}.side-copy{font-size:9px;color:#9aa7b8;display:block;text-align:center}.main{margin-right:230px;width:calc(100% - 230px)}.topbar{height:84px;border-bottom:1px solid var(--line);background:white;display:flex;justify-content:space-between;align-items:center;padding:0 34px}.topbar strong{display:block;font-size:14px;margin-top:3px}.user-chip{display:flex;align-items:center;gap:10px}.user-chip b{font-size:11px}.user-chip small{display:block;color:var(--muted);font-size:9px}.avatar{width:35px;height:35px;border-radius:50%;background:#edf2fb;color:#456ca7;display:grid;place-items:center}.workspace{max-width:1600px;padding:26px 32px 14px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.heading p{font-size:11px;margin-top:4px}.wave{font-size:21px;color:#f5b845;margin-right:8px}.filters{display:flex;align-items:flex-end;gap:13px;background:white;border:1px solid var(--line);border-radius:12px;padding:13px 17px;margin-bottom:20px}.filters label{color:var(--muted);font-size:10px;flex:1;max-width:310px}.filters select{width:100%;background:#f8fafd;margin:3px 0 0;font-size:11px;min-height:38px;padding:7px 12px;border:1px solid var(--line);border-radius:7px;color:var(--ink)}.btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;background:var(--blue);color:#fff;padding:10px 17px;border-radius:8px;font-size:11px;line-height:1.9;font-weight:bold;border:1px solid transparent}.btn:hover{filter:brightness(.96)}.btn.secondary{background:#edf3ff;color:var(--blue);border-color:#dce7fc}.btn.ghost{background:white;color:#7586a0;border-color:var(--line)}.btn.light{background:#fff;color:var(--navy);width:100%;margin-top:17px}.btn.full{width:100%;font-size:13px;padding:13px}.print-button{margin-right:auto}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{background:#fff;border:1px solid var(--line);border-radius:11px;padding:16px 18px;box-shadow:var(--shadow);position:relative;overflow:hidden}.stat:before{content:'';position:absolute;right:0;top:19px;height:35px;width:3px;background:var(--blue);border-radius:3px}.stat>div{display:flex;justify-content:space-between;align-items:center;font-size:11px}.stat-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;font-size:19px}.mint{background:#e8f7f3;color:#299885}.blue{background:#edf2ff;color:#4678d7}.violet{background:#f1edfc;color:#9671cb}.amber{background:#fff5df;color:#c99731}.stat>strong{display:block;font-size:25px;color:var(--navy);margin:11px 0 4px;font-weight:700;line-height:1.5}.stat>small{color:#7386a1;font-size:10px;display:flex;justify-content:space-between;gap:8px}.stat>small span{color:#a0abbc;font-size:9px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(265px,1fr);gap:20px;margin-bottom:20px}.panel{padding:23px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.panel-head p{margin:3px 0 0;font-size:10px}.legend{font-size:9px;display:flex;gap:14px;white-space:nowrap}.legend span:first-child{color:#397ce9}.legend span:last-child{color:#8db3f3}.bar-chart{height:228px;display:flex;gap:14px;padding:12px 8px 0;direction:rtl}.bar-group{flex:1;min-width:0;text-align:center}.bars{height:190px;display:flex;align-items:flex-end;justify-content:center;gap:6px;background:repeating-linear-gradient(to top,transparent,transparent 46px,#edf1f7 46px,#edf1f7 47px);border-bottom:1px solid #dbe4f0}.bar{max-width:24px;width:30%;border-radius:5px 5px 0 0;min-height:1px}.bar.production{background:linear-gradient(#5990ef,#2869d8)}.bar.sold{background:#aecafa}.bar-group>small{font-size:9px;color:#8593a9;display:block;margin-top:9px;white-space:nowrap}.market-card{padding:23px;border-radius:12px;background:linear-gradient(140deg,#e9f0ff,#f7faff 65%);border:1px solid #dce6f8;position:relative;overflow:hidden}.market-card .tag{background:#fff9;color:var(--blue)}.market-orbit{position:absolute;left:20px;top:17px;display:grid;place-items:center;width:54px;height:54px;border-radius:50%;border:1px solid #cfdef6;color:#648edd;font-size:33px;background:#edf4ff}.market-card h2{margin-top:30px;font-size:12px;color:#526c94}.market-card>strong{font-size:35px;color:var(--navy);display:block;margin-top:4px;line-height:1.6}.market-card>p{font-size:10px;color:#6b82a6;margin:0}.market-meta{font-size:10px;color:#6c81a0;margin-top:16px;min-height:35px}.bottom-grid{grid-template-columns:1.3fr 1fr}.summary-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf0f6;padding:12px 0;gap:8px;font-size:11px}.summary-row b{font-size:14px;color:var(--navy)}.summary-row small{font-size:9px;color:var(--muted);font-weight:400}.summary-row .teal{color:var(--mint)}.text-btn{background:transparent;color:var(--blue);padding:0;font-size:10px}.mini-icon{background:#edf3ff;color:#638cda;border-radius:8px;width:30px;height:30px;display:grid;place-items:center;font-size:24px}.plant-info{display:grid;grid-template-columns:1fr 1.5fr;gap:10px 16px;font-size:11px;margin:18px 0}.plant-info dt{color:var(--muted)}.plant-info dd{margin:0;text-align:left;overflow-wrap:anywhere}.footer{display:flex;justify-content:space-between;font-size:9px;color:#9aa7b9;padding:10px 0}.notice{background:#edf4ff;border:1px solid #d5e3fa;border-radius:9px;padding:13px 16px;color:#43618d;font-size:12px;margin-bottom:18px}.notice p{margin:4px 0}.notice.error{background:#fff0f0;border-color:#f6d4d4;color:#a34747}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:220px;color:#93a4bd;font-size:21px;padding:25px}.empty h3{color:#6d819e;margin:12px 0 2px}.empty p{font-size:11px;max-width:310px}.empty-cell{text-align:center!important;color:var(--muted);padding:50px!important}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px;text-align:right;white-space:nowrap}th{background:#f6f9fd;color:#7285a0;font-weight:400;padding:14px 12px}td{padding:16px 12px;border-bottom:1px solid #edf1f7}td:last-child{max-width:330px;white-space:normal}tr:last-child td{border-bottom:0}.contract-card{padding:20px;border:1px solid var(--line);border-radius:10px;margin-top:14px}.contract-card .plant-info{max-width:580px}.preline{white-space:pre-line;color:#687d9c;font-size:12px}.auth-layout{min-height:100vh;display:grid;grid-template-columns:44% 56%}.auth-story{background:linear-gradient(140deg,#163d82,#1c54b6);padding:45px 65px;color:white;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.auth-story .brand{color:white}.auth-story .brand small{color:#bbd0f4}.auth-story .brand-mark{background:#ffffff22;box-shadow:none}.auth-story .eyebrow{color:#aecbff}.auth-story h1{font-size:45px;line-height:1.7;margin:28px 0 15px;letter-spacing:-1px}.auth-story em{color:#b8d4ff;font-style:normal}.auth-story p{font-size:13px;line-height:2.4;max-width:340px;color:#c1d3f0}.auth-story>small{color:#9ebbeb;font-size:10px}.auth-main{display:grid;place-items:center;padding:45px;background:#f8fafc}.auth-card{width:100%;max-width:415px}.auth-card h2{font-size:23px;margin-top:20px;letter-spacing:-.6px}.auth-card>p{font-size:12px}.auth-tabs{display:flex;padding:5px;background:#edf1f7;border-radius:10px;margin:27px 0}.auth-tabs button{flex:1;color:#71829c;padding:10px;background:transparent;font-size:12px;border-radius:7px}.auth-tabs .active{background:#fff;color:var(--blue);font-weight:bold;box-shadow:0 2px 8px #1d397b09}.auth-card label{display:block;color:#4f6381;font-size:12px;margin-top:18px}.auth-card input:not([type=checkbox]):not([type=hidden]){display:block;width:100%;height:49px;border:1px solid #dae3ef;border-radius:9px;background:#fff;margin-top:7px;padding:10px 14px;color:var(--ink)}.auth-card input::placeholder{color:#b2bed0}.form-between{display:flex;justify-content:space-between;align-items:center;margin:17px 0 24px;font-size:11px}.form-between .check{margin:0;display:flex;align-items:center;gap:5px;font-size:11px}.auth-footer{margin-top:28px!important;text-align:center;font-size:10px!important;color:#94a2b6}.solar-art{display:grid;grid-template-columns:repeat(3,70px);gap:6px;transform:perspective(450px) rotateX(45deg) rotateZ(-15deg);margin:38px 0 35px 35px;justify-content:center}.solar-art i{height:68px;border:1px solid #8eb6ff66;background:repeating-linear-gradient(90deg,transparent,transparent 21px,#7caaff44 22px),repeating-linear-gradient(0deg,#6a9ded22,#6a9ded22 21px,#7caaff44 22px);border-radius:4px;box-shadow:4px 7px 0 #11366e40}
@media(min-width:1600px){.workspace{padding-top:34px}.bar-chart{height:265px}.bars{height:225px}.stat{padding:20px}.stat>strong{font-size:29px}}
@media(max-width:1150px){.sidebar{width:195px;padding:24px 12px}.main{margin-right:195px;width:calc(100% - 195px)}.workspace{padding:22px}.stat{padding:14px 11px}.stat>strong{font-size:21px}.stat>small span{display:none}.dashboard-grid{grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr)}.panel{padding:18px}.auth-story{padding:35px}.auth-story h1{font-size:36px}}
@media(max-width:850px){.sidebar{position:static;width:100%;padding:15px;border-left:0;border-bottom:1px solid var(--line)}.sidebar .brand{font-size:21px}.sidebar .brand-mark{height:35px;width:34px;font-size:27px}.sidebar nav{display:flex;overflow-x:auto;gap:6px;margin-top:17px;padding-bottom:2px}.nav-item{width:auto;white-space:nowrap;padding:9px 12px;font-size:11px}.nav-item span{font-size:16px}.side-label,.side-bottom{display:none}.app{display:block}.main{margin:0;width:100%}.topbar{height:70px;padding:0 22px}.workspace{padding:20px}.stats{gap:10px}.heading h1{font-size:21px}.auth-layout{grid-template-columns:38% 62%}.auth-story{padding:24px}.auth-story h1{font-size:27px}.auth-story p{font-size:11px}.auth-main{padding:30px}.solar-art{grid-template-columns:repeat(3,45px)}.solar-art i{height:45px}}
@media(max-width:600px){.workspace{padding:16px 12px}.topbar{padding:0 15px}.heading{align-items:flex-start}.heading>.tag{display:none}.heading h1{font-size:19px}.heading p{font-size:10px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat>strong{font-size:22px}.stat>div{font-size:10px}.stat-icon{width:25px;height:25px;font-size:16px}.filters{flex-wrap:wrap;padding:12px;gap:9px}.filters label{min-width:42%;max-width:none}.filters .btn{flex:1;padding:8px}.dashboard-grid,.bottom-grid{grid-template-columns:1fr}.market-card{padding:20px}.market-card h2{margin-top:19px}.market-card>strong{font-size:29px}.market-card .btn{max-width:260px}.panel{padding:16px}.panel-head{gap:8px}.panel-head h2{font-size:13px}.legend{font-size:8px;gap:7px}.bar-chart{gap:5px;padding:8px 0 0}.bars{gap:3px}.bar-group>small{font-size:8px;white-space:normal;line-height:1.6}.footer{font-size:8px;gap:10px}.user-chip b{max-width:130px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-layout{display:block}.auth-story{min-height:auto;padding:25px}.auth-story>div,.auth-story>small{display:none}.auth-main{padding:35px 24px;min-height:calc(100vh - 106px)}.auth-card h2{font-size:21px}.plant-info{gap:9px;font-size:10px}}
@media print{body{background:#fff}.sidebar,.topbar,.heading,.filters,.footer,.text-btn,.print-button{display:none!important}.main{margin:0;width:100%}.workspace{padding:0}.panel,.stat,.market-card{box-shadow:none;break-inside:avoid}.stats{grid-template-columns:repeat(4,1fr)}.dashboard-grid{grid-template-columns:2fr 1fr}.table-scroll{overflow:visible}table{font-size:9px;white-space:normal}.market-card .btn{display:none}.bar{print-color-adjust:exact;-webkit-print-color-adjust:exact}a{color:#222}}

.brand-logo{width:72px;height:72px;object-fit:contain;flex-shrink:0}.brand{gap:5px}.auth-story .brand-logo{background:#fff;border-radius:12px}.sidebar .side-label{margin-top:30px}@media(max-width:850px){.sidebar .brand-logo{width:58px;height:58px}}

.otp-code{font-size:26px!important;letter-spacing:9px;text-align:center}.otp-resend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:20px;font-size:11px}
.profile-banner{padding:28px 32px;margin-bottom:22px;border-radius:20px;background:linear-gradient(115deg,#123977,#2679cf);color:#fff;position:relative;overflow:hidden}.profile-banner:after{content:'◎';position:absolute;left:35px;top:-90px;font-size:270px;opacity:.1;pointer-events:none}.profile-banner h2{font-size:25px;margin:14px 0 6px}.profile-banner .tag{background:#ffffff24;color:#fff}.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.profile-grid label{display:flex;flex-direction:column;gap:8px;font-size:13px}.profile-grid input,.profile-grid select{width:100%;min-width:0;padding:12px;border:1px solid #dce4ef;border-radius:10px;background:#fff;font:inherit;color:#153354}.profile-grid input[readonly]{background:#f0f4f8;color:#627086}.password-panel{margin-top:22px}.profile-grid small{font-size:11px}@media(max-width:1000px){.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.profile-grid{grid-template-columns:1fr}.profile-banner{padding:22px}}

/* Account completion: same shell and form area as phone/OTP entry. */
.identity-summary{margin-bottom:22px}.identity-summary dd{overflow-wrap:anywhere}
.completion-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.completion-counter{font-size:11px;color:var(--muted)}
.completion-progress{display:flex;gap:7px;list-style:none;margin:18px 0 28px;padding:0}
.completion-progress li{height:4px;flex:1;border-radius:9px;background:#e2e8f1}
.completion-progress li.done{background:#8aaeea}.completion-progress li.current{background:var(--blue)}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.completion-card h2{font-size:22px;line-height:1.7;margin-top:0}
.completion-description{margin:8px 0 22px!important}
.verified-phone{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 13px;border:1px solid #dce7f5;background:#f0f5fc;border-radius:9px;font-size:11px;color:#6c7f99;margin-bottom:24px}
.verified-phone span{display:flex;align-items:center;gap:7px}.verified-phone i{font-style:normal;color:var(--mint);background:#e2f2ed;width:19px;height:19px;border-radius:50%;text-align:center}.verified-phone b{font-size:12px;font-weight:400;color:var(--navy)}
.completion-card .auth-tabs{margin:0 0 20px}.completion-card .auth-tabs button{min-height:45px}
.completion-card .auth-tabs button:disabled{opacity:.55;cursor:not-allowed}
.completion-card .completion-hint{font-size:11px;color:var(--muted);line-height:2.1;margin:18px 0}
.identity-choices{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:5px;background:#edf1f7;border-radius:10px;margin:0 0 24px}
.auth-card .identity-choices label{position:relative;margin:0;padding:14px 8px;border-radius:7px;text-align:center;cursor:pointer;border:1px solid transparent;color:#71829c}
.auth-card .identity-choices input[type=radio]{position:absolute;width:1px;height:1px;opacity:0;margin:0;padding:0}
.identity-choices label:has(input:checked){background:#fff;color:var(--blue);box-shadow:0 2px 8px #1d397b09}
.identity-choices label:has(input:focus-visible){outline:3px solid #91b7ff;outline-offset:2px}
.identity-choices strong{font-size:12px}.identity-choices small{display:block;font-size:10px;margin-top:4px;color:var(--muted)}
.completion-fields{display:grid;grid-template-columns:1fr;gap:0;margin:6px 0 20px}
.completion-card .completion-fields label{margin-top:16px}.completion-card .completion-fields input{height:47px}
.onboarding-actions{display:flex;flex-direction:column;gap:13px;margin-top:27px}
.onboarding-actions>.btn:first-child{width:100%;font-size:13px;min-height:49px}
.onboarding-actions>.btn.secondary{align-self:center;background:transparent;border-color:transparent;color:#71829c;font-size:11px;padding:3px 12px}
.completion-logout{display:block;text-align:center;margin-top:22px;color:#94a2b6;font-size:10px}
@media(max-width:600px){.completion-card h2{font-size:20px}.completion-description{font-size:11px!important}.completion-progress{margin-bottom:24px}.verified-phone{padding:10px;font-size:10px}.verified-phone b{font-size:11px}}

/* Group introduction and inline identity tabs — 1.3.2 */
.auth-story .group-headline{font-size:40px;line-height:1.7;margin:24px 0 16px}.auth-story .group-tagline{font-size:16px;font-weight:700;line-height:2;max-width:390px;color:#e1ecff;margin-bottom:16px}.auth-story .group-description{font-size:13px;line-height:2.5;max-width:390px}
.audience-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:26px 0 12px}
.audience-card{display:flex;flex-direction:column;min-width:0;text-align:right;padding:14px 10px 16px;background:#fff;border:1px solid #dce4ef;border-radius:13px;color:var(--ink);font:inherit}
.audience-card.is-selected{border:2px solid var(--blue);padding:13px 9px 15px;background:#f4f8ff;box-shadow:0 3px 12px #245fd10a}
.audience-card-title{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:13px;font-weight:700;margin:0 2px 12px}
.audience-check{color:#fff;background:var(--blue);border-radius:50%;width:18px;height:18px;line-height:18px;text-align:center;font-size:11px}
.audience-soon{color:#8190a5;background:#f0f3f7;border-radius:5px;font-size:9px;padding:2px 5px;font-weight:400}
.audience-card img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:7px;background:#eaf0f7}
.audience-card-description{display:block;font-size:10px;line-height:2.15;color:#71829c;margin:13px 2px 0}
.audience-card.is-unavailable{cursor:not-allowed;color:#7c8ba1;background:#f9fafc}.audience-card.is-unavailable img{opacity:.66;filter:saturate(.65)}
.completion-card .identity-tabs{margin:24px 0 20px}.completion-card .identity-phone{margin-top:0;color:#8290a4}.completion-card .identity-phone input[readonly]{background:#f0f4f9;color:#7b8da7;border-color:#e1e7ef}
.identity-fields{border:0;padding:0;min-width:0;margin:4px 0 20px}.completion-card .identity-fields label{margin-top:16px}
@media(max-width:1150px){.auth-story .group-headline{font-size:33px}.auth-story .group-tagline{font-size:14px}}
@media(max-width:850px){.auth-story .group-headline{font-size:27px}.auth-story .group-description{font-size:12px}.audience-cards{gap:9px}.audience-card-title{font-size:12px}}
@media(max-width:360px){.audience-cards{grid-template-columns:1fr}.audience-card img{max-height:140px}.audience-card-description{font-size:11px}}

/* Province field: match identity form inputs. */
.completion-card .completion-fields select{display:block;width:100%;height:49px;border:1px solid #dae3ef;border-radius:9px;background:#fff;margin-top:7px;padding:10px 14px;color:var(--ink);font:inherit;direction:rtl}
.request-card{padding:20px 0;border-bottom:1px solid #e3e9f2}[data-panel="requests"] textarea{padding:12px;border:1px solid #dce4ef;border-radius:10px;margin-bottom:16px}


/* Request center: consistent list and chat-style conversations */
.request-create-panel .panel-head,.request-list-panel .panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.request-create-panel .panel-head p,.request-list-panel .panel-head p{margin:6px 0 0}
.request-total{white-space:nowrap;padding:7px 12px;border-radius:20px;background:#eef4ff;color:#245fcb;font-size:12px;font-weight:700}
.request-list-table{width:100%;border-collapse:collapse}
.request-list-table th{background:#f5f8fd;color:#667b97;font-size:12px;font-weight:700;padding:13px;text-align:right}
.request-list-table td{padding:15px 13px;border-bottom:1px solid #edf1f6;font-size:13px;vertical-align:middle}
.request-list-table tr:hover td{background:#fbfdff}
.request-list-table td small.block{display:block;margin-top:5px;color:#8291a5;font-size:11px}
.request-open-link{display:inline-block;text-decoration:none!important;color:#245fcb!important;font-size:12px;font-weight:700;padding:8px 11px;border:1px solid #dce7fb;border-radius:8px;background:#f7faff}
.status-pending{background:#fff5df!important;color:#a66a00!important}
.status-reviewing{background:#eaf2ff!important;color:#245fcb!important}
.status-answered{background:#e8f8ef!important;color:#16834b!important}
.status-closed{background:#f0f2f5!important;color:#687587!important}
.customer-conversation-card{margin-top:24px;padding:20px;border:1px solid #e3eaf3;border-radius:14px;background:#fcfdff;scroll-margin-top:20px}
.conversation-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid #e9eef5}
.conversation-title h3{margin:0 0 5px;font-size:15px}
.conversation-title small{font-size:11px;color:#8190a4}
.conversation{display:flex;flex-direction:column;gap:18px;padding:22px 4px;min-height:100px}
.chat-row{display:flex;align-items:flex-end;gap:9px;max-width:88%}
.chat-row.customer{align-self:flex-start;flex-direction:row}
.chat-row.manager{align-self:flex-end;flex-direction:row-reverse}
.chat-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#edf3ff;color:#245fcb;font-size:13px;font-weight:700}
.chat-row.manager .chat-avatar{background:#fff3d8}
.chat-bubble{padding:12px 15px;border:1px solid #e2eaf4;border-radius:14px 14px 14px 4px;background:#fff;min-width:180px;box-shadow:0 2px 8px rgba(24,55,90,.035)}
.chat-row.manager .chat-bubble{background:#edf4ff;border-color:#d8e6ff;border-radius:14px 14px 4px 14px}
.chat-meta{display:flex;align-items:center;gap:12px;margin-bottom:7px;font-size:11px;color:#60738e}
.chat-meta b{color:#24466e}
.chat-meta time{font-size:10px;color:#8795a8}
.chat-text{font-size:13px;line-height:2;color:#273e5b;overflow-wrap:anywhere}
.chat-compose{display:flex;align-items:flex-end;gap:12px;padding:14px;border:1px solid #e2eaf4;border-radius:12px;background:#f7f9fc}
.chat-compose textarea{flex:1;min-width:0;resize:vertical;min-height:58px;padding:12px;border:1px solid #dce5f0;border-radius:9px;background:#fff;font:inherit;line-height:1.9}
.chat-compose textarea:focus{outline:2px solid #d6e5ff;border-color:#7da8f5}
.chat-compose .btn{white-space:nowrap;min-height:42px}
.chat-section-heading{margin:24px 0 0}
.chat-section-heading h3{margin:0 0 5px}
.chat-section-heading p{margin:0;font-size:12px}
.compose-fields{display:flex;align-items:flex-end;gap:14px;flex:1;min-width:0}
.compose-fields>label{min-width:180px}
.compose-fields .compose-message-label{flex:1}
.compose-fields select{width:100%}
@media(max-width:700px){
 .request-list-table{min-width:650px}
 .customer-conversation-card{padding:14px}
 .chat-row{max-width:100%}
 .chat-compose,.compose-fields{flex-direction:column;align-items:stretch}
 .chat-compose .btn{width:100%}
 .compose-fields>label{min-width:0}
 .conversation-title{align-items:flex-start;flex-direction:column}
}


/* Customer request center: compact right-side ticket list with one active chat. */
.customer-request-center{overflow:hidden}
.customer-request-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;align-items:stretch;margin-top:18px;direction:rtl}
.customer-request-sidebar{grid-column:2;grid-row:1;border:1px solid #e3eaf3;border-radius:13px;background:#fbfcfe;padding:12px;min-width:0;max-height:680px;overflow:auto}
.request-sidebar-heading{display:flex;justify-content:space-between;align-items:center;padding:5px 5px 12px;border-bottom:1px solid #e8edf4;color:#253f61;font-size:13px}
.request-sidebar-heading small{font-size:11px;color:#8795a8}
.customer-request-item{display:block;margin-top:9px;padding:12px;border:1px solid #e7edf5;border-radius:10px;background:#fff;color:inherit;text-decoration:none!important;transition:border-color .15s,background .15s,box-shadow .15s}
.customer-request-item:hover{border-color:#a9c5f7;background:#f8fbff}
.customer-request-item.is-active{border-color:#3974df;background:#eef4ff;box-shadow:inset -3px 0 #2864d8}
.customer-request-item-top,.customer-request-item-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}
.customer-request-item-top b{font-size:12px;color:#243f62;line-height:1.8}
.customer-request-item-top small{font-size:10px;color:#8492a6;white-space:nowrap}
.customer-request-preview{display:block;margin:7px 0;color:#7b8ba1;font-size:11px;line-height:1.8}
.customer-request-item-bottom time{font-size:10px;color:#8a97a9}
.customer-request-item-bottom .tag{font-size:10px;padding:4px 7px}
.customer-request-view{display:block;margin-top:9px;color:#2864d8;font-size:11px;font-weight:700}
.customer-chat-pane{grid-column:1;grid-row:1;min-width:0;min-height:340px;border:1px solid #e3eaf3;border-radius:13px;background:#fff;padding:14px}
.customer-chat-pane>.customer-conversation-card{margin:0;padding:0;border:0;background:transparent;min-height:100%}
.customer-chat-pane .conversation{min-height:220px;max-height:480px;overflow:auto;padding:20px 5px}
.customer-chat-empty{min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;color:#71829a}
.customer-chat-empty-icon{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:16px;background:#eef4ff;color:#2864d8;font-size:25px;margin-bottom:14px}
.customer-chat-empty b{font-size:14px;color:#304967}
.customer-chat-empty p{max-width:330px;font-size:12px;line-height:2;margin:8px 0 0}
.customer-chat-pane [hidden]{display:none!important}
@media(max-width:850px){.customer-request-layout{grid-template-columns:1fr}.customer-request-sidebar{grid-column:1;grid-row:1;max-height:270px}.customer-chat-pane{grid-column:1;grid-row:2;min-height:300px}.customer-chat-pane .conversation{max-height:420px}}

/* v1.4.6: consistent Persian RTL alignment for customer request lists and chat */
.request-create-panel,
.request-list-panel,
.customer-request-center,
.customer-request-layout,
.customer-request-sidebar,
.customer-chat-pane,
.customer-conversation-card,
.conversation,
.chat-bubble,
.chat-meta,
.chat-text,
.chat-compose {
  direction: rtl;
  text-align: right;
}
.customer-request-item,
.customer-request-item-top,
.customer-request-item-bottom,
.request-sidebar-heading,
.conversation-title,
.chat-meta,
.chat-text,
.chat-compose textarea {
  text-align: right;
}
.customer-request-item-top,
.customer-request-item-bottom,
.request-sidebar-heading,
.conversation-title {
  direction: rtl;
}
.chat-row { direction: rtl; }
.chat-bubble { text-align: right; }
