@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter/inter-latin-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter/inter-latin-500.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter/inter-latin-600.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter/inter-latin-700.woff2') format('woff2');}

:root {
  --brand: #3a7aaf;
  --brand-2: #5a96c4;
  --brand-hover: #326892;
  --brand-soft: #eef5fb;
  --brand-ring: rgba(58, 122, 175, .18);
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --card: #ffffff;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --info: #1d4ed8;
  --info-soft: #eff6ff;
  --star: #ca8a04;
  --scrim: rgba(15, 23, 42, .45);
  --shadow: 0 10px 30px rgba(15, 23, 42, .06);
  --radius: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --sidebar: 220px;
  --sidebar-icons: 56px;
  --nav-ticket: #4f8fe8;
  --nav-pie: #2faf8f;
  --nav-grid: #8b74f0;
  --nav-clock: #e09a3a;
  --nav-calendar: #e27890;
  --nav-journal-plus: #3aa0c8;
  --nav-people: #6a7ef0;
  --nav-folder: #d4923a;
  --nav-buildings: #5c8fbf;
  --nav-inboxes: #3aafc4;
  --nav-kanban: #a56adf;
  --nav-file: #6a9ad4;
  --nav-chart: #3dae6a;
  --nav-sliders: #e07a4a;
  --nav-lightning: #e0b03a;
  --nav-journal: #6aaa78;
  --nav-hdd: #7a8eb8;
  --nav-shield: #4a9a86;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --control-height: 42px;
  --control-height-sm: 36px;
  --control-pad-x: 14px;
  --control-font: 15px;
  --control-radius: var(--radius-md);
  --control-border: 1px solid var(--line);
  --control-bg: #ffffff;
  --control-bg-focus: var(--card);
  --on-brand: #fff;
  --on-brand-muted: rgba(255, 255, 255, .82);
  --on-brand-ring: rgba(255, 255, 255, .45);
  --on-brand-glow: rgba(255, 255, 255, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  letter-spacing: -.011em;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.auth-stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 8% 10%, color-mix(in srgb, var(--nav-grid) 20%, transparent), transparent 70%),
    radial-gradient(55% 50% at 95% 15%, color-mix(in srgb, var(--nav-pie) 18%, transparent), transparent 70%),
    radial-gradient(60% 55% at 85% 100%, color-mix(in srgb, var(--nav-calendar) 18%, transparent), transparent 70%),
    linear-gradient(180deg, var(--brand-soft), var(--bg-alt));
}
.auth-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}
.auth-orb-a { width: 420px; height: 420px; top: -120px; left: -100px; background: var(--brand-2); }
.auth-orb-b { width: 360px; height: 360px; right: -90px; bottom: -110px; background: var(--nav-grid); }
.auth-orb-c { width: 260px; height: 260px; right: 22%; top: -90px; background: var(--nav-pie); opacity: .35; }
.auth {
  width: min(1020px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, .04),
    0 40px 80px -24px color-mix(in srgb, var(--brand) 55%, transparent);
}
.auth-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-brand);
  padding: 44px 44px 48px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, var(--nav-grid) 85%, transparent), transparent 62%),
    radial-gradient(80% 60% at 100% 100%, color-mix(in srgb, var(--nav-pie) 70%, transparent), transparent 62%),
    linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 42%, var(--ink)));
}
.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.auth-hero::before {
  width: 300px;
  height: 300px;
  top: -110px;
  right: -90px;
  border: 1px solid var(--on-brand-glow);
  box-shadow: 0 0 0 46px rgba(255, 255, 255, .05), 0 0 0 92px rgba(255, 255, 255, .035);
}
.auth-hero::after {
  width: 240px;
  height: 240px;
  left: -80px;
  bottom: -90px;
  background: radial-gradient(circle, var(--on-brand-glow), transparent 70%);
}
.auth-brand { display: flex; }
.auth-mark {
  display: grid;
  place-items: center;
  width: 168px;
  padding: 10px 14px 8px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
}
.auth-mark img { width: 100%; height: auto; object-fit: contain; }
.auth-hero h1 {
  margin: 48px 0 0;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--on-brand);
}
.auth-hero h1 span { color: var(--on-brand-muted); font-weight: 600; }
.auth-hero-lead {
  margin: 14px 0 0;
  max-width: 340px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-brand-muted);
}
.auth-points {
  list-style: none;
  margin: auto 0 0;
  padding: 36px 0 0;
  display: grid;
  gap: 12px;
}
.auth-points li {
  --tone: var(--nav-ticket);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auth-points li.is-green { --tone: var(--nav-pie); }
.auth-points li.is-amber { --tone: var(--nav-clock); }
.auth-points .bi {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tone);
  color: var(--on-brand);
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--tone) 55%, transparent);
}
.auth-points strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--on-brand); }
.auth-points span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--on-brand-muted); }
.auth-panel {
  --control-height: 52px;
  --control-radius: 14px;
  --control-border: 1px solid var(--line);
  --control-bg: var(--bg);
  --auth-field-font: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  background:
    radial-gradient(70% 40% at 100% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 70%),
    var(--card);
}
.auth-panel h2 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--brand);
  background: linear-gradient(90deg, var(--brand), var(--nav-grid));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-panel p.lead { margin: 0 0 28px; color: var(--body); font-size: 15px; }
.mfa-qr:not(:empty) {
  width: 228px;
  margin: 0 0 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.mfa-qr svg { display: block; width: 204px; height: 204px; }
.mfa-key { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.mfa-key code { color: var(--ink); font-family: ui-monospace, Consolas, monospace; }
.auth-panel .field span { font-size: 13px; font-weight: 600; color: var(--body); letter-spacing: 0; text-transform: none; }
.auth-panel .field input:not([type="checkbox"]):not([type="radio"]),
.auth-panel .field select,
.auth-panel .field textarea {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--auth-field-font);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 50px;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.auth-panel .field input[type="password"]::-ms-reveal,
.auth-panel .field input[type="password"]::-ms-clear { display: none; }
.auth-panel .field textarea { height: auto; }
.auth-panel .field input:not([type="checkbox"]):not([type="radio"]):hover,
.auth-panel .field select:hover,
.auth-panel .field textarea:hover { border-color: var(--muted); }
.auth-panel .field input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-panel .field select:focus,
.auth-panel .field textarea:focus {
  background-color: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.auth-panel .field input:-webkit-autofill,
.auth-panel .field input:-webkit-autofill:hover,
.auth-panel .field input:-webkit-autofill:focus,
.auth-panel .field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  transition: background-color 99999s ease-out;
}
.auth-panel .field input:-webkit-autofill,
.auth-panel .field input:-webkit-autofill:hover {
  box-shadow: 0 0 0 1000px var(--bg) inset !important;
}
.auth-panel .field input:-webkit-autofill:focus,
.auth-panel .field input:-webkit-autofill:active {
  border-color: var(--brand);
  background-color: #fff !important;
  box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px var(--brand-ring) !important;
}
@keyframes auth-autofill-font {
  to {
    font-family: var(--font);
    font-size: var(--auth-field-font);
    font-weight: 400;
    letter-spacing: normal;
  }
}
.auth-panel form.auth-login { margin-top: 20px; }
.auth-panel .auth-login .field-icon > input:not([type="checkbox"]):not([type="radio"]),
.auth-panel .auth-login .field-icon > input:not([type="checkbox"]):not([type="radio"]):hover,
.auth-panel .auth-login .field-icon > input:not([type="checkbox"]):not([type="radio"]):focus {
  background: #fff;
  background-color: #fff;
}
.auth-panel .auth-login .field-icon > input:-webkit-autofill,
.auth-panel .auth-login .field-icon > input:-webkit-autofill:hover,
.auth-panel .auth-login .field-icon > input:-webkit-autofill:focus,
.auth-panel .auth-login .field-icon > input:-webkit-autofill:active {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  font-family: var(--font);
  font-size: var(--auth-field-font);
  font-weight: 400;
  letter-spacing: normal;
  animation: auth-autofill-font 0.01s both;
}
.auth-panel .auth-login .field-icon > input:-webkit-autofill::first-line {
  font-family: var(--font);
  font-size: var(--auth-field-font);
  font-weight: 400;
  letter-spacing: normal;
}
.auth-panel .auth-login .field-icon > input:-webkit-autofill:focus,
.auth-panel .auth-login .field-icon > input:-webkit-autofill:active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px var(--brand-ring) !important;
}
.auth-panel .field-icon { position: relative; }
.auth-panel .field-icon > .bi {
  position: absolute;
  z-index: 1;
  left: 8px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 17px;
  pointer-events: none;
}
.auth-panel .field.field-icon > input:not([type="checkbox"]):not([type="radio"]) { padding-left: 56px; }
.auth-captcha {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px dashed var(--brand-2);
  border-radius: 16px;
  background: var(--brand-soft);
}
.auth-captcha img {
  display: block;
  width: 168px;
  height: 56px;
  max-width: 100%;
  border-radius: 8px;
  background: var(--card);
}
.auth-captcha p { margin: 0; color: var(--body); font-size: 13px; line-height: 1.45; }
.auth-captcha .field { margin-bottom: 0; }
.auth-help { margin: -2px 0 18px; font-size: 14px; }
.auth-help { text-align: right; }
.auth-help a { color: var(--brand); font-weight: 600; }
.auth-help a:hover { text-decoration: underline; }
.auth-panel .btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand) 0%, var(--nav-grid) 100%);
  box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--nav-grid) 70%, transparent);
  border-radius: 14px;
  height: 54px;
  font-size: 16px;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.auth-panel .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.auth-panel .btn-primary:hover {
  filter: saturate(1.1) brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -10px color-mix(in srgb, var(--nav-grid) 80%, transparent);
}
.auth-panel .btn-primary:hover::after { left: 130%; transition: left .7s ease; }
.auth-panel .btn-primary:active { transform: translateY(0); }
.auth-panel .btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
@media (prefers-reduced-motion: no-preference) {
  .auth-orb-a { animation: auth-drift 16s ease-in-out infinite alternate; }
  .auth-orb-b { animation: auth-drift 20s ease-in-out infinite alternate-reverse; }
  .auth-orb-c { animation: auth-drift 14s ease-in-out infinite alternate; }
  .auth { animation: auth-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .auth-points li { animation: auth-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
  .auth-points li:nth-child(1) { animation-delay: .25s; }
  .auth-points li:nth-child(2) { animation-delay: .37s; }
  .auth-points li:nth-child(3) { animation-delay: .49s; }
  .auth-panel form > * { animation: auth-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
  .auth-panel form > *:nth-child(2) { animation-delay: .12s; }
  .auth-panel form > *:nth-child(3) { animation-delay: .18s; }
  .auth-panel form > *:nth-child(4) { animation-delay: .24s; }
  .auth-panel form > *:nth-child(5) { animation-delay: .30s; }
  .auth-panel form > *:nth-child(6) { animation-delay: .36s; }
}
@keyframes auth-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(50px, 40px, 0) scale(1.15); }
}
@keyframes auth-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.auth-panel form + form { margin-top: 10px; }
.auth-alt { margin: 22px 0 0; text-align: center; color: var(--body); font-size: 14px; }
.auth-alt .link-quiet { color: var(--brand); font-weight: 700; }
.auth-alt .link-quiet:hover { text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span { font-size: 13px; font-weight: 600; color: var(--body); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.field select,
.field textarea,
.pick-combo {
  height: var(--control-height);
  border: var(--control-border);
  border-radius: var(--control-radius);
  padding: 0 var(--control-pad-x);
  font-size: var(--control-font);
  font-weight: 400;
  color: var(--ink);
  background: var(--control-bg);
  outline: none;
  transition: border .15s, box-shadow .15s, background-color .15s;
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px; height: 18px; margin: 0; padding: 0; flex: none;
  accent-color: var(--brand);
}
.field > input[type="checkbox"],
.field > input[type="radio"] { align-self: flex-start; }
.field.field-check {
  flex-direction: row; align-items: center; gap: 10px;
  margin: 14px 0 18px; min-height: 0;
}
.field.field-check span { margin: 0; font-weight: 600; }
.check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 14px 0 18px; }
.check-row .field.field-check { margin: 0; }
.name-locale-row { display: flex; gap: 8px; align-items: center; }
.name-locale-row input { flex: 1; min-width: 0; }
.name-locale-row .btn { height: var(--control-height); flex: none; }
.country-combo { position: relative; width: 100%; }
.country-combo script { display: none !important; }
.field.country-field:focus-within { position: relative; z-index: 6; }
.country-combo input { display: block; width: 100%; padding-right: var(--control-height); }
.country-caret {
  appearance: none; position: absolute; top: 0; right: 0; z-index: 1;
  width: var(--control-height); height: var(--control-height); margin: 0; padding: 0; border: 0;
  border-radius: 0 var(--control-radius) var(--control-radius) 0;
  display: flex; align-items: center; justify-content: center; line-height: 0;
  background: transparent; color: var(--muted); cursor: pointer;
}
.country-caret .bi { display: block; font-size: 12px; line-height: 1; pointer-events: none; transition: transform .15s; }
.country-combo.is-open .country-caret .bi { transform: rotate(180deg); }
.country-menu {
  position: fixed; z-index: 80; max-height: 260px; overflow: auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--control-radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12); padding: 4px;
}
.country-menu[hidden] { display: none !important; }
.country-option {
  display: block; width: 100%; min-height: 36px; margin: 0; padding: 8px 10px;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink);
  font-size: 14px; text-align: left; cursor: pointer;
}
.country-option:hover, .country-option.is-on { background: var(--bg-alt); }
.country-option.is-picked { font-weight: 650; }
.country-empty { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 13px; }
.city-combo { position: relative; width: 100%; }
.city-combo script { display: none !important; }
.field.city-field:focus-within { position: relative; z-index: 6; }
.city-combo input { display: block; width: 100%; }
.city-combo.is-turkey input { padding-right: var(--control-height); }
.city-combo.is-open .country-caret .bi { transform: rotate(180deg); }
.city-combo:not(.is-turkey) .country-caret { display: none; }
fieldset.field { flex-direction: row; flex-wrap: wrap; align-items: center; }
fieldset.field > span { flex: 1 0 100%; }
fieldset.field label {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  margin: 0 12px 0 0; font-size: 13px; color: var(--ink);
}
fieldset.scope-tags { flex-direction: column; align-items: stretch; gap: 8px; }
fieldset.scope-tags > span { flex: none; }
fieldset.scope-tags .scope-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.scope-tags .scope-tag-list label.chip {
  position: relative; height: auto; min-height: 34px; margin: 0; padding: 6px 12px;
  color: var(--body); font-weight: 600; line-height: 1.3; white-space: normal; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
fieldset.scope-tags .scope-tag-list label.chip input {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; overflow: hidden;
}
fieldset.scope-tags .scope-tag-list label.chip:hover { border-color: var(--ok); color: var(--ok); }
fieldset.scope-tags .scope-tag-list label.chip:has(input:checked) {
  background: var(--ok); color: #fff; border-color: var(--ok);
}
fieldset.scope-tags .scope-tag-list label.chip:has(input:checked):hover { color: #fff; }
fieldset.scope-tags .scope-tag-list label.chip:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--brand-ring); }
.field textarea { height: auto; min-height: 120px; padding: 12px var(--control-pad-x); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.pick-combo:focus {
  border-color: var(--brand-2); background: var(--control-bg-focus); box-shadow: 0 0 0 4px var(--brand-ring);
}
.field input[readonly],
.field textarea[readonly] { background: var(--bg-alt); }
.field select:disabled { background: var(--bg-alt); color: var(--muted); }
.field-display {
  display: flex; align-items: center; min-height: var(--control-height);
  padding: 0 var(--control-pad-x); font-size: var(--control-font); color: var(--ink);
  background: var(--control-bg); border: var(--control-border); border-radius: var(--control-radius);
  cursor: default; user-select: text;
}
.auth-panel .field-display { border-radius: 12px; }
.field input[type="file"] { height: auto; min-height: var(--control-height); padding: 12px var(--control-pad-x); line-height: 1.2; }
.color-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.color-swatch, .color-custom input[type="color"] {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line); padding: 0; cursor: pointer; background: var(--swatch);
}
.color-custom { display: inline-flex; margin: 0; }
.color-custom input[type="color"] {
  -webkit-appearance: none; appearance: none; background: transparent;
}
.color-custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-custom input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.color-custom input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }
.color-swatch.is-on, .color-custom.is-on input[type="color"] { box-shadow: 0 0 0 2px var(--brand); }
.color-field .hint { margin: 6px 0 0; }
.icon-picker .color-field { margin-bottom: 8px; }
.icon-picker .color-field:last-of-type { margin-bottom: 0; }
.icon-picker-bar { display: flex; align-items: center; gap: 8px; }
.icon-picker-bar .btn { flex: none; }
.icon-mark,
.project-icon-mark,
.icon-picker-preview {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--icon-bg, var(--project-icon-bg, transparent));
  color: var(--icon, var(--project-icon, var(--brand)));
}
.icon-mark.is-framed,
.project-icon-mark.is-framed,
.icon-picker-preview.is-framed {
  border-color: var(--icon-frame, var(--project-icon-frame, var(--line)));
}
.icon-picker .icon-picker-preview,
.form-sheet .field .icon-picker-preview {
  font-size: 18px; font-weight: 400;
  color: var(--icon, var(--project-icon, var(--brand)));
}
.icon-picker .icon-picker-preview.is-empty,
.form-sheet .field .icon-picker-preview.is-empty {
  color: var(--muted); background: var(--bg-alt); border-color: var(--line);
}
.icon-mark .bi,
.project-icon-mark .bi,
.icon-picker-preview .bi { font-size: 16px; line-height: 1; color: var(--icon, var(--project-icon, var(--brand))); }
.icon-picker-preview.is-empty .bi { color: var(--muted); }
.icon-picker-dialog { width: min(720px, calc(100vw - 24px)); }
.icon-picker-dialog input[type="search"] { width: 100%; margin: 0 0 8px; }
.icon-picker-dialog [data-icon-picker-count] { margin: 0 0 8px; }
.icon-picker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px; max-height: min(420px, calc(100vh - 220px)); overflow: auto; padding: 8px;
  background: var(--bg); border-radius: var(--control-radius);
}
.icon-picker-choice {
  width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid transparent;
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.icon-picker-choice.is-off { display: none !important; }
.icon-picker-choice .bi { font-size: 18px; line-height: 1; }
.icon-picker-choice:hover { background: var(--bg-alt); border-color: var(--line); }
.icon-picker-choice.is-on {
  background: color-mix(in srgb, var(--icon, var(--brand)) 14%, #fff);
  color: var(--icon, var(--brand));
  border-color: color-mix(in srgb, var(--icon, var(--brand)) 40%, var(--line));
}
.icon-picker-choice:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.project-name-link,
table.data td .project-name-link,
table.data.list-grid.is-col-sized td > a.project-name-link,
.tickets-page .tickets-data-grid.is-col-sized td > a.project-name-link,
.tickets-page .tickets-data-grid td .project-name-link {
  display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 1.5ch;
  min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; vertical-align: middle;
}
.project-name-link .icon-mark,
.project-name-link .project-icon-mark { width: 1em; height: 1em; }
.project-name-link .icon-mark .bi,
.project-name-link .project-icon-mark .bi { font-size: 1em; }
.ticket-code,
.activity-ticket-code,
.board-card-key,
.pick-face-code,
.pick-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
}
.ticket-code,
.activity-ticket-code,
.board-card-key,
.pick-face-code,
.pick-menu--ticket .pick-code {
  font-weight: 400;
}
.ticket-code .ticket-type-mark,
.activity-ticket-code .ticket-type-mark,
.board-card-key .ticket-type-mark,
.pick-face-code .ticket-type-mark,
.pick-code .ticket-type-mark {
  width: 1em;
  height: 1em;
  font-size: 1em;
  color: var(--icon, var(--project-icon, var(--brand)));
  background: var(--icon-bg, var(--project-icon-bg, transparent));
}
.ticket-code .ticket-type-mark .bi,
.activity-ticket-code .ticket-type-mark .bi,
.board-card-key .ticket-type-mark .bi,
.pick-face-code .ticket-type-mark .bi,
.pick-code .ticket-type-mark .bi {
  font-size: 1em;
  color: var(--icon, var(--project-icon, var(--brand)));
}
.project-name-link > span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.month-input input[type="month"] {
  width: 100%;
  color-scheme: light;
}
.month-input input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
}
.month-input input[type="month"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-height); padding: 0 18px; border-radius: var(--control-radius); border: 0;
  font-weight: 600; font-size: var(--control-font); cursor: pointer; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; width: 100%; box-shadow: 0 8px 18px rgba(58, 122, 175, .25); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-sm { height: var(--control-height-sm); padding: 0 12px; font-size: 13px; width: auto; border-radius: var(--radius-sm); }
.btn .bi { font-size: 1.05em; line-height: 1; }
.btn-icon { width: 36px; min-width: 36px; padding: 0; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); width: auto; }
.btn:disabled { cursor: default; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #fecaca; width: auto; }
.top-search,
.subnav-search,
.list-search,
.search,
.grid-pager,
.col-filter,
.th-filter-pop,
.criteria,
.ticket-facts,
.activity,
.offer-banner,
.issue-details,
.issue-row,
.relate-card,
.pano-inspector,
.workflow-editor-panel,
.pano-filter-editor,
.config-motor-create,
.flow-add,
.tag-picker--row,
.pick--chip,
.pick-menu,
.activity-sheet,
.staffing-work {
  --control-height: var(--control-height-sm);
  --control-font: 13px;
  --control-radius: var(--radius-sm);
}
.ticket-facts,
.activity,
.offer-banner,
.issue-details,
.issue-row { --control-pad-x: 8px; }
.pick--chip,
.flow-add,
.activity-sheet,
.relate-card,
.pano-inspector,
.workflow-editor-panel,
.pano-filter-editor { --control-pad-x: 10px; }
.top-search,
.list-search,
.pick-menu {
  --control-bg: var(--bg);
  --control-border: 1px solid var(--line);
}
.subnav-search,
.search,
.grid-pager,
.col-filter,
.th-filter-pop,
.activity-sheet,
.staffing-work,
.flow-add,
.config-motor-create,
.relate-card,
.pano-inspector,
.workflow-editor-panel,
.pano-filter-editor,
.issue-row {
  --control-bg: var(--card);
  --control-border: 1px solid var(--line);
}
.link-quiet { color: var(--body); font-size: 13px; border-radius: 6px; }
.link-quiet:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px; }
.alert ul { margin: 8px 0 0; padding-left: 18px; }
.alert li + li { margin-top: 4px; }
.alert-error { background: #fef2f2; color: var(--danger); }
.alert-ok { background: #f0fdf4; color: var(--ok); }
.alert-warn { background: #fffbeb; color: var(--warn); }
.alert-info { background: var(--brand-soft); color: var(--ink); }
.alert-info a { color: var(--brand); font-weight: 650; }

.toast-stack {
  position: fixed; top: 18px; right: 18px; z-index: 1300;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(420px, calc(100vw - 36px)); pointer-events: none;
}
.toast-stack .toast { pointer-events: auto; }
.toast {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px;
  padding: 14px 14px 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; box-shadow: 0 12px 40px rgba(15, 23, 42, .12);
  animation: toast-in .32s cubic-bezier(.2, .8, .2, 1);
}
.toast > .bi { font-size: 20px; line-height: 1; margin-top: 1px; }
.toast-ok { border-color: #bbf7d0; background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%); }
.toast-ok > .bi { color: var(--ok); }
.toast-error { border-color: #fecaca; background: linear-gradient(180deg, #fff 0%, #fef2f2 100%); }
.toast-error > .bi { color: var(--danger); }
.toast-warn { border-color: #fde68a; background: linear-gradient(180deg, #fff 0%, #fffbeb 100%); }
.toast-warn > .bi { color: var(--warn); }
.toast-message { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.toast-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.toast-close:hover { background: rgba(15, 23, 42, .06); color: var(--ink); }
.toast-close:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.toast.is-leaving { animation: toast-out .24s ease forwards; }
.toast-error.is-leaving { animation: error-fade-out 1s ease forwards; }
.toast-stack--center.is-leaving { animation: error-scrim-out 1s ease forwards; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px) scale(.98); }
}
@keyframes error-fade-out {
  to { opacity: 0; }
}
@keyframes error-scrim-out {
  to { background-color: transparent; }
}
@media (max-width: 640px) {
  .toast-stack { left: 16px; right: 16px; max-width: none; }
}
.toast-stack--center {
  top: 0; right: 0; bottom: 0; left: 0; max-width: none;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--scrim); pointer-events: auto;
  z-index: 1400;
}
.toast-stack--center .toast { width: min(440px, calc(100vw - 48px)); }
.toast-stack--center .toast-message { white-space: pre-line; }

.shell {
  min-height: 100vh; display: grid;
  grid-template-columns: 0 1fr;
  grid-template-rows: 56px minmax(0, 1fr);
  background: #fff;
  transition: grid-template-columns .2s ease;
}
.sidebar {
  grid-column: 1; grid-row: 2; align-self: start;
  background: #ffffff; border-right: 1px solid var(--line);
  padding: 12px 14px; position: sticky; top: 56px; height: calc(100vh - 56px);
  display: flex; flex-direction: column; z-index: 8; overflow: visible;
}
.side-split {
  position: fixed; z-index: 35; top: 56px; bottom: 0; left: 0; width: 16px;
}
.side-split::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px;
  background: transparent; border-radius: 1px;
}
.side-split:hover::before { background: var(--muted); }
.side-rail {
  position: absolute; left: 8px; top: 24px; z-index: 2; transform: translate(-50%, -50%);
  width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer;
  display: grid; place-items: center; opacity: 0; pointer-events: none;
}
.side-split:hover .side-rail,
.side-rail:focus-visible { opacity: 1; pointer-events: auto; }
.side-rail .bi { font-size: 12px; }
.side-rail:hover { border-color: var(--muted); color: var(--ink); }
.side-rail:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
html.sidebar-pinned:not(.sidebar-icons) .side-rail .bi-chevron-right,
html.sidebar-peek .side-rail .bi-chevron-right { transform: scaleX(-1); }
.side-toggle {
  display: none; flex: none; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--body); cursor: pointer; place-items: center;
}
.side-toggle:hover { background: var(--bg-alt); color: var(--ink); }
.side-toggle:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.side-toggle-glyph {
  position: relative; width: 16px; height: 14px; display: block;
  border: 1.5px solid currentColor; border-radius: 2px;
}
.side-toggle-glyph::before {
  content: ""; position: absolute; left: 4px; top: 2px; bottom: 2px;
  border-left: 1.5px solid currentColor;
}
.side-toggle-glyph::after {
  content: ""; position: absolute; top: 50%; right: 3px; width: 4px; height: 4px; margin-top: -3px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
html.sidebar-pinned .side-toggle-glyph::after { transform: scaleX(-1) rotate(45deg); }
.logo-mark { height: 26px; width: 26px; display: block; flex: none; object-fit: contain; }
.logo-word { display: none; height: 26px; width: auto; max-width: 136px; flex: none; object-fit: contain; }
html.sidebar-pinned:not(.sidebar-icons) .logo-mark,
html.sidebar-peek .logo-mark { display: none; }
html.sidebar-pinned:not(.sidebar-icons) .logo-word,
html.sidebar-peek .logo-word { display: block; }
.side-brand { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; padding: 0; color: inherit; border-radius: var(--radius-md); min-width: 0; }
.side-brand:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.nav a {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px; border-radius: var(--radius-md);
  color: var(--body); font-weight: 550; font-size: 13px; margin-bottom: 4px;
  position: relative;
}
.nav a .bi { font-size: 16px; }
.nav a .bi-ticket { color: var(--nav-ticket); }
.nav a .bi-pie-chart { color: var(--nav-pie); }
.nav a .bi-ui-checks-grid { color: var(--nav-grid); }
.nav a .bi-clock { color: var(--nav-clock); }
.nav a .bi-calendar3 { color: var(--nav-calendar); }
.nav a .bi-journal-plus { color: var(--nav-journal-plus); }
.nav a .bi-people { color: var(--nav-people); }
.nav a .bi-folder { color: var(--nav-folder); }
.nav a .bi-buildings { color: var(--nav-buildings); }
.nav a .bi-file-earmark-text { color: var(--nav-file); }
.nav a .bi-bar-chart { color: var(--nav-chart); }
.nav a .bi-sliders { color: var(--nav-sliders); }
.nav a .bi-journal { color: var(--nav-journal); }
.nav a .bi-hdd-stack { color: var(--nav-hdd); }
.nav a .bi-shield { color: var(--nav-shield); }
.nav a .bi-check2-square { color: var(--nav-lightning); }
.nav a .bi-person-plus { color: var(--nav-people); }
.nav a.nav-tall { height: auto; min-height: 42px; padding-top: 10px; padding-bottom: 10px; align-items: flex-start; }
.nav a.nav-tall .bi { margin-top: 1px; }
.nav a.nav-tall .nav-label { white-space: normal; line-height: 1.3; }
.nav a .bi-graph-up-arrow { color: var(--nav-pie); }
.nav a .bi-receipt { color: var(--nav-file); }
.nav a .bi-emoji-smile { color: var(--nav-inboxes); }
.nav a .bi-tags { color: var(--nav-calendar); }
.nav a .bi-ticket-detailed { color: var(--nav-ticket); }
.nav a .bi-diagram-3 { color: var(--nav-kanban); }
.nav a .bi-input-cursor-text { color: var(--nav-journal-plus); }
.nav a .bi-flag { color: var(--nav-sliders); }
.nav a .bi-signpost-split { color: var(--nav-chart); }
.nav a .bi-shield-lock { color: var(--nav-shield); }
.nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--brand); }
.nav { flex: 1; min-height: 0; overflow: auto; }
.nav-group { position: relative; margin-bottom: 4px; }
.nav-parent {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 42px; padding: 0 12px; border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--body); font: inherit; font-weight: 550; font-size: 13px;
  cursor: pointer; text-align: left; position: relative;
}
.nav-parent .bi { font-size: 16px; }
.nav-parent.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.nav-caret { margin-left: auto; font-size: 12px; color: var(--muted); }
.nav-sub {
  display: none; position: fixed; z-index: 40; min-width: 196px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.nav-sub::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 14px; }
.nav-group:hover > .nav-sub,
.nav-group:focus-within > .nav-sub,
.nav-group.open > .nav-sub { display: block; }
.nav-sub a { height: 36px; margin-bottom: 2px; }
.nav-sub a:last-child { margin-bottom: 0; }
.kb-read { width: 100%; }
.kb-read-nav {
  display: flex; align-items: center; gap: 8px; margin: 0 0 16px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.kb-read-nav a {
  display: inline-flex; align-items: center; gap: 6px; color: var(--body); text-decoration: none;
}
.kb-read-nav a:hover { color: var(--brand); }
.kb-read-nav .bi-chevron-right { font-size: 11px; }
.kb-read-sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06); overflow: hidden;
}
.kb-read-hero {
  padding: 36px 40px 28px;
  background:
    radial-gradient(520px 160px at 100% 0%, rgba(58, 122, 175, .1), transparent 70%),
    linear-gradient(180deg, #f3f8fc 0%, #fff 78%);
  border-bottom: 1px solid var(--line);
}
.kb-read-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.kb-read-hero h2 {
  margin: 14px 0 0; max-width: 16em;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.kb-read-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.kb-read-meta li {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--body); font-size: 13px; font-weight: 650;
}
.kb-read-meta .bi { color: var(--brand); font-size: 14px; }
.kb-read-body {
  padding: 32px 40px 44px; max-width: 68ch;
  font-size: 17px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere;
}
.kb-read-body p { margin: 0 0 14px; }
.kb-read-body p:last-child { margin-bottom: 0; }
.kb-read-body h2, .kb-read-body h3 { margin: 1.4em 0 .4em; line-height: 1.3; }
.kb-read-body ul, .kb-read-body ol { margin: 0 0 14px; padding-left: 1.2em; }
.kb-read-body img { max-width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 640px) {
  .kb-read-hero, .kb-read-body { padding-left: 18px; padding-right: 18px; }
  .kb-read-hero { padding-top: 24px; }
}
.portal-setup-intro { margin: -4px 0 14px; max-width: 68ch; }
.portal-swatch {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, .12); vertical-align: middle;
}
.subnav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.subnav a, .subnav button {
  height: var(--control-height-sm); padding: 0 14px; border-radius: var(--radius-md); border: 1px solid transparent;
  color: var(--body); font-weight: 650; font-size: 13px; text-decoration: none;
  display: inline-flex; align-items: center;
}
.subnav button { background: transparent; font: inherit; cursor: pointer; }
.subnav a.on, .subnav button.on, .subnav a:hover, .subnav button:hover { background: #fff; border-color: var(--line); color: var(--brand); box-shadow: var(--shadow); }
.subnav-search {
  position: relative; width: min(280px, 100%); margin: 0; flex: 0 1 280px;
}
.subnav-search .bi {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.subnav-search input {
  width: 100%; height: var(--control-height); border: var(--control-border); border-radius: var(--control-radius);
  background: var(--control-bg); color: var(--ink); padding: 0 12px 0 36px; font-size: var(--control-font); outline: none;
}
.subnav-search input::placeholder { color: var(--muted); }
.subnav-search input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
@media (max-width: 720px) {
  .subnav-search { flex: 1 1 100%; width: 100%; }
}
.org-pane > .link-panel { margin-top: 0; }
.org-pane > * + * { margin-top: 16px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; flex: none; overflow: hidden;
}
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.form-sheet .card:not(.link-panel):not(.table-card),
.form-sheet.card {
  padding: 22px; border-radius: 16px; box-shadow: none;
  border-color: color-mix(in srgb, var(--line) 70%, #fff);
}
.form-sheet .card:hover,
.form-sheet.card:hover { transform: none; }
.form-sheet .section-title h2,
.form-sheet .card:not(.link-panel) h2,
.form-sheet.card h2 {
  font-size: 15px; font-weight: 600; letter-spacing: -.015em; color: var(--ink);
}
.form-sheet .hint { color: var(--muted); font-weight: 400; line-height: 1.5; }
.form-sheet .field { margin-bottom: 14px; gap: 5px; }
[data-consultancy-fields][hidden] { display: none !important; }
.form-sheet .tag-picker .tag-picks:not(:empty) { margin-bottom: 2px; }
.form-sheet .field span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.form-sheet .field .btn span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.form-sheet .btn { font-weight: 500; }
.form-sheet .btn-primary { box-shadow: none; }
.form-sheet .btn-ghost:not(.btn-icon) { background: #fff; border-color: var(--line); color: var(--body); }
.form-sheet .btn-ghost:not(.btn-icon):hover { background: #fff; border-color: var(--line); color: var(--ink); }
.profile-tabs { margin: 0 0 16px; }
.profile-tabs .chip:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.profile-screen {
  display: flex; flex-direction: column; gap: 12px; max-width: 720px;
}
.profile-screen .card:not(.profile-account):not(.profile-photo) > h2 { margin: 0 0 12px; }
.profile-screen .stack { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.profile-screen .stack form,
.profile-screen .stack p { margin: 0; }
.exp-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.exp-item-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.exp-note-text { margin: 0; color: var(--body); font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.field textarea.exp-note { min-height: 72px; }
.exp-edit-title { margin: 4px 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.exp-form { scroll-margin-top: 16px; }
.card > .hint + .exp-form { margin-top: 16px; }
.exp-form .hint { margin: 0 0 14px; }
.exp-form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.profile-screen > .card { max-width: none; margin: 0; }
.profile-screen .hint { margin: 0; max-width: 52ch; }
.profile-screen .profile-photo-name { font-weight: 400; color: var(--muted); }
.profile-account { display: flex; flex-direction: column; }
.profile-account > h2 { margin-bottom: 2px; }
.profile-account > .hint { margin-bottom: 16px; }
.profile-screen .org-logo-stage { background: #fff; border-color: transparent; }
.profile-photo { display: flex; flex-direction: column; gap: 16px; }
.profile-photo-head { display: flex; align-items: center; gap: 16px; }
.profile-photo-head h2 { margin: 0 0 2px; }
.profile-photo-head .hint { margin: 0; max-width: 46ch; }
.profile-photo-face {
  width: 88px; height: 88px; font-size: 26px;
  background: color-mix(in srgb, var(--badge, var(--brand)) 16%, #fff);
  color: color-mix(in srgb, var(--badge, var(--brand)) 72%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge, var(--brand)) 34%, transparent);
}
.profile-photo-face.has-photo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.profile-photo-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-photo-actions form { display: flex; align-items: center; gap: 10px; margin: 0; }
.profile-photo-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.profile-photo-actions label.btn { position: relative; cursor: pointer; }
.profile-photo-name {
  color: var(--muted, var(--body)); font-size: 13px; max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.avatar-crop { display: flex; flex-direction: column; gap: 12px; flex-basis: 100%; }
.avatar-crop[hidden] { display: none; }
.avatar-crop-stage {
  width: 280px; height: 280px; position: relative; border-radius: 50%;
  overflow: hidden; background: #fff; cursor: grab; touch-action: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.avatar-crop-stage.is-dragging { cursor: grabbing; }
.avatar-crop-stage img {
  position: absolute; left: 0; top: 0; max-width: none;
  user-select: none; pointer-events: none;
}
.avatar-crop-zoom { display: flex; align-items: center; gap: 12px; width: 280px; margin: 0; }
.avatar-crop-zoom span { font-size: 13px; font-weight: 650; flex: none; }
.avatar-crop-zoom input { flex: 1; margin: 0; accent-color: var(--brand); }
.avatar-crop .hint { margin: 0; max-width: 46ch; }
.org-logo { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.org-logo-head { display: flex; align-items: center; gap: 16px; }
.org-logo-head h2 { margin: 0 0 2px; }
.org-logo-head .hint { margin: 0; max-width: 52ch; }
.org-logo-pick {
  display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
}
.org-logo-pick h2 { margin: 0 0 4px; font-size: 16px; }
.org-logo-pick .hint { margin: 0; max-width: 52ch; }
.org-logo-stage {
  display: grid; place-items: center; width: 180px; height: 72px; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px;
}
.org-logo-preview { display: block; max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.org-logo-empty { color: var(--muted); font-size: 13px; }
.org-logo-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.org-logo-actions form { display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; }
.org-logo-actions label.btn { position: relative; cursor: pointer; }
.org-logo-crop { display: flex; flex-direction: column; gap: 10px; flex-basis: 100%; }
.org-logo-crop[hidden] { display: none; }
.org-logo-frame {
  width: min(100%, 420px); height: 112px; position: relative; overflow: hidden;
  border-radius: 12px; background:
    linear-gradient(45deg, #e8edf2 25%, transparent 25%),
    linear-gradient(-45deg, #e8edf2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8edf2 75%),
    linear-gradient(-45deg, transparent 75%, #e8edf2 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #fff;
  border: 1px solid var(--line); cursor: grab; touch-action: none;
}
.org-logo-frame.is-dragging { cursor: grabbing; }
.org-logo-frame img {
  position: absolute; left: 0; top: 0; max-width: none;
  user-select: none; pointer-events: none;
}
.org-logo-zoom { display: flex; align-items: center; gap: 12px; width: min(100%, 420px); margin: 0; }
.org-logo-zoom span { font-size: 13px; font-weight: 650; flex: none; }
.org-logo-zoom input { flex: 1; margin: 0; accent-color: var(--brand); }
.org-logo-crop .hint { margin: 0; max-width: 56ch; }
.avatar.customer { background: #e2e8f0; color: #334155; }
.avatar.has-photo,
.avatar.customer.has-photo,
.avatar.consultant.has-photo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.avatar.consultant { background: var(--brand-soft); color: var(--brand); }
.avatar.admin { background: var(--ink); color: #fff; }
.main { grid-column: 2; grid-row: 2; min-width: 0; background: #fff; }
.topbar {
  grid-column: 1 / -1; grid-row: 1;
  height: 56px; display: flex; align-items: center; gap: 12px;
  padding: 0 16px 0 14px; background: #fff;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 9;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; position: relative; z-index: 2; }
.top-center {
  position: absolute; left: 50%; top: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  width: min(720px, max(200px, calc(100% - 440px)));
  max-width: calc(100% - 296px);
  transform: translateX(-50%);
}
.top-search { position: relative; flex: 1 1 auto; min-width: 0; margin: 0; }
.top-search-field { position: relative; }
.top-search .bi {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.top-suggest {
  position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + 10px);
  max-height: 320px; overflow: auto; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  animation: top-user-in .16s ease;
}
.top-suggest[hidden] { display: none !important; }
.top-suggest-label { margin: 0; padding: 6px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.top-suggest a {
  display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 0 10px;
  border-radius: var(--radius-md); color: inherit; text-decoration: none;
}
.top-suggest a strong { flex: none; font-size: 13px; font-weight: 700; color: var(--brand); }
.top-suggest a span { min-width: 0; flex: 1; font-size: 13px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-suggest a.on, .top-suggest a:hover { background: var(--bg-alt); }
.top-suggest a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.top-suggest-empty { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--muted); }
.top-search input {
  width: 100%; height: var(--control-height); border: var(--control-border); border-radius: var(--control-radius);
  background: var(--control-bg); color: var(--ink); padding: 0 12px 0 36px; font-size: var(--control-font); outline: none;
}
.top-search input::placeholder { color: var(--muted); }
.top-search input:focus { border-color: var(--brand-2); background: var(--control-bg-focus); box-shadow: 0 0 0 4px var(--brand-ring); }
.top-tools { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; position: relative; z-index: 2; }
.top-org-logo { display: flex; align-items: center; height: 36px; max-width: 120px; margin-right: 6px; }
.top-org-logo img { display: block; height: 32px; width: auto; max-width: 120px; object-fit: contain; }
.top-create {
  position: relative; flex: none; height: var(--control-height-sm); box-shadow: none;
  background: var(--brand);
}
.top-create:hover { filter: none; background: var(--brand-hover); }
.top-create-split { position: relative; display: flex; align-items: stretch; flex: none; }
.top-create-split .top-create { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.top-create-more {
  width: 28px; height: var(--control-height-sm); padding: 0; border: 0; cursor: pointer;
  border-left: 1px solid color-mix(in srgb, #fff 32%, transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.top-create-more:hover,
.top-create-split.open .top-create-more { background: var(--brand-hover); }
.top-create-more:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.top-create-more .bi { font-size: 12px; transition: transform .15s ease; }
.top-create-split.open .top-create-more .bi { transform: rotate(180deg); }
.top-create-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 8;
  width: min(300px, calc(100vw - 24px)); padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  animation: top-user-in .16s ease;
}
.top-create-menu[hidden] { display: none !important; }
.top-create-menu .top-user-item { height: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; white-space: normal; }
.top-create-menu .top-user-item-label { line-height: 1.35; }
.top-create-menu .top-user-ico,
.top-create-menu .top-user-item:hover .top-user-ico { width: auto; height: auto; background: transparent; }
.top-icon {
  position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--body); text-decoration: none;
}
.top-icon:hover { background: var(--bg-alt); color: var(--ink); }
.top-icon.is-on { background: var(--brand-soft); color: var(--brand); }
.top-icon:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.top-count {
  position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; pointer-events: none;
}
.top-count[hidden] { display: none !important; }
.top-bell { position: relative; }
.top-bell-toggle { border: 0; background: transparent; cursor: pointer; padding: 0; font: inherit; }
.top-bell.open .top-bell-toggle { background: var(--bg-alt); color: var(--ink); }
.top-bell-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 8;
  width: min(360px, calc(100vw - 24px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.top-bell-menu[hidden] { display: none !important; }
.top-bell-filter {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.top-bell-filter > span:first-child {
  min-width: 0; flex: 1; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--ink);
}
.top-bell-switch { position: relative; flex: none; width: 51px; height: 31px; }
.top-bell-switch input {
  position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.top-bell-switch-ui {
  position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--muted) 35%, #fff);
  transition: background .2s ease;
}
.top-bell-switch-ui::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .16), 0 1px 1px rgba(15, 23, 42, .06);
  transition: transform .2s ease;
}
.top-bell-switch input:checked + .top-bell-switch-ui { background: var(--ok); }
.top-bell-switch input:checked + .top-bell-switch-ui::after { transform: translateX(20px); }
.top-bell-switch input:focus-visible + .top-bell-switch-ui { box-shadow: 0 0 0 4px var(--brand-ring); }
.top-bell-menu:has([data-bell-unread]:checked) .top-bell-item:not(.is-new) { display: none; }
.top-bell-empty-unread { display: none; }
.top-bell-menu:has([data-bell-unread]:checked):not(:has(.top-bell-item.is-new)):has(.top-bell-item) .top-bell-list { display: none; }
.top-bell-menu:has([data-bell-unread]:checked):not(:has(.top-bell-item.is-new)):has(.top-bell-item) .top-bell-empty-unread { display: block; }
.top-bell-list { max-height: 360px; overflow: auto; padding: 6px; }
.top-bell-item {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px;
  color: inherit; text-decoration: none;
}
button.top-bell-item {
  width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer;
}
.top-bell-item:hover,
.top-bell-item:focus-visible { background: var(--bg-alt); }
.top-bell-item:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.top-bell-item.is-new { background: color-mix(in srgb, var(--brand) 7%, #fff); }
.top-bell-item.is-new:hover { background: color-mix(in srgb, var(--brand) 12%, #fff); }
.top-bell-title {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.top-bell-title > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-bell-item.is-new .top-bell-title { font-weight: 600; }
.top-bell-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.top-bell-body,
.top-bell-time {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 400; color: var(--muted);
}
.top-bell-empty { margin: 0; padding: 22px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.top-bell-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.top-bell-read { flex: 1 0 100%; margin: 0; }
.top-bell-read button {
  width: 100%; min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 8px; background: color-mix(in srgb, var(--brand) 8%, #fff);
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.top-bell-read button:hover { background: color-mix(in srgb, var(--brand) 14%, #fff); }
.top-bell-read button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.top-bell-read button:disabled { opacity: .65; cursor: default; }
.top-bell-foot a {
  flex: 1; min-height: 34px; display: grid; place-items: center;
  border-radius: 8px; color: var(--body); font-size: 13px; font-weight: 500; text-decoration: none;
}
.top-bell-foot a:hover { background: var(--bg-alt); color: var(--ink); }
.top-bell-foot a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
#preferences { scroll-margin-top: 72px; }
.top-user { position: relative; }
.top-user .avatar {
  --badge: var(--brand);
  background: color-mix(in srgb, var(--badge) 16%, #fff);
  color: color-mix(in srgb, var(--badge) 72%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge) 34%, transparent);
}
.top-user-toggle {
  position: relative;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.top-user-toggle .avatar { width: 30px; height: 30px; font-size: 11px; }
.avatar-role {
  position: absolute; top: -4px; right: -5px; z-index: 1;
  width: 16px; height: 16px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 0;
  color: var(--ok);
  pointer-events: none;
}
.avatar-role .bi {
  position: relative; z-index: 1;
  font-size: 16px; line-height: 1;
}
.avatar-role .bi::after {
  content: "";
  position: absolute; z-index: -1;
  left: 50%; top: 56%;
  width: 8px; height: 6px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 1px;
}
.top-user-toggle:focus-visible,
.top-user.open .top-user-toggle { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.top-user-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 8;
  width: min(288px, calc(100vw - 24px)); padding: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  animation: top-user-in .16s ease;
}
.top-user-menu[hidden] { display: none !important; }
@keyframes top-user-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.top-user-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, var(--card)), var(--card));
  border-bottom: 1px solid var(--line);
}
.top-user-head .avatar { width: 44px; height: 44px; font-size: 15px; }
.top-user-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.top-user-name {
  margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.015em; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.top-user-role { font-size: 12px; font-weight: 600; color: var(--brand); }
.top-user-mail {
  font-size: 12px; font-weight: 500; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.top-user-list,
.top-user-foot { display: flex; flex-direction: column; gap: 2px; padding: 6px; }
.top-user-foot { margin: 0; border-top: 1px solid var(--line); }
.top-user-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 8px;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
}
.top-user-item:hover { background: var(--bg-alt); }
.top-user-item:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.top-user-ico {
  width: 28px; height: 28px; border-radius: var(--radius-sm); display: grid; place-items: center; flex: none;
  background: var(--bg-alt); color: var(--body); font-size: 14px;
}
.top-user-item:hover .top-user-ico { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); }
.top-user-item-label { min-width: 0; flex: 1; }
.top-user-item-hint { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.top-user-item.is-out { color: var(--danger); }
.top-user-item.is-out .top-user-ico { background: var(--danger-soft); color: var(--danger); }
.top-user-item.is-out:hover { background: var(--danger-soft); }
.top-user-item.is-out:hover .top-user-ico { background: color-mix(in srgb, var(--danger) 14%, #fff); color: var(--danger); }
.top-user-lang-toggle .bi-chevron-down { flex: none; font-size: 12px; color: var(--muted); transition: transform .15s ease; }
.top-user-lang.is-open .top-user-lang-toggle { background: var(--bg-alt); }
.top-user-lang.is-open .top-user-lang-toggle .bi-chevron-down { transform: rotate(180deg); }
.top-user-lang-list {
  display: flex; flex-direction: column; gap: 2px;
  margin: 0 4px 2px 46px; padding: 2px; border-radius: var(--radius-sm); background: var(--bg);
}
.top-user-lang-list[hidden] { display: none !important; }
.top-user-lang-list .top-user-item { min-height: 34px; padding: 0 10px; }
.content { min-width: 0; padding: 8px 28px 48px; background: #fff; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: none; padding: 18px 18px 16px;
}
.card:hover { transform: translateY(-1px); }
a.stat, .stat-static {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px; color: inherit; text-decoration: none; min-height: 96px;
}
a.stat:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center;
  flex: none; background: transparent; border: 0; font-size: 22px;
}
.stat-copy { min-width: 0; display: flex; flex-direction: column; }
.stat .label { color: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.stat .value { font-size: 30px; font-weight: 700; margin-top: 6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .hint { color: var(--body); font-size: 13px; margin-top: 4px; }
.stat-todo { background: var(--warn-soft); }
.stat-todo .stat-icon, .stat-todo .value { color: var(--warn); }
.stat-progress { background: var(--brand-soft); }
.stat-progress .stat-icon, .stat-progress .value { color: var(--brand); }
.stat-done { background: var(--ok-soft); }
.stat-done .stat-icon, .stat-done .value { color: var(--ok); }
.stat-live { background: #fff; }
.stat-live .stat-icon, .stat-live .value { color: var(--ink); }
.stat-reply { background: var(--info-soft); }
.stat-reply .stat-icon, .stat-reply .value { color: var(--info); }
.attach-card { margin: 0 0 16px; overflow-x: auto; }
.attach-card:hover { transform: none; }
.relate-card { margin: 0 0 16px; overflow: visible; }
.relate-card:hover { transform: none; }
.relate-card:focus-within { position: relative; z-index: 20; }
.relate-form { margin-top: 10px; }
.relate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.relate-type { flex: 0 1 200px; min-width: 140px; margin: 0; }
.relate-type select {
  width: 100%; height: var(--control-height); border: var(--control-border); border-radius: var(--control-radius);
  padding: 0 8px; background: var(--control-bg); color: var(--ink); font-size: var(--control-font);
}
.relate-type select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.relate-pick { flex: 1 1 220px; min-width: 180px; }
.relate-pick.is-open { z-index: 5; }
.relate-pick input[type="text"] { height: var(--control-height); padding: 0 var(--control-pad-x); border-radius: var(--control-radius); font-size: var(--control-font); }
.relate-pick .assign-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relate-list { display: flex; flex-direction: column; gap: 12px; }
.relate-label { margin: 0 0 4px; font-size: 12px; font-weight: 650; color: var(--body); }
.relate-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.relate-item .relate-label { flex: none; margin: 0; }
.relate-item a { font-size: 13px; font-weight: 400; white-space: nowrap; }
.relate-item .relate-subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body); font-size: 13px; }
.relate-item .badge { flex: none; }
.relate-item form { margin: 0 0 0 auto; flex: none; }
.relate-parent { margin-bottom: 10px; }
.attach-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.attach-head h2 { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.attach-count { color: var(--muted); font-weight: 650; }
.attach-form { margin: 0; }
.attach-pick { display: flex; align-items: center; gap: 8px; position: relative; }
.attach-pick label.btn { position: relative; cursor: pointer; }
.attach-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.attach-name { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.attach-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.attach-title { min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.attach-meta { display: flex; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12px; line-height: 1.4; }
.attach-meta > * + *::before { content: "·"; margin: 0 6px; }
.attach-file { color: var(--muted); font-size: 22px; flex: none; margin-top: 1px; }
.attach-file.is-pdf { color: #b42318; }
.attach-file.is-image { color: #7c3aed; }
.attach-file.is-word { color: #1d4ed8; }
.attach-file.is-sheet { color: #15803d; }
.attach-file.is-slides { color: #c2410c; }
.attach-file.is-zip { color: #b45309; }
.attach-file.is-text { color: #475569; }
.attach-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.attach-actions form { margin: 0; }
.link-panel { max-width: 760px; margin-top: 16px; padding: 18px 18px 16px; }
.link-panel:hover { transform: none; }
.link-panel__head { margin-bottom: 4px; }
.link-panel__head h2 {
  margin: 0 0 6px; font-size: 16px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.link-panel__head h2 .bi { color: var(--brand); font-size: 18px; }
.link-panel__head .hint { margin: 0 0 4px; max-width: 62ch; }
.link-panel__empty { padding: 28px 12px; }
.link-panel__table { margin-top: 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: none; overflow: hidden; }
.link-panel__table .data { margin: 0; }
.link-panel__foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.link-panel__foot-hint { margin: 12px 0 0; }
.link-panel__label { margin: 0 0 8px; font-size: 13px; font-weight: 650; color: var(--ink); }
.link-panel--compact { padding: 12px 16px; margin-top: 12px; }
.link-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.link-panel__toolbar-body { min-width: 0; flex: 1 1 12rem; }
.link-panel__toolbar-body h2 { margin: 0; font-size: 13px; font-weight: 650; color: var(--ink); }
.link-panel__toolbar-body .hint { margin: 4px 0 0; font-size: 12px; line-height: 1.4; max-width: 48ch; }
.contract-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.contract-detail-meta .badge { font-size: 11px; }
.contract-module-rows { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 12px; }
.sla-hours,
.sla-holidays { display: flex; flex-direction: column; gap: 8px; }
.fields-inline.sla-hour-row { grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.fields-inline.sla-holiday-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: end; }
.sla-holiday-upload {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.sla-holiday-upload label.btn { position: relative; cursor: pointer; }
.sla-goal-form h3 { margin: 0 0 12px; font-size: 15px; }
.sla-goal-table { margin-top: 8px; }
.sla-goal-wrap { overflow-x: auto; max-width: 100%; }
.form-sheet .sla-goal-table { width: 100%; table-layout: auto; }
.form-sheet .field .sla-goal-table th,
.form-sheet .field .sla-goal-table td { white-space: nowrap; height: auto; }
.sla-matrix-table { width: 100%; }
.sla-matrix-table input[type="number"] {
  width: 6.5rem;
  max-width: 100%;
  padding: 6px 8px;
}
.fields-inline.contract-module-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) auto;
  align-items: end;
  gap: 10px;
}
.fields-inline.contract-module-row > .btn-icon { height: var(--control-height); width: var(--control-height); flex: none; }
.fields-inline.fit-link-add { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.fields-inline.fit-link-add > .btn { height: var(--control-height); align-self: end; }
.section-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 22px 0 12px; }
.section-title-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.section-title h2 { margin: 0; font-size: 16px; }
.bulk-invite-dialog { width: min(520px, calc(100vw - 24px)); }
.bulk-invite-dialog textarea {
  min-height: 220px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.45;
  padding: 12px 14px; resize: vertical;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.grid-pager {
  display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap;
  gap: 8px; margin: 0 0 10px;
}
.grid-pager-size {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--body);
}
.grid-pager-size select {
  height: var(--control-height); border: var(--control-border); border-radius: var(--control-radius);
  padding: 0 8px; background: var(--control-bg); color: var(--ink); font-size: var(--control-font);
}
.grid-pages { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.grid-page {
  height: var(--control-height); min-width: var(--control-height); padding: 0 10px; border: var(--control-border);
  border-radius: var(--control-radius); background: var(--control-bg); color: var(--ink); font-size: var(--control-font); font-weight: 650; cursor: pointer;
}
a.grid-page, span.grid-page {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none;
}
.grid-page.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
span.grid-page.is-current { cursor: default; }
.grid-page:disabled { opacity: .4; cursor: default; }
.grid-page-gap { color: var(--muted); padding: 0 2px; user-select: none; }
.grid-pager[hidden] { display: none !important; }
.grid-menu { position: relative; flex: none; }
.grid-menu-heading { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; min-width: 0; }
.grid-menu-heading > .grid-menu { margin-left: auto; }
.grid-menu-heading:has(> .grid-group-panel) > .grid-menu { margin-left: 0; }
.grid-menu-bar {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  min-height: 36px; margin: 0 0 6px;
}
.grid-menu-btn .bi { font-size: 16px; pointer-events: none; }
.grid-menu-pop {
  position: fixed; z-index: 80; min-width: 200px; max-width: min(280px, calc(100vw - 16px));
  padding: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
}
.grid-menu-pop[hidden], .grid-menu-pane[hidden], .grid-menu-item[hidden] { display: none !important; }
.grid-menu-caption {
  margin: 4px 8px 6px; color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.grid-menu-fields { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow: auto; }
.grid-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 6px 10px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 600; text-align: left; cursor: pointer;
}
.grid-menu-item i { width: 16px; flex: none; text-align: center; color: var(--muted); font-size: 14px; }
.grid-menu-item span { min-width: 0; overflow-wrap: anywhere; }
.grid-menu-item:hover, .grid-menu-item:focus-visible { background: var(--bg-alt); outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.grid-menu-item.is-on { color: var(--brand); }
.grid-menu-item.is-on i { color: var(--brand); }
.grid-menu-empty { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 13px; }
.grid-group-panel {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; min-height: 32px; margin: 0 0 0 auto; padding: 0 10px;
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600;
  flex: 1 1 12rem; max-width: 26rem;
}
.list-panel-head > .grid-group-panel,
.grid-menu-heading > .grid-group-panel,
.grid-menu-bar > .grid-group-panel,
.section-title-actions > .grid-group-panel { margin: 0 0 0 auto; }
.section-title-actions:has(.grid-group-panel) { flex-wrap: nowrap; min-width: 0; flex: 1 1 auto; }
.grid-group-panel.is-over {
  background: var(--brand-soft); border-color: var(--brand); color: var(--brand);
}
.grid-group-hint {
  margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.grid-group-hint[hidden], .grid-group-chip[hidden] { display: none !important; }
.grid-group-chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 26px; max-width: 100%; padding: 0 4px 0 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 650;
}
.grid-group-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-group-chip-clear {
  display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.grid-group-chip-clear .bi { font-size: 11px; pointer-events: none; }
.grid-group-chip-clear:hover, .grid-group-chip-clear:focus-visible {
  color: var(--brand); background: var(--bg-alt); outline: none; box-shadow: 0 0 0 4px var(--brand-ring);
}
.list-panel:has(table.data[hidden]) .grid-group-panel { display: none !important; }
table.data tr.grid-group { cursor: pointer; }
table.data tr.grid-group > td {
  background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--line); white-space: normal; overflow: visible;
}
table.data tr.grid-group:hover > td { background: var(--bg-alt); }
.grid-group-toggle {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px;
  border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; vertical-align: middle;
}
.grid-group-toggle:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.grid-group-label, .grid-group-count { vertical-align: middle; }
.grid-group-count { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.card.list-panel { padding: 0; overflow: hidden; min-width: 0; max-width: 100%; }
.card.list-panel:hover { transform: none; }
.list-panel-head {
  position: relative;
  display: flex; align-items: center; flex-wrap: nowrap; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.list-panel-head:has(> .grid-group-panel) { justify-content: flex-start; }
.list-panel-head:has(> .grid-group-panel) > .section-title-actions { margin-left: 0; flex: none; }
.list-panel-head h2 {
  margin: 0; font-size: 16px; font-weight: 700; position: relative; z-index: 1;
  flex: 0 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-search {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: min(360px, calc(100% - 520px)); margin: 0;
}
.list-search .bi {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.list-search input {
  width: 100%; height: var(--control-height); border: var(--control-border); border-radius: var(--control-radius);
  background: var(--control-bg); color: var(--ink); padding: 0 12px 0 36px; font-size: var(--control-font); outline: none;
}
.list-search input::placeholder { color: var(--muted); }
.list-search input:focus { border-color: var(--brand-2); background: var(--control-bg-focus); box-shadow: 0 0 0 4px var(--brand-ring); }
@media (max-width: 720px) {
  .list-panel-head { flex-wrap: wrap; }
  .list-panel-head h2 { order: 1; }
  .list-panel-head > .grid-group-panel { order: 1; }
  .list-panel-head .section-title-actions { order: 2; }
  .list-search {
    order: 3; position: static; transform: none; width: 100%; flex: 1 1 100%;
  }
}
.list-panel-table { overflow-x: auto; min-width: 0; max-width: 100%; }
.list-panel > .empty { margin: 0; padding: 28px 16px; }
.list-grid-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 14px; border-top: 1px solid var(--line); background: #fff;
}
.list-grid-count { color: var(--muted); font-size: 12px; font-weight: 650; }
.list-grid-foot .grid-pager { margin: 0; justify-content: flex-end; }
.list-grid-foot .grid-page.is-current { background: var(--bg-alt); border-color: var(--line); color: var(--ink); }
table.data.list-grid thead th,
.tickets-page .tickets-data-grid thead th,
.pano-widget .pano-ticket-grid thead th { overflow: hidden; }
table.data.list-grid thead th { padding: 0 10px; height: 36px; vertical-align: middle; }
table.data thead th:has(.th-wrap) { padding: 0; }
table.data .th-wrap {
  display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%;
  min-height: 36px; padding: 0 28px 0 10px; overflow: hidden;
}
table.data .th-label {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
table.data.list-grid .th-wrap .sort-mark { margin-left: 0; flex: none; }
.th-filter {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; margin-left: auto;
  border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer;
}
.th-filter .bi { font-size: 12px; pointer-events: none; }
.th-filter:hover, .th-filter.is-on { color: var(--brand); background: var(--bg-alt); }
.th-filter-pop {
  position: fixed; z-index: 80; display: flex; flex-direction: column; gap: 8px;
  padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
}
.th-filter-pop[hidden] { display: none !important; }
.th-filter-pop.is-measuring .th-filter-list { overflow: visible; }
.th-filter-pop.is-measuring .th-filter-choice > span,
.th-filter-pop.is-measuring .th-filter-sub {
  flex: none; width: max-content; max-width: none; min-width: max-content; overflow: visible;
}
.th-filter-search {
  width: 100%; height: var(--control-height); border: var(--control-border); border-radius: var(--control-radius);
  padding: 0 10px; background: var(--control-bg); color: var(--ink); font-size: var(--control-font);
}
.th-filter-search:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.th-filter-list { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; }
.th-filter-choice {
  display: flex; align-items: flex-start; gap: 8px; min-height: 32px; height: auto; margin: 0; padding: 6px;
  border-radius: 6px; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.35;
  white-space: normal; cursor: pointer;
}
.th-filter-choice:hover { background: var(--bg-alt); }
.th-filter-choice input { margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.th-filter-choice > span {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: baseline; gap: 8px;
  flex: 1; min-width: 0; white-space: nowrap; line-height: 1.35;
}
.th-filter-choice > span > span { min-width: 0; }
.th-filter-choice .th-filter-code { flex: none; white-space: nowrap; }
.th-filter-choice .th-filter-sub {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--body); font-weight: 450;
}
.th-filter-clear {
  align-self: flex-start; border: 0; background: transparent; padding: 2px 0;
  color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer;
}
.th-filter-clear:hover { color: var(--brand); }
.th-filter-empty { margin: 0; padding: 8px 6px; color: var(--muted); font-size: 13px; }
table.data.list-grid tbody tr:not(:has(.empty)) > td { padding: 4px 12px; height: 40px; }
table.data.list-grid td a:not(.btn) { color: var(--ink); font-weight: 600; }
table.data.list-grid.is-col-sized td > a:not(.btn):not(.ticket-line):not(.project-name-link),
.tickets-page .tickets-data-grid.is-col-sized td > a:not(.btn):not(.ticket-line):not(.project-name-link) {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom;
}
table.data.list-grid td a:not(.btn):hover { color: var(--brand); }
table.data.list-grid .badge {
  height: 22px; min-height: 0; max-width: 100%; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-off { background: var(--bg-alt); color: var(--muted); }
.badge-open { background: var(--info-soft); color: var(--info); }
.staffing-status-cell { overflow: visible; }
.staffing-status-pick { position: relative; display: inline-flex; }
.staffing-status {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 10px;
  border: 1px solid transparent; border-radius: 999px; background: var(--bg-alt);
  color: var(--ink); font: inherit; font-size: 12px; font-weight: 650; line-height: 1; cursor: default;
}
button.staffing-status { cursor: pointer; }
button.staffing-status:hover { filter: brightness(.98); }
button.staffing-status:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-status .bi-chevron-down { font-size: 10px; opacity: .7; }
.staffing-status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none;
}
.staffing-status.is-open { background: var(--info-soft); color: var(--info); }
.staffing-status.is-completed { background: var(--ok-soft); color: var(--ok); }
.staffing-status.is-cancelled { background: var(--danger-soft); color: var(--danger); }
.staffing-status.is-deleted { background: var(--bg-alt); color: var(--muted); }
.staffing-status-menu {
  position: fixed; z-index: 50; min-width: 176px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.staffing-status-menu[hidden] { display: none !important; }
.staffing-status-option {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; margin: 0; padding: 0 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 550; text-align: left; cursor: pointer;
}
.staffing-status-option:hover { background: var(--bg-alt); }
.staffing-status-option.is-on { background: var(--bg); font-weight: 700; }
.staffing-status-option.is-open .staffing-status-dot { color: var(--info); }
.staffing-status-option.is-completed .staffing-status-dot { color: var(--ok); }
.staffing-status-option.is-cancelled .staffing-status-dot { color: var(--danger); }
.staffing-status-option.is-deleted .staffing-status-dot { color: var(--muted); }
tr.is-staffing-row { cursor: pointer; }
table.data tr.is-staffing-row:hover > td { background: var(--bg-alt); }
.badge-level { gap: 5px; }
.badge-level .bi { font-size: 13px; line-height: 1; }
.badge-level-junior { background: var(--info-soft); color: var(--info); }
.badge-level-mid { background: var(--brand-soft); color: var(--brand); }
.badge-level-senior { background: var(--ok-soft); color: var(--ok); }
.badge-level-master { background: var(--warn-soft); color: var(--warn); }
table.data.list-grid .row-actions { gap: 2px; }
table.data.list-grid .row-actions .btn-icon {
  width: 28px; height: 28px; min-width: 28px;
}
table.data .row-actions .btn-ghost,
table.data .row-actions .btn-primary,
table.data .row-actions .btn-danger {
  border: 0; background: transparent; box-shadow: none; width: auto; filter: none;
}
table.data .row-actions .btn-ghost,
table.data .row-actions .btn-primary { color: var(--ink); }
table.data .row-actions .btn-danger { color: var(--danger); }
table.data .row-actions .btn-ghost:hover,
table.data .row-actions .btn-primary:hover { background: var(--bg-alt); color: var(--ink); filter: none; }
table.data .row-actions .btn-danger:hover { background: var(--danger-soft); color: var(--danger); filter: none; }
.companies-list .list-panel-head .btn,
.companies-list .list-grid-foot .grid-page,
.companies-list .list-grid-foot .grid-pager-size select {
  height: var(--control-height-sm); min-width: var(--control-height-sm); font-size: 13px;
}
.companies-list table.data.list-grid .row-actions .btn-icon {
  width: 28px; height: 28px; min-width: 28px;
}
table.data { width: 100%; border-collapse: collapse; }
table.data.is-col-sized { table-layout: fixed; }
table.data.is-col-sized:not(.activity-sheet) th,
table.data.is-col-sized:not(.activity-sheet) td { box-sizing: border-box; }
table.data.is-col-sized th,
table.data.is-col-sized td { overflow: hidden; text-overflow: ellipsis; }
table.data.list-grid.is-col-sized tbody tr:not(:has(.empty)):not(.grid-group):not([data-grid-skip]) > td:not(.cell-actions):not(:has(input, select, textarea, .tag-picker, .pick)),
.tickets-page .tickets-data-grid.is-col-sized tbody td:not(:has(input, select, textarea, .tag-picker, .pick)) {
  white-space: nowrap;
}
table.data.is-col-sized td:has(input, select, textarea, .tag-picker, .pick),
table.data.is-col-sized tr.grid-group > td,
table.data.is-col-sized tr.col-filters td { overflow: visible; text-overflow: clip; white-space: normal; }
table.data.list-grid:not(.is-col-sized),
.tickets-page .tickets-data-grid:not(.is-col-sized),
.pano-widget .pano-ticket-grid:not(.is-col-sized) {
  width: 100%;
  min-width: max-content;
  table-layout: auto;
}
.grid-hscroll { overflow-x: auto; min-width: 0; max-width: 100%; }
.col-resize-guide {
  position: fixed; z-index: 40; width: 2px; margin-left: -1px;
  background: var(--brand); pointer-events: none; border-radius: 1px;
}
.col-resize-guide[hidden] { display: none !important; }
body.is-col-edge, body.is-col-edge * { cursor: col-resize !important; }
body.is-col-edge { user-select: none; }
table.data thead th { position: relative; }
table.data thead th.is-drop-target { box-shadow: inset 3px 0 0 var(--brand); }
table.data thead th.is-dragging { opacity: .55; }
.col-head-btn {
  position: absolute; top: 50%; right: 2px; z-index: 2; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px;
  background: var(--card); color: var(--muted); cursor: pointer;
  opacity: 0; pointer-events: none;
}
.col-head-btn .bi { font-size: 14px; pointer-events: none; }
table.data thead th.is-col-tools .col-head-btn,
table.data thead th:focus-within .col-head-btn { opacity: 1; pointer-events: auto; }
.col-head-btn:hover, .col-head-btn[aria-expanded="true"] { color: var(--brand); background: var(--bg-alt); }
table.data tfoot td {
  padding: 8px 12px; border-top: 1px solid var(--line); background: var(--bg);
  font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
table.data th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--ink); }
table.data th .sort-mark { margin-left: 6px; color: var(--brand); font-size: 10px; }
table.data tr.col-filters td {
  padding: 6px 12px 8px; background: #fff; border-bottom: 1px solid var(--line); vertical-align: middle;
}
table.data tr.col-filters:hover td { background: #fff; }
.col-filter { position: relative; width: 100%; min-width: 0; }
.col-filter-input {
  width: 100%; min-width: 0; height: var(--control-height); border: var(--control-border); border-radius: var(--control-radius);
  padding: 0 var(--control-height) 0 8px; background: var(--control-bg); color: var(--ink); font-size: var(--control-font);
}
.col-filter-input::placeholder { color: var(--muted); }
.col-filter-input.is-on { border-color: var(--brand); background: var(--brand-soft); }
.col-filter-input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.col-filter-caret {
  position: absolute; top: 0; right: 0; z-index: 1; display: grid; place-items: center;
  width: var(--control-height); height: var(--control-height); border: 0; border-radius: var(--control-radius);
  background: transparent; color: var(--muted); cursor: pointer;
}
.col-filter-caret i { font-size: 12px; pointer-events: none; }
.col-filter.is-open .col-filter-caret .bi-chevron-down { transform: rotate(180deg); }
.col-filter-caret:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.col-filter-panel {
  position: fixed; z-index: 40; max-height: 280px; overflow: auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 4px;
}
.col-filter-panel[hidden] { display: none !important; }
.col-filter-option {
  display: block; width: 100%; min-height: 36px; margin: 0; padding: 8px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer;
  overflow-wrap: anywhere;
}
.col-filter-option:hover { background: var(--bg-alt); }
.col-filter-option.is-on { background: var(--brand-soft); }
.col-filter-option:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.col-filter-empty { margin: 0; padding: 8px; color: var(--body); font-size: 13px; }
.criteria { margin-bottom: 14px; }
.criteria h3 { margin: 0 0 12px; font-size: 13px; }
.criteria-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.criteria .field { margin-bottom: 0; }
.criteria-grid > .btn { height: var(--control-height); width: auto; justify-self: start; }
[data-sap-fields][hidden] { display: none !important; }
form[data-portal-form] .card > .field,
form[data-portal-form] .card > .fields-inline,
form[data-portal-form] .card > [data-sap-fields] { margin-bottom: 18px; }
form[data-portal-form] .fields-inline { gap: 20px; align-items: start; }
form[data-portal-form] [data-sap-fields] .fields-inline,
form[data-portal-form] .card > .field:last-child { margin-bottom: 0; }
.form-grid, .fields-inline { display: grid; gap: 8px; align-items: end; }
.fields-inline.fit-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields-inline.fit-quota { grid-template-columns: minmax(0, 1fr) auto; }
.module-quotas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.module-quotas:empty { display: none; }
.fields-inline.fit-quota > .field { min-width: 0; }
.fields-inline.fit-quota > .btn-icon { height: var(--control-height); width: var(--control-height); align-self: end; }
.form-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.form-grid > .field, .fields-inline > .field { margin-bottom: 0; }
.form-grid > .btn, .fields-inline > .btn { height: var(--control-height); }
.form-grid > .btn { width: 100%; }
.fields-inline > .field:has(> input[type="checkbox"]),
.form-grid > .field:has(> input[type="checkbox"]) {
  display: grid; grid-template-rows: auto var(--control-height); align-items: center; justify-items: start; gap: 6px;
}
.form-sheet .fields-inline > .field:has(> input[type="checkbox"]),
.form-sheet .form-grid > .field:has(> input[type="checkbox"]) {
  grid-template-rows: auto var(--control-height); gap: 5px;
}
.fields-inline > .field > input[type="checkbox"],
.form-grid > .field > input[type="checkbox"] { width: 18px; height: 18px; margin: 0; align-self: center; }
table.data tr.edit-row > td { vertical-align: top; }
table.data tr.edit-row .checkline { display: flex; align-items: center; height: 36px; gap: 6px; font-size: 13px; }
.outlook { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.outlook-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.outlook-nav h2, .outlook-side h3 { margin: 0; font-size: 18px; }
.outlook-nav h2 { min-width: 0; }
.outlook-side h3 { font-size: 15px; margin-bottom: 4px; }
.hint { color: var(--body); font-size: 13px; margin: 0 0 12px; }
.cv-head, .cv-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cv-head { margin-bottom: 8px; }
.cv-head h3 { margin: 0; font-size: 15px; }
.cv-item {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px; margin-bottom: 12px; background: var(--bg);
}
.cv-item.is-editing { padding-bottom: 4px; }
.cv-item:not(.is-editing) { position: relative; }
.cv-item:not(.is-editing):hover { border-color: var(--brand); }
.cv-item-top { margin-bottom: 8px; }
.cv-item-top strong { font-size: 13px; }
.cv-view { display: flex; align-items: flex-start; gap: 12px; }
.cv-view[hidden], .cv-edit[hidden] { display: none !important; }
button.cv-summary {
  flex: 1; min-width: 0; min-height: 36px; padding: 0; border: 0; background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-sm);
}
button.cv-summary:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.cv-summary strong { display: block; font-size: 15px; color: var(--ink); }
.cv-summary .cv-meta { display: block; margin-top: 4px; color: var(--body); font-size: 13px; }
.cv-summary p { margin: 8px 0 0; color: var(--body); font-size: 13px; white-space: pre-wrap; }
.cv-actions {
  position: absolute; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 8px;
  opacity: 0; pointer-events: none; background: var(--bg); border-radius: var(--radius-sm);
}
.cv-actions .btn { white-space: nowrap; }
.cv-item:hover .cv-actions,
.cv-item:focus-within .cv-actions { opacity: 1; pointer-events: auto; }
.cv-item:hover .cv-summary,
.cv-item:focus-within .cv-summary { padding-right: 196px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 11px; }
.mini-grid span { color: var(--muted); font-weight: 650; padding: 4px 0; }
.mini-grid .mini-day { color: var(--ink); border-radius: 6px; padding: 4px 0; font-weight: 650; }
.mini-grid .mini-day.muted { color: var(--muted); font-weight: 500; }
.mini-grid .mini-day.today:not(.avail):not(.avail-partial) { background: var(--brand); color: #fff; }
.mini-grid .mini-day.avail { background: var(--ok); color: #fff; font-weight: 700; }
.mini-grid .mini-day.avail-partial { background: var(--warn); color: #fff; font-weight: 700; }
.mini-grid .mini-day.today.avail,
.mini-grid .mini-day.today.avail-partial { box-shadow: inset 0 0 0 2px var(--brand); }
.mini-grid .mini-day.in-view { box-shadow: inset 0 0 0 2px var(--ink); }
.view-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.view-switch .chip { min-height: 36px; height: auto; padding-top: 6px; padding-bottom: 6px; }
#user-form { max-width: 760px; }
#user-form .view-switch { margin: 0 0 16px; }
#user-form .view-switch .chip:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
#user-form .user-pane > .view-switch { margin-bottom: 0; }
#user-form .user-pane > * + * { margin-top: 16px; }
.user-subpane > * + * { margin-top: 16px; }
#user-form h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
#user-form .fields-inline { margin-bottom: 16px; }
#user-form .stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
#user-form .stack form,
#user-form .stack p { margin: 0; }
#user-form .member-org-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
#user-form .member-org-row p { min-width: 0; }
#user-form .member-org-row form { flex: none; }
.section-title h2 .badge { margin-left: 8px; }
.day-picks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.day-picks label { display: flex; gap: 8px; align-items: center; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }
.day-picks label.on { background: var(--brand-soft); border-color: #c5d9ea; color: var(--brand); }
.outlook-board:hover, .outlook-side .card:hover { transform: none; }
.month-head, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; }
.month-head.cols-5, .month-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.month-head.cols-1, .month-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.month-grid.is-readonly { user-select: text; touch-action: auto; }
.month-grid.is-readonly .day-cell { cursor: default; }
.calendar-page .month-grid.is-readonly .day-cell[data-calendar-day] { cursor: pointer; }
.calendar-page .month-grid.is-readonly .day-cell[data-calendar-day]:focus-visible {
  outline: none; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--brand-ring);
}
.calendar-page .month-grid.is-readonly .day-cell[data-calendar-day] .more {
  display: block; width: 100%; margin-top: 4px; padding: 0; border: 0; background: transparent;
  font: inherit; font-size: 11px; font-weight: 650; color: var(--ok); text-align: left;
  text-decoration: underline; cursor: pointer;
}
.calendar-page .month-grid.is-readonly .day-cell[data-calendar-day] .more:hover { color: var(--ink); }
.calendar-day-menu { max-width: min(360px, calc(100vw - 16px)); }
.appt-menu.org-members-menu {
  min-width: min(340px, calc(100vw - 16px));
  width: min(400px, calc(100vw - 16px));
  max-width: min(400px, calc(100vw - 16px));
  padding: 0;
  overflow: hidden;
}
.org-members-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 14px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-alt) 0%, var(--card) 100%);
}
.org-members-head-copy { min-width: 0; }
.org-members-kicker {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.org-members-title {
  display: block; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere;
}
.org-members-count { margin: 0; padding: 8px 14px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.org-members-close {
  flex: none; width: 32px; height: 32px; margin: -4px -4px 0 0; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.org-members-close:hover { background: var(--bg-alt); color: var(--ink); }
.org-members-close:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.org-members-list {
  list-style: none; margin: 0; padding: 6px 0 8px; max-height: min(360px, 52vh); overflow: auto;
}
.org-members-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 10px;
  align-items: center; padding: 10px 14px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line);
}
.org-members-list > li:first-child .org-members-row { border-top: 0; }
.org-members-row .avatar { width: 40px; height: 40px; font-size: 13px; grid-row: 1 / span 2; align-self: center; }
.org-members-row .assign-who { grid-column: 2; grid-row: 1; min-width: 0; }
.org-members-row .assign-who strong { display: block; font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-members-row .assign-who small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-members-tags { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.org-members-tags .badge { height: 22px; font-size: 11px; font-weight: 650; }
.org-members-chevron { grid-column: 3; grid-row: 1 / span 2; color: var(--muted); font-size: 14px; opacity: 0.35; transition: opacity 0.15s ease, transform 0.15s ease; }
.org-members-row:hover, .org-members-row:focus-visible { background: var(--bg-alt); outline: none; }
.org-members-row:hover .org-members-chevron, .org-members-row:focus-visible .org-members-chevron { opacity: 1; transform: translateX(2px); }
.org-members-body { padding: 8px 0 12px; }
.org-members-empty { margin: 0; padding: 16px 14px; font-size: 13px; color: var(--muted); text-align: center; }
.org-members-loading { margin: 0; padding: 24px 14px; font-size: 13px; color: var(--muted); text-align: center; }
.calendar-day-list { list-style: none; margin: 0; padding: 0; max-height: min(320px, 50vh); overflow: auto; }
.calendar-day-person { padding: 6px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.calendar-day-person + .calendar-day-person { margin-top: 2px; }
.calendar-day-person small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.month-grid.is-week .day-cell { min-height: 220px; }
.month-grid.is-week .day-num { font-size: 18px; }
.month-grid { user-select: none; touch-action: none; }
.month-head > span { font-size: 12px; font-weight: 700; color: var(--body); padding: 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.month-head .short { display: none; }
.day-cell { min-height: 108px; min-width: 0; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; background: var(--card); cursor: pointer; }
.day-cell.out { background: var(--bg); }
.day-cell.today { box-shadow: inset 0 0 0 2px var(--brand); }
.day-cell.has-rule { background: var(--ok-soft); }
.day-cell.has-rule.is-partial { background: var(--warn-soft); }
.day-cell.is-selected { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok); }
.day-num { font-weight: 700; color: var(--ink); }
.day-cell.out .day-num { color: var(--muted); }
.day-cell.has-rule .day-num,
.day-cell.is-selected .day-num { color: var(--ok); }
.day-cell.has-rule.is-partial .day-num { color: var(--warn); }
.appt { display: block; width: 100%; min-width: 0; margin-top: 4px; padding: 3px 6px; border-radius: 4px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 650; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt.is-partial { background: var(--warn); }
.appt-menu { position: fixed; z-index: 60; width: max-content; min-width: 200px; max-width: min(320px, calc(100vw - 16px)); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; }
.appt-menu[hidden] { display: none; }
.appt-menu-row { padding: 8px 4px; }
.appt-menu-row + .appt-menu-row { border-top: 1px solid var(--line); }
.appt-menu-row strong { display: block; font-size: 13px; margin-bottom: 8px; }
.appt-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 6px 10px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 600; text-align: left; cursor: pointer;
}
.appt-menu-item:hover, .appt-menu-item:focus-visible { background: var(--bg-alt); outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.appt-menu-item.is-partial { color: var(--warn); }
.appt-menu-item.is-full { color: var(--ok); }
.appt-menu-item.danger { color: var(--danger); }
.appt-menu-note { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--body); }
.series-dialog {
  width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; margin: auto;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  color: var(--ink); box-shadow: var(--shadow);
}
#rate-dialog { overflow: visible; }
.series-dialog::backdrop { background: var(--scrim); }
.series-dialog.wide { width: min(1040px, calc(100% - 24px)); }
.series-dialog.icon-picker-dialog { width: min(720px, calc(100vw - 24px)); }
.series-dialog .table-card { overflow-x: auto; }
#review-dialog table.data { min-width: 980px; }
.series-dialog h2 { margin: 0 0 8px; font-size: 18px; }
tr[data-grid-skip] > td { background: var(--bg); padding: 8px 12px 12px; }
.series-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.star-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.star-zero {
  flex: none; width: 30px; height: 30px; margin-right: 4px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--body); cursor: pointer; font-size: 13px; font-weight: 700;
}
.star-zero.is-on { color: var(--ink); border-color: var(--ink); }
.star-zero:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.star-btn {
  flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: var(--card); color: var(--star); cursor: pointer; font-size: 20px; line-height: 1;
}
.star-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.rate-given-title { margin: 16px 0 8px; font-size: 14px; }
.rate-given { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rate-given li { display: grid; gap: 4px; }
.rate-given-parts { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--body); }
.score-breakdown { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.score-breakdown li { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.score-breakdown li span { color: var(--body); }
.score-mark { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--star); font-weight: 650; font-size: 13px; white-space: nowrap; }
.score-mark .bi { font-size: 12px; }
.rate-grid td:last-child { min-width: 0; }
.series-dialog .btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.announce-form { max-width: 760px; margin-bottom: 16px; }
.announce-form .grid-2 { align-items: start; }
.announce-pick-all {
  display: flex; align-items: center; gap: 8px;
  min-height: var(--control-height-sm); margin: 0 0 8px;
  font-size: var(--control-font); font-weight: 650; cursor: pointer;
}
.announce-picks {
  display: grid; gap: 2px; max-height: 240px; overflow: auto;
  margin: 0; padding: 4px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--control-bg);
}
.announce-picks label {
  display: flex; align-items: center; gap: 8px;
  min-height: var(--control-height-sm); margin: 0; padding: 4px 8px;
  border-radius: var(--radius-sm); font-size: var(--control-font); font-weight: 500; cursor: pointer;
}
.announce-picks label:hover { background: var(--bg-alt); }
.announce-picks label:focus-within { box-shadow: 0 0 0 4px var(--brand-ring); }
.announce-count { margin-left: auto; color: var(--muted); white-space: nowrap; }
.announce-dialog { width: min(640px, calc(100vw - 24px)); }
.announce-body { margin: 0 0 16px; }
.announce-body ul, .announce-body ol { margin: 0 0 8px; padding-left: 1.3em; }
.announce-body blockquote { margin: 0 0 8px; padding-left: 12px; border-left: 3px solid var(--line); }
.announce-body pre { margin: 0 0 8px; padding: 8px 10px; overflow: auto; border-radius: var(--radius-sm); background: var(--bg-alt); }
.announce-body a { color: var(--brand-2); }
.announce-body h2, .announce-body h3 { margin: 0 0 8px; font-size: 16px; }
.confirm-dialog { width: min(420px, calc(100vw - 24px)); }
.confirm-dialog-form { display: grid; gap: 12px; margin: 0; }
.confirm-dialog .lead { margin: 0; color: var(--body); font-size: 14px; line-height: 1.5; }
.confirm-dialog-actions { margin-top: 4px; }
.staffing-dialog { width: min(560px, calc(100vw - 24px)); overflow: visible; }
.staffing-form { display: grid; gap: 16px; margin: 0; }
.staffing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.staffing-head h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.staffing-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.staffing-close {
  width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px;
  background: transparent; color: var(--body); cursor: pointer; display: grid; place-items: center;
}
.staffing-close:hover { background: var(--bg-alt); color: var(--ink); }
.staffing-close:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-progress { display: flex; gap: 6px; }
.staffing-progress span { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.staffing-progress span.is-on { background: var(--brand); }
.staffing-progress span.is-done { background: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.staffing-error { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 13px; }
.staffing-error[hidden] { display: none !important; }
.staffing-panel { display: grid; gap: 14px; }
.staffing-work[hidden] { display: none !important; }
table.data td.cell-actions.row-actions { flex-wrap: nowrap; width: 1%; }
.staffing-work { margin: 0; }
.staffing-work select {
  width: 100%; height: var(--control-height); padding: 0 10px; border: var(--control-border); border-radius: var(--control-radius);
  background: var(--control-bg); color: var(--ink); font: inherit; font-size: var(--control-font); font-weight: 400;
}
.staffing-work select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-panel[hidden] { display: none !important; }
.staffing-dialog .field { margin: 0; }
.staffing-field { display: grid; gap: 6px; }
.staffing-dialog .hint { margin: 0; font-size: 12px; font-weight: 400; color: var(--muted); }
.staffing-field > span { font-size: 12px; font-weight: 500; color: var(--muted); }
.staffing-box {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  min-height: 46px; padding: 6px; cursor: text;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
}
.staffing-box:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-tags { display: contents; }
.staffing-tags:empty { display: none; }
.staffing-tag {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 6px 0 10px;
  border-radius: 999px; background: var(--brand-soft); color: var(--ink); font-size: 13px; font-weight: 600;
}
.staffing-tag button {
  width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.staffing-tag button:hover { background: #fff; color: var(--ink); }
.staffing-tag button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-tag .bi { font-size: 10px; }
.staffing-box input {
  flex: 1 1 140px; min-width: 120px; height: 32px; margin: 0; padding: 0 8px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 14px;
}
.staffing-box input:focus { outline: none; box-shadow: none; }
.staffing-suggest {
  position: absolute; z-index: 4; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 220px; overflow: auto; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}
.staffing-suggest[hidden] { display: none !important; }
.staffing-suggest-item {
  display: block; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer;
}
.staffing-suggest-item:hover, .staffing-suggest-item:focus-visible { background: var(--brand-soft); outline: none; }
.staffing-suggest-empty { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 13px; }
.staffing-choices, .staffing-period, .staffing-branch { display: grid; gap: 8px; }
.staffing-nest {
  display: grid; gap: 8px;
  margin-left: 18px; padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--brand) 35%, var(--line));
}
.staffing-nest[hidden] { display: none !important; }
.staffing-choice {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.staffing-choice:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.staffing-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.staffing-choice input { accent-color: var(--brand); }
.staffing-days { display: flex; flex-wrap: wrap; gap: 8px; }
.staffing-day {
  min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--body); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
}
.staffing-day:hover { border-color: var(--ok); color: var(--ok); }
.staffing-day.is-on, .staffing-day.is-on:hover { background: var(--ok); border-color: var(--ok); color: #fff; }
.staffing-day:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-count {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); font-size: 13px; font-weight: 500; color: var(--body);
}
.staffing-count[hidden] { display: none !important; }
.staffing-count input {
  width: 64px; height: var(--control-height-sm); padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); font: inherit; font-size: 13px; text-align: center;
}
.staffing-count input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-summary { margin: 0; padding: 2px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); }
.staffing-summary div:first-child { border-top: 0; }
.staffing-summary dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.staffing-summary dd { font-size: 13px; font-weight: 500; }
.staffing-note { display: grid; gap: 6px; margin: 0; }
.staffing-note span { font-size: 12px; font-weight: 500; color: var(--muted); }
.staffing-note textarea {
  width: 100%; min-height: 72px; padding: 8px 10px; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 400;
}
.staffing-note textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-salary { display: grid; gap: 14px; }
.staffing-salary[hidden] { display: none !important; }
.staffing-salary select {
  width: 100%; height: var(--control-height); padding: 0 var(--control-pad-x); border: var(--control-border); border-radius: var(--control-radius);
  background: var(--control-bg); color: var(--ink); font: inherit; font-size: var(--control-font); font-weight: 400;
}
.staffing-salary select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-salary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.staffing-salary-row label { display: grid; gap: 4px; margin: 0; }
.staffing-salary-row label > span:first-child { color: var(--muted); font-size: 12px; font-weight: 400; }
.staffing-money {
  display: flex; align-items: center; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.staffing-money:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-money input {
  width: 100%; min-width: 0; padding: 8px 6px 8px 10px; border: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 400;
}
.staffing-money input:focus { outline: none; }
.staffing-unit {
  flex: none; margin: 4px 4px 4px 0; padding: 4px 8px; border: 0; border-radius: 6px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 12px; font-weight: 650;
  letter-spacing: .02em; cursor: pointer;
}
.staffing-unit:hover { background: var(--brand-soft); color: var(--brand); }
.staffing-unit:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.staffing-actions [hidden] { display: none !important; }
.staffing-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  margin: 4px -20px -20px; padding: 14px 20px 16px; border-top: 1px solid var(--line);
}
.staffing-actions [data-staffing-back] { margin-right: auto; }
.card-facts { margin: 0 0 16px; }
.card-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.card-facts dt { color: var(--body); font-size: 13px; font-weight: 600; }
.card-facts dd { margin: 0; font-weight: 650; text-align: right; }
.more { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
@media (max-width: 980px) { .outlook { grid-template-columns: 1fr; } .day-cell { min-height: 72px; } }
@media (max-width: 720px) {
  .month-head .full { display: none; }
  .month-head .short { display: inline; }
  .view-switch { margin-left: 0; width: 100%; }
  .view-switch .chip { flex: 1 1 auto; justify-content: center; text-align: center; }
  .series-dialog { padding: 16px; }
  .staffing-actions { margin-left: -16px; margin-right: -16px; margin-bottom: -16px; }
  .series-actions .btn-primary { width: 100%; }
}
table.data td { padding: 14px 12px; border-bottom: 1px solid var(--bg-alt); vertical-align: middle; font-size: 13px; }
table.data tr:hover td { background: #fff; }
table.data tbody tr.is-row-edit { cursor: pointer; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--bg-alt); color: var(--body); }
table.data .badge {
  height: auto; min-height: 28px; padding: 4px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600; line-height: 1.3; white-space: normal; max-width: 100%;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.month-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.month-step { width: 34px; padding: 0; justify-content: center; }
.month-step.is-disabled { opacity: .35; pointer-events: none; }
.month-pick { position: relative; }
.month-pick-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 650; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.month-pick-btn .bi-calendar3 { color: var(--brand); }
.month-pick-btn .bi-chevron-down { font-size: 11px; color: var(--muted); }
.month-pick-btn em {
  font-style: normal; font-weight: 650; font-size: 11px; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 2px 7px; margin-left: 6px;
}
.month-pick.open .month-pick-btn, .month-pick-btn:hover { border-color: #c5d9ea; box-shadow: 0 0 0 4px var(--brand-ring); }
.month-pick-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 248px; max-height: 360px;
  overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12); padding: 8px;
}
.month-pick-menu[hidden] { display: none !important; }
.month-pick-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.month-pick-quick a {
  display: flex; align-items: center; justify-content: center; height: 34px; border-radius: var(--radius-md);
  border: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--ink); text-decoration: none;
}
.month-pick-quick a:hover { background: var(--bg-alt); }
.month-pick-quick a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.month-pick-year { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 10px 8px 4px; }
.month-opt {
  display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 10px;
  border-radius: var(--radius-sm); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none;
}
.month-opt:hover { background: var(--bg-alt); }
.month-opt.on { background: var(--brand-soft); color: var(--brand); }
.month-opt span { font-size: 11px; font-weight: 650; color: var(--brand); }
@media (max-width: 720px) {
  .month-nav { margin-left: 0; width: 100%; }
  .month-pick { flex: 1; }
  .month-pick-btn { width: 100%; justify-content: space-between; }
  .month-pick-menu { left: 0; right: 0; width: auto; }
}
.chip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters.period-bar { margin-bottom: 8px; }
.calendar-page table.data tbody tr:not(:has(.empty)) > td { padding-top: 4px; padding-bottom: 4px; height: 40px; }
.calendar-page-foot--pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.calendar-page-foot--pager .calendar-grid-pager-host {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; flex: 1 1 280px;
}
.calendar-page-foot--pager .calendar-grid-pager-host:empty { display: none; }
.calendar-page .calendar-grid-pager.grid-pager { margin: 0; gap: 6px; justify-content: flex-end; }
@media (max-width: 640px) {
  .calendar-page-foot--pager { flex-direction: column; align-items: stretch; }
  .calendar-page-foot--pager .calendar-grid-pager-host { flex: 1 1 auto; }
  .calendar-page .calendar-grid-pager.grid-pager { width: 100%; justify-content: space-between; }
}
.period-month { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.period-bar .chip { height: auto; min-height: 36px; max-width: 100%; white-space: normal; }
.period-bar > span.chip { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.period-bar .chip:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.period-gap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 10px; padding: 10px 14px; border-radius: var(--radius-md);
  background: var(--danger-soft); color: var(--danger); font-size: 13px; line-height: 1.4;
}
.period-gap span { display: inline-flex; align-items: center; gap: 8px; }
.period-gap .bi { font-size: 15px; }
.period-gap a { color: var(--danger); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.period-summary { margin: 0 0 16px; color: var(--body); font-size: 13px; }
.period-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 14px; color: var(--body); font-size: 13px; }
.tag-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-picks:empty { display: none; }
.tag-picks input { display: none; }
.chip.pick {
  height: auto; min-height: 36px; max-width: 100%; padding: 0 0 0 12px; gap: 2px;
  background: var(--ok-soft); color: var(--ok); border-color: var(--ok); cursor: default; white-space: normal;
}
.chip.pick button {
  flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--ok); cursor: pointer;
}
.chip.pick button:hover { background: var(--bg-alt); }
.chip.pick button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.tag-picker { position: relative; display: flex; flex-direction: column; gap: 8px; }
.tag-picker input[type="text"] { width: 100%; }
.tag-picker .assign-menu { top: calc(100% + 4px); }
.tag-picker--row {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
.tag-picker--row .tag-picks { margin: 0; flex-wrap: nowrap; }
.tag-picker--row .tag-picks:empty { display: none; }
.tag-picker--row input[type="text"] {
  width: auto;
  min-width: 160px;
  flex: 1 1 160px;
  height: var(--control-height);
}
.tag-picker--areas {
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}
.tag-picker--areas .tag-picks,
.link-panel--areas .area-tags {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.tag-picker--areas .chip.pick,
.link-panel--areas .area-tag {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: none;
  height: 26px;
  min-height: 26px;
  padding: 0 4px 0 10px;
  gap: 2px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
}
.link-panel--areas .area-tag { padding: 0 10px; }
.tag-picker--areas .chip.pick button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}
.tag-picker--areas .chip.pick button:hover,
.tag-picker--areas .chip.pick button:focus-visible {
  color: var(--danger);
  background: var(--danger-soft);
  box-shadow: none;
}
.area-add {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: text;
  transition: width .16s ease, flex-basis .16s ease, border-color .16s ease, background .16s ease;
}
.area-add .bi {
  position: absolute;
  left: 6px;
  font-size: 12px;
  pointer-events: none;
}
.tag-picker--areas .area-add input[type="text"],
.area-add input[type="text"] {
  width: 100%;
  min-width: 0;
  flex: none;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
  opacity: 0;
}
.area-add:hover { border-color: var(--brand); color: var(--brand); }
.area-add:focus-within,
.area-add:has(input[aria-expanded="true"]) {
  flex-basis: 12.5rem;
  width: 12.5rem;
  border-style: solid;
  border-color: var(--brand);
  background: #fff;
  color: var(--muted);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.area-add:focus-within input[type="text"],
.area-add:has(input[aria-expanded="true"]) input[type="text"] {
  opacity: 1;
  padding: 0 10px 0 22px;
}
.form-sheet .field .area-add input[type="text"] {
  height: 24px;
  background: transparent;
}
.link-panel--areas { max-width: min(100%, 1120px); }
.link-panel--areas table.data { width: 100%; }
.link-panel--areas .col-areas { width: 56%; }
.link-panel--areas .cell-areas,
.link-panel--areas .cell-areas form {
  white-space: nowrap;
  overflow: visible;
}
.link-panel--areas .fit-link-add .tag-picker--areas { min-width: 16rem; }
.link-panel__table:has(.tag-picker) { overflow: visible; }
.link-panel__table .tag-picker--areas { min-width: 0; }
.link-panel__table td:has(.tag-picker) { overflow: visible; }
.tag-picker--areas .assign-menu { left: auto; right: 0; width: 16rem; z-index: 12; }
.role-field[hidden] { display: none; }
.role-field-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.role-help-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; gap: 12px; margin: 12px 0 16px; }
.role-help-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.role-help-item h3 { margin: 0 0 6px; font-size: 15px; }
.role-help-item h3 small { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .04em; }
.role-help-item p { margin: 0 0 6px; color: var(--body); font-size: 13px; line-height: 1.5; }
.role-help-item p:last-child { margin-bottom: 0; }
.role-rule-table { width: 100%; }
.role-rule-table th { text-align: left; font-weight: 600; }
.role-rule-table th small { margin-left: 4px; }
.role-rule-table td, .role-rule-table th { padding: 8px 10px; }
.role-matrix-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.role-matrix-pick .field { margin: 0; min-width: min(420px, 100%); }
.role-matrix-wrap { overflow-x: auto; }
.role-matrix { min-width: 1100px; }
.role-matrix thead th { vertical-align: bottom; white-space: nowrap; }
.role-matrix thead th small { display: block; color: var(--muted); font-size: 11px; font-weight: 650; }
.role-matrix tbody th { min-width: 220px; text-align: left; font-weight: 400; vertical-align: top; padding: 10px 12px; color: var(--ink); font-size: 13px; text-transform: none; letter-spacing: normal; }
.role-matrix tbody th strong { display: block; font-weight: 650; }
.role-matrix tbody th small { display: block; margin-top: 2px; }
.role-matrix tbody th .badge { display: inline-flex; margin-top: 6px; }
.role-matrix td { padding: 8px 6px; }
.role-matrix select { min-width: 120px; }
.role-matrix .pick { min-width: 132px; }
.pick { position: relative; display: block; width: 100%; }
.pick--combo .pick-combo { display: block; width: 100%; padding-right: 40px; }
.pick-caret-btn {
  appearance: none; position: absolute; top: 0; right: 0; z-index: 1;
  width: 40px; height: 100%; margin: 0; padding: 0; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); cursor: pointer;
}
.pick-caret-btn .bi { font-size: 12px; transition: transform .15s; }
.pick--combo.is-open .pick-caret-btn .bi { transform: rotate(180deg); color: var(--brand); }
.pick-caret-btn:disabled { cursor: not-allowed; }
.pick-combo:disabled { background: var(--bg-alt); color: var(--muted); cursor: not-allowed; }
.pick-code {
  flex: none; min-width: 52px; padding: 2px 8px; border-radius: 6px; text-align: center;
  background: var(--bg-alt); color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.pick-option-text:has(.pick-code) { flex-direction: row; align-items: center; gap: 10px; }
.pick-option.is-picked .pick-code { background: #fff; }
.pick > select[hidden] { display: none; }
.pick-trigger {
  appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; height: var(--control-height); margin: 0; padding: 0 var(--control-pad-x); text-align: left;
  border: var(--control-border); border-radius: var(--control-radius); background: var(--control-bg); color: var(--ink);
  font-size: var(--control-font); font-weight: 400; cursor: pointer;
  transition: border .15s, box-shadow .15s, background .15s;
}
.pick-trigger:hover { border-color: var(--muted); }
.pick-trigger:focus-visible, .pick.is-open .pick-trigger {
  border-color: var(--brand-2); background: var(--control-bg-focus); box-shadow: 0 0 0 4px var(--brand-ring); outline: none;
}
.pick-trigger:disabled { background: var(--bg-alt); color: var(--muted); cursor: not-allowed; }
.pick-value { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; overflow: hidden; }
.pick-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-value small { flex: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.pick-caret { flex: none; color: var(--muted); font-size: 12px; transition: transform .15s; }
.pick.is-open .pick-caret { transform: rotate(180deg); color: var(--brand); }
.pick--chip .pick-label {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 650; background: var(--bg-alt); color: var(--muted);
}
.priority-pill,
.pick-label.priority-pill,
.pick-option-label.priority-pill {
  --priority: var(--muted);
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%;
  height: auto; padding: 0; border-radius: 0;
  font-size: 13px; font-weight: 400; line-height: 1.3; white-space: nowrap;
  background: transparent; color: var(--priority); box-shadow: none;
}
.priority-pill::before,
.pick-label.priority-pill::before,
.pick-option-label.priority-pill::before { content: none; }
.pick-option:hover .pick-option-label.priority-pill,
.pick-option.is-on .pick-option-label.priority-pill {
  background: transparent; color: var(--priority);
}
.pick-label[data-tone="ok"], .pick-option[data-tone="ok"] .pick-option-label { background: var(--ok-soft); color: var(--ok); }
.pick-label[data-tone="info"], .pick-option[data-tone="info"] .pick-option-label { background: var(--info-soft); color: var(--info); }
.pick-label[data-tone="warn"], .pick-option[data-tone="warn"] .pick-option-label { background: var(--warn-soft); color: var(--warn); }
.pick-menu {
  position: fixed; z-index: 90; left: 0; top: 0; display: flex; flex-direction: column;
  max-width: calc(100vw - 16px); max-height: min(340px, calc(100vh - 16px)); padding: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}
.pick-menu[hidden] { display: none; }
.pick-search {
  flex: none; width: 100%; height: var(--control-height); margin: 0 0 4px; padding: 0 10px;
  border: var(--control-border); border-radius: var(--control-radius); font-size: var(--control-font); background: var(--control-bg); color: var(--ink);
}
.pick-search:focus { outline: none; border-color: var(--brand-2); background: var(--control-bg-focus); box-shadow: 0 0 0 4px var(--brand-ring); }
.pick-list { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.pick-option {
  appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 40px; margin: 0; padding: 6px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer;
}
.pick-option[hidden] { display: none; }
.pick-option:hover, .pick-option.is-on { background: var(--bg-alt); }
.pick-option-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.pick-option-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-option[data-tone="ok"] .pick-option-label,
.pick-option[data-tone="info"] .pick-option-label,
.pick-option[data-tone="warn"] .pick-option-label { padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.pick-option small { color: var(--muted); font-size: 12px; }
.pick-check { flex: none; visibility: hidden; color: var(--brand); font-size: 16px; }
.pick-option.is-picked { background: var(--brand-soft); }
.pick-option.is-picked .pick-option-label { font-weight: 650; }
.pick-option.is-picked .pick-check { visibility: visible; }
.pick-empty { margin: 0; padding: 10px; color: var(--muted); font-size: 13px; }
.pick-empty[hidden] { display: none; }
.role-matrix-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.status-pick { position: relative; }
.status-trigger {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; max-width: 100%;
  padding: 6px 10px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--status); color: #fff; font-size: 12px; font-weight: 400; line-height: 1.35;
}
.status-trigger span { min-width: 0; text-align: left; }
.status-trigger .bi { font-size: 11px; flex: none; align-self: center; }
.status-trigger:hover { filter: brightness(1.08); }
.status-trigger.is-static { cursor: default; width: fit-content; }
.status-trigger.is-static:hover { filter: none; }
.status-trigger:focus-visible, .status-pick.open .status-trigger { box-shadow: 0 0 0 4px var(--brand-ring); }
.issue-row .status-pick { min-width: 0; width: 100%; position: relative; display: flex; flex-direction: column; align-items: stretch; }
.issue-row:has(.status-pick) {
  grid-template-columns: 1fr; align-items: stretch; gap: 6px; padding: 6px 0 10px;
}
.issue-row:has(.status-pick) > label { font-weight: 500; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.issue-row .status-trigger {
  width: 100%; max-width: none; justify-content: space-between; align-items: flex-start;
  box-sizing: border-box;
}
.issue-row .status-trigger span {
  white-space: normal; overflow: visible; text-overflow: unset; flex: 1;
}
.issue-row .status-trigger.is-static { justify-content: flex-start; width: 100%; }
.status-pick.open { z-index: 50; }
.issue-row:has(.status-pick.open) { position: relative; z-index: 50; }
.status-pick.open .status-trigger .bi-chevron-down { transform: rotate(180deg); }
.status-menu,
.status-menu[popover] {
  position: fixed; inset: auto; left: 0; top: 0; z-index: 120;
  width: max-content; max-width: calc(100vw - 16px); height: auto; max-height: min(420px, calc(100vh - 16px));
  overflow: auto; padding: 6px; margin: 0;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .14), 0 2px 8px rgba(15, 23, 42, .06);
}
.status-menu[hidden] { display: none; }
.status-option {
  display: flex; flex-direction: row; align-items: center; gap: 8px; width: 100%;
  min-height: 0; padding: 8px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font-size: 14px; font-weight: 400;
  text-align: left; cursor: pointer; white-space: nowrap;
}
.status-option + .status-option { margin-top: 2px; }
.status-option-name {
  flex: none; font-size: 13px; font-weight: 650; line-height: 1.35;
  white-space: nowrap;
}
.status-option-target {
  display: flex; align-items: center; gap: 8px; flex: none;
}
.status-option-target .bi { color: var(--muted); font-size: 12px; flex: none; }
.status-lozenge {
  flex: none; display: inline-flex; align-items: center; max-width: none;
  padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 400; line-height: 1.35;
  white-space: nowrap;
}
.status-option:hover { background: var(--bg-alt); box-shadow: inset 3px 0 0 var(--brand); }
.status-option:focus-visible { outline: none; background: var(--bg-alt); box-shadow: inset 3px 0 0 var(--brand), 0 0 0 4px var(--brand-ring); }
.status-line { display: flex; align-items: stretch; gap: 8px; width: 100%; min-width: 0; }
.status-line > .status-trigger { flex: 1 1 auto; width: auto; min-width: 0; }
.status-flow-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: stretch;
  width: 32px; min-width: 32px; min-height: 32px; height: auto; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--body);
  cursor: pointer; box-sizing: border-box;
}
.status-flow-icon .bi { font-size: 16px; line-height: 1; }
.status-flow-icon:hover { background: var(--bg-alt); color: var(--ink); }
.status-flow-icon:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.ticket-head .btn-icon { width: 36px; min-width: 36px; height: 36px; padding: 0; }
.ticket-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ticket-head > div:first-child { min-width: 0; flex: 1 1 260px; }
.ticket-head h2 { margin: 8px 0 4px; font-size: 22px; font-weight: 600; }
.meta { color: var(--body); font-size: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.brief-card { margin-bottom: 16px; }
.card.ticket-fold { border: 0; box-shadow: none; background: transparent; padding: 0; }
.card.ticket-fold:hover { transform: none; }
.ticket-fold > .attach-head { margin-bottom: 0; }
.ticket-fold .issue-fold {
  display: inline-flex; align-items: center; gap: 6px;
  width: auto; min-height: 0; margin: 0; padding: 0; line-height: 1;
}
.ticket-fold .issue-fold .bi {
  display: grid; place-items: center; width: 1em; height: 1em; flex: none;
  font-size: 12px; line-height: 1;
}
.ticket-fold .issue-fold .bi::before { display: block; vertical-align: 0; line-height: 1; }
.ticket-fold .issue-fold span { line-height: 1; }
.ticket-fold-body { margin-top: 1em; }
.basic-details .fields-inline { margin-top: 14px; }
.ticket-facts form { margin: 0; min-width: 0; }
.ticket-facts .field { margin-bottom: 0; min-width: 0; }
.ticket-facts .fact-view {
  min-height: 36px; display: flex; align-items: center; width: 100%; color: var(--ink); font-size: 13px; font-weight: 600;
  overflow-wrap: anywhere; border-radius: var(--radius-sm);
}
button.fact-view {
  border: 0; background: transparent; padding: 0 8px; text-align: left; font-weight: 600; cursor: pointer;
}
button.fact-view:hover { background: var(--bg-alt); }
button.fact-view:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.ticket-facts .fact-edit { display: none; }
.ticket-facts [data-fact].is-editing .fact-edit { display: block; }
.ticket-facts [data-fact].is-editing button.fact-view { display: none; }
.ticket-facts .tag-picker { min-width: 0; }
.brief-card:hover { transform: none; }
.brief-form { margin: 0; }
.brief-shell { min-width: 0; }
.ticket-brief { font-size: 13px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.ticket-brief p { margin: 0 0 8px; }
.ticket-brief p:last-child { margin-bottom: 0; }
.ticket-brief img, .act-body img {
  display: inline-block; max-width: 100%; height: auto !important;
  margin: 4px 0; border-radius: var(--radius-sm); object-fit: contain; vertical-align: middle;
}
.brief-view {
  cursor: pointer; border-radius: var(--radius-sm); padding: 6px 8px; margin: -6px -8px;
  border: 1px solid transparent;
}
.brief-view:hover { background: var(--bg-alt); }
.brief-view:focus-visible { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.brief-card.is-editing .brief-view { display: none; }
.brief-editor {
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); padding: 0 12px 8px;
}
.brief-editor:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.brief-editor .ql-toolbar.ql-snow {
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 6px 0;
}
.brief-editor .ql-container.ql-snow { border: 0; border-radius: 0; min-height: 120px; font-size: 13px; }
.brief-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.activity.card:hover { transform: none; }
.activity-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 650; cursor: pointer;
}
.activity-toggle .bi { color: var(--muted); font-size: 12px; transition: transform .15s ease; }
html.activity-collapsed .activity-toggle .bi { transform: rotate(-90deg); }
html.activity-collapsed .activity-body { display: none; }
.activity-toggle:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.activity-bar { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.activity-lock { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.activity-lock p { margin: 0; }
.activity-lock form { margin: 0; }
.activity-sheet.is-locked .cell-actions { display: none; }
.activity-sheet tr.is-locked .activity-date { cursor: default; }
.activity-sheet tr.is-locked .activity-date-label,
.activity-sheet tr.is-locked input:disabled:not(.activity-date-value),
.activity-sheet tr.is-locked select:disabled,
.activity-sheet tr.is-locked .pick-combo:disabled {
  color: var(--ink);
  background: var(--bg);
  opacity: 1;
  cursor: default;
}
.activity-sheet tr.is-locked .pick-combo.has-face:disabled {
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.activity-tabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.activity-tab {
  height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--body); font-size: 12px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.activity-tab:hover { background: var(--bg-alt); }
.activity-tab[aria-selected="true"],
.activity-tab[aria-selected="true"]:hover {
  background: var(--brand-soft); border-color: var(--brand); color: var(--brand);
}
.activity-tab:focus-visible, .activity-sort:focus-visible, .act-seed:focus-visible, .act-compose-prompt:focus-visible {
  outline: none; box-shadow: 0 0 0 4px var(--brand-ring);
}
.activity-sort { flex: none; }
.activity-sort[aria-pressed="true"] .bi { transform: scaleY(-1); }
.activity-pane[hidden] { display: none; }
.act-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.act-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line);
}
.act-item:last-child { border-bottom: 0; }
.act-item .avatar, .act-compose .avatar { width: 36px; height: 36px; font-size: 11px; }
.act-avatar-icon { background: var(--bg-alt); color: var(--muted); font-size: 15px; }
.act-avatar-icon .bi { font-size: 15px; }
.act-item.is-note {
  background: var(--warn-soft); border-radius: var(--radius-sm); box-shadow: inset 3px 0 0 var(--warn);
  border-bottom-color: transparent; margin-bottom: 4px;
}
.act-item-history .act-meta { margin-top: 8px; }
.act-timeline { position: relative; margin: 4px 0 0; }
.act-timeline .act-item { margin: 0; border-bottom: 0; }
.act-timeline .act-item .avatar { position: relative; z-index: 1; }
.act-timeline::before {
  content: ""; position: absolute; left: 13px; top: 16px; bottom: 16px; width: 1px; background: var(--line);
}
.act-timeline .act-item-history {
  grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 7px 4px 7px 0; margin: 0; border-bottom: 0;
}
[data-act-clip] > .is-clipped { display: none; }
.act-timeline .act-avatar-icon {
  width: 26px; height: 26px; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); box-shadow: 0 0 0 3px var(--card);
}
.act-timeline .act-avatar-icon .bi { font-size: 12px; }
.act-timeline .act-item-history .act-meta { margin-top: 0; }
.act-timeline .act-action { color: var(--ink); font-weight: 650; }
.act-more {
  display: inline-flex; align-items: center; margin: 8px 0 2px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt);
  color: var(--ink); font-size: 12px; font-weight: 650; cursor: pointer;
}
.act-more:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.act-more:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.act-timeline + .act-more { margin-left: 40px; }
.act-tools { margin-top: 8px; }
.act-main { min-width: 0; }
.act-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.act-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; font-size: 12px; }
.act-meta strong { color: var(--ink); font-weight: 650; }
.act-meta time, .act-action, .act-meta > span { color: var(--body); }
.act-meta time { color: var(--muted); font-size: 12px; }
.act-meta .act-note-tag { color: var(--warn); font-size: 12px; font-weight: 650; }
.act-body { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.act-thread { display: flex; flex-direction: column; }
.act-thread.is-clipped { display: none; }
.act-item.is-reply,
.act-compose.is-reply-compose { margin-left: 48px; }
.act-reply {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 2px 0;
  border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer;
}
.act-reply .bi { font-size: 13px; }
.act-reply:hover { color: var(--brand); }
.act-reply:focus-visible { outline: none; border-radius: 6px; box-shadow: 0 0 0 4px var(--brand-ring); }
.act-body p { margin: 0 0 8px; }
.act-body p:last-child { margin-bottom: 0; }
.act-body img {
  display: inline-block; max-width: 100%; height: auto !important;
  margin: 4px 0; border-radius: var(--radius-sm); object-fit: contain; vertical-align: middle;
}
.act-change { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.act-change .bi { color: var(--muted); font-size: 12px; }
.act-detail { margin: 6px 0 0; color: var(--body); font-size: 12px; overflow-wrap: anywhere; }
.act-workline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; font-size: 12px; color: var(--body); }
.act-workline strong { color: var(--ink); }
.badge.act-status-ok { background: var(--ok-soft); color: var(--ok); }
.badge.act-status-warn { background: var(--warn-soft); color: var(--warn); }
.badge.act-status-danger { background: var(--danger-soft); color: var(--danger); }
.act-empty { margin: 8px 0 4px; color: var(--muted); font-size: 13px; }
.act-tools .row-actions { flex-wrap: wrap; }
.act-gap { margin-top: 12px; }
.act-compose {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.act-compose .avatar { margin-top: 8px; }
.act-compose-box {
  min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--card); padding: 0 12px 8px; position: relative;
}
.act-compose-box:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.act-compose-prompt {
  display: flex; align-items: center; width: 100%; min-height: 36px; padding: 0;
  border: 0; background: transparent; color: var(--muted); font-size: 13px; text-align: left; cursor: text;
}
.act-compose.is-open .act-compose-prompt,
.act-compose.is-open .act-seeds { display: none; }
.act-seeds { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.act-seed {
  height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--body); font-size: 12px; font-weight: 600; cursor: pointer;
}
.act-seed:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.act-hint { margin: 6px 0 4px 44px; color: var(--muted); font-size: 12px; }
.act-compose .ql-toolbar.ql-snow {
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 6px 0;
}
.act-compose .ql-container.ql-snow { border: 0; border-radius: 0; min-height: 88px; font-size: 13px; }
.act-print-label { display: none; }
.act-note-input {
  height: 36px; flex: 1 1 180px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 8px; background: var(--card); color: var(--ink); font-size: 13px;
}
.act-note-input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.activity .fields-inline.fit-effort { grid-template-columns: minmax(0, 150px) minmax(0, 96px) minmax(0, 1fr) auto; }
.activity .fields-inline.fit-scope { grid-template-columns: minmax(0, 160px) minmax(0, 96px) minmax(0, 1fr); }
.composer { margin-top: 12px; position: relative; }
.field > .composer { min-width: 0; margin-top: 0; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: var(--line) !important; font-family: var(--font); }
.ql-toolbar.ql-snow .ql-picker { font-size: 13px; }
.ql-container.ql-snow { border-radius: 0 0 12px 12px; min-height: 160px; font-size: 15px; }
.ql-toolbar.ql-snow { border-radius: 12px 12px 0 0; background: #fff; }
.ql-editor img {
  max-width: 100%; height: auto !important; border-radius: var(--radius-sm);
  object-fit: contain; vertical-align: middle;
}
.mention { background: #e8eefc; color: #1d4ed8; border-radius: 6px; padding: 0 4px; }
.mention-menu { position: absolute; z-index: 5; min-width: 220px; max-height: 240px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 4px; }
.mention-menu button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; border-radius: var(--radius-sm); padding: 6px 8px; text-align: left; cursor: pointer; }
.mention-menu button.on, .mention-menu button:hover { background: #f1f5f9; }
.mention-badge { width: 28px; height: 28px; border-radius: 50%; background: #1d4ed8; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.assign-picker { position: relative; }
.assign-picker input[type="text"] {
  width: 100%; height: var(--control-height); padding: 0 40px 0 var(--control-pad-x);
  border: var(--control-border); border-radius: var(--control-radius); font-size: var(--control-font);
  font-weight: 400; color: var(--ink); background: var(--control-bg);
}
.assign-picker input[type="text"]:focus {
  outline: none; border-color: var(--brand-2); background: var(--control-bg-focus); box-shadow: 0 0 0 4px var(--brand-ring);
}
.assign-clear {
  position: absolute; right: 6px; top: calc((var(--control-height) - var(--control-height-sm)) / 2);
  width: var(--control-height-sm); height: var(--control-height-sm); padding: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer;
}
.assign-clear:hover { color: var(--ink); background: var(--bg-alt); }
.assign-clear:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.assign-menu {
  position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 280px; overflow: auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 4px;
}
.assign-label { font-size: 12px; font-weight: 650; color: var(--muted); padding: 8px 8px 4px; }
.assign-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px;
  border: 0; background: transparent; border-radius: var(--radius-sm); padding: 6px 8px;
  text-align: left; cursor: pointer; color: var(--ink);
}
.assign-menu button.on, .assign-menu button:hover { background: var(--bg-alt); }
.assign-menu button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.assign-menu .avatar { width: 28px; height: 28px; font-size: 11px; }
.assign-who { display: flex; flex-direction: column; min-width: 0; }
.assign-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.assign-menu .person-level { display: inline-flex; align-items: center; flex: none; font-size: 14px; line-height: 1; }
.assign-menu .person-level-junior { color: var(--info); }
.assign-menu .person-level-mid { color: var(--brand); }
.assign-menu .person-level-senior { color: var(--ok); }
.assign-menu .person-level-master { color: var(--warn); }
.assign-who strong { font-size: 13px; font-weight: 650; }
.assign-who small { font-size: 12px; color: var(--muted); }
.assign-empty { margin: 0; padding: 8px; font-size: 13px; color: var(--muted); }
.row-actions { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }
table.data td.row-actions { width: 1%; white-space: nowrap; }
table.data.list-grid th.cell-actions,
table.data.list-grid td.cell-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
}
table.data:not(:has(td.cell-actions :is(a, button, summary, input, select))) :is(th.cell-actions, td.cell-actions) {
  display: none;
}
table.data.list-grid tbody tr:not(:has(.empty)) > td.cell-actions {
  padding-left: 4px;
  padding-right: 6px;
  overflow: visible;
}
table.data.list-grid.is-col-sized th.cell-actions,
table.data.list-grid.is-col-sized td.cell-actions { overflow: visible; text-overflow: clip; }
table.data.list-grid td.cell-actions > .row-actions { width: max-content; margin-left: auto; }
td .row-actions form { margin: 0; }
td .row-actions { flex-wrap: nowrap; }
.quota { margin-top: 8px; }
.bar { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
.bar.over > span { background: var(--danger); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 400px); gap: 20px; align-items: stretch; }
.split > * { min-width: 0; }
.issue-side { position: relative; min-width: 0; border-left: 2px solid transparent; padding-left: 18px; }
.issue-split {
  position: absolute; z-index: 1; top: 0; bottom: 0; left: -9px; width: 16px;
}
.issue-split::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px;
  background: transparent; border-radius: 1px;
}
.issue-split:hover::before { background: var(--muted); }
.issue-rail {
  position: absolute; left: 8px; top: 24px; z-index: 2; transform: translate(-50%, -50%);
  width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer;
  display: grid; place-items: center; opacity: 0; pointer-events: none;
}
.issue-split:hover .issue-rail,
.issue-rail:focus-visible { opacity: 1; pointer-events: auto; }
.issue-rail .bi { font-size: 12px; }
.issue-rail:hover { border-color: var(--muted); color: var(--ink); }
.issue-rail:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.issue-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.issue-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  padding: 14px 16px;
}
.issue-block h3 { margin: 0 0 8px; font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.issue-block h3 .bi { color: var(--muted); font-size: 12px; }
.issue-fold {
  display: flex; align-items: center; gap: 6px; width: 100%; min-height: 36px; margin: 0 0 8px; padding: 0;
  border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 650; cursor: pointer; text-align: left;
}
.issue-fold .bi { color: var(--muted); font-size: 12px; transition: transform .15s ease; }
.issue-fold[aria-expanded="false"] { margin-bottom: 0; }
.issue-fold[aria-expanded="false"] .bi { transform: rotate(-90deg); }
.issue-fold:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); border-radius: var(--radius-sm); }
.sla-panel { padding: 2px 0 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent); }
.sla-panel .issue-fold { min-height: 28px; margin-bottom: 2px; }
.sla-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center;
  padding: 8px 0 6px;
}
.sla-item + .sla-item { border-top: 1px solid var(--line); }
.sla-copy { min-width: 0; }
.sla-copy strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.sla-goal { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.sla-pill {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px;
  border-radius: 999px; background: var(--bg-alt); color: var(--ink); font-size: 13px; font-weight: 650;
  line-height: 1.3; white-space: nowrap;
}
.sla-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 1; }
.sla-mark .bi { font-size: 14px; }
.sla-mark.is-ok { color: var(--ok); }
.sla-mark.is-warn { color: var(--warn); }
.sla-mark.is-danger { color: var(--danger); }
.sla-mark.is-square {
  width: 18px; height: 18px; border-radius: 4px; background: var(--danger); color: #fff;
}
.sla-mark.is-square .bi { font-size: 11px; }
.claim-form { margin: 0 0 8px; }
.claim-form button {
  border: 0; background: transparent; padding: 0; min-height: 32px;
  color: var(--brand); font-size: 13px; font-weight: 650; cursor: pointer;
}
.claim-form button:hover { text-decoration: underline; }
.claim-form button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); border-radius: 6px; }
.issue-row {
  display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); gap: 8px;
  align-items: center; min-height: 36px; padding: 4px 0; font-size: 12px;
}
.issue-row > span, .issue-row > label { color: var(--body); font-weight: 400; }
.issue-row strong { color: var(--ink); font-weight: 650; min-width: 0; }
.issue-details .issue-row,
.issue-details form.issue-row {
  grid-template-columns: 1fr; align-items: stretch; gap: 6px;
  min-height: 0; padding: 12px 0; margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  font-size: 13px;
}
.issue-details .issue-row:last-child,
.issue-details form.issue-row:last-of-type { border-bottom: 0; }
.issue-details .issue-row > span,
.issue-details .issue-row > label {
  color: var(--muted); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.2;
}
.issue-details .issue-row > strong {
  font-size: 13px; font-weight: 600; line-height: 1.45;
  word-break: break-word; text-align: left;
}
.issue-details .issue-row:has(.status-pick),
.issue-details .issue-row:has(> .status-trigger) { padding: 8px 0; gap: 0; }
.issue-details .issue-row:has(.status-pick):has(+ .dispatch-note),
.issue-details .issue-row:has(> .status-trigger):has(+ .dispatch-note),
.issue-details .issue-row:has(+ .sla-panel) {
  padding-bottom: 0; border-bottom: 0;
}
.issue-details .status-trigger,
.issue-details .status-trigger.is-static {
  width: 100%; max-width: none; justify-content: space-between; align-items: center;
  min-height: 32px; padding: 4px 10px; border-radius: 8px; border: 0;
  background: var(--status); font-size: 13px; font-weight: 400; line-height: 1.3;
}
.issue-details .status-trigger:hover { filter: brightness(1.08); }
.issue-details .status-trigger.is-static { cursor: default; justify-content: flex-start; }
.issue-details .status-trigger.is-static:hover { filter: none; }
.issue-details .status-trigger .bi { color: inherit; opacity: .9; }
.issue-details .status-trigger span { white-space: normal; overflow: visible; text-overflow: unset; flex: 1; }
.issue-details .status-line > .status-trigger,
.issue-details .status-line > .status-trigger.is-static { width: auto; flex: 1 1 auto; }
.issue-details .assign-picker input[type="text"] { font-weight: 400; }
.issue-details .issue-row > strong.issue-person,
.issue-details .assign-who strong,
.board-move .assign-who strong { font-weight: 400; }
.issue-details .dispatch-note { margin: 6px 0 0; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent); }
.issue-panel > .issue-stamp:first-of-type { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.issue-block form.issue-row { margin-top: 0; }
.issue-row .assign-picker { min-width: 0; }
.dispatch-note, .dispatch-panel .hint { margin: 0 0 8px; font-size: 12.5px; line-height: 1.45; }
.dispatch-send, .dispatch-panel form { margin: 0 0 10px; }
.dispatch-send .btn, .dispatch-panel .btn { width: 100%; }
.avatar.freelance { background: #e0f2fe; color: #0369a1; }
.issue-row > select, .issue-row > input[type="datetime-local"], .issue-row > input[type="text"], .issue-row > input[type="date"], .issue-row > input[type="number"] {
  width: 100%; max-width: 100%; min-width: 0; height: var(--control-height);
  border: var(--control-border); border-radius: var(--control-radius);
  padding: 0 var(--control-pad-x); background: var(--control-bg); color: var(--ink); font-size: var(--control-font);
}
.issue-row > select:focus, .issue-row > input[type="datetime-local"]:focus, .issue-row > input[type="text"]:focus, .issue-row > input[type="date"]:focus, .issue-row > input[type="number"]:focus {
  outline: none; border-color: var(--brand-2); background: var(--control-bg-focus); box-shadow: 0 0 0 4px var(--brand-ring);
}
.issue-details .issue-row .composer { width: 100%; min-width: 0; margin-top: 0; }
.issue-details .issue-row .ticket-brief { margin: 0; }
.issue-person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin: 4px 0; }
.watchers-list { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.watchers-list .issue-person { display: flex; margin: 0; }
.issue-person .avatar { width: 28px; height: 28px; font-size: 11px; }
.issue-person strong { min-width: 0; max-width: 100%; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.person-badge { border: 0; padding: 0; cursor: pointer; }
button.avatar.person-badge { width: 36px; height: 36px; }
button.avatar.consultant.person-badge { background: var(--brand-soft); color: var(--brand); }
.act-item button.avatar.person-badge { width: 36px; height: 36px; }
button.issue-person.person-badge {
  width: fit-content; max-width: 100%; min-height: 36px; background: transparent;
  padding: 0 4px; text-align: left; border-radius: var(--radius-sm);
}
button.person-badge:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.issue-block form { margin-top: 6px; }
.issue-block .btn { margin-top: 8px; }
.offer-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.offer-tab {
  min-height: 36px; height: auto; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--body); font-size: 12px; font-weight: 600; cursor: pointer;
}
.offer-tab:hover { background: var(--bg-alt); }
.offer-tab[aria-selected="true"],
.offer-tab[aria-selected="true"]:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.offer-tab:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.offer-pane[hidden] { display: none; }
.offer-list { display: flex; flex-direction: column; }
.offer-person {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 0;
}
.offer-person + .offer-person { border-top: 1px solid var(--line); }
.offer-person input { width: 18px; height: 18px; flex: none; margin: 0; }
.offer-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.offer-who strong { color: var(--ink); font-size: 13px; }
.offer-who small { color: var(--muted); font-size: 12px; }
.offer-log { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.offer-log li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 36px; font-size: 12px; }
.offer-banner { margin-top: 18px; }
.offer-banner .field { max-width: 360px; }
.issue-empty, .issue-stamp { margin: 0; color: var(--muted); font-size: 12px; }
.issue-stamp + .issue-stamp { margin-top: 4px; }
html.issue-collapsed .split { grid-template-columns: minmax(0, 1fr) 0px; }
html.issue-collapsed .issue-side { padding-left: 0; margin-left: 18px; min-height: 280px; }
html.issue-collapsed .issue-panel { display: none; }
html.issue-collapsed .issue-rail .bi-chevron-right { transform: scaleX(-1); }
.side-card h3 { margin: 0 0 12px; font-size: 13px; }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--bg-alt); }
.kv span { color: var(--muted); }
.empty { padding: 36px 12px; text-align: center; color: var(--body); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.section-title form { flex: 1 1 180px; min-width: 0; max-width: 280px; }
.search {
  height: var(--control-height); width: 100%; max-width: 280px;
  border: var(--control-border); border-radius: var(--control-radius);
  padding: 0 12px; font-size: var(--control-font); background: var(--control-bg); color: var(--ink);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; display: inline-block; }
.dot.online { background: #16a34a; }
.dot.busy, .dot.dnd { background: #dc2626; }
.dot.away, .dot.brb { background: #d97706; }
.dot.offline { background: #94a3b8; }
#chat-dock { position: fixed; right: 22px; bottom: 22px; z-index: 50; }
.chat-launcher {
  width: 58px; height: 58px; border: 0; border-radius: 50%; cursor: pointer; color: var(--on-brand); position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow); font-size: 24px;
}
#chat-dock.online .chat-launcher { background: var(--ok); }
#chat-dock.busy .chat-launcher,
#chat-dock.dnd .chat-launcher { background: var(--danger); }
#chat-dock.brb .chat-launcher,
#chat-dock.away .chat-launcher { background: var(--warn); }
#chat-dock.offline .chat-launcher { background: var(--body); }
.chat-badge {
  position: absolute; top: -6px; right: -6px; z-index: 3; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 99px; border: 2px solid #fff; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; pointer-events: none; line-height: 1;
}
.chat-panel {
  position: absolute; right: 0; bottom: 70px; width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100vh - 110px));
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden],
.chat-list-wrap[hidden],
.chat-thread[hidden],
.chat-back[hidden],
.chat-badge[hidden],
.chat-tag[hidden],
.chat-presence-menu[hidden],
.chat-clear[hidden],
.chat-invite[hidden],
.chat-invite-btn[hidden] { display: none !important; }
.chat-head { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-title { flex: 1 1 140px; min-width: 120px; display: flex; align-items: center; gap: 6px; }
.chat-title strong { min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-search { height: 34px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 8px; font-size: 12px; background: #fff; }
.chat-presence { position: relative; flex: none; min-width: 0; max-width: min(172px, 46%); }
.chat-presence-trigger {
  display: inline-flex; align-items: center; gap: 6px; width: 100%; height: 36px; max-width: 100%;
  padding: 0 8px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 600;
}
.chat-presence-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-presence-trigger .bi { flex: none; font-size: 14px; }
.chat-presence-trigger .bi-chevron-down { font-size: 12px; }
.chat-presence.open .bi-chevron-down { transform: rotate(180deg); }
.chat-presence.online .chat-presence-trigger { background: var(--ok-soft); color: var(--ok); }
.chat-presence.busy .chat-presence-trigger,
.chat-presence.dnd .chat-presence-trigger { background: var(--danger-soft); color: var(--danger); }
.chat-presence.brb .chat-presence-trigger,
.chat-presence.away .chat-presence-trigger { background: var(--warn-soft); color: var(--warn); }
.chat-presence.offline .chat-presence-trigger { background: var(--bg-alt); color: var(--body); }
.chat-presence-trigger:focus-visible,
.chat-presence.open .chat-presence-trigger { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.chat-presence-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5;
  display: flex; flex-direction: column; gap: 4px;
  width: min(248px, calc(100vw - 56px)); padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.chat-presence-option {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px;
  padding: 0 10px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--bg-alt); color: var(--body); font-size: 13px; font-weight: 600; text-align: left;
}
.chat-presence-option .bi { flex: none; font-size: 15px; }
.chat-presence-option span { min-width: 0; }
.chat-presence-option.online { background: var(--ok-soft); color: var(--ok); }
.chat-presence-option.busy,
.chat-presence-option.dnd { background: var(--danger-soft); color: var(--danger); }
.chat-presence-option.brb,
.chat-presence-option.away { background: var(--warn-soft); color: var(--warn); }
.chat-presence-option.offline { background: var(--bg-alt); color: var(--body); }
.chat-presence-option.is-current { box-shadow: inset 3px 0 0 currentColor; }
.chat-presence-option:hover { box-shadow: inset 3px 0 0 currentColor; }
.chat-presence-option:focus-visible { outline: none; box-shadow: inset 3px 0 0 currentColor, 0 0 0 4px var(--brand-ring); }
.chat-tag {
  display: inline-flex; align-items: center; gap: 4px; flex: none; max-width: 58%; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
  background: var(--bg-alt); color: var(--body);
}
.chat-tag .bi { flex: none; font-size: 12px; }
.chat-tag span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chat-tag.online { background: var(--ok-soft); color: var(--ok); }
.chat-tag.busy, .chat-tag.dnd { background: var(--danger-soft); color: var(--danger); }
.chat-tag.brb, .chat-tag.away { background: var(--warn-soft); color: var(--warn); }
.chat-tag.offline { background: var(--bg-alt); color: var(--body); }
.chat-title .chat-tag { max-width: 46%; }
.chat-back, .chat-close { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; color: var(--body); border-radius: var(--radius-sm); }
.chat-clear {
  width: 36px; height: 36px; flex: none; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--danger); cursor: pointer;
}
.chat-clear:hover { background: var(--danger-soft); }
.chat-clear:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.chat-invite-btn { flex: none; white-space: nowrap; }
.chat-invite {
  display: flex; flex-direction: column; flex: none; max-height: 220px; min-height: 0;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.chat-invite-list { overflow: auto; padding: 0 8px 8px; }
.chat-bubble .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-bottom: 2px; font-size: 11px; font-weight: 700; color: var(--ink); }
.chat-bubble .who em { font-style: normal; font-weight: 500; font-size: 10px; color: var(--muted); }
.chat-notice { align-self: center; max-width: 90%; padding: 6px 12px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: 12px; text-align: center; }
.chat-list-wrap { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-search { margin: 10px 12px 0; }
.chat-list { overflow: auto; padding: 8px; flex: 1; }
.chat-group { margin: 10px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chat-person { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: transparent; padding: 8px; border-radius: 12px; cursor: pointer; }
.chat-person:hover { background: var(--bg-alt); }
.chat-person .avatar { width: 40px; height: 40px; position: relative; flex: none; background: var(--bg-alt); color: var(--ink); }
.chat-person .avatar .dot { position: absolute; right: 0; bottom: 0; border: 2px solid #fff; }
.chat-person .meta { min-width: 0; flex: 1; }
.chat-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chat-name strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.chat-person .meta .chat-preview { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread { min-width: 18px; height: 18px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.chat-thread { display: flex; flex-direction: column; min-height: 0; flex: 1; background: #fff; }
.chat-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-bubble { max-width: 80%; padding: 8px 12px; border-radius: 16px; font-size: 13px; line-height: 1.4; background: #fff; border: 1px solid var(--line); }
.chat-bubble.mine { margin-left: auto; background: var(--brand); color: #fff; border-color: transparent; border-bottom-right-radius: 4px; }
.chat-bubble.theirs { margin-right: auto; border-bottom-left-radius: 4px; }
.chat-bubble small { display: block; margin-top: 4px; font-size: 10px; opacity: .75; }
.chat-compose { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 20px; padding: 0 14px; }
.chat-compose button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; }
.chat-compose input:disabled { background: var(--bg-alt); color: var(--muted); cursor: not-allowed; }
.chat-compose button:disabled { opacity: .45; cursor: not-allowed; }
.chat-empty { color: var(--muted); text-align: center; padding: 28px 12px; font-size: 13px; }
.flow-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.flow-add input, .flow-add select {
  height: var(--control-height); border: var(--control-border); border-radius: var(--control-radius);
  padding: 0 var(--control-pad-x); background: var(--control-bg); color: var(--ink); font-size: var(--control-font);
}
.flow-add input { min-width: min(220px, 100%); }
.flow-types { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.flow-group { margin: 18px 0 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.flow-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.flow-row summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 14px; }
.flow-row summary::-webkit-details-marker { display: none; }
.flow-row summary strong { font-size: 13px; flex: none; }
.flow-row summary span { color: var(--body); font-size: 13px; text-align: right; }
.flow-row[open] summary { border-bottom: 1px solid var(--line); }
.flow-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.flow-target { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; }
.flow-target > span { color: var(--muted); font-size: 12px; font-weight: 700; padding-top: 8px; }
.flow-next { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-chip { position: relative; }
.flow-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.flow-chip span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body); font-size: 13px; font-weight: 600; cursor: pointer; }
.flow-chip input:checked + span { background: var(--brand-soft); border-color: #c5d9ea; color: var(--brand); }
.flow-chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-ring); }
@media (max-width: 980px) { .flow-target { grid-template-columns: 1fr; } .flow-row summary { align-items: flex-start; flex-direction: column; gap: 4px; } .flow-row summary span { text-align: left; } }
@media (min-width: 981px) {
  .side-toggle { display: grid; }
  html.sidebar-pinned .shell { grid-template-columns: var(--sidebar) 1fr; }
  html.sidebar-pinned.sidebar-icons .shell { grid-template-columns: var(--sidebar-icons) 1fr; }
  html:not(.sidebar-pinned) .sidebar {
    position: fixed; top: 56px; left: 0; width: var(--sidebar-icons); height: calc(100vh - 56px);
    z-index: 30; transform: translateX(-100%); pointer-events: none;
    background: #ffffff;
    transition: transform .16s ease, width .16s ease;
  }
  html.sidebar-icons:not(.sidebar-pinned) .sidebar {
    transform: none; pointer-events: auto; width: var(--sidebar-icons);
  }
  html.sidebar-peek:not(.sidebar-pinned) .sidebar {
    transform: none; pointer-events: auto; width: var(--sidebar);
  }
  html.sidebar-icons .side-split { left: calc(var(--sidebar-icons) - 8px); }
  html.sidebar-peek .side-split,
  html.sidebar-pinned:not(.sidebar-icons) .side-split { left: calc(var(--sidebar) - 8px); }
  html.sidebar-pinned .sidebar { width: 100%; height: calc(100vh - 56px); }
  html.sidebar-icons:not(.sidebar-peek) .sidebar { padding: 12px 10px; }
  html.sidebar-icons:not(.sidebar-peek) .nav { overflow: visible; }
  html.sidebar-icons:not(.sidebar-peek) .nav a,
  html.sidebar-icons:not(.sidebar-peek) .nav-parent { justify-content: center; padding: 0; gap: 0; }
  html.sidebar-icons:not(.sidebar-peek) .nav a.nav-tall { height: 42px; min-height: 42px; padding-top: 0; padding-bottom: 0; align-items: center; }
  html.sidebar-icons:not(.sidebar-peek) .nav a .bi,
  html.sidebar-icons:not(.sidebar-peek) .nav-parent .bi { font-size: 18px; }
  html.sidebar-icons:not(.sidebar-peek) .nav-caret { display: none; }
  html.sidebar-icons:not(.sidebar-peek) .nav-sub a { justify-content: flex-start; padding: 0 12px; height: 36px; }
  html.sidebar-icons:not(.sidebar-peek) .nav a .nav-label,
  html.sidebar-icons:not(.sidebar-peek) .nav-parent .nav-label {
    position: absolute; left: calc(100% + 22px); top: 50%; z-index: 5;
    transform: translateY(-50%);
    opacity: 0; pointer-events: none; white-space: nowrap;
    padding: 6px 10px; font-size: 13px; font-weight: 600;
    background: var(--ink); color: #fff; border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .16);
    transition: opacity .12s ease;
  }
  html.sidebar-icons:not(.sidebar-peek) .nav a .nav-label::before,
  html.sidebar-icons:not(.sidebar-peek) .nav-parent .nav-label::before {
    content: ""; position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent; border-right-color: var(--ink);
  }
  html.sidebar-icons:not(.sidebar-peek) .nav a:hover .nav-label,
  html.sidebar-icons:not(.sidebar-peek) .nav a:focus-visible .nav-label,
  html.sidebar-icons:not(.sidebar-peek) .nav-parent:hover .nav-label,
  html.sidebar-icons:not(.sidebar-peek) .nav-parent:focus-visible .nav-label { opacity: 1; }
  html.sidebar-icons:not(.sidebar-peek) .nav-group:hover .nav-parent .nav-label,
  html.sidebar-icons:not(.sidebar-peek) .nav-group:focus-within .nav-parent .nav-label { opacity: 0; }
  html.sidebar-icons:not(.sidebar-peek) .nav-sub a .nav-label {
    position: static; opacity: 1; transform: none; background: transparent; color: inherit;
    box-shadow: none; padding: 0; pointer-events: auto;
  }
  html.sidebar-icons:not(.sidebar-peek) .nav-sub a .nav-label::before { display: none; }
}
@media (max-width: 980px) {
  .auth-stage { align-items: stretch; padding: 16px 12px; }
  .auth { grid-template-columns: 1fr; min-height: 0; border-radius: 26px; }
  .auth-hero { padding: 28px 24px 32px; }
  .auth-hero h1 { margin-top: 28px; font-size: 34px; }
  .auth-hero-lead { font-size: 15px; }
  .auth-points { display: none; }
  .auth-panel { --auth-field-font: 16px; padding: 28px 20px 32px; }
  .auth-panel h2 { font-size: 30px; }
  .auth-panel .field input { font-size: var(--auth-field-font); }
  .shell { grid-template-columns: 1fr; }
  .main { grid-column: 1; }
  .sidebar { position: fixed; z-index: 20; top: 56px; height: calc(100vh - 56px); transform: translateX(-105%); transition: .2s; width: var(--sidebar); }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .side-toggle { display: grid; }
  .side-toggle[aria-expanded="true"] .side-toggle-glyph::after { transform: scaleX(-1) rotate(45deg); }
  .topbar-brand { background: #fff; }
  #chat-dock { right: 14px; bottom: 14px; }
  .cv-view { flex-direction: column; }
  .cv-actions { position: static; opacity: 1; pointer-events: auto; background: transparent; }
  .cv-item:hover .cv-summary,
  .cv-item:focus-within .cv-summary { padding-right: 0; }
  .grid-4, .grid-2, .grid-2.even, .split, .criteria-grid, .form-grid, .fields-inline,
  .fields-inline[class*="fit-"],
  .activity .fields-inline.fit-effort,
  .activity .fields-inline.fit-scope { grid-template-columns: 1fr; }
  .issue-rail, .issue-split, .side-split { display: none; }
  .issue-side, html.issue-collapsed .issue-side { border-left: 0; padding-left: 0; margin-left: 0; min-height: 0; }
  html.issue-collapsed .split { grid-template-columns: 1fr; }
  html.issue-collapsed .issue-panel { display: flex; }
  .ql-toolbar.ql-snow { overflow-x: auto; }
  .flow-add input { width: 100%; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
  html.sidebar-pinned:not(.sidebar-icons) .logo-mark,
  html.sidebar-peek .logo-mark { display: block; }
  html.sidebar-pinned:not(.sidebar-icons) .logo-word,
  html.sidebar-peek .logo-word { display: none; }
  .top-search input { font-size: 16px; }
  .table-card { overflow-x: auto; }
}
.ai-box { margin: 12px 0; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.field-head > span { min-width: 0; }
.ai-dialog { width: min(560px, calc(100% - 24px)); }
.ai-sub { display: block; margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.btn.is-on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.search-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.section-title form.search-form.has-ai { max-width: 440px; }
.search-line .search { flex: 1 1 140px; width: auto; min-width: 0; }
.search-form.has-ai .search { max-width: none; }
.ql-snow.ql-toolbar button.ai-tool,
.ql-snow.ql-toolbar button.ai-tool:hover,
.ql-snow.ql-toolbar button.ai-tool:focus {
  width: auto; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; float: none;
}
.ql-snow.ql-toolbar button.ai-tool.ai-tool-icon { width: 36px; min-width: 36px; padding: 0; }
.ql-snow.ql-toolbar button.ai-tool:hover { background: var(--bg-alt); }
.ql-snow.ql-toolbar button.ai-tool:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.ql-snow.ql-toolbar button.ai-tool.is-on,
.ql-snow.ql-toolbar button.ai-tool.is-on:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.mic-frame { position: relative; }
.mic-frame .ql-editor { padding-bottom: 48px; }
.editor-mic {
  position: absolute; right: 8px; bottom: 8px; z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); cursor: pointer;
}
.editor-mic:hover { background: var(--bg-alt); }
.editor-mic:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.editor-mic.is-on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
table.data tfoot td { font-weight: 650; border-top: 1px solid var(--line); }
[data-ai-catalog-list] { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
.dash-gap { margin-top: 16px; }
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 168px; margin: 0 0 16px; padding: 28px 32px; border-radius: var(--radius); color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.hero::before {
  content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 68%);
}
.hero-copy, .hero-meter { position: relative; min-width: 0; }
.hero-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hero h2 { margin: 0; max-width: 640px; font-size: 32px; font-weight: 700; line-height: 1.15; color: var(--on-brand); }
.hero p { margin: 10px 0 0; max-width: 520px; font-size: 13px; opacity: .9; }
.hero-meter { width: 160px; height: 160px; flex: none; }
.hero-meter .chart { width: 100%; height: 100%; }
.meter-center, .ring-center {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; text-align: center;
}
.meter-center strong, .ring-center strong { font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hero .meter-center strong { font-size: 28px; color: var(--on-brand); }
.hero .meter-center span { margin-top: 4px; font-size: 12px; color: var(--on-brand); opacity: .85; }
.ring-center span { margin-top: 4px; font-size: 12px; color: var(--body); }
.ring-center.over strong { color: var(--danger); }
.chart-card { display: flex; flex-direction: column; gap: 8px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.chart-head h3 { margin: 0; font-size: 13px; font-weight: 650; }
.chart-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; color: var(--body); font-size: 13px; }
.chart-note span { min-width: 0; }
.chart { width: 100%; min-width: 0; }
.chart-flow { height: 240px; }
.chart-columns { height: 220px; }
.activity-report-stats { margin-bottom: 16px; }
.activity-report-charts, .allowance-effort-charts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.activity-report-charts.is-single { grid-template-columns: 1fr; }
.activity-report-donuts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.activity-donut-row {
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px;
  color: var(--ink); font-size: 13px;
}
button.activity-donut-row {
  width: 100%; border: 0; background: transparent; border-radius: var(--radius-sm);
  font: inherit; text-align: left; cursor: pointer;
}
button.activity-donut-row:hover,
button.activity-donut-row.is-on { background: var(--bg-alt); }
button.activity-donut-row:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.chart-card.is-on { box-shadow: 0 0 0 2px var(--brand); }
.activity-slice-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.activity-slice-bar[hidden] { display: none; }
.activity-donut-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.activity-donut-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-donut-row strong { font-variant-numeric: tabular-nums; }
.activity-donut-row em { min-width: 36px; text-align: right; color: var(--muted); font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .activity-report-charts, .allowance-effort-charts, .activity-report-donuts { grid-template-columns: 1fr; }
}
.chart-ring { height: 160px; }
.chart-spark, .stat-spark { height: 32px; }
.stat-spark { flex: 1 0 100%; }
.chart-mini { width: 64px; height: 64px; }
.ring-wrap { position: relative; width: 160px; height: 160px; margin: 0 auto; flex: none; }
.ring-wrap .chart { width: 100%; height: 100%; }
.ring-wrap.mini { width: 64px; height: 64px; margin: 0; }
.chart-bars { height: calc(var(--rows, 5) * 32px); min-height: 64px; }
.delta { height: auto; min-height: 24px; margin-top: 8px; gap: 4px; white-space: normal; }
.delta-ok { background: var(--ok-soft); color: var(--ok); }
.delta-danger { background: var(--danger-soft); color: var(--danger); }
.delta-flat { background: var(--bg-alt); color: var(--body); }
.split-bar { display: flex; height: 14px; overflow: hidden; border-radius: 999px; background: var(--bg-alt); }
.split-bar span { display: block; height: 100%; min-width: 0; }
.split-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.split-pills a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.split-pills a:hover { background: var(--bg-alt); }
.split-pills a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.split-pills i { display: block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tickets-page {
  margin: 0; padding: 0; overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .04);
}
.tickets-page-section { padding: 22px 24px; }
.tickets-page-section + .tickets-page-section { border-top: 1px solid var(--line); }
.tickets-page-section.tickets-page-section--stats { padding-bottom: 8px; }
.tickets-page-section.tickets-page-section--stats + .tickets-page-section { padding-top: 8px; }
.tickets-page-section-title {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
}
.tickets-stats { display: flex; flex-direction: column; gap: 12px; }
.tickets-stats-head { display: flex; align-items: center; gap: 12px; }
.tickets-stats-head .tickets-page-section-title { flex: none; }
.tickets-stats-bar {
  flex: 1; min-width: 0; display: flex; height: 8px; overflow: hidden; border-radius: 999px; background: #eef2f6;
}
.tickets-stats-bar span { display: block; height: 100%; min-width: 0; }
.tickets-stats-bar span,
.tickets-stats-chip i {
  background: var(--swatch);
  background: hsl(from var(--swatch) h s calc(l * .78));
}
.tickets-stats-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tickets-stats-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s;
}
.tickets-stats-chip i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tickets-stats-chip strong { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.tickets-stats-chip:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(15, 23, 42, .05); }
.tickets-stats-chip.is-active {
  background: var(--brand-soft); border-color: #c5d9ea; box-shadow: inset 0 0 0 1px rgba(58, 122, 175, .25);
}
.tickets-stats-chip.is-active strong { color: var(--brand); }
.tickets-page-table-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line);
}
.tickets-page-table-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--body);
}
.tickets-page-table-count { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.tickets-page-filter-tag {
  display: inline-flex; align-items: center; max-width: 100%; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 650;
}
.tickets-page-table-foot .tickets-grid-pager-host {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; flex: 1 1 280px;
  margin: 0; padding: 0; border: 0;
}
.tickets-page-table-foot .tickets-grid-pager-host:empty { display: none; }
.tickets-page .tickets-grid-pager.grid-pager { margin: 0; gap: 6px; justify-content: flex-end; }
.tickets-page-table-body { overflow: auto; margin: 0 -4px; min-width: 0; max-width: 100%; }
.tickets-page .tickets-data-grid { width: 100%; }
.tickets-page .tickets-data-grid .ticket-col { width: auto; min-width: 12rem; }
.tickets-page .tickets-data-grid.is-col-sized .ticket-col { min-width: 0; }
.tickets-page .tickets-data-grid .ticket-line {
  display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%;
}
.tickets-page .tickets-data-grid .ticket-code { flex: none; white-space: nowrap; font-weight: 400; }
.tickets-page .tickets-data-grid .ticket-subject {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--body); font-weight: 450;
}
.tickets-page .tickets-data-grid th {
  padding-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: normal; text-transform: none; color: #64748b;
}
.tickets-page .tickets-data-grid thead th:has(.th-wrap) { padding: 0; }
.tickets-page .tickets-data-grid .th-wrap {
  display: flex; align-items: center; gap: 4px; min-height: 36px; min-width: 0; padding: 0 54px 0 12px;
}
.tickets-page .tickets-data-grid .th-label {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tickets-page .tickets-data-grid .th-filter {
  position: absolute; top: 50%; right: 26px; z-index: 1; flex: none;
  margin: 0; transform: translateY(-50%);
}
.tickets-page .tickets-data-grid .th-wrap .sort-mark { margin-left: 0; flex: none; }
.tickets-page .tickets-data-grid tbody tr:not(:has(.empty)) > td { padding-top: 4px; padding-bottom: 4px; height: 40px; vertical-align: middle; overflow: hidden; white-space: nowrap; }
.tickets-page .tickets-data-grid td:nth-child(3) .badge {
  display: inline-block; max-width: 100%; height: 28px; min-height: 0; padding: 0 10px;
  line-height: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
  font-weight: 400;
}
.tickets-page .tickets-data-grid .ticket-assignee {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0;
  font-weight: 400; color: var(--ink);
}
.tickets-page .tickets-data-grid .ticket-person-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.person-chip { position: relative; display: inline-flex; max-width: 100%; min-width: 0; vertical-align: middle; }
.person-chip-main {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0;
  color: inherit; font-weight: inherit; border-radius: 8px;
}
.person-chip-main:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.person-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.person-chip .person-level { display: inline-flex; align-items: center; flex: none; font-size: 14px; line-height: 1; }
table.data .ticket-assignee {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0;
  font-weight: 400; color: var(--ink); white-space: nowrap;
}
table.data .ticket-person-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
table.data .ticket-assignee-mark {
  --badge: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0;
  flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--badge) 16%, #fff);
  color: color-mix(in srgb, var(--badge) 72%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge) 34%, transparent);
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap;
}
table.data .ticket-assignee-mark.has-photo { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
table.data .ticket-assignee-mark.has-photo img { width: 28px; height: 28px; object-fit: cover; display: block; }
.person-chip .person-level-junior { color: var(--info); }
.person-chip .person-level-mid { color: var(--brand); }
.person-chip .person-level-senior { color: var(--ok); }
.person-chip .person-level-master { color: var(--warn); }
.person-chip-mark {
  --badge: var(--brand);
  width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0;
  justify-content: center; flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--badge) 16%, #fff);
  color: color-mix(in srgb, var(--badge) 72%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge) 34%, transparent);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.person-chip-mark.has-photo { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.person-chip-mark.has-photo img { width: 28px; height: 28px; object-fit: cover; display: block; }
.meta .person-chip-mark,
.attach-meta .person-chip-mark,
.hint .person-chip-mark,
.act-detail .person-chip-mark,
.rate-given .person-chip-mark,
.chip.pick .person-chip-mark,
.appt .person-chip-mark {
  width: 22px; min-width: 22px; height: 22px; min-height: 22px; font-size: 10px;
}
.meta .person-chip-mark.has-photo img,
.attach-meta .person-chip-mark.has-photo img,
.hint .person-chip-mark.has-photo img,
.act-detail .person-chip-mark.has-photo img,
.rate-given .person-chip-mark.has-photo img,
.chip.pick .person-chip-mark.has-photo img,
.appt .person-chip-mark.has-photo img { width: 22px; height: 22px; }
.appt .person-chip-main,
.meta .person-chip-main,
.attach-meta .person-chip-main,
.hint .person-chip-main { gap: 6px; }
.assign-face {
  position: absolute; left: 7px; top: 50%; z-index: 1; transform: translateY(-50%); pointer-events: none;
}
.assign-face[hidden] { display: none; }
.assign-picker.has-face > input[type="text"] { padding-left: 42px; }
table.data .person-chip-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0;
  flex: none; border-radius: 50%; line-height: 1; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
table.data .person-chip-mark.has-photo { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
table.data .person-chip-mark.has-photo img { width: 28px; height: 28px; object-fit: cover; display: block; }
table.data.list-grid .person-chip-mark {
  width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0;
  border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1;
  overflow: visible; text-overflow: clip; white-space: nowrap;
}
.person-pop,
.person-pop[popover] {
  position: fixed; inset: auto; left: 0; top: 0; z-index: 120;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  width: min(300px, calc(100vw - 16px));
  margin: 0; padding: 0; overflow: hidden;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12), 0 1px 2px rgba(15, 23, 42, .05);
}
.person-pop[hidden] { display: none; }
.person-pop-head { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; }
.person-pop-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.person-pop-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3;
}
.person-pop-chat {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px;
  color: var(--brand); background: var(--brand-soft); cursor: pointer;
}
.person-pop-chat:hover,
.person-pop-chat:focus-visible {
  background: var(--brand); color: #fff;
}
.person-pop-chat i { font-size: 14px; line-height: 1; }
.person-pop-email,
.person-pop-meta {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 450; line-height: 1.35;
}
.person-pop-email { color: var(--muted); }
.person-pop-meta { color: var(--body); }
.person-pop-score { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.person-pop-score strong { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.avg-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.avg-score.is-low { color: var(--danger); }
.avg-score.is-mid { color: var(--star); }
.avg-score.is-high { color: var(--nav-sliders); }
.avg-score.is-top { color: var(--ok); }
.person-pop-level {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  max-width: 58%; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.person-pop-level > i { font-size: 12px; line-height: 1; }
.person-pop-level > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.person-pop-level small { font-size: 11px; font-weight: 600; opacity: .8; }
.person-pop-level small::before { content: "·"; margin-right: 4px; }
.person-pop-level.person-level-junior { color: var(--info); background: var(--info-soft); }
.person-pop-level.person-level-mid { color: var(--brand); background: var(--brand-soft); }
.person-pop-level.person-level-senior { color: var(--ok); background: var(--ok-soft); }
.person-pop-level.person-level-master { color: var(--warn); background: var(--warn-soft); }
.person-pop-facts {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 14px 12px; border-top: 1px solid var(--line);
}
.person-pop-mods { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
.person-pop-kicker { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.person-pop-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.person-pop-chips span {
  font-size: 11px; font-weight: 650; line-height: 1.3;
  padding: 2px 6px; border-radius: 6px;
  background: var(--bg-alt); color: var(--body);
}
.person-pop-foot { border-top: 1px solid var(--line); }
.person-pop-foot a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 14px; font-size: 12px; font-weight: 650; line-height: 1.3;
  color: var(--brand); text-decoration: none;
  background: color-mix(in srgb, var(--bg) 70%, var(--card));
}
.person-pop-foot a:hover { background: var(--brand-soft); }
.person-pop-foot a i { font-size: 13px; }
.person-sheet { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 16px; }
.person-sheet:last-child { margin-bottom: 0; }
.person-sheet-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.person-sheet-face { width: 56px; height: 56px; font-size: 18px; }
.person-sheet-head h2 { margin: 0; font-size: 22px; }
.person-sheet > h2 { margin: 0; font-size: 16px; }
.person-facts { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 10px 16px; margin: 0; }
.person-facts dt { margin: 0; color: var(--muted); font-size: 13px; }
.person-facts dd { margin: 0; }
.person-exp { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.person-exp li { display: flex; flex-direction: column; gap: 2px; }
.person-exp span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .person-facts { grid-template-columns: 1fr; gap: 2px 0; }
  .person-facts dd { margin-bottom: 8px; }
}
.tickets-page .tickets-data-grid .ticket-assignee-mark,
.tickets-page .board-card .ticket-assignee-mark {
  --badge: var(--brand);
  width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0;
  justify-content: center; flex: none; border-radius: 8px;
  background: color-mix(in srgb, var(--badge) 16%, #fff);
  color: color-mix(in srgb, var(--badge) 72%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge) 34%, transparent);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.tickets-page .tickets-data-grid .ticket-assignee-mark { border-radius: 50%; }
.tickets-page .tickets-data-grid .ticket-assignee-mark.has-photo,
.tickets-page .board-card .ticket-assignee-mark.has-photo {
  overflow: hidden; border-radius: 50%; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.tickets-page .tickets-data-grid .ticket-assignee-mark.has-photo img,
.tickets-page .board-card .ticket-assignee-mark.has-photo img {
  width: 28px; height: 28px; object-fit: cover; display: block;
}
.tickets-page .tickets-data-grid .ticket-priority,
.tickets-page .board-card .ticket-priority {
  --priority: var(--muted);
  height: auto; min-height: 0; padding: 0; border-radius: 0;
  background: transparent; color: var(--priority); box-shadow: none;
  font-weight: 400;
}
.tickets-list-footer {
  display: flex; justify-content: center; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.tickets-server-pager { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tickets-server-pager-label { font-size: 13px; font-weight: 600; color: var(--body); font-variant-numeric: tabular-nums; }
.tickets-views a { gap: 8px; }
.tickets-views a .bi { font-size: 15px; }
.board-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.board-head .view-switch { margin-left: 0; }
.board-head-note { margin: 4px 0 0; color: var(--body); font-size: 13px; }
.board-scroll { overflow-x: auto; padding: 16px 24px 24px; }
.board-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; align-items: start; min-width: min-content; }
.board-cols--detail { grid-auto-columns: 256px; }
.board-col {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.board-col.is-over { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px var(--brand-ring); }
.board-col.is-target { border-color: var(--brand); border-style: dashed; }
.board-col.is-blocked { opacity: .45; cursor: not-allowed; }
.board-col.is-blocked .board-col-body, .board-col.is-blocked .board-card { cursor: not-allowed; }
.board-col-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-top: 3px solid var(--col, var(--muted)); border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--line);
}
.board-col-head h3 { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.board-col-count { font-variant-numeric: tabular-nums; }
.board-col-body { display: flex; flex-direction: column; gap: 8px; min-height: 96px; max-height: 70vh; overflow-y: auto; padding: 8px; }
.board-col-empty { margin: 0; padding: 20px 8px; text-align: center; color: var(--muted); font-size: 13px; }
.board-card {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); cursor: grab;
  transition: border-color .15s, box-shadow .15s, opacity .15s;
}
.board-card:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.board-card.is-dragging { opacity: .4; cursor: grabbing; }
.board-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.board-card-key { font-size: 12px; font-weight: 400; color: var(--brand); }
.board-card-move {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; flex: none;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer;
}
.board-card-move:hover { background: var(--bg-alt); color: var(--ink); }
.board-card-move:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.board-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere;
}
.board-card-title:hover { color: var(--brand); }
.board-card a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); border-radius: 4px; }
.board-card-status { align-self: flex-start; height: 20px; border-radius: 4px; font-size: 11px; font-weight: 400; }
.board-card-company { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--body); font-size: 12px; }
.board-card-company .bi { flex: none; color: var(--muted); }
.board-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.board-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.board-card-due { display: inline-flex; align-items: center; gap: 4px; color: var(--body); font-size: 12px; white-space: nowrap; }
.board-card-due .bi { color: var(--muted); }
.board-card-due.is-late, .board-card-due.is-late .bi { color: var(--danger); font-weight: 650; }
.tickets-page .board-card .ticket-assignee-mark { flex: none; }
.board-more { display: block; padding: 8px; text-align: center; font-size: 12px; font-weight: 650; }
.board-move { display: grid; gap: 12px; margin: 0; }
.board-move h2 { margin: 0; }
.board-move-ticket { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; color: var(--body); font-size: 13px; }
.board-move-ticket strong { color: var(--ink); }
.board-move-ticket .badge { height: 20px; border-radius: 4px; font-size: 11px; font-weight: 400; }
.board-move-options { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.board-move-option {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.board-move-option:hover { background: var(--bg-alt); }
.board-move-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.board-move-option:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--brand-ring); }
.board-move-option input { flex: none; margin: 0; accent-color: var(--brand); }
.board-move-option-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 650; }
.board-move-option .bi { color: var(--muted); font-size: 14px; flex: none; }
.board-move-flag { height: 20px; background: var(--brand-soft); color: var(--brand); font-size: 11px; }
.board-move-extra { display: grid; gap: 10px; padding: 2px 0 8px 12px; border-left: 2px solid var(--brand-ring); }
.board-move-extra[hidden] { display: none; }
.board-move-extra .field { margin: 0; }
.board-move-extra textarea { min-height: 72px; }
.board-move-assignee { margin: 0; }
.board-move-assignee.is-static {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  color: var(--body); font-size: 13px;
}
.board-move-assignee.is-static span { color: var(--muted); }
.board-move-assignee.is-static strong { color: var(--ink); font-weight: 650; }
.board-move-common { display: grid; gap: 12px; }
.board-move-common .field { margin: 0; }
.board-move-common textarea { min-height: 80px; }
.board-move-common .composer { margin-top: 0; }
.board-move-common .ql-container.ql-snow { min-height: 140px; font-size: 14px; }
.board-move-common .ql-editor { min-height: 140px; max-height: 300px; overflow-y: auto; }
.board-move-dialog { width: min(780px, calc(100vw - 24px)); }
.board-move .assign-menu { max-height: 200px; }
.tickets-analytics { display: flex; flex-direction: column; }
.users-analytics { display: flex; flex-direction: column; }
.users-analytics > .grid-2 { align-items: start; }
.users-analytics > .grid-2 > .card { min-width: 0; }
.analytics-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.analytics-figure strong { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.analytics-figure span { color: var(--body); font-size: 13px; }
.donut-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.donut-wrap { position: relative; width: 190px; height: 190px; flex: none; margin: 0 auto; }
.donut-wrap .chart { width: 100%; height: 100%; }
.donut-legend { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.donut-legend a {
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: 13px; text-decoration: none;
}
.donut-legend a:hover { background: var(--bg-alt); }
.donut-legend a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.donut-legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.donut-legend span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend strong { font-variant-numeric: tabular-nums; }
.donut-legend em { min-width: 36px; text-align: right; color: var(--muted); font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-stack { height: calc(var(--rows, 5) * 36px + 40px); min-height: 120px; }
@media (max-width: 960px) {
  .board-head { padding: 16px 16px 0; }
  .board-scroll { padding: 14px 16px 18px; }
  .tickets-page-section { padding: 18px 16px; }
  .tickets-page-table-foot { flex-direction: column; align-items: stretch; }
  .tickets-page-table-foot .tickets-grid-pager-host { flex: 1 1 auto; }
  .tickets-page .tickets-grid-pager.grid-pager { width: 100%; justify-content: space-between; }
}
.allowance-page { display: flex; flex-direction: column; gap: 16px; }
.allowance-head h2,
.allowance-log-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.allowance-head p,
.allowance-log-head p { margin: 4px 0 0; color: var(--body); font-size: 13px; }
.allowance-split {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.allowance-split .allowance-grid,
.allowance-split .allowance-empty { grid-column: 1; grid-row: 1; }
.allowance-split .allowance-contracts { grid-column: 2; grid-row: 1; min-width: 0; overflow-x: auto; }
.allowance-split .allowance-history { grid-column: 1 / -1; }
.allowance-split .allowance-grid { grid-template-columns: 1fr; }
.allowance-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.allowance-card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 16px 16px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.allowance-card.is-over { border-color: #fecaca; background: linear-gradient(180deg, #fff 0%, #fff7f7 100%); }
.allowance-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.allowance-mark {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.allowance-card.is-over .allowance-mark { background: var(--danger-soft); color: var(--danger); }
.allowance-name {
  min-width: 0; font-size: 14px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.allowance-flag {
  margin-left: auto; height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--danger-soft); color: var(--danger); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center;
}
.allowance-remain { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.allowance-remain strong {
  font-size: 28px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.allowance-remain span { color: var(--body); font-size: 13px; font-weight: 600; }
.allowance-remain.is-over strong { color: var(--danger); }
.allowance-meter {
  height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden;
}
.allowance-meter span {
  display: block; height: 100%; min-width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.allowance-card.is-over .allowance-meter span { background: var(--danger); }
.allowance-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.allowance-facts div {
  padding: 8px 10px; border-radius: 10px; background: var(--bg);
}
.allowance-facts dt { margin: 0; color: var(--muted); font-size: 11px; font-weight: 650; }
.allowance-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.allowance-log { padding: 0; overflow: hidden; }
.allowance-log:hover { transform: none; }
.allowance-log-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
}
.allowance-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 28px 16px; text-align: center;
}
.allowance-empty .bi { font-size: 22px; color: var(--muted); margin-bottom: 4px; }
.allowance-empty strong { font-size: 14px; }
.allowance-empty span { color: var(--body); font-size: 13px; max-width: 42ch; }
.allowance-empty--inset { border: 0; box-shadow: none; background: transparent; }
.allowance-table-wrap { overflow: auto; }
.activity-person {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  font-weight: 600; color: var(--ink);
}
.activity-person-mark {
  --badge: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0;
  flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--badge) 16%, #fff);
  color: color-mix(in srgb, var(--badge) 72%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge) 34%, transparent);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.activity-person-mark.has-photo { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.activity-person-mark.has-photo img { width: 28px; height: 28px; object-fit: cover; display: block; }
.activity-ticket { color: inherit; text-decoration: none; }
.activity-ticket-code { color: var(--brand); font-weight: 400; white-space: nowrap; }
.activity-ticket-subject { color: var(--body); font-weight: 450; }
.allowance-log .ticket-line,
.report-efforts .ticket-line {
  display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; min-width: 0;
  color: inherit; text-decoration: none;
}
.allowance-log .ticket-code,
.report-efforts .ticket-code { flex: none; color: var(--brand); font-weight: 400; white-space: nowrap; }
.allowance-log .ticket-subject,
.report-efforts .ticket-subject {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--body); font-weight: 450;
}
.allowance-note { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allowance-status--approved, .allowance-status--logged { background: var(--ok-soft); color: var(--ok); }
.allowance-status--pending_approval { background: var(--warn-soft); color: var(--warn); }
.allowance-status--rejected, .allowance-status--void { background: var(--danger-soft); color: var(--danger); }
.table-card > h3, .card > h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.report-bar { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.report-bar span { display: block; height: 8px; min-width: 2px; border-radius: 999px; background: var(--brand); }
.report-bar.is-done span { background: var(--ok); }
.report-bar em { font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; }
.rating-stars { display: inline-flex; gap: 1px; color: var(--star); white-space: nowrap; font-size: 13px; }
.rating-row { display: grid; grid-template-columns: 168px 1fr 40px; align-items: center; gap: 12px; padding: 6px 0; }
.rating-row strong { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .allowance-grid { grid-template-columns: 1fr 1fr; }
  .allowance-split { grid-template-columns: 1fr; }
  .allowance-split .allowance-grid,
  .allowance-split .allowance-empty,
  .allowance-split .allowance-contracts,
  .allowance-split .allowance-history { grid-column: auto; grid-row: auto; }
  .allowance-split .allowance-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .allowance-grid,
  .allowance-split .allowance-grid { grid-template-columns: 1fr; }
}
.quota-row {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0;
  color: inherit; text-decoration: none; border-radius: var(--radius-sm);
}
.quota-row + .quota-row { border-top: 1px solid var(--line); }
.quota-row:hover { background: var(--bg-alt); }
.quota-row:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.quota-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.quota-copy strong { font-size: 13px; }
.quota-copy span { color: var(--body); font-size: 13px; }
.wait-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wait-list a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-height: 36px; padding: 8px;
  border-radius: var(--radius-sm); color: inherit; text-decoration: none;
}
.wait-list a:hover { background: var(--bg-alt); }
.wait-list a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.wait-list strong, .wait-list .ticket-code { font-size: 13px; font-weight: 400; }
.wait-list a > span:not(.ticket-code) { flex: 1 1 140px; min-width: 0; color: var(--body); font-size: 13px; overflow-wrap: anywhere; }
.wait-list em { font-style: normal; font-size: 12px; color: var(--muted); }
.flow-today { margin: 12px 0; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.chart-card .empty { padding: 24px 12px; }
.empty .bi { display: block; margin-bottom: 8px; font-size: 22px; color: var(--muted); }
.table-card { padding: 8px 8px 4px; overflow-x: auto; min-width: 0; max-width: 100%; }
.table-card > .hint { margin: 8px 4px 4px; }
@media (max-width: 720px) {
  .top-org-logo, .top-org-logo img { max-width: 72px; }
  .top-create { width: 32px; min-width: 32px; padding: 0; }
  .top-create span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .hero { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .hero h2 { font-size: 24px; }
  .hero-meter { align-self: center; }
  .chart-flow { height: 200px; }
}
@media print {
  .sidebar, .topbar, .composer, .row-actions, .no-print, #chat-dock, .issue-rail, .side-split, .editor-mic, dialog { display: none !important; }
  html.activity-collapsed .activity-body { display: block !important; }
  #basic-details[hidden],
  .ticket-fold-body[hidden] { display: block !important; }
  .act-print-label { display: block !important; margin: 14px 0 4px; font-size: 13px; }
  .activity-pane[hidden] { display: none !important; }
  [data-act-clip] > .is-clipped { display: grid !important; }
  html.issue-collapsed .issue-panel { display: flex !important; }
  html.issue-collapsed .split { grid-template-columns: 1fr !important; }
  .shell { display: block; }
  .card { box-shadow: none; }
  body { background: #fff; }
}
.brief-card,
.attach-card,
.relate-card,
.activity.card,
.offer-banner {
  padding: 12px;
  border-radius: var(--radius-sm);
}
.split > div > .card + .card { margin-top: 16px; }
.activity.card { margin-bottom: 8px; }
.activity-body { padding-top: 4px; }
.ticket-facts .field span,
.activity .field span,
.offer-banner .field span { font-size: 12px; }
.issue-row .assign-picker input[type="text"] { padding: 0 36px 0 8px; }
.issue-row .assign-picker.has-face input[type="text"] { padding-left: 42px; }
.issue-row .assign-clear { top: 0; }
.ticket-head .btn,
.offer-banner .btn,
.brief-card .btn,
.attach-card .btn,
.relate-card .btn,
.activity .btn,
.issue-block .btn,
#review-dialog .btn,
#rate-dialog .btn,
#consultant-card .btn { font-size: 12px; }
.ticket-head .btn:not(.btn-icon),
.offer-banner .btn:not(.btn-icon),
.brief-card .btn:not(.btn-icon),
.attach-card .btn:not(.btn-icon),
.relate-card .btn:not(.btn-icon),
.activity .btn:not(.btn-icon),
.issue-block .btn:not(.btn-icon),
#review-dialog .btn:not(.btn-icon),
#rate-dialog .btn:not(.btn-icon),
#consultant-card .btn:not(.btn-icon) { padding-left: 8px; padding-right: 8px; }

.home-root { scroll-behavior: smooth; background: #fff; }
.home {
  min-height: 100vh;
  color: #191f25;
  background: #fff;
}
.home-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  min-height: 72px; padding: 12px 28px;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-bar.is-scrolled,
.home-bar.is-open {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
  backdrop-filter: blur(16px);
}
.home-section, .home-flow { scroll-margin-top: 88px; }
.home-brand { display: inline-flex; align-items: center; border-radius: 12px; }
.home-brand img { display: block; height: 40px; width: auto; }
.home-bar .home-brand img { height: 42px; }
.home-menu {
  display: none; width: 40px; height: 40px; margin-left: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  place-items: center; cursor: pointer;
}
.home-menu .bi-x-lg { display: none; }
.home-bar.is-open .home-menu .bi-list { display: none; }
.home-bar.is-open .home-menu .bi-x-lg { display: inline-block; }
.home-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.home-links a {
  color: var(--body); font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 999px;
}
.home-links a:hover { color: var(--ink); background: var(--bg-alt); }
.home-links a.is-start {
  background: var(--danger); color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--danger) 32%, transparent);
}
.home-links a.is-start:hover { background: color-mix(in srgb, var(--danger) 82%, #000); color: #fff; }
.home-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; }
.home-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 14px;
}
.home-nav a:hover { background: rgba(15, 23, 42, .05); }
.home-nav a.is-cta { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(58, 122, 175, .28); }
.home-nav a.is-cta:hover { background: var(--brand-hover); color: #fff; }
.home a:focus-visible, .home .btn:focus-visible, .home-menu:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.home .btn-primary {
  width: auto; min-width: 168px; background: #26333e; color: #fff;
  box-shadow: 0 10px 24px rgba(30, 40, 49, .2);
}
.home .btn-primary:hover { background: #151d24; filter: none; }
.home-actions .btn-primary {
  background: var(--danger);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--danger) 32%, transparent);
}
.home-actions .btn-primary:hover { background: color-mix(in srgb, var(--danger) 82%, #000); }
.home .btn-ghost {
  min-width: 168px;
  background: rgba(255, 255, 255, .78);
  border-color: #d6d3d1;
  color: #303942;
  box-shadow: 0 8px 20px rgba(35, 42, 49, .08);
}
.home .btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.home-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 8px 16px 8px 14px;
  border: 1px solid rgba(255, 255, 255, .85); border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  color: #191f25; font-size: 14px; font-weight: 700; letter-spacing: .03em;
}
.home-pill span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.home-kicker {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 0 0 16px; padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent); border-radius: 999px;
  background: var(--brand-soft);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 700;
}
.home-kicker .bi { font-size: 14px; letter-spacing: 0; }
.home-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .home-outcome-visual img {
      animation: homeOutcomeCam linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes homeOutcomeCam {
  from { transform: scale(1.12) translate3d(0, 8%, 0); }
  to { transform: scale(1.12) translate3d(0, -8%, 0); }
}
.home-hero {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(320px, 1.22fr);
  grid-template-areas:
    "copy device"
    "metrics device";
  column-gap: 36px;
  row-gap: 28px;
  align-items: center;
  width: min(1480px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto 0 24px; padding: 120px 0 72px;
  text-align: left;
}
.home-hero-copy { grid-area: copy; width: auto; min-width: 0; max-width: 640px; }
.home-device-slot {
  grid-area: device;
  justify-self: end;
  width: 93.5%;
  max-width: 767px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-device-captions {
  position: relative;
  z-index: 2;
  display: grid;
  width: max-content;
  max-width: 100%;
  margin-bottom: -18px;
  text-align: center;
}
.home-device-caption {
  grid-area: 1 / 1;
  margin: 0;
  padding: 8px 16px 10px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(22, 34, 48, .1);
  color: #191f25;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  transition: opacity .4s ease;
}
.home-device-caption.is-on { opacity: 1; }
.home-device-caption span {
  display: block;
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-device {
  width: 100%;
  padding: 22px 16px 16px;
  border: 1px solid rgba(24, 36, 48, .08);
  border-radius: 28px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 1px rgba(24, 36, 48, .04),
    0 22px 50px rgba(22, 34, 48, .14);
}
.home-device::before {
  content: "";
  display: block;
  width: 7px; height: 7px;
  margin: -8px auto 10px;
  border-radius: 50%;
  background: #d5dce4;
}
.home-device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 44, .06);
  line-height: 0;
}
.home-device-screen picture,
.home-outcome-visual picture { display: contents; }
.home-device-screen img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .4s ease;
}
.home-device-screen img:not(.is-on) {
  position: absolute;
  top: 0; left: 0;
}
.home-device-screen img.is-on { opacity: 1; }
.home-hero-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  color: #191f25;
  font-size: clamp(40px, 4.8vw, 64px); line-height: 1.08; letter-spacing: -.04em; font-weight: 700;
}
.home-title-ask { white-space: nowrap; }
.home-title-brand { display: block; color: var(--brand-word-desk, #303942); }
.brand-word { font-weight: 700; }
.brand-word-desk { color: var(--brand-word-desk, #303942); }
.brand-word-i {
  font-style: normal;
  letter-spacing: 0;
}
.brand-word-i::before {
  content: "";
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin-left: 0.026em;
  margin-right: -0.246em;
  border-radius: 50%;
  background: var(--c-blue);
  vertical-align: calc(1ex + 0.07em);
  overflow: hidden;
}
/* Başlık iz aralığı (-.04em) noktayı kaydırmasın diye i içinde sıfır; aralık burada geri verilir. */
.home-hero-title .brand-word-i { margin-right: -.04em; }
.brand-word-o { color: var(--c-green); }
.brand-word-n { color: var(--c-amber); }
.brand-word-e { color: var(--c-purple); }
.home-slogan-set {
  grid-area: 1 / 1;
  align-self: start;
  min-width: 0;
}
.home-slogan-set:not(.is-on) { visibility: hidden; }
.home-slogan-set:nth-child(2) {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -.03em;
}
.home-slogan-set .home-title-ask,
.home-slogan-set:first-child .home-title-ask { white-space: normal; }
.home-title-blue { color: var(--c-blue); }
.home-lead-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.home-lead-stage.is-leaving,
.home-hero-title.is-leaving {
  animation: none;
  opacity: 0;
  transition: opacity .28s ease;
}
.home-slogan-lead {
  grid-area: 1 / 1;
  align-self: start;
  min-width: 0;
}
.home-slogan-lead:not(.is-on) { visibility: hidden; }
.home-hero-copy > .home-pill,
.home-hero-title,
.home-lead-stage,
.home-actions,
.home-metrics {
  animation: homeFadeUp .72s ease both;
}
.home-hero-title { animation-delay: .08s; }
.home-lead-stage { animation-delay: .16s; }
.home-actions { animation-delay: .24s; }
.home-metrics { animation-delay: .34s; }
@keyframes homeFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.home.is-film-on .home-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}
.home.is-film-on .home-reveal.is-in {
  animation: homeFadeUp .75s cubic-bezier(.16, 1, .3, 1) both;
}
.home.is-film-on .home-outcome:hover,
.home.is-film-on .home-outcome:focus-within { transform: none; }
.home.is-film-on .home-outcome:not(.is-in) {
  opacity: 0;
  transform: translateY(120px) scale(.9);
  filter: blur(8px);
  pointer-events: none;
}
.home.is-film-on .home-outcome.is-in {
  animation: homeCardIn 1s cubic-bezier(.16, 1, .3, 1) both;
}
.home.is-film-on .home-outcome:not(.is-in) .home-outcome-copy { opacity: 0; transform: translate(-36px, 20px); }
.home.is-film-on .home-outcome.is-in .home-outcome-copy {
  animation: homeCopyIn .85s cubic-bezier(.16, 1, .3, 1) .12s both;
}
.home.is-film-on .home-outcome:not(.is-in) .home-outcome-visual { opacity: 0; transform: translate(40px, 24px) scale(1.06); }
.home.is-film-on .home-outcome.is-in .home-outcome-visual {
  animation: homeVisualIn .95s cubic-bezier(.16, 1, .3, 1) .18s both;
}
.home.is-film-on .home-outcome.is-quiet { box-shadow: 0 16px 40px rgba(15, 23, 42, .05); }
.home.is-film-on .home-outcome.is-scene {
  border-color: color-mix(in srgb, var(--scene) 48%, transparent);
  box-shadow: 0 32px 80px rgba(15, 23, 42, .16);
}
.home.is-film-on .home-outcome.is-scene .home-outcome-meta span {
  color: #fff;
  background: var(--scene);
  border-color: var(--scene);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--scene) 22%, transparent);
}
@keyframes homeCardIn {
  0% { opacity: 0; transform: translateY(120px) scale(.9); filter: blur(8px); }
  55% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes homeCopyIn {
  from { opacity: 0; transform: translate(-36px, 20px); }
  to { opacity: 1; transform: none; }
}
@keyframes homeVisualIn {
  from { opacity: 0; transform: translate(40px, 24px) scale(1.06); }
  to { opacity: 1; transform: none; }
}
.home-lead {
  margin: 16px 0 0; max-width: none; color: #515b65; font-size: 20px; line-height: 1.65;
}
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; justify-content: flex-start; }
.home-metrics {
  grid-area: metrics;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%; margin: 8px 0 0; padding: 0;
  list-style: none; background: none; border: 0; border-radius: 0;
  box-shadow: none; overflow: visible; text-align: left; gap: 12px;
}
.home-metrics li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  min-width: 0; padding: 14px 14px 14px 12px;
  border: 1px solid color-mix(in srgb, var(--tone, var(--c-blue)) 18%, #fff);
  border-radius: 18px;
  background:
    radial-gradient(120px 80px at 100% 0%, color-mix(in srgb, var(--tone, var(--c-blue)) 18%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--tone, var(--c-blue)) 10%, #fff), #fff 62%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-metrics li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--tone, var(--c-blue)) 18%, rgba(15, 23, 42, .06));
}
.home-metric-icon {
  grid-row: span 2;
  display: grid; width: 28px; place-items: center;
  background: none; color: var(--tone, var(--c-blue)); font-size: 22px;
  box-shadow: none;
}
.home-metrics strong {
  display: block; color: #191f25;
  font-size: 15px; letter-spacing: -.02em; line-height: 1.2; font-weight: 700;
}
.home-metric-text { display: block; color: #515b65; font-size: 13px; line-height: 1.4; }
.home-section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0; }
.home-band { width: 100%; background: transparent; }
.home-outcomes.home-band {
  position: relative;
  overflow: hidden;
  background:
    #fff;
}
.home-outcomes.home-band::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--nav-grid) 30%, transparent) .75px, transparent .75px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 36%, transparent 68%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 36%, transparent 68%, #000);
}
.home-flow.home-band {
  background:
    radial-gradient(color-mix(in srgb, var(--nav-pie) 28%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
    #fff;
}
.home-band.home-section { width: 100%; padding-left: 0; padding-right: 0; }
.home-band > .home-section-head,
.home-band > .home-outcomes-list,
.home-band > .home-path,
.home-band > ol { position: relative; z-index: 1; width: min(1240px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.home-section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.home-section-head .home-kicker { justify-content: center; }
.home-section-head h2 {
  margin: 0; color: #131722;
  font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.05em; font-weight: 650;
  background: linear-gradient(120deg, #0f172a 0%, #0f172a 55%, var(--brand) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-section-head p:last-child { margin: 16px auto 0; max-width: 640px; color: #5d6472; font-size: 17px; line-height: 1.7; }
.home-apps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin: 0; padding: 0; list-style: none;
}
.home-app {
  --tone: var(--brand); --tone-soft: var(--brand-soft);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  min-width: 0; padding: 26px 24px 28px;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--tone-soft) 55%, #fff) 100%);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-app::before {
  content: "";
  position: absolute; left: 24px; right: 24px; top: 0; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--tone);
  opacity: 0; transform: scaleX(.4); transition: opacity .25s ease, transform .25s ease;
}
.home-app::after {
  content: "";
  position: absolute; right: -36px; bottom: -36px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--tone-soft); opacity: .7; pointer-events: none;
}
.home-app:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tone) 30%, var(--line));
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}
.home-app:hover::before { opacity: 1; transform: scaleX(1); }
.home-app > * { position: relative; z-index: 1; }
.home-app-icon {
  display: grid; width: 42px; height: 42px; flex: none; place-items: center;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 18px;
}
.home-app .home-app-icon {
  width: 56px; height: 56px; border-radius: 16px; font-size: 24px;
  background: #fff; color: var(--tone);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 16%, transparent), 0 8px 18px color-mix(in srgb, var(--tone) 16%, transparent);
}
.home-app:nth-child(4n+2) { --tone: var(--info); --tone-soft: var(--info-soft); }
.home-app:nth-child(4n+3) { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.home-app:nth-child(4n) { --tone: var(--ok); --tone-soft: var(--ok-soft); }
.home-app h3 { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.25; letter-spacing: -.025em; font-weight: 650; }
.home-app p { margin: 8px 0 0; color: var(--body); font-size: 14px; line-height: 1.6; }
@media (max-width: 980px) {
  .home-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-apps { grid-template-columns: 1fr; }
  .home-app { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px; }
  .home-app .home-app-icon { width: 48px; height: 48px; font-size: 20px; }
}
.home-start { scroll-margin-top: 88px; }
.home-start-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.home-start-grid li {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; padding: 28px 24px 24px;
  background: #fff; border: 1px solid rgba(18, 29, 48, .08); border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-start-grid li:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 32%, transparent);
  box-shadow: 0 24px 50px rgba(15, 23, 42, .1);
}
.home-start-grid li span {
  display: grid; width: 52px; height: 52px; margin-bottom: 18px; place-items: center;
  border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff;
  box-shadow: 0 0 0 6px var(--brand-soft), 0 10px 22px var(--brand-ring);
  font-size: 22px; font-weight: 700;
}
.home-start-grid li:not(:last-child)::after {
  content: "";
  position: absolute; top: 53px; left: 96px; right: -16px; height: 0;
  border-top: 2px dashed color-mix(in srgb, var(--brand) 38%, transparent);
  pointer-events: none;
}
@media (max-width: 980px) {
  .home-start-grid li::after { display: none; }
}
.home-start-grid h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.03em; }
.home-start-grid p { margin: 0 0 22px; color: var(--body); line-height: 1.6; }
.home-start-grid a {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-weight: 650;
}
.home-start-grid a:hover { color: var(--brand); }
.home-start-grid a .bi { transition: transform .2s ease; }
.home-start-grid a:hover .bi { transform: translateX(4px); }
.home-outcomes-list { display: grid; gap: 28px; }
.home-outcome {
  --scene: var(--brand);
  --scene-soft: var(--brand-soft);
  display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  min-height: 480px; overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(18, 29, 48, .08); border-radius: 34px;
  box-shadow: 0 24px 74px rgba(15, 23, 42, .09);
  transition: border-color .45s ease, box-shadow .45s ease, transform .45s cubic-bezier(.2, .75, .25, 1);
}
.home-outcome:hover,
.home-outcome:focus-within {
  border-color: color-mix(in srgb, var(--scene) 32%, transparent);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .14);
  transform: translateY(-4px);
}
.home-outcome:nth-child(even) .home-outcome-visual { order: -1; }
.home-outcome-uzman { --scene: var(--info); --scene-soft: var(--info-soft); }
.home-outcome-takip { --scene: var(--warn); --scene-soft: var(--warn-soft); }
.home-outcome-gecmis { --scene: var(--ok); --scene-soft: var(--ok-soft); }
.home-outcome-copy {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: clamp(36px, 4.5vw, 64px);
}
.home-outcome-copy::before {
  content: "";
  position: absolute; left: clamp(36px, 4.5vw, 64px); top: 0;
  width: 72px; height: 4px; border-radius: 0 0 999px 999px;
  background: var(--scene);
}
.home-outcome-meta {
  display: flex; align-items: center; gap: 12px; margin: 0 0 28px;
  color: var(--scene); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.home-outcome-meta span {
  display: inline-grid; width: 42px; height: 42px; place-items: center;
  border-radius: 50%; border: 1px solid var(--brand-ring); background: var(--scene-soft);
  letter-spacing: 0; font-size: 12px;
}
.home-outcome-uzman .home-outcome-meta span,
.home-outcome-takip .home-outcome-meta span,
.home-outcome-gecmis .home-outcome-meta span { border-color: transparent; }
.home-outcome h3 {
  margin: 0 0 16px; color: #111827;
  font-size: clamp(36px, 3.2vw, 52px); letter-spacing: -.045em; line-height: 1.02; font-weight: 700;
}
.home-outcome-copy > p { margin: 0 0 28px; max-width: 460px; color: var(--body); font-size: 16px; line-height: 1.7; }
.home-outcome-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 650; font-size: 15px;
}
.home-outcome-link .bi { color: var(--scene); transition: transform .2s ease; }
.home-outcome-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: calc(100% - 26px); height: 2px;
  border-radius: 999px; background: var(--scene); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.home-outcome-link:hover { color: var(--ink); }
.home-outcome-link:hover::after { transform: scaleX(1); }
.home-outcome-link:hover .bi { transform: translateX(4px); }
.home-outcome-visual { position: relative; min-height: 360px; overflow: hidden; background: var(--scene-soft); }
.home-outcome-visual::after {
  content: "";
  position: absolute; right: -8%; bottom: -18%; z-index: 1;
  width: 46%; height: 46%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--scene) 42%, transparent), transparent 68%);
  pointer-events: none;
}
.home-outcome-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transform-origin: center;
}
.home-outcome-metric {
  position: absolute; left: 28px; bottom: 28px; z-index: 4;
  display: grid; max-width: min(280px, calc(100% - 56px));
  padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
  backdrop-filter: blur(14px);
}
.home-outcome-metric strong { color: var(--scene); font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.04em; line-height: 1.05; }
.home-outcome-metric span { margin-top: 6px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.home-flow h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.03em; line-height: 1.25; }
.home-flow p { margin: 0; color: var(--body); line-height: 1.55; }
.home-path { width: min(980px, 100%); margin: 0 auto; }
.home-path-node {
  display: flex; align-items: flex-start; gap: 16px;
  width: min(520px, 100%); margin: 0 auto; padding: 22px 24px;
  background: #fff; border: 1px solid rgba(18, 29, 48, .08); border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}
.home-path-node h3 { margin-bottom: 4px; }
.home-path-stem {
  position: relative; height: 36px;
}
.home-path-stem::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 55%, transparent), color-mix(in srgb, var(--brand) 25%, transparent));
}
.home-path-stem::after {
  content: "";
  position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring);
}
.home-path-node:last-child {
  border: 0; background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 22px 50px rgba(58, 122, 175, .32);
}
.home-flow .home-path-node:last-child h3,
.home-flow .home-path-node:last-child p { color: #fff; }
.home-flow .home-path-node:last-child p { opacity: .88; }
.home-path-node:last-child .home-app-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.home-path-fork {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  position: relative; padding-top: 28px; margin-bottom: 0;
}
.home-path-fork::before {
  content: "";
  position: absolute; top: 0; left: 16.6%; right: 16.6%; height: 2px;
  background: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.home-path-fork article {
  position: relative; min-width: 0; padding: 22px;
  background: #fff; border: 1px solid rgba(18, 29, 48, .08); border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-path-fork article:hover {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 34%, transparent);
  box-shadow: 0 22px 48px rgba(58, 122, 175, .14);
}
.home-path-fork article::before {
  content: "";
  position: absolute; top: -28px; left: 50%; width: 2px; height: 28px;
  background: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.home-path-fork article:first-child {
  border-color: color-mix(in srgb, var(--brand) 34%, transparent);
  box-shadow: 0 18px 44px rgba(58, 122, 175, .1);
}
.home-path-tag {
  margin: 14px 0 8px; color: var(--brand);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.home-path-fork .home-app-icon { margin-bottom: 0; }
/* Ana sayfa renk paleti: mavi, mor, yeÅŸil, turuncu, pembe (mevcut --nav-* deÄŸerleri) */
.home {
  --c-blue: var(--nav-ticket);
  --c-purple: var(--nav-grid);
  --c-green: var(--nav-pie);
  --c-amber: var(--nav-clock);
  --c-pink: var(--nav-calendar);
}
.home-kicker {
  --tone: var(--c-blue);
  border-color: color-mix(in srgb, var(--tone) 30%, transparent);
  background: color-mix(in srgb, var(--tone) 10%, #fff);
  color: color-mix(in srgb, var(--tone) 78%, var(--ink));
}
.home-suite { --tone: var(--c-blue); }
.home-outcomes { --tone: var(--c-purple); }
.home-flow { --tone: var(--c-green); }
.home-start { --tone: var(--c-pink); }
.home-close { --tone: var(--c-amber); }
.home-contact { --tone: var(--c-blue); }
.home-section-head h2 {
  background-image: linear-gradient(110deg, var(--ink) 0%, var(--ink) 38%, var(--tone, var(--c-purple)) 100%);
}
.home-pill span { background: var(--c-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-green) 22%, transparent); }
.home-metrics li { --tone: var(--c-blue); }
.home-metrics li:nth-child(2) { --tone: var(--c-purple); }
.home-metrics li:nth-child(3) { --tone: var(--c-green); }
.home-metrics li:nth-child(4) { --tone: var(--c-amber); }
.home-metrics strong { color: color-mix(in srgb, var(--tone) 72%, var(--ink)); }
.home-app { --tone: var(--c-blue); --tone-soft: color-mix(in srgb, var(--tone) 12%, #fff); }
.home-app:nth-child(5n+2) { --tone: var(--c-purple); --tone-soft: color-mix(in srgb, var(--tone) 12%, #fff); }
.home-app:nth-child(5n+3) { --tone: var(--c-green); --tone-soft: color-mix(in srgb, var(--tone) 12%, #fff); }
.home-app:nth-child(5n+4) { --tone: var(--c-amber); --tone-soft: color-mix(in srgb, var(--tone) 12%, #fff); }
.home-app:nth-child(5n) { --tone: var(--c-pink); --tone-soft: color-mix(in srgb, var(--tone) 12%, #fff); }
.home-app::before { opacity: 1; transform: scaleX(1); }
.home-outcome { --scene: var(--c-blue); --scene-soft: color-mix(in srgb, var(--scene) 12%, #fff); }
.home-outcome-uzman { --scene: var(--c-purple); --scene-soft: color-mix(in srgb, var(--scene) 12%, #fff); }
.home-outcome-takip { --scene: var(--c-amber); --scene-soft: color-mix(in srgb, var(--scene) 12%, #fff); }
.home-outcome-gecmis { --scene: var(--c-green); --scene-soft: color-mix(in srgb, var(--scene) 12%, #fff); }
.home-outcome-meta { color: color-mix(in srgb, var(--scene) 75%, var(--ink)); }
.home-start-grid li { --tone: var(--c-blue); }
.home-start-grid li:nth-child(2) { --tone: var(--c-purple); }
.home-start-grid li:nth-child(3) { --tone: var(--c-pink); }
.home-start-grid li:hover { border-color: color-mix(in srgb, var(--tone) 40%, transparent); }
.home-start-grid li span {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 70%, #fff), var(--tone));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--tone) 14%, #fff), 0 10px 22px color-mix(in srgb, var(--tone) 35%, transparent);
}
.home-start-grid li:not(:last-child)::after { border-top-color: color-mix(in srgb, var(--tone) 45%, transparent); }
.home-start-grid a, .home-start-grid a:hover { color: color-mix(in srgb, var(--tone) 78%, var(--ink)); }
.home-path-node, .home-path-fork article { --tone: var(--c-blue); }
.home-path-fork article:nth-child(1) { --tone: var(--c-purple); }
.home-path-fork article:nth-child(2) { --tone: var(--c-amber); }
.home-path-fork article:nth-child(3) { --tone: var(--c-green); }
.home-path-node .home-app-icon,
.home-path-fork .home-app-icon,
.home-contact-channels .home-app-icon,
.home-contact-frame-head .home-app-icon {
  background: color-mix(in srgb, var(--tone) 14%, #fff);
  color: color-mix(in srgb, var(--tone) 80%, var(--ink));
}
.home-path-fork article { border-color: color-mix(in srgb, var(--tone) 26%, transparent); }
.home-path-fork article:hover { border-color: color-mix(in srgb, var(--tone) 55%, transparent); box-shadow: 0 22px 48px color-mix(in srgb, var(--tone) 18%, transparent); }
.home-path-fork article:first-child { border-color: color-mix(in srgb, var(--tone) 26%, transparent); box-shadow: 0 16px 40px rgba(15, 23, 42, .06); }
.home-path-fork article::before { background: color-mix(in srgb, var(--tone) 55%, transparent); }
.home-path-tag { color: color-mix(in srgb, var(--tone) 78%, var(--ink)); }
.home-path-node:last-child {
  background: linear-gradient(135deg, var(--c-green), var(--c-blue));
  box-shadow: 0 22px 50px color-mix(in srgb, var(--c-blue) 32%, transparent);
}
.home-path-node:last-child .home-app-icon { background: rgba(255, 255, 255, .22); color: #fff; }
.home-contact-channels li:nth-child(2) { --tone: var(--c-pink); }
.home-contact-frame-head .home-app-icon { --tone: var(--c-green); }
.home .home-close h2 {
  background: linear-gradient(100deg, var(--c-blue) 0%, var(--c-purple) 55%, var(--c-pink) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-close {
  margin: 0; padding: 8px 24px 56px; text-align: left;
  background: #fff;
  border: 0; border-radius: 0;
}
.home-close-panel {
  position: relative; overflow: hidden;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) clamp(28px, 5vw, 64px);
  border-radius: 28px; background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .1);
}
.home-close-panel::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--close-photo-fallback, none) 72% 28% / cover no-repeat;
  background: var(--close-photo, none) 72% 28% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 46%, #000 82%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 46%, #000 82%);
}
.home-close-inner { position: relative; z-index: 1; width: min(440px, 100%); margin: 0; }
.home-close .home-kicker { justify-content: flex-start; }
.home-close h2 {
  margin: 0; color: var(--brand);
  font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.05em; font-weight: 600;
}
.home-close p { margin: 14px 0 0; max-width: 420px; color: #475569; font-size: 17px; line-height: 1.65; }
.home-close .home-actions { justify-content: flex-start; }
.home-contact { scroll-margin-top: 88px; }
.home-contact-shell {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  overflow: hidden; border-radius: 28px; background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
}
.home-contact-side {
  display: flex; flex-direction: column; padding: clamp(32px, 4vw, 56px);
  background:
    #fff;
  border-right: 1px solid var(--line);
}
.home-contact-side h2 {
  margin: 0 0 16px; color: #131722;
  font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1;
}
.home-contact-side > p { margin: 0 0 28px; color: #5d6472; font-size: 16px; line-height: 1.7; }
.home-contact-channels { display: flex; flex-direction: column; gap: 4px; margin: 0 0 28px; padding: 0; list-style: none; }
.home-contact-channels li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; }
.home-contact-channels li:hover { background: rgba(255, 255, 255, .75); }
.home-contact-label {
  display: block; color: #8b909c; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.home-contact-channels a {
  display: block; margin-top: 2px; color: #1d232e; font-size: 15px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere;
}
.home-contact-channels a:hover { color: var(--brand); }
.home-contact-partner { display: block; margin-top: 0; padding-top: 24px; border-top: 1px solid rgba(58, 122, 175, .14); }
.home-contact-partner img { display: block; width: 100%; max-width: 220px; height: auto; }
.home-contact-partner:hover { opacity: .75; }
.home-contact-form { position: relative; margin: 0; padding: clamp(24px, 3.2vw, 40px); background: #fff; }
.home-contact-frame {
  display: flex; flex-direction: column; gap: 16px; padding: 20px 18px 18px;
  border: 1px solid rgba(58, 122, 175, .12); border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}
.home-contact-frame-head { display: flex; align-items: center; gap: 10px; }
.home-contact-frame-head h3 { margin: 0; color: #3f4650; font-size: 18px; font-weight: 650; letter-spacing: -.04em; }
.home-contact-status { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.home-contact-status.is-success { background: #eef8f0; color: #1c6b38; }
.home-contact-status.is-error { background: #fdeeee; color: #9b2c2c; }
.home-contact-status[hidden], .home-contact-captcha[hidden] { display: none !important; }
.home-contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.home-contact-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.home-contact-field > span { color: #6b7280; font-size: 12px; font-weight: 650; }
.home-contact-field > span span { color: var(--brand); }
.home-contact-form {
  --control-height: 48px;
  --control-radius: 14px;
  --control-bg: #ffffff;
  --control-border: 1px solid var(--line);
}
.home-contact-field input, .home-contact-field select {
  width: 100%; height: var(--control-height); padding: 0 var(--control-pad-x);
  border: var(--control-border); border-radius: var(--control-radius);
  background: var(--control-bg); color: #131722; font-size: var(--control-font);
}
.home-contact-field input:focus, .home-contact-field select:focus {
  outline: none; background: var(--control-bg-focus); border-color: rgba(58, 122, 175, .55); box-shadow: 0 0 0 4px var(--brand-ring);
}
.home-contact-phone {
  display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--control-radius); background: #fff;
}
.home-contact-phone:focus-within { background: var(--control-bg-focus); box-shadow: 0 0 0 4px var(--brand-ring); }
.home-contact-phone select, .home-contact-phone input {
  height: var(--control-height); border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.home-contact-phone select { padding: 0 28px 0 12px; border-right: 1px solid rgba(19, 23, 34, .08); font-weight: 600; }
.home-contact-phone input:focus, .home-contact-phone select:focus { border-color: transparent; box-shadow: none; background: transparent; }
.home-contact-captcha {
  display: flex; flex-direction: column; gap: 10px; padding: 12px;
  border: 1px dashed rgba(58, 122, 175, .35); border-radius: 12px; background: #fff;
}
.home-contact-captcha img { display: block; width: 108px; height: 44px; border-radius: 6px; background: #f3f3f1; }
.home-contact-captcha p { margin: 0; color: #6b7280; font-size: 12px; line-height: 1.45; }
.home .home-contact-submit { width: 100%; min-width: 0; margin-top: 4px; }
.home-foot {
  position: relative; overflow: hidden;
  border-top: 0; color: #f8fafc;
  background:
    radial-gradient(circle at 12% 0%, rgba(58, 122, 175, .18), transparent 26rem),
    #111820;
}
.home-foot::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.home-foot-main {
  position: relative; z-index: 1;
  width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 28px;
  display: grid; grid-template-columns: 1.3fr .7fr .8fr 1.15fr; gap: 40px;
}
.home-foot .home-brand {
  display: inline-flex; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .16);
}
.home-foot p, .home-foot a, .home-foot span { color: #abb6c2; }
.home-foot-brand > p { margin: 16px 0 0; max-width: 280px; line-height: 1.55; }
.home-foot nav p, .home-foot-label {
  margin: 0 0 14px; color: #f8fafc; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.home-foot ul { list-style: none; margin: 0; padding: 0; }
.home-foot li { margin: 10px 0; }
.home-foot a:hover { color: #fff; }
.home-foot-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.home-foot-contact .home-foot-label { margin: 0; }
.home-foot-bottom {
  position: relative; z-index: 1;
  width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 16px 0 28px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px;
}
@media (max-width: 980px) {
  .home-menu { display: inline-grid; }
  .home-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 31;
    margin: 0; padding: 8px 16px 16px; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .home-bar.is-open .home-links { display: flex; }
  .home-nav { margin-left: 8px; }
  .home-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "device" "metrics";
    width: min(100% - 56px, 1240px); min-height: 0; margin-left: auto; margin-right: auto; padding-top: 112px;
  }
  .home-hero-copy, .home-metrics, .home-device-slot { width: 100%; justify-self: stretch; }
  .home-device-slot { width: 93.5%; max-width: 598px; justify-self: center; }
  .home-stage { min-height: 0; }
  .home-outcome, .home-path-fork, .home-foot-main, .home-start-grid, .home-contact-shell { grid-template-columns: 1fr; }
  .home-contact-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-path-fork { padding-top: 0; }
  .home-path-fork::before,
  .home-path-fork article::before { display: none; }
  .home-outcome:nth-child(even) .home-outcome-visual { order: 0; }
  .home-outcome { min-height: 0; }
  .home-outcome-visual, .home-outcome-visual img { min-height: 280px; }
  .home-band > .home-section-head,
  .home-band > .home-outcomes-list,
  .home-band > .home-path,
  .home-band > ol { width: min(1240px, calc(100% - 40px)); }
  .home-close-panel { padding-bottom: 196px; }
  .home-close-panel::after {
    inset: auto 0 0 0;
    height: 176px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
    background-position: center 24%;
  }
}
@media (max-width: 720px) {
  .home-bar { padding: 10px 16px; }
  .home-bar .home-brand { flex: none; }
  .home-bar .home-brand img { height: 34px; }
  .home-menu, .home-nav { flex: none; }
  .home-nav a.is-cta { padding: 0 12px; }
  .home-hero, .home-section, .home-foot-main, .home-foot-bottom { width: min(100% - 32px, 1240px); }
  .home-hero { margin-left: 16px; }
  .home-band > .home-section-head,
  .home-band > .home-outcomes-list,
  .home-band > .home-path,
  .home-band > ol { width: min(1240px, calc(100% - 32px)); }
  .home-hero { padding-top: 108px; padding-bottom: 48px; }
  .home-hero-title { font-size: clamp(28px, 7.4vw, 36px); }
  .home-lead { font-size: 16px; }
  .home-metrics { grid-template-columns: 1fr; width: 100%; }
  .home-actions .btn { width: 100%; min-width: 0; }
  .home-outcome-copy { padding: 28px 20px 24px; }
  .home-outcome-copy::before { left: 20px; }
  .home-outcome-visual, .home-outcome-visual img { min-height: 220px; }
  .home-outcome-metric { left: 16px; bottom: 16px; }
  .home-section { padding: 64px 0; }
  .home-close { padding: 8px 16px 28px; }
  .home-close-panel { padding: 36px 20px 188px; }
  .home-close h2 { font-size: 32px; }
  .auth-stage { padding: 12px; }
  .auth-hero { padding: 22px 20px 26px; }
  .auth-hero h1 { margin-top: 22px; font-size: 28px; }
  .auth-mark { width: 140px; }
  .auth-panel { padding: 24px 16px 28px; }
  .auth-panel h2 { font-size: 28px; }
  .auth-panel p.lead { margin-bottom: 20px; }
}

dialog:not([open]) { display: none !important; }
dialog[open].flow-dialog,
dialog[open].flow-editor { display: grid; gap: 12px; }
.flow-stage { overflow: auto; min-height: 220px; background: var(--bg); border-radius: var(--radius-md); border: 1px solid var(--line); }
.flow-dialog .flow-stage {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  height: min(70vh, 520px);
  min-height: 280px;
  cursor: grab;
  touch-action: none;
}
.flow-dialog .flow-stage.is-dragging { cursor: grabbing; }
.flow-dialog .flow-map { user-select: none; }
.flow-map { width: 100%; height: auto; transform-origin: 0 0; }
.workflow-editor-stage .flow-map {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  flex: none;
}
.flow-node rect { fill: #fff; stroke: #d5dbe3; }
.flow-node text { fill: #1e293b; font-size: 13px; }
.flow-node.is-done .flow-node-bg { fill: #f3fbf6; stroke: #16a34a; }
.flow-edge { stroke: #94a3b8; stroke-width: 1.5; fill: none; }
.flow-arrow { fill: #64748b; }
.edge-label { fill: #475569; font-size: 11px; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.flow-dialog:not(.is-labeled) .edge-label, .flow-editor:not(.is-labeled) .edge-label,
.workflow-editor-stage:not(.is-labeled) .edge-label { display: none; }
.flow-zoom { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0; font-size: 12px; font-weight: 400; }
.flow-zoom input[type="range"] { width: 120px; accent-color: var(--brand); }
.flow-zoom [data-flow-zoom-value] { min-width: 36px; font-variant-numeric: tabular-nums; }
.flow-zoom--bar {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; justify-self: start;
  margin: 0; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 650;
}
.flow-zoom--bar input[type="range"] { width: 132px; height: 18px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.flow-zoom-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.flow-zoom-step:hover { background: var(--bg-alt); }
.flow-zoom-step:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.flow-zoom--bar .flow-zoom-value {
  min-width: 52px; height: 28px; margin: 0; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--line);
}
.flow-toolbar { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.flow-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.flow-toolbar__row h2 { margin: 0; font-size: 18px; flex: 1 1 12rem; min-width: 0; }
.flow-toolbar__meta { margin: 0; line-height: 1.45; }
.flow-toolbar__meta strong { color: var(--ink); font-weight: 650; }
.flow-toolbar__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  white-space: nowrap;
}
.flow-toolbar__check input { margin: 0; flex-shrink: 0; }
.flow-start { fill: var(--muted); }
.flow-node.is-todo .flow-node-bg { fill: #fff; stroke: #94a3b8; }
.flow-node.is-todo text { fill: #1e293b; font-weight: 600; font-size: 12px; text-transform: none; }
.flow-node.is-progress .flow-node-bg { fill: #f8fbff; stroke: #3b82f6; }
.flow-node.is-progress text { fill: #1e293b; font-weight: 600; font-size: 12px; text-transform: none; }
.flow-node.is-done .flow-node-bg { fill: #f3fbf6; stroke: #16a34a; }
.flow-node.is-done text { fill: #14532d; font-weight: 600; font-size: 12px; text-transform: none; }
.flow-node.is-current .flow-node-bg { fill: #ffedd5; stroke: #ea580c; stroke-width: 2; }
.flow-node.is-current text { fill: #9a3412; font-weight: 600; }
.flow-map--edit .flow-node { cursor: grab; }
.flow-map--edit .flow-node .flow-node-bg { stroke-width: 1.5; }
.flow-map--edit .flow-node.is-selected .flow-node-bg { stroke: #2563eb; stroke-width: 2; }
.flow-map--edit .flow-node.is-selected .flow-node-handles { filter: drop-shadow(0 2px 6px rgba(37, 99, 235, .2)); }
.flow-map--edit .flow-node.is-align-peer .flow-node-bg { stroke: #ef4444; stroke-width: 2; stroke-dasharray: 6 4; }
.flow-map--edit .flow-node:active { cursor: grabbing; }
.flow-node-handles { opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.flow-map--edit .flow-node.is-selected .flow-node-handles { opacity: 1; pointer-events: auto; }
.flow-handle--dot { fill: #fff; stroke: #2563eb; stroke-width: 2; pointer-events: none; }
.flow-handle--resize { fill: #fff; stroke: #2563eb; stroke-width: 2; cursor: nwse-resize; }
.flow-handle--resize[data-flow-resize="e"] { cursor: ew-resize; }
.flow-handle--resize[data-flow-resize="s"] { cursor: ns-resize; }
.flow-handle--resize[data-flow-resize="se"] { cursor: nwse-resize; }
.flow-align-guide { stroke: #ef4444; stroke-width: 1.5; pointer-events: none; }
.flow-node-label { font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; pointer-events: none; user-select: none; }
.flow-map--edit .flow-layer-edges { pointer-events: auto; }
.flow-layer-guides { pointer-events: none; }
.flow-edge-hit { fill: none; stroke: transparent; stroke-width: 18; pointer-events: stroke; cursor: pointer; }
.flow-edge-group.is-selected .flow-edge:not(.flow-edge-hit) { stroke: var(--brand); stroke-width: 2.5; }
.flow-edge-group.is-selected .edge-label { fill: var(--brand-2); font-weight: 600; }
.flow-edge--bidir { stroke-width: 1.5; }
.edge-label--forward, .edge-label--back { font-size: 10px; }
.workflow-editor-bidir-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.workflow-editor-panel-form { display: grid; gap: 10px; margin-bottom: 16px; }
.workflow-editor-panel-form .btn-primary { justify-self: start; }
.workflow-editor-hint { max-width: 72ch; margin: 0 0 12px; }
.workflow-editor-shell { padding: 0; overflow: hidden; }
.workflow-editor-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card);
}
.workflow-editor-toolbar__main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.workflow-editor-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); margin: 0; cursor: pointer; }
.workflow-editor-check input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; }
.section-title form.workflow-system-form,
.section-title form.workflow-save-form { display: inline-flex; flex: none; width: auto; max-width: none; min-width: 0; margin: 0; }
.section-title form.workflow-save-form .btn {
  width: auto; flex: none; height: var(--control-height-sm); padding: 0 12px; font-size: 13px; box-shadow: none;
}
.workflow-editor-stage-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 420px;
}
.workflow-editor-stage-wrap:has(.workflow-editor-panel:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) min(280px, 32%);
}
.workflow-editor-stage { min-width: 0; min-height: 420px; border: 0; border-radius: 0; }
.workflow-editor-panel {
  padding: 16px; border-left: 1px solid var(--line); background: var(--bg);
}
.workflow-editor-panel h3 { margin: 0 0 8px; font-size: 16px; }
.workflow-editor-panel[hidden] { display: none; }
.workflow-editor-swap {
  display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.workflow-editor-swap-title { margin: 0; font-size: var(--control-font); font-weight: 600; color: var(--ink); }
.workflow-editor-swap .hint,
.workflow-editor-swap .field { margin: 0; }
.workflow-editor-swap .btn-primary { justify-self: start; }
.workflow-editor-panel .wf-status-pick { margin: 0; background: var(--card); }
.workflow-editor-panel .wf-status-pick li button {
  padding: 6px 10px; font-size: var(--control-font); line-height: 1.35; white-space: normal;
}
.workflow-editor-panel .wf-status-pick .wf-status-meta {
  display: inline; margin: 0 0 0 6px; font-size: var(--control-font); font-weight: 400;
}
.workflow-editor-more summary { list-style: none; cursor: pointer; }
.workflow-editor-more summary::-webkit-details-marker { display: none; }
.workflow-editor-more__body {
  position: absolute; right: 16px; z-index: 2; margin-top: 8px; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); min-width: 260px; display: grid; gap: 12px;
}
.workflow-editor-more { position: relative; }
.wf-status-pick {
  list-style: none; margin: 0 0 12px; padding: 0; max-height: 240px; overflow: auto;
  border: 1px solid var(--line); border-radius: var(--radius-md);
}
.wf-status-pick li button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent;
  font: inherit; cursor: pointer; border-bottom: 1px solid var(--line);
}
.wf-status-pick li:last-child button { border-bottom: 0; }
.wf-status-pick li button:hover, .wf-status-pick li button:focus-visible { background: var(--bg); }
.wf-status-pick li button.is-on { background: var(--brand-soft); }
.wf-status-pick .wf-status-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.section-title-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
form:not(:has([name=option_set]:checked)) .option-rows { display: none; }
form:has(select[name=field_type] option[value="USER"]:checked) .field-user-hide,
form:has(select[name=field_type] option[value="DATE"]:checked) .field-option-hide,
form:has(select[name=field_type] option[value="NUMBER"]:checked) .field-option-hide { display: none; }
@media (max-width: 980px) {
  .flow-editor { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .top-bell-switch-ui,
  .top-bell-switch-ui::after,
  .top-user-lang-toggle .bi-chevron-down,
  fieldset.scope-tags .scope-tag-list label.chip { transition: none; }
  .top-user-menu,
  .top-create-menu,
  .top-suggest { animation: none; }
  .home-root { scroll-behavior: auto; }
  .home-app, .home-outcome, .home-outcome-link .bi { transition: none; }
  .home-app:hover, .home-outcome:hover, .home-outcome:focus-within, .home-start-grid li:hover,
  .home-metrics li:hover, .home-path-fork article:hover { transform: none; }
  .home-outcome-visual img, .home-dock-beam, .home-dock-toggle,
  .home-hero-copy > .home-pill, .home-hero-title, .home-lead-stage, .home-actions, .home-metrics { animation: none; }
  .home-device-screen img, .home-device-caption { transition: none; }
  .home.is-film-on .home-reveal:not(.is-in),
  .home.is-film-on .home-outcome:not(.is-in),
  .home.is-film-on .home-outcome:not(.is-in) .home-outcome-copy,
  .home.is-film-on .home-outcome:not(.is-in) .home-outcome-visual {
    opacity: 1; transform: none; filter: none; pointer-events: auto; animation: none;
  }
  .home.is-film-on .home-reveal.is-in,
  .home.is-film-on .home-outcome.is-in,
  .home.is-film-on .home-outcome.is-in .home-outcome-copy,
  .home.is-film-on .home-outcome.is-in .home-outcome-visual { animation: none; }
  .home-dock-beam {
    opacity: .45; transform: none; filter: blur(4px); background: rgba(58, 122, 175, .55);
  }
}
.home-dock {
  position: fixed; z-index: 42;
  top: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  flex: none; width: max-content;
  pointer-events: auto;
  visibility: hidden;
}
.home-dock.is-placed { visibility: visible; }
.home-dock.is-above .home-dock-panel { top: auto; bottom: calc(100% + 10px); }
.home-dock-orb { position: relative; width: 40px; height: 40px; flex-shrink: 0; pointer-events: auto; }
.home-dock-toggle {
  position: relative; z-index: 1; overflow: hidden;
  width: 100%; height: 100%; padding: 5px;
  border: 0; border-radius: 12px; background: #fff; cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .16), 0 0 14px rgba(58, 122, 175, .4);
  animation: homeDockPulse 1.8s ease-in-out infinite;
  transition: transform .2s ease;
}
.home-dock-beam {
  position: absolute; z-index: 0; inset: -5px; border-radius: 16px; pointer-events: none;
  background: conic-gradient(
    from 0deg,
    rgba(58, 122, 175, 0) 0deg 175deg,
    rgba(58, 122, 175, .2) 210deg,
    rgba(90, 150, 196, .7) 255deg,
    rgba(176, 210, 232, .95) 300deg,
    rgba(70, 145, 196, .8) 335deg,
    rgba(58, 122, 175, 0) 360deg
  );
  filter: blur(5px);
  animation: homeDockBeam 2.4s linear infinite;
}
.home-dock-toggle img {
  position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain;
}
.home-dock-toggle:hover, .home-dock-toggle:focus-visible { transform: scale(1.05); }
.home-dock-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@keyframes homeDockBeam { to { transform: rotate(360deg); } }
@keyframes homeDockPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(15, 23, 42, .16), 0 0 10px rgba(58, 122, 175, .3); }
  50% { box-shadow: 0 12px 30px rgba(15, 23, 42, .18), 0 0 20px 3px rgba(58, 122, 175, .7); }
}
.home-dock-backdrop {
  position: fixed; inset: 0; z-index: 39; background: rgba(15, 23, 42, .28);
}
.home-dock-backdrop[hidden] { display: none; }
.home-dock-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 43;
  width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow: auto;
  padding: 18px 16px 16px;
  border: 1px solid rgba(18, 29, 48, .08); border-radius: 24px; background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .2);
  transform: translateY(8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.home-dock-panel.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
}
.home-dock-panel .home-contact-form { margin: 0; padding: 0; background: transparent; }
.home-dock-panel .home-contact-submit { width: 100%; }
.home-dock-close {
  position: absolute; top: 14px; right: 14px;
  display: grid; width: 36px; height: 36px; place-items: center;
  border: 0; border-radius: 999px; background: var(--bg-alt); color: var(--ink); cursor: pointer;
}
.home-dock-close:hover { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 720px) {
  .home-dock-panel { width: min(360px, calc(100vw - 32px)); }
}


/* MÃ¼ÅŸteri portal + talep listesi */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.customer-surface { max-width: 880px; margin: 0 auto; }
.customer-surface--wide { max-width: 1080px; }
.customer-hero {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.customer-hero h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.customer-hero .hint { margin: 0; max-width: 42ch; font-size: 14px; line-height: 1.5; }
.customer-hero__cta { flex: none; }
.customer-hero__back { flex: none; margin-left: auto; }
.customer-toolbar { margin-bottom: 16px; }
.customer-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; max-width: none; }
.customer-search__field {
  --control-height: var(--control-height-sm);
  --control-font: 13px;
  --control-radius: var(--radius-sm);
  --control-border: 1px solid var(--line);
  --control-bg: var(--card);
  flex: 1 1 240px; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 0 var(--control-pad-x); height: var(--control-height);
  border: var(--control-border); border-radius: var(--control-radius);
  background: var(--control-bg); box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.customer-search__field:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); }
.customer-search__field .bi-search { color: var(--muted); font-size: 16px; flex: none; }
.customer-search__field .search {
  flex: 1; min-width: 0; height: auto; max-width: none; border: 0; padding: 0; background: transparent;
  font-size: var(--control-font);
}
.customer-search__field .search:focus { outline: none; box-shadow: none; }
.customer-filters { margin-bottom: 12px; }
.customer-filters .chip { height: 38px; padding: 0 14px; font-size: 13px; }
.customer-table-wrap {
  padding: 0; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: 0 4px 20px rgba(15, 23, 42, .05);
}
.customer-table-wrap:hover { transform: none; }
.customer-table-wrap .empty { border-radius: 14px; }
.customer-table { margin: 0; }
.customer-table thead th {
  padding: 12px 16px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); background: #fff;
  border-bottom: 1px solid var(--line);
}
.customer-table thead th:last-child { width: 52px; }
.customer-table tbody td {
  padding: 14px 16px; vertical-align: middle; border-bottom: 1px solid var(--bg-alt);
}
.customer-table tbody tr:last-child td { border-bottom: 0; }
.customer-table__row { transition: background .12s ease; }
.customer-table__row:hover td { background: #fef8f8; }
.customer-table__cell-link {
  display: block; color: inherit; text-decoration: none; min-width: 0;
}
.customer-table__cell-link:hover .customer-table__subject { color: var(--brand); }
.customer-table__num {
  display: block; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .02em; margin-bottom: 4px;
}
.customer-table__subject {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px;
}
.customer-table__date { font-size: 13px; color: var(--body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.customer-table__go { text-align: right; width: 52px; }
.customer-table__go .btn { color: var(--muted); }
.customer-table__row:hover .customer-table__go .btn { color: var(--brand); }
.customer-table .badge { min-height: 28px; border-radius: 8px; }
.customer-empty { padding: 40px 16px; }
.customer-pager { margin-top: 20px; justify-content: center; }
.portal-page .portal-card {
  max-width: 100%; padding: 22px 22px 20px; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
}
.portal-page .portal-card:hover { transform: none; }
.portal-section-label {
  margin: 20px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.portal-section-label:first-of-type { margin-top: 4px; }
.portal-card .field .assign-picker input[type="text"] { padding: 0 40px 0 var(--control-pad-x); }
.portal-card .field .assign-picker.has-face input[type="text"] { padding-left: 42px; }
[data-portal-assign][hidden] { display: none !important; }
.form-sheet .field .pick-combo,
.is-customer .portal-card .field .pick-combo { padding-right: 40px; }
.is-customer .portal-card .field textarea { min-height: 140px; padding: 12px var(--control-pad-x); }
.is-customer .portal-card .composer {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.is-customer .portal-card .composer:focus-within {
  border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring);
}
.portal-form-actions { margin-top: 8px; }
.portal-submit {
  width: 100%; min-height: var(--control-height); justify-content: center;
  border-radius: var(--control-radius); font-size: var(--control-font);
}
.fields-inline.fit-1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 720px) {
  .customer-hero h1 { font-size: 22px; }
  .customer-hero__cta { width: 100%; justify-content: center; }
  .customer-table-wrap { overflow-x: auto; border-radius: 12px; }
  .customer-table { min-width: 520px; }
  .customer-table__subject { max-width: 220px; }
}

.config-motor-intro { margin-bottom: 20px; padding: 18px 20px; }
.config-motor-intro__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.config-motor-intro__text { margin: 0; max-width: 72ch; line-height: 1.55; }
.config-motor-intro__text a { font-weight: 600; }
.section-title form.config-motor-create {
  flex: none; max-width: none; width: auto; min-width: 0;
}
.config-motor-create {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0;
}
.config-motor-create__field {
  flex: 0 1 180px; width: min(180px, 42vw); min-width: 120px; margin: 0;
}
.config-motor-create__field--wide {
  flex-basis: 240px; width: min(240px, 48vw);
}
.workflow-editor-definition {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px;
  margin: 0 0 12px; max-width: 640px;
}
.workflow-editor-definition .field { flex: 1 1 280px; margin: 0; min-width: 0; }
.workflow-editor-definition .btn { flex: none; }
.config-motor-create .btn { flex: none; white-space: nowrap; }
.config-motor-create__field input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%; height: var(--control-height); padding: 0 12px; border: var(--control-border);
  border-radius: var(--control-radius); font-size: var(--control-font); background: var(--control-bg);
}
.config-motor-create__field input:not([type="checkbox"]):not([type="radio"]):focus {
  outline: none; border-color: var(--brand-2); background: var(--control-bg-focus); box-shadow: 0 0 0 4px var(--brand-ring);
}
.config-motor-name { font-weight: 600; }
.config-motor-rev { font-variant-numeric: tabular-nums; margin-right: 6px; color: var(--body); }
.config-motor-table td { vertical-align: middle; white-space: nowrap; }
.config-motor-table td:has(.tag-picker) { overflow: visible; white-space: normal; min-width: 0; }
.config-motor-table .flow-type-bind { margin: 0; max-width: 100%; }
.config-motor-table .flow-type-bind .tag-picker--areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.config-motor-table .flow-type-bind .tag-picks { display: contents; }
.config-motor-table .flow-type-bind .area-add { flex: 0 0 auto; }
.config-motor-table .flow-type-bind .assign-menu {
  left: 0;
  right: auto;
  top: calc(100% + 4px);
  width: 16rem;
}
.config-motor-table th.cell-actions .th-wrap { padding-right: 8px; padding-left: 8px; }
.table-card:has(.config-motor-table .tag-picker) { overflow: visible; }
.bind-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.bind-list li { margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.config-motor-table td.config-motor-cell-wrap { white-space: normal; }
.config-motor-table .row-actions {
  display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 6px;
}
.config-motor-table .row-actions form { display: inline-flex; margin: 0; flex: none; }
.config-motor-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.config-motor-grant { padding: 16px 18px; }
.config-motor-grant__form {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 16px; align-items: end; max-width: 960px;
}
.config-motor-grant__form .field { margin: 0; }
.config-motor-grant__form .btn { justify-self: start; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch-link {
  display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border-radius: 999px;
  color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .04em; text-decoration: none;
}
.lang-switch-link.is-on { background: var(--ink); color: #fff; }
.lang-switch-link:hover { color: var(--ink); }
.lang-switch-link.is-on:hover { color: #fff; }
.auth-lang { position: absolute; top: 18px; right: 18px; z-index: 2; }
.home-nav .lang-switch { margin-right: 8px; }
.activity-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px;
}
.activity-return-field { margin-bottom: 12px; }
.activity-return-field textarea { min-height: 72px; }
.activity-return-count { color: var(--muted); font-size: 12px; font-weight: 650; }
.activity-return-note {
  display: block; margin: 6px 0 0; color: var(--danger); font-size: 12px; font-weight: 650;
  line-height: 1.4; overflow-wrap: anywhere;
}
.activity-return-note span { display: block; color: var(--muted); font-size: 11px; font-weight: 650; }
.activity-sheet td.cell-text:has(.activity-return-note) { vertical-align: top; }
td > .activity-return-note { margin-top: 0; max-width: 36ch; }
.activity-submit { display: flex; }
.activity-upload {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto;
}
.activity-upload label.btn { position: relative; cursor: pointer; }
.activity-file-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.activity-sheet-card { overflow-x: auto; }
.card.list-panel.activity-sheet-card { overflow: hidden; }
.activity-sheet-card > .list-panel-head > .activity-bar { flex: 1 1 auto; width: 100%; margin: 0; }
.activity-sheet-card table.activity-sheet[hidden] + .list-grid-foot,
.activity-sheet-card:has(table.activity-sheet[hidden]) > .list-grid-foot { display: none !important; }
table.data.activity-sheet thead th { position: relative; }
table.data.activity-sheet .th-wrap { display: flex; align-items: center; gap: 4px; min-width: 0; padding-right: 28px; }
table.data.activity-sheet .th-wrap .sort-mark { margin-left: 0; }
table.data.activity-sheet .th-filter { flex: none; }
table.data.activity-sheet.is-col-sized,
table.data.activity-sheet.is-col-sized th,
table.data.activity-sheet.is-col-sized td { min-width: 0; }
table.data.activity-sheet.is-col-sized td { overflow: visible; text-overflow: clip; }
table.data.activity-sheet:not(.activity-sheet--report).is-col-sized td { overflow: hidden; text-overflow: ellipsis; }
.activity-sheet-card:hover { transform: none; }
.activity-sheet-card [hidden] { display: none !important; }
.activity-sheet { table-layout: fixed; width: 100%; min-width: 0; }
.activity-sheet th.cell-select,
.activity-sheet td.cell-select { width: 64px; padding-left: 0; padding-right: 0; text-align: center; vertical-align: middle; }
.activity-sheet th.cell-select .sort-mark { display: none; }
.activity-sheet .cell-status { width: 148px; }
.activity-sheet .cell-status .badge { white-space: nowrap; }
.activity-sheet .cell-invoice { width: 240px; white-space: nowrap; }
.activity-select { display: inline-flex; align-items: center; justify-content: center; width: 16px; margin: 0; }
.activity-select input { width: 16px; height: 16px; margin: 0; }
table.data .cell-select { width: 64px; text-align: center; }
.activity-sheet td { padding: 8px; }
.activity-sheet .cell-ticket { width: 20%; }
.activity-sheet .cell-company { width: 14%; }
.activity-sheet .cell-date { width: 188px; }
.activity-date { position: relative; display: block; min-height: var(--control-height); cursor: pointer; }
.activity-sheet .activity-date-value {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: pointer; border: 0;
}
.activity-sheet .activity-date .activity-date-value:focus { outline: none; box-shadow: none; }
.activity-date-label {
  display: flex; align-items: center; height: var(--control-height); padding: 0 10px;
  border: var(--control-border); border-radius: var(--control-radius);
  background: var(--control-bg); color: var(--ink); font-size: var(--control-font); white-space: nowrap;
  pointer-events: none;
}
.activity-date-label:empty::before { content: 'Tarih'; color: var(--muted); }
.activity-date:focus-within .activity-date-label {
  border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring);
}
.activity-sheet .cell-hours { width: 84px; }
.activity-sheet .cell-days { width: 112px; }
.activity-sheet th.cell-hours,
.activity-sheet th.cell-days { padding-left: 8px; padding-right: 8px; }
.activity-sheet th.cell-hours .th-wrap,
.activity-sheet th.cell-days .th-wrap { padding-right: 22px; }
.activity-sheet .cell-hours input,
.activity-sheet .cell-days input { padding-left: 8px; padding-right: 8px; }
.activity-sheet .cell-text { width: 42%; min-width: 0; }
.activity-sheet .cell-actions { width: 92px; }
.activity-sheet .row-actions { justify-content: flex-end; flex-wrap: nowrap; gap: 4px; }
.activity-sheet select,
.activity-sheet input[type="text"],
.activity-sheet input[type="number"],
.activity-sheet input[type="date"],
.activity-sheet .pick-combo {
  width: 100%; height: var(--control-height); margin: 0; padding: 0 10px;
  border: var(--control-border); border-radius: var(--control-radius);
  background: var(--control-bg); color: var(--ink); font-size: var(--control-font);
}
.activity-sheet .pick-combo { padding-right: 36px; }
.activity-sheet .cell-ticket select,
.activity-sheet .cell-company select {
  appearance: none; -webkit-appearance: none; background-image: none;
}
.activity-sheet .cell-ticket .pick-caret-btn,
.activity-sheet .cell-company .pick-caret-btn { display: none; }
.activity-sheet .cell-ticket .pick-combo,
.activity-sheet .cell-company .pick-combo { padding-right: 10px; }
.activity-sheet .pick-face {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; gap: 6px;
  padding: 0 10px; pointer-events: none; overflow: hidden; font-size: 13px;
}
.activity-sheet .pick-face[hidden] { display: none !important; }
.activity-sheet .pick-face-code { flex: none; color: var(--brand); font-weight: 400; }
.activity-sheet:not(.activity-sheet--report) .pick-face-code {
  min-width: 0; max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.activity-sheet .pick-face-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink);
}
.activity-sheet .pick-face-logo,
.activity-sheet .sheet-logo {
  flex: none; display: block; width: 22px; min-width: 22px; max-width: 22px; height: 22px;
  object-fit: contain;
}
.pick-option-logo {
  flex: none; width: 18px; height: 18px; object-fit: contain;
}
.activity-sheet .pick-combo.has-face { color: transparent; }
.pick-menu--ticket .pick-code {
  min-width: 0; padding: 0; border-radius: 0; background: transparent;
  color: var(--brand); font-size: 13px; font-weight: 400; letter-spacing: 0;
}
.activity-sheet select:focus,
.activity-sheet input:focus,
.activity-sheet .pick-combo:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring);
}
.activity-sheet .cell-ticket select,
.activity-sheet .cell-ticket .pick-combo,
.activity-sheet .cell-company select,
.activity-sheet .cell-company .pick-combo,
.activity-sheet .cell-hours input,
.activity-sheet .cell-days input,
.activity-sheet .cell-text input,
.activity-sheet .cell-actions .btn {
  border-color: transparent; background: transparent; box-shadow: none;
}
.activity-sheet .cell-ticket .pick-combo:focus,
.activity-sheet .cell-company .pick-combo:focus,
.activity-sheet .cell-hours input:focus,
.activity-sheet .cell-days input:focus,
.activity-sheet .cell-text input:focus,
.activity-sheet .cell-actions .btn:hover,
.activity-sheet .cell-actions .btn:focus,
.activity-sheet .cell-actions .btn:focus-visible {
  border-color: transparent; box-shadow: none; outline: none;
}
.activity-sheet input[readonly] { background: var(--bg); color: var(--body); }
.activity-sheet .cell-company input { text-overflow: ellipsis; }
.activity-sheet:not(.activity-sheet--report) th.cell-select,
.activity-sheet:not(.activity-sheet--report) td.cell-select { width: 4%; }
.activity-sheet:not(.activity-sheet--report) .cell-date { width: 13%; }
.activity-sheet:not(.activity-sheet--report) .cell-ticket { width: 18%; }
.activity-sheet:not(.activity-sheet--report) .cell-company { width: 9%; }
.activity-sheet:not(.activity-sheet--report) .cell-hours { width: 10%; }
.activity-sheet:not(.activity-sheet--report) .cell-days { width: 10%; }
.activity-sheet:not(.activity-sheet--report) .cell-text { width: 15%; }
.activity-sheet:not(.activity-sheet--report) .cell-status { width: 11%; }
.activity-sheet:not(.activity-sheet--report) .cell-invoice { width: 8%; }
.activity-sheet:not(.activity-sheet--report) .cell-actions {
  width: 76px; max-width: 76px; padding-left: 4px; padding-right: 4px; white-space: nowrap;
}
.activity-sheet:not(.activity-sheet--report) th,
.activity-sheet:not(.activity-sheet--report) td {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
.activity-sheet:not(.activity-sheet--report) td { padding-top: 4px; padding-bottom: 4px; }
.activity-sheet:not(.activity-sheet--report) .th-wrap {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 32px; padding-right: 46px;
}
.activity-sheet:not(.activity-sheet--report) th.cell-hours .th-wrap,
.activity-sheet:not(.activity-sheet--report) th.cell-days .th-wrap { padding-right: 46px; }
.activity-sheet:not(.activity-sheet--report) .row-actions .btn-icon {
  width: 28px; min-width: 28px; height: 28px;
}
.activity-sheet:not(.activity-sheet--report) .th-filter {
  position: absolute; top: 50%; right: 22px; margin: 0; transform: translateY(-50%);
}
.activity-sheet:not(.activity-sheet--report) input,
.activity-sheet:not(.activity-sheet--report) select,
.activity-sheet:not(.activity-sheet--report) .pick,
.activity-sheet:not(.activity-sheet--report) .pick-combo,
.activity-sheet:not(.activity-sheet--report) .activity-date { min-width: 0; max-width: 100%; }
.activity-sheet:not(.activity-sheet--report) input { text-overflow: ellipsis; }
.activity-sheet:not(.activity-sheet--report) .activity-date-label {
  display: block; box-sizing: border-box; padding-top: 0; padding-bottom: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.activity-sheet:not(.activity-sheet--report) .cell-status .badge {
  display: inline-block; height: 22px; min-height: 0; max-width: 100%; padding: 0 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 22px; vertical-align: middle;
}
.activity-sheet:not(.activity-sheet--report) .cell-invoice { white-space: nowrap; }
.activity-sheet:not(.activity-sheet--report) .cell-text { white-space: normal; text-overflow: clip; }
.activity-sheet:not(.activity-sheet--report) .activity-return-note { max-width: 100%; }
.activity-sheet-foot { display: flex; justify-content: flex-end; padding: 8px 4px 4px; }
.activity-sheet--report { min-width: 1408px; }
.activity-sheet--report tbody tr:not(:has(.empty)) > td { padding-top: 4px; padding-bottom: 4px; height: 40px; }
.activity-sheet--report .pick-face {
  position: static; inset: auto; z-index: auto; pointer-events: auto;
  height: var(--control-height); min-height: var(--control-height); text-decoration: none; color: inherit;
}
.activity-sheet--report .pick-face:hover .pick-face-name { color: var(--brand); }
.activity-sheet--report .sheet-value {
  display: flex; align-items: center; gap: 8px; height: var(--control-height); min-height: var(--control-height); padding: 0 10px;
  font-size: var(--control-font); color: var(--ink); overflow: hidden; white-space: nowrap;
}
.activity-sheet--report .sheet-value > span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.activity-sheet--report .sheet-empty { color: var(--muted); }
.activity-sheet--report .cell-status { width: 148px; }
.activity-sheet--report .cell-status .badge { margin-left: 10px; }
@media (max-width: 720px) {
  .activity-upload { margin-left: 0; width: 100%; }
}

.section-title .pano-actions form { flex: 0 0 auto; max-width: none; min-width: 0; }
.pano-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pano-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pano-nav h2 { margin: 0; }
.pano-name, .pano-board {
  height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px;
}
.pano-name { width: 180px; }
.pano-name:focus, .pano-board:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-ring); outline: none; }
.pano-board { max-width: 220px; }
.pano-status { color: var(--muted); font-size: 13px; }
.pano-share { margin-bottom: 16px; padding: 16px; }
.pano-share-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pano-share-head h3 { margin: 0; font-size: 15px; }
.pano-share .field { margin: 8px 0 12px; }
.pano-share .tag-picker { max-width: 480px; }
.pano-studio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.pano-stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pano-palette { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.pano-piece { cursor: grab; width: auto; }
.pano-piece:active { cursor: grabbing; }
.pano-canvas {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 72px; gap: 8px;
  min-height: 720px; padding: 8px; border: 1px solid #c9d2dc; border-radius: var(--radius);
  background-color: #fff;
  background-image:
    linear-gradient(to right, rgba(90, 110, 130, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(90, 110, 130, 0.22) 1px, transparent 1px),
    linear-gradient(to right, rgba(90, 110, 130, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(90, 110, 130, 0.10) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: 0 0;
  position: relative;
}
.pano-canvas.is-over { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.pano-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); pointer-events: none; text-align: center; padding: 24px; z-index: 1;
  font-size: 13px;
}
.pano-widget {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow); min-width: 0; min-height: 0; display: flex; flex-direction: column;
  position: relative; overflow: hidden; z-index: 1;
}
.pano-widget.is-on { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.pano-widget-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 28px;
  border-bottom: 1px solid var(--line); cursor: grab;
}
.pano-studio.is-readonly .pano-widget-head { cursor: default; }
.pano-studio.is-live .pano-canvas {
  border: 0; padding: 0; min-height: 0;
  background-color: transparent; background-image: none; box-shadow: none;
}
.pano-studio.is-live .pano-widget.is-on { border-color: var(--line); box-shadow: var(--shadow); }
.pano-studio.is-live .pano-empty { position: relative; inset: auto; min-height: 240px; }
.pano-widget-title { font-size: 13px; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pano-widget.is-stat { overflow: hidden; }
.pano-widget.is-stat .pano-widget-head {
  position: absolute; inset: 0 0 auto 0; height: 22px; z-index: 1;
  background: transparent; border: 0; padding: 0;
}
.pano-widget.is-stat .pano-widget-title { visibility: hidden; }
.pano-widget.is-stat .pano-widget-body { padding: 16px 16px 12px; overflow: hidden; }
.pano-widget.is-stat.stat-todo { background: var(--warn-soft); }
.pano-widget.is-stat.stat-progress { background: var(--brand-soft); }
.pano-widget.is-stat.stat-done { background: var(--ok-soft); }
.pano-widget.is-stat.stat-live { background: #fff; }
.pano-widget.is-stat.stat-reply { background: var(--info-soft); }
.pano-stat { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; min-height: 0; flex: 1; }
.pano-stat .stat-copy { flex: 1 1 80px; }
.pano-stat .label { color: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pano-stat .value { font-size: 30px; font-weight: 700; margin-top: 6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pano-stat .hint { color: var(--body); font-size: 13px; margin-top: 4px; }
.pano-widget.is-stat.stat-todo .stat-icon, .pano-widget.is-stat.stat-todo .value { color: var(--warn); }
.pano-widget.is-stat.stat-progress .stat-icon, .pano-widget.is-stat.stat-progress .value { color: var(--brand); }
.pano-widget.is-stat.stat-done .stat-icon, .pano-widget.is-stat.stat-done .value { color: var(--ok); }
.pano-widget.is-stat.stat-live .stat-icon, .pano-widget.is-stat.stat-live .value { color: var(--ink); }
.pano-widget.is-stat.stat-reply .stat-icon, .pano-widget.is-stat.stat-reply .value { color: var(--info); }
.pano-widget-body { flex: 1; min-height: 0; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; }
.pano-widget-body .list-grid-foot { padding: 6px 8px; }
.pano-widget.is-grid-fit .pano-widget-body { overflow: auto; min-width: 0; }
.pano-widget-body > table.data { max-width: none; }
.pano-widget .grid-pager-size { display: none; }
.pano-widget .grid-tools-col {
  width: 40px; min-width: 40px; max-width: 44px;
  padding: 2px 0 !important; text-align: center; vertical-align: middle;
}
.pano-widget .grid-tools-col .grid-menu { display: inline-flex; justify-content: center; }
.pano-widget.is-no-head:has(.grid-tools-col) thead { display: table-header-group; }
.pano-widget.is-no-head:has(.grid-tools-col) thead th:not(.grid-tools-col) {
  color: transparent; font-size: 0; line-height: 0; padding-top: 0; padding-bottom: 0; border-bottom: 0; pointer-events: none;
}
.pano-widget.is-no-head:has(.grid-tools-col) thead th:not(.grid-tools-col) > * { display: none !important; }
.pano-widget .ticket-line {
  display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%;
}
.pano-widget .ticket-code { flex: none; white-space: nowrap; color: var(--brand); font-weight: 400; }
.pano-widget .ticket-subject {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--body); font-weight: 450;
}
.pano-widget .ticket-priority {
  --priority: var(--muted);
  height: auto; min-height: 0; padding: 0; border-radius: 0;
  background: transparent; color: var(--priority); box-shadow: none;
  font-weight: 400;
}
.pano-widget .pano-ticket-grid td { vertical-align: middle; }
.pano-widget-body .grid-menu-bar { min-height: 28px; }
.pano-widget.is-no-head:not(:has(.grid-tools-col)) thead { display: none !important; }
.pano-widget.is-no-group .grid-group-panel { display: none !important; }
.pano-widget .chart { width: 100%; height: 100%; min-height: 160px; flex: 1; }
.pano-widget.is-stat .chart-spark, .pano-widget .stat-spark {
  min-height: 32px; height: 32px; flex: 1 0 100%;
}
.pano-value { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.pano-widget-body .hint { margin: 4px 0 0; }
.pano-widget-body .empty { padding: 16px 8px; }
.pano-resize {
  position: absolute; width: 16px; height: 16px; z-index: 2;
  border: 0; background: transparent; padding: 0;
}
.pano-resize-se { right: 0; bottom: 0; cursor: nwse-resize; }
.pano-resize-sw { left: 0; bottom: 0; cursor: nesw-resize; }
.pano-resize-ne { right: 0; top: 0; cursor: nesw-resize; }
.pano-resize-nw { left: 0; top: 0; cursor: nwse-resize; }
.pano-resize::after { content: ""; position: absolute; width: 8px; height: 8px; }
.pano-resize-se::after { right: 3px; bottom: 3px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); }
.pano-resize-sw::after { left: 3px; bottom: 3px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); }
.pano-resize-ne::after { right: 3px; top: 3px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); }
.pano-resize-nw::after { left: 3px; top: 3px; border-left: 2px solid var(--muted); border-top: 2px solid var(--muted); }
.pano-inspector {
  position: fixed; z-index: 30; width: 280px; max-height: calc(100vh - 24px);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
}
.pano-inspector[hidden] { display: none !important; }
.pano-inspector-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 40px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--line);
  cursor: grab; user-select: none;
}
.pano-inspector-head:active { cursor: grabbing; }
.pano-inspector-head strong { font-size: 13px; }
.pano-inspector-body { padding: 12px; overflow: auto; }
.pano-inspector .field { margin-bottom: 8px; gap: 4px; }
.pano-check { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--ink); }
.pano-inspector [hidden] { display: none !important; }
.pano-col-picks { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; margin-top: 6px; }
.pano-col-picks .pano-check { margin: 0; }
.pano-rename { position: relative; }
.pano-rename summary { list-style: none; cursor: pointer; }
.pano-rename summary::-webkit-details-marker { display: none; }
.pano-rename form {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 8;
  display: flex; gap: 8px; min-width: 240px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.pano-rename input { height: var(--control-height-sm); min-width: 0; flex: 1; }
@media (max-width: 980px) {
  .pano-studio { grid-template-columns: 1fr; }
  .pano-inspector { width: min(280px, calc(100vw - 16px)); }
  .pano-filter-layout { grid-template-columns: 1fr; }
}
.pano-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pano-filter-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.pano-filter-list, .pano-filter-editor { padding: 12px; }
.pano-filter-list { display: flex; flex-direction: column; gap: 4px; }
.pano-filter-list button {
  min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.pano-filter-list button.on, .pano-filter-list button:hover { background: var(--bg-alt); color: var(--brand); }
.pano-filter-editor .field { margin-bottom: 10px; gap: 4px; }
.pano-filter-editor .field input, .pano-filter-editor .field select { width: 100%; }
