:root{--bg:#f6f7f3;--paper:#fff;--ink:#253d37;--muted:#738079;--green:#174e46;--soft:#eaf2ee;--line:#e4e8e1;--gold:#e9b76f;--coral:#b96546;--danger:#aa423d;--radius:18px;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:650;letter-spacing:-1px}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:15px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:700}.loading{padding:80px;text-align:center}.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:650;letter-spacing:-.8px}.brand img{width:38px;height:38px}.brand small{display:block;font-size:10px;letter-spacing:1.7px;font-weight:500;color:var(--muted);margin-top:4px}.app-shell{display:grid;grid-template-columns:236px 1fr;min-height:100vh}.sidebar{padding:32px 22px;border-right:1px solid var(--line);background:#fafbf8;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:236px}.sidebar .brand{margin:0 10px 42px}.nav-label{font-size:10px;color:var(--muted);letter-spacing:1.8px;margin:24px 14px 12px}.nav-btn{background:none;border:0;text-align:left;display:flex;align-items:center;gap:12px;padding:13px 14px;width:100%;color:#6c7871;border-radius:10px;margin-bottom:4px;font-weight:500}.nav-btn:hover{background:var(--soft)}.nav-btn.active{background:var(--green);color:white}.ico{display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;flex-shrink:0}.ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-footer{margin-top:auto;padding-top:22px}.sidebar-note{border:1px solid var(--line);border-radius:13px;padding:15px;line-height:1.7;font-size:12px;margin-bottom:20px;background:#fff}.sidebar-note strong{display:block;color:var(--green)}.main-shell{grid-column:2;min-width:0}.topbar{height:88px;padding:0 42px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb strong{color:var(--ink);font-weight:500}.top-actions{display:flex;align-items:center;gap:16px}.demo-pill{border:1px solid #e6d7b9;background:#fbf5e7;color:#8d6b33;border-radius:20px;padding:6px 12px;font-size:11px}.icon-btn{background:transparent;border:0;padding:8px;color:var(--muted);border-radius:8px}.icon-btn:hover{background:var(--soft)}.profile{display:flex;gap:10px;align-items:center}.avatar{height:36px;width:36px;border-radius:50%;background:#e7eadd;display:flex;align-items:center;justify-content:center;color:var(--green);font-weight:650}.profile span{font-size:12px}.profile small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.content{padding:34px 42px 40px;max-width:1460px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.page-heading p{margin-top:9px;color:var(--muted);line-height:1.6}.date-label{font-size:12px;color:var(--muted);margin-bottom:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--green);padding:11px 16px;border-radius:9px;font-weight:550;background:var(--green);color:white;white-space:nowrap}.btn:hover{background:#236359}.btn.secondary{border-color:var(--line);background:white;color:var(--ink)}.btn.secondary:hover{background:var(--soft)}.btn.ghost{background:transparent;border-color:transparent;color:var(--green);padding:8px 0}.btn.danger{background:var(--danger);border-color:var(--danger)}.btn.compact{font-size:12px;padding:8px 11px}.hero{background:var(--green);color:#fff;border-radius:var(--radius);padding:28px 32px;display:flex;justify-content:space-between;gap:24px;overflow:hidden;position:relative;margin-bottom:24px}.hero .eyebrow{color:#a9c8b4;margin-bottom:12px}.hero h2{font-size:25px;font-weight:500;max-width:530px;line-height:1.4}.hero p{margin-top:12px;font-size:13px;color:#bfd5c8;line-height:1.7}.hero .btn{background:#f4ecd9;color:var(--green);border:0;margin-top:19px}.hero-art{width:158px;display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:0}.hero-art img{width:96px;height:96px;z-index:1;transform:rotate(-8deg)}.halo{position:absolute;width:170px;height:170px;border:1px solid #ffffff15;border-radius:50%}.halo:after{content:"";position:absolute;inset:18px;border:1px solid #ffffff20;border-radius:50%}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.stat{border:1px solid var(--line);background:#fff;border-radius:14px;padding:20px}.stat-head{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.stat-icon{color:var(--green);background:var(--soft);padding:8px;border-radius:9px;display:inline-flex}.stat-number{font-size:32px;letter-spacing:-1px;margin:14px 0 7px;font-weight:600}.stat-note{font-size:11px;color:var(--muted)}.stat.attention .stat-icon{background:#fcf0e5;color:var(--coral)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:22px}.stack{display:flex;flex-direction:column;gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-width:0}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.card-header p{font-size:12px;color:var(--muted);margin-top:6px}.tag{display:inline-flex;border-radius:6px;padding:4px 8px;background:var(--soft);font-size:10px;color:var(--green);white-space:nowrap}.tag.important,.tag.pending{background:#fbf0df;color:#946127}.tag.urgent,.tag.overdue{background:#f9e9e5;color:var(--danger)}.tag.done,.tag.approved,.tag.resolved{background:#e8f2e8;color:#4b754d}.tag.rejected{background:#f8e6e4;color:var(--danger)}.task-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #edf0e9}.task-row:first-child{padding-top:0}.task-row:last-child{border:0;padding-bottom:0}.task-check{width:21px;height:21px;border-radius:6px;border:1px solid #d6dfd3;background:white;display:flex;align-items:center;justify-content:center;color:var(--green);flex-shrink:0}.task-check.completed{background:var(--soft)}.row-body{flex:1;min-width:0}.row-body strong{font-size:13px;font-weight:550;display:block;line-height:1.5}.row-meta{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.5}.row-actions{display:flex;gap:6px;align-items:center}.link-btn{border:0;background:none;text-align:left;padding:0;color:var(--green);font:inherit;cursor:pointer}.case-row{padding:15px 0;border-bottom:1px solid var(--line)}.case-row:last-child{border:0;padding-bottom:0}.case-row h3{margin:8px 0 7px}.case-row p{font-size:12px;color:var(--muted);line-height:1.7}.case-row .row-meta{display:flex;justify-content:space-between;gap:8px}.sop-item{padding:13px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:12px;line-height:1.6}.sop-item:last-of-type{border-bottom:0}.sop-item strong{color:var(--coral);white-space:nowrap}.source-note{font-size:10px;color:var(--muted);line-height:1.7;margin-top:14px}.source-banner{padding:12px 15px;background:#f8f3e5;border:1px solid #e9dfc8;border-radius:10px;color:#8b6a3d;font-size:12px;line-height:1.6;margin-bottom:18px}.empty{padding:30px 15px;text-align:center;color:var(--muted);line-height:1.7}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.toolbar input{max-width:360px;flex:1}.toolbar select{max-width:190px}input,textarea,select{background:white;border:1px solid #dce3d9;padding:11px 12px;border-radius:8px;width:100%;color:var(--ink)}textarea{min-height:95px;resize:vertical}label{display:block;font-size:12px;font-weight:550;margin:16px 0 7px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{margin-top:12px}.form-help{font-size:11px;color:var(--muted);line-height:1.6;margin-top:7px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.item-card{padding:23px;display:flex;flex-direction:column;gap:12px}.item-card h3{font-size:16px;line-height:1.5}.item-card p{font-size:12px;line-height:1.8;color:var(--muted);white-space:pre-wrap}.item-card .row-actions{margin-top:auto;padding-top:8px}.split{display:flex;justify-content:space-between;align-items:center;gap:10px}.approval-amount{font-size:24px;letter-spacing:-.6px}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{text-align:left;padding:12px;color:var(--muted);font-size:10px;letter-spacing:.8px;text-transform:uppercase;border-bottom:1px solid var(--line)}.data-table td{padding:14px 12px;border-bottom:1px solid var(--line);line-height:1.5}.table-wrap{overflow-x:auto}.data-table tr:last-child td{border:0}.notification{display:flex;gap:15px;padding:20px 0;border-bottom:1px solid var(--line)}.notification:last-child{border:0}.notification.unread strong:after{content:"";display:inline-block;width:6px;height:6px;background:var(--coral);border-radius:50%;margin-left:9px}.timeline{border-left:2px solid var(--line);margin-left:8px;padding-left:22px}.timeline-item{position:relative;margin:20px 0}.timeline-item:before{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#b5c8b8;left:-27px;top:5px}.timeline-item p{font-size:12px;line-height:1.7;white-space:pre-wrap;margin-top:7px}.detail-text{white-space:pre-wrap;line-height:1.8;font-size:13px;margin:20px 0}.chat-layout{max-width:850px;margin:auto}.tera-intro{text-align:center;padding:24px 12px 30px}.tera-intro img{width:68px;height:68px;margin-bottom:16px}.tera-intro h2{font-size:26px}.tera-intro p{color:var(--muted);line-height:1.8;margin-top:12px}.suggestions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:20px}.suggestions button{border:1px solid var(--line);border-radius:20px;background:white;font-size:12px;padding:9px 14px;color:var(--green)}.chat-log{display:flex;flex-direction:column;gap:16px;min-height:100px}.bubble{max-width:85%;border:1px solid var(--line);border-radius:16px;padding:16px 19px;background:#fff;white-space:pre-wrap;line-height:1.8;font-size:13px}.bubble.user{align-self:flex-end;background:var(--soft);border-color:transparent}.bubble .row-meta{margin-top:10px}.chat-form{position:sticky;bottom:20px;background:#fff;border:1px solid #dbe3d6;border-radius:16px;padding:12px;display:flex;align-items:center;gap:10px;margin-top:24px;box-shadow:0 8px 30px #203a2e08}.chat-form input{border:0;padding:12px 7px}.chat-foot{font-size:10px;color:var(--muted);text-align:center;margin-top:13px;line-height:1.7}.chart-bars{height:120px;display:flex;align-items:flex-end;gap:14px;padding-top:10px;margin:18px 0 10px}.chart-bars span{flex:1;background:#dce9df;border-radius:5px 5px 0 0;display:block;height:60%}.chart-bars span:nth-child(2){height:80%}.chart-bars span:nth-child(3){height:45%}.chart-bars span:nth-child(4){height:90%}.chart-bars span:nth-child(5){height:70%}.chart-bars span:nth-child(6){height:100%;background:var(--green)}.chart-labels{display:flex;justify-content:space-around;color:var(--muted);font-size:10px}.login-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:var(--green);padding:58px 10%;color:white;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story .brand small{color:#a6c5b0}.login-story h1{font-size:52px;line-height:1.22;max-width:500px;letter-spacing:-2px;margin:36px 0 20px}.login-story p{color:#b9d0c2;font-size:15px;line-height:1.9;max-width:410px}.login-story .eyebrow{color:var(--gold)}.login-story footer{font-size:11px;color:#a6c5b0;line-height:1.8}.login-art{display:flex;align-items:center;gap:15px;margin:32px 0}.login-art img{width:80px;height:80px}.login-art span{font-size:12px;color:#c5d6c8}.login-panel{display:flex;align-items:center;justify-content:center;padding:50px 24px;background:var(--bg)}.login-card{width:100%;max-width:390px}.login-card h2{font-size:30px;margin-bottom:13px}.login-card>p{line-height:1.8;color:var(--muted);margin-bottom:24px}.login-card .btn{width:100%;margin-top:24px}.login-note{margin-top:30px;border-top:1px solid var(--line);padding-top:22px;color:var(--muted);font-size:12px;line-height:1.8}.error-box{color:var(--danger);background:#f9ece7;border-radius:8px;padding:12px;line-height:1.6;font-size:12px;margin-top:15px}.footer-note{color:var(--muted);font-size:10px;margin-top:28px;display:flex;justify-content:space-between;gap:10px;line-height:1.8}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;width:min(620px,92vw);max-height:88vh;box-shadow:0 30px 90px #143b2926;color:var(--ink)}dialog::backdrop{background:#142d2355;backdrop-filter:blur(3px)}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.modal-header h2{font-size:23px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:14px 22px;border-radius:10px;z-index:20;box-shadow:0 10px 35px #17382b30;max-width:90vw;font-size:13px}.mobile-nav{display:none}.pre{white-space:pre-wrap;font-size:11px;line-height:1.8;max-height:220px;overflow:auto}.break{overflow-wrap:anywhere}.accent{color:var(--coral)}.account-info{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:25px 0}.account-info dt{font-size:11px;color:var(--muted);margin-bottom:7px}.account-info dd{margin:0;font-size:14px}.permissions-list{display:flex;gap:8px;flex-wrap:wrap}.notice-inline{font-size:12px;background:var(--soft);border-radius:10px;padding:15px;line-height:1.7;margin-top:16px}
@media(min-width:1500px){.content{padding-top:44px}.hero{padding:34px 38px}.stats{gap:22px}.dashboard-grid{gap:26px}}
@media(max-width:1100px){.sidebar{width:205px;padding:26px 15px}.app-shell{grid-template-columns:205px 1fr}.topbar{padding:0 25px}.content{padding:28px 25px}.dashboard-grid{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:16px}.login-story h1{font-size:42px}.profile span{display:none}.item-grid{gap:14px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{display:none}.main-shell{padding-bottom:72px}.topbar{height:70px;padding:0 20px}.breadcrumb{font-size:11px}.top-actions{gap:9px}.content{padding:24px 18px}.page-heading{align-items:flex-start;gap:10px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}.date-label{font-size:11px}.hero{padding:24px;gap:10px}.hero h2{font-size:21px}.hero-art{width:70px}.hero-art img{width:65px;height:65px}.halo{width:100px;height:100px}.hero p{font-size:12px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat-number{font-size:28px}.stat{padding:16px}.card{padding:20px}.item-grid{grid-template-columns:1fr}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:#fafbf8;border-top:1px solid var(--line);padding:9px 6px 12px;display:flex;justify-content:space-around;z-index:5}.mobile-nav button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);font-size:10px;padding:3px 12px}.mobile-nav button.active{color:var(--green)}.login-shell{display:flex;flex-direction:column}.login-story{padding:30px 26px}.login-story h1{font-size:32px;max-width:350px;margin:22px 0 15px}.login-story .brand{font-size:23px}.login-story p{font-size:12px;max-width:100%}.login-story footer,.login-art{display:none}.login-panel{padding:35px 25px}.login-card h2{font-size:25px}.profile .avatar{height:30px;width:30px;font-size:12px}.chat-form{bottom:85px}.footer-note{display:block}.form-grid{grid-template-columns:1fr;gap:0}.row-actions{flex-wrap:wrap}.task-row{gap:10px}.task-row .tag{display:none}.page-heading .btn{font-size:12px;padding:10px 12px}.hero-art .halo{display:none}.account-info{gap:20px}.bubble{max-width:95%}.notification{gap:10px}.sop-item{font-size:11px}#toast{bottom:85px}.topbar .demo-pill{font-size:10px;padding:5px 9px}}
.ai-status{margin-bottom:22px}.ai-status .detail-text{margin:14px 0;font-size:12px}.ai-capabilities{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;border-top:1px solid var(--line);padding-top:16px}.ai-capabilities strong{font-size:12px}.ai-capabilities p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:7px}@media(max-width:760px){.ai-capabilities{grid-template-columns:1fr;gap:12px}.ai-status .split{align-items:flex-start;flex-wrap:wrap}}
.context-export{min-height:320px;font-family:Consolas,monospace;font-size:11px}

.approval-submenu{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}

.compact-intro{display:flex;align-items:center;justify-content:center;gap:20px;padding:16px}.compact-intro img{width:72px!important;height:72px!important}.chat-log{min-height:360px;max-height:65vh;overflow:auto}.tera-flame{animation:tera-glow 2s ease-in-out infinite}@keyframes tera-glow{50%{filter:drop-shadow(0 0 14px #efb95b);transform:scale(1.04)}}@media(prefers-reduced-motion:reduce){.tera-flame{animation:none}}

.tera-mascot{width:110px;height:auto}.brand .brand-mascot{width:64px;height:60px}.login-art .tera-mascot{width:160px;height:auto}

.sync-spinner{display:inline-block;width:20px;height:20px;border:3px solid #d7e8e3;border-top-color:#18564b;border-radius:50%;animation:sync-spin .85s linear infinite;vertical-align:middle;margin-right:8px}.sync-spinner.small{width:14px;height:14px;border-width:2px}.sync-database{margin-top:20px;padding-top:12px;border-top:1px solid #dce5df}.sync-database progress{display:block;width:140px;height:9px;margin-top:7px;accent-color:#18564b}@keyframes sync-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.sync-spinner{animation:none}}

/* Compact workspace and collapsible navigation, owner correction 6 October. */
@media(min-width:761px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{width:210px;padding:20px 14px;overflow-y:auto}.sidebar .brand{margin:0 4px 22px;font-size:22px}.topbar{height:64px;padding:0 26px}.content{max-width:1140px;padding:24px 26px 30px}.card{padding:18px}.page-heading h1{font-size:26px}.page-heading{margin-bottom:20px}.nav-btn{padding:10px 12px;min-height:38px}.sidebar-note{font-size:10px;line-height:1.6;padding:10px;margin-bottom:10px}.nav-footer{padding-top:18px}.hero{padding:24px}.stats{margin:18px 0}.stat{padding:16px}.tera-greeting{margin:20px 0}.ai-status{margin-bottom:16px}.chat-form{padding:8px}.topbar .profile span{font-size:12px}}
.nav-group{margin:6px 0;border-top:1px solid var(--line);padding-top:6px}.nav-group summary{cursor:pointer;list-style:none;padding:12px;color:var(--green);font-weight:600;display:flex;justify-content:space-between;align-items:center}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary span{transition:transform .15s}.nav-group[open] summary span{transform:rotate(180deg)}.nav-group nav{padding-left:8px}.nav-group .nav-btn{font-size:12px}.main-shell>#global-accurate-sync{max-width:1140px;margin:12px auto 0;padding:0 26px}.sync-database .data-table td{padding:9px 10px}.sidebar .nav-footer{margin-top:auto}

@media(min-width:761px){.content{margin:0}.topbar{max-width:1140px}.main-shell>#global-accurate-sync{margin:12px 0 0}}

.employee-avatar{width:56px;height:56px;object-fit:cover;border-radius:50%;display:block}

.password-visibility{display:flex;align-items:center;gap:8px}.password-visibility input{width:auto}.employee-avatar{border-radius:0!important;aspect-ratio:1/1;object-fit:cover}

.chat-layout{max-width:none}.compact-intro{justify-content:flex-start;margin:0}.compact-intro canvas{width:150px!important;height:138px!important}.chat-log{max-height:65vh;min-height:35vh}.chat-bubble.user{background:#d5e9fa}.chat-bubble.assistant{background:#e8f2e8}

.chat-log .bubble{background:#ffffff;border:1px solid #dbe5df;border-radius:20px;box-shadow:0 4px 14px #174c4310}.chat-log .bubble.user{background:#dfefe8;border-color:#c7e1d6}

/* Antrean owner: Beranda, navigasi dan chat portrait. */
.hero{padding:16px 22px;align-items:center;background:var(--soft);color:var(--ink);margin-bottom:16px;min-height:150px}.hero h2{font-size:21px;line-height:1.25}.hero p{margin-top:7px;line-height:1.5;color:var(--muted)}.hero .eyebrow{margin-bottom:7px;color:var(--green)}.hero .btn{margin-top:10px;background:var(--green);color:white}.hero-art{width:200px}.hero-art canvas.tera-mascot{width:200px!important;height:184px!important}.page-heading{margin-bottom:16px}.complaint-summary{margin-bottom:16px}.complaint-summary .btn{margin:10px 0}.nav-group summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border-radius:10px;color:var(--green);cursor:pointer;font-weight:600}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary>span:last-child{margin-left:auto;transition:transform .2s}.nav-group[open]>summary>span:last-child{transform:rotate(180deg)}.sales-nav nav,.branch-nav{padding-left:8px}.nav-group summary:hover{background:var(--soft)}.nav-btn{min-height:44px}.mobile-menu{display:none}
.tera-view .content{max-width:none;padding:10px 20px;height:calc(var(--viewport-height,100dvh) - 64px);display:flex;flex-direction:column;overflow:hidden}.tera-view .page-heading{margin-bottom:6px;flex-shrink:0}.tera-view .page-heading h1{font-size:20px}.tera-view .page-heading p{display:none}.tera-view .chat-layout{flex:1;min-height:0;display:flex;flex-direction:column}.tera-view .compact-intro{padding:4px 8px;gap:12px;flex-shrink:0}.tera-view .compact-intro canvas{width:92px!important;height:84px!important}.tera-view .compact-intro h2{font-size:21px}.tera-view .compact-intro.has-chat{padding:0}.tera-view .compact-intro.has-chat canvas{width:50px!important;height:46px!important}.tera-view .compact-intro.has-chat h2{font-size:16px}.tera-view .chat-log{flex:1;min-height:0;max-height:none;overflow-y:auto;padding:8px 4px;overscroll-behavior:contain}.tera-view .chat-form{position:static;flex-shrink:0;margin-top:8px;bottom:auto}.tera-view .chat-foot{margin-top:4px;font-size:10px}.tera-view .footer-note{display:none}.tera-view .chat-layout>button{align-self:flex-start;padding:5px 10px;font-size:11px;margin-top:4px}
@media(max-width:760px){.mobile-menu{display:block}.sidebar{display:none}.menu-open .sidebar{display:flex;z-index:15;inset:56px auto 0 0;width:min(290px,85vw);overflow:auto;box-shadow:12px 0 32px #173d3733}.topbar{height:56px;padding:0 12px;gap:8px}.hero{padding:12px;gap:8px;min-height:140px}.hero-art{width:120px}.hero-art canvas.tera-mascot{width:128px!important;height:118px!important}.hero h2{font-size:17px}.hero p{font-size:11px}.tera-view .content{height:calc(var(--viewport-height,100dvh) - 56px);padding:6px 10px 8px}.tera-view .mobile-nav{display:none}.tera-view .page-heading{display:none}.tera-view .compact-intro canvas{width:70px!important;height:64px!important}.tera-view .compact-intro h2{font-size:18px}.tera-view .chat-form input{min-width:0;font-size:16px}.tera-view .chat-foot{font-size:9px}}
.tera-view .chat-layout{width:100%;margin:0}.profile .employee-avatar{width:34px;height:34px}.profile .employee-avatar[hidden]{display:none}
.tera-view{overflow:hidden}.tera-view .app-shell{height:var(--viewport-height,100dvh);min-height:0}.tera-view .main-shell{height:var(--viewport-height,100dvh);overflow:hidden;padding-bottom:0}.tera-view .topbar{position:relative;flex-shrink:0}

.analysis-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:16px 0}#analysis-feedback-form{border-top:1px solid #ddd;margin-top:24px;padding-top:20px}#analysis-feedback-opt-in{width:auto;margin-right:8px}#analysis-feedback-message:disabled{background:#eef1ee;cursor:not-allowed}

/* Coordination: readable scoped records and forms. */
.coord-page{display:grid;gap:22px}.coord-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.coord-page .coord-work-card{display:flex;flex-direction:column;padding:24px}.coord-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.coord-card-heading h2{font-size:21px}.coord-count{background:var(--soft);color:var(--green);padding:5px 12px;border-radius:20px;font-size:13px;font-weight:700}.coord-records{flex:1}.coord-record{padding:16px 0;border-bottom:1px solid var(--line)}.coord-record:last-child{border-bottom:0}.coord-record strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.coord-record small{display:block;color:var(--muted);font-size:12px;margin-top:8px;line-height:1.6}.coord-record-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.coord-status{display:inline-block;font-size:12px;padding:4px 10px;border-radius:8px;background:#fff2dd;color:#825911}.coord-status-done{background:var(--soft);color:var(--green)}.coord-empty{color:var(--muted);padding:20px 0;line-height:1.7;font-size:14px}.coord-card-actions{border-top:1px solid var(--line);padding-top:16px;margin-top:12px}.coord-analysis-preview{white-space:pre-line;font-size:14px;line-height:1.75;margin:12px 0;color:var(--ink);overflow-wrap:anywhere}.coord-page>.card{padding:24px}.coord-page>.card>h2{font-size:21px;margin-bottom:18px}.coord-page>.card>article{padding:18px 0;border-top:1px solid var(--line)}.coord-page form{display:grid;gap:12px;margin-bottom:20px;max-width:850px}.coord-page form label{display:block;font-weight:600;font-size:14px}.coord-page form label input,.coord-page form label textarea,.coord-page form label select{display:block;width:100%;margin-top:8px}.coord-page form p,.coord-page>.card>p{font-size:13px;line-height:1.7;color:var(--muted)}.coord-page form .btn{justify-self:start}.coord-page .delivery-stop{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px;background:var(--soft);border-radius:12px;margin-bottom:16px}.coord-page .delivery-stop label:last-of-type{grid-column:1/-1}.coord-page .pre{max-height:260px;font-size:14px;line-height:1.75;margin:10px 0}.coord-page article small{color:var(--muted)}@media(max-width:760px){.coord-work-grid{grid-template-columns:1fr}.coord-page .coord-work-card,.coord-page>.card{padding:20px}.coord-page .delivery-stop{grid-template-columns:1fr}.coord-card-heading h2{font-size:19px}}

.dashboard-analysis-recap{margin-bottom:22px}.dashboard-analysis-recap .source-note{margin-bottom:16px;line-height:1.7}

.analysis-data-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0 20px}.analysis-data-cell{padding:18px;border:1px solid var(--line);border-radius:12px;background:#fafcfb;min-width:0}.analysis-data-cell h3{font-size:15px;line-height:1.5;margin-bottom:10px;color:var(--green)}.analysis-data-cell p{font-size:14px;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere}.dashboard-analysis-recap{margin-top:24px}@media(max-width:1000px){.analysis-data-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.analysis-data-columns{grid-template-columns:1fr}}

.custom-dashboard-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px;align-items:start}.custom-widget{grid-column:span var(--widget-width,12);min-width:0;min-height:var(--widget-height,auto)}.custom-widget>.card,.custom-widget>.hero,.custom-widget>.stat{margin:0;min-height:var(--widget-height,auto);height:100%;box-sizing:border-box}.custom-widget .hero{width:100%}.layout-editor-toolbar{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:18px;background:#edf5f2;border:1px solid var(--line);border-radius:12px;margin-bottom:20px}.layout-editor-toolbar p{font-size:13px;line-height:1.6;margin-top:6px}.layout-editor-actions{display:flex;gap:8px;flex-wrap:wrap}.is-editing .custom-widget{outline:2px dashed #80ada3;border-radius:14px;padding:8px}.widget-edit-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;background:#edf5f2;margin-bottom:10px;border-radius:8px;font-size:12px}.widget-edit-controls label{display:flex;align-items:center;gap:5px;margin:0}.widget-edit-controls select{width:auto;max-width:110px;padding:5px;font-size:12px}.widget-drag-handle{cursor:grab}.widget-edit-controls button,.menu-edit-controls button{padding:5px 8px;border:1px solid #a1bcb4;border-radius:5px;background:white;color:var(--green);cursor:pointer}.menu-edit-controls{display:inline-flex;gap:4px;margin-left:auto}.menu-edit-controls button{font-size:12px}.custom-widget .analysis-data-columns{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}@media(max-width:760px){.custom-widget{grid-column:span 12}.layout-editor-toolbar{align-items:stretch;flex-direction:column}.custom-dashboard-grid{gap:18px}.widget-edit-controls{font-size:11px}.widget-edit-controls select{max-width:95px}}

.custom-widget>.hero{display:flex;flex-wrap:wrap;gap:18px}.custom-widget>.hero>div{min-width:0;flex:1 1 240px}.custom-widget>.hero .hero-art{max-width:100%;overflow:hidden}.custom-widget .card-header{flex-wrap:wrap}.custom-widget .task-row,.custom-widget .row-meta{flex-wrap:wrap}.custom-widget .row-body{min-width:0;overflow-wrap:anywhere}

.page-size-editing{outline:1px dashed #578f82;outline-offset:2px}.page-size-handle{position:absolute;z-index:24;padding:2px 5px;min-width:22px;min-height:22px;background:#174e46;color:white;border:1px solid white;border-radius:5px;font-size:10px;line-height:1.2;touch-action:none;user-select:none}.page-size-handle.size-right{right:0;top:50%;cursor:ew-resize}.page-size-handle.size-bottom{bottom:0;left:50%;cursor:ns-resize}.page-size-handle.size-left{left:0;top:36%;cursor:ew-resize}.page-size-handle.size-top{top:0;left:36%;cursor:ns-resize}.page-size-handle.size-padding{right:6px;top:6px;cursor:ew-resize}.sizing-measure{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#174e46;color:white;padding:12px 18px;border-radius:10px;z-index:1200;pointer-events:none;font-size:14px}.layout-sizing-dragging{user-select:none}.page-size-editing .page-size-editing>.page-size-handle{z-index:25}.topbar.sizing-customized{flex-wrap:wrap}.footer-note.sizing-customized{align-items:center}.sidebar.page-size-editing{overflow-y:auto;overflow-x:clip}.sidebar.sizing-customized .nav-btn{white-space:normal}@media(max-width:760px){.app-shell{grid-template-columns:1fr!important}.content.sizing-customized{width:100%!important;margin-left:0!important;max-width:100%;box-sizing:border-box}.custom-widget.sizing-customized{max-width:100%}.page-size-handle{min-width:28px;min-height:28px}.layout-editor-toolbar{position:relative;z-index:30}}

.page-size-handle{opacity:.2}.page-size-editing:hover>.page-size-handle,.page-size-handle:focus-visible,.layout-sizing-dragging .page-size-handle{opacity:1}.page-size-editing .page-size-handle:focus-visible{outline:3px solid #e6ba61;outline-offset:2px}.sidebar .nav-btn.page-size-editing{position:relative}.page-size-editing{box-sizing:border-box}

.page-order-controls{display:inline-flex;align-items:center;gap:4px;margin-bottom:12px;position:relative;z-index:28;padding:4px;border-radius:6px;background:#edf5f2}.page-order-controls button{border:1px solid #a1bcb4;border-radius:4px;background:#fff;color:#174e46;min-width:26px;height:26px;padding:2px 6px;cursor:pointer}.page-order-controls .page-order-grip{cursor:grab}.menu-page-order{margin:0 0 0 auto;flex-shrink:0}.sidebar .nav-btn:has(.menu-page-order){flex-wrap:wrap}.sidebar summary:has(.menu-page-order){flex-wrap:wrap}

.custom-panels-flow{display:flex!important;flex-wrap:wrap!important;gap:20px!important;align-items:flex-start!important}.custom-panels-flow>*{width:100%;flex:none;min-width:0;box-sizing:border-box}.custom-panels-flow>.card{margin:0}.page-order-controls select{width:auto;min-width:68px;padding:3px 6px;margin:0;font-size:12px}@media(max-width:760px){.custom-panels-flow>.card,.custom-panels-flow>.hero,.custom-panels-flow>.stat{width:100%!important;margin-left:0!important}}

.warehouse-route-report{margin:22px 0}.route-report-scroll{overflow-x:auto;margin-top:16px}.route-report-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.7}.route-report-table th{text-align:left;padding:12px;background:var(--soft);white-space:nowrap}.route-report-table td{padding:14px 12px;vertical-align:top;border-bottom:1px solid var(--line);min-width:110px}.route-report-table td:nth-child(3){min-width:220px}.route-report-table td p+p{margin-top:12px}

.analysis-publish-panel{padding:20px;background:var(--soft);border:1px solid var(--line);border-radius:12px;margin:18px 0}.analysis-publish-panel p{margin:10px 0;line-height:1.7}.analysis-publish-panel .btn:disabled{opacity:.5;cursor:not-allowed}

.division-destinations{border:1px solid #dce3dc;border-radius:12px;padding:16px;margin:16px 0}.division-destinations .division-choice{display:flex;align-items:center;gap:12px;padding:10px;margin:0;cursor:pointer}.division-destinations .division-choice input{width:20px;height:20px;margin:0;flex:0 0 20px}

.ai-comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.ai-comparison-grid article{min-width:0}.ai-comparison-grid .analysis-body{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:800px){.ai-comparison-grid{grid-template-columns:1fr}}
/* Readable analysis: actions first, supporting data on demand. */
.analysis-brief-card{padding:22px;margin:18px 0;border:1px solid var(--line);border-radius:14px;background:#fff;line-height:1.7;overflow-wrap:anywhere}.analysis-brief-card h3{font-size:18px;line-height:1.45;margin-bottom:12px}.analysis-brief-card p{margin:10px 0}.analysis-brief-card .analysis-action{font-weight:650;color:var(--green);font-size:16px}.analysis-caution,.analysis-context{font-size:13px;color:var(--muted)}.analysis-caution{border-left:3px solid #c49a42;padding-left:12px}.analysis-evidence{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.analysis-evidence summary{cursor:pointer;font-size:13px;color:var(--green);padding:6px 0}.analysis-table-scroll{overflow-x:auto;margin:14px 0}.analysis-table-scroll table{border-collapse:collapse;width:100%;font-size:13px}.analysis-table-scroll th,.analysis-table-scroll td{text-align:left;padding:10px;border-bottom:1px solid var(--line);vertical-align:top;min-width:100px}.analysis-table-scroll th{background:var(--soft)}.analysis-list-intro{margin:18px 0;color:var(--muted);font-size:13px}#modal:has(.analysis-brief-card){width:min(900px,94vw)}@media(max-width:600px){.analysis-brief-card{padding:16px}.analysis-brief-card h3{font-size:16px}#modal:has(.analysis-brief-card){padding:16px}}
#rules-search-form{display:grid;grid-template-columns:minmax(130px,1fr) minmax(140px,1fr) auto;gap:8px 12px;align-items:end;margin:18px 0}#rules-search-form>label{margin:0}#rules-search-form>label:nth-child(1){grid-column:1;grid-row:1}#rules-search-form>select{grid-column:1;grid-row:2;margin:0}#rules-search-form>label:nth-child(3){grid-column:2;grid-row:1}#rules-search-form>input{grid-column:2;grid-row:2;margin:0}#rules-search-form>button{grid-column:3;grid-row:2}#rules-search-form>label:has(input[type=checkbox]){grid-column:1/-1;grid-row:3}@media(max-width:600px){#rules-search-form{grid-template-columns:1fr}#rules-search-form>*{grid-column:1!important;grid-row:auto!important}}
