:root{--ink:#132633;--ink-soft:#596d78;--edge:#e1e8eb;--canvas:#f3f6f7;--white:#fff;--nav:#102e38;--teal:#077f7b;--teal-dark:#006764;--teal-pale:#e2f5f1;--red:#aa303b;--amber:#a26712;--radius:16px;--shadow:0 10px 32px rgba(22,42,52,.055);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--canvas)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #22aeaa;outline-offset:2px}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.9px;margin-bottom:5px}h2{font-size:19px;letter-spacing:-.3px;margin-bottom:0}h3{font-size:15px;margin-bottom:0}p{line-height:1.55}.muted{color:var(--ink-soft)}.small{font-size:12px}.hidden{display:none!important}.ic{height:18px;width:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.ic.lg{width:23px;height:23px}.btn{border:1px solid var(--edge);background:white;border-radius:11px;min-height:42px;padding:9px 15px;color:var(--ink);font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,border-color .15s,transform .15s}.btn:hover{background:#f1f7f7;border-color:#9ebfc0}.btn.primary{background:var(--teal);color:white;border-color:var(--teal)}.btn.primary:hover{background:var(--teal-dark)}.btn.danger{color:var(--red)}.btn.small{min-height:34px;padding:6px 11px;font-size:12px}.btn.icon-btn{padding:10px;min-width:42px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>label{font-size:12px;font-weight:700;color:#425968}.field input,.field select,.field textarea{border:1px solid #d4e0e3;background:white;border-radius:10px;min-height:43px;width:100%;padding:10px 12px;outline:none;color:var(--ink)}.field textarea{min-height:88px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(7,127,123,.12)}.field.checkbox{flex-direction:row;align-items:center;gap:10px;padding-top:22px}.field.checkbox input{height:19px;width:19px;min-height:0}.field.checkbox label{font-size:14px}.field small{color:var(--ink-soft)}.error{color:#b12b34;margin:8px 0;font-size:13px}.note{border-radius:10px;background:#f2f7f8;color:#41616c;padding:12px 15px;font-size:12px}.chip{display:inline-flex;align-items:center;border-radius:100px;padding:5px 9px;border:1px solid #d6e4e5;background:#f0f6f7;color:#47717a;white-space:nowrap;font-size:11px;font-weight:750}.chip.good{background:#e5f5ec;color:#16734c;border-color:#bde5cd}.chip.warn{background:#fff5e1;color:#986012;border-color:#f0dab0}.chip.bad{background:#fce9ea;color:#ac2d3b;border-color:#f2c5ca}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}.login-hero{background:linear-gradient(145deg,rgba(5,33,43,.73),rgba(8,70,78,.32)),url('/harbor.webp') center/cover;display:flex;flex-direction:column;justify-content:space-between;padding:45px 54px;color:white}.login-hero img{max-width:330px;max-height:130px;object-fit:contain;object-position:left}.login-hero h2{font-size:40px;max-width:560px;letter-spacing:-1.6px;line-height:1.2;margin-bottom:14px}.login-form{display:flex;justify-content:center;align-items:center;padding:38px}.login-box{width:min(100%,410px);background:white;border:1px solid var(--edge);box-shadow:var(--shadow);padding:42px;border-radius:23px}.login-box>img{width:124px;height:65px;object-fit:contain;margin-bottom:20px}.login-box h1{font-size:27px}.login-box .field{margin:17px 0}.app-shell{display:grid;grid-template-columns:250px minmax(0,1fr);height:100vh;height:100dvh;overflow:hidden}.sidebar{background:var(--nav);color:#cfdddf;display:flex;flex-direction:column;min-height:0;overflow:hidden}.brand{padding:24px 21px 25px;display:flex;align-items:center;gap:13px;color:white;border-bottom:1px solid rgba(255,255,255,.08)}.brand img{width:48px;height:44px;object-fit:contain}.brand strong{display:block;font-size:14px;letter-spacing:.5px}.brand small{display:block;font-size:10px;color:#a5c0c3;letter-spacing:1.7px;margin-top:4px}.nav-scroll{padding:20px 12px;overflow:auto;flex:1;scrollbar-width:thin}.nav-label{color:#6f999f;text-transform:uppercase;letter-spacing:1.4px;font-weight:750;font-size:10px;margin:16px 11px 9px}.nav-btn{display:flex;align-items:center;gap:13px;width:100%;border:0;background:transparent;color:#bed4d6;text-align:left;border-radius:11px;padding:12px 13px;min-height:43px;margin-bottom:3px;font-size:13px;font-weight:650}.nav-btn:hover{color:white;background:rgba(255,255,255,.07)}.nav-btn.active{background:#20575e;color:white;box-shadow:inset 3px 0 #41d3bd}.sidebar-bottom{padding:16px 15px;border-top:1px solid rgba(255,255,255,.09)}.sidebar-bottom button{color:#c9d7d8;background:transparent;border:1px solid rgba(255,255,255,.16);width:100%;border-radius:10px;min-height:42px}.user-chip{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#a6c7c9;margin-bottom:13px}.workspace{min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}.topbar{height:80px;min-height:80px;padding:0 33px;background:#fff;border-bottom:1px solid var(--edge);display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar .eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:800;color:var(--teal);text-transform:uppercase;margin-bottom:3px}.topbar h1{font-size:21px;margin:0}.top-actions{display:flex;align-items:center;gap:12px}.top-actions .date-pill{font-size:12px;color:#687c86;padding:8px 11px;background:#f4f7f8;border-radius:9px}.workspace-scroll{padding:30px 34px 55px;overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;scrollbar-gutter:stable}.content-max{max-width:1550px;margin:auto}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:23px}.section-head p{margin:6px 0 0;color:var(--ink-soft);font-size:13px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:19px}.kpi{background:white;border:1px solid var(--edge);box-shadow:var(--shadow);border-radius:var(--radius);padding:22px;min-width:0}.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#617780;font-size:12px;font-weight:650}.kpi .val{font-size:33px;letter-spacing:-1px;font-weight:770;margin-top:13px}.kpi .sub{font-size:11px;color:#84969d;margin-top:8px}.kpi .icon-wrap{color:var(--teal);background:#e9f5f2;border-radius:12px;width:37px;height:37px;display:grid;place-items:center}.overview-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.9fr);gap:18px}.panel{border:1px solid var(--edge);background:white;border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.panel-head{padding:22px 23px 17px;border-bottom:1px solid #edf1f2;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-body{padding:20px 23px}.panel-head small{font-size:12px;color:var(--ink-soft)}.empty{padding:38px 18px;color:#6b7f88;text-align:center;line-height:1.6}.empty strong{display:block;color:#304c55;margin-bottom:8px}.data-table-wrap{overflow-x:auto;max-width:100%}.data-table{width:100%;border-collapse:collapse;text-align:left;min-width:620px}.data-table th{background:#f8fafb;color:#788b94;font-size:10px;text-transform:uppercase;letter-spacing:1.1px;padding:14px 17px;font-weight:750;white-space:nowrap}.data-table td{border-top:1px solid #edf1f3;padding:15px 17px;font-size:12px;vertical-align:middle}.data-table td strong{font-size:13px}.data-table .btn{white-space:nowrap}.data-table .dim{color:#73878f}.row-meta{font-size:11px;color:#82969e;margin-top:4px}.form-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.search{border:1px solid var(--edge);background:#fff;border-radius:11px;padding:11px 12px;min-width:min(260px,100%);min-height:42px}.pill-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#17a78d;margin-right:7px}.overview-list{padding:0;margin:0;list-style:none}.overview-list li{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid #edf1f3}.overview-list li:last-child{border:0}.overview-list .text{min-width:0}.overview-list strong{font-size:13px}.overview-list span{color:var(--ink-soft);font-size:11px;display:block;margin-top:4px}.toast{position:fixed;bottom:22px;right:22px;z-index:80;background:var(--nav);color:white;padding:13px 17px;border-radius:12px;box-shadow:0 12px 35px #0003;max-width:min(400px,90vw)}.toast.is-error{background:#8f2833}.backdrop{position:fixed;inset:0;background:rgba(13,36,44,.49);z-index:90;display:flex;justify-content:flex-end}.sheet{width:min(700px,100vw);height:100%;background:#fff;display:flex;flex-direction:column;box-shadow:-20px 0 55px #06151b3b;overflow:hidden}.sheet-head{padding:24px 27px;border-bottom:1px solid var(--edge);display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:93px}.sheet-scroll{overflow:auto;padding:26px 27px;flex:1}.sheet-footer{padding:18px 27px;border-top:1px solid var(--edge);display:flex;justify-content:flex-end;gap:10px}.form-section{border:1px solid var(--edge);border-radius:15px;padding:22px;margin-bottom:17px}.form-section h3{font-size:14px;padding-bottom:14px;margin-bottom:20px;border-bottom:1px solid var(--edge)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .wide{grid-column:1/-1}.sheet-title{margin:0 0 6px;font-size:21px}.readout{border:1px solid #bfdfdf;background:#eaf6f4;border-radius:12px;padding:15px;margin:10px 0;color:#075953}.readout strong{font-size:18px;display:block;margin-top:7px}.chat-layout{display:grid;grid-template-rows:auto minmax(280px,1fr) auto;height:min(680px,calc(100dvh - 180px));min-height:380px}.chat-log{padding:19px 24px;overflow-y:auto;background:linear-gradient(0deg,#f6f9f9,#fff)}.message{max-width:min(510px,90%);margin:0 0 12px;border:1px solid #dfe8e8;border-radius:14px 14px 14px 3px;background:white;padding:12px 15px}.message.mine{background:#e0f3ef;margin-left:auto;border-color:#cae8e1;border-radius:14px 14px 3px 14px}.message .meta{font-size:10px;color:#769197;margin-bottom:6px;font-weight:700}.message .body{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-send{padding:17px 22px;display:flex;gap:10px;border-top:1px solid var(--edge)}.chat-send input{flex:1;min-width:0;min-height:42px;border:1px solid var(--edge);border-radius:9px;padding:9px 12px}.archive-note{padding:16px 20px;border:1px solid #e5d9b5;background:#fff9e9;color:#735c2a;border-radius:12px;margin-bottom:20px}.mobile-nav-toggle{display:none}.subtle-line{color:#83969a;font-size:12px}.detail-two{display:grid;grid-template-columns:1fr 1fr;gap:13px}.detail-two>div{background:#f7fafb;border-radius:10px;padding:14px}.detail-two strong{display:block;margin-top:8px}.status-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf1f2}.status-line:last-child{border-bottom:0}.status-line span{color:var(--ink-soft)}
@media(max-width:1120px){.app-shell{grid-template-columns:215px minmax(0,1fr)}.topbar{padding:0 23px}.workspace-scroll{padding:24px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid{grid-template-columns:1fr}.brand{padding-left:14px}}
@media(max-width:750px){.login{grid-template-columns:1fr}.login-hero{padding:22px;min-height:230px}.login-hero img{max-height:70px}.login-hero h2{font-size:23px;max-width:380px}.login-form{padding:18px}.login-box{padding:28px}.app-shell{display:block;overflow:visible;height:auto;min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:265px;z-index:60;transform:translateX(-100%);transition:transform .2s;box-shadow:0 0 22px #0619223d}.sidebar.open{transform:translateX(0)}.workspace{min-height:100dvh;height:auto;overflow:visible}.topbar{position:sticky;z-index:30;top:0;height:70px;min-height:70px;padding:0 16px}.workspace-scroll{padding:21px 14px 36px;overflow:visible}.mobile-nav-toggle{display:inline-flex}.top-actions .date-pill{display:none}.section-head{align-items:flex-start}.form-tools{width:100%}.section-head{flex-wrap:wrap}.sheet-head,.sheet-scroll,.sheet-footer{padding-left:18px;padding-right:18px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.kpi-grid{gap:11px}.kpi{padding:16px}.kpi .val{font-size:26px}.data-table{min-width:570px}.chat-layout{height:calc(100dvh - 170px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important}}
