:root {
  --canvas: #f3f2ef;
  --surface: #ffffff;
  --surface-soft: #f8f7f4;
  --ink: #2f3033;
  --ink-strong: #1f2022;
  --muted: #737477;
  --line: #e2dfda;
  --line-strong: #cbc7c0;
  --brand: #f58634;
  --brand-hover: #e87928;
  --brand-strong: #a7440a;
  --brand-soft: #fff0e5;
  --green: #287454;
  --green-2: #e4f2eb;
  --amber: #8a5a12;
  --amber-bg: #fff2d9;
  --red: #a33f35;
  --red-bg: #fceae7;
  --blue: #246aa6;
  --blue-bg: #e8f2fb;
  --shadow-sm: 0 1px 2px rgba(41, 38, 34, 0.04), 0 8px 24px rgba(41, 38, 34, 0.05);
  --shadow-md: 0 18px 55px rgba(41, 38, 34, 0.12);
  --sans: "Montserrat", "Avenir Next", "Segoe UI", Arial, Helvetica, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  border-top: 3px solid var(--brand);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #ffd8bb; color: var(--ink-strong); }
[hidden] { display: none !important; }

button,
input,
select,
textarea { color: inherit; font: inherit; }

button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.48; }
button:active:not(:disabled) { transform: translateY(1px); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(245, 134, 52, 0.35);
  outline-offset: 2px;
}

h1,
h2,
h3,
p { margin: 0; }

h1 {
  color: var(--ink-strong);
  font-size: 34px;
  font-weight: 720;
  letter-spacing: -1.35px;
  line-height: 1.08;
}

h2 {
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.45px;
}

h3 { color: var(--ink-strong); font-size: 14px; }
p { line-height: 1.55; }
a { color: inherit; }
.muted { color: var(--muted); }

.eyebrow {
  color: var(--brand-strong);
  font: 750 10px/1.5 var(--sans);
  letter-spacing: 1.4px;
}

.mono { font-family: var(--mono); }
.small { font-size: 12px; }
.wide { width: 100%; }

.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 200;
  border-radius: 0 0 8px 8px;
  background: var(--ink-strong);
  color: #fff;
  padding: 11px 14px;
  text-decoration: none;
}

.skip-link:focus { top: 0; }

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  padding: 10px 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder { color: #999a9c; }

input:hover,
select:hover,
textarea:hover { border-color: #aaa69f; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(245, 134, 52, 0.13);
  outline: 0;
}

textarea { line-height: 1.55; resize: vertical; }

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.field-help {
  color: var(--muted);
  font-size: 10px;
  font-weight: 450;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  padding: 9px 15px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.button:hover { border-color: #b8b4ad; background: var(--surface-soft); }

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #27282a;
  box-shadow: 0 6px 16px rgba(167, 68, 10, 0.14);
}

.button.primary:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
  box-shadow: 0 8px 20px rgba(167, 68, 10, 0.2);
}

.button.danger { border-color: #e9c4bf; color: var(--red); }

.text-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.text-button {
  padding: 7px 0;
  font-size: 12px;
  font-weight: 650;
}

.text-button:hover,
.icon-button:hover { color: var(--brand-strong); }

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  font-size: 19px;
  transition: background 0.18s ease, color 0.18s ease;
}

.icon-button:hover { background: var(--brand-soft); }

.refresh-action span,
.refresh-action svg {
  transform-origin: center;
}

.refresh-action.is-refreshing span,
.refresh-action.is-refreshing svg {
  animation: refresh-rotate 0.72s linear infinite;
}

@keyframes refresh-rotate {
  to { transform: rotate(360deg); }
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.badge.good { background: var(--green-2); color: var(--green); }
.badge.warning { background: var(--amber-bg); color: var(--amber); }
.badge.danger { background: var(--red-bg); color: var(--red); }
.badge.info { background: var(--blue-bg); color: var(--blue); }
.badge.neutral { background: #eceae6; color: #5f6062; }
.badge.evaluation { background: #eee8f8; color: #6f45a6; }

/* Login */
.login-shell {
  display: grid;
  min-height: calc(100dvh - 3px);
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
}

.login-brand {
  position: relative;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  overflow: hidden;
  border-right: 1px solid #45464a;
  background: var(--ink);
  padding: clamp(46px, 5vw, 76px) clamp(46px, 8vw, 128px);
  color: #fff;
  isolation: isolate;
}

.login-brand::before {
  position: absolute;
  right: -180px;
  bottom: -210px;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 88px solid rgba(245, 134, 52, 0.12);
  border-radius: 50%;
  content: "";
}

.login-brand::after {
  position: absolute;
  top: 0;
  right: 34px;
  z-index: -1;
  width: 1px;
  height: 36%;
  background: rgba(245, 134, 52, 0.62);
  content: "";
}

.brand-lockup {
  display: flex;
  width: fit-content;
  align-items: center;
}

.brand-lockup-light {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 11px;
  background: #fff;
  padding: 8px 13px;
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
}

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
  aspect-ratio: 517 / 200;
  object-fit: contain;
}

.brand-logo-login { width: 205px; }
.login-brand .eyebrow { color: var(--brand); }

.login-brand-title {
  max-width: 780px;
  margin: auto 0;
}

.login-brand h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 5.1vw, 78px);
  font-weight: 680;
  letter-spacing: -3.7px;
  line-height: 0.98;
}

.login-panel {
  display: grid;
  min-height: 720px;
  place-items: center;
  background: #fbfaf8;
  padding: 52px;
}

.login-form {
  width: min(390px, 100%);
  border-top: 4px solid var(--brand);
  background: #fff;
  padding: 36px 34px 34px;
  box-shadow: var(--shadow-md);
}

.login-form-logo {
  display: none;
  width: 166px;
  height: auto;
  margin: 0 0 34px;
}

.login-form h2 {
  margin: 10px 0 8px;
  font-size: 30px;
  letter-spacing: -1px;
}

.login-form label { margin-top: 24px; }

.login-form .button {
  margin-top: 20px;
  justify-content: space-between;
  padding-right: 14px;
  padding-left: 14px;
}

.form-error {
  min-height: 18px;
  margin-top: 10px;
  color: var(--red);
  font-size: 12px;
}

.form-error:empty { display: none; }

/* Application shell */
.mobile-header,
.mobile-bottom-nav { display: none; }

.app-shell {
  display: grid;
  min-height: calc(100dvh - 3px);
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: calc(100dvh - 3px);
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #424347;
  background: var(--ink);
  padding: 26px 17px 20px;
  color: #fff;
}

.sidebar > .brand-lockup { margin-left: 7px; }

.instance-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 25px 5px 28px;
  border: 1px solid #494a4e;
  border-radius: 10px;
  background: #37383c;
  padding: 11px 12px;
}

.instance-pill > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4bb277;
  box-shadow: 0 0 0 4px rgba(75, 178, 119, 0.14);
}

.instance-pill div { display: grid; gap: 3px; }

.instance-pill small {
  color: #9fa0a3;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.instance-pill strong {
  color: #f4f3f1;
  font-size: 11px;
  font-weight: 650;
}

.sidebar nav {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-label {
  margin: 24px 11px 8px;
  color: #898a8d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.25px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  margin: 2px 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 11px 10px;
  color: #bfc0c2;
  text-align: left;
  font-size: 12px;
  font-weight: 540;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-item::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-item > span { color: #77787b; font: 600 9px var(--mono); }

.nav-item > b {
  min-width: 22px;
  margin-left: auto;
  border-radius: 999px;
  background: #45464a;
  padding: 3px 6px;
  color: #c7c8ca;
  font: 700 9px var(--mono);
  text-align: center;
}

.nav-item:hover { background: #38393d; color: #fff; }

.nav-item.active {
  background: #3b3c40;
  color: #fff;
  font-weight: 700;
}

.nav-item.active::before { opacity: 1; transform: translateX(0); }
.nav-item.active > span { color: var(--brand); }
.nav-item.active > b { background: var(--brand); color: #27282a; }

.sidebar-footer {
  display: grid;
  gap: 7px;
  margin-top: auto;
  border-top: 1px solid #45464a;
  padding: 19px 10px 0;
}

.sidebar-footer small {
  color: #898a8d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.sidebar-footer strong,
.sidebar-footer span { font-size: 11px; }

.sidebar-footer strong { color: #f1f0ee; }
.sidebar-footer span { color: #9c9da0; overflow-wrap: anywhere; }

.user-menu-wrap { position: relative; margin-top: 3px; }

.user-menu-toggle {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 7px 8px;
  color: #d7d7d8;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.user-menu-toggle:hover,
.user-menu-toggle[aria-expanded="true"] {
  border-color: #4b4c50;
  background: #37383c;
  color: #fff;
}

.user-menu-toggle span { color: inherit; font-size: 12px; font-weight: 650; }
.user-menu-toggle svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform 0.16s ease; }
.user-menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.user-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 30;
  overflow: hidden;
  border: 1px solid #505155;
  border-radius: 10px;
  background: #37383c;
  padding: 5px;
  box-shadow: 0 18px 36px rgba(10, 10, 11, 0.32);
}

.user-menu[hidden] { display: none; }

.user-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 10px;
  color: #dededf;
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.user-menu button:hover { background: #46474b; color: #fff; }
.user-menu button:last-child { color: #f2b49f; }
.main { min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 66px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 0 36px;
  backdrop-filter: blur(12px);
}

.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb span { padding: 0 8px; color: #aaa8a3; }
.breadcrumb strong { color: var(--ink); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.page {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 39px 40px 70px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 29px;
}

.page-heading h1 { margin: 7px 0 8px; }
.page-heading #page-actions { display: flex; gap: 9px; }

.notice {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 12px;
}

.notice.danger {
  border-color: #e9c4bf;
  background: var(--red-bg);
  color: var(--red);
}

/* Dashboard content */
.metrics {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric {
  position: relative;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  padding: 22px 21px 20px;
}

.metric:last-child { border-right: 0; }
.metric:first-child { background: var(--brand-soft); }

.metric:first-child::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--brand);
  content: "";
}

.metric span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1px;
}

.metric strong {
  color: var(--ink-strong);
  font-size: 34px;
  font-weight: 680;
  letter-spacing: -1.5px;
  line-height: 1;
}

.metric small { color: var(--muted); font-size: 10px; }

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 19px 21px;
}

.panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.empty {
  padding: 62px 24px;
  color: var(--muted);
  text-align: center;
}

.empty::before {
  display: block;
  width: 34px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 4px;
  background: var(--brand);
  content: "";
}

.empty h2 { margin-bottom: 8px; color: var(--ink); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.toolbar .search {
  min-width: 240px;
  max-width: 440px;
  flex: 1;
}

.toolbar select { width: auto; min-width: 170px; }

.table-wrap {
  overflow: auto;
  scrollbar-color: #c7c3bc transparent;
  scrollbar-width: thin;
}

.data-table { width: 100%; border-collapse: collapse; }
.users-table { min-width: 1180px; }

.data-table th {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 12px 15px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.85px;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  border-bottom: 1px solid #eeece8;
  padding: 14px 15px;
  font-size: 12px;
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.16s ease; }
.data-table tbody tr:hover { background: #fff8f2; }

.row-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: left;
}

.row-button:hover strong { color: var(--brand-strong); }

.row-button strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  transition: color 0.16s ease;
}

.row-button span { color: var(--muted); font-size: 11px; }
.ticket-signals {
  display: grid;
  width: max-content;
  gap: 5px;
}

.ticket-signals .mood-indicator svg { width: 24px; height: 24px; }
.ticket-signals .mood-indicator > span { font-size: 9px; }
.deadline.overdue { color: var(--red); font-weight: 650; }
.deadline.within { color: var(--green); font-weight: 650; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 15px 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.entity-card {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(41, 38, 34, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.entity-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transition: opacity 0.18s ease;
}

.entity-card:hover {
  border-color: #d6bda9;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.entity-card:hover::before { opacity: 1; }

.entity-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.entity-card header > .badge,
.entity-card .meta > .badge {
  width: max-content;
  flex: 0 0 auto;
  align-self: flex-start;
}

.entity-card header h3 { margin-bottom: 5px; font-size: 16px; }
.entity-card .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }

.instruction-preview {
  max-height: 84px;
  overflow: hidden;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  padding: 10px 11px;
  color: #5f554d;
  font-size: 11px;
}

.entity-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.entity-actions .text-button:last-child { margin-left: auto; }
.field-list { display: grid; gap: 7px; }

.field-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 9px 10px;
  font-size: 11px;
}

.origin-ai { color: var(--blue); }

/* Dialogs */
.dialog {
  width: min(660px, calc(100vw - 30px));
  max-height: calc(100dvh - 42px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: #fff;
  padding: 0;
  box-shadow: 0 28px 90px rgba(22, 22, 23, 0.28);
}

.dialog::backdrop {
  background: rgba(31, 32, 34, 0.64);
  backdrop-filter: blur(4px);
}

.dialog form { padding: 0; }

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 21px 23px;
}

.dialog-head h2 { margin-top: 5px; }
.dialog-head.sticky { position: sticky; top: 0; z-index: 2; }

.form-grid {
  display: grid;
  gap: 18px;
  padding: 23px;
}

.form-grid .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 16px 23px;
}

.dialog .form-error { padding: 0 23px; }
.password-dialog { width: min(500px, calc(100vw - 30px)); }

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 550;
}

.check-row input {
  width: 17px;
  min-height: 0;
  accent-color: var(--brand);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
}

.user-access-state {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #f0d3bd;
  border-radius: 10px;
  background: #f0d3bd;
}

.user-access-state > div {
  display: grid;
  gap: 5px;
  background: var(--brand-soft);
  padding: 12px;
}

.user-access-state span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.user-access-state strong {
  font-size: 12px;
}

.intake-editor { display: grid; gap: 8px; }

.intake-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.5fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #ebe8e3;
  border-radius: 9px;
  background: var(--surface-soft);
  padding: 10px;
}

.intake-row input { min-height: 37px; padding: 7px 8px; }
.intake-flags { display: flex; gap: 7px; }

.intake-flags label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
}

.intake-flags input {
  width: 13px;
  min-height: 0;
  accent-color: var(--brand);
}

.ticket-dialog { width: min(1100px, calc(100vw - 26px)); }

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
}

.ticket-main { border-right: 1px solid var(--line); padding: 24px; }
.ticket-side { background: var(--surface-soft); padding: 24px; }

.ticket-tabs {
  display: flex;
  gap: 4px;
  margin: -24px -24px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 24px;
}

.ticket-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 17px 13px 15px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ticket-tab::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.ticket-tab:hover,
.ticket-tab.active { color: var(--ink-strong); }
.ticket-tab.active::after { opacity: 1; transform: scaleX(1); }

.ticket-tab span {
  min-width: 20px;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 2px 6px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.ticket-panel[hidden] { display: none; }
.ticket-state-line { display: flex; flex-wrap: wrap; gap: 7px; }

.request-brief {
  margin-top: 18px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  padding: 1px 16px 2px;
}

.request-brief .section-title { margin-top: 14px; }

.ticket-summary {
  margin: 12px 0 20px;
  font-size: 15px;
  line-height: 1.7;
}

.resolution-card,
.resolution-complete {
  margin-top: 24px;
  border: 1px solid #e6d3c3;
  border-radius: 13px;
  background: #fffaf6;
  padding: 20px;
}

.resolution-card > header,
.resolution-complete-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.resolution-card h3,
.resolution-complete h3,
.conversation-head h3 { margin-top: 4px; font-size: 17px; }

.resolution-card > p {
  max-width: 650px;
  margin: 12px 0 17px;
  font-size: 12px;
  line-height: 1.65;
}

.resolution-step {
  flex: 0 0 auto;
  border: 1px solid #efc39f;
  border-radius: 999px;
  background: #fff;
  padding: 5px 9px;
  color: var(--brand-strong);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.resolution-form { display: grid; gap: 13px; }
.resolution-form textarea { min-height: 120px; background: #fff; }
.resolution-form .form-error { padding: 0; }

.unified-ticket-actions { background: #fffaf6; }

.ticket-action-options {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-top: 2px;
}

.ticket-action-choice {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 16px;
}

.ticket-action-choice.continue {
  border-color: #d8e2dc;
  background: #f8faf8;
}

.ticket-action-choice.resolve {
  border-color: #edcfb8;
  background: #fffaf6;
}

.ticket-action-choice h4 {
  margin: 4px 0 0;
  font-size: 15px;
}

.ticket-action-choice > div > p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.ticket-action-choice .button {
  width: 100%;
  margin-top: auto;
}

.ticket-action-choice .resolution-file { padding: 12px; }

.resolution-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed #c9b6a7;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.resolution-file:hover { border-color: var(--brand); background: #fffcfa; }
.resolution-file > span:first-child { min-width: 0; }
.resolution-file strong { display: block; color: var(--ink-strong); font-size: 12px; }
.resolution-file small { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.resolution-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.file-action {
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--surface-soft);
  padding: 7px 9px;
  color: var(--ink-strong);
  font-size: 10px;
  font-weight: 700;
}

.resolution-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.resolution-message {
  margin: 17px 0;
  border-left: 3px solid var(--green);
  background: #fff;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.resolution-complete details { margin: 12px 0; font-size: 11px; }
.resolution-complete summary { color: var(--muted); cursor: pointer; font-weight: 700; }
.resolution-complete details p { margin-top: 8px; line-height: 1.6; white-space: pre-wrap; }

.evaluation-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 15px;
}

.evaluation-progress > div {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.evaluation-progress > div:not(:last-child)::after {
  width: min(72px, 28%);
  height: 1px;
  margin-left: auto;
  background: var(--line-strong);
  content: "";
}

.evaluation-progress i {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
  font-style: normal;
}

.evaluation-progress .done { color: var(--green); }
.evaluation-progress .done i { border-color: var(--green); background: var(--green-2); }
.evaluation-progress .done:not(:last-child)::after { background: #a6d6c0; }
.evaluation-progress .current { color: var(--brand-strong); }
.evaluation-progress .current i { border-color: var(--brand); background: var(--brand-soft); }

.customer-confirmation {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -10px 0 18px;
  border-radius: 10px;
  background: var(--green-2);
  padding: 11px 13px;
  color: var(--green);
}

.customer-confirmation > span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
}

.customer-confirmation p { font-size: 10px; line-height: 1.55; }
.customer-confirmation strong { display: block; font-size: 11px; }

.evaluation-awaiting {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: #fff;
  padding: 24px;
}

.evaluation-awaiting-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 18px;
  font-weight: 800;
}

.evaluation-awaiting h3 { margin-bottom: 6px; font-size: 15px; }
.evaluation-awaiting p { max-width: 600px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.evaluation-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.56fr) minmax(0, 1.44fr);
  gap: 10px;
}

.evaluation-score,
.evaluation-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 17px;
}

.evaluation-score {
  grid-row: span 2;
  background: var(--brand-soft);
}

.evaluation-score > span,
.evaluation-card > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.75px;
}

.evaluation-score > strong {
  display: block;
  margin-top: 15px;
  color: var(--ink-strong);
  font-size: 46px;
  line-height: 1;
}

.evaluation-score > strong small { color: var(--muted); font-size: 16px; }
.evaluation-score > .evaluation-no-score { font-size: 20px; line-height: 1.25; }
.rating-stars { margin-top: 10px; color: var(--brand); font-size: 17px; letter-spacing: 2px; }
.evaluation-card p { margin-top: 9px; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.evaluation-comment { border-color: #ebcfb7; background: #fffaf6; }
.evaluation-date { margin: 14px 2px 0; color: var(--muted); font-size: 10px; }

.conversation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.empty-inline {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 18px 0;
}

.fact {
  border: 1px solid #ebe8e3;
  border-radius: 9px;
  background: var(--surface-soft);
  padding: 12px;
}

.fact span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.7px;
}

.fact strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.signal-fact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.signal-fact > span:first-child { display: block; width: 100%; }

.signal-fact .mood-indicator,
.signal-fact .urgency { margin-top: 7px; }

.signal-fact .mood-indicator svg { width: 25px; height: 25px; }

.section-title {
  margin: 26px 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1px;
}

.conversation {
  display: grid;
  max-height: 620px;
  gap: 9px;
  overflow: auto;
  padding-right: 5px;
}

.message {
  max-width: 78%;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.message.customer {
  justify-self: start;
  border: 1px solid #e4e1dc;
  background: #f3f2ef;
}

.message.assistant,
.message.human {
  justify-self: end;
  border: 1px solid #f4cfb4;
  background: var(--brand-soft);
}

.message small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

/* Live conversations */
.read-only-page {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.25px;
}

.read-only-page i,
.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #42a96e;
  box-shadow: 0 0 0 4px rgba(66, 169, 110, 0.12);
}

.closed-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8d8d90;
  box-shadow: 0 0 0 4px rgba(91, 92, 96, 0.1);
}

.conversation-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 210px));
  gap: 10px;
  margin-bottom: 13px;
}

.conversation-stats > div {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 11px 13px;
  box-shadow: 0 1px 2px rgba(41, 38, 34, 0.03);
}

.conversation-stats strong { color: var(--ink-strong); font-size: 17px; }
.conversation-stats small { color: var(--muted); font-size: 10px; }
.conversation-scope-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 4px;
}

.conversation-scope-tabs button {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 8px 13px;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 720;
}

.conversation-scope-tabs button:hover { background: var(--surface-soft); color: var(--ink); }
.conversation-scope-tabs button.active { background: var(--ink-strong); color: #fff; }

.conversation-scope-tabs button span {
  min-width: 20px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.13);
  padding: 2px 6px;
  font: 700 9px var(--mono);
  text-align: center;
}

.conversation-scope-tabs button.active span { background: var(--brand); color: var(--ink-strong); }
.conversation-toolbar .search { max-width: 620px; }
.conversation-panel .panel-head { padding-top: 16px; padding-bottom: 16px; }

.conversation-list { display: grid; }

.conversation-row {
  display: grid;
  width: 100%;
  grid-template-columns: 76px minmax(120px, 0.7fr) minmax(180px, 1.3fr) 130px 82px 18px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #eeece8;
  background: #fff;
  padding: 15px 17px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  transition: background 0.16s ease;
}

.conversation-row:last-child { border-bottom: 0; }
.conversation-row:hover { background: #fff8f2; }
.conversation-row:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--brand); outline-offset: -2px; }

.conversation-person,
.conversation-preview,
.conversation-signals,
.conversation-activity {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.conversation-person strong,
.conversation-preview strong,
.conversation-activity strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.conversation-person small,
.conversation-preview small,
.conversation-signals small,
.conversation-activity small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.conversation-preview small { line-height: 1.45; }
.conversation-activity { text-align: right; }
.conversation-arrow { color: var(--brand-strong); font-size: 17px; text-align: right; }

.conversation-status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.conversation-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.conversation-status.closed { background: #eeece9; color: #66666a; }

.mood-indicator {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 750;
}

.mood-indicator svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.mood-positive { color: var(--green); }
.mood-neutral { color: #b17b18; }
.mood-upset { color: var(--red); }

.urgency {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.urgency i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.urgency-low { background: var(--green-2); color: var(--green); }
.urgency-medium { background: var(--amber-bg); color: var(--amber); }
.urgency-high { background: var(--red-bg); color: var(--red); }

.conversation-dialog { width: min(940px, calc(100vw - 26px)); }

.dialog-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.read-only-label {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 6px 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.conversation-detail-head {
  display: grid;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 22px 24px;
}

.conversation-summary-card {
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  padding: 14px 16px 15px;
}

.conversation-summary-card .section-title { margin: 0 0 8px; }
.conversation-summary-card > p:last-child { font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.ticket-conversation-summary { margin-bottom: 18px; }

.conversation-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.conversation-facts > div {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 11px;
}

.conversation-facts > div > span:first-child {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.65px;
}

.conversation-facts strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-facts .mood-indicator svg { width: 24px; height: 24px; }
.conversation-facts .mood-indicator > span { font-size: 9px; }

.conversation-draft {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  border: 1px solid #ead2bf;
  border-radius: 11px;
  background: #fff;
  padding: 15px;
}

.conversation-draft h3 { margin-top: 4px; font-size: 14px; }
.conversation-draft > p { grid-column: 1 / -1; font-size: 12px; line-height: 1.6; }
.conversation-draft > small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }

.conversation-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #ead2bf;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.conversation-action-card.closed {
  border-color: #d8dfda;
  background: #f8fbf9;
}

.conversation-action-card h3 { margin: 4px 0 6px; font-size: 15px; }
.conversation-action-card p:not(.eyebrow) { max-width: 590px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.conversation-action-buttons { display: flex; flex: 0 0 auto; gap: 8px; }

.conversation-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
}

.conversation-detail-body > section { min-width: 0; padding: 24px; }
.conversation-detail-body > aside { border-left: 1px solid var(--line); background: var(--surface-soft); padding: 0 22px 22px; }
.conversation-detail-body > aside .section-title { margin-top: 24px; }
.conversation-live-messages { max-height: min(52dvh, 560px); }

.conversation-readonly-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 11px 13px;
  color: var(--muted);
}

.conversation-readonly-note > span { color: var(--brand-strong); font-size: 18px; }
.conversation-readonly-note p { font-size: 10px; line-height: 1.5; }
.conversation-readonly-note strong { display: block; color: var(--ink); font-size: 10px; }

.conversation-ticket-list { display: grid; gap: 8px; }

.conversation-ticket-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 11px;
}

.conversation-ticket-list > div > span { display: grid; min-width: 0; gap: 4px; }
.conversation-ticket-list strong { font-size: 10px; line-height: 1.45; }
.conversation-ticket-list small { color: var(--muted); font-size: 9px; }
.conversation-ticket-list .badge { padding: 4px 6px; font-size: 8px; }

.conversation-closure-info,
.conversation-closure-feedback {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 13px;
}

.conversation-closure-info .section-title,
.conversation-closure-feedback .section-title { margin: 0 0 2px !important; }
.conversation-closure-info > strong,
.conversation-closure-feedback > strong { font-size: 12px; }
.conversation-closure-info > p,
.conversation-closure-feedback > p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.conversation-closure-info details { font-size: 10px; }
.conversation-closure-info summary { color: var(--brand-strong); cursor: pointer; font-weight: 700; }
.conversation-closure-info details p { margin-top: 8px; color: var(--muted); line-height: 1.55; white-space: pre-wrap; }
.conversation-closure-feedback { border-color: #d3e7dc; background: #f6fbf8; }
.conversation-closure-feedback.awaiting { border-color: #eadcc6; background: #fffaf2; }
.conversation-closure-feedback .closure-rating { color: var(--green); font-size: 24px; line-height: 1; }
.conversation-closure-feedback .closure-rating small { font-size: 10px; }
.conversation-closure-feedback .rating-stars { color: var(--brand-strong); font-size: 12px; letter-spacing: 1px; }
.conversation-closure-feedback > small { color: var(--muted); font-size: 9px; line-height: 1.5; }

.conversation-detail-skeleton { display: grid; gap: 30px; padding: 28px; }

.processing-dialog {
  width: min(540px, calc(100vw - 30px));
  overflow: hidden;
}

.processing-dialog::backdrop {
  background: rgba(27, 28, 30, 0.76);
  backdrop-filter: blur(7px);
}

.processing-content {
  display: grid;
  justify-items: center;
  padding: 30px;
  text-align: center;
}

.processing-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 17px;
  background: var(--brand-soft);
}

.processing-mark::before,
.processing-mark::after {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 3px solid transparent;
  border-top-color: var(--brand);
  border-radius: 50%;
  content: "";
  animation: processing-spin 0.95s linear infinite;
}

.processing-mark::after {
  width: 37px;
  height: 37px;
  border-top-color: transparent;
  border-right-color: rgba(167, 68, 10, 0.35);
  animation-duration: 1.45s;
  animation-direction: reverse;
}

.processing-mark span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}

.processing-dialog[data-state="success"] .processing-mark,
.processing-dialog[data-state="error"] .processing-mark { background: #f3faf6; }
.processing-dialog[data-state="error"] .processing-mark { background: var(--red-bg); }
.processing-dialog[data-state="success"] .processing-mark::after,
.processing-dialog[data-state="error"] .processing-mark::after { display: none; }
.processing-dialog[data-state="success"] .processing-mark::before,
.processing-dialog[data-state="error"] .processing-mark::before {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  color: var(--green);
  content: "✓";
  font: 800 25px/1 var(--sans);
  animation: none;
}

.processing-dialog[data-state="error"] .processing-mark::before { color: var(--red); content: "!"; }
.processing-dialog[data-state="success"] .processing-mark span,
.processing-dialog[data-state="error"] .processing-mark span { display: none; }

.processing-content h2 { margin: 5px 0 8px; font-size: 22px; }
.processing-content > .muted { max-width: 410px; font-size: 11px; line-height: 1.55; }

.processing-steps {
  display: grid;
  width: 100%;
  gap: 6px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.processing-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 9px 12px;
  color: var(--muted);
}

.processing-step > span:last-child { display: grid; min-width: 0; gap: 3px; }
.processing-step strong { color: inherit; font-size: 11px; }
.processing-step small { overflow: hidden; font-size: 9px; line-height: 1.4; text-overflow: ellipsis; }

.processing-step-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  font: 750 10px var(--mono);
}

.processing-step.active { border-color: #efbf9b; background: var(--brand-soft); color: var(--ink); }
.processing-step.active .processing-step-icon { border: 3px solid #f2d8c5; border-top-color: var(--brand); color: transparent; animation: processing-spin 0.8s linear infinite; }
.processing-step.done { border-color: #cfe4d7; background: #f4faf6; color: var(--green); }
.processing-step.done .processing-step-icon { border-color: #acd1ba; background: var(--green); color: #fff; }
.processing-step.skipped { opacity: 0.62; }
.processing-step.error { border-color: #edc7c3; background: var(--red-bg); color: var(--red); }
.processing-step.error .processing-step-icon { border-color: var(--red); color: var(--red); }

.processing-error {
  width: 100%;
  margin-top: 14px;
  border-left: 3px solid var(--red);
  background: var(--red-bg);
  padding: 11px 13px;
  color: var(--red);
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
}

.processing-content > .button { width: 100%; margin-top: 13px; }

@keyframes processing-spin {
  to { transform: rotate(360deg); }
}

.composer { display: grid; gap: 8px; margin-top: 14px; }

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.file-label:hover { color: var(--brand-strong); }
.file-label input { display: none; }
.ticket-controls { display: grid; gap: 14px; }

.ticket-controls label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.6px;
}

.ticket-controls label > small {
  display: block;
  margin-top: 6px;
  color: #92908c;
  font-size: 9px;
  letter-spacing: 0;
}

.ticket-controls select:disabled { color: var(--muted); cursor: not-allowed; opacity: 0.78; }

.timeline { display: grid; gap: 12px; }

.timeline-item {
  position: relative;
  border-left: 2px solid #ddd9d3;
  padding-left: 12px;
}

.timeline-item::before {
  position: absolute;
  top: 4px;
  left: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.timeline-item p { font-size: 11px; }
.timeline-item small { color: var(--muted); font-size: 9px; }
.attachments { display: grid; gap: 7px; }

.attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  font-size: 11px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.attachment:hover {
  border-color: #e7b995;
  background: var(--brand-soft);
}

/* Simulator */
.simulator-shell {
  display: grid;
  min-height: 610px;
  grid-template-columns: 290px minmax(0, 1fr);
}

.simulator-info {
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 24px;
}

.simulator-info p { margin: 11px 0; font-size: 12px; }

.simulator-chat {
  display: flex;
  min-height: 610px;
  flex-direction: column;
}

.simulator-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 24px;
}

.simulator-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}

.simulator-compose textarea { min-height: 44px; max-height: 130px; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  max-width: min(400px, calc(100vw - 32px));
  border-left: 4px solid var(--brand);
  border-radius: 9px;
  background: var(--ink-strong);
  padding: 13px 17px;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 15px 40px rgba(20, 20, 21, 0.24);
}

.setup-prompt,
.update-prompt {
  position: fixed;
  right: 24px;
  z-index: 80;
  width: min(420px, calc(100vw - 32px));
  border: 1px solid #dfd8cf;
  border-top: 4px solid var(--brand);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  padding: 18px;
  box-shadow: 0 22px 65px rgba(41, 38, 34, 0.18);
  backdrop-filter: blur(16px);
}

.setup-prompt {
  bottom: 24px;
  padding-right: 50px;
}

.setup-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: 500 19px/1 var(--sans);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.setup-dismiss:hover { border-color: #c7b09e; background: var(--brand-soft); color: var(--ink-strong); }

.setup-prompt-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}

.setup-prompt-head img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.setup-prompt-head h2,
.update-prompt h2 {
  margin-top: 3px;
  font-size: 17px;
}

.setup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.setup-help {
  margin-top: 11px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  padding: 9px 10px;
  color: #6a5444;
  font-size: 11px;
}

.update-prompt {
  top: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.update-prompt .button {
  flex: 0 0 auto;
}

/* Loading skeletons */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skeleton-screen {
  width: 100%;
}

.skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  border-color: transparent !important;
  background: #e8e5df !important;
  color: transparent !important;
  pointer-events: none;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  transform: translateX(-105%);
  animation: skeleton-shimmer 1.45s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  to { transform: translateX(105%); }
}

.skeleton-copy {
  display: grid;
  width: 100%;
  gap: 10px;
}

.skeleton-line {
  width: 72%;
  height: 10px;
  border-radius: 4px;
}

.skeleton-line.short { width: 34%; }
.skeleton-line.medium { width: 56%; }
.skeleton-line.long { width: 82%; }
.skeleton-line.full,
.skeleton-control.full { width: 100%; }

.skeleton-title {
  width: 64%;
  height: 25px;
  border-radius: 7px;
}

.skeleton-number {
  width: 58px;
  height: 34px;
  border-radius: 7px;
}

.skeleton-chip {
  width: 64px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.skeleton-control {
  width: 170px;
  height: 44px;
  border-radius: 9px;
}

.skeleton-button {
  width: 92px;
  height: 42px;
  border-radius: 9px;
}

.skeleton-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.skeleton-toolbar .grow {
  width: auto;
  max-width: 440px;
  flex: 1;
}

.skeleton-metric .skeleton-line {
  min-height: 9px;
}

.skeleton-panel,
.skeleton-card {
  pointer-events: none;
}

.skeleton-table {
  overflow: hidden;
}

.skeleton-row {
  display: grid;
  min-height: 62px;
  grid-template-columns: minmax(170px, 1.65fr) minmax(95px, 0.9fr) minmax(65px, 0.55fr) minmax(100px, 0.9fr) minmax(90px, 0.75fr);
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #eeece8;
  padding: 14px 16px;
}

.skeleton-row:last-child {
  border-bottom: 0;
}

.skeleton-row .skeleton-line,
.skeleton-row .skeleton-chip {
  width: 100%;
}

.skeleton-row .skeleton-chip {
  max-width: 68px;
}

.skeleton-card {
  min-height: 210px;
}

.skeleton-card:hover {
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(41, 38, 34, 0.03);
  transform: none;
}

.skeleton-card:hover::before {
  opacity: 0;
}

.skeleton-card .entity-actions .skeleton-line {
  width: 58px;
}

.skeleton-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-message {
  width: 62%;
  height: 58px;
  border-radius: 12px;
}

.skeleton-message.left { align-self: flex-start; }
.skeleton-message.right { align-self: flex-end; width: 54%; }
.skeleton-message.short-message { width: 42%; height: 45px; }
.skeleton-simulator .simulator-info .skeleton-copy { gap: 15px; }

.skeleton-ticket .ticket-main,
.skeleton-ticket .ticket-side {
  min-height: 560px;
}

.skeleton-ticket .facts .fact {
  display: grid;
  gap: 10px;
}

.skeleton-ticket .facts .skeleton-line {
  width: 100%;
}

.skeleton-ticket .skeleton-messages {
  margin-top: 34px;
}

.skeleton-ticket .ticket-side > .skeleton-copy {
  gap: 15px;
}

.skeleton-ticket .ticket-side .skeleton-row {
  min-height: 32px;
  grid-template-columns: 1fr;
  border: 0;
  padding: 4px 0;
}

.skeleton-ticket .ticket-side .skeleton-row .skeleton:nth-child(n + 2) {
  display: none;
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 228px minmax(0, 1fr); }
  .page { padding-right: 26px; padding-left: 26px; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-last-child(-n + 2) { border-bottom: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .ticket-layout { grid-template-columns: 1fr; }

  .ticket-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body { border-top: 0; }

  .login-shell {
    display: block;
    min-height: 100dvh;
  }

  .login-brand { display: none; }

  .login-panel {
    min-height: 100dvh;
    align-items: center;
    padding: 28px 18px;
  }

  .login-form {
    width: min(430px, 100%);
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    padding: 31px 25px 27px;
    box-shadow: var(--shadow-sm);
  }

  .login-form-logo { display: block; }

  .app-shell {
    display: block;
    min-height: 100dvh;
    padding-top: 70px;
  }

  .sidebar,
  .topbar { display: none; }

  .mobile-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 60;
    display: flex;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 3px solid var(--brand);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    padding: 7px 12px 7px 16px;
    box-shadow: 0 4px 16px rgba(39, 40, 42, 0.06);
    backdrop-filter: blur(14px);
  }

  .mobile-logo {
    display: block;
    width: 132px;
    height: auto;
    flex: 0 0 auto;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .mobile-channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }

  .mobile-channel i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #36a466;
    box-shadow: 0 0 0 3px rgba(54, 164, 102, 0.13);
  }

  .mobile-action {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #66676a;
  }

  .mobile-action:hover {
    background: var(--brand-soft);
    color: var(--brand-strong);
  }

  .mobile-action svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    min-height: calc(68px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    padding: 0 5px env(safe-area-inset-bottom);
    box-shadow: 0 -8px 24px rgba(39, 40, 42, 0.08);
    backdrop-filter: blur(16px);
  }

  .mobile-nav-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 68px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: visible;
    border: 0;
    background: transparent;
    padding: 7px 2px 5px;
    color: #77787b;
    font-size: 8.5px;
    font-weight: 650;
    letter-spacing: -0.1px;
    white-space: nowrap;
  }

  .mobile-nav-item::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--brand);
    content: "";
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.18s ease, width 0.18s ease;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
  }

  .mobile-nav-item > span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-nav-item > b {
    position: absolute;
    top: 6px;
    left: calc(50% + 7px);
    min-width: 16px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--ink);
    padding: 1px 4px;
    color: #fff;
    font: 700 8px/1.35 var(--mono);
    text-align: center;
  }

  .mobile-nav-item.active {
    color: var(--brand-strong);
    font-weight: 780;
  }

  .mobile-nav-item.active::before { width: 32px; opacity: 1; }

  .mobile-nav-item.active svg {
    stroke: var(--brand);
    stroke-width: 2;
  }

  .mobile-nav-item.active > b {
    background: var(--brand);
    color: var(--ink-strong);
  }

  .main { min-height: calc(100dvh - 70px); }

  .page {
    padding: 26px 14px calc(96px + env(safe-area-inset-bottom));
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 23px;
  }

  .page-heading h1 {
    margin-top: 6px;
    font-size: 29px;
  }

  .page-heading #page-actions,
  .page-heading #page-actions .button { width: 100%; }

  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .metric,
  .metric:nth-child(3),
  .metric:nth-last-child(-n + 2) {
    min-height: 118px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    padding: 17px;
    box-shadow: var(--shadow-sm);
  }

  .metric:first-child {
    grid-column: 1 / -1;
    min-height: 125px;
    background: var(--brand-soft);
  }

  .metric strong { font-size: 30px; }
  .panel { border-radius: 13px; }

  .panel-head {
    align-items: flex-start;
    padding: 17px;
  }

  .empty { padding: 48px 20px; }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar .search { max-width: none; }
  .toolbar select { width: 100%; }

  .conversation-stats { grid-template-columns: 1fr 1fr; }
  .conversation-stats > div:last-child { grid-column: 1 / -1; }
  .conversation-stats > div { grid-template-columns: auto 1fr; gap: 6px 9px; }
  .conversation-stats > div .live-dot,
  .conversation-stats > div .closed-dot { grid-row: 1 / 3; }
  .conversation-stats > div strong { align-self: end; }
  .conversation-stats > div small { grid-column: 1 / -1; white-space: normal; }
  .conversation-scope-tabs { display: flex; width: 100%; }
  .conversation-scope-tabs button { flex: 1; justify-content: center; }

  .conversation-row {
    grid-template-columns: 54px minmax(0, 1fr) 18px;
    grid-template-areas:
      "mood person arrow"
      "mood preview preview"
      "signals signals activity";
    gap: 9px 11px;
    padding: 15px;
  }

  .conversation-mood { grid-area: mood; align-self: start; }
  .conversation-mood .mood-indicator { display: grid; justify-items: center; }
  .conversation-person { grid-area: person; }
  .conversation-preview { grid-area: preview; }
  .conversation-signals { grid-area: signals; display: flex; align-items: center; gap: 8px; }
  .conversation-activity { grid-area: activity; align-self: center; text-align: right; }
  .conversation-arrow { grid-area: arrow; }
  .conversation-preview small { white-space: normal; }

  .read-only-page { width: max-content; }
  .dialog-head-actions .read-only-label { display: none; }
  .conversation-detail-head { padding: 18px; }
  .conversation-facts { grid-template-columns: 1fr 1fr; }
  .conversation-action-card { align-items: stretch; flex-direction: column; }
  .conversation-action-buttons { display: grid; grid-template-columns: 1fr; }
  .conversation-action-card .button { width: 100%; }
  .conversation-detail-body { grid-template-columns: 1fr; }
  .conversation-detail-body > section { padding: 18px; }

  .conversation-detail-body > aside {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 0 18px 18px;
  }

  .conversation-live-messages { max-height: none; }

  .processing-content { padding: 24px 18px; }
  .processing-content h2 { font-size: 20px; }
  .processing-step { min-height: 58px; padding: 10px; }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .data-table { min-width: 760px; }
  .ticket-table { min-width: 940px; }

  .data-table th,
  .data-table td {
    padding-right: 13px;
    padding-left: 13px;
  }

  .pagination {
    position: sticky;
    left: 0;
    min-width: min(100%, 340px);
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
  }

  .cards { grid-template-columns: 1fr; }

  .entity-card {
    border-radius: 13px;
    padding: 18px;
  }

  .dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 18px);
    border-radius: 15px;
  }

  .dialog-head { padding: 18px; }
  .form-grid { padding: 18px; }

  .form-grid .two,
  .checkbox-grid { grid-template-columns: 1fr; }

  .user-access-state { grid-template-columns: 1fr; }

  .dialog-actions {
    position: sticky;
    bottom: 0;
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  }

  .dialog-actions .button { flex: 1; }
  .intake-row { grid-template-columns: 1fr; }
  .ticket-layout { display: block; }

  .ticket-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }

  .ticket-side { padding: 18px; }
  .ticket-tabs { margin: -18px -18px 20px; padding: 0 14px; }
  .ticket-tab { flex: 1; justify-content: center; padding: 15px 6px 13px; font-size: 10px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .message { max-width: 88%; }

  .resolution-card,
  .resolution-complete { padding: 16px; }

  .resolution-card > header,
  .resolution-complete-head,
  .resolution-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-action-options { grid-template-columns: 1fr; }
  .resolution-step { align-self: flex-start; }
  .resolution-actions .button { width: 100%; }
  .resolution-file { align-items: flex-start; flex-direction: column; }
  .evaluation-progress { gap: 8px; padding: 12px; }
  .evaluation-progress > div { align-items: flex-start; flex-direction: column; font-size: 8px; }
  .evaluation-progress > div:not(:last-child)::after { position: absolute; top: 12px; right: 2px; width: calc(100% - 38px); }
  .evaluation-grid { grid-template-columns: 1fr; }
  .evaluation-score { grid-row: auto; }
  .evaluation-awaiting { align-items: flex-start; padding: 18px; }
  .conversation { max-height: none; }

  .composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-actions .button { width: 100%; }

  .simulator-shell {
    min-height: 540px;
    grid-template-columns: 1fr;
  }

  .simulator-info {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }

  .simulator-chat { min-height: 520px; }
  .simulator-messages { padding: 18px; }

  .simulator-compose {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .toast {
    right: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
  }

  .setup-prompt,
  .update-prompt {
    right: 12px;
    left: 12px;
    width: auto;
  }

  .setup-prompt {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .update-prompt {
    top: 82px;
    align-items: stretch;
    flex-direction: column;
  }

  .update-prompt .button {
    width: 100%;
  }

  .setup-actions {
    grid-template-columns: 1fr;
  }

  .skeleton-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .skeleton-toolbar .skeleton-control,
  .skeleton-toolbar .skeleton-button,
  .skeleton-toolbar .grow {
    width: 100%;
    max-width: none;
  }

  .skeleton-table {
    overflow: hidden;
  }

  .skeleton-row {
    min-width: 680px;
  }

  .skeleton-ticket .skeleton-row {
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .mobile-logo { width: 118px; }
  .mobile-channel { font-size: 0; }
  .mobile-channel i { margin-right: 2px; }
  .mobile-nav-item { font-size: 8px; }
  .facts { grid-template-columns: 1fr; }
  .conversation-facts { grid-template-columns: 1fr; }
  .conversation-signals > small { display: none; }

  .login-form {
    padding-right: 21px;
    padding-left: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
