*{box-sizing:border-box} :root{--ink:#183638;--muted:#718184;--line:#e2e9e8;--brand:#087c6c;--nav:#142e33;--canvas:#f4f7f7;--red:#b13e41;--radius:14px;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:14px}body{margin:0;background:var(--canvas)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}a{color:inherit;text-decoration:none}button{border:1px solid var(--line);border-radius:9px;padding:10px 15px;background:white;color:var(--ink);font-weight:600}button:hover:not(:disabled){background:#edf5f2;border-color:#becdc9}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #81d9c9;outline-offset:3px}.primary{background:var(--brand);border-color:var(--brand);color:white}.primary:hover:not(:disabled){background:#066856;border-color:#066856}.danger{color:var(--red)}.subtle{border:0;background:transparent;padding:7px 9px;font-weight:500;font-size:13px}.icon-button{border:0;background:transparent;padding:5px 9px;font-size:23px;line-height:1.25}.wide{width:100%;display:flex;align-items:center;justify-content:space-between}.initial{display:grid;min-height:100vh;place-content:center;color:var(--muted)}.muted{color:var(--muted);line-height:1.65}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px}.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:750;letter-spacing:-.8px}.brand img{width:36px;height:36px}.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:var(--nav);color:white;padding:45px 60px;display:flex;flex-direction:column;min-height:100vh;position:relative;overflow:hidden}.story-copy{margin:auto 0;z-index:1}.story-copy .eyebrow{color:#76d6c5}.story-copy h1{font-size:clamp(32px,3.8vw,58px);line-height:1.13;letter-spacing:-2px;font-weight:550;margin:28px 0}.story-copy p{font-size:17px;line-height:1.8;color:#b2c6c8}.story-lines{display:flex;gap:18px;align-items:center;height:110px;margin-top:24px}.story-lines span{border:1px solid #39857e;border-radius:50%;width:50px;height:50px}.story-lines span:nth-child(2){width:76px;height:76px;border-color:#20bda6}.story-lines span:nth-child(3){width:104px;height:104px;border-color:#306163}.developer{font-size:12px;color:#92adb0}.login-side{background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:42px 30px}.login-form{width:min(100%,365px)}.login-form h2{font-size:32px;letter-spacing:-1px;margin:15px 0}.login-form>p{margin-bottom:28px}.login-form label{margin:20px 0}.login-note{font-size:12px;color:var(--muted);line-height:1.7;margin-top:22px}.login-version{color:var(--muted);font-size:11px;margin-top:60px}.workspace{display:grid;grid-template-columns:226px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#aec3c4;padding:31px 19px;display:flex;flex-direction:column;position:fixed;top:0;bottom:0;width:226px;z-index:20}.sidebar .brand{color:#fff;padding:0 7px}.workspace-label{font-size:9px;font-weight:650;letter-spacing:1.6px;margin:43px 13px 17px;color:#779a9e}.nav-link{display:flex;align-items:center;gap:13px;padding:12px 14px;margin:4px 0;border-radius:9px;font-weight:550}.nav-link svg{width:19px;height:19px;opacity:.8}.nav-link:hover{background:#203f44;color:white}.nav-link.active{background:#235047;color:#b5f3df}.sidebar-bottom{margin-top:auto;padding:30px 10px 0;font-size:11px;color:#90adaf}.sidebar-bottom p{font-size:10px;line-height:1.6;margin-top:12px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#5bbdaa;margin-right:7px}.work-area{grid-column:2;display:flex;flex-direction:column;min-width:0}.topbar{min-height:83px;padding:17px 34px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.organization{font-size:14px;font-weight:650;overflow-wrap:anywhere}.account{display:flex;align-items:center;gap:11px;flex-shrink:0}.account strong{display:block;font-size:12px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.avatar{width:34px;height:34px;border-radius:50%;background:#e7f3ed;color:#2e7560;display:grid;place-content:center;font-weight:700}.account .subtle{margin-left:4px}#menu-toggle{display:none}main{padding:32px 34px 40px;flex:1;min-width:0;max-width:1680px;width:100%;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-head h1{font-size:29px;font-weight:650;letter-spacing:-1px;margin:6px 0 9px}.page-head p{margin:0;font-size:13px;color:var(--muted)}.page-head .eyebrow{color:#70928c;font-size:10px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:25px}.stat{padding:23px;background:white;border:1px solid var(--line);border-radius:var(--radius)}.stat-label{font-size:12px;color:#68817e;display:flex;align-items:center;justify-content:space-between;gap:8px}.stat-value{font-size:34px;letter-spacing:-1px;font-weight:650;margin:18px 0 8px}.stat small{font-size:10px;color:var(--muted)}.stat.warning .stat-value{color:#bf7645}.stat-icon{color:#229580;display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#eef7f2}.stat-icon svg{width:16px;height:16px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:22px}.panel-head{padding:19px 22px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}.panel-head h2{font-size:15px;margin:0;font-weight:650}.panel-head p{font-size:11px;color:var(--muted);margin:6px 0 0}.panel-body{padding:23px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.toolbar input{max-width:330px}.toolbar select{width:auto;min-width:190px}.toolbar label{margin:0;font-size:12px}.toolbar .spacer{flex:1}.hint{padding:15px 18px;border:1px solid #d9e8e2;border-radius:10px;background:#eef6f1;color:#48665f;font-size:12px;line-height:1.65;margin-bottom:20px}.grid-two{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:22px}.guide{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.guide:last-child{border:0}.guide-number{background:#edf5f2;color:#308974;flex-shrink:0;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-size:12px;font-weight:650}.guide a{font-size:13px;font-weight:650;display:block;margin:4px 0}.guide p{font-size:11px;color:var(--muted);line-height:1.6;margin:5px 0}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;font-weight:550;font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:#6c8581;background:#fafcfc;padding:15px 22px;white-space:nowrap}td{padding:17px 22px;border-top:1px solid #edf1f0;vertical-align:middle;overflow-wrap:anywhere;max-width:420px}td .subtle{padding:4px 0;color:var(--brand);text-align:left}.record-title{font-weight:600}.record-subtitle{font-size:10px;color:var(--muted);margin-top:5px}.badge{display:inline-block;padding:5px 9px;border-radius:5px;font-size:10px;font-weight:650;white-space:nowrap;background:#edf2f3;color:#5d7277}.badge.New{background:#edf1fd;color:#5869a8}.badge.InProgress{background:#fff4dd;color:#987330}.badge.Resolved{background:#e4f4ee;color:#238064}.badge.Closed{background:#edf2f2;color:#647879}.badge.Cancelled{background:#f8ebea;color:#ac6060}.empty{text-align:center;padding:50px 24px;color:var(--muted)}.empty .empty-icon{font-size:30px;color:#99b7af;margin-bottom:14px}.empty h3{font-size:16px;color:var(--ink);margin:10px 0}.empty p{font-size:12px;max-width:410px;line-height:1.7;margin:0 auto 17px}.pager{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:14px}.pager span{font-size:11px;color:var(--muted)}.pager button{font-size:11px;padding:7px 12px}.footer{padding:20px 34px;color:#90a09c;font-size:10px;display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line)}label{display:block;font-size:12px;font-weight:600;margin:0 0 16px}input,select,textarea{display:block;width:100%;border:1px solid #d5e0dd;border-radius:8px;background:#fff;padding:11px 12px;margin-top:7px;color:var(--ink);font-weight:400;min-height:40px}input:disabled,select:disabled{background:#f2f5f4}textarea{min-height:90px;resize:vertical}.checkbox{display:flex;align-items:center;gap:9px;font-weight:500}.checkbox input{width:16px;min-height:16px;margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}.form-grid>.full{grid-column:1/-1}.field-help{font-weight:400;color:var(--muted);font-size:11px;line-height:1.6;margin:6px 0 0}.error{color:#a5393e;background:#fff0ef;border:1px solid #efcecb;border-radius:8px;padding:12px 14px;font-size:12px;line-height:1.6;white-space:pre-line}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 22px;border-radius:10px;background:#153e36;color:#fff;z-index:100;box-shadow:0 6px 25px #13362a25;max-width:90vw;font-size:13px}dialog{border:1px solid var(--line);border-radius:17px;width:min(680px,94vw);max-height:90vh;padding:0;color:var(--ink);box-shadow:0 25px 100px #12362f30}dialog::backdrop{background:#112f3b66;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:19px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.dialog-head h2{font-size:19px;margin:0;letter-spacing:-.4px}#editor-body,#picker-body{padding:24px 25px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.reference{margin-bottom:17px}.reference>span{font-size:12px;font-weight:600}.reference button{display:block;text-align:left;width:100%;font-weight:400;margin-top:7px;min-height:43px;overflow-wrap:anywhere}.reference .clear-reference{width:auto;font-size:11px;padding:5px 0;border:0;color:var(--muted);background:none}.picker-row{display:block;width:100%;text-align:left;padding:13px;margin:8px 0;border-color:var(--line);font-weight:500}.picker-row small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:4px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 24px}.detail-grid div{min-width:0}.detail-grid dt{font-size:11px;color:var(--muted);margin-bottom:7px}.detail-grid dd{font-size:13px;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.detail-grid .full{grid-column:1/-1}.section-title{font-size:13px;margin:25px 0 15px}.tabbar{display:flex;gap:6px;margin-bottom:20px;flex-wrap:wrap}.tabbar button.active{background:#e4f1eb;color:var(--brand);border-color:#c6ded3}.loading-copy{padding:40px;text-align:center;color:var(--muted)}.inline-code{font-family:monospace;font-size:11px;overflow-wrap:anywhere}.record-link{font-size:12px;font-weight:600;background:transparent;border:0;color:var(--brand);padding:0;text-align:left}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1600px){main{padding-top:42px}}@media(max-width:1100px){.workspace{grid-template-columns:200px minmax(0,1fr)}.sidebar{width:200px;padding:27px 13px}.topbar,main{padding-left:23px;padding-right:23px}.stats{gap:10px}.stat{padding:18px}.grid-two{grid-template-columns:1fr}.account .subtle{margin:0}.login-story{padding:40px}.account strong{max-width:150px}td,th{padding:14px 16px}}@media(max-width:760px){.workspace{display:block}.sidebar{transform:translateX(-100%);width:226px;transition:transform .15s}.workspace.menu-open .sidebar{transform:translateX(0)}#menu-toggle{display:block}.topbar{padding:14px 16px;min-height:70px;gap:9px}.organization{font-size:12px}.account{gap:6px}.account strong,.account small,.account .avatar{display:none}.account .subtle{font-size:11px;padding:6px}.stats{grid-template-columns:1fr 1fr}.stat-value{font-size:28px}.page-head{align-items:flex-start;flex-direction:column;gap:17px}.page-head h1{font-size:26px}main{padding:25px 17px}.footer{padding:18px;font-size:9px}.footer span{display:none}.login-layout{display:block}.login-story{min-height:0;padding:23px 26px}.login-story .story-copy,.login-story .developer{display:none}.login-side{min-height:calc(100vh - 82px);padding:32px 24px}.form-grid,.detail-grid{grid-template-columns:1fr}.form-grid>.full,.detail-grid .full{grid-column:auto}.toolbar input{max-width:none}.toolbar{gap:8px}.toolbar select{width:100%}.panel-head{padding:17px}.dialog-head{padding:17px}#editor-body,#picker-body{padding:20px 17px}.dialog-actions{flex-wrap:wrap}.dialog-actions button{flex:1}.pager{padding:12px}.login-version{margin-top:30px}.account{margin-left:auto}.organization{max-width:40vw}.stats .stat{padding:15px}.stat-label{font-size:11px}.stat small{font-size:9px}}

/* Visual shell 0.2.0 */
:root{--canvas:#f5f7fa;--nav:#142d36;--line:#e3e9ed;--muted:#71808c;--ink:#233c48}
body{font-family:"Segoe UI",Arial,sans-serif}
.workspace{grid-template-columns:240px minmax(0,1fr)}
.sidebar{width:240px;padding:26px 16px 18px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#49606b transparent}
.sidebar .brand{margin-left:10px;flex-shrink:0}.workspace-label{margin:23px 12px 5px;font-size:9px;letter-spacing:1.5px}
nav{flex:1}.nav-group{margin:16px 12px 6px;color:#7e9ba6;text-transform:uppercase;font-size:9px;letter-spacing:1px;font-weight:650}
.nav-link{padding:9px 12px;gap:11px;font-size:12px;margin:2px 0;border-radius:8px;min-height:35px;line-height:1.3}.nav-link svg{width:18px;height:18px;flex-shrink:0}
.nav-link.active{background:#1b635f;color:#eafff9}.nav-link.active svg{color:#84dfcc}
.sidebar-bottom{margin-top:26px;padding:17px 11px 0;font-size:10px;flex-shrink:0}.sidebar-bottom p{font-size:9px}
.topbar{padding:18px 30px;gap:20px;min-height:81px;background:white}.organization{font-size:12px;max-width:220px}
.search-trigger{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:#f8fafb;color:#83919b;font-size:12px;font-weight:400;padding:10px 13px;margin-left:auto;width:280px}
.account{margin-left:0;gap:10px}.account strong{font-size:12px}.account small{font-size:10px}.avatar{width:34px;height:34px;font-size:12px}
#notifications{font-size:22px;color:#687f8a}
.preview-banner{display:flex;align-items:center;gap:8px;background:#eaf4f1;padding:10px 30px;color:#41695f;font-size:11px;border-bottom:1px solid #dcebe6}
.preview-banner strong{font-weight:650}.preview-banner>span:last-child{color:#69847c;margin-left:5px}.preview-dot{width:6px;height:6px;border-radius:50%;background:#339f7f;flex-shrink:0}
main{padding:30px;min-width:0}.page-head{margin-bottom:25px}.page-head .eyebrow{font-size:9px;letter-spacing:1.5px;color:#81919b}.page-head h1{font-size:29px;font-weight:650;letter-spacing:-.8px;margin:8px 0}.page-head p{font-size:12px;color:#7b8b94;line-height:1.6;margin:0}
.page-head>button{font-size:12px}.panel{border-color:var(--line);box-shadow:0 2px 4px #13282f03}.panel-head{padding:19px 21px;gap:12px}.panel-head h2{font-size:14px;font-weight:650}
.panel-content{padding:22px;line-height:1.7}.panel-content>p:first-child{margin-top:0}.panel-content>.primary{margin-top:18px}
.stats{gap:16px;margin:22px 0}.stat{padding:21px 23px;border-color:var(--line)}.stat-label{font-size:11px;letter-spacing:0;font-weight:500}.stat-value{font-size:30px;letter-spacing:-.8px;line-height:1.3;margin:10px 0;display:block}.stat small{font-size:10px;line-height:1.5;color:#89959c}
.stats .stat:last-child .stat-value{font-size:27px}
.welcome-card{display:flex;align-items:center;justify-content:space-between;background:#e7f1ef;border:1px solid #d5e6e0;border-radius:14px;padding:25px 30px;overflow:hidden;min-height:148px}
.welcome-card h2{font-size:25px;letter-spacing:-.6px;font-weight:600;margin:12px 0 8px;color:#224e48}.welcome-card p{color:#6c8881;font-size:12px;margin:0;line-height:1.6}.welcome-card .eyebrow{font-size:9px;letter-spacing:1.7px;color:#528478}
.welcome-symbol{display:grid;place-items:center;width:91px;height:91px;border:1px solid #8ebfb2;border-radius:50%;color:#388671;margin-right:18px}.welcome-symbol svg{width:45px;height:45px}
.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0 26px}
.quick-card{display:flex;align-items:center;gap:14px;background:white;border:1px solid var(--line);padding:20px;border-radius:12px;transition:border-color .12s}.quick-card:hover{border-color:#74b9a8}.quick-card>svg{width:25px;height:25px;flex-shrink:0;color:#148374}.quick-card strong{font-size:13px;font-weight:650}.quick-card p{font-size:10px;color:#8a989e;line-height:1.5;margin:7px 0 0}.quick-card .arrow{margin-left:auto;color:#89a39d}
.grid-two{gap:22px;align-items:start;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
.task-item{display:flex;gap:16px;padding:20px 22px;border-bottom:1px solid #eef2f4;align-items:center}.task-item time{background:#f5f7fa;padding:8px;border-radius:7px;font-size:10px;color:#6c7d8c;align-self:start}.task-item strong{font-size:12px;font-weight:600}.task-dot{width:7px;height:7px;border-radius:50%;margin-left:auto;flex-shrink:0}.task-dot.amber{background:#dda83f}.task-dot.blue{background:#6796d5}.task-dot.green{background:#41a58b}.task-list .panel-content{padding:12px 19px}
.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin:24px 0}.filter-field{display:flex;flex-direction:column;gap:7px;min-width:125px;font-size:10px;color:#788993}.filter-field>input,.filter-field>select{margin-top:0;font-size:12px;min-height:38px;max-width:100%}.search-filter{flex:1;min-width:230px}
.filters>input{min-width:230px;max-width:380px;width:100%;margin:0;font-size:12px}.filters>label{font-size:11px}
.section-tabs,.tabs{display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid var(--line);padding:0 0 1px;scrollbar-width:thin;max-width:100%}
.section-tabs{margin:0 -2px 22px}.section-tabs button,.tabs button{white-space:nowrap;border:0;border-radius:0;padding:13px 12px;font-size:12px;background:transparent;font-weight:500;color:#82919a;border-bottom:2px solid transparent}
.section-tabs button.active,.tabs button.active{color:#187e6d;border-color:#187e6d;background:transparent;font-weight:650}
.segmented{display:flex;gap:2px;padding:3px;background:#f1f5f6;border-radius:7px}.segmented button{font-size:10px;padding:6px 12px;background:transparent;border:0;font-weight:500}.segmented button.active{background:white;box-shadow:0 1px 4px #153d3510;color:#187e6d}
table{font-size:12px}th{font-size:10px;text-transform:none;letter-spacing:.1px;font-weight:600;padding:13px 18px;color:#89969e;background:#f9fbfc;white-space:nowrap}td{padding:17px 18px;color:#45606b;font-size:12px;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdfd}.table-scroll{max-width:100%}
.record-link{font-size:12px;line-height:1.5;color:#2f5967;text-align:left;font-weight:600}.cell-sub{display:block;margin-top:5px;font-size:10px;color:#8b98a0;line-height:1.5;white-space:nowrap}
.row-openable{cursor:pointer}.row-openable:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:10px;font-weight:500;padding:5px 9px;border-radius:6px;background:#edf2f5;color:#657c89}.badge.green{background:#e9f5ed;color:#368362}.badge.blue{background:#edf3fd;color:#517eb1}.badge.amber{background:#fff5df;color:#ae8738}.badge.red{background:#fceff0;color:#b96571}
.ticket-row td:first-child{border-left:3px solid transparent}.ticket-row-urgent td{background:color-mix(in srgb,var(--red) 7%,var(--surface))}.ticket-row-urgent td:first-child{border-left-color:var(--red)}.ticket-row-attention td{background:color-mix(in srgb,#d69a19 8%,var(--surface))}.ticket-row-attention td:first-child{border-left-color:#d69a19}.ticket-row-completed td{background:color-mix(in srgb,#2d8b62 6%,var(--surface))}.ticket-row-completed td:first-child{border-left-color:#2d8b62}.ticket-row-cancelled td{opacity:.72}
.ticket-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 14px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.ticket-legend span{display:flex;align-items:center}.ticket-legend .badge{font-style:normal}
.kanban{display:grid;grid-template-columns:repeat(6,230px);gap:12px;padding:16px;overflow-x:auto}.kanban-column{background:#f5f8f9;border-radius:9px;padding:12px;min-height:230px}.kanban-column h3{display:flex;justify-content:space-between;font-size:11px;font-weight:600;margin:2px 2px 15px}.kanban-column h3>span{color:#8ca098}.kanban-card{width:100%;text-align:left;margin-bottom:10px;border-radius:8px;padding:14px 12px;font-size:11px;line-height:1.5;font-weight:400}.kanban-card strong{font-size:12px}.kanban-card p,.kanban-card small{color:#8a99a0;font-size:10px;font-weight:400}
dialog{width:850px;max-width:calc(100vw - 32px);border-radius:15px;max-height:90vh}#editor-body,#picker-body{padding:25px;overflow-x:hidden}.dialog-head h2{font-size:18px;line-height:1.4}.card-meta{display:flex;gap:14px;align-items:center;color:#819099;font-size:11px;margin:0 0 14px}.card-tab-body{padding-top:24px;min-height:280px}.detail-grid{row-gap:24px;margin:0 0 26px}.detail-grid dt{font-size:11px;color:#8a98a0;margin-bottom:7px}.detail-grid dd{font-size:13px;color:#385463;margin:0;line-height:1.5}
.stage-flow{display:flex;flex-wrap:wrap;gap:7px}.stage-flow button{font-size:11px;font-weight:400}.stage-flow button.active{background:#e7f3ef;border-color:#8bc4b4;color:#267b62}.note-box{border:1px solid #dfeae6;background:#f5faf8;border-radius:9px;padding:15px 17px;line-height:1.65;color:#678278;font-size:12px}
h3{font-size:14px;font-weight:650}.checklist{display:flex;flex-direction:column;gap:13px;padding:15px 0}.checklist label{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:400;color:#5e7480}.checklist input{width:16px;height:16px;margin:0;accent-color:#19816f}
.form-note{font-size:11px;line-height:1.7;color:#8b999f;margin:20px 0}.demo-form .form-grid label{font-size:12px}.demo-form input,.demo-form textarea,.demo-form select{margin-top:8px;font-size:13px}.demo-form textarea{resize:vertical}
.timeline{list-style:none;padding-left:17px;margin:10px 0}.timeline li{border-left:1px solid #deebe8;padding:0 0 25px 23px;position:relative;font-size:12px;line-height:1.5}.timeline li:before{content:"";position:absolute;left:-5px;top:3px;background:#64ac9b;width:9px;height:9px;border-radius:50%}.timeline p{font-size:11px;color:#8b9ba2;margin:7px 0}
.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.integration-grid .panel-content{font-size:12px}.integration-grid p{min-height:42px}.report-bars{display:grid;gap:18px}.bar-row{display:grid;grid-template-columns:145px minmax(0,1fr) 32px;gap:20px;align-items:center;font-size:12px}.bar-row progress{height:12px;width:100%;accent-color:#6aac9c;appearance:none}.bar-row progress::-webkit-progress-bar{background:#edf4f1;border-radius:20px}.bar-row progress::-webkit-progress-value{background:#6aac9c;border-radius:20px}
.search-results{display:flex;flex-direction:column;gap:4px;margin-top:14px;max-height:55vh;overflow:auto}.search-result{display:block;width:100%;text-align:left;border:0;font-size:12px;font-weight:400;padding:14px}.search-result strong{font-weight:600}
.footer{padding:22px 30px;font-size:10px;color:#9caaaf;border-top:0}.footer span{color:#a7b3b9}
@media(min-width:1700px){main{max-width:1600px;margin:auto;width:100%;padding-top:36px}}
@media(max-width:1250px){.search-trigger{width:180px}.search-trigger span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.topbar{gap:12px;padding:17px 23px}.organization{max-width:160px}.grid-two{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:18px}.stat-value{font-size:27px}.stats .stat:last-child .stat-value{font-size:24px}.quick-grid{gap:10px}.quick-card{padding:16px;gap:10px}.quick-card p{font-size:10px}.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.workspace{grid-template-columns:215px minmax(0,1fr)}.sidebar{width:215px}.search-trigger{width:36px;min-width:36px;justify-content:center;padding:8px}.search-trigger span{display:none}.account strong{max-width:120px}.account .subtle{font-size:11px;padding:5px}.organization{max-width:170px}.quick-grid{grid-template-columns:1fr}.quick-card p{margin:3px 0 0}.welcome-card h2{font-size:23px}.welcome-symbol{display:none}.preview-banner{padding:9px 23px;flex-wrap:wrap}.preview-banner>span:last-child{margin-left:14px;font-size:10px}.stat-value{font-size:25px}.stats .stat:last-child .stat-value{font-size:21px}main{padding:26px 23px}}
@media(max-width:760px){.workspace{display:block}.sidebar{width:240px;z-index:50;box-shadow:15px 0 40px #142d3630}.topbar{padding:13px 12px;gap:7px}.organization{max-width:140px;font-size:10px;line-height:1.5}.search-trigger{margin-left:auto}.account{margin:0;gap:2px}.account .subtle{font-size:10px;padding:5px}.preview-banner{padding:10px 17px;font-size:10px;gap:7px}.preview-banner>span:last-child{margin-left:13px;flex-basis:100%;font-size:9px}.page-head{gap:12px}.page-head h1{font-size:25px}main{padding:24px 16px}.welcome-card{padding:22px;min-height:140px}.welcome-card h2{font-size:21px;line-height:1.35}.welcome-card p{font-size:11px;max-width:300px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:18px!important}.stat-value,.stats .stat:last-child .stat-value{font-size:26px}.stat-label{font-size:10px}.stats .stat small{font-size:9px}.quick-grid{gap:10px;margin:20px 0}.filters{gap:10px}.filter-field{min-width:130px;flex:1}.search-filter{min-width:100%;flex-basis:100%}.filters>input{min-width:0}.filters select{width:100%}.section-tabs button,.tabs button{font-size:11px;padding:12px 10px}.panel-head{padding:16px}.panel-head h2{font-size:13px}.panel-head .subtle{font-size:10px}.cell-sub{font-size:10px}.integration-grid{grid-template-columns:1fr}.card-meta{flex-wrap:wrap;line-height:1.6}.card-tab-body{padding-top:22px}.bar-row{grid-template-columns:110px 1fr 24px;gap:8px;font-size:11px}dialog{max-width:calc(100vw - 20px);max-height:92vh}.dialog-head h2{font-size:16px}#editor-body{padding:18px}.footer{padding:18px}.form-grid{gap:18px}.table-scroll{scrollbar-width:thin}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
#notifications svg{width:19px;height:19px;display:block}

/* Working employee and proposal forms share the existing design. */
.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.span-2{grid-column:1/-1}
.proposal-history{max-height:440px;overflow-y:auto}
.proposal-history p{margin-top:6px}
.dialog-actions{flex-wrap:wrap}
#mode-banner{line-height:1.5}

.check-option{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}.demo-form .check-option input{width:18px;height:18px;margin:0;accent-color:#19816f}.check-option input{flex:0 0 auto}

/* 0.3.3+: ten per-user themes. Keep this block as real CSS newlines. */
:root,
html[data-theme="cicorp-light"]{
 color-scheme:light;
 --ink:#183638;--muted:#718184;--line:#e2e9e8;--brand:#087c6c;--nav:#142e33;--canvas:#f4f7f7;--red:#b13e41;
 --surface:#ffffff;--surface-soft:#f8fbfa;--surface-muted:#eef4f2;--input-bg:#ffffff;--hover:#edf5f2;--sidebar-active:#235047;--focus:#81d9c9;
 --nav-text:#aec3c4;--nav-muted:#779a9e;--nav-active-text:#b5f3df;--accent-soft:#e7f3ed;--accent-ink:#2e7560;--shadow:0 16px 42px #14362b16;
}
html[data-theme="midnight"]{color-scheme:dark;--ink:#e7eef6;--muted:#9eacc0;--line:#2b3950;--brand:#55cbb0;--nav:#09111e;--canvas:#101827;--surface:#172235;--surface-soft:#1b2940;--surface-muted:#213149;--input-bg:#111c2e;--hover:#21344e;--sidebar-active:#173d3a;--focus:#65dbc2;--red:#ff858d;--nav-text:#a8bad0;--nav-muted:#73849a;--nav-active-text:#b9f5e8;--accent-soft:#203d42;--accent-ink:#7de0cb;--shadow:0 18px 48px #02081766}
html[data-theme="graphite"]{color-scheme:dark;--ink:#ecebea;--muted:#aaa8a4;--line:#3b3c3e;--brand:#c7b989;--nav:#101112;--canvas:#191a1c;--surface:#242527;--surface-soft:#2c2d30;--surface-muted:#323438;--input-bg:#1d1e20;--hover:#34363a;--sidebar-active:#464137;--focus:#d9c98e;--red:#f08080;--nav-text:#c1c0bd;--nav-muted:#8f8e8a;--nav-active-text:#fff0b5;--accent-soft:#3b382f;--accent-ink:#dacb96;--shadow:0 18px 48px #0008}
html[data-theme="ocean"]{color-scheme:light;--ink:#173b4a;--muted:#647f8b;--line:#d4e6ec;--brand:#167f9f;--nav:#0c3444;--canvas:#eef7fa;--surface:#ffffff;--surface-soft:#f0f8fb;--surface-muted:#e3f1f6;--input-bg:#ffffff;--hover:#e5f3f7;--sidebar-active:#155166;--focus:#69c7e0;--red:#b94755;--nav-text:#b9d6df;--nav-muted:#77a6b5;--nav-active-text:#cdf5ff;--accent-soft:#e1f2f7;--accent-ink:#237b98;--shadow:0 16px 42px #164e6518}
html[data-theme="emerald"]{color-scheme:dark;--ink:#e4f2eb;--muted:#96afa3;--line:#29483c;--brand:#45c991;--nav:#06140f;--canvas:#0d1b16;--surface:#142820;--surface-soft:#183128;--surface-muted:#1e3a2f;--input-bg:#10231c;--hover:#1d3b30;--sidebar-active:#17543d;--focus:#55dca2;--red:#ff858a;--nav-text:#a5c6b7;--nav-muted:#6e9987;--nav-active-text:#c3ffe2;--accent-soft:#1d4031;--accent-ink:#6bdda9;--shadow:0 18px 48px #00120b88}
html[data-theme="aurora"]{color-scheme:dark;--ink:#f0efff;--muted:#aaaed0;--line:#393c68;--brand:#8d7cff;--nav:#11102a;--canvas:#17162c;--surface:#211f3b;--surface-soft:#29264a;--surface-muted:#312e58;--input-bg:#1b1933;--hover:#302d57;--sidebar-active:#3a3068;--focus:#b5a9ff;--red:#ff8998;--nav-text:#c2c0df;--nav-muted:#8a88b4;--nav-active-text:#e0dcff;--accent-soft:#342f62;--accent-ink:#c0b6ff;--shadow:0 18px 50px #08031b88}
html[data-theme="sandstone"]{color-scheme:light;--ink:#4a382c;--muted:#8a7768;--line:#e7ddd2;--brand:#a5662c;--nav:#34271f;--canvas:#f8f4ee;--surface:#fffdf9;--surface-soft:#faf5ed;--surface-muted:#f1e8db;--input-bg:#fffdf9;--hover:#f3eadf;--sidebar-active:#5b4030;--focus:#e3b27d;--red:#b34c46;--nav-text:#d6c8bc;--nav-muted:#a78e7b;--nav-active-text:#ffe5bd;--accent-soft:#f2e4d1;--accent-ink:#9a5f2a;--shadow:0 16px 42px #5f3a2018}
html[data-theme="ruby"]{color-scheme:dark;--ink:#f7e9ed;--muted:#c2a2ad;--line:#5b3341;--brand:#e06b8a;--nav:#230c14;--canvas:#2f121c;--surface:#3b1824;--surface-soft:#461d2b;--surface-muted:#522333;--input-bg:#31131e;--hover:#532536;--sidebar-active:#641d35;--focus:#f19ab1;--red:#ff8c97;--nav-text:#d8b9c3;--nav-muted:#a67686;--nav-active-text:#ffd5df;--accent-soft:#552238;--accent-ink:#f291ab;--shadow:0 18px 48px #16000888}
html[data-theme="arctic"]{color-scheme:light;--ink:#244252;--muted:#6c8796;--line:#d8e7ee;--brand:#3a8fb7;--nav:#153846;--canvas:#f2f8fb;--surface:#ffffff;--surface-soft:#f6fbfd;--surface-muted:#e8f3f8;--input-bg:#ffffff;--hover:#e9f5f9;--sidebar-active:#235b72;--focus:#87cae6;--red:#b44e5a;--nav-text:#bdd5df;--nav-muted:#83a9b8;--nav-active-text:#e0f8ff;--accent-soft:#e3f2f8;--accent-ink:#377d9c;--shadow:0 16px 42px #1d587018}
html[data-theme="royal"]{color-scheme:dark;--ink:#f0eef9;--muted:#aaa5bf;--line:#3f3b56;--brand:#d2ae66;--nav:#0e1424;--canvas:#151c2e;--surface:#1d263b;--surface-soft:#232e47;--surface-muted:#2c3853;--input-bg:#182136;--hover:#2e3a55;--sidebar-active:#493f42;--focus:#e3c57f;--red:#ff8790;--nav-text:#bec6d8;--nav-muted:#8995ad;--nav-active-text:#ffe6ac;--accent-soft:#403a35;--accent-ink:#e2c27d;--shadow:0 18px 50px #03081788}

html,body,.workspace,.work-area,.sidebar,.topbar,.panel,.stat,.quick-card,dialog,button,input,select,textarea{transition:background-color .16s ease,border-color .16s ease,color .16s ease}
body{color:var(--ink);background:var(--canvas)}
.workspace,.work-area,main{background:var(--canvas)}
.sidebar{background:var(--nav);color:var(--nav-text)}
.workspace-label,.sidebar-bottom{color:var(--nav-muted)}
.nav-link.active{background:var(--sidebar-active);color:var(--nav-active-text)}
.nav-link:hover{background:color-mix(in srgb,var(--sidebar-active) 72%,var(--nav));color:var(--nav-active-text)}
button,.login-side,.topbar,.stat,.panel,.quick-card,dialog,.kanban-card,.search-result,.dialog-head{background:var(--surface);color:var(--ink);border-color:var(--line)}
button:hover:not(:disabled){background:var(--hover);border-color:color-mix(in srgb,var(--brand) 28%,var(--line))}
.primary{background:var(--brand);border-color:var(--brand);color:#fff}.primary:hover:not(:disabled){background:color-mix(in srgb,var(--brand) 84%,#000);border-color:color-mix(in srgb,var(--brand) 84%,#000)}
input,select,textarea{background:var(--input-bg);color:var(--ink);border-color:var(--line)}
input:disabled,select:disabled{background:var(--surface-muted)}
input::placeholder,textarea::placeholder{color:var(--muted)}
.search-trigger{background:var(--surface-soft);color:var(--muted);border-color:var(--line)}
th{background:var(--surface-soft);color:var(--muted)}td{color:var(--ink);border-color:var(--line)}tbody tr:hover{background:var(--surface-soft)}
.task-item{border-color:var(--line)}.task-item time,.kanban-column,.segmented,.badge{background:var(--surface-muted)}.segmented button.active{background:var(--surface)}
.note-box,.hint{background:var(--surface-soft);border-color:var(--line);color:var(--muted)}.record-link,.detail-grid dd{color:var(--ink)}
.dialog-head,.panel-head,.footer,.topbar,.pager,.ai-compose{border-color:var(--line)}dialog{box-shadow:var(--shadow)}
.avatar,.stat-icon{background:var(--accent-soft);color:var(--accent-ink)}
.preview-banner{background:var(--surface-soft);border-color:var(--line);color:var(--muted)}

.theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.theme-card{display:grid;grid-template-columns:72px 1fr auto;grid-template-rows:auto auto;gap:4px 14px;align-items:center;text-align:left;padding:14px;width:100%;min-height:76px}
.theme-card.active{border-color:var(--brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 20%,transparent)}
.theme-card strong{font-size:13px}.theme-card small{color:var(--muted);font-weight:400}.theme-choice{grid-column:3;grid-row:1/3;font-size:10px;color:var(--brand)}
.theme-swatch{grid-row:1/3;width:72px;height:48px;border-radius:8px;border:1px solid #0002;display:grid;grid-template-columns:19px 1fr;grid-template-rows:12px 1fr;overflow:hidden;background:#fff}
.theme-swatch i:first-child{grid-row:1/3}.theme-swatch.cicorp-light i:first-child{background:#142e33}.theme-swatch.cicorp-light i:nth-child(2){background:#fff}.theme-swatch.cicorp-light i:nth-child(3){background:#f4f7f7}
.theme-swatch.midnight i:first-child{background:#09111e}.theme-swatch.midnight i:nth-child(2){background:#213149}.theme-swatch.midnight i:nth-child(3){background:#101827}
.theme-swatch.graphite i:first-child{background:#101112}.theme-swatch.graphite i:nth-child(2){background:#323438}.theme-swatch.graphite i:nth-child(3){background:#191a1c}
.theme-swatch.ocean i:first-child{background:#0c3444}.theme-swatch.ocean i:nth-child(2){background:#e3f1f6}.theme-swatch.ocean i:nth-child(3){background:#eef7fa}
.theme-swatch.emerald i:first-child{background:#06140f}.theme-swatch.emerald i:nth-child(2){background:#1e3a2f}.theme-swatch.emerald i:nth-child(3){background:#0d1b16}
.theme-swatch.aurora i:first-child{background:#11102a}.theme-swatch.aurora i:nth-child(2){background:#312e58}.theme-swatch.aurora i:nth-child(3){background:#17162c}
.theme-swatch.sandstone i:first-child{background:#34271f}.theme-swatch.sandstone i:nth-child(2){background:#f1e8db}.theme-swatch.sandstone i:nth-child(3){background:#f8f4ee}
.theme-swatch.ruby i:first-child{background:#230c14}.theme-swatch.ruby i:nth-child(2){background:#522333}.theme-swatch.ruby i:nth-child(3){background:#2f121c}
.theme-swatch.arctic i:first-child{background:#153846}.theme-swatch.arctic i:nth-child(2){background:#e8f3f8}.theme-swatch.arctic i:nth-child(3){background:#f2f8fb}
.theme-swatch.royal i:first-child{background:#0e1424}.theme-swatch.royal i:nth-child(2){background:#2c3853}.theme-swatch.royal i:nth-child(3){background:#151c2e}

.ai-fab{position:fixed;right:26px;bottom:24px;z-index:45;border:0;background:var(--brand);color:#fff;box-shadow:0 12px 30px #0003;border-radius:999px;padding:13px 18px}.ai-fab span{font-size:17px;margin-right:6px}
.ai-chat{display:flex;flex-direction:column;min-height:520px}.ai-chat-log{height:min(52vh,540px);overflow:auto;padding:22px;display:flex;flex-direction:column;gap:13px;background:var(--surface-soft)}
.ai-message{max-width:82%;padding:13px 15px;border-radius:13px;background:var(--surface);border:1px solid var(--line);align-self:flex-start}.ai-message.user{align-self:flex-end;background:color-mix(in srgb,var(--brand) 14%,var(--surface));border-color:color-mix(in srgb,var(--brand) 35%,var(--line))}.ai-message strong{font-size:10px;color:var(--muted)}.ai-message p{margin:6px 0 0;line-height:1.65}.ai-message-meta{display:block;margin-top:8px;color:var(--muted);font-size:10px}
.ai-empty{margin:auto;color:var(--muted);text-align:center;max-width:480px;padding:60px 20px}.ai-compose{padding:17px;background:var(--surface)}.ai-compose textarea{margin:0;resize:vertical}.ai-compose-footer{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-top:10px}.ai-compose-footer small{color:var(--muted);line-height:1.4}
@media(max-width:760px){.theme-grid{grid-template-columns:1fr}.theme-card{grid-template-columns:62px 1fr auto}.theme-swatch{width:62px}.ai-message{max-width:94%}.ai-fab{right:14px;bottom:14px;padding:11px 14px}.ai-compose-footer{align-items:flex-start;flex-direction:column}.ai-compose-footer button{width:100%}}

/* 0.3.8+: reference fields in preview forms use visible choice lists. */
.developer a,.sidebar-bottom a,.footer a{color:inherit;text-decoration:underline;text-underline-offset:2px}.developer a:hover,.sidebar-bottom a:hover,.footer a:hover{color:var(--brand)}
.ai-result-list{display:grid;gap:8px;margin-top:12px}.ai-result-card{display:block;width:100%;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);text-align:left;overflow:hidden}.ai-result-card:hover,.ai-result-card:focus-visible{border-color:var(--brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 12%,transparent)}.ai-result-copy{display:grid;gap:4px;padding:11px 12px}.ai-result-copy strong{font-size:12px;color:var(--ink)}.ai-result-copy small{font-size:10px;color:var(--muted);font-weight:400;line-height:1.45}.ai-result-copy span{font-size:10px;color:var(--brand);font-weight:650;margin-top:2px}.ai-return{margin-top:8px}.ai-return .subtle{margin-left:auto}
@media(max-width:760px){.ai-result-card{border-radius:9px}.ai-result-copy{padding:10px}.ai-return .subtle{width:100%}}

/* Integration roadmap catalog with category filters and visual icons. */
.integration-catalog{display:grid;gap:18px}.integration-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.integration-summary>div{display:flex;align-items:baseline;gap:10px;padding:15px 17px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.integration-summary strong{font-size:22px;color:var(--brand)}.integration-summary span{font-size:10px;color:var(--muted);line-height:1.4}.integration-note{margin:0;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);font-size:11px;line-height:1.6;color:var(--muted)}
.integration-tabs{display:flex;flex-wrap:wrap;gap:8px}.integration-tabs button{padding:9px 12px;border-radius:999px;font-size:10px;background:var(--surface)}.integration-tabs button.active{background:var(--brand);border-color:var(--brand);color:#fff}.integration-grid.rich{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.integration-card{display:flex;flex-direction:column;min-height:245px;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:17px;box-shadow:0 5px 18px color-mix(in srgb,var(--ink) 5%,transparent)}.integration-card:hover{border-color:color-mix(in srgb,var(--brand) 45%,var(--line));transform:translateY(-1px)}.integration-card-head{display:flex;gap:12px;align-items:flex-start}.integration-card-head h3{margin:2px 0 7px;font-size:13px}.integration-card-meta{display:flex;gap:6px;flex-wrap:wrap}.integration-card p{min-height:0;flex:1;margin:15px 0 10px;font-size:11px;line-height:1.65;color:var(--ink)}.integration-card-source{font-size:9px;color:var(--muted);line-height:1.4;margin-bottom:12px}.integration-card .subtle{align-self:flex-start;margin-top:auto}.integration-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto;background:linear-gradient(145deg,color-mix(in srgb,var(--brand) 24%,var(--surface)),color-mix(in srgb,var(--brand) 7%,var(--surface)));color:var(--brand);border:1px solid color-mix(in srgb,var(--brand) 20%,var(--line));box-shadow:inset 0 1px 0 #fff2}.integration-icon svg{width:24px;height:24px}.integration-card:nth-child(4n+2) .integration-icon{color:#4e83d1;background:linear-gradient(145deg,color-mix(in srgb,#4e83d1 24%,var(--surface)),color-mix(in srgb,#4e83d1 7%,var(--surface)));border-color:color-mix(in srgb,#4e83d1 20%,var(--line))}.integration-card:nth-child(4n+3) .integration-icon{color:#a971c8;background:linear-gradient(145deg,color-mix(in srgb,#a971c8 24%,var(--surface)),color-mix(in srgb,#a971c8 7%,var(--surface)));border-color:color-mix(in srgb,#a971c8 20%,var(--line))}.integration-card:nth-child(4n+4) .integration-icon{color:#c48645;background:linear-gradient(145deg,color-mix(in srgb,#c48645 24%,var(--surface)),color-mix(in srgb,#c48645 7%,var(--surface)));border-color:color-mix(in srgb,#c48645 20%,var(--line))}.integration-plan-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px}.integration-plan-steps span{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);font-size:10px;color:var(--muted)}.integration-plan-steps span::first-letter{font-weight:700;color:var(--brand)}
@media(max-width:1250px){.integration-grid.rich{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-plan-steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.integration-summary{grid-template-columns:1fr}.integration-grid.rich{grid-template-columns:1fr}.integration-card{min-height:0}.integration-plan-steps{grid-template-columns:1fr}.integration-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:4px}.integration-tabs button{white-space:nowrap}}

/* Proposal discussion attachments: immutable files with authenticated preview. */
.attachments-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.attachment-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:10px;background:var(--surface-2)}
.attachment-preview{width:92px;height:72px;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--surface);display:flex;align-items:center;justify-content:center}
.attachment-thumb{width:100%;height:100%;object-fit:cover;display:block}.attachment-file-icon{font-weight:800;font-size:13px;letter-spacing:.04em}
.attachment-meta{min-width:0;display:flex;flex-direction:column;gap:4px}.attachment-meta strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-meta small{color:var(--muted)}
.attachment-viewer{width:min(1120px,96vw);height:min(860px,94vh);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text)}
.attachment-viewer::backdrop{background:rgba(5,10,18,.78)}.attachment-viewer-head{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line)}
.attachment-viewer-head>div:first-child{display:flex;min-width:0;flex-direction:column}.attachment-viewer-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-viewer-actions{display:flex;gap:8px;align-items:center}
.attachment-viewer-close{font-size:24px;line-height:1;padding:7px 11px}.attachment-viewer-body{height:calc(100% - 72px);display:flex;align-items:center;justify-content:center;overflow:auto;padding:12px;background:var(--surface-2)}
.attachment-full-image{max-width:100%;max-height:100%;object-fit:contain}.attachment-pdf{width:100%;height:100%;border:0;background:#fff}.button-link{display:inline-flex;align-items:center;text-decoration:none;border:1px solid var(--line);border-radius:9px;padding:8px 12px;color:var(--text);background:var(--surface)}
@media(max-width:640px){.attachment-card{grid-template-columns:72px minmax(0,1fr)}.attachment-preview{width:72px;height:64px}.attachment-viewer{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.attachment-viewer-head{padding:10px}.attachment-viewer-body{height:calc(100% - 66px);padding:6px}}

/* 0.3.13: roadmap and active billing module are separate views. */
.integration-section-title{margin:18px 0 4px;font-size:1.25rem}

/* 0.3.14: controlled in-product updater. */
.update-upload{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:12px;align-items:center;margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.update-upload input[type=file]{min-width:0;width:100%;padding:10px;border:1px dashed var(--line);border-radius:9px;background:var(--surface)}
.update-upload .form-note{grid-column:1/-1;margin:0}.update-log{white-space:pre-wrap;word-break:break-word;max-height:62vh;overflow:auto;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}
.update-log-live{max-height:34vh;min-height:110px}.update-state{font-weight:700}.update-running{display:block;width:100%;margin:10px 0 16px}.update-history-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--line);cursor:pointer;border-radius:6px;transition:background-color .15s ease}.update-history-row:hover,.update-history-row:focus-visible{background:color-mix(in srgb,var(--accent) 9%,transparent);outline:2px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:1px}.update-history-row.is-selected{background:color-mix(in srgb,var(--accent) 13%,transparent)}.update-history-row span{flex:1;min-width:230px}
.template-version-dialog{display:grid;gap:10px}.template-version-dialog label{margin:0}.template-version-dialog .form-note,.template-version-dialog .error{margin:0}.template-version-dialog>button{justify-self:start}
#editor:has(.template-version-dialog){width:min(540px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - 32px);overflow-y:auto}
#editor:has(.template-version-dialog) #editor-body{height:auto;max-height:none;overflow:visible;flex:none}
@media(max-width:760px){.update-upload{grid-template-columns:1fr}.update-upload .form-note{grid-column:auto}.update-upload button{width:100%}}

/* LANBilling snapshot card (0.3.15): readable on desktop and mobile. */
dialog:has(.billing-card){width:min(980px,calc(100vw - 24px))}
.billing-card .section-tabs{margin-bottom:18px}
.billing-tab-content .panel-content{padding:20px}
.billing-tab-content .panel{margin-bottom:16px}
.billing-stack{display:grid;gap:14px;padding-bottom:6px}
.billing-record{border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:18px 20px;min-width:0}
.billing-record-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:17px}
.billing-record-header strong{font-size:13px;line-height:1.55;overflow-wrap:anywhere;max-width:100%}
.billing-record .detail-grid{margin:0;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}
.billing-record .detail-grid dt{color:var(--muted)}.billing-record .detail-grid dd{color:var(--ink)}
.billing-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.billing-overview .billing-record{padding:14px}
.billing-overview .billing-record-header{margin-bottom:10px}
.billing-overview .billing-record .detail-grid{grid-template-columns:1fr}
.billing-nobreak{white-space:nowrap;display:inline-block;max-width:100%;overflow-x:auto;vertical-align:bottom;font-variant-numeric:tabular-nums}
.billing-address{display:block;white-space:normal;overflow-wrap:break-word;line-height:1.6}
.billing-record .detail-grid dd{overflow-wrap:break-word}
.billing-request-actions{display:flex;gap:10px;flex-wrap:wrap}.billing-request-actions .primary{color:#fff}
@media(max-width:760px){.billing-overview{grid-template-columns:1fr}.billing-record{padding:15px}.billing-record .detail-grid{grid-template-columns:1fr 1fr;gap:14px}.billing-record-header .subtle{white-space:normal}}
@media(max-width:440px){.billing-record .detail-grid{grid-template-columns:1fr}}

/* Connections workbook redesign — dark/light theme adaptive */
.excel-view{display:block;min-width:0}.excel-notice{border:1px solid var(--line);padding:13px 16px;border-radius:10px;background:var(--surface-soft);font-size:11px;line-height:1.55;color:var(--muted);margin-bottom:17px}.excel-notice strong{color:var(--ink)}
.excel-group-nav{display:flex;gap:8px;overflow-x:auto;margin-bottom:12px;scrollbar-width:thin}.excel-group{flex-shrink:0;background:var(--surface);color:var(--muted);font-size:12px;padding:10px 14px}.excel-group.active{background:var(--brand);border-color:var(--brand);color:#fff}.excel-register-nav{display:flex;overflow-x:auto;gap:7px;max-width:100%;padding:5px 0 15px;margin-bottom:12px;scrollbar-width:thin}.excel-register{white-space:nowrap;font-size:12px;padding:9px 13px;background:var(--surface);border:1px solid var(--line);color:var(--ink)}.excel-register.active{color:var(--brand);border-color:var(--brand);background:var(--surface-soft)}
.excel-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:12px 0 21px}.excel-metric{display:flex;flex-direction:column;gap:8px;padding:18px 19px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.excel-metric span{font-size:11px;color:var(--muted)}.excel-metric strong{font-size:24px;color:var(--ink)}.excel-metric small{font-size:10px;color:var(--muted)}
.excel-tab-description{font-size:12px;color:var(--muted);line-height:1.6;margin:18px 20px}.excel-toolbar{display:flex;align-items:center;gap:12px;padding:0 20px 15px;flex-wrap:wrap}.excel-search{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);min-width:240px;flex:1;padding-left:11px}.excel-search span{color:var(--muted);font-size:21px}.excel-search input{border:0;background:transparent;min-height:38px;margin:0;max-width:none}.excel-sheet-label{font-size:10px;color:var(--muted)}.excel-preview-label{font-size:11px;color:var(--muted)}
.excel-table-scroll{overflow:auto;max-height:61vh;min-height:190px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.excel-sheet-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:12px}.excel-sheet-table thead th{position:sticky;top:0;z-index:2;background:var(--surface-soft);height:54px;min-width:135px;max-width:260px;padding:10px 14px;font-size:11px;letter-spacing:0;text-transform:none;white-space:normal;border-bottom:1px solid var(--line)}.excel-sheet-table tbody td{background:var(--surface);min-width:135px;max-width:260px;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere;line-height:1.5}.excel-sheet-table tr:hover td{background:var(--surface-soft)}.excel-sheet-table .excel-first{position:sticky;left:0;z-index:3;min-width:52px;max-width:52px;text-align:center}.excel-sheet-table .excel-second{position:sticky;left:52px;z-index:3;min-width:130px;max-width:170px}.excel-sheet-table thead .excel-first,.excel-sheet-table thead .excel-second{z-index:4}.excel-no-records{text-align:center;min-width:100%!important;color:var(--muted);padding:45px!important}.excel-bottom{padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted)}.excel-bottom>div{display:flex;align-items:center;gap:10px}.excel-bottom button{padding:6px 12px}.excel-editor .excel-notice{margin:0 0 16px}.excel-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 15px;max-height:57vh;overflow-y:auto;padding:3px}.excel-edit-grid label{font-size:11px}.excel-edit-grid input,.excel-edit-grid select,.excel-edit-grid textarea{margin-top:6px;font-size:12px}.excel-field-long{grid-column:1/-1}dialog:has(.excel-editor){width:min(940px,96vw)}
@media(max-width:1050px){.excel-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.excel-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.excel-edit-grid{grid-template-columns:1fr}.excel-field-long{grid-column:auto}.excel-toolbar{padding:0 13px 15px}.excel-tab-description{margin:16px 13px}}

.excel-sort-button{padding:0;border:0;background:none;color:inherit;font-size:inherit;font-weight:600;white-space:normal;text-align:left}.excel-sort-button:hover{color:var(--brand)!important;background:none!important}.excel-column-filter{font-size:10px;margin:0;color:var(--muted)}.excel-column-filter select{margin:4px 0 0;min-width:155px;font-size:11px;height:38px}.excel-filter-input{max-width:230px;min-width:160px;margin:16px 0 0!important;font-size:12px}.excel-sheet-table th .excel-sort-button{width:100%}

/* Sales manager actions and compact workbook report previews. */
.sales-manager-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.sales-visit-preview-cell{min-width:190px!important;max-width:300px!important}.sales-visit-preview-cell>span{display:block;max-width:290px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sales-visit-preview-cell[title]{cursor:help}

/* 0.3.17 compact commercial connections form; responsive without page-length dialog scroll */
dialog:has(.excel-compact-form){width:min(920px,96vw);max-height:94dvh}
.excel-compact-form .excel-notice{padding:8px 12px;margin:0 0 8px}
.excel-compact-form .excel-edit-grid{max-height:calc(94dvh - 185px);grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px;padding:2px 5px 4px}
.excel-compact-form .excel-edit-grid>label{font-size:11px;margin:0;min-width:0}
.excel-compact-form .excel-edit-grid input,.excel-compact-form .excel-edit-grid select{min-height:34px;height:34px;padding:6px 10px;margin-top:4px}
.excel-compact-form .excel-edit-grid textarea{min-height:50px;height:auto;resize:none;overflow:hidden;padding:8px 10px;margin-top:4px}
.excel-compact-form .excel-field-long{grid-column:1/-1}
.excel-service-title{font-weight:600;font-size:11px;margin-bottom:7px}
.excel-service-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 10px;border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:var(--surface-soft);max-height:120px;overflow-y:auto}
.excel-service-choice{display:flex!important;align-items:center;gap:8px;margin:0!important;font-size:11px;min-width:0;cursor:pointer}
.excel-service-choice>input{flex:none;width:16px;height:16px;min-height:16px!important;margin:0!important;accent-color:var(--brand)}
.excel-service-choice span{overflow-wrap:anywhere}
.excel-dictionaries-link{padding:0}.excel-dictionaries-link button{font-size:11px;padding:4px 0;color:var(--brand)}
.excel-compact-form .dialog-actions{margin:8px 0 0;padding-top:10px}
.excel-catalog-body{padding:18px 22px;max-height:70vh;overflow:auto}
.excel-catalog-tabs{display:flex;gap:7px;overflow-x:auto;margin:0 0 12px;padding-bottom:7px;border-bottom:1px solid var(--line)}
.excel-catalog-tabs button{flex:0 0 auto;padding:8px 12px;font-size:12px}
.excel-catalog-tabs button.active{background:var(--brand);border-color:var(--brand);color:#fff}
.excel-catalog-content{display:grid;gap:9px;min-width:0}
.excel-catalog-content>h3{margin:4px 0;font-size:13px}
.excel-catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.excel-catalog-toolbar .form-note{margin:0}
.excel-catalog-content table{width:100%}
.excel-catalog-content td:first-child{font-weight:600}
.excel-catalog-content td:nth-child(2),.excel-catalog-content td:nth-child(4){white-space:nowrap}
.excel-catalog-content .warning{color:var(--red)}
.excel-catalog-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.excel-catalog-add input,.excel-catalog-add select,.excel-catalog-row input{margin:0}
.excel-catalog-row{display:grid;grid-template-columns:minmax(0,1fr) 100px auto auto;gap:9px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.excel-catalog-row label{display:flex;align-items:center;gap:7px;margin:0;font-size:11px}
.excel-catalog-row label input{width:16px;height:16px;min-height:16px}
@media(max-width:760px){.excel-compact-form .excel-edit-grid{grid-template-columns:1fr 1fr;gap:6px}.excel-service-options{grid-template-columns:repeat(2,minmax(0,1fr))}.excel-catalog-add{grid-template-columns:1fr}.excel-catalog-row{grid-template-columns:1fr auto}}
@media(max-width:480px){.excel-compact-form .excel-edit-grid{grid-template-columns:1fr}.excel-service-options{grid-template-columns:1fr}}

/* CRMCIC 0.3.19: per-service charges and immutable technical section in sales editor */
.excel-service-block-inner{border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:var(--surface-soft)}
.excel-service-column-head,.excel-service-line{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(110px,.75fr) 76px;gap:8px;align-items:center}
.excel-service-column-head{font-size:10px;color:var(--muted);margin-bottom:5px}
.excel-service-column-head span{text-align:center}
.excel-service-lines{display:grid;gap:7px;max-height:240px;overflow:auto}
.excel-service-line select,.excel-service-line input{width:100%;min-width:0;margin:0!important}
.excel-service-line-actions{display:flex;justify-content:center;gap:5px}
.excel-service-line-actions button{font-size:17px;line-height:1;width:34px;height:34px;min-width:34px;border-radius:7px;padding:0}
.excel-service-add{background:#e5f3ec;border-color:#b9dfcb;color:#176c52}
.excel-service-remove{background:#f9eded;border-color:#e5bcbc;color:#9f3434}
.excel-tech-section-title{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;border-top:1px solid var(--line);padding:11px 0 4px;margin-top:3px}
.excel-tech-section-title strong{font-size:12px}
.excel-tech-section-title span{font-size:11px;color:var(--muted)}
.excel-tech-readonly input:disabled,.excel-tech-readonly textarea:disabled{background:var(--surface-soft);color:var(--ink);opacity:.82;border-style:dashed;cursor:not-allowed}
@media(max-width:520px){.excel-service-column-head,.excel-service-line{grid-template-columns:minmax(0,1fr) minmax(84px,.65fr) 70px;gap:5px}.excel-service-line-actions button{width:30px;min-width:30px}.excel-tech-section-title{display:block}}

/* 0.3.19: summaries are calculated from saved CRM records on the server. */
.excel-summary-content{padding:4px 16px 17px;overflow-x:auto}
.excel-summary-explanation{color:var(--muted);font-size:11px;line-height:1.6;margin:10px 0 15px}
.excel-summary-warning{font-size:11px;line-height:1.6;color:var(--warning,#bd7a36);margin:12px 0}
.excel-summary-content table{width:100%;min-width:520px}
.excel-summary-content td,.excel-summary-content th{padding:10px 12px}

/* Linked phone numbers and rented IP addresses, per selected service */
.excel-service-item{border-bottom:1px solid var(--line);padding-bottom:6px;min-width:0}
.excel-service-item:last-child{border:0;padding-bottom:0}
.excel-resources-block{padding:7px 8px 7px 18px;max-width:100%}
.excel-resources-block>strong{font-size:11px;color:var(--muted)}
.excel-service-resources{display:grid;gap:6px;margin-top:6px}
.excel-resource-line{display:grid;grid-template-columns:minmax(0,1fr) 32px;max-width:520px;gap:8px;align-items:center}
.excel-resource-line input{margin:0!important;width:100%;min-width:0}
.excel-resource-line button{padding:0;width:32px;height:32px;color:var(--red)}
.excel-resource-add{justify-self:start;font-size:11px;padding:5px 10px}
.excel-equipment-block{padding:12px 8px 12px 18px;border-top:1px solid var(--line)}
.excel-equipment-block>strong{display:block;margin-bottom:9px;font-size:12px;color:var(--ink)}
.excel-equipment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.excel-equipment-fields label{display:grid;gap:5px;font-size:11px;color:var(--muted)}
.excel-equipment-fields input,.excel-equipment-fields select{width:100%;min-width:0;margin:0}
@media(max-width:600px){.excel-equipment-fields{grid-template-columns:1fr}}
.excel-service-lines{max-height:320px}
.excel-resources-readonly{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;padding:8px;border:1px dashed var(--line);border-radius:8px}


/* 0.3.19 refinement: service and termination details are embedded in KPI cards. */
.excel-metrics{grid-template-columns:repeat(2,minmax(0,.85fr)) repeat(2,minmax(0,1.3fr));align-items:stretch}
.excel-metric-expanded{min-width:0;gap:6px}
.excel-metric-expanded .excel-metric-total{font-size:23px;line-height:1.25}
.excel-metric-note{line-height:1.45}
.excel-metric-detail-list{display:flex;flex-direction:column;gap:0;margin:6px 0 0;min-width:0;border-top:1px solid var(--line)}
.excel-metric-detail-row{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line);font-size:11px;line-height:1.4;min-width:0}
.excel-metric-detail-row[hidden]{display:none!important}
.excel-metric-detail-name{font-size:11px!important;color:var(--ink)!important;overflow-wrap:anywhere;min-width:0;flex:1}
.excel-metric-detail-name small{display:block;margin-top:2px;font-size:10px;color:var(--muted)}
.excel-metric-detail-value{font-weight:700;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.excel-metric-more{border:0;background:transparent;padding:4px 0;color:var(--brand);font-size:11px;font-weight:600;align-self:flex-start}
.excel-metric-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:9px;border-top:1px solid var(--line);font-size:11px}
.excel-metric-footer span{font-size:11px;color:var(--muted)}
.excel-metric-footer b{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.excel-metric-empty{font-size:11px;line-height:1.5;color:var(--muted);margin:10px 0 1px}
.excel-metric-warning{font-size:11px;color:var(--warning,#bd7a36);line-height:1.6;margin:-7px 0 18px}
@media(max-width:1200px){.excel-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.excel-metrics{grid-template-columns:minmax(0,1fr)}.excel-metric{min-width:0}}

/* 0.3.21 — compact month filter and server paging */
.excel-period-top{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);margin:13px 0 10px}
.excel-period-top label,.excel-month-filter label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:11px;color:var(--muted)}
.excel-period-top input,.excel-month-filter input{width:105px;max-width:105px;margin:0;min-height:34px;font-variant-numeric:tabular-nums}
.excel-month-filter{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.excel-month-filter .subtle{font-size:11px;padding:8px}
.excel-period-top .subtle{font-size:11px;padding:9px}
@media(max-width:760px){.excel-period-top{margin:10px 0}.excel-month-filter{width:100%}}

/* Kayako Classic-inspired read-only ticket browser; shared CRMCIC theme tokens. */
.kayako-ticket-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:14px;align-items:start;margin-top:16px}
.kayako-ticket-sidebar,.kayako-ticket-main{min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:14px}
.kayako-ticket-sidebar{display:flex;flex-direction:column;gap:13px}
.kayako-sidebar-heading{font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--muted);padding-top:4px}
.kayako-side-link{text-align:left;justify-content:flex-start}
.kayako-ticket-filter{display:flex;flex-direction:column;gap:10px}
.kayako-ticket-filter label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}
.kayako-ticket-filter select{width:100%;max-width:100%;min-width:0}
.kayako-ticket-main{padding:12px}
.kayako-ticket-search{margin:2px 0 12px}
.kayako-ticket-search input{min-width:180px;flex:1}
.kayako-ticket-results .table-scroll{max-width:100%;overflow-x:auto}
.kayako-ticket-results table{min-width:1120px}
.kayako-ticket-results th,.kayako-ticket-results td{font-size:12px;padding:10px 9px;vertical-align:middle}
.kayako-ticket-results th{white-space:nowrap}
.kayako-ticket-type{font-size:22px;line-height:1}
.kayako-status-chip{display:inline-block;max-width:190px;padding:6px 9px;border-left:4px solid var(--brand);border-radius:5px;background:var(--surface-2,var(--surface));white-space:normal}
.kayako-ticket-pagination{display:flex;gap:15px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-top:12px}
.kayako-conversation{padding:13px;display:flex;flex-direction:column;gap:12px;max-height:50vh;overflow:auto}
.kayako-message{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.kayako-message.private{border-left:4px solid #b78c42}
.kayako-message-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:9px;font-size:12px}
.kayako-message-head span{color:var(--muted)}
.kayako-message .preserve-lines{overflow-wrap:anywhere;white-space:pre-wrap}
@media(max-width:800px){.kayako-ticket-layout{grid-template-columns:1fr}.kayako-ticket-sidebar{flex-direction:row;flex-wrap:wrap}.kayako-ticket-sidebar .kayako-ticket-filter{flex:1 1 250px}}

.kayako-ticket-main a[href*="/attachments/"]{color:var(--accent);font-weight:600;text-decoration:underline}

.excel-sheet-table tbody tr.excel-clickable-row{cursor:pointer}.excel-sheet-table tbody tr.excel-clickable-row:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.excel-service-total{margin:12px 4px 2px;padding:10px 12px;border-top:1px solid var(--line);font-weight:700;text-align:right}.excel-month-filter input[type=month]{min-width:135px;cursor:pointer}

.excel-range-filter{display:flex;flex-wrap:wrap;align-items:end;gap:8px}.excel-date-filter{min-width:150px}.excel-date-picker{display:flex;gap:4px}.excel-date-picker input{min-width:125px;max-width:170px}.excel-date-picker button{padding:6px 9px}.excel-service-total{font-size:1.07em}
.excel-period-title{flex-basis:100%;font-size:12px;color:var(--ink)}
.excel-period-top .excel-date-filter{min-width:185px}
.excel-period-top .excel-date-picker input[type=date]{width:160px;min-width:160px;max-width:160px;cursor:pointer}
.excel-month-filter .excel-date-picker input[type=date]{width:160px;min-width:160px;max-width:160px;cursor:pointer}

/* Commercial documents: wide modal with an independently scrollable work area. */
#editor[open]{display:flex;flex-direction:column;width:min(1120px,96vw);max-width:96vw;height:min(92dvh,920px);max-height:92dvh;overflow:hidden}
#editor .dialog-head{position:sticky;top:0;flex:0 0 auto}
#editor-body{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.commercial-documents-panel,.commercial-document-workspace{min-width:0}
.commercial-document-workspace>.muted{margin:0 0 18px}
.commercial-document-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.commercial-template-selection{grid-template-columns:minmax(0,1fr)}
.commercial-document-options{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2,var(--surface))}
.commercial-document-options h3,.commercial-template-generation h3{margin:0 0 12px;font-size:14px}
.commercial-document-option{display:flex;align-items:flex-start;gap:10px;padding:10px 11px;margin:7px 0;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-weight:500;line-height:1.45;cursor:pointer}
.commercial-document-option:hover{border-color:var(--brand);background:var(--surface-2,var(--surface))}
.commercial-document-option input{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--brand)}
.commercial-document-option span{min-width:0;overflow-wrap:anywhere}
.commercial-template-options{max-height:260px;overflow:auto;padding-right:3px}
.commercial-contract-number{max-width:520px;margin-top:18px}
.commercial-bundle-actions{position:sticky;bottom:-1px;margin:18px -1px 0;padding:14px 0 2px;background:var(--surface);z-index:1}
.commercial-bundle-actions button{min-height:46px}
.commercial-bundle-status{min-height:0;margin-top:14px;font-size:12px;line-height:1.6}
.commercial-bundle-status:empty{display:none}
.commercial-bundle-success{padding:12px 14px;border:1px solid #b8dac7;border-radius:9px;background:#edf7f0;color:#225b43}
.commercial-bundle-download{display:inline-block;margin:4px 0 0 6px;padding:8px 12px;border-radius:7px;background:#26775e;color:#fff;font-weight:650;text-decoration:none}
.commercial-bundle-download:hover{background:#1d624d;color:#fff}
.commercial-template-generation{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.commercial-document-item{padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
@media(max-width:760px){
 #editor[open]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
 #editor-body{padding:16px 14px;padding-bottom:max(18px,env(safe-area-inset-bottom))}
 .commercial-document-selection{grid-template-columns:1fr;gap:10px}
 .commercial-document-options{padding:12px}
 .commercial-template-options{max-height:220px}
 .commercial-contract-number{max-width:none}
 .commercial-bundle-actions{bottom:0;padding:10px 0 max(8px,env(safe-area-inset-bottom))}
 .commercial-bundle-actions button{width:100%;flex:1 1 100%}
}


/* 0.3.51: the connection card grows with its fields; only the dialog scrolls when it reaches the viewport. */
#editor[open]{display:block;width:min(1120px,96vw);max-width:96vw;height:auto;max-height:calc(100dvh - 32px);overflow-x:hidden;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}
#editor[open]::-webkit-scrollbar,#editor[open] *::-webkit-scrollbar{display:none;width:0;height:0}
#editor .dialog-head{position:relative;top:auto}
#editor-body{min-height:0;height:auto;max-height:none;flex:none;overflow:visible;scrollbar-gutter:auto}
#editor-body .excel-edit-grid,.excel-compact-form .excel-edit-grid{height:auto;max-height:none;overflow:visible}
#editor .excel-compact-form textarea{resize:none;overflow:hidden}
.excel-compact-form .excel-service-lines,.excel-compact-form .excel-service-options{height:auto;max-height:none;overflow:visible}
.excel-compact-form .excel-service-lines{padding-bottom:2px}
@media(max-width:760px){
 #editor[open]{width:min(100vw - 16px,1120px);max-width:calc(100vw - 16px);height:auto;max-height:calc(100dvh - 16px);margin:auto;border-radius:15px}
 #editor-body{padding:16px 14px}
}

.excel-sheet-table tbody td{padding:4px 8px;line-height:1.2}
.excel-sheet-table .excel-service-summary-cell{white-space:nowrap;min-width:210px;max-width:260px}
.excel-service-summary-preview{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;line-height:1.3}
.excel-connection-line strong{font-size:12px}.excel-charge-once{text-align:center;color:var(--muted);font-size:11px}

/* 0.3.73: keep template version upload focused on its small form. */
#editor[open].template-version-open{width:min(520px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;height:auto!important;max-height:calc(100dvh - 32px)!important;overflow-x:hidden;overflow-y:auto}
#editor[open].template-version-open #editor-body{min-height:0;height:auto;max-height:none;overflow:visible;flex:none}

.excel-equipment-model-field{position:relative;grid-column:1/-1;display:grid;gap:5px;font-size:11px;color:var(--muted)}
.lanbilling-equipment-input-wrap{position:relative}
.lanbilling-equipment-help{font-size:10px;line-height:1.45;color:var(--muted)}
.lanbilling-equipment-suggestions{position:absolute;z-index:35;top:calc(100% + 4px);left:0;right:0;display:grid;gap:4px;max-height:260px;overflow-y:auto;padding:6px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);box-shadow:var(--shadow)}
.lanbilling-equipment-suggestions[hidden]{display:none}
.lanbilling-equipment-option{text-align:left;padding:.65rem .8rem;width:100%}
.lanbilling-equipment-option strong,.lanbilling-equipment-option small{display:block}
.lanbilling-equipment-status{padding:.65rem .8rem;color:var(--muted);font-size:12px}

.commercial-register-actions{display:flex;justify-content:flex-end;margin:10px 0}

.commercial-register-actions{display:flex;justify-content:flex-end;margin:10px 0}


/* 0.3.108: compact commercial layout and a separate service editor. */
#editor[open]:has(.excel-compact-form){display:flex;flex-direction:column;width:min(1320px,98vw);max-width:98vw;height:auto;max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto}
#editor:has(.excel-compact-form) .dialog-head{flex:0 0 auto;padding:12px 18px;min-height:48px}
#editor:has(.excel-compact-form) .dialog-head h2{font-size:16px;line-height:1.3}
#editor:has(.excel-compact-form) #editor-body{padding:12px 16px;min-height:0;max-height:none;flex:0 1 auto;overflow:visible}
.excel-compact-form .excel-notice{font-size:11px;line-height:1.45;padding:8px 12px;margin:0 0 10px}
.excel-compact-form .excel-edit-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px 7px;padding:2px;max-height:none;overflow:visible}
.excel-compact-form .excel-edit-grid>label{font-size:11px;line-height:1.35;margin:0;min-width:0}
.excel-compact-form .excel-edit-grid input,.excel-compact-form .excel-edit-grid select{height:36px;min-height:36px;padding:7px 10px;margin-top:4px;border-radius:7px;font-size:12px;line-height:1.25}
.excel-compact-form .excel-edit-grid textarea{height:50px!important;min-height:50px;max-height:50px;margin-top:4px;padding:7px 10px;border-radius:7px;font-size:12px;line-height:1.35;resize:vertical;overflow:auto}
.excel-compact-form .excel-field-long:not(.excel-service-block){grid-column:span 3}
.excel-compact-form .excel-service-block,.excel-compact-form .excel-tech-section-title{grid-column:1/-1}
.excel-commercial-editor .excel-width-name,.excel-commercial-editor .excel-width-manager,.excel-commercial-editor .excel-width-person,.excel-commercial-editor .excel-width-phone{grid-column:span 2}
.excel-commercial-editor .excel-service-summary-field{grid-column:1/-1;min-width:0}
.excel-compact-form .excel-width-10 input{width:14ch;max-width:100%}
.excel-compact-form .excel-width-date input{width:18ch;max-width:100%}
.excel-compact-form .excel-width-kind select{width:17ch;max-width:100%}
.excel-compact-form .excel-width-id input{width:19ch;max-width:100%}
.excel-compact-form .excel-service-title{font-size:12px;margin:0 0 6px}
.excel-compact-form .excel-service-block-inner{padding:8px 10px;border-radius:9px}
.excel-compact-form .excel-service-column-head{font-size:11px;margin-bottom:5px}
.excel-compact-form .excel-service-column-head,.excel-compact-form .excel-service-line{gap:8px}
.excel-compact-form .excel-service-lines{gap:5px;max-height:180px;overflow:auto}
.excel-compact-form .excel-service-line select,.excel-compact-form .excel-service-line input{height:34px;min-height:34px;padding:6px 9px;font-size:12px}
.excel-compact-form .excel-service-line-actions button{width:30px;height:30px;min-width:30px;font-size:16px;border-radius:7px}
.excel-compact-form .excel-service-total{margin:7px 0 0;padding:7px 9px;font-size:12px;line-height:1.3}
.excel-compact-form .excel-tech-section-title{padding:8px 0 2px;margin-top:4px;gap:4px 9px}
.excel-compact-form .excel-tech-section-title strong{font-size:12px}
.excel-compact-form .excel-tech-section-title span{font-size:11px}
.excel-compact-form .excel-resources-readonly{padding:8px 10px;font-size:11px;line-height:1.4}
.excel-compact-form .dialog-actions{gap:8px;margin-top:10px;padding-top:8px}
.excel-compact-form .dialog-actions button{min-height:36px;padding:7px 12px;font-size:12px;border-radius:7px}
@media(max-width:1100px){.excel-compact-form .excel-edit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
 #editor[open]:has(.excel-compact-form){width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-x:hidden;overflow-y:auto;margin:auto}
 #editor:has(.excel-compact-form) #editor-body{overflow:visible}
 .excel-compact-form .excel-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .excel-commercial-editor .excel-field-long:not(.excel-service-block){grid-column:1/-1}
}
@media(max-width:480px){.excel-compact-form .excel-edit-grid{grid-template-columns:1fr}.excel-compact-form .excel-field-long:not(.excel-service-block),.excel-commercial-editor .excel-width-name,.excel-commercial-editor .excel-width-manager,.excel-commercial-editor .excel-width-person,.excel-commercial-editor .excel-width-phone{grid-column:auto}.excel-commercial-editor .excel-service-summary-field{grid-column:1/-1}}

.excel-service-summary{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;min-height:36px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);font-size:12px;line-height:1.35}
.excel-service-summary-list{display:flex;flex:1 1 420px;gap:5px 7px;flex-wrap:wrap;min-width:0}
.excel-service-summary-item{display:inline-flex;align-items:center;gap:7px;padding:4px 8px;border-radius:6px;background:var(--surface);border:1px solid var(--line);white-space:nowrap}
.excel-service-summary-item b{font-weight:650}
.excel-service-summary-total{font-weight:650;white-space:nowrap}
.excel-service-summary button{min-height:30px;padding:5px 10px;font-size:12px}
.excel-service-summary .excel-service-edit-button{min-height:38px;padding:8px 16px;border:1px solid var(--brand);border-radius:8px;background:var(--brand);color:#fff;font-weight:700;white-space:nowrap;box-shadow:0 2px 7px color-mix(in srgb,var(--brand) 34%,transparent)}
.excel-service-summary .excel-service-edit-button:hover:not(:disabled){background:color-mix(in srgb,var(--brand) 84%,#000);border-color:color-mix(in srgb,var(--brand) 84%,#000);box-shadow:0 3px 10px color-mix(in srgb,var(--brand) 42%,transparent);transform:translateY(-1px)}
.excel-service-summary .excel-service-edit-button:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 45%,white);outline-offset:2px}
dialog.excel-service-edit-dialog{width:min(980px,96vw);max-width:96vw;max-height:calc(100dvh - 24px);padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
dialog.excel-service-edit-dialog::backdrop{background:rgba(9,15,25,.48)}
.excel-service-dialog-content{display:grid;gap:6px;max-height:none;overflow:visible}
.excel-service-dialog-content .excel-notice{margin:0;padding:6px 9px;font-size:12px;line-height:1.35}
.excel-service-edit-dialog .dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px;padding:5px 8px 8px}
.excel-service-edit-dialog .dialog-head h2{margin:0;font-size:16px}
.excel-service-edit-dialog .dialog-actions{display:flex;justify-content:flex-end;margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
.excel-service-edit-dialog .excel-service-lines{display:grid;gap:4px;max-height:none;overflow:visible;padding-bottom:0}
.excel-service-edit-dialog .excel-service-line{gap:6px;grid-template-columns:minmax(0,1.5fr) minmax(110px,.75fr) 68px}
.excel-service-edit-dialog .excel-service-line select,.excel-service-edit-dialog .excel-service-line input,
.excel-service-edit-dialog .excel-connection-line input{height:34px;min-height:34px;padding:5px 9px;font-size:12px;line-height:1.25}
.excel-service-edit-dialog .excel-service-line-actions{gap:4px}
.excel-service-edit-dialog .excel-service-line-actions button{width:30px;height:30px;min-width:30px;font-size:15px}
.excel-service-edit-dialog .excel-service-item{padding-bottom:3px}
.excel-service-edit-dialog .excel-resources-block{padding:4px 6px 4px 12px}
.excel-service-edit-dialog .excel-service-resources{gap:4px;margin-top:3px}
.excel-service-edit-dialog .excel-resource-line{gap:5px}
.excel-service-edit-dialog .excel-resource-line input{height:34px;min-height:34px;padding:5px 9px;font-size:12px}
.excel-service-edit-dialog .excel-resource-line button{width:29px;height:29px}
.excel-service-edit-dialog .excel-resource-add{padding:4px 8px;font-size:11px}
.excel-service-edit-dialog .excel-service-total{margin:5px 0 0;padding:6px 8px;font-size:12px}
.excel-service-edit-dialog .excel-equipment-block{padding:7px 6px 7px 12px}
.excel-service-edit-dialog .excel-equipment-block>.panel-head{padding:4px 0 6px;min-height:0}
.excel-service-edit-dialog .excel-equipment-fields{gap:6px}
.excel-service-edit-dialog .excel-equipment-fields label{gap:3px}
.excel-service-edit-dialog .excel-equipment-fields input,.excel-service-edit-dialog .excel-equipment-fields select{height:34px;min-height:34px;padding:5px 9px;font-size:12px}
.excel-service-edit-dialog .excel-equipment-model-field{gap:3px}
.excel-service-edit-dialog .lanbilling-equipment-help{line-height:1.3}
@media(max-width:600px){dialog.excel-service-edit-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:8px}.excel-service-summary-total{white-space:normal}.excel-service-edit-dialog .excel-service-line{grid-template-columns:minmax(0,1fr) minmax(84px,.65fr) 64px;gap:5px}}

/* Search by any three characters; results expand with the single dialog scroll. */
.excel-service-search{min-width:0;align-self:start}
.excel-service-search>input{width:100%;margin:0}
.excel-service-suggestions{display:grid;gap:2px;margin-top:4px;padding:4px;border:1px solid var(--line);border-radius:7px;background:var(--surface,#fff)}
.excel-service-suggestions[hidden]{display:none}
.excel-service-suggestions button{display:flex;justify-content:space-between;gap:12px;align-items:center;text-align:left;white-space:normal;min-width:0;width:100%;padding:6px 8px;border:0;background:transparent;color:var(--ink)}
.excel-service-suggestions button:hover,.excel-service-suggestions button[aria-selected="true"]{background:var(--brand);color:#fff}
.excel-service-suggestions button span{overflow-wrap:anywhere}
.excel-service-suggestions small{flex-shrink:0;font-size:11px}
.excel-service-search-note{padding:6px 8px;font-size:11px;color:var(--muted)}

.excel-service-search{position:relative}
.excel-service-search>input{padding-right:38px!important}
.excel-service-search>.excel-service-dropdown-toggle{position:absolute;right:1px;top:1px;width:32px;min-height:32px;height:32px;padding:0;border:0;border-left:1px solid var(--line);border-radius:0 6px 6px 0;background:var(--surface-soft);color:var(--ink);font-size:18px}

/* 0.3.130: compact proposal filters and theme-aware completion colors. */
.proposal-filters{display:grid;grid-template-columns:minmax(240px,360px) minmax(200px,260px) auto;gap:10px;align-items:center;margin:16px 0 18px}
.proposal-filters input,.proposal-filters select{width:100%;min-width:0;max-width:none;height:42px;min-height:42px;margin:0;padding:9px 12px;background:var(--input-bg);color:var(--ink);border-color:var(--line)}
.proposal-filters button{height:42px;min-height:42px;min-width:86px;padding:8px 16px}
.proposal-note{margin:0 0 14px!important;padding:10px 13px!important;border-left:3px solid #2eaf62;line-height:1.5}
.proposal-stage-pill{display:inline-flex;align-items:center;padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface-muted);color:var(--ink);font-size:11px;font-weight:650;line-height:1.2;white-space:nowrap}
.proposal-stage-pill.inprogress{background:color-mix(in srgb,#d69a19 16%,var(--surface));border-color:color-mix(in srgb,#d69a19 32%,var(--line))}
.proposal-stage-pill.testing{background:color-mix(in srgb,#5488d1 16%,var(--surface));border-color:color-mix(in srgb,#5488d1 32%,var(--line))}
.proposal-stage-pill.completed{background:#176f49;border-color:#176f49;color:#fff}
.proposal-completed td{background:color-mix(in srgb,#2eaf62 17%,var(--surface));color:var(--ink)}
.proposal-completed td:first-child{border-left:4px solid #2eaf62}
.proposal-completed td .record-link{color:var(--ink)}
.proposal-completed:hover td{background:color-mix(in srgb,#2eaf62 22%,var(--surface))}
.proposal-form .proposal-upload-box{grid-column:1/-1;display:grid;gap:9px;padding:13px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}
.proposal-upload-box>strong{font-size:12px}
.proposal-upload-controls,.proposal-upload-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.proposal-upload-controls{margin:0}
.proposal-paste-target{width:100%;min-height:54px;padding:9px 11px;border:1px dashed var(--line);border-radius:8px;background:var(--input-bg);color:var(--ink);resize:vertical;font-size:12px}
.proposal-pending-files{display:grid;gap:5px}
.proposal-pending-files>.form-note{margin:0}
.proposal-pending-file{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 9px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.proposal-pending-file span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--ink)}
.proposal-pending-file button{flex:0 0 auto}
.proposal-upload-box .form-note{margin:0}
@media(max-width:760px){.proposal-filters{grid-template-columns:minmax(0,1fr);gap:8px;margin:14px 0}.proposal-filters button{justify-self:start}}
.accounting-form .form-grid {gap:10px;}
.accounting-form .billing-results {max-height:190px;overflow:auto;grid-column:1/-1;}
.accounting-form .billing-results button {display:block;text-align:left;width:100%;margin:3px 0;}
.accounting-form .accounting-wide {grid-column:1/-1;}
.excel-field-request-id input {width:17ch;max-width:100%;}
#editor .notification-log-message{margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2,#f7f9fa)}
#editor .notification-log-message h3{margin:0 0 8px;font-size:14px}
#editor .notification-log-message pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.45}
