/* Shared workspace: navigation, readable content and responsive controls. */
.login-page{background:#f4f6f9!important}
.login-page .card{border:1px solid #dfe5ed!important;border-radius:16px!important;box-shadow:0 8px 30px #19283b08!important}
.login-page .login-mark{background:#356fe2!important;border-radius:10px!important}
.login-page .title{font-size:26px!important;line-height:1.25!important;color:#19283b!important}
.login-page input,.login-page form button,.login-page .max-login-btn{border-radius:8px!important;min-height:44px}
.login-page .login-first-steps{background:#f4f7fc!important;border-color:#dfe5ed!important;color:#40546f!important}
:root{--za-bg:#f4f6f9;--za-ink:#19283b;--za-muted:#596a80;--za-blue:#255ed6;--za-line:#dfe5ed;--za-radius:12px;--za-radius-lg:14px;--za-shadow:0 2px 8px #19283b06;--sidebar-width:232px}
body[data-workspace]{font-size:14px;line-height:1.5}
body[data-workspace] .wrap{width:auto!important;max-width:1680px!important;margin:0 0 0 var(--sidebar-width)!important;padding:28px 32px 56px!important}
.workspace-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);display:flex;flex-direction:column;background:#142235;color:#dce5f1;z-index:50;border-right:1px solid #20344d}
.workspace-brand{display:flex;gap:10px;align-items:center;padding:26px 18px 22px;color:#fff!important;text-decoration:none;font-size:13px;font-weight:700;line-height:1.35}
.workspace-brand small{display:block;font-size:12px;color:#b4c3d7;font-weight:400;margin-top:3px}
.workspace-mark{display:grid;place-items:center;flex:0 0 36px;height:36px;background:#356fe2;border-radius:10px;color:#fff;font-size:14px;font-weight:800}
.workspace-sidebar>nav{overflow-y:auto;overscroll-behavior:contain;padding:0 12px 16px;flex:1}
.workspace-nav-group{margin:0 0 18px}
.workspace-nav-group h2{margin:0;padding:0 12px 7px;font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.13em;color:#9fafc4}
.workspace-nav-group a{display:flex;align-items:center;gap:10px;min-height:36px;padding:8px 12px;border-radius:7px;color:#dce5f1;text-decoration:none;font-size:13px;font-weight:500;line-height:1.4;margin:2px 0}
.workspace-nav-group a:hover{background:#20344d;color:#fff}
.workspace-nav-group a[aria-current=page]{background:#2b59a7;color:#fff;font-weight:650}
.nav-indicator{width:6px;height:6px;border:1px solid #91a8c8;border-radius:2px;flex:none}
[aria-current=page] .nav-indicator{background:#fff;border-color:#fff}
.workspace-sidebar-footer{padding:14px 24px 20px;border-top:1px solid #2b3c53;font-size:11px;color:#aabbd0}
.workspace-sidebar-footer>a{display:flex;justify-content:space-between;color:#e4ecf6;text-decoration:none;font-size:12px;margin-top:6px}
.workspace-bar{margin-left:var(--sidebar-width);height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 32px;background:#fff;border-bottom:1px solid var(--za-line);font-size:12px;color:#5b6b80}
.workspace-bar>a{color:#40546f;text-decoration:none}
.workspace-menu{display:none!important}
.workspace-skip{position:fixed;left:250px;top:-100px;z-index:200;background:#fff;padding:12px;color:#164ba3}
.workspace-skip:focus{top:8px}
body[data-workspace] .wrap>.topbar,body[data-workspace] .wrap>.header{display:flex!important;flex-wrap:wrap;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:0 0 22px!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:var(--za-ink)!important;animation:none!important;min-height:0!important}
body[data-workspace] .wrap>.topbar .brand,body[data-workspace] .wrap>.header>.portal-brand,body[data-workspace] .wrap>.topbar>.top-actions{display:none!important}
body[data-workspace] .brand-block{display:block;flex:1;min-width:0}
body[data-workspace] .title{font-size:28px!important;line-height:1.25!important;letter-spacing:-.025em!important;font-weight:720!important;overflow-wrap:anywhere}
body[data-workspace] .eyebrow{font-size:10px;color:#587194;letter-spacing:.08em;margin-bottom:6px}
body[data-workspace] .header-copy{flex:1;min-width:200px}
body[data-workspace] .header .sub,body[data-workspace] .topbar .meta{color:#596a80!important;font-size:12px!important;margin-top:6px;line-height:1.5}
body[data-workspace] .header-actions{display:flex;flex-wrap:wrap;gap:8px;width:auto;max-width:100%}
body[data-workspace] .btn,body[data-workspace] button,body[data-workspace] .btn-light,body[data-workspace] .btn-quiet{border-radius:8px!important;font-size:13px!important;min-height:38px;padding:8px 14px!important;box-shadow:none!important;line-height:1.4!important}
body[data-workspace] .btn-light,body[data-workspace] .btn-quiet{background:#fff!important;border:1px solid #d5deea!important;color:#30445f!important}
body[data-workspace] .btn:hover,body[data-workspace] button:hover{filter:brightness(.96)}
body[data-workspace] .btn:focus-visible,body[data-workspace] a:focus-visible,body[data-workspace] button:focus-visible,body[data-workspace] input:focus-visible,body[data-workspace] select:focus-visible,body[data-workspace] textarea:focus-visible{outline:2px solid #3776e5!important;outline-offset:3px;box-shadow:none!important}
body[data-workspace] .overview-grid{gap:12px;margin-bottom:18px;grid-template-columns:repeat(6,minmax(0,1fr));animation:none}
body[data-workspace] .overview-card{padding:16px!important;border-radius:10px!important;box-shadow:none!important;min-height:112px;border:1px solid var(--za-line);border-top:3px solid #9aa9bc}
body[data-workspace] .overview-card:before{display:none}
body[data-workspace] .overview-card strong{font-size:28px;line-height:1.2;margin:6px 0}
body[data-workspace] .overview-card span{font-size:12px;color:#4d5f77}
body[data-workspace] .overview-card small{font-size:11px;color:#60718a}
body[data-workspace] .accent-red{border-top-color:#df625b}body[data-workspace] .accent-blue{border-top-color:#4278dd}body[data-workspace] .accent-amber{border-top-color:#d79735}body[data-workspace] .accent-violet{border-top-color:#8771c9}body[data-workspace] .accent-green{border-top-color:#36a17c}
body[data-workspace] .notification-panel{padding:12px 16px!important;border-radius:10px;box-shadow:none;gap:12px;margin-bottom:18px;animation:none}
body[data-workspace] .notification-copy strong{font-size:12px}body[data-workspace] .notification-copy span{font-size:12px;color:#596a80}
body[data-workspace] .toolbar{background:none!important;border-bottom:1px solid var(--za-line);border-radius:0;padding:0 0 10px;gap:6px;animation:none}
body[data-workspace] .toolbar a{border:0!important;background:transparent;color:#53657e;padding:7px 13px;font-size:13px}
body[data-workspace] .toolbar a.active{background:#e2ebfc!important;color:#194ca7!important;border-radius:7px}
body[data-workspace] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),body[data-workspace] select,body[data-workspace] textarea{max-width:100%;min-width:0;border:1px solid #ccd6e3!important;border-radius:8px!important;font:inherit;line-height:1.5;padding:10px 12px!important;background:#fff;color:#19283b}
body[data-workspace] input::placeholder,body[data-workspace] textarea::placeholder{color:#697b92;opacity:1}
body[data-workspace] .searchbar form{display:grid!important;grid-template-columns:minmax(180px,2fr) minmax(140px,1fr) auto;gap:10px}
body[data-workspace] .card{border:1px solid var(--za-line)!important;border-radius:12px!important;box-shadow:none!important;min-width:0;animation:none!important}
body[data-workspace] table{font-variant-numeric:tabular-nums}
body[data-workspace] th{background:#f8fafc!important;font-size:10px!important;letter-spacing:.07em;color:#60718a!important;padding:13px 16px!important;white-space:nowrap}
body[data-workspace] td{font-size:13px!important;padding:15px 16px!important;line-height:1.55;border-bottom:1px solid #e9edf3;vertical-align:top}
body[data-workspace] td a{color:#244b82;font-weight:600}
body[data-workspace] tr:hover td{background:#f5f8fd}
body[data-workspace] .ticket-no-reply td{border-left:0!important;background:#fff8f7!important}
body[data-workspace] .ticket-no-reply td:first-child{border-left:3px solid #d76861!important}
body[data-workspace] .workspace-table-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain;border-radius:10px;scrollbar-width:thin}
body[data-workspace] .workspace-table-scroll:focus-visible{outline:2px solid #3776e5;outline-offset:2px}
body[data-workspace] .wrap>.topbar.ticket-topbar{justify-content:flex-start!important;gap:8px!important}
body[data-workspace] .btn-blue{background:#255ed6!important;color:#fff!important}
body[data-workspace] .btn-green{background:#e7f4ee!important;color:#166344!important;border:1px solid #bddfcc!important}
body[data-workspace] .btn-red{background:#fff0ee!important;color:#a43c34!important;border:1px solid #ecc7c3!important}
body[data-workspace] .ticket-hero{padding:20px!important;border:1px solid var(--za-line);background:#fff!important;color:#19283b!important;border-radius:12px!important;box-shadow:none!important;margin-bottom:18px}
body[data-workspace] .ticket-title{font-size:25px!important;color:#19283b!important}
body[data-workspace] .ticket-meta{color:#596a80!important}
body[data-workspace] .chat-timeline,body[data-workspace] .chat-body{background:#f7f9fc!important}
body[data-workspace] .structured-form fieldset{border-color:var(--za-line)}
body[data-workspace] .card-title,body[data-workspace] h2{letter-spacing:-.015em}
body[data-workspace] .form-intro,body[data-workspace] .structured-form fieldset,body[data-workspace] .form-actions{padding:20px 24px}
body[data-workspace] .grid-2,body[data-workspace] .form-grid,body[data-workspace] .layout{min-width:0}
@media(min-width:1800px){body[data-workspace] .wrap{margin-right:auto!important;margin-left:calc(var(--sidebar-width) + (100vw - var(--sidebar-width) - 1568px)/2)!important;max-width:1568px!important}}
@media(max-width:1200px){body[data-workspace] .wrap{padding:24px!important}body[data-workspace] .overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-workspace] .overview-card{min-height:100px}}
@media(max-width:900px){.workspace-sidebar{display:none;top:56px;box-shadow:8px 0 24px #14223522}.workspace-sidebar.is-open{display:flex}.workspace-bar{margin-left:0;position:sticky;top:0;z-index:60;padding:0 16px}.workspace-bar>span{display:none}.workspace-menu{display:inline-flex!important;gap:8px;background:#fff!important;color:#233d61!important;border:1px solid #d5deea!important}.workspace-skip{left:12px}body[data-workspace] .wrap{margin:0!important;padding:22px 18px 40px!important}body[data-workspace] .title{font-size:25px!important}}
@media(max-width:600px){body[data-workspace] .wrap{padding:20px 12px 32px!important}body[data-workspace] .wrap>.header,body[data-workspace] .wrap>.topbar{gap:12px!important;padding-bottom:18px!important}body[data-workspace] .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body[data-workspace] .overview-card{padding:12px!important;min-height:96px}body[data-workspace] .overview-card small{display:block;font-size:10px}body[data-workspace] .overview-card strong{font-size:25px}body[data-workspace] .notification-panel{align-items:stretch!important;flex-direction:column}body[data-workspace] .searchbar form{grid-template-columns:1fr!important}body[data-workspace] .header-actions{width:100%}body[data-workspace] .header-actions>a{flex:1;text-align:center}body[data-workspace] .ticket-topbar>a{flex:1 1 140px}body[data-workspace] .form-intro,body[data-workspace] .structured-form fieldset,body[data-workspace] .form-actions{padding:16px}body[data-workspace] .toolbar{flex-wrap:wrap}body[data-workspace] th,body[data-workspace] td{padding:12px!important}body[data-workspace] .title{font-size:23px!important}}
@media(max-width:600px){body[data-workspace] .chat-timeline{min-height:240px!important;max-height:420px!important}}
.org-workspace{min-width:0}.org-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 22px;padding:6px;background:#eaf0f7;border-radius:12px}.org-tabs a{padding:10px 14px;border-radius:8px;color:#435572;font-weight:600;text-decoration:none}.org-tabs a[aria-current]{background:#fff;color:#1459bd;box-shadow:0 1px 4px #162c4812}.org-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.org-workspace dl{margin:16px 0}.org-workspace dt{font-size:12px;color:#67778f;margin-top:12px}.org-workspace dd{margin:4px 0 0;overflow-wrap:anywhere}.org-workspace td{vertical-align:top;min-width:110px;max-width:360px;overflow-wrap:anywhere}.org-contract{padding:16px 0;border-top:1px solid #e5eaf1}.org-contract summary{cursor:pointer;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.org-pages{display:flex;gap:8px;margin:12px 0}.org-requisites{display:grid;grid-template-columns:minmax(140px,1fr) 3fr;gap:12px 20px}.org-requisites dt,.org-requisites dd{margin:0}.org-workspace .table-scroll{overflow-x:auto;max-width:100%}@media(max-width:700px){.org-grid{grid-template-columns:1fr;gap:0}.org-requisites{display:block}.org-requisites dt{margin-top:16px}.org-requisites dd{margin-top:4px}.org-tabs a{padding:9px 11px;font-size:13px}}

/* Ticket list: compact mobile controls, expandable secondary settings. */
body[data-workspace] .desk-notification-settings{display:block!important}
.desk-notification-settings summary{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:44px;list-style:none}
.desk-notification-settings summary::-webkit-details-marker{display:none}
.desk-notification-settings summary:after,.desk-company-filter summary:after{content:'＋';margin-left:auto}
.desk-notification-settings[open] summary:after,.desk-company-filter[open] summary:after{content:'−'}
.desk-notification-settings summary strong{font-size:13px}
.desk-notification-settings summary>span:last-of-type{font-size:12px;color:#52647d;min-width:0;overflow-wrap:anywhere}
.desk-notification-settings p{font-size:12px;color:#52647d;margin:4px 0 12px}
.desk-company-filter{min-width:0}.desk-company-filter summary{display:flex;cursor:pointer;align-items:center;min-height:44px;font-size:13px;overflow-wrap:anywhere;gap:8px}
@media(min-width:601px){.desk-company-filter summary{display:none}.desk-notification-settings .notification-actions{margin-top:8px}}
@media(max-width:600px){
 body[data-workspace] .wrap:has(.desk-status-tabs){padding-top:12px!important}
 body[data-workspace] .wrap:has(.desk-status-tabs)>.header{padding-bottom:12px!important}
 .wrap:has(.desk-status-tabs) .header .eyebrow,.wrap:has(.desk-status-tabs) .header .sub{display:none}
 body[data-workspace] .overview-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}
 body[data-workspace] .overview-card{padding:8px!important;min-height:64px;border-top-width:2px}
 body[data-workspace] .overview-card span{font-size:11px;line-height:1.25}
 body[data-workspace] .overview-card strong{font-size:21px;line-height:1.1;margin:4px 0 0}
 body[data-workspace] .overview-card small{display:none}
 body[data-workspace] .desk-notification-settings{padding:0 10px!important;margin-bottom:10px}
 body[data-workspace] .desk-notification-settings[open]{padding-bottom:10px!important}
 body[data-workspace] .desk-status-tabs{flex-wrap:nowrap;overflow-x:auto;gap:4px;margin-bottom:10px!important;scrollbar-width:thin}
 body[data-workspace] .desk-status-tabs a{flex:none;white-space:nowrap;padding:10px 12px;min-height:44px;font-size:13px}
 body[data-workspace] .desk-search form{grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important}
 .desk-search input[name=q]{grid-column:1;grid-row:1;min-width:0;font-size:16px}
 .desk-search button[type=submit]{grid-column:2;grid-row:1;min-height:44px;padding:10px 14px}
 .desk-company-filter{grid-column:1/-1;grid-row:2}
 .desk-company-filter input{font-size:16px}
}

/* Keep mobile ticket navigation out of the conversation's way. */
.ticket-action-menu{min-width:0;position:relative}.ticket-action-menu summary{cursor:pointer;list-style:none;gap:8px}
.ticket-action-menu summary::-webkit-details-marker{display:none}
.ticket-action-menu nav{display:flex;flex-wrap:wrap;gap:8px}
@media(min-width:601px){.ticket-action-menu{display:contents}.ticket-action-menu summary{display:none}.ticket-action-menu nav{display:contents}}
@media(max-width:600px){
 body[data-workspace] .wrap>.topbar.ticket-topbar{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;padding-bottom:12px!important}
 body[data-workspace] .ticket-topbar>a{flex:0 1 auto!important;min-height:44px;height:auto;padding:10px 12px!important;font-size:13px}
 .ticket-action-menu{flex:none}.ticket-action-menu summary{display:flex;min-height:44px;padding:10px 12px!important;font-size:13px}
 .ticket-action-menu[open] nav{position:absolute;z-index:30;right:0;top:calc(100% + 8px);width:min(320px,calc(100vw - 24px));max-height:65vh;overflow-y:auto;padding:8px;display:grid;grid-template-columns:1fr;background:white;border:1px solid #dfe5ed;border-radius:12px;box-shadow:0 10px 30px #14223526}
 .ticket-action-menu nav a{min-height:44px!important;justify-content:flex-start;white-space:normal;margin:0!important}
 body[data-workspace] .ticket-hero{padding:14px!important;margin-bottom:12px;gap:10px}
 body[data-workspace] .ticket-title{margin:0 0 6px;font-size:23px!important}
 body[data-workspace] .ticket-meta{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
 body[data-workspace] .ticket-hero .badges{gap:6px;flex-wrap:wrap}
 body[data-workspace] .ticket-hero .badge{font-size:11px;padding:5px 8px}
}
