/* Corporate layer: zeadmin.ru tokens for the portal. Loaded last; visual only, no layout changes. */
:root{
  --zb-ink:#0b1525;
  --zb-ink-2:#10233c;
  --zb-muted:#60738e;
  --zb-bg:#f4f7fb;
  --zb-surface:#fff;
  --zb-line:#dbe4ef;
  --zb-line-strong:#cbd5e1;
  --zb-blue:#2166eb;
  --zb-blue-hover:#164fce;
  --zb-blue-soft:#eff6ff;
  --zb-blue-line:#bfdbfe;
  --zb-blue-text:#1d4ed8;
  --zb-sky:#55c7ff;
  --zb-cyan:#64d4ff;
  --zb-green:#19b879;
  --zb-dark:#071222;
  --zb-dark-2:#0b1525;
  --zb-radius-card:18px;
  --zb-radius-control:12px;
  --zb-shadow-card:0 16px 42px rgba(15,23,42,.05);
  --zb-shadow-cta:0 10px 26px rgba(33,102,235,.24);
  --zb-focus:0 0 0 4px rgba(33,102,235,.16);
  --zb-font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  /* Legacy tokens follow the brand so older rules pick it up too. */
  --za-ink:var(--zb-ink);
  --za-muted:var(--zb-muted);
  --za-bg:var(--zb-bg);
  --za-line:var(--zb-line);
  --za-blue:var(--zb-blue);
  --product-accent:var(--zb-blue);
  --product-ink:var(--zb-ink);
  --product-muted:var(--zb-muted);
  --product-line:var(--zb-line);
}

/* Page */
body[data-workspace],.login-page{
  color:var(--zb-ink)!important;
  font-family:var(--zb-font)!important;
  background:
    radial-gradient(circle at 88% -6%,rgba(37,99,235,.09),transparent 34%),
    radial-gradient(circle at 30% 110%,rgba(85,199,255,.06),transparent 30%),
    var(--zb-bg)!important;
  background-attachment:fixed!important;
}
body[data-workspace] a{color:var(--zb-blue)}
body[data-workspace] td a{color:var(--zb-ink-2)}
body[data-workspace] td a:hover{color:var(--zb-blue)}

/* Headings: heavy and tight, as on the main site */
body[data-workspace] h1,body[data-workspace] .title,.login-page .title{
  color:var(--zb-ink)!important;
  font-weight:800!important;
  letter-spacing:-.035em!important;
}
body[data-workspace] h2,body[data-workspace] h3{color:var(--zb-ink);font-weight:750;letter-spacing:-.015em}
body[data-workspace] .eyebrow{
  display:flex;align-items:center;gap:10px;
  color:var(--zb-blue)!important;font-size:10px!important;font-weight:850;letter-spacing:.16em!important;text-transform:uppercase;
}
body[data-workspace] .eyebrow:before{content:"";width:26px;height:1px;background:currentColor;opacity:.7;flex:none}
body[data-workspace] .header .sub,body[data-workspace] .topbar .meta,body[data-workspace] .meta,body[data-workspace] .muted{color:var(--zb-muted)!important}

/* Sidebar = site header: deep navy, brand mark, blue active state */
.workspace-sidebar{
  background:
    radial-gradient(circle at 0 0,rgba(33,102,235,.22),transparent 42%),
    linear-gradient(180deg,var(--zb-dark) 0%,#0a1930 100%)!important;
  border-right:1px solid rgba(255,255,255,.07)!important;
  color:rgba(255,255,255,.78);
}
body[data-workspace=client] .workspace-sidebar{background:
    radial-gradient(circle at 0 0,rgba(33,102,235,.22),transparent 42%),
    linear-gradient(180deg,var(--zb-dark) 0%,#0a1930 100%)!important}
.workspace-brand{gap:12px!important;font-size:13px!important;font-weight:850!important;letter-spacing:.01em}
.workspace-brand small{color:rgba(255,255,255,.55)!important;font-weight:600!important;letter-spacing:.02em}
.workspace-mark{
  position:relative;flex:0 0 34px!important;width:34px;height:34px!important;
  background:none!important;border-radius:0!important;font-size:0!important;color:transparent!important;
}
.workspace-mark:before,.workspace-mark:after{position:absolute;content:"";border-radius:9px}
.workspace-mark:before{inset:1px 10px 10px 1px;background:linear-gradient(145deg,var(--zb-sky),var(--zb-blue));box-shadow:0 10px 25px rgba(37,99,235,.38)}
.workspace-mark:after{inset:10px 1px 1px 10px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.3)}
.workspace-nav-group h2{color:rgba(255,255,255,.42)!important;font-weight:800!important;letter-spacing:.16em!important}
.workspace-nav-group a{color:rgba(255,255,255,.74)!important;font-weight:600!important;border-radius:12px!important}
.workspace-nav-group a:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
.workspace-nav-group a[aria-current=page]{
  background:linear-gradient(90deg,rgba(33,102,235,.34),rgba(33,102,235,.12))!important;
  color:#fff!important;font-weight:750!important;
  box-shadow:inset 3px 0 var(--zb-sky)!important;
}
.workspace-nav-group a[aria-current=page] .nav-icon{color:var(--zb-cyan)}
.workspace-sidebar-footer{border-top-color:rgba(255,255,255,.08)!important;color:rgba(255,255,255,.45)!important}
.workspace-sidebar-footer>a{color:rgba(255,255,255,.82)!important}
.workspace-sidebar-footer>a:hover{color:#fff!important}

/* Top bar */
.workspace-bar{color:var(--zb-muted)!important;font-weight:600}
.workspace-bar>span{font-size:10px;font-weight:850;letter-spacing:.16em;text-transform:uppercase;color:var(--zb-blue)}
.workspace-bar>a{color:var(--zb-ink)!important;font-weight:750}
.workspace-bar>a:hover{color:var(--zb-blue)!important}

/* Buttons: blue primary CTA, white ghost secondary */
body[data-workspace] .btn,body[data-workspace] button,body[data-workspace] input[type=submit],.login-page form button{
  border-radius:var(--zb-radius-control)!important;
  font-weight:750!important;
  letter-spacing:.005em;
}
body[data-workspace] .btn:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red):not(.btn-max):not(.btn-telegram),
body[data-workspace] button:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red):not(.workspace-menu),
body[data-workspace] input[type=submit],
.login-page form button{
  background:var(--zb-blue)!important;
  border-color:var(--zb-blue)!important;
  color:#fff!important;
  box-shadow:var(--zb-shadow-cta)!important;
}
body[data-workspace] .btn:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red):not(.btn-max):not(.btn-telegram):hover,
body[data-workspace] button:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red):not(.workspace-menu):hover,
.login-page form button:hover{
  background:var(--zb-blue-hover)!important;border-color:var(--zb-blue-hover)!important;filter:none!important;
}
body[data-workspace] .btn-light,body[data-workspace] .btn-quiet{
  background:#fff!important;color:var(--zb-ink)!important;border:1px solid var(--zb-line-strong)!important;box-shadow:none!important;
}
body[data-workspace] .btn-light:hover,body[data-workspace] .btn-quiet:hover{border-color:#94a3b8!important;color:var(--zb-ink)!important}
body[data-workspace] button:disabled{box-shadow:none!important}

/* Surfaces */
body[data-workspace] .card,body[data-workspace] .overview-card,body[data-workspace] .notification-panel,
body[data-workspace] .ticket-hero,body[data-workspace] .client-request-row{
  border-color:var(--zb-line)!important;
  border-radius:var(--zb-radius-card)!important;
  box-shadow:var(--zb-shadow-card)!important;
  background-color:var(--zb-surface);
}
body[data-workspace] .client-request-row:hover{border-color:var(--zb-blue-line)!important}
body[data-workspace] .workspace-table-scroll{border-color:var(--zb-line)!important;border-radius:var(--zb-radius-card)!important}
body[data-workspace] .card .workspace-table-scroll{box-shadow:none}
body[data-workspace] .overview-card{border-radius:14px!important}
body[data-workspace] .overview-card strong{font-weight:800;letter-spacing:-.03em}
body[data-workspace] .accent-blue{border-top-color:var(--zb-blue)!important}
body[data-workspace] .accent-green{border-top-color:var(--zb-green)!important}

/* Tables */
body[data-workspace] th{background:#f7f9fc!important;color:var(--zb-muted)!important;font-weight:800!important;letter-spacing:.1em!important}
body[data-workspace] td{border-bottom-color:#e8eef6!important}
body[data-workspace] tr:hover td{background:#f5f9ff!important}

/* Tabs */
body[data-workspace] .toolbar{border-bottom-color:var(--zb-line)!important}
body[data-workspace] .toolbar a{border-radius:10px!important;font-weight:650}
body[data-workspace] .toolbar a.active{background:var(--zb-blue-soft)!important;color:var(--zb-blue-text)!important;box-shadow:inset 0 0 0 1px var(--zb-blue-line)}

/* Badges: pill shape like the site's labels */
body[data-workspace] .badge{border-radius:999px!important;font-weight:750}

/* Forms */
body[data-workspace] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=submit]),
body[data-workspace] select,body[data-workspace] textarea,.login-page input{
  border-color:var(--zb-line-strong)!important;border-radius:var(--zb-radius-control)!important;color:var(--zb-ink)!important;
}
body[data-workspace] input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,
body[data-workspace] select:focus,body[data-workspace] textarea:focus,.login-page input:focus{
  border-color:var(--zb-blue)!important;box-shadow:var(--zb-focus)!important;outline:none!important;
}
body[data-workspace] input[type=checkbox],body[data-workspace] input[type=radio]{accent-color:var(--zb-blue)}

/* Focus ring in brand blue */
body[data-workspace] a:focus-visible,body[data-workspace] .btn:focus-visible,body[data-workspace] button:focus-visible,body[data-workspace] summary:focus-visible{
  outline:3px solid rgba(33,102,235,.45)!important;outline-offset:3px;
}

/* Login */
.login-page .card{border-color:var(--zb-line)!important;border-radius:24px!important;box-shadow:0 28px 70px rgba(37,99,235,.10)!important}
.login-page .login-mark{position:relative;background:none!important;border-radius:0!important;font-size:0!important;color:transparent!important}
.login-page .login-mark:before,.login-page .login-mark:after{position:absolute;content:"";border-radius:9px}
.login-page .login-mark:before{inset:1px 30% 30% 1px;background:linear-gradient(145deg,var(--zb-sky),var(--zb-blue));box-shadow:0 10px 25px rgba(37,99,235,.38)}
.login-page .login-mark:after{inset:30% 1px 1px 30%;background:rgba(33,102,235,.10);border:1px solid rgba(33,102,235,.35)}
.login-page .login-first-steps{background:var(--zb-blue-soft)!important;border-color:var(--zb-blue-line)!important;color:var(--zb-ink-2)!important}

/* Mobile: the top bar becomes the site's dark header */
@media(max-width:900px){
  .workspace-bar{background:rgba(7,18,34,.97)!important;border-bottom:1px solid rgba(255,255,255,.08)!important;color:rgba(255,255,255,.7)!important}
  .workspace-bar>span{color:var(--zb-cyan)}
  .workspace-bar>a{color:#fff!important}
  .workspace-menu{background:transparent!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:none!important}
}

/* Public pages: first contact (/login) and instructions (/faq) */
.bot-entry-page,.public-faq-page{
  color:var(--zb-ink)!important;font-family:var(--zb-font)!important;
  background:
    radial-gradient(circle at 84% 0,rgba(68,151,255,.16),transparent 34%),
    radial-gradient(circle at 12% 100%,rgba(18,192,206,.07),transparent 34%),
    linear-gradient(180deg,#f8fbff 0%,var(--zb-bg) 60%)!important;
  background-attachment:fixed!important;
}
.bot-entry-page .entry-mark,.public-faq-page .portal-brand-mark{
  position:relative;display:block!important;width:34px!important;height:34px!important;flex:0 0 34px;
  background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:0!important;color:transparent!important;
}
.bot-entry-page .entry-mark:before,.bot-entry-page .entry-mark:after,
.public-faq-page .portal-brand-mark:before,.public-faq-page .portal-brand-mark:after{position:absolute;content:"";border-radius:9px}
.bot-entry-page .entry-mark:before,.public-faq-page .portal-brand-mark:before{inset:1px 10px 10px 1px;background:linear-gradient(145deg,var(--zb-sky),var(--zb-blue));box-shadow:0 10px 25px rgba(37,99,235,.38)}
.bot-entry-page .entry-mark:after{inset:10px 1px 1px 10px;background:rgba(33,102,235,.10);border:1px solid rgba(33,102,235,.35)}
.public-faq-page .portal-brand-mark:after{inset:10px 1px 1px 10px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.3)}
.bot-entry-page .entry-brand strong{color:var(--zb-ink);font-weight:900;letter-spacing:.12em}
.bot-entry-page .entry-brand>a{color:var(--zb-blue);font-weight:750;text-decoration:none}
.bot-entry-page .entry-card{border-color:var(--zb-line)!important;border-radius:24px!important;box-shadow:0 28px 70px rgba(37,99,235,.08)!important}
.bot-entry-page .entry-kicker{display:inline-flex;align-items:center;gap:10px;color:var(--zb-blue);font-weight:850;letter-spacing:.16em;font-size:11px}
.bot-entry-page .entry-kicker:before{content:"";width:26px;height:1px;background:currentColor;opacity:.7}
.bot-entry-page h1{color:var(--zb-ink)!important;font-weight:850;letter-spacing:-.04em!important}
.bot-entry-page .entry-lead{color:var(--zb-muted)}
.bot-entry-page .entry-max,.bot-entry-page .entry-credentials-body button{
  background:var(--zb-blue)!important;border-color:var(--zb-blue)!important;color:#fff!important;
  border-radius:15px!important;box-shadow:var(--zb-shadow-cta)!important;font-weight:850;
}
.bot-entry-page .entry-max:hover,.bot-entry-page .entry-credentials-body button:hover{background:var(--zb-blue-hover)!important}
.bot-entry-page .entry-account-note{background:var(--zb-blue-soft)!important;border:1px solid var(--zb-blue-line)}
.bot-entry-page input{border-color:var(--zb-line-strong)!important;border-radius:var(--zb-radius-control)!important}
.bot-entry-page input:focus{border-color:var(--zb-blue)!important;box-shadow:var(--zb-focus)!important;outline:none!important}

.public-faq-page .header{
  background:radial-gradient(circle at 0 0,rgba(33,102,235,.28),transparent 40%),linear-gradient(135deg,var(--zb-dark) 0%,#0b1a31 100%)!important;
  border-color:rgba(255,255,255,.08)!important;border-radius:22px!important;box-shadow:0 18px 50px rgba(7,18,34,.18)!important;
}
.public-faq-page .portal-brand-copy strong{font-weight:850;letter-spacing:.01em}
.public-faq-page .title,.public-faq-page h1,.public-faq-page h2{font-weight:850!important;letter-spacing:-.04em!important}
.public-faq-page .card{border-color:var(--zb-line)!important;border-radius:24px!important;box-shadow:var(--zb-shadow-card)!important}
.public-faq-page .btn:not(.btn-light):not(.btn-quiet):not(.btn-max):not(.btn-telegram){
  background:var(--zb-blue)!important;border-color:var(--zb-blue)!important;color:#fff!important;box-shadow:var(--zb-shadow-cta)!important;
}
.public-faq-page .btn,.public-faq-page button{border-radius:var(--zb-radius-control)!important;font-weight:750!important}
.public-faq-page .btn-light{border-color:var(--zb-line-strong)!important;color:var(--zb-ink)!important}
.public-faq-page .header .btn-light{background:#fff!important}

/* ---- v2: one layout rhythm for every section (audit 2026-10-07) ---- */
/* Form panels align with the cards around them instead of floating centred */
body[data-workspace] .form-card{max-width:none!important;margin-left:0!important;margin-right:0!important}
/* Disclosures: one chevron marker instead of mixed triangle / plus markers */
body[data-workspace] details:not(.ticket-action-menu):not(.dialog-info):not(.desk-notification-settings):not(.desk-company-filter)>summary{
  display:flex!important;align-items:center;gap:10px;min-height:44px;line-height:1.35!important;list-style:none;cursor:pointer;font-weight:750;color:var(--zb-ink)}
body[data-workspace] details:not(.ticket-action-menu):not(.dialog-info):not(.desk-notification-settings):not(.desk-company-filter)>summary::-webkit-details-marker{display:none}
body[data-workspace] details:not(.ticket-action-menu):not(.dialog-info):not(.desk-notification-settings):not(.desk-company-filter)>summary::before{
  content:""!important;flex:none;width:7px;height:7px;margin:0 5px 0 3px!important;border-right:2px solid var(--zb-blue);border-bottom:2px solid var(--zb-blue);transform:rotate(-45deg);transition:transform .15s ease}
body[data-workspace] details[open]:not(.ticket-action-menu):not(.dialog-info):not(.desk-notification-settings):not(.desk-company-filter)>summary::before{transform:rotate(45deg) translate(-2px,-2px)}
body[data-workspace] details>summary:hover{color:var(--zb-blue-text)}
/* Links inside content: brand blue, no legacy underline */
body[data-workspace] a:not(.btn){text-decoration:none}
body[data-workspace] :is(.card,.table-card,.service-directory,.meta,td,dd,p,li):not(.workspace-sidebar *)>a:not(.btn){color:var(--zb-blue);font-weight:650}
body[data-workspace] :is(.card,td,dd,p,li):not(.workspace-sidebar *)>a:not(.btn):hover{text-decoration:underline;text-underline-offset:3px}
/* Tables: headers line up with their values */
body[data-workspace] th{text-align:left}
@media(min-width:901px){
  body[data-workspace] .entity-list-table tr:first-child th:first-child{width:56px}
  body[data-workspace] .entity-list-table tr:first-child th:nth-child(2){width:24%}
  body[data-workspace] .work-queue-table th:nth-child(2){width:18%}
}
/* Portal users: each account reads as its own card */
body[data-workspace] .access-user-list tr:not(:first-child){padding:16px 18px!important;margin:0 0 12px;border:1px solid var(--zb-line)!important;border-radius:14px;background:#fff}
body[data-workspace] .access-user-list td::before{font-size:11px!important;text-transform:uppercase;letter-spacing:.06em;color:var(--zb-muted)!important}
/* Dialog: own messages in brand blue, as in the mini app */
.chat-msg.specialist .chat-text,.chat-msg.specialist .chat-file{background:var(--zb-blue)!important;border-color:var(--zb-blue)!important}
.chat-msg.specialist .message-format a{color:#fff}
body[data-workspace] .card.msg-client{background:var(--zb-blue-soft)!important;border-color:var(--zb-blue-line)!important}
/* Page titles always start at the left edge, like on zeadmin.ru */
body[data-workspace] .wrap>.header,body[data-workspace] .header-copy,body[data-workspace] .header-copy :is(.title,.sub,h1,p),body[data-workspace] .wrap>.header h1{text-align:left!important;margin-left:0!important}
body[data-workspace] .page-heading,body[data-workspace] .page-heading :is(.title,.meta,.eyebrow){text-align:left!important}
@media(max-width:900px){body[data-workspace] :is(.header-copy,.page-heading){flex-basis:100%;align-self:stretch;width:100%}}

/* ---- v3: monitoring pages, error pages, password reset, key/value lists (07.10.2026) ---- */


/* Legacy dark top bars on light pages (client card edit, client page) */
body[data-workspace] .topbar{background:transparent!important;color:var(--zb-ink)!important;box-shadow:none!important;border:0!important;padding-left:0!important;padding-right:0!important}
body[data-workspace] .topbar h1,body[data-workspace] .topbar h2,body[data-workspace] .topbar .title{color:var(--zb-ink)!important;font-weight:800!important;letter-spacing:-.03em!important}
body[data-workspace] .topbar .meta,body[data-workspace] .topbar .sub{color:var(--zb-muted)!important}

/* A lone .btn-light link is a ghost button too */
body[data-workspace] a.btn-light:not(.btn){
  display:inline-flex;align-items:center;min-height:40px;padding:0 14px;box-sizing:border-box;
  background:#fff;color:var(--zb-ink)!important;border:1px solid var(--zb-line-strong);border-radius:var(--zb-radius-control);
  font-weight:750;text-decoration:none;
}
body[data-workspace] a.btn-light:not(.btn):hover{border-color:#94a3b8}

/* Key/value lists (1C publications, cards) */
body[data-workspace] dl{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);gap:0;margin:12px 0;border-top:1px solid #e8eef6}
body[data-workspace] dl>dt{margin:0;padding:9px 12px 9px 0;color:var(--zb-muted);font-size:12px;font-weight:700;border-bottom:1px solid #e8eef6}
body[data-workspace] dl>dd{margin:0;padding:9px 0;color:var(--zb-ink);border-bottom:1px solid #e8eef6;min-width:0}
@media(max-width:600px){
  body[data-workspace] dl{grid-template-columns:minmax(0,1fr)}
  body[data-workspace] dl>dt{padding:9px 0 0;border-bottom:0}
}

/* Search toolbars: field and button of the same height */
body[data-workspace] form.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border:0!important;padding:0!important;margin:0 0 16px!important}
body[data-workspace] form.toolbar label{font-size:12px;font-weight:750;color:var(--zb-muted);margin:0}
body[data-workspace] form.toolbar input{flex:1 1 260px;max-width:480px;min-height:42px;box-sizing:border-box;padding:0 12px}
body[data-workspace] form.toolbar .btn,body[data-workspace] form.toolbar button{min-height:42px;margin:0!important;padding:0 18px!important}

/* Monitoring, announcements and maintenance pages (plain <main> markup) */
body[data-workspace] main.wrap{font-family:var(--zb-font)!important;font-size:14px!important;line-height:1.55!important;color:var(--zb-ink)}
body[data-workspace] main.wrap>a:first-child{
  display:inline-flex;align-items:center;min-height:36px;padding:0 13px;margin:0 0 10px;box-sizing:border-box;
  background:#fff;border:1px solid var(--zb-line-strong);border-radius:var(--zb-radius-control);
  color:var(--zb-ink)!important;font-size:12px;font-weight:750;text-decoration:none;
}
body[data-workspace] main.wrap>a:first-child:hover{border-color:#94a3b8}
body[data-workspace] main.wrap>h1{margin:6px 0 18px!important;font-size:26px!important;line-height:1.15!important;color:var(--zb-ink)!important;font-weight:800!important;letter-spacing:-.035em!important}
body[data-workspace] main.wrap>section,body[data-workspace] main.wrap>form,body[data-workspace] main.wrap>article,body[data-workspace] main.wrap>details,body[data-workspace] main.wrap article{
  background:var(--zb-surface);border:1px solid var(--zb-line);border-radius:var(--zb-radius-card);box-shadow:var(--zb-shadow-card);
  padding:18px 20px;margin:0 0 14px;box-sizing:border-box;
}
body[data-workspace] main.wrap>section>h2:first-child,body[data-workspace] main.wrap>form>h2:first-child,body[data-workspace] main.wrap article>h2:first-child{margin-top:0}
body[data-workspace] main.wrap h2{font-size:17px;font-weight:750;letter-spacing:-.015em;color:var(--zb-ink);margin:18px 0 8px}
body[data-workspace] main.wrap h3{font-size:15px;margin:14px 0 6px}
body[data-workspace] main.wrap>p{max-width:80ch;color:var(--zb-ink-2)}
body[data-workspace] main.wrap>nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;font-size:0}
body[data-workspace] main.wrap>nav a{
  display:inline-flex;align-items:center;min-height:36px;padding:0 13px;font-size:13px;font-weight:650;text-decoration:none;
  background:#fff;border:1px solid var(--zb-line);border-radius:10px;color:var(--zb-ink-2)!important;
}
body[data-workspace] main.wrap>nav a[aria-current],body[data-workspace] main.wrap>nav a:hover{background:var(--zb-blue-soft);border-color:var(--zb-blue-line);color:var(--zb-blue-text)!important}
body[data-workspace] main.wrap label{font-size:12px;font-weight:750;color:var(--zb-ink-2);margin-top:14px}
body[data-workspace] main.wrap input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body[data-workspace] main.wrap select,body[data-workspace] main.wrap textarea{
  min-height:42px;padding:9px 12px;font-size:14px;background:#fff;
}
body[data-workspace] main.wrap button{min-height:42px;padding:0 18px!important;font-size:13px}
body[data-workspace] main.wrap ul,body[data-workspace] main.wrap ol{padding-left:20px}
body[data-workspace] main.wrap table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--zb-line);border-radius:12px;overflow:hidden}
body[data-workspace] main.wrap th,body[data-workspace] main.wrap td{padding:9px 12px;text-align:left;font-size:13px}

/* Password reset: same dark brand header and blue actions as /faq */
.password-reset-page{
  color:var(--zb-ink)!important;font-family:var(--zb-font)!important;
  background:radial-gradient(circle at 84% 0,rgba(68,151,255,.16),transparent 34%),linear-gradient(180deg,#f8fbff 0%,var(--zb-bg) 60%)!important;
  background-attachment:fixed!important;
}
.password-reset-page .wrap{max-width:640px!important}
.password-reset-page .header{
  background:radial-gradient(circle at 0 0,rgba(33,102,235,.28),transparent 40%),linear-gradient(135deg,var(--zb-dark) 0%,#0b1a31 100%)!important;
  border-radius:22px!important;box-shadow:0 18px 50px rgba(7,18,34,.18)!important;
}
.password-reset-page .portal-brand-mark{
  position:relative;display:block!important;width:34px!important;height:34px!important;flex:0 0 34px;
  background:none!important;border-radius:0!important;font-size:0!important;color:transparent!important;
}
.password-reset-page .portal-brand-mark:before,.password-reset-page .portal-brand-mark:after{position:absolute;content:"";border-radius:9px}
.password-reset-page .portal-brand-mark:before{inset:1px 10px 10px 1px;background:linear-gradient(145deg,var(--zb-sky),var(--zb-blue));box-shadow:0 10px 25px rgba(37,99,235,.38)}
.password-reset-page .portal-brand-mark:after{inset:10px 1px 1px 10px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.3)}
.password-reset-page .title{font-weight:850!important;letter-spacing:-.04em!important}
.password-reset-page .card{border:1px solid var(--zb-line)!important;border-radius:24px!important;box-shadow:0 28px 70px rgba(37,99,235,.08)!important}
.password-reset-page .btn{border-radius:var(--zb-radius-control)!important;font-weight:750!important}
.password-reset-page .btn:not(.btn-light),.password-reset-page form button{background:var(--zb-blue)!important;border-color:var(--zb-blue)!important;color:#fff!important;box-shadow:var(--zb-shadow-cta)!important}
.password-reset-page .btn:not(.btn-light):hover,.password-reset-page form button:hover{background:var(--zb-blue-hover)!important}
.password-reset-page .btn-light{background:#fff!important;color:var(--zb-ink)!important;border:1px solid var(--zb-line-strong)!important}
.password-reset-page input{border-color:var(--zb-line-strong)!important;border-radius:var(--zb-radius-control)!important}
.password-reset-page input:focus{border-color:var(--zb-blue)!important;box-shadow:var(--zb-focus)!important;outline:none!important}

/* Pages without zeadmin.css (plain <main> markup) still get border-box sizing for the portal frame */
body[data-workspace] .workspace-sidebar,body[data-workspace] .workspace-sidebar *,body[data-workspace] .workspace-bar,body[data-workspace] .workspace-bar *,body[data-workspace] main.wrap,body[data-workspace] main.wrap *{box-sizing:border-box}

/* ---- v4: ticket dialog (08.10.2026) ---- */
/* Client avatar: initials on brand soft blue; a neutral person icon when the name is unknown */
body[data-workspace] .chat-avatar{width:28px!important;height:28px!important;flex:0 0 auto;border-radius:50%!important;border:1px solid var(--zb-blue-line);background-color:var(--zb-blue-soft)!important;color:var(--zb-blue-text)!important;font-size:11px!important;font-weight:800!important;letter-spacing:.02em;line-height:1}
body[data-workspace] .chat-avatar-icon{background:var(--zb-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E") center/15px no-repeat!important}
/* Reply to a client message: a quiet inline action shown on hover/focus, always visible on touch screens */
body[data-workspace] .chat-msg button.chat-reply-action[data-reply-target]:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red){display:inline-flex!important;align-items:center;gap:2px;width:auto!important;min-width:0!important;min-height:26px!important;margin:2px 0 0!important;padding:2px 8px 2px 6px!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;color:var(--zb-muted)!important;font-size:12px!important;font-weight:650!important;line-height:1.3!important;opacity:0;transition:opacity .15s,background-color .15s,color .15s}
body[data-workspace] .chat-msg button.chat-reply-action[data-reply-target]::before{font-size:14px!important;margin-right:3px!important}
body[data-workspace] .chat-msg:hover button.chat-reply-action[data-reply-target]:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red),
body[data-workspace] .chat-msg:focus-within button.chat-reply-action[data-reply-target]:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red){opacity:1}
body[data-workspace] .chat-msg button.chat-reply-action[data-reply-target]:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red):hover{background:var(--zb-blue-soft)!important;color:var(--zb-blue-text)!important}
@media(hover:none),(pointer:coarse){body[data-workspace] .chat-msg button.chat-reply-action[data-reply-target]:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red){opacity:1;min-height:34px!important}}
/* Quote of the replied message; a missing original is only a grey caption */
body[data-workspace] .chat-msg .message-reply-context{margin:0 0 6px!important;padding:6px 10px!important;border:0!important;border-left:3px solid var(--zb-blue-line)!important;border-radius:0 10px 10px 0;background:var(--zb-blue-soft);color:var(--zb-ink-2);font-size:12.5px!important;max-width:100%}
body[data-workspace] .chat-msg .message-reply-context-missing{margin:0 0 4px!important;padding:0 2px!important;border:0!important;background:none;color:var(--zb-muted);font-size:12px!important}
/* Composer: replying-to strip in one line with a small cancel on the right */
body[data-workspace] form.chat-composer [data-reply-preview]:not([hidden]){display:flex!important;align-items:center;gap:10px;min-width:0;padding:4px 4px 4px 12px;border-left:3px solid var(--zb-blue);border-radius:0 10px 10px 0;background:var(--zb-blue-soft)}
body[data-workspace] form.chat-composer [data-reply-label]{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--zb-ink-2);font-size:13px}
body[data-workspace] form.chat-composer [data-reply-preview] button[data-reply-cancel]:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red){flex:0 0 auto;width:auto!important;min-width:0!important;min-height:28px!important;margin:0!important;padding:2px 10px!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;color:var(--zb-muted)!important;font-size:12px!important;font-weight:650!important}
body[data-workspace] form.chat-composer [data-reply-preview] button[data-reply-cancel]:not(.btn-light):not(.btn-quiet):not(.btn-green):not(.btn-red):hover{background:#fff!important;color:var(--zb-blue-text)!important}
/* Scrolled-away messages fade out under the dialog header instead of being cut by a hard edge */
body[data-workspace] .chat-timeline{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 14px);mask-image:linear-gradient(to bottom,transparent 0,#000 14px)}
body[data-workspace] main.wrap table.entity-list-table td{overflow-wrap:anywhere}

/* AD-23.3: touch targets >=44px on phones (compact chat actions excluded) */
@media(max-width:600px){
  body[data-workspace] .btn,
  body[data-workspace] button:not(.chat-reply-action),
  body[data-workspace] input:not([type=checkbox]):not([type=radio]),
  body[data-workspace] select,
  body[data-workspace] details > summary,
  body:not([data-workspace]) .btn{min-height:44px!important}
}
