:root {
  --blue: #204ec9;
  --night: #101b2a;
  --lime: #daf397;
  --paper: #fbfaf7;
  --type: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
}
.access *, .dl-brand * { box-sizing: border-box; }
.access {
  --body: #1a2534;
  --quiet: #4c5c6a;
  --edge: #c7ced2;
  --input: #fff;
  --action: var(--blue);
  --button-text: white;
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 16px/1.55 var(--type);
}
.access [hidden], .workspace [hidden] { display: none !important; }
.access button, .access input { font: inherit; }
.access button, .access a { -webkit-tap-highlight-color: transparent; }
.access button { cursor: pointer; }
.access button:disabled { opacity: .72; cursor: wait; }
.access :focus-visible, .workspace :focus-visible { outline: 3px solid #5790fd; outline-offset: 4px; }
.access-header {
  min-height: 82px;
  padding: 10px clamp(22px, 4.4vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--edge);
}
.dl-brand { display: inline-flex; flex: none; align-items: center; gap: 11px; font-family: var(--type); }
.dl-brand b { font-size: 24px; font-weight: 720; letter-spacing: -.065em; line-height: 1; }
.dl-mark {
  position: relative; width: 32px; height: 32px; border-radius: 10px; display: inline-block;
  background: var(--blue); color: white; overflow: hidden;
}
.dl-mark i { position: absolute; inset-inline-start: 7px; width: 18px; height: 4px; border-radius: 1px; background: currentColor; transform: skewY(-19deg); }
.dl-mark i:first-child { top: 10px; }.dl-mark i:last-child { top: 18px; }
.dl-brand .client { font-size: 11px; font-weight: 700; letter-spacing: .12em; border-left: 1px solid var(--edge); padding-left: 12px; margin-left: 3px; line-height: 1.5; }
.lang-toggle, .portal-link a, .code-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; font-weight: 600; }
.lang-toggle { border: 1px solid var(--edge); border-radius: 24px; color: var(--body); background: transparent; padding: 0 15px; }
.access svg { width: 19px; height: 19px; flex: none; }
.access-main { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); min-height: calc(100svh - 82px); }
.access-art { grid-column: 2; grid-row: 1; margin: 22px 0; margin-inline-end: 22px; position: relative; overflow: hidden; border-radius: 18px; background: #426aa8; }
.access-art picture { display: block; }
.office-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.access-card { grid-area: 1/1; align-self: center; justify-self: center; width: min(420px,calc(100% - clamp(36px,5.4vw,72px))); padding: 42px 0; }
.portal-heading { display: flex; align-items: center; gap: clamp(10px,1.2vw,16px); margin-block-end: 26px; }
.role-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #c3d0ee; border-radius: 14px; color: var(--blue); background: #ecf1ff; }
.role-icon svg { width: 20px; height: 20px; }
.access h1 { margin: 0; line-height: 1.13; font-size: clamp(2.3rem,3.6vw,3.45rem); letter-spacing: -.065em; text-wrap: balance; }
[dir=rtl] .access h1 { letter-spacing: normal; line-height: 1.37; }
#codeHint { margin: 0 0 20px; color: var(--quiet); text-wrap: pretty; }
.access label { display: block; color: var(--body); font-weight: 650; font-size: .925rem; margin-bottom: 7px; }
.entry-field { display: flex; align-items: center; gap: 12px; background: var(--input); padding: 0 15px; border: 1px solid var(--edge); border-radius: 9px; }
.entry-field:focus-within { border-color: var(--action); box-shadow: 0 0 0 2px var(--action); }
.entry-field svg { color: var(--quiet); }
.entry-field input { border: 0; outline: 0 !important; color: var(--body); background: transparent; width: 100%; min-width: 0; padding: 13px 0; }
.entry-field input::placeholder { color: var(--quiet); opacity: .9; }
.access .password-row { margin-top: 16px; }
.access .submit { width: 100%; min-height: 48px; margin-top: 18px; padding: 11px 16px; font-weight: 700; color: var(--button-text); background: var(--action); border: 0; border-radius: 9px; }
.access .submit:hover:not(:disabled) { filter: brightness(.92); }
.code-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.code-actions button { border: 0; background: none; padding: 0; color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.feedback { color: var(--body); margin: 13px 0 0; font-size: .94rem; }.feedback:empty {display:none;}
.portal-link { margin-top: 28px; padding-top: 13px; border-top: 1px solid var(--edge); }
.portal-link a { color: var(--quiet); width: fit-content; text-underline-offset: 4px; text-decoration: none; }.portal-link a:hover { color: var(--action); text-decoration: underline; }
.switch-photo { object-position: center 58%; }
@media(max-width:740px){
  .switch-photo { aspect-ratio: 2 / 1; }
  .access-header {min-height:66px;padding:8px 20px;}
  .access-main {min-height:calc(100svh - 66px);grid-template-columns:1fr;grid-template-rows:auto 1fr;}
  .access-art {grid-area:1/1;height:auto;margin:14px 16px 0;border-radius:13px;}
  .office-photo {position:static;display:block;height:auto;}
  .access-card {grid-area:2/1;width:min(430px,calc(100% - 40px));padding:26px 0 24px;align-self:start;}
  .portal-heading {margin-block-end:20px;}
  .role-icon {width:34px;height:34px;border-radius:10px;}.access h1 {font-size:2.25rem;}
  .portal-link{margin-top:18px;padding-top:8px;}
}

/* Ticket workspaces */
.workspace {
  --ink:#172638; --muted:#526273; --teal:var(--blue); --line:#dbe0e6; --pale:#eff3fb; --navy:var(--night); --edge:#cdd3d9;
  background:var(--paper); min-height:100svh; font-family:var(--type);
}
.workspace header { background:var(--paper); }
.workspace .bar {min-height:72px;height:auto;padding-block:12px;}
.workspace .barEnd {flex-wrap:wrap;gap:8px;}
.workspace .barEnd .language {min-height:42px;border-radius:9px;color:var(--ink);background:transparent;}
.workspace:not(.ready) main,.workspace:not(.ready) .barEnd {display:none}
.workspace main {max-width:1430px;padding-top:clamp(26px,4.5vw,60px);padding-bottom:48px;}
.workspace #loadError {max-width:65ch;margin:3rem auto;padding:0 22px;}.workspace #loadError a {color:var(--blue);}
.work-title {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:24px;}
.work-title h1 {font-size:clamp(2rem,4.7vw,4.1rem);letter-spacing:-.065em;line-height:1.1;margin:0;}
[dir=rtl] .work-title h1 {letter-spacing:normal;line-height:1.3;}
.workspace .primary, .workspace .secondary {min-height:44px;border-radius:9px;padding-inline:16px;}
.workspace .work-title .primary {font-size:1rem;gap:10px;}
.workspace .metrics {gap:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:white;margin:0 0 24px;}
.workspace .metrics.personal {grid-template-columns:repeat(3,minmax(0,1fr));}
.workspace .metric {border:0;border-radius:0;background:transparent;display:grid;gap:12px;padding:clamp(14px,2vw,26px);align-content:start;}
.workspace .metric + .metric {border-inline-start:1px solid var(--line);}
.workspace .metric strong {font-size:clamp(1.8rem,3vw,2.9rem);line-height:1.1;font-weight:650;}
.workspace .metric-label {font-size:.9rem;align-items:center;gap:8px;}
.workspace .metric-label .iconbox {width:24px;height:24px;background:none;color:var(--teal);}
.workspace .metric-label .iconbox svg {width:18px;height:18px;}
.workspace .panel {border-radius:16px;box-shadow:0 3px 14px #17263806;}
.workspace .tools {margin:0 0 18px;}.workspace .tools select,.workspace .search input {min-height:43px;border-color:#c4cdd9;}
.workspace .listHead {background:#f3f5fa;padding:11px 12px;border-radius:5px;}.workspace .ticket {padding:16px 12px;}
.workspace .ticket:hover,.workspace .staff:hover,.workspace .floor:hover {background:#f2f5fc;}
.workspace .iconbox,.workspace .avatar {background:#edf2ff;color:#284999;}
.workspace .ticket .person {min-width:0;overflow-wrap:anywhere;}
.workspace .none {padding:36px 12px;text-align:center;}
.workspace[data-portal=employee] .layout {grid-template-columns:1fr;}
.workspace[data-portal=employee] main {max-width:1170px;}
.workspace[data-portal=it] {background:#edf1f4;--edge:#465463;}
.workspace[data-portal=it] .dl-mark { color:#182528; background:var(--lime); }
.workspace[data-portal=it] header {background:var(--night);color:#f7faff;border-color:#2b3d50;}
.workspace[data-portal=it] .barEnd .language {border-color:#4b5a69;color:#f1f5fa;}
.workspace[data-portal=it] .work-title h1 {font-size:clamp(2rem,3.6vw,3.2rem);}
.workspace[data-portal=it] .work-title .primary {background:var(--night);color:var(--lime);}
.workspace[data-portal=it] .metrics {background:#1b2938;border-color:#27394a;color:white;}
.workspace[data-portal=it] .metric + .metric {border-color:#445364;}
.workspace[data-portal=it] .metric-label {color:#d6dfe5;}
.workspace[data-portal=it] .metric-label .iconbox {color:var(--lime);}
.workspace[data-portal=it] .metric:last-child strong {color:var(--lime);}
.workspace[data-portal=it] .side .panel {border-radius:10px;}
.workspace .inbox-button {display:inline-flex;align-items:center;gap:4px;justify-content:center;min-width:42px;}
@media (max-width:680px){
  .workspace .bar {gap:10px;}.workspace .barEnd {gap:5px;}.workspace .barEnd .language {min-height:44px;font-size:.82rem;padding-inline:8px;}
  .workspace .dl-brand b {font-size:21px}.workspace .dl-brand .client {display:none;}
  .work-title {margin-bottom:18px;}.workspace main {padding-top:24px;}
  .workspace .metric {gap:9px;padding:12px;}.workspace .metric-label {font-size:.82rem;}
  .workspace .metric-label .iconbox {display:none;}
  .workspace .metrics.five {grid-template-columns:repeat(3,1fr);}
  .workspace .metrics.five .metric:nth-child(n+4) {border-block-start:1px solid #445364;}
  .workspace .metrics.five .metric:nth-child(4) {border-inline-start:0;}
  .workspace .tools {gap:6px;}.workspace .ticket {padding:14px 6px;}
}
