:root{--bg:#f3f7fc;--panel:#fff;--nav:#24374b;--text:#23374a;--muted:#647990;--line:#dce7f3;--blue:#3478c8;--blue-dark:#2563ab;--blue-soft:#e8f1fc;--green:#237644;--amber:#a5660b;--radius:12px;--shadow:0 2px 7px #23374a05}*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--bg);font:15px/1.5 "Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled,input:disabled,textarea:disabled{cursor:not-allowed;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #78b3ff;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1px;line-height:1.2;margin-bottom:8px;font-weight:700;color:#162b40}h2{font-size:21px;line-height:1.3;letter-spacing:-.4px;margin-bottom:18px}h3{font-size:16px;margin-bottom:8px}.icon{width:23px;height:23px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.app-shell{min-height:100dvh;display:flex}.sidebar{width:246px;position:fixed;inset:0 auto 0 0;z-index:30;background:var(--nav);color:#f4f8ff;padding:23px 12px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:13px;font-size:19px;font-weight:650;line-height:1.22;padding:0 12px 36px}.brand-icon{color:#71b0ff}.brand-icon .icon{width:35px;height:42px;stroke-width:1.45}.nav-item{display:flex;align-items:center;gap:15px;min-height:52px;padding:12px 17px;margin:3px 0;border-radius:9px;color:#f1f6ff;transition:background .15s}.nav-item .icon{width:24px;height:24px}.nav-item:hover{background:#ffffff0d}.nav-item.active{background:#405e80;color:#fff;font-weight:600}.nav-count{margin-left:auto;background:#ffffff1f;border-radius:8px;padding:0 6px;font-size:12px}.sidebar-bottom{margin-top:auto;padding-top:25px}.logout{border:0;background:none;width:100%;color:#c4d2e0;font-size:13px}.workspace{margin-left:246px;width:calc(100% - 246px);min-width:0}.topbar{height:76px;display:flex;align-items:center;gap:15px;background:#fff;border-bottom:1px solid var(--line);padding:0 28px;position:sticky;top:0;z-index:20;box-shadow:var(--shadow)}.org-switch{display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:0 12px;border-radius:9px;min-width:180px;max-width:440px}.org-switch .icon{color:#7891ac}.org-switch select{border:0;max-width:340px;padding:11px 25px 11px 3px;background:transparent;min-width:0;margin:0}.avatar{margin-left:auto;display:grid;place-items:center;background:#dceafe;border-radius:50%;width:38px;height:38px;color:#275d99;font-weight:600}.main-content{padding:31px 28px 50px;max-width:1800px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.lead{color:var(--muted);font-size:18px;margin:0}.lead-small{font-size:17px;color:var(--muted)}.muted{color:var(--muted)}.small,small{font-size:13px}.date-label{white-space:nowrap;font-size:13px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.main-column,.right-column{min-width:0;display:flex;flex-direction:column;gap:19px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading h2{margin:0}.text-link{color:var(--blue);display:inline-flex;align-items:center;gap:8px}.text-link:hover{text-decoration:underline}.text-link .icon{width:20px}.icon-link{color:var(--blue)}.task-entry{padding:24px;background:#eaf3fe;border:1px solid #d2e4f9;border-radius:var(--radius)}.task-entry h2{margin-bottom:17px}.task-form{display:flex;align-items:stretch;gap:13px}.input-with-icon{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:#fff;border:1px solid #cbdced;border-radius:9px;padding:0 13px}.input-with-icon .icon{color:#7992ad}.input-with-icon input{border:0;margin:0;padding:13px 0;min-width:0;box-shadow:none}.button{border:1px solid transparent;border-radius:8px;min-height:43px;padding:10px 17px;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:9px;line-height:1.25;text-align:center;transition:background .15s;white-space:normal}.button.primary{background:var(--blue);color:#fff;box-shadow:0 2px 3px #2b68b218}.button.primary:hover{background:var(--blue-dark)}.button.secondary{background:#fff;border-color:#cadbed;color:#315c86}.button.secondary:hover{background:#f3f8ff}.button.danger{background:#fff1ef;color:#a53e30;border-color:#f0c3bc}.button .icon{width:20px;height:20px}.full{width:100%}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.quick-card{display:flex;align-items:flex-start;gap:13px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 16px;min-width:0;transition:border-color .15s,box-shadow .15s}.quick-card:hover{border-color:#9fbfe6;box-shadow:0 4px 14px #3478c80e}.quick-card h3{font-size:15px;margin:1px 0 6px;line-height:1.3}.quick-card p{font-size:13px;color:var(--muted);margin:0;line-height:1.5}.tile-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:47px;border-radius:12px}.tile-icon .icon{width:26px;height:29px}.green{background:#e9f6ee;color:#287348}.blue{background:var(--blue-soft);color:#346baf}.coral{background:#fff0ef;color:#b8493e}.case-row{display:flex;align-items:center;gap:15px;border-top:1px solid var(--line);padding:18px 0;min-width:0}.case-row:hover .case-row-title strong{color:var(--blue)}.case-row-title{flex:1;min-width:0}.case-row-title strong{display:block;font-size:14px;overflow-wrap:anywhere}.case-row-title small{display:block;color:var(--muted);margin-top:4px}.case-row>.icon{width:18px;color:#7994b0}.badge{display:inline-flex;align-items:center;gap:5px;line-height:1.25;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:500;flex-shrink:0}.status-ready,.status-closed{color:#297a49;background:#e9f7ee}.status-running,.status-queued{color:#316bb2;background:#e8f2ff}.status-error{color:#99600f;background:#fff4dd}.status-draft{color:#64768a;background:#f0f3f7}.reminder-row{display:flex;align-items:flex-start;gap:12px;padding:15px 0;border-top:1px solid var(--line)}.reminder-row p{font-size:13px;color:var(--muted);margin:4px 0 0}.circle,.check-button{width:19px;height:19px;border:1.8px solid #7791ac;border-radius:50%;flex-shrink:0;margin-top:3px;background:#fff}.check-button{display:grid;place-items:center;padding:0;font-size:12px}.check-button.checked{background:#318454;color:white;border-color:#318454}.completed{text-decoration:line-through;color:var(--muted)}.assistant-card .section-heading{justify-content:flex-start}.assistant-card .lead-small{margin:0 0 22px}.feedback-link{font-size:13px;color:#6c8196;display:flex;align-items:center;justify-content:center;gap:8px;padding:6px}.feedback-link:hover{color:var(--blue)}.feedback-link .icon{width:18px}.empty-state{text-align:center;padding:34px 15px 25px}.empty-state p{color:var(--muted);font-size:14px}.empty-state .button{margin-top:6px}.empty-icon{margin:0 auto 15px;background:#edf4fc;width:58px;height:58px;border-radius:17px;display:grid;place-items:center;color:#5c90cd}.empty-icon .icon{width:32px;height:32px}.form-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:22px}.stack-form p{margin:0 0 19px}.stack-form h2{margin-bottom:24px}label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;border:1px solid #cad8e8;border-radius:8px;padding:10px 12px;background:#fff;color:var(--text);min-height:43px;max-width:100%}input::placeholder,textarea::placeholder{color:#8a9bb0}textarea{resize:vertical}input[type=checkbox]{width:17px;height:17px;accent-color:var(--blue)}.helptext{display:block;color:var(--muted);font-size:12px;margin-top:5px}.errorlist{color:#a53730;padding:0 0 0 18px;font-size:13px}.breadcrumb{display:block;color:#6786a7;font-size:13px;margin-bottom:18px}.breadcrumb:hover{color:var(--blue)}.notice{padding:13px 16px;border:1px solid #d7e5f3;border-radius:9px;margin-bottom:15px;font-size:14px;background:#edf4fc;overflow-wrap:anywhere}.notice.error{background:#fff0ed;border-color:#f3d1c9;color:#a44337}.notice.success{background:#eef8f0;border-color:#d5e9da;color:#2f7346}.notice.warning{background:#fff7e6;border-color:#f0debd;color:#93630f}.notice.info{color:#456c95}.messages{margin-bottom:20px}.org-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:17px 0}.org-row p{margin:3px 0}.search-form{display:flex;gap:12px;margin-bottom:20px;max-width:600px}.file-chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:17px}.file-chip{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;padding:10px 12px;min-width:0;max-width:100%;font-size:13px}.file-chip:hover{border-color:#83aad6}.file-chip .icon{color:#4c80b6;width:20px}.file-chip span{overflow-wrap:anywhere;min-width:0}.file-chip small{display:block;color:var(--muted);font-size:11px}.dropzone{border:1.5px dashed #b3cee9;border-radius:10px;background:#f8fbff;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;padding:22px;cursor:pointer}.dropzone.dragover{background:#e6f0ff}.dropzone>.icon{width:27px;height:27px;color:var(--blue)}.dropzone strong{font-weight:500}.dropzone span{font-size:12px;font-weight:400;color:var(--muted)}.dropzone input{font-size:12px;font-weight:400;max-width:100%;margin-top:8px}.upload-form>.button{margin-top:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.file-mapping{margin:17px 0 22px;border-top:1px solid var(--line);padding-top:19px}.file-mapping h3{margin-bottom:14px}.mapping-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.mapping-controls>div{min-width:0}.mapping-controls label{font-size:12px}.mapping-controls select{font-size:13px}.mapping-hint{font-size:12px;color:var(--muted);margin-top:9px}.check-label{display:flex;align-items:flex-start;gap:8px;font-weight:400;margin:15px 0 20px}.check-label input{flex-shrink:0}.table-scroll{overflow:auto;max-width:100%;margin:15px 0;border:1px solid var(--line);border-radius:8px;max-height:520px}.table-scroll table{border-collapse:collapse;min-width:100%;font-size:13px}.table-scroll th{padding:13px 14px;text-align:left;background:#edf3fa;color:#436180;font-weight:600;white-space:nowrap;border-bottom:1px solid var(--line);position:sticky;top:0}.table-scroll td{padding:12px 14px;border-bottom:1px solid #e8eef5;white-space:nowrap;max-width:420px;overflow-wrap:anywhere}.table-scroll tr:last-child td{border-bottom:0}.table-scroll tr:hover td{background:#f9fbff}.table-filter{max-width:350px!important}.preview-table{max-height:210px}.preview-table th,.preview-table td{font-size:12px;padding:8px 10px}.timeline>div{display:flex;gap:11px;margin:14px 0}.timeline-dot{width:8px;height:8px;background:#83a7ce;border-radius:50%;margin-top:8px;flex-shrink:0}.timeline p{font-size:13px;margin:0}.timeline small{display:block;color:var(--muted);margin-top:3px}.spaced{margin-top:22px}.narrow{max-width:680px}.danger-zone summary{font-size:12px;color:#996a65;cursor:pointer}.danger-zone p{margin-top:12px}hr{border:0;border-top:1px solid var(--line);margin:21px 0}details>summary{cursor:pointer}.chat-log{max-height:410px;overflow:auto;min-height:95px;padding-right:3px;scroll-behavior:smooth}.chat-message{margin:12px 0;padding:12px;background:#f4f8fd;border-radius:10px;overflow-wrap:anywhere}.chat-message.user{background:#e7f1ff}.chat-message p{white-space:pre-wrap;font-size:14px;margin:5px 0 0}.chat-message small{color:#647f9e;font-weight:600}.chat-welcome{color:var(--muted);font-size:14px;padding:7px 0 21px}.chat-form{border-top:1px solid var(--line);margin-top:16px;padding-top:17px}.chat-form .button{margin-top:9px;min-height:36px;font-size:13px}.chat-status{margin:9px 0 0}.chat-action{margin:8px 0}.assistant-page{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px}.assistant-page .chat-log{max-height:550px;min-height:220px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.help-list,.info-panel ol{padding-left:20px;color:#526b84}.help-list li,.info-panel li{margin:12px 0}.feedback-item{padding:15px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.feedback-item p{margin:9px 0;white-space:pre-wrap}.auth-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 18px;background:linear-gradient(130deg,#edf4fe,#f7faff)}.auth-brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:650;color:#294866;margin-bottom:30px}.auth-brand .icon{color:#397dcc;width:29px;height:34px}.auth-card{width:100%;max-width:460px;background:#fff;border:1px solid #dce7f4;border-radius:18px;padding:34px;box-shadow:0 15px 50px #2e587514}.auth-card h1{font-size:29px;margin:10px 0}.auth-card form{margin:25px 0 18px}.auth-card input{margin-bottom:18px}.auth-card .button{margin-top:9px}.eyebrow{font-size:10px;letter-spacing:1.4px;color:#6990b6;font-weight:600}.auth-card ul{padding-left:17px;font-size:12px;color:var(--muted)}.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}.mobile-menu{display:none}.icon-button{border:0;background:transparent;color:var(--text);padding:5px}
@media(min-width:1650px){.sidebar{width:270px}.workspace{margin-left:270px;width:calc(100% - 270px)}.main-content{padding:38px 35px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 335px}.quick-card{padding:25px 20px}.quick-card h3{font-size:16px}}
@media(max-width:1220px){.sidebar{width:215px}.workspace{margin-left:215px;width:calc(100% - 215px)}.brand{font-size:16px;gap:9px}.brand-icon .icon{width:29px}.nav-item{padding:11px;font-size:14px;gap:11px}.main-content{padding:25px 20px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 255px;gap:15px}.panel{padding:18px}.quick-actions{gap:9px}.quick-card{flex-direction:column;padding:16px 13px}.task-form{flex-direction:column}.task-form .button{align-self:flex-end}.case-row{gap:10px}.case-row .badge{max-width:110px}.form-layout{grid-template-columns:1fr 1fr}.page-heading h1{font-size:29px}.assistant-page{grid-template-columns:1fr 265px}}
@media(max-width:980px){.dashboard-grid,.assistant-page{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:1fr 1fr}.case-layout .right-column{display:flex}.help-grid{grid-template-columns:1fr}.form-layout{grid-template-columns:1fr}.date-label{display:none}.quick-card{flex-direction:row}.page-heading{align-items:flex-start}.page-heading>.button{flex-shrink:0;font-size:13px}.topbar{padding:0 20px}.brand{padding-bottom:26px}.case-row .badge{max-width:none}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:245px;top:64px;padding-top:20px}.sidebar.open{transform:translateX(0);box-shadow:14px 0 35px #14283a35}.sidebar .brand{display:none}.workspace{margin-left:0;width:100%}.topbar{height:64px;padding:0 15px;gap:9px}.mobile-menu{display:block}.org-switch{min-width:0;max-width:calc(100vw - 160px);padding:0 6px}.org-switch>.icon{display:none}.org-switch select{padding:9px 20px 9px 3px;font-size:13px;max-width:100%}.topbar>.badge{font-size:10px;padding:5px}.avatar{width:32px;height:32px;flex-shrink:0}.main-content{padding:24px 15px 40px}h1,.page-heading h1{font-size:27px}.lead{font-size:15px}.page-heading{flex-direction:column;gap:12px}.page-heading>.button{align-self:flex-start}.quick-actions{grid-template-columns:1fr}.quick-card{flex-direction:row;padding:16px}.quick-card p br{display:none}.quick-card p{font-size:13px}.right-column{grid-template-columns:1fr}.case-row{flex-wrap:wrap}.case-row-title{min-width:150px}.case-row>.badge{margin-left:55px}.case-row>.icon{margin-left:auto}.panel{padding:18px}.form-grid,.mapping-controls{grid-template-columns:1fr}.task-entry{padding:18px}.task-form .button{width:100%}.input-with-icon input{font-size:13px}.auth-card{padding:27px 24px}.table-scroll{margin-left:0;margin-right:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
