:root{font-family:"Cairo","Segoe UI",Tahoma,Arial,sans-serif;color:#10263c;background:#f1f6fc;--ink:#10263c;--sub:#536b82;--nav:#10263c;--blue:#1264d9;--line:#dce6f1;--soft:#edf5ff;--paper:#fff}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button[disabled]{cursor:default;opacity:.52}[hidden]{display:none!important}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #74b1ff;outline-offset:2px}button{border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);padding:.55rem .8rem;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:.4rem}a{color:#115bb9}h1,h2,h3,p{margin:0}small{line-height:1.5}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.symbols{position:absolute;width:0;height:0}.layout{display:grid;grid-template-columns:224px minmax(0,1fr) 321px;min-height:100dvh}.layout.closed{grid-template-columns:224px minmax(0,1fr)}.sidebar{background:var(--nav);color:white;display:flex;flex-direction:column;padding:22px 14px;gap:24px;min-height:100dvh}.brand{display:flex;align-items:center;gap:11px;padding:5px 9px}.brand img{width:48px;height:48px}.brand strong{display:block;font-size:2rem;line-height:1.05}.brand small{color:#b9cee4}.tenant{padding:12px;border:1px solid #304760;border-radius:12px;background:#1a354e;display:grid;gap:8px}.tenant label{font-size:.8rem;color:#c0d3ea}.tenant select{width:100%;background:#102a43;color:#fff;border:1px solid #3b5770}.quiet{color:#d5eaff;background:transparent;border-color:#42617b;font-size:.84rem}.sidebar nav{display:grid;gap:6px}.sidebar nav button{justify-content:flex-start;background:transparent;color:#d3e2ee;border-color:transparent;font-size:.92rem;text-align:right;gap:12px}.sidebar nav button:hover{background:#20415e}.sidebar nav button.active{background:#1264d9;color:white}.account{margin-top:auto;border-top:1px solid #38516a;padding:17px 3px 0;display:flex;gap:11px;align-items:center}.account-icon{background:#23425d;border-radius:9px;padding:8px;display:grid;place-items:center}.account strong,.account small{display:block}.account small{color:#b9cee4}.top{min-height:68px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px clamp(16px,3vw,35px);background:#fff}.top-name,.top-actions{display:flex;align-items:center;gap:10px}.online-dot{display:inline-block;background:#21a78e;width:9px;height:9px;border-radius:50%}.compact{font-size:.85rem}.main-inner{padding:27px clamp(14px,2.5vw,35px) 32px;display:grid;gap:17px}.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.heading h1{font-size:clamp(1.65rem,2.5vw,2.35rem);line-height:1.3}.heading p,.sub{color:var(--sub);line-height:1.65}.primary{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}.primary:hover{background:#1054b4}.scope,.card{background:white;border:1px solid var(--line);border-radius:13px}.scope{display:grid;grid-template-columns:1fr 1fr 1fr;padding:13px;gap:13px}.scope label,.fields label{display:grid;gap:6px;font-size:.9rem;color:var(--sub)}.scope strong{color:var(--ink);font-size:1rem}select,input,textarea{min-width:0;border:1px solid #ccdbea;background:#fff;border-radius:8px;padding:.5rem .6rem;color:var(--ink)}.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.kpi{display:flex;align-items:center;gap:11px;padding:13px;min-width:0}.kpi strong{font-size:1.6rem;display:block}.kpi span:not(.tile){font-size:.9rem;color:var(--sub)}.tile{display:grid;place-items:center;background:#e5f0ff;color:var(--blue);width:42px;height:42px;border-radius:10px;flex:none}.tile.amber{background:#fff0da;color:#9a5304}.tile.green{background:#e0f7ef;color:#006f57}.card-pad{padding:17px;display:grid;gap:13px}.card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.card-header h2{font-size:1.22rem}.tools{display:flex;flex-wrap:wrap;gap:7px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:right;font-size:.9rem}th{background:#eaf1f9;color:#304c66;font-weight:700}th,td{padding:12px 10px;border-bottom:1px solid #e7eef6}td input[type=checkbox],th input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue)}td .row-action{padding:3px 8px;min-height:32px}.badge,.small-badge{display:inline-flex;padding:4px 8px;border-radius:6px;background:#eef3f9;color:#37536e;font-size:.78rem;white-space:nowrap}.badge.good{background:#daf4e9;color:#07644e}.badge.warn{background:#fff0d9;color:#885000}.badge.error{background:#fde5e5;color:#a1272e}.badge.info,.small-badge{background:#e6f1ff;color:#104d96}.empty{padding:30px 10px;text-align:center;color:var(--sub)}.assistant{background:white;border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0;max-height:100dvh;position:sticky;top:0}.assistant>header{padding:17px 13px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:6px}.assist-head{display:flex;gap:9px;align-items:center}.assist-head small{display:block;color:var(--sub);margin-top:3px}.assist-icon{padding:7px;border-radius:9px;background:var(--soft);color:var(--blue);display:grid}.messages{padding:15px;display:flex;flex-direction:column;gap:12px;min-height:220px;overflow:auto;flex:1}.bubble{padding:11px 12px;border-radius:11px;background:#f1f6fc;line-height:1.65;overflow-wrap:anywhere}.bubble.user{background:#dcecff;align-self:flex-start}.bubble button{margin-top:8px;font-size:.83rem}.assist-bottom{padding:12px;border-top:1px solid var(--line);display:grid;gap:8px}.assist-bottom small{color:var(--sub);font-size:.76rem}.suggestions{display:flex;gap:6px;flex-wrap:wrap}.suggestions button{font-size:.78rem;min-height:30px;padding:3px 7px}.assist-bottom form{display:flex;gap:5px}.assist-bottom input{width:100%;font-size:.85rem}.mic,.send{padding:5px 8px;font-size:.82rem}.mic{color:var(--blue);background:#eef6ff}.send{background:var(--blue);color:white}.screen-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.screen-row h2{display:flex;align-items:center;gap:8px;font-size:1.1rem}dialog{width:min(610px,calc(100% - 24px));border:1px solid var(--line);border-radius:16px;padding:0;color:var(--ink);max-height:89dvh}dialog::backdrop{background:#0c213b80}dialog .inner{padding:22px;display:grid;gap:15px}dialog h2{font-size:1.36rem}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fields .wide{grid-column:1/-1}.modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:5px}.error-text{color:#a3222a}.toast{position:fixed;z-index:10;bottom:16px;right:24px;max-width:min(510px,90%);background:#132b42;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:0 8px 24px #15283833}.list{display:grid;gap:9px}.item{border:1px solid var(--line);border-radius:8px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.item p{line-height:1.5}.note{background:var(--soft);border-radius:8px;padding:10px 12px;color:#294c70;line-height:1.55}.form-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ltr{direction:ltr;text-align:right}video{width:100%;max-height:290px;background:#10263c;border-radius:8px}.recording{color:#9c2027;background:#ffecef}.preview-line{display:block;overflow-wrap:anywhere}.danger{background:#fff1f1;color:#91282e}.hero-state{font-size:.8rem}.error-text:empty{display:none}
@media(max-width:1200px){.layout{grid-template-columns:185px minmax(0,1fr) 274px}.layout.closed{grid-template-columns:185px minmax(0,1fr)}.main-inner{padding-inline:14px}.sidebar{padding-inline:10px}}
@media(max-width:950px){.layout,.layout.closed{grid-template-columns:166px minmax(0,1fr)}.assistant{position:fixed;left:0;bottom:0;top:auto;width:min(350px,100%);height:75dvh;z-index:5;border:1px solid var(--line);border-radius:13px 0 0 0;box-shadow:0 0 35px #0b24432a}}
@media(max-width:620px){.layout,.layout.closed{display:block}.sidebar{min-height:0;padding:12px;gap:10px}.brand{padding:0}.brand img{width:34px;height:34px}.brand strong{font-size:1.5rem}.brand small,.account{display:none}.tenant{display:flex;align-items:center;gap:7px}.tenant select{width:auto;flex:1}.sidebar nav{display:flex;overflow:auto}.sidebar nav button{white-space:nowrap}.top{min-height:54px}.main-inner{padding-top:16px}.kpis{gap:6px}.kpi{padding:8px}.kpi .tile{display:none}.scope{grid-template-columns:1fr 1fr}.scope label:first-child{grid-column:1/-1}.fields{grid-template-columns:1fr}}
@media print{.sidebar,.assistant,.top,.tools,.heading button,.screen-row,.toast,dialog{display:none!important}.layout{display:block!important}.main-inner{padding:0}.card{break-inside:avoid;background:#fff}.table-wrap{overflow:visible}}
.client-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:14px}
.client-card{padding:18px;display:grid;gap:10px;align-content:start;min-width:0}
.client-card h2{font-size:1.15rem;overflow-wrap:anywhere}
.client-card .primary{margin-top:4px}
.scope-range{grid-column:1/-1;display:flex;gap:10px;align-items:center;color:var(--sub);font-size:.85rem}
.bubble.tip{border-inline-start:3px solid #1b9a82;background:#edf8f5}

.action-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:.48rem .75rem;border-radius:8px;border:1px solid #c7dafa;background:#f4f8ff;color:#174caa;text-decoration:none;font-weight:600}.action-link:hover{background:#e8f1ff}.bubble .action-link{margin-top:.5rem}
.help-steps{margin:.25rem 0;padding-inline-start:1.5rem;display:grid;gap:.55rem;line-height:1.65}
.help-links .action-link small{display:block;font-size:.72rem;color:#42618a}
.draft-line{min-width:0;border:1px solid var(--line);border-radius:8px;margin-block:.5rem;padding:.75rem}
.draft-line legend{padding-inline:.3rem;color:var(--sub)}
