/* DAMSYS Project Assistant — Visual System v0.3
   An Arabic-first operational dashboard. No sample data or external UI frameworks. */
:root {
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --navy: #0b1831; --navy-2: #111f3c; --navy-3: #1a3054;
  --primary: #2257cb; --primary-hover: #1a46ad; --primary-soft: #edf3ff;
  --teal: #09b4af; --ink: #15243b; --text-secondary: #5c6d85; --muted: #8694a9;
  --page: #f5f7fc; --card: #ffffff; --line: #e6ebf3;
  --red: #d0475b; --red-soft: #fff0f1; --amber: #b77b19; --green: #17866c;
  --shadow: 0 7px 30px rgba(19, 38, 74, .035);
  --shadow-raise: 0 14px 35px rgba(22, 47, 84, .075);
  --radius: 18px;
  font-family: var(--font); color: var(--ink);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--page);font-size:14px;line-height:1.7;font-family:var(--font);-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #89b8ff;outline-offset:2px}
::selection{background:#cbdcff;color:#112e69}
.hidden{display:none!important}.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.ui-icon,.nav-icon,.metric-icon svg,.stage-icon svg{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.layout{min-height:100vh;display:flex;align-items:stretch}
.sidebar{position:sticky;top:0;flex:0 0 272px;width:272px;height:100vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#293a59 transparent;background:radial-gradient(circle at 12% 0%,#182d52 0,transparent 34%),linear-gradient(180deg,#0d1b35 0%,#0a162c 100%);color:#ecf4ff;padding:27px 16px 17px;display:flex;flex-direction:column;z-index:30}
.brand{display:flex;gap:12px;align-items:center;margin:0 12px 26px;direction:rtl;justify-content:flex-start}
.brand-words{min-width:0;text-align:left;direction:ltr;line-height:1.05}.brand b{font-size:24px;font-weight:700;letter-spacing:1.2px;color:#fff}.brand span{display:block;font-size:9px;letter-spacing:2.25px;color:#91a9d1;margin-top:9px;white-space:nowrap}
.mark{background:linear-gradient(145deg,#37a0ec 0%,#2455c6 60%,#17388e 100%);border:1px solid #ffffff3d;border-radius:17px;width:58px;height:58px;color:white;font-size:38px;line-height:56px;text-align:center;font-family:Arial,sans-serif;font-weight:900;box-shadow:0 12px 30px #071d5677;flex:none}
.mark.small{width:48px;height:48px;font-size:32px;line-height:46px;border-radius:14px}
.sidebar-rule{height:1px;background:linear-gradient(90deg,transparent,#5971994a,transparent);margin:0 12px 24px}
.menu-caption,.sidebar-caption{padding:0 15px 13px;color:#859cbf;font-size:11px;font-weight:600;letter-spacing:.2px}
#menu{display:grid;gap:5px}.nav-link{width:100%;display:flex;gap:14px;align-items:center;background:transparent;border:1px solid transparent;color:#aabbd6;text-align:right;padding:12px 16px;border-radius:12px;font-weight:500;transition:background .18s,color .18s,transform .18s;min-height:47px}
.nav-link span{font-size:13px}.nav-link .nav-icon{color:#8ea6cb;width:19px;height:19px}
.nav-link:hover{background:#ffffff0c;color:#fff;transform:translateX(-2px)}
.nav-link.active{background:linear-gradient(90deg,#183463,#162b50);border-color:#3b639759;color:#fff;box-shadow:inset -3px 0 0 #68bbff,0 4px 18px #00000014}
.nav-link.active .nav-icon{color:#8fd3ff}.sidebar-fill{flex:1;min-height:22px}
.assistant-side-link{display:flex;align-items:center;gap:10px;width:100%;text-align:right;border:1px solid #4f7dae44;border-radius:14px;padding:13px 11px;background:linear-gradient(135deg,#17345b,#152c4c);color:#f0f8ff;margin-bottom:17px}
.assistant-side-link:hover{background:#214270}.assistant-side-symbol{display:grid;place-items:center;background:#245b9b82;width:38px;height:38px;border-radius:11px;color:#8fcfff}.assistant-side-link strong,.assistant-side-link small{display:block}.assistant-side-link strong{font-size:13px}.assistant-side-link small{color:#9fb5d2;font-size:10px;font-weight:400;margin-top:2px}.assistant-side-link .side-arrow{width:15px;color:#9ab3dc;margin-right:auto}
.sidebar-bottom{border-top:1px solid #31435e90;padding:20px 5px 0;display:grid;gap:7px}.sidebar-bottom .sidebar-caption{padding:0 8px 7px}
.connection{display:flex;align-items:center;gap:9px;padding:6px 8px;color:#b2c1d8;font-size:10.5px}.connection span{flex:1}.connection b{font-weight:500;color:#8296b5;font-size:10px}.led{display:inline-block;width:7px;height:7px;background:#5e6e88;border-radius:50%;flex:0 0 7px}.led.on{background:#20c89a;box-shadow:0 0 0 3px #1cae8c1e}.sidebar-bottom small{font-size:10px;color:#6f82a0;padding:12px 8px 0}
.sidebar-backdrop{display:none}.main-wrap{flex:1;min-width:0;min-height:100vh;display:flex;flex-direction:column}
.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);padding:15px clamp(20px,3vw,48px);display:flex;align-items:center;justify-content:space-between;gap:24px;position:sticky;top:0;z-index:15}
.top-title-group{display:flex;align-items:center;gap:12px}.topbar h2{font-size:20px;font-weight:700;line-height:1.1;margin:7px 0 0;letter-spacing:-.25px}.eyebrow{font-size:11px;color:#7489aa;font-weight:600}.crumb{margin:0 6px;color:#c0cbdb}
.top-actions{display:flex;gap:18px;align-items:center;color:#8797ab;font-size:11px}.display-date{white-space:nowrap}.profile{display:flex;align-items:center;gap:10px;border-right:1px solid var(--line);padding-right:20px}.user-avatar{display:grid;place-items:center;width:38px;height:38px;background:#eaf1fd;color:#2357a4;border-radius:12px;font-size:16px;font-weight:700}.user-pill{color:#293c58;font-size:12px;font-weight:600}.logout-button,.mobile-menu-toggle{background:#fff;border:1px solid var(--line);border-radius:11px;width:38px;height:38px;display:grid;place-items:center;color:#6d7e95}.logout-button:hover,.mobile-menu-toggle:hover{color:#d0475b;background:#fef6f7}.mobile-menu-toggle{display:none}
.content{width:100%;max-width:1580px;margin:0 auto;padding:clamp(22px,3vw,42px) clamp(22px,3vw,48px) 80px;flex:1}
.header-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:20px}.section-label{font-size:11px;color:var(--primary);font-weight:700;margin-bottom:6px}.heading{font-size:25px;line-height:1.5;letter-spacing:-.5px;font-weight:700;margin:0 0 5px}.subtext{color:var(--text-secondary);margin:0;line-height:1.95;font-size:12.5px}
.btn{border:1px solid var(--line);border-radius:11px;padding:11px 18px;background:#fff;color:var(--ink);font-weight:600;font-size:12.5px;white-space:nowrap;display:inline-flex;align-items:center;gap:8px;justify-content:center;min-height:42px;transition:background .18s,transform .18s,box-shadow .18s}
.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 5px 15px #17376712}
.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 6px 18px #245ac52a}.btn.primary:hover{background:var(--primary-hover)}.btn.ghost{background:transparent}.btn.light{background:var(--primary-soft);color:#235ab4;border-color:transparent}.btn.light:hover{background:#dfeaff}.btn.danger{background:#fff0f1;color:var(--red);border-color:#fad9da}.btn.small-btn{padding:7px 12px;font-size:11.5px;min-height:36px}
.btn .ui-icon{width:17px;height:17px}.action-row{display:flex;flex-wrap:wrap;gap:9px}
.grid{display:grid;gap:16px}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:23px}
.metric{position:relative;isolation:isolate;overflow:hidden;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;min-height:164px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow);transition:transform .17s,box-shadow .17s}
.metric:hover{transform:translateY(-2px);box-shadow:var(--shadow-raise)}
.metric-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.metric-title{font-size:12.5px;color:#65758b;font-weight:600}
.metric-number{font-size:38px;font-weight:700;line-height:1.15;letter-spacing:-1.5px;color:#162943;font-variant-numeric:tabular-nums}.metric-foot{font-size:11px;color:#93a0b2;margin-top:auto}
.metric-icon{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;background:#eef3fd;color:#2b64c4;flex-shrink:0}
.metric.danger .metric-icon{background:#fff0f2;color:#cc4a5b}.metric.warn .metric-icon{background:#fff5e6;color:#b98024}.metric.success .metric-icon{background:#e8f8f4;color:#1b9477}
.metric.danger .metric-number{color:#c94558}.metric.warn .metric-number{color:#ba801f}
.metric::after{content:"";position:absolute;bottom:0;right:0;height:3px;width:100%;background:linear-gradient(90deg,transparent,#6d9efa47)}.metric.danger::after{background:linear-gradient(90deg,transparent,#d775854a)}.metric.warn::after{background:linear-gradient(90deg,transparent,#d6a5574a)}
.columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:20px;align-items:start}.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:25px;margin-bottom:20px;box-shadow:var(--shadow)}.panel-title{font-size:16px;margin:0 0 15px;font-weight:700;letter-spacing:-.2px}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.panel-header .panel-title{margin:0}.muted{color:var(--text-secondary);line-height:1.8}
.empty{padding:37px 15px;text-align:center;color:#8493a7;line-height:1.9;background:#f9fbff;border:1px dashed #d8e2f1;border-radius:14px;font-size:12px}.empty strong{display:block;color:#364863;margin-bottom:6px;font-size:14px}
.empty-illustration{display:grid;place-items:center;width:55px;height:55px;border-radius:16px;background:#eaf2ff;color:#5c8fe7;margin:0 auto 16px}.empty-illustration svg{width:26px;height:26px}
.alert{padding:17px 0;border-bottom:1px solid #eef1f7;display:flex;gap:13px;align-items:flex-start}.alert:last-child{border-bottom:none}.alert-marker{flex:0 0 9px;height:9px;border-radius:50%;background:#dfa946;margin-top:9px}.alert-marker.high{background:#d65360;box-shadow:0 0 0 4px #fbecef}.alert-main{flex:1;min-width:0}.alert-title{font-size:13px;font-weight:700;line-height:1.7}.alert-detail{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.9}
.badge{font-size:10.5px;font-weight:600;padding:5px 10px;border-radius:99px;background:#f1f5fa;color:#62758e;display:inline-block;white-space:nowrap;line-height:1.7}.badge.high,.badge.at_risk,.badge.blocked{background:#feeff0;color:#ba4055}.badge.medium,.badge.on_hold,.badge.in_progress{background:#fff4e4;color:#a9771d}.badge.active,.badge.done,.badge.completed,.badge.fulfilled,.badge.approved{background:#e8f8f1;color:#16805f}.badge.new,.badge.open{background:#edf3fe;color:#2b65be}
.table-wrap{overflow-x:auto;scrollbar-color:#ced8e8 transparent}.data-table{border-collapse:collapse;width:100%;text-align:right;min-width:600px}.data-table th{font-size:11px;color:#8391a5;font-weight:600;padding:14px 12px;border-bottom:1px solid var(--line);background:#fafbfe}.data-table th:first-child{border-radius:0 10px 10px 0}.data-table th:last-child{border-radius:10px 0 0 10px}.data-table td{font-size:12px;padding:17px 12px;border-bottom:1px solid #eef1f7;vertical-align:middle;line-height:1.8}.data-table tr:last-child td{border:0}.data-table tbody tr:hover{background:#f8fbff}.cell-note{font-size:11px;color:var(--muted)}.text-link{color:#205bc1;border:0;background:none;padding:4px;font-weight:700}
.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.project-card{border:1px solid var(--line);border-radius:var(--radius);background:white;padding:23px;display:flex;flex-direction:column;gap:14px;min-height:248px;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s}.project-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-raise)}.project-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.project-code{color:#5075a4;font-size:10.5px;font-weight:700;direction:ltr;text-align:right;letter-spacing:.5px}.project-name{font-size:17px;font-weight:700;margin-top:6px}.detail-line{color:var(--text-secondary);font-size:12px;line-height:1.7}.project-footer{display:flex;justify-content:space-between;gap:5px;border-top:1px solid var(--line);padding-top:15px;margin-top:auto}.stage{background:#f0f5fe;color:#4570a8;border-radius:8px;padding:6px 9px;font-size:10.5px;font-weight:600}
.chat{display:flex;flex-direction:column;gap:13px;min-height:220px;max-height:530px;overflow-y:auto;padding:12px 0 18px}.bubble{max-width:88%;border-radius:17px;padding:15px 18px;white-space:pre-wrap;line-height:2;word-break:break-word;font-size:12.5px}.bubble.user{align-self:flex-start;background:#eaf2ff;border-bottom-left-radius:5px}.bubble.agent{align-self:flex-end;background:#f1f4f9;border-bottom-right-radius:5px}.chat-form{display:flex;gap:10px}.chat-form input{flex:1}.notice{background:#eff5ff;border:1px solid #d9e7fb;border-radius:12px;padding:14px 17px;color:#315a84;line-height:1.9;font-size:12px}.warning{background:#fff8ea;border-color:#f3dfb7;color:#875f20}
.form-grid{display:grid;gap:14px}.input-label{display:grid;gap:7px;font-size:12px;font-weight:600;color:#3d516d}.input-label input,.input-label textarea,.input-label select,.chat-form input{width:100%;border:1px solid #dbe3ef;border-radius:11px;padding:12px 14px;background:white;color:var(--ink);outline:none;min-width:0;transition:border .16s,box-shadow .16s}.input-label input:focus,.input-label textarea:focus,.input-label select:focus,.chat-form input:focus{border-color:#68a1eb;box-shadow:0 0 0 4px #eaf3ff}.input-label textarea{resize:vertical;min-height:100px}.input-label input[type=checkbox]{width:auto}.input-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.full{grid-column:1/-1}
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:26px;background:radial-gradient(circle at 75% 10%,#1e4a85 0,transparent 36%),radial-gradient(circle at 9% 89%,#0e556c 0,transparent 35%),linear-gradient(150deg,#08172f,#11274c);position:relative;isolation:isolate}.auth-page::before{content:"";position:fixed;inset:0;opacity:.16;pointer-events:none;background-image:linear-gradient(#88cfff25 1px,transparent 1px),linear-gradient(90deg,#88cfff25 1px,transparent 1px);background-size:52px 52px;z-index:-1}
.auth-card{background:white;width:min(100%,500px);border-radius:25px;padding:42px;box-shadow:0 26px 105px #0004}.auth-brand{display:flex;align-items:center;gap:13px;direction:rtl;justify-content:flex-start}.auth-brand>div:last-child{direction:ltr;text-align:left}.auth-brand strong{display:block;letter-spacing:1.6px;color:#172d55;font-size:24px;line-height:1.2}.auth-brand span{font-size:9px;letter-spacing:2px;color:#7891b2}.auth-label{margin-top:29px;color:#2d64b9;font-weight:600;font-size:11px}.auth-card h1{font-size:25px;line-height:1.55;letter-spacing:-.5px;margin:6px 0 7px}.auth-card p{font-size:12px;margin:0}.auth-card .form-grid{margin-top:24px}.auth-card .form-grid .btn{width:100%;font-size:13px}.auth-foot{display:flex;align-items:center;gap:7px;margin-top:23px;border-top:1px solid var(--line);padding-top:17px;color:#8898ad;font-size:10.5px}.auth-foot .ui-icon{width:15px;height:15px;color:#4d84d0}
.modal-form{min-width:min(540px,90vw);max-width:620px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.modal-head h2{font-size:20px;margin:0;font-weight:700}.icon-btn{border:0;border-radius:9px;background:#f1f4f9;width:36px;height:36px;display:grid;place-items:center;color:#566b86}.icon-btn:hover{background:#e6ebf2}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}dialog{border:1px solid #e0e8f2;border-radius:20px;padding:29px;box-shadow:0 28px 100px #0a203b55;width:min(650px,95vw);max-height:90vh;overflow-y:auto}dialog::backdrop{background:#08172b91}#toast{position:fixed;bottom:23px;left:23px;max-width:380px;z-index:50;padding:14px 18px;border-radius:11px;background:#143255;color:white;box-shadow:0 6px 30px #0a234f33;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}#toast.error{background:#9f3244}
small{line-height:1.6}.narrow{max-width:720px}.secondary{color:#7b8ca5}.status-select{border:1px solid var(--line);border-radius:8px;background:#fff;padding:6px 8px;color:#334d6e;font-size:12px}.switch{display:flex;gap:10px;align-items:center;color:#41536a}.switch input{height:16px;width:16px}.tag{font-size:10px;background:#eef4fc;color:#3e6391;border-radius:5px;padding:4px 7px}.review-box{padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;white-space:pre-wrap;line-height:1.8}.stat-line{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;border-bottom:1px solid #edf0f6;font-size:12px}.stat-line:last-child{border:0}
/* Dashboard signature surfaces */
.hero{position:relative;background:linear-gradient(115deg,#0d2142 0%,#17396a 55%,#194983 100%);border:1px solid #254b80;border-radius:22px;color:#fff;min-height:228px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 275px;align-items:center;padding:28px 35px;margin-bottom:27px;box-shadow:0 16px 35px #0d377322}
.hero::before{content:"";position:absolute;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,#39aef125 0,#39aef10a 45%,transparent 65%);top:-170px;left:100px;pointer-events:none}.hero::after{content:"";position:absolute;inset:0;opacity:.16;pointer-events:none;background-image:linear-gradient(90deg,transparent 98%,#b1d2fa 99%),linear-gradient(transparent 98%,#b1d2fa 99%);background-size:36px 36px;mask-image:linear-gradient(90deg,#000,transparent 75%)}
.hero-content,.hero-insight{position:relative;z-index:1}.hero-kicker{display:inline-flex;align-items:center;gap:9px;background:#ffffff1a;border:1px solid #ffffff26;border-radius:99px;font-size:10.5px;padding:7px 11px;color:#d2e8ff;font-weight:600}.hero-kicker .live-dot{width:7px;height:7px;border-radius:50%;background:#49d5c6;box-shadow:0 0 0 4px #4bd5c525}.hero h1{font-weight:700;letter-spacing:-.6px;font-size:27px;line-height:1.6;margin:14px 0 3px}.hero p{color:#c0d4ed;font-size:12px;max-width:560px;margin:0 0 20px;line-height:1.95}.hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hero .btn.primary{background:#fff;color:#123b7c;border-color:#fff;box-shadow:none}.hero .btn.primary:hover{background:#f2f8ff}.hero .btn.light{background:#ffffff1c;color:white;border:1px solid #ffffff38}.hero .btn.light:hover{background:#ffffff30}
.hero-insight{padding:17px 19px;border:1px solid #ffffff36;background:#ffffff12;backdrop-filter:blur(6px);border-radius:18px;text-align:center;justify-self:stretch;max-width:260px}.hero-insight .hero-insight-icon{display:grid;place-items:center;margin:auto auto 8px;width:47px;height:47px;border-radius:14px;color:#7dedde;background:#ffffff1b}.hero-insight strong{font-size:34px;line-height:1.4;display:block;font-variant-numeric:tabular-nums}.hero-insight span{font-size:11px;color:#c6daf0;display:block}.hero-insight small{font-size:10px;color:#b5c9e1;display:block;margin-top:9px}
.dashboard-section-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:0 0 15px}.dashboard-section-heading h2{font-size:17px;font-weight:700;letter-spacing:-.2px;margin:0}.dashboard-section-heading p{font-size:11px;color:#8795aa;margin:3px 0 0}
.panel-kicker{display:flex;align-items:center;gap:8px;font-size:10.5px;color:#2b65bf;font-weight:700;margin-bottom:9px}.panel-kicker .ui-icon{width:16px;height:16px}.panel-subtext{font-size:11.5px;margin:-6px 0 14px;color:#8594a7}
.assistant-teaser{position:relative;overflow:hidden;border-color:#d4e3fa;background:linear-gradient(130deg,#f4f8ff,#fff 70%)}.assistant-teaser::before{content:"";position:absolute;left:-60px;top:-70px;height:150px;width:150px;border:30px solid #edf4ff;border-radius:50%;pointer-events:none}.teaser-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#e4edff;color:#1d60c5;margin-bottom:10px}.teaser-icon svg{width:22px;height:22px}.assistant-teaser .panel-title{margin-bottom:4px}.assistant-teaser .btn{margin-top:14px}
.workflow{margin-top:8px;padding:22px 24px 24px}.workflow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}.workflow-step{position:relative;display:flex;align-items:center;gap:11px;padding:13px 11px;background:#f8faff;border:1px solid #edf1f7;border-radius:12px}.stage-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#e8f0ff;color:#2960bd;flex:none}.stage-icon svg{width:18px;height:18px}.workflow-step strong,.workflow-step small{display:block}.workflow-step strong{font-size:11.5px}.workflow-step small{font-size:10px;color:#8294ad;margin-top:2px}
@media(max-width:1280px){.sidebar{width:244px;flex-basis:244px}.content{padding:27px}.hero{grid-template-columns:1fr 200px;padding:28px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.columns{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr)}}
@media(max-width:1060px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.columns{grid-template-columns:1fr}.workflow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-insight{max-width:190px}}
@media(max-width:780px){
 .layout{display:block}.sidebar{position:fixed;inset:0 0 0 auto;height:100dvh;width:min(305px,88vw);transform:translateX(110%);transition:transform .22s ease;box-shadow:-15px 0 35px #0c1e3e55}.sidebar.mobile-open{transform:translateX(0)}.sidebar-backdrop:not(.hidden){display:block;position:fixed;inset:0;background:#09182d88;z-index:25}
 .mobile-menu-toggle{display:grid}.topbar{height:76px;padding:12px 17px}.topbar h2{font-size:17px}.topbar .eyebrow{font-size:9px}.top-actions{gap:8px}.display-date{display:none}.user-pill{display:none}.profile{padding-right:0;border:0}.user-avatar{height:34px;width:34px;border-radius:10px}.logout-button{height:35px;width:35px}
 .content{padding:18px 14px 55px}.header-row{align-items:flex-start;flex-direction:column}.heading{font-size:23px}.metrics{gap:10px}.metric{padding:17px;min-height:140px}.metric-number{font-size:31px}.metric-icon{width:37px;height:37px}.metric-icon svg{width:18px;height:18px}
 .hero{grid-template-columns:1fr;padding:24px 20px;min-height:0}.hero h1{font-size:23px}.hero-insight{display:none}.hero-actions{gap:8px}.hero .btn{font-size:11.5px;padding:9px 12px}
 .panel{padding:18px}.cards{grid-template-columns:1fr}.input-row{grid-template-columns:1fr}.auth-card{padding:28px}.workflow{padding:18px}.workflow-steps{grid-template-columns:1fr 1fr}.workflow-step{padding:10px;gap:8px}.stage-icon{width:30px;height:30px}.stage-icon svg{width:16px;height:16px}.workflow-step strong{font-size:11px}.workflow-step small{font-size:9px}.data-table{font-size:12px}
}
@media(max-width:420px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:14px}.metric-title{font-size:11px}.metric-number{font-size:28px}.metric-foot{font-size:10px}.metric-icon{width:32px;height:32px;border-radius:9px}.metric-icon svg{width:16px;height:16px}.hero-actions .btn{flex:1}.workflow-steps{grid-template-columns:1fr}.chat-form{flex-direction:column}.chat-form .btn{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

.panel-after-notice{margin-top:16px}.panel-header.compact-header{margin-bottom:0}.teaser-copy{font-size:12px;margin:5px 0 0}.panel-subtext.footer-note{margin:14px 0 0}

/* Full manufacturing-to-handover lifecycle */
.project-progress-label{display:flex;justify-content:space-between;align-items:center;margin-top:15px;color:#65778f;font-size:11px;gap:10px}.project-progress-label b{color:#1b57b5;font-size:14px;font-variant-numeric:tabular-nums}
.progress-track{width:100%;height:9px;background:#e9eff7;border-radius:99px;overflow:hidden;margin:7px 0 10px}.progress-fill{height:100%;background:linear-gradient(90deg,#05a8a6,#2874d0);border-radius:99px;transition:width .3s ease}.project-current{font-size:11.5px;color:#62728c;background:#f4f7fc;border-radius:10px;padding:9px 11px;margin-top:7px}.project-current b{color:#18345d}
.phase-overview{border:1px solid #d8e4f3;background:linear-gradient(120deg,#fff,#f8fbff);margin-bottom:20px}.phase-overview-head{display:grid;grid-template-columns:minmax(200px,340px) minmax(240px,1fr);gap:20px;align-items:end}.phase-overview-head h2{font-size:21px;margin:3px 0}.phase-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.phase-summary>div{background:#f1f6fd;border-radius:13px;padding:14px;display:flex;align-items:center;gap:12px}.phase-summary strong{font-size:23px;line-height:1.3;color:#205bb4;font-variant-numeric:tabular-nums}.phase-summary span{font-size:11px;color:#6a7b92}.phase-overview p.muted{font-size:11px;margin:10px 0 0}
.lifecycle-group{margin-top:15px;padding:22px}.phase-group-title{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e8edf5;padding-bottom:12px;margin-bottom:5px}.phase-group-title h2{font-size:16px;margin:0}.phase-group-title>span{font-size:11px}.phase-list{display:flex;flex-direction:column}.phase-row{display:flex;align-items:flex-start;gap:15px;padding:15px 8px;border-bottom:1px solid #edf1f6}.phase-row:last-child{border-bottom:0}.phase-order{height:34px;width:34px;border-radius:10px;background:#eaf1fa;color:#426398;display:grid;place-items:center;flex-shrink:0;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.phase-row.completed .phase-order{background:#e6f7f1;color:#16836a}.phase-row.blocked .phase-order{background:#fff0ed;color:#bf4a3a}.phase-main{flex:1;min-width:0}.phase-header{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.phase-header strong{font-size:13.2px}.phase-mini{font-size:11px;color:#8190a5;margin-top:4px}.phase-notes{font-size:11px;color:#52718a;padding-top:4px;white-space:pre-wrap}.phase-blocker{color:#b1433e;background:#fff2f1;font-size:11px;border-radius:8px;padding:6px 9px;margin-top:8px}.phase-end{display:flex;align-items:center;gap:12px;min-width:120px;justify-content:flex-end}.phase-pct{font-size:14px;color:#285ca1;font-weight:700;min-width:40px;text-align:center;font-variant-numeric:tabular-nums}.phase-controls{min-width:55px;text-align:left}.badge.not_applicable{background:#edf0f3;color:#6d7888}.badge.blocked{background:#ffedeb;color:#b14439}.badge.pending{background:#edf1fa;color:#63758e}.badge.in_progress{background:#eaf1ff;color:#275fc1}.badge.completed{background:#e2f7ed;color:#167960}
@media(max-width:780px){.phase-overview-head{grid-template-columns:1fr}.phase-summary{gap:6px}.phase-summary>div{padding:10px;flex-direction:column;text-align:center;gap:3px}.phase-summary strong{font-size:19px}.phase-row{padding:13px 1px;gap:9px;flex-wrap:wrap}.phase-header strong{font-size:12px}.phase-end{margin-right:auto}.phase-mini{font-size:10px}}

/* v0.4 – event-driven executive assistant responses */
.reaction-card{border:1px solid #c4d9f5;border-right:5px solid #3473c6;background:linear-gradient(120deg,#f0f6ff,#fff);border-radius:18px;padding:20px 22px;margin-bottom:22px;box-shadow:0 8px 22px #2448770d}
.reaction-card.high{background:linear-gradient(120deg,#fff4f0,#fff);border-color:#f4cbbb;border-right-color:#e57045}
.reaction-card.success{background:linear-gradient(120deg,#effcf5,#fff);border-color:#b8e5cd;border-right-color:#2b9871}
.reaction-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.reaction-chip{font-size:11px;display:inline-flex;align-items:center;gap:7px;color:#2163ae;font-weight:700}.reaction-chip svg{width:16px;height:16px}
.reaction-card.high .reaction-chip{color:#ba5738}.reaction-card.success .reaction-chip{color:#20825f}.reaction-card h3{font-size:17px;margin:0 0 8px;color:#162d4c}.reaction-card p{white-space:pre-wrap;font-size:12px;line-height:1.9;color:#4d607c;margin:0 0 11px}
.reaction-next{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid #e4ebf5;padding:12px 13px;border-radius:12px;font-size:12px;line-height:1.8;color:#375371}.reaction-next strong{color:#214a86}
.reaction-buttons{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.activity-panel{margin-top:20px}.activity-entry{display:flex;align-items:flex-start;gap:12px;padding:15px 5px;border-bottom:1px solid #edf1f7}.activity-entry:last-child{border-bottom:none}.activity-mark{width:9px;height:9px;background:#487ec4;border-radius:50%;flex-shrink:0;margin-top:8px}.activity-mark.high{background:#d86945}.activity-mark.success{background:#25a77e}.activity-main{flex:1;min-width:0}.activity-main strong{font-size:12.5px;color:#1e3656}.activity-main .muted{font-size:10px;margin-top:4px}.activity-main p{color:#61748c;font-size:11px;line-height:1.75;margin:7px 0}.activity-next{background:#eff5fe;border:1px solid #dce9fa;border-radius:9px;padding:9px 11px;font-size:11.5px;color:#28578b;line-height:1.7}.activity-entry .btn{flex-shrink:0}
.lifecycle-latest{margin-bottom:16px;border-right:4px solid #3e80c5}.lifecycle-latest strong{font-size:13px}.lifecycle-latest p{font-size:11px;color:#64768f;line-height:1.9}.assistant-quick{padding:0 0 16px;border-bottom:1px solid #edf1f7;margin-bottom:15px}.assistant-quick>strong{display:block;color:#234a7b;font-size:14px}.assistant-quick>.muted{font-size:11px;margin:6px 0 10px}.quick-event{padding:9px 10px;background:#f5f8fe;border-radius:9px;margin:6px 0;display:flex;flex-direction:column;gap:3px}.quick-event strong{font-size:11.5px}.quick-event span{font-size:10.5px;color:#516d91;line-height:1.7}
@media(max-width:780px){.reaction-card{padding:16px}.activity-entry{flex-wrap:wrap}.activity-entry .btn{margin-right:20px}}


/* v0.5 - voice capture and explicit action approvals */
.agent-compose{margin-top:14px;border-top:1px solid var(--line);padding-top:16px;display:grid;gap:10px}
.agent-compose label{font-size:12px;font-weight:700;color:#284567}
.agent-compose textarea{width:100%;resize:vertical;min-height:92px;border:1px solid #d5e0ed;border-radius:13px;padding:12px 14px;background:#fbfdff;color:var(--ink);line-height:1.9}
.agent-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.agent-toolbar .btn{min-height:40px}
.agent-voice-status{font-size:11px;color:#647b96;line-height:1.8;margin:0}
.agent-approval{border:1px solid #cbddef;border-right:4px solid #2b70c9;background:#f5f9ff;padding:16px 18px;border-radius:13px;margin:14px 0}
.agent-approval-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#1b4274;font-size:13px}
.agent-approval-head span{font-size:11px;color:#6b7f98}
.agent-approval p{white-space:pre-wrap;line-height:1.9;margin:11px 0 15px;font-size:12px;color:#2d4a6b}
.agent-approval-actions{display:flex;gap:9px;flex-wrap:wrap}
@media(max-width:600px){.agent-toolbar{justify-content:stretch}.agent-toolbar .btn{flex:1}.agent-approval-actions .btn{flex:1}}

/* v0.5.1 microphone live-level indicator and client-side playback */
.voice-monitor{display:grid;grid-template-columns:160px minmax(100px,1fr);align-items:center;gap:8px 14px;background:#eef5ff;border:1px solid #d1e3f8;border-radius:12px;padding:12px 14px;color:#26476b}
.voice-monitor[hidden],#voice-preview[hidden]{display:none!important}
.voice-monitor strong{font-size:12px}
.voice-monitor span{font-size:11px;color:#526f8e;grid-column:1/-1}
.voice-meter-track{height:12px;min-width:90px;border-radius:99px;overflow:hidden;background:#d2dfea}
.voice-meter-bar{height:100%;width:0%;border-radius:99px;background:linear-gradient(90deg,#2473c4,#12a68d);transition:width .11s linear}
#voice-preview{width:100%;height:40px;max-width:420px}
@media(max-width:560px){.voice-monitor{grid-template-columns:1fr}.voice-monitor span{grid-column:1}}

/* v0.5.2: explicit mic choice, avoids Windows virtual microphones by default. */
.voice-device-picker{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.voice-device-picker label{font-size:12px;font-weight:650;color:#294361}
.voice-device-picker select{flex:1;min-width:190px;max-width:420px;padding:9px;border:1px solid #cbd8e8;border-radius:9px;background:#fff;color:#233958}
.voice-device-picker button{white-space:nowrap}
@media(max-width:560px){.voice-device-picker select{min-width:100%;max-width:100%}}

/* v0.5.4 - attachment library, cancellation and administrator archive */
.task-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:145px}
.danger-text{color:#bb3333!important;border-color:#f3caca!important}
.attachment-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.attachment-toolbar label{display:flex;align-items:center;gap:8px;font-weight:600;color:#294361}
.attachment-toolbar select{padding:8px 12px;border:1px solid #d0ddec;border-radius:9px;background:#fff}
.attachment-thumb{display:block;width:94px;height:65px;object-fit:cover;border:1px solid #c9d9e9;border-radius:8px;margin-top:8px}
.data-table tr[hidden]{display:none}
.linklike{border:0;background:transparent;color:#205fb4;cursor:pointer;text-decoration:underline;font:inherit}

/* v0.5.5 — Persistent assistant task decisions */
.assistant-task-activity{border:1px solid #dce8f5;border-radius:14px;background:#fbfdff;margin:15px 0 18px;padding:15px}
.assistant-task-activity-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;font-size:13px}
.assistant-task-activity-title span{font-size:11px;color:var(--text-secondary)}
.assistant-task-event{padding:12px 1px;border-bottom:1px solid #e8eef7;line-height:1.8;font-size:12px}
.assistant-task-event:last-child{border-bottom:0}
.assistant-task-event-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.assistant-task-event p{margin:7px 0 4px;white-space:pre-wrap}
.assistant-task-event small{font-size:11px;color:#477094}

/* v0.5.6: navigable interventions, focused source records and account control */
.alert-link{width:100%;text-align:right;border:0;border-bottom:1px solid #eef1f7;background:transparent;color:inherit;cursor:pointer;border-radius:8px;transition:background .15s,padding .15s}
.alert-link:last-child{border-bottom:0}.alert-link:hover,.alert-link:focus-visible{background:#edf5ff;padding-inline:10px;outline:2px solid #90b5ef;outline-offset:-2px}
.alert-link .alert-title,.alert-link .alert-detail{display:block}.alert-open{color:#255dbc;font-size:11px;white-space:nowrap;align-self:center;font-weight:600}
.alert-target{background:#e9f3ff!important;outline:3px solid #478cf0!important;outline-offset:3px;box-shadow:0 4px 16px rgba(32,87,186,.13);border-radius:9px;scroll-margin-top:110px}
.top-password{font-size:11px;border:1px solid #dce5f2;background:#f7faff;color:#2a5895;border-radius:9px;padding:7px 11px;white-space:nowrap}.top-password:hover{background:#e9f3ff}
@media(max-width:780px){.top-password{font-size:10px;padding:6px 7px}.alert-open{font-size:10px}}
