:root {
  color-scheme: light;
  --canvas:#f5f7fb;--paper:#fff;--line:#e4e9f1;--ink:#17243a;--muted:#58677e;
  --blue:#174e94;--blue-dark:#123768;--pale:#eaf2fe;--nav:#31435e;
  font:15px/1.5 "Inter", "Segoe UI", system-ui, sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--canvas);color:var(--ink)}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{outline-offset:3px}
:focus-visible{outline:2px solid #265da8}
a{color:var(--blue)}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
h1,h2,h3,p{margin:0}
svg{width:19px;height:19px;vertical-align:middle;flex-shrink:0}
[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.skip{position:fixed;left:1rem;top:-6rem;z-index:20;background:white;padding:10px}
.skip:focus{top:1rem}
.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}
.sidebar{background:#fff;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:27px 16px 16px;z-index:5;overflow:auto}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:0 12px;text-decoration:none}
.brand-image{display:inline-flex;color:#103b73;align-items:center;font-size:32px;font-weight:900;letter-spacing:-.085em;line-height:1.04}
.brand-image .brand-star{color:#c92037;font-size:17px;margin-left:5px;align-self:flex-start;line-height:1}
.brand-image img{max-width:145px;max-height:61px;object-fit:contain}
.brand-caption{color:#56667c;font-size:8px;letter-spacing:.13em;font-weight:800}
.workspace{display:flex;align-items:center;gap:10px;background:#f6f8fc;border:1px solid var(--line);border-radius:8px;margin:27px 0 23px;padding:9px 10px}
.workspace strong,.sidebar-footer strong{display:block;font-size:13px;font-weight:700}
.workspace small,.sidebar-footer small{display:block;color:var(--muted);font-size:11px}
.workspace-icon,.avatar{width:34px;height:34px;border-radius:7px;display:grid;place-items:center;background:var(--pale);color:var(--blue);flex:none}
.workspace-chevron{margin-left:auto;color:var(--muted)}
.workspace-chevron svg{width:14px}
.nav-label{color:#68778b;font-size:10px;font-weight:750;letter-spacing:.10em;padding:0 11px;margin:0 0 8px}
.system-label{margin-top:27px}
nav a{display:flex;align-items:center;gap:11px;border-radius:7px;text-decoration:none;padding:10px 11px;font-size:13px;font-weight:600;color:var(--nav);margin-bottom:3px}
nav a:hover,nav a[aria-current=page]{background:#eaf2fe;color:#194d90}
nav a[aria-current=page]{font-weight:750}
.sidebar-footer{margin-top:auto;display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:15px 4px 0}
.avatar{font-size:11px;font-weight:800;border-radius:50%}
.main-shell{min-width:0}
.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 29px;gap:12px}
.breadcrumb,.top-actions,.hero-date{display:flex;align-items:center;gap:10px;font-size:13px}
.breadcrumb,.today{color:var(--muted)}
.breadcrumb strong{color:var(--ink);font-weight:650}
.breadcrumb svg{width:15px;height:15px}
.top-actions{gap:17px}
.button,.icon-button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:650;text-align:center;padding:8px 12px;min-height:37px;text-decoration:none;white-space:nowrap}
.button:hover,.icon-button:hover{background:#f0f4fb}
.button.primary{background:#194f94;border-color:#194f94;color:white}
.button.primary:hover{background:#133d74}
.button.small{min-height:32px;padding:5px 9px;font-size:12px}
.button svg,.icon-button svg{width:16px;height:16px}
.button.danger{color:#a52537}
.icon-button{padding:7px;min-width:36px}
.mobile-menu{display:none}
#main{padding:25px 28px 34px;max-width:1920px;margin:auto}
.hero{position:relative;display:flex;align-items:center;justify-content:space-between;overflow:hidden;isolation:isolate;border:1px solid #d9e5f7;background:linear-gradient(110deg,#edf4ff 0%,#edf4ff 47%,#dceaff 100%);border-radius:11px;min-height:145px;padding:22px 26px;color:#143661}
.hero-text{z-index:1}
.hero-label{color:#2c5791;font-size:10px;font-weight:800;letter-spacing:.13em;display:flex;align-items:center;gap:7px}
.hero-label svg{width:14px;height:14px}
.hero h1{font-size:clamp(29px,3vw,40px);line-height:1.13;letter-spacing:-.045em;margin:8px 0 4px}
.hero p{font-size:14px;color:#405b7d}
.hero-date{z-index:1;border:1px solid #cfdef2;background:#f7faffdb;border-radius:7px;color:#345473;padding:7px 10px;align-self:flex-end;font-size:12px;white-space:nowrap}
.hero-date svg{width:15px;height:15px}
.hero-art{position:absolute;inset:0 0 0 45%;overflow:hidden;opacity:.72;background-image:linear-gradient(#aac5ec44 1px,transparent 1px),linear-gradient(90deg,#aac5ec44 1px,transparent 1px);background-size:27px 27px;mask-image:linear-gradient(90deg,transparent 0%,black 45%)}
.orbit{position:absolute;left:61%;top:55%;transform:translate(-50%,-50%);border:1px solid #9ab7e4;border-radius:50%;aspect-ratio:1}
.orbit.outer{width:290px}.orbit.inner{width:232px}.orbit.core{width:170px}
.art-axis{position:absolute;left:61%;top:-90px;height:330px;width:1px;background:#a5bde3;transform:rotate(38deg)}
.hero-art i,.hero-art b{position:absolute;left:68%;top:28%;border-radius:50%;width:7px;height:7px;background:#7fa5dc;box-shadow:0 0 0 4px #a0bbeb60}
.hero-art b{left:49%;top:61%;width:5px;height:5px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:17px 0 19px}
.metric{display:flex;text-align:left;align-items:center;gap:12px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:13px 15px;color:var(--ink);min-height:74px}
.metric:hover{background:#f9fbff}
.metric-icon,.panel-icon{background:var(--pale);color:var(--blue);width:38px;height:38px;border-radius:8px;display:grid;place-items:center;flex:none}
.metric-icon.amber{background:#fff4db;color:#815500}.metric-icon.green{background:#e6f4ec;color:#246548}
.metric dt{color:var(--muted);font-size:11px;font-weight:650}.metric dd{margin:1px 0 0;font-size:22px;font-weight:750;line-height:1.1}
.metric dl{margin:0;min-width:0}
.dashboard{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:start;gap:16px}
.dashboard.single{display:block}
.column{display:grid;gap:16px;min-width:0}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:10px;min-width:0;box-shadow:0 1px 2px #14284005}
.panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.panel-heading{display:flex;align-items:center;gap:10px;min-width:0}
.panel-icon{width:34px;height:34px;border-radius:7px}
.panel-icon svg{width:17px;height:17px}
.panel h2{font-size:15px;font-weight:750;letter-spacing:-.01em}
.panel-heading p,.subtle{font-size:12px;color:var(--muted)}
.panel-body{padding:14px 16px}
.tabs{display:flex;gap:17px;border-bottom:1px solid var(--line);padding:0 16px;overflow:auto}
.tabs button{flex:none;background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);padding:9px 0 8px;font-size:12px;font-weight:650}
.tabs button[aria-pressed=true]{border-bottom-color:#2361ad;color:#194d90}
.count{font-size:10px;border-radius:12px;padding:1px 5px;background:#eef2f8;margin-left:4px}
form{margin:0}
.stack{display:grid;gap:10px}
label{display:grid;gap:4px;font-size:12px;font-weight:650;color:#35465f;min-width:0}
input,textarea,select{background:white;border:1px solid #dbe3ee;border-radius:6px;color:var(--ink);padding:7px 9px;width:100%;min-height:36px;font-size:13px}
input::placeholder,textarea::placeholder{color:#68788d;opacity:1}
textarea{resize:vertical;min-height:75px}
#compose textarea[name="message"]{height:460px;min-height:76px}
@media(max-width:1000px){#compose textarea[name="message"]{height:clamp(210px,52vh,460px)}}
@media(max-width:720px){#compose textarea[name="message"]{height:clamp(160px,35vh,300px)}}
.form-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.form-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.signature-note{color:var(--muted);font-size:11px;display:flex;align-items:center;gap:5px}
.signature-note svg{width:13px;height:13px;color:var(--blue)}
.table-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:8px;padding:12px 15px}
.search{display:flex;align-items:center;position:relative}
.search span{position:absolute;left:9px;color:#68788e}
.search svg{width:15px;height:15px}
.search input{padding-left:30px}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}
th{background:#f7f9fc;color:#586880;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
td,th{padding:8px 11px;border-bottom:1px solid #edf0f5}
td:first-child,th:first-child{padding-left:16px}
td:last-child,th:last-child{padding-right:16px}
td{height:45px}
td a{text-decoration:none}
td a:hover{text-decoration:underline}
.company-link{background:none;border:0;padding:0;color:var(--ink);text-align:left;font-size:12px;font-weight:700}
.company-link:hover{text-decoration:underline;color:var(--blue)}
.cell-meta{display:block;font-size:10px;color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:5px;background:#edf0f4;color:#47566d;border-radius:12px;padding:2px 7px;font-size:10px;font-weight:700;white-space:nowrap}
.pill::before,.indicator::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.pill.amber,.indicator.amber{background:#fff4db;color:#805700}
.pill.green,.indicator.green{background:#e7f5ed;color:#256848}
.pill.red{background:#fcecef;color:#9e2a3d}
.panel-footer{padding:10px 16px;color:var(--muted);font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.link-button{background:none;border:0;padding:0;color:var(--blue);font-size:12px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:4px;text-align:left}
.link-button:hover{text-decoration:underline}
.link-button svg{width:14px;height:14px}
.template-list,.message-list{list-style:none;padding:0;margin:0}
.template-list li,.message-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 16px;border-bottom:1px solid #edf0f5}
.template-list li:last-child,.message-list li:last-child{border-bottom:0}
.template-item{display:flex;align-items:center;gap:9px;min-width:0}
.template-item>span{display:grid;place-items:center;width:29px;height:29px;background:#f0f5fd;color:#24578f;border-radius:5px}
.template-item svg{width:15px;height:15px}
.template-item strong,.message-list strong{font-size:12px;display:block;overflow-wrap:anywhere}
.template-item p,.message-list p{font-size:11px;color:var(--muted)}
.assistant .panel-body{display:grid;gap:10px}
.assistant-intro{font-size:12px;color:var(--muted)}
.quick-actions{display:flex;gap:6px;flex-wrap:wrap}
.quick-actions button{background:#f3f7fd;color:#285181;border:1px solid #e1e9f6;padding:4px 8px;border-radius:6px;font-size:11px}
.quick-actions button:hover{background:#e8f0fd}
.assistant-form{display:grid;grid-template-columns:1fr auto;gap:7px}
.assistant-form input{margin-top:0}
.assistant-output:not(:empty){border-radius:7px;background:#f4f7fc;padding:9px;color:#334963;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:250px;overflow:auto}
.assistant-output .link-button{display:flex;margin-top:8px}
.indicator{display:inline-flex;align-items:center;gap:5px;color:#466383;background:#edf3fb;padding:3px 7px;border-radius:10px;font-size:10px;white-space:nowrap}
.page-heading{margin:6px 0 16px}
.page-heading h1{font-size:30px;letter-spacing:-.035em}
.page-heading p{color:var(--muted);font-size:14px}
.empty{padding:17px 16px;color:var(--muted);font-size:13px}
.empty-table{text-align:center;height:93px}
.error{color:#a5293b;font-size:13px}
dialog{max-width:min(660px,calc(100vw - 24px));width:100%;max-height:90vh;border:1px solid var(--line);border-radius:12px;color:var(--ink);padding:0}
dialog::backdrop{background:#162e54a0}
.dialog-head,.dialog-body{padding:15px 19px}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}
.dialog-head h2{font-size:18px}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.field-wide{grid-column:1/-1}
fieldset{border:1px solid var(--line);border-radius:7px;margin:0;padding:8px 10px}
fieldset legend{font-size:12px;font-weight:700}
.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.checks label{display:flex;align-items:center;gap:6px}
.checks input{width:15px;min-height:auto;accent-color:var(--blue)}
.toast{position:fixed;bottom:18px;right:18px;z-index:10;max-width:min(420px,calc(100vw - 36px));padding:12px 17px;border-radius:8px;background:#173964;color:white;box-shadow:0 5px 16px #17396425}
.toast.problem{background:#8c2636}
.signature-preview{width:100%;min-height:220px;border:1px solid var(--line);border-radius:7px}
.login-view{min-height:100vh;display:grid;place-items:center;padding:18px}
.login-card{display:grid;gap:14px;padding:26px;width:min(380px,100%)}
.login-card h1{font-size:23px}
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:16px;align-items:start}
@media(max-width:1180px){.shell{grid-template-columns:188px minmax(0,1fr)}#main{padding-inline:19px}.topbar{padding-inline:19px}.dashboard{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)}.metric{gap:7px;padding-inline:9px}.sidebar{padding-inline:12px}}
@media(max-width:1000px){.dashboard{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.column{display:contents}.composer{order:0}.companies{order:1}.templates{order:2}.assistant{order:3}}
@media(max-width:720px){.shell{display:block}.sidebar{display:none;position:fixed;top:56px;left:0;bottom:0;height:auto;width:220px;box-shadow:8px 0 28px #162e5424}.sidebar.open{display:flex}.mobile-menu{display:inline-flex}.topbar{height:56px;justify-content:flex-start;padding:0 12px}.top-actions{margin-left:auto}.today,.hero-date,.breadcrumb>span{display:none}.breadcrumb strong{font-size:12px}.new-mail{padding:6px 8px;min-height:34px}#main{padding:14px 12px 24px}.hero{padding:16px;min-height:117px}.hero-art{inset-inline-start:25%;opacity:.4}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.metric{min-height:65px}.panel-header,.panel-body{padding-inline:12px}.dashboard{gap:12px}.table-toolbar{padding-inline:12px}.form-actions .button{min-height:40px}}
@media(max-width:380px){.panel-header>.button span{display:none}.table-toolbar{grid-template-columns:minmax(0,1fr) 118px}.fields{grid-template-columns:1fr}.signature-note{display:none}}
@media(min-width:1001px){.settings-grid .column{display:grid}}
@media(max-width:720px){.table-scroll table{min-width:355px}input,select,textarea{font-size:16px}.form-actions .button{min-height:44px}}

.workspace-icon img{width:100%;height:100%;max-height:34px;object-fit:contain}
.workspace-icon.with-logo{width:56px;background:white}
.company-tools{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.company-tools .search{width:clamp(115px,14vw,200px)}
.company-tools input{min-height:32px}
.crm-table,.research-table{line-height:1.28}
.crm-table td,.crm-table th,.research-table td,.research-table th{padding:7px 5px}
.research-table th{white-space:normal;overflow-wrap:normal;hyphens:auto}
.crm-table thead th{padding:7px 5px;text-align:center;vertical-align:middle;white-space:nowrap;overflow-wrap:normal;hyphens:none}
.crm-table thead svg{width:14px;height:14px;opacity:.8}
.crm-table td:first-child,.research-table :is(td,th):first-child{padding-left:12px}
.crm-table td:last-child,.research-table :is(td,th):last-child{padding-right:9px}
.crm-table td,.research-table td{overflow-wrap:anywhere}
.crm-table td:first-child{min-width:106px}
.crm-table td:nth-child(4){min-width:76px}
.crm-table td:nth-child(n+5):nth-child(-n+8),.crm-table th:nth-child(n+5):nth-child(-n+8){text-align:center}
.crm-table td:nth-child(9){min-width:125px}
.crm-table th:nth-child(5){width:64px}
.crm-table th:nth-child(6),.crm-table th:nth-child(7){width:47px}
.company-name .cell-edit{font-weight:750;color:var(--ink)}
.cell-edit{padding:0;border:0;background:transparent;color:inherit;text-align:left;overflow-wrap:anywhere;font-size:inherit;line-height:inherit;max-width:100%}
.cell-edit:hover{text-decoration:underline;color:var(--blue)}
.cell-edit svg{width:13px;height:13px;color:var(--blue)}
.contact-mail{border:0;background:transparent;padding:0;color:var(--blue);font:inherit;text-align:left;overflow-wrap:anywhere}
.contact-mail:hover{text-decoration:underline}
.contact-value .cell-edit{padding:3px;margin-left:2px;vertical-align:middle}
.inline-company{min-width:110px;display:grid;grid-template-columns:1fr 1fr;gap:3px}
.inline-company label,.inline-company .error{grid-column:1/-1}
.inline-company input{padding:4px;min-height:30px}
.status-button{display:inline-grid;place-items:center;vertical-align:middle;border:1px solid #d5dfed;background:#fff;color:#5a6c85;border-radius:5px;width:25px;height:25px;padding:0}
.status-button svg{width:15px;height:15px}
.status-button.green,.customer-select.green,.status-button.has-notes{color:#226247;background:#e6f4ec;border-color:#cfe8d9}
.status-button.red,.customer-select.red{color:#962a3a;background:#fbecef;border-color:#efd3d9}
.status-button.amber{color:#855a07;background:#fff1d6;border-color:#f1ddba}
.status-button.disabled{background:#edf1f6}
button.status-button:hover{border-color:#6a8bb5}
.customer-cell{display:flex;align-items:center;gap:3px}
.customer-select{font-size:11px;font-weight:650;min-height:28px;padding:2px 3px;background:#edf1f6}
#company-status{width:auto;min-height:29px;font-size:12px}
.icon-button.compact{min-height:25px;min-width:25px;padding:3px}
.icon-button.compact svg{width:13px;height:13px}
.button.positive{background:#e2f4e9;color:#1c6242;border-color:#c2e2cf}
.button.positive:hover{background:#cdebd7}
.criteria-grid{display:flex;align-items:flex-start;gap:6px;flex-wrap:wrap}
.criterion{position:relative;display:flex;align-items:center;gap:5px;background:#f7f9fc;border:1px solid #e3eaf3;border-radius:5px;padding:4px 6px;font-size:11px;cursor:pointer}
.criterion input,.import-label input{position:absolute;width:1px;height:1px;min-height:0;opacity:0}
.criterion span{display:inline-grid;place-items:center;width:13px;height:13px;flex:none;border:1px solid #c8d3e2;border-radius:3px;background:white;color:#576578;font:700 11px/1 Arial,sans-serif}
.criterion input:checked + span::before{content:'×'}
.criterion:focus-within,.import-label:focus-within{outline:2px solid #265da8;outline-offset:2px}
.import-label{position:relative;cursor:pointer}
.plain-check{display:flex;align-items:center;gap:6px}
.plain-check input{width:15px;min-height:0}
.research-details{display:grid;gap:4px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0}
.research-details dt{font-weight:650}
.research-details dd{margin:0;overflow-wrap:anywhere}
.preline{white-space:pre-wrap;overflow-wrap:anywhere}
.research-table .form-actions{flex-wrap:nowrap}
.research-table .positive{white-space:normal}
@media(min-width:1001px){.dashboard{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}.crm-table{min-width:560px}}
@media(max-width:1000px){.research{order:2}.templates{order:3}}
@media(max-width:720px){
  .companies .panel-header{flex-wrap:wrap}
  .company-tools{width:100%;justify-content:space-between}
  .company-tools .search{width:min(58%,220px)}
  .crm-scroll .crm-table{display:block;min-width:0}
  .crm-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .crm-table tbody{display:grid;padding:0 12px}
  .crm-table tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 8px;padding:9px 0;border-bottom:1px solid var(--line)}
  .crm-table tr:last-child{border-bottom:0}
  .crm-table td,.crm-table :is(td,th):first-child,.crm-table :is(td,th):last-child{display:block;padding:0;min-width:0;height:auto;border:0}
  .crm-table td[data-label]::before{content:attr(data-label);font-size:10px;color:var(--muted);display:block;margin-bottom:3px;font-weight:650}
  .crm-table td:nth-child(1){grid-column:span 2}
  .crm-table td:nth-child(2){grid-column:span 2}
  .crm-table td:nth-child(3),.crm-table td:nth-child(4){grid-column:span 2}
  .crm-table td:nth-child(9),.crm-table td.empty{grid-column:1/-1}
  .crm-table td:nth-child(9) .customer-select{max-width:180px}
  .crm-table .state-cell .status-button{width:38px;height:38px}
  .crm-table .contact-value .cell-edit svg{width:17px;height:17px}
  .criterion{padding:7px 6px}
  .research-table{min-width:510px!important}
  .research-table .form-actions .button{min-height:36px}
}

.sidebar .brand{padding-inline:0}
.brand-image.original-logo{display:block;position:relative;width:100%;aspect-ratio:445/123;overflow:hidden}
.brand-image.original-logo img{position:absolute;max-width:none;max-height:none;width:112.36%;height:auto;left:-6.52%;top:-162.60%}
.login-card .original-logo{max-width:180px}
.status-button.green{background:#087342;color:#fff;border-color:#087342}
.status-button.red{background:#b12434;color:#fff;border-color:#b12434}
.status-button.amber{background:#ffbb40;color:#381f00;border-color:#c87906}
.status-button.green svg,.status-button.red svg,.status-button.amber svg{stroke-width:2.4}
.crm-table .contact-state-cell{background:#edf4ff}
.crm-table th.contact-state-cell{color:#204e85}
.sidebar nav .script-nav{background:#195ca8;color:#fff;justify-content:center;min-height:44px;margin:12px 0 0;font-size:15px;font-weight:750}
.sidebar nav .script-nav:hover,.sidebar nav .script-nav[aria-current=page]{background:#124780;color:white}
.script-form{width:clamp(340px,40%,780px);margin:0 auto;min-height:calc(100vh - 118px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.script-tools{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--line);padding:10px;flex-wrap:wrap}
.script-tools [type=submit]{margin-left:auto}
.script-editor{flex:1;min-height:340px;padding:20px;font-size:17px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;outline-offset:-3px}
.script-editor p{margin:0 0 .4em}
.script-form .error{padding:0 12px 10px}
@media(max-width:720px){.script-form{width:100%;min-height:calc(100vh - 105px)}.script-editor{padding:13px;font-size:17px}}

.attachment-list{display:grid;gap:4px;padding-left:19px;margin:0;font-size:13px;overflow-wrap:anywhere}
.attachment-list .button{margin-left:4px}
#draft-attachments:empty,#pending-attachments:empty{display:none}

.crm-table .company-delete-cell{width:37px;text-align:center;vertical-align:middle}
.company-delete,.company-delete-lock{color:var(--muted)}
.company-delete-lock.locked{color:#b12434}
.company-delete-lock.unlocked{color:#087342}
@media(max-width:720px){
  .crm-table thead{position:static;width:auto;height:auto;overflow:visible;clip-path:none;display:block;padding:0 12px}
  .crm-table thead tr{display:flex;justify-content:flex-end}
  .crm-table thead th:not(.company-delete-cell){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
  .crm-table td:nth-child(9){grid-column:span 3}
  .crm-table td.company-delete-cell{justify-self:end;align-self:end;width:auto}
  .company-delete,.company-delete-lock{width:38px;height:38px}
}
