@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --blue: #0c66e4;
  --blue-dark: #09326c;
  --blue-soft: #deebff;
  --navy: #092957;
  --text: #0b1f44;
  --muted: #44546f;
  --soft: #8590a2;
  --line: #dfe1e6;
  --surface: #ffffff;
  --page: #f7f8fa;
  --purple: #9f4df4;
  --orange: #ff9f1a;
  --green: #22a06b;
  --cyan: #00b8d9;
  --red: #c9372c;
  --shadow: 0 8px 24px rgba(9, 30, 66, .14);
  --shadow-soft: 0 3px 12px rgba(9, 30, 66, .10);
}

/* Final workspace polish overrides. Keep this block last so older styles cannot flatten the UI. */
.content {
  background:
    radial-gradient(circle at 12% 0, rgba(12, 102, 228, .08), transparent 260px),
    linear-gradient(180deg, #f7faff 0, #f7f8fb 280px, #f7f8fb 100%);
}

.workspace-head {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 78px;
  border-bottom: 1px solid rgba(9, 30, 66, .10);
  background: rgba(247, 250, 255, .92);
  backdrop-filter: blur(16px);
}

.btn {
  min-height: 44px;
  border-radius: 10px;
  border-color: rgba(9, 30, 66, .12);
  background: linear-gradient(180deg, #fff, #f5f8ff);
  color: #09326c;
}

.btn.primary {
  border-color: #0c66e4;
  background: linear-gradient(180deg, #1d7af7, #0c66e4);
  color: #fff;
  box-shadow: 0 12px 24px rgba(12, 102, 228, .24);
}

.btn.ghost {
  border-color: rgba(12, 102, 228, .18);
  background: #f7fbff;
  color: #0c4fb5;
}

.panel,
.people-panel,
.table-card,
.filter-bar,
.bi-panel,
.kpi-card {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(9, 30, 66, .09);
}

.dashboard-grid-polished,
.dashboard-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  padding: 24px 28px 0;
}

.kpi-card {
  position: relative;
  min-height: 144px;
  overflow: hidden;
  padding: 20px;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--blue);
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(12, 102, 228, .10);
}

.kpi-cyan::before { background: var(--cyan); }
.kpi-orange::before { background: var(--orange); }
.kpi-green::before { background: var(--green); }
.kpi-cyan::after { background: rgba(0, 184, 217, .12); }
.kpi-orange::after { background: rgba(255, 159, 26, .14); }
.kpi-green::after { background: rgba(34, 160, 107, .12); }

.kpi-card span,
.kpi-card strong,
.kpi-card small {
  position: relative;
  z-index: 1;
}

.kpi-card span {
  color: #5e6c84;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kpi-card strong {
  margin-top: 14px;
  color: #071f4d;
  font-size: 42px;
}

.dashboard-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr) minmax(280px, .9fr);
  gap: 16px;
  padding: 18px 28px 0;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 42px;
  gap: 10px 12px;
  align-items: center;
}

.progress-row > div {
  grid-column: 1 / -1;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2fb;
}

.progress-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0c66e4, #00b8d9);
}

.progress-andamento i { background: linear-gradient(90deg, #00b8d9, #34d399); }
.progress-aprovacao i { background: linear-gradient(90deg, #ff9f1a, #ffd166); }
.progress-finalizado i { background: linear-gradient(90deg, #22a06b, #7ee2b8); }
.progress-cancelado i { background: linear-gradient(90deg, #c9372c, #ff8f73); }

.leader-list div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid rgba(9, 30, 66, .08);
}

.leader-list i {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0c66e4, #00b8d9);
}

.requester-ticket-card,
.list-ticket,
.ticket-card,
.person-row {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 8px 20px rgba(9, 30, 66, .06);
}

.requester-ticket-card:hover,
.list-ticket:hover,
.ticket-card:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 102, 228, .24);
  box-shadow: 0 18px 34px rgba(9, 30, 66, .12);
}

.board {
  gap: 14px;
  padding: 16px 18px 18px;
  background: transparent;
}

.lane {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: #f1f5fb;
  box-shadow: 0 10px 24px rgba(9, 30, 66, .07);
}

.person-edit {
  grid-template-columns: 48px minmax(220px, 1fr) minmax(150px, .75fr) minmax(150px, .7fr) auto auto;
  gap: 12px;
}

.person-row .avatar {
  background: linear-gradient(180deg, #1d7af7, #0c66e4);
  color: #fff;
  box-shadow: 0 10px 20px rgba(12, 102, 228, .22);
}

@media (max-width: 1180px) {
  .dashboard-visual-grid,
  .dashboard-grid-polished,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person-edit {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

/* Executive dashboard: one fixed viewport, no page scrolling. */
body:has(.exec-dashboard) {
  overflow: hidden;
}

.content:has(.exec-dashboard) {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.exec-dashboard {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(260px, .8fr) minmax(320px, .95fr);
  grid-template-rows: 112px minmax(230px, 1fr) minmax(230px, 1fr);
  gap: 14px;
  padding: 14px 24px 22px;
}

.exec-kpis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
}

.mini-kpi,
.exec-card {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(9, 30, 66, .08);
}

.mini-kpi {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
}

.mini-kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #0c66e4;
}

.mini-kpi span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-kpi strong {
  display: block;
  margin-top: 8px;
  color: #092957;
  font-size: 30px;
  line-height: 1;
}

.mini-kpi small {
  display: block;
  margin-top: 6px;
  color: #44546f;
  font-weight: 800;
}

.mini-kpi.kpi-green::before { background: #22a06b; }
.mini-kpi.kpi-cyan::before { background: #00b8d9; }
.mini-kpi.kpi-orange::before { background: #ff9f1a; }
.mini-kpi.kpi-violet::before { background: #8d4bea; }

.exec-card {
  min-height: 0;
  overflow: hidden;
  padding: 16px;
}

.exec-line {
  grid-column: 1 / 3;
}

.exec-gauges {
  grid-column: 3;
}

.exec-status {
  grid-column: 1;
}

.exec-users {
  grid-column: 2 / 4;
}

.line-chart-svg {
  width: 100%;
  height: calc(100% - 38px);
  min-height: 190px;
}

.line-chart-svg .grid-lines line {
  stroke: #dfe7f2;
  stroke-width: 1;
}

.line-chart-svg .chart-labels text {
  fill: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.gauge-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: calc(100% - 42px);
  align-items: center;
}

.exec-gauge {
  aspect-ratio: 1;
  max-height: 178px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  background: conic-gradient(var(--gauge-color) calc(var(--value) * 1%), #e8eef7 0);
}

.exec-gauge > div {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf2fb;
}

.exec-gauge strong {
  color: #092957;
  font-size: 24px;
  line-height: 1;
}

.exec-gauge span {
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.exec-dashboard .status-bars,
.user-bars {
  height: calc(100% - 42px);
  overflow: hidden;
}

.user-bars {
  display: grid;
  gap: 9px;
}

.user-bar {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(180px, 1fr);
  gap: 4px 14px;
  align-items: center;
}

.user-bar strong,
.user-bar span,
.user-bar small {
  display: block;
}

.user-bar strong {
  color: #092957;
  font-size: 13px;
}

.user-bar span,
.user-bar small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.user-bar i {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.user-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0c66e4, #00b8d9);
}

.user-bar small {
  grid-column: 2;
}

/* Dashboard graph polish: balanced chart cards and readable gauges. */
.exec-dashboard {
  grid-template-columns: minmax(420px, 1.45fr) minmax(300px, .85fr) minmax(360px, 1fr);
  grid-template-rows: 112px minmax(250px, 1fr) minmax(250px, 1fr);
}

.exec-card .panel-title {
  min-height: 34px;
  margin-bottom: 8px;
}

.exec-line {
  padding: 18px 22px 12px;
}

.line-chart-svg {
  display: block;
  width: 100%;
  height: calc(100% - 44px);
  min-height: 210px;
}

.exec-gauges {
  padding: 18px 18px 14px;
}

.gauge-row {
  height: calc(100% - 46px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: center;
}

.exec-gauge {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 66px;
  aspect-ratio: auto;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 132px 1fr;
  column-gap: 12px;
  align-items: center;
}

.exec-gauge .gauge-arc {
  position: relative;
  width: 132px;
  height: 66px;
  overflow: hidden;
}

.exec-gauge .gauge-arc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 132px 132px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, #0c66e4 0deg, #22a06b 70deg, #ffab00 125deg, #c9372c 180deg, transparent 181deg);
}

.exec-gauge .gauge-arc::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 48px;
  border-radius: 92px 92px 0 0;
  background: #fff;
  box-shadow: inset 0 1px 0 #edf2fb;
}

.exec-gauge .gauge-needle {
  position: absolute;
  left: 66px;
  bottom: 13px;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: #1f2937;
  transform-origin: 0 50%;
  transform: rotate(calc(-180deg + (var(--value) * 1.8deg)));
  box-shadow: 0 1px 4px rgba(15, 23, 42, .22);
}

.exec-gauge .gauge-needle::after {
  content: "";
  position: absolute;
  left: -7px;
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #64748b;
}

.exec-gauge strong,
.exec-gauge span {
  grid-column: 2;
  margin: 0;
  text-align: left;
}

.exec-gauge strong {
  align-self: end;
  color: #092957;
  font-size: 28px;
  line-height: 1;
}

.exec-gauge span {
  align-self: start;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.exec-status {
  padding-bottom: 18px;
}

.exec-dashboard .status-bars {
  height: calc(100% - 48px);
  display: grid;
  align-content: space-around;
  gap: 8px;
}

.exec-dashboard .progress-row {
  grid-template-columns: minmax(130px, 1fr) 38px;
  gap: 7px 10px;
}

.exec-dashboard .progress-row > div {
  height: 10px;
}

.exec-users {
  padding-bottom: 18px;
}

.user-bars {
  height: calc(100% - 48px);
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: hidden;
}

.user-bar {
  grid-template-columns: minmax(140px, .45fr) minmax(240px, 1fr);
  gap: 3px 16px;
  padding: 2px 0;
}

.user-bar i {
  height: 14px;
}

@media (max-width: 1280px) {
  .exec-dashboard {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    overflow: auto;
  }

  body:has(.exec-dashboard),
  .content:has(.exec-dashboard) {
    overflow: auto;
  }

  .exec-line,
  .exec-gauges,
  .exec-status,
  .exec-users {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .dashboard-visual-grid,
  .dashboard-grid-polished,
  .dashboard-grid {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Market-grade workspace skin inspired by mature ITSM/work-management products. */
:root {
  --market-bg: #f5f7fb;
  --market-ink: #111827;
  --market-muted: #6b7280;
  --market-border: #e6eaf2;
  --market-card: #ffffff;
  --market-blue: #2557f6;
  --market-blue-2: #0ea5e9;
  --market-green: #10b981;
  --market-yellow: #f59e0b;
  --market-red: #ef4444;
  --market-violet: #7c3aed;
  --market-shadow: 0 18px 45px rgba(17, 24, 39, .08);
}

body {
  background: var(--market-bg);
  color: var(--market-ink);
}

.shell {
  grid-template-columns: 272px minmax(0, 1fr);
  background: var(--market-bg);
}

.sidebar {
  border-right: 1px solid var(--market-border);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 10px 0 30px rgba(17, 24, 39, .04);
}

.brand {
  min-height: 74px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--market-border);
}

.brand strong {
  color: #0f172a;
  font-size: 24px;
}

.brand small {
  color: var(--market-muted);
  font-weight: 700;
}

.brand-mark {
  border-radius: 12px;
  background: linear-gradient(135deg, #2557f6, #00a3ff);
  box-shadow: 0 14px 26px rgba(37, 87, 246, .25);
}

.sidebar nav {
  gap: 8px;
}

.sidebar nav a {
  min-height: 46px;
  border-radius: 12px;
  color: #42526e;
  font-weight: 850;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.sidebar nav a:hover {
  background: #eef4ff;
  color: var(--market-blue);
  transform: translateX(2px);
}

.sidebar nav a.active {
  background: linear-gradient(135deg, #eef4ff, #e9f9ff);
  color: #1338b8;
  box-shadow: inset 4px 0 0 var(--market-blue);
}

.profile {
  border: 1px solid var(--market-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .06);
}

.content {
  background:
    radial-gradient(circle at 18% -10%, rgba(37, 87, 246, .13), transparent 340px),
    radial-gradient(circle at 92% 4%, rgba(16, 185, 129, .10), transparent 260px),
    var(--market-bg);
}

.workspace-head {
  min-height: 88px;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(230, 234, 242, .86);
  background: rgba(245, 247, 251, .82);
}

.workspace-head .eyebrow {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  letter-spacing: .12em;
}

.workspace-head h1 {
  color: #0f172a;
  font-size: 34px;
  letter-spacing: -.01em;
}

.head-actions {
  align-items: center;
}

.btn {
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid var(--market-border);
  padding: 0 17px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 1px 1px rgba(17, 24, 39, .04);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px rgba(17, 24, 39, .08);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2557f6, #0ea5e9);
  color: #fff;
  box-shadow: 0 16px 28px rgba(37, 87, 246, .24);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
}

.btn.ghost {
  border-color: #dbe4f0;
  background: #fff;
  color: #334155;
}

.panel,
.bi-panel,
.kpi-card,
.people-panel,
.filter-bar,
.table-card {
  border: 1px solid var(--market-border);
  border-radius: 16px;
  background: var(--market-card);
  box-shadow: var(--market-shadow);
}

.dashboard-grid-polished,
.dashboard-grid {
  gap: 18px;
  padding: 26px 32px 0;
}

.kpi-card {
  min-height: 150px;
  padding: 22px;
  isolation: isolate;
}

.kpi-card::before {
  height: 4px;
  background: linear-gradient(90deg, #2557f6, #0ea5e9);
}

.kpi-card::after {
  right: -34px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, rgba(37,87,246,.12), rgba(14,165,233,.08));
}

.kpi-card span {
  color: #64748b;
  font-size: 11px;
  letter-spacing: .11em;
}

.kpi-card strong {
  color: #0f172a;
  font-size: 44px;
  letter-spacing: -.03em;
}

.kpi-card small {
  color: #64748b;
  font-weight: 750;
}

.kpi-cyan::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.kpi-orange::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.kpi-green::before { background: linear-gradient(90deg, #10b981, #34d399); }

.dashboard-visual-grid {
  gap: 18px;
  padding: 18px 32px 0;
}

.bi-panel {
  min-height: 250px;
  padding: 22px;
}

.panel-title h2 {
  color: #111827;
  font-size: 18px;
  letter-spacing: -.01em;
}

.panel-title span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.progress-row {
  grid-template-columns: minmax(130px, 1fr) 46px;
}

.progress-row > span,
.leader-list span {
  color: #334155;
  font-weight: 850;
}

.progress-row > strong,
.leader-list strong {
  color: #111827;
  font-weight: 900;
}

.progress-row > div {
  height: 11px;
  background: #eef2f7;
}

.progress-row i {
  background: linear-gradient(90deg, #2557f6, #0ea5e9);
}

.progress-andamento i { background: linear-gradient(90deg, #06b6d4, #22c55e); }
.progress-aprovacao i { background: linear-gradient(90deg, #f59e0b, #facc15); }
.progress-finalizado i { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-cancelado i { background: linear-gradient(90deg, #ef4444, #fb7185); }

.priority-grid {
  gap: 12px;
}

.priority-grid div {
  border: 1px solid #edf1f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.leader-list div {
  border-color: #edf1f7;
  background: #f8fafc;
}

.leader-list i {
  background: linear-gradient(90deg, #2557f6, #0ea5e9);
}

.filter-bar {
  margin: 18px 32px 0;
  padding: 14px;
}

.quick-filters {
  gap: 8px;
}

.quick-filters .btn,
.department-filter .btn {
  min-height: 38px;
  border-radius: 10px;
}

input,
select,
textarea {
  border-radius: 11px;
  border-color: #d7deea;
  background: #fff;
  color: #111827;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2557f6;
  outline: 4px solid rgba(37, 87, 246, .14);
}

.board {
  height: calc(100vh - 88px);
  gap: 14px;
  padding: 18px 20px 20px;
}

.lane {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  box-shadow: 0 14px 32px rgba(17,24,39,.07);
}

.lane header {
  min-height: 58px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255,255,255,.9);
}

.lane header span {
  color: #111827;
  font-size: 13px;
}

.lane header strong {
  background: #eef4ff;
  color: #2557f6;
}

.ticket-card {
  border-radius: 14px;
  border: 1px solid #e5eaf2;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17,24,39,.06);
}

.ticket-title {
  color: #111827;
}

.ticket-code {
  background: #eef4ff;
  color: #2557f6;
}

.ticket-meta,
.ticket-footer {
  color: #64748b;
}

.badge,
.priority {
  border: 1px solid transparent;
  font-size: 11px;
}

.badge {
  background: #eef4ff;
  color: #1d4ed8;
}

.priority.low { background: #eef4ff; color: #1d4ed8; }
.priority.normal { background: #ecfdf5; color: #047857; }
.priority.high { background: #fffbeb; color: #b45309; }
.priority.urgent { background: #fef2f2; color: #b91c1c; }

.dashboard-list {
  padding: 18px 32px 32px !important;
}

.requester-ticket-card,
.list-ticket {
  border-radius: 15px;
  border-color: #e5eaf2;
  background: #fff;
}

.requester-ticket-card strong,
.list-ticket a {
  color: #111827;
}

.requester-ticket-card span,
.requester-ticket-card small,
.list-ticket span {
  color: #64748b;
}

.people-grid {
  gap: 20px;
  padding: 20px 32px 32px;
}

.people-panel {
  padding: 22px;
}

.people-list {
  gap: 12px;
}

.person-row {
  min-height: 88px;
  border-radius: 16px;
  border-color: #e5eaf2;
  background: #fff;
}

.person-row .avatar {
  background: linear-gradient(135deg, #2557f6, #0ea5e9);
  box-shadow: 0 12px 24px rgba(37,87,246,.22);
}

.person-row strong {
  color: #111827;
}

.person-row span,
.person-row small,
.person-row em {
  color: #64748b;
}

.person-row b {
  background: #eef4ff;
  color: #2557f6;
}

.person-edit {
  grid-template-columns: 48px minmax(210px, 1fr) minmax(155px, .7fr) minmax(140px, .62fr) auto auto;
  align-items: center;
}

.person-edit .check.compact {
  border: 1px solid #e5eaf2;
  background: #f8fafc;
  color: #334155;
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .person-edit {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .board {
    height: auto;
  }
}

/* Team page: unified, non-horizontal list. */
.people-grid-single {
  display: block;
  padding: 20px 32px 32px;
  overflow: visible;
}

.people-panel-wide {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  overflow: hidden;
}

.people-panel-wide .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.people-panel-wide .panel-title strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef4ff;
  color: #2557f6;
  font-size: 12px;
  font-weight: 900;
}

.people-list-unified {
  display: grid;
  gap: 10px;
}

.people-list-unified .person-edit {
  display: grid;
  grid-template-columns: 48px minmax(220px, 1.4fr) minmax(150px, .7fr) minmax(150px, .7fr) 104px 96px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px;
}

.person-main {
  min-width: 0;
}

.person-main strong,
.person-main span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-main small {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #64748b;
  white-space: nowrap;
}

.role-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.people-list-unified .person-edit label {
  min-width: 0;
}

.people-list-unified .person-edit select {
  min-width: 0;
}

.people-list-unified .person-edit .check.compact {
  justify-content: center;
  min-width: 0;
}

.people-list-unified .person-edit button {
  min-width: 0;
  width: 100%;
}

@media (max-width: 1200px) {
  .people-list-unified .person-edit {
    grid-template-columns: 48px minmax(0, 1fr) minmax(145px, .8fr) minmax(145px, .8fr);
  }

  .people-list-unified .person-edit .check,
  .people-list-unified .person-edit button {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .people-grid-single {
    padding: 16px;
  }

  .people-list-unified .person-edit {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .people-list-unified .person-edit label,
  .people-list-unified .person-edit .check,
  .people-list-unified .person-edit button {
    grid-column: 2;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.marketing-shell {
  min-height: 100vh;
  background: #f3f3f7;
}

.marketing-nav {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1250px) / 2));
  background: #fff;
  border-bottom: 1px solid rgba(9, 30, 66, .08);
  box-shadow: 0 1px 4px rgba(9, 30, 66, .08);
}

.marketing-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(12, 102, 228, .28);
}

.support-logo {
  position: relative;
  overflow: hidden;
}

.support-logo::before,
.support-logo::after,
.support-logo span::before {
  content: "";
  position: absolute;
  background: #fff;
}

.support-logo::before {
  width: 16px;
  height: 13px;
  left: 9px;
  top: 8px;
  border-radius: 4px;
}

.support-logo::after {
  width: 8px;
  height: 8px;
  left: 14px;
  top: 19px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.support-logo span::before {
  width: 5px;
  height: 5px;
  right: 8px;
  top: 9px;
  border-radius: 999px;
}

.marketing-brand small {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.marketing-brand strong,
.brand strong {
  display: block;
  color: #172b4d;
  font-size: 26px;
  line-height: .9;
  font-weight: 900;
}

.marketing-nav nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marketing-nav nav a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  color: #092957;
  font-weight: 700;
}

.marketing-nav nav a:last-child {
  background: var(--blue);
  color: #fff;
}

.announcement {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 10px 18px;
  background: #e8eefc;
  color: #34364a;
  text-align: center;
  font-weight: 600;
}

.marketing-content {
  width: min(1400px, calc(100% - 42px));
  margin: 0 auto;
}

.marketing-hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(420px, 600px) minmax(620px, 1fr);
  align-items: center;
  gap: 42px;
  padding: 58px 0 40px;
}

.marketing-hero.with-form {
  min-height: calc(100vh - 96px);
  align-items: start;
  padding: 4px 0 20px;
}

.hero-copy h1 {
  margin: 0;
  color: #20234f;
  font-size: clamp(40px, 3.65vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 16px 0 0;
  color: #34364a;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 10px;
  color: #34364a;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.signup-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.privacy-note {
  max-width: 560px;
  color: var(--muted) !important;
  font-size: 15px !important;
}

.public-org-name {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(222, 235, 255, .82);
  color: #092957;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.05;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(9, 30, 66, .10);
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual svg {
  max-width: 100%;
}

.hero-dashboard-art {
  width: min(760px, 100%);
  height: auto;
  display: block;
}

.visual-backdrop {
  position: absolute;
  inset: 34px 10px 18px 34px;
  z-index: 1;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(222, 235, 255, .72)),
    radial-gradient(circle at 82% 16%, rgba(12, 102, 228, .22), transparent 32%);
  border: 1px solid rgba(9, 50, 108, .10);
  box-shadow: 0 30px 90px rgba(9, 30, 66, .15);
  overflow: hidden;
}

.visual-backdrop::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(12, 102, 228, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(12, 102, 228, .08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.powerbi-board {
  position: absolute;
  left: 10px;
  top: 18px;
  z-index: 3;
  width: 500px;
  height: auto;
  display: block;
}

.analytics-board {
  position: absolute;
  left: 0;
  top: 36px;
  z-index: 3;
  width: 500px;
  min-height: 382px;
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 250, 255, .92)),
    #fff;
  border: 1px solid rgba(9, 50, 108, .14);
  box-shadow: 0 34px 90px rgba(9, 30, 66, .22);
  backdrop-filter: blur(16px);
}

.analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.analytics-head span,
.panel-label span,
.analytics-kpis small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-head strong {
  display: block;
  margin-top: 4px;
  color: #092957;
  font-size: 19px;
  line-height: 1;
}

.analytics-head em {
  border-radius: 999px;
  padding: 8px 11px;
  background: #dcfff1;
  color: #006644;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.analytics-kpis div,
.line-panel,
.side-panel {
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(9, 50, 108, .10);
  box-shadow: 0 10px 26px rgba(9, 30, 66, .08);
}

.analytics-kpis div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 13px;
}

.analytics-kpis strong {
  color: #092957;
  font-size: 27px;
  line-height: 1;
}

.analytics-kpis i {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebecf0;
}

.analytics-kpis i::before {
  content: "";
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.analytics-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 12px;
}

.line-panel {
  min-height: 172px;
  padding: 14px;
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-label strong {
  color: var(--green);
  font-size: 13px;
}

.line-chart {
  position: relative;
  height: 112px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(12, 102, 228, .10), transparent),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(9, 50, 108, .08) 27px);
  overflow: hidden;
}

.line-chart i {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  height: 70px;
  background: linear-gradient(135deg, transparent 8%, var(--blue) 8% 11%, transparent 11% 24%, var(--cyan) 24% 27%, transparent 27% 45%, var(--blue) 45% 48%, transparent 48% 65%, var(--green) 65% 68%, transparent 68%);
  filter: drop-shadow(0 8px 10px rgba(12, 102, 228, .22));
}

.line-chart span {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 5px 14px rgba(12, 102, 228, .34);
}

.line-chart span:nth-child(1) { left: 22px; bottom: 28px; }
.line-chart span:nth-child(2) { left: 68px; bottom: 58px; background: var(--cyan); }
.line-chart span:nth-child(3) { left: 116px; bottom: 42px; }
.line-chart span:nth-child(4) { left: 165px; bottom: 78px; background: var(--green); }
.line-chart span:nth-child(5) { left: 214px; bottom: 60px; background: var(--cyan); }
.line-chart span:nth-child(6) { right: 24px; bottom: 88px; background: var(--green); }

.side-panel {
  min-height: 172px;
  display: grid;
  align-content: center;
  gap: 13px;
  padding: 13px;
}

.gauge-ring {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(var(--green) 0 87%, #ebecf0 87% 100%);
}

.gauge-ring strong,
.gauge-ring small {
  grid-area: 1 / 1;
}

.gauge-ring strong {
  margin-top: -12px;
  color: #092957;
  font-size: 25px;
  line-height: 1;
}

.gauge-ring small {
  margin-top: 32px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-mini {
  display: grid;
  gap: 7px;
}

.status-mini span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.status-mini i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.status-mini span:nth-child(2) i { background: var(--orange); }
.status-mini span:nth-child(3) i { background: var(--green); }

.analytics-bars {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 58px;
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(222, 235, 255, .52);
  border: 1px solid rgba(9, 50, 108, .08);
}

.analytics-bars span {
  flex: 1;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.analytics-bars .bar-one { height: 48%; }
.analytics-bars .bar-two { height: 72%; }
.analytics-bars .bar-three { height: 58%; }
.analytics-bars .bar-four { height: 86%; background: linear-gradient(180deg, var(--green), var(--cyan)); }
.analytics-bars .bar-five { height: 66%; }
.analytics-bars .bar-six { height: 78%; background: linear-gradient(180deg, var(--orange), #ffd980); }

.visual-panel {
  position: absolute;
  left: 36px;
  top: 46px;
  width: 235px;
  display: grid;
  gap: 12px;
}

.visual-panel span {
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(9, 50, 108, .09);
  box-shadow: 0 12px 28px rgba(9, 30, 66, .08);
}

.visual-panel span::before,
.visual-panel span::after {
  content: "";
  display: block;
  height: 8px;
  border-radius: 999px;
  margin: 12px 14px 0;
  background: #a6c5f7;
}

.visual-panel span::after {
  width: 48%;
  margin-top: 8px;
  background: rgba(68, 84, 111, .20);
}

.flow-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(12, 102, 228, .52), transparent);
  transform-origin: left center;
}

.flow-line::after {
  content: "";
  position: absolute;
  right: 12%;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(12, 102, 228, .12);
}

.flow-1 {
  left: 175px;
  top: 150px;
  width: 270px;
  transform: rotate(5deg);
}

.flow-2 {
  left: 190px;
  top: 270px;
  width: 290px;
  transform: rotate(-7deg);
}

.flow-3 {
  left: 220px;
  top: 374px;
  width: 230px;
  transform: rotate(8deg);
}

.phone-mock {
  position: relative;
  z-index: 5;
  width: 172px;
  min-height: 330px;
  border: 8px solid #172033;
  border-radius: 32px;
  padding: 20px 10px 13px;
  background: #f8fbff;
  box-shadow: 28px 36px 80px rgba(9, 30, 66, .26);
  transform: translate(178px, 92px);
}

.phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 58px;
  height: 15px;
  border-radius: 999px;
  background: #050b13;
  transform: translateX(-50%);
}

.phone-title {
  margin: 12px 0 12px;
  color: #0b1f44;
  font-size: 18px;
  font-weight: 900;
}

.phone-card {
  height: 46px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #dfe1e6;
  box-shadow: 0 2px 8px rgba(9, 30, 66, .10);
}

.phone-card::before {
  content: "";
  display: block;
  width: 72%;
  height: 8px;
  margin: 9px 10px 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: .25;
}

.phone-card::after {
  content: "";
  display: block;
  width: 44%;
  height: 6px;
  margin-left: 10px;
  border-radius: 999px;
  background: #a6c5f7;
}

.phone-card.blue { color: var(--blue); border-left: 5px solid var(--blue); }
.phone-card.cyan { color: var(--cyan); border-left: 5px solid var(--cyan); }
.phone-card.green { color: var(--green); border-left: 5px solid var(--green); }
.phone-card.orange { color: var(--orange); border-left: 5px solid var(--orange); }

.phone-tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 15px;
  height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dfe1e6;
}

.phone-tabbar span {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: #a6c5f7;
}

.shape {
  position: absolute;
  z-index: 2;
  width: 185px;
  height: 185px;
  transform: rotate(43deg);
  opacity: .86;
}

.shape-orange {
  left: 4%;
  bottom: 26px;
  background: var(--orange);
}

.shape-purple {
  right: 8%;
  bottom: 6px;
  background: var(--purple);
}

.app-chip {
  position: absolute;
  z-index: 5;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  min-height: 58px;
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .94);
  color: #172b4d;
  border: 1px solid rgba(9, 50, 108, .10);
  box-shadow: 0 18px 42px rgba(9, 30, 66, .16);
  backdrop-filter: blur(10px);
}

.app-chip small {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 900;
}

.app-chip strong {
  color: #172b4d;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
}

.chip-1 { right: 5%; top: 168px; }
.chip-2 { right: 1%; top: 266px; }
.chip-3 { right: 10%; top: 364px; }

.chip-1 small { background: #eae6ff; color: #5e4db2; }
.chip-2 small { background: #dcfff1; color: #006644; }
.chip-3 small { background: #fff0b3; color: #974f0c; }

.auth-card {
  width: min(580px, 100%);
  margin: 24px 0 0;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(9, 30, 66, .12);
}

.auth-card h2,
.panel h2 {
  margin: 0 0 18px;
  color: #34364a;
  font-size: 24px;
}

.shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background:
    linear-gradient(180deg, #e9f2ff 0, #f7f8fa 320px),
    var(--page);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 12px rgba(9, 30, 66, .06);
}

.sidebar .brand {
  padding: 4px 8px 22px;
  border-bottom: 1px solid var(--line);
}

.sidebar .brand small,
.profile span,
td small {
  display: block;
  color: var(--soft);
  font-size: 12px;
  margin-top: 4px;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 800;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.profile {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #f7f8fa;
}

.profile strong {
  color: #172b4d;
}

.profile a {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
}

.content {
  min-width: 0;
  height: 100vh;
  overflow: auto;
  padding: 0;
}

.ticket-head,
.panel,
.table-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.workspace-head {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 86px;
  padding: 16px 28px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 250, .96);
  backdrop-filter: blur(14px);
}

.workspace-head h1,
.ticket-head h1,
.panel h1 {
  margin: 0;
  color: #092957;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
}

.workspace-head p,
.ticket-head p,
.panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.head-actions,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 28px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.quick-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.department-filter {
  display: flex;
  align-items: end;
  gap: 10px;
}

.department-filter label,
.person-edit label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.department-filter select,
.person-edit select {
  min-height: 42px;
  padding: 8px 10px;
}

.metrics {
  display: none;
}

.legacy-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-height: 100px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.metric:nth-child(1) { border-top: 5px solid var(--blue); }
.metric:nth-child(2) { border-top: 5px solid var(--cyan); }
.metric:nth-child(3) { border-top: 5px solid #ffab00; }
.metric:nth-child(4) { border-top: 5px solid var(--green); }
.metric:nth-child(5) { border-top: 5px solid var(--red); }

.metric span {
  display: block;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: #092957;
  font-size: 32px;
  line-height: 1;
}

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
  height: calc(100vh - 86px);
  padding: 12px 14px 14px;
}

.lane {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  border-radius: 10px;
  background: #ebecf0;
  box-shadow: none;
  overflow: hidden;
}

.lane header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #f7f8fa;
}

.lane header span {
  color: #172b4d;
  font-weight: 900;
}

.lane header strong {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.lane-novo header { border-top: 5px solid var(--blue); }
.lane-andamento header { border-top: 5px solid var(--cyan); }
.lane-aprovacao header { border-top: 5px solid #ffab00; }
.lane-finalizado header { border-top: 5px solid var(--green); }
.lane-cancelado header { border-top: 5px solid var(--red); }

.lane-stack {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
}

.lane-stack::-webkit-scrollbar {
  width: 9px;
}

.lane-stack::-webkit-scrollbar-thumb {
  border: 2px solid #ebecf0;
  border-radius: 999px;
  background: #b3bac5;
}

.ticket-card {
  position: relative;
  display: grid;
  gap: 10px;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(9, 30, 66, .25);
  transition: transform .16s ease, box-shadow .16s ease;
}

.ticket-card[draggable="true"] {
  cursor: grab;
}

.ticket-card.dragging {
  opacity: .58;
  cursor: grabbing;
}

.ticket-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.drag-handle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 18px;
  border-radius: 6px;
  background: radial-gradient(circle, #8993a4 1.6px, transparent 2px) 0 0 / 8px 8px;
  opacity: .75;
}

.lane.drag-over {
  outline: 3px solid var(--blue);
  background: #dbeafe;
}

.ticket-title {
  padding-right: 24px;
  color: #172b4d;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ticket-code {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 900;
}

.ticket-meta,
.ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.assignee {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority,
.badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.priority.low { background: #deebff; color: #0747a6; }
.priority.normal { background: #dcfff1; color: #006644; }
.priority.high { background: #fff0b3; color: #974f0c; }
.priority.urgent { background: #ffebe6; color: #bf2600; }
.badge { background: var(--blue-soft); color: var(--blue-dark); }

.empty-lane {
  border: 1px dashed #b3bac5;
  border-radius: 10px;
  padding: 18px;
  color: var(--soft);
  text-align: center;
  background: rgba(255, 255, 255, .65);
  font-weight: 800;
}

.ticket-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
  padding: 26px;
  margin: 18px 28px;
}

.status-card {
  display: grid;
  align-content: start;
  gap: 11px;
  border-left: 6px solid var(--blue);
  border-radius: 14px;
  padding: 18px;
  background: var(--blue-soft);
}

.status-card small {
  color: var(--muted);
  font-weight: 700;
}

.danger-panel {
  border-color: #ffd5d2;
  background: #fff8f7;
}

.panel {
  padding: 26px;
  margin: 18px 28px;
}

.panel.narrow {
  max-width: 610px;
}

.form {
  display: grid;
  gap: 15px;
}

.form.is-submitting {
  pointer-events: none;
  opacity: .72;
}

.form.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span {
  grid-column: 1 / -1;
}

.input {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 600;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(12, 102, 228, .18);
}

.is-disabled-visual {
  opacity: .72;
}

.submit-loading {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid rgba(12, 102, 228, .22);
  border-radius: 10px;
  padding: 14px 16px;
  background: #f4f8ff;
  color: #092957;
  box-shadow: 0 10px 28px rgba(9, 30, 66, .10);
}

.submit-loading[hidden] {
  display: none;
}

.submit-loading strong {
  font-size: 14px;
}

.submit-loading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.submit-loading-bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #deebff;
}

.submit-loading-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: submit-loading 1s ease-in-out infinite;
}

@keyframes submit-loading {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(245%); }
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 18px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 900;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.btn.primary:hover {
  background: #0052cc;
}

.auth-card .btn.primary {
  border-color: #202f63;
  background: #202f63;
}

.auth-card .btn.primary:hover {
  background: #162452;
}

.btn.ghost {
  background: #fff;
}

.btn.danger {
  border-color: #c9372c !important;
  background: #c9372c !important;
  color: #fff !important;
}

.btn.danger:hover {
  border-color: #ae2a19 !important;
  background: #ae2a19 !important;
  color: #fff !important;
}

.btn.text-link {
  border-color: transparent;
  background: transparent;
  color: var(--blue);
  box-shadow: none;
}

/* Visual refresh: stable, CSS-only improvements for the support workspace. */
.shell {
  background:
    linear-gradient(180deg, #eef4ff 0, #f7f8fb 220px),
    #f7f8fb;
}

.content {
  background:
    radial-gradient(circle at 12% 0, rgba(12, 102, 228, .08), transparent 260px),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
}

.workspace-head {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 78px;
  border-bottom: 1px solid rgba(9, 30, 66, .10);
  background: rgba(247, 250, 255, .88);
}

.workspace-head .eyebrow {
  color: #5e6c84;
  font-size: 12px;
}

.workspace-head h1 {
  color: #071f4d;
  font-size: 32px;
}

.panel,
.people-panel,
.table-card,
.filter-bar,
.bi-panel,
.kpi-card {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 38px rgba(9, 30, 66, .09);
}

.btn {
  min-height: 44px;
  border-radius: 10px;
  border-color: rgba(9, 30, 66, .12);
  padding: 0 18px;
  background: linear-gradient(180deg, #fff, #f5f8ff);
  color: #09326c;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}

.btn.primary {
  border-color: #0c66e4;
  background: linear-gradient(180deg, #1d7af7, #0c66e4);
  color: #fff;
  box-shadow: 0 12px 24px rgba(12, 102, 228, .24);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #0c66e4, #0052cc);
}

.btn.ghost {
  border-color: rgba(12, 102, 228, .18);
  background: #f7fbff;
  color: #0c4fb5;
}

.btn.danger {
  box-shadow: 0 12px 24px rgba(201, 55, 44, .20);
}

input,
select,
textarea {
  min-height: 44px;
  border-radius: 10px;
  border-color: #cfd7e6;
  background: #fbfdff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #a9b8d0;
  background: #fff;
}

.dashboard-grid-polished,
.dashboard-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  padding: 24px 28px 0;
}

.kpi-card {
  position: relative;
  min-height: 144px;
  overflow: hidden;
  padding: 20px;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--blue);
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(12, 102, 228, .10);
}

.kpi-card span {
  position: relative;
  z-index: 1;
  color: #5e6c84;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kpi-card strong {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: #071f4d;
  font-size: 42px;
}

.kpi-card small {
  position: relative;
  z-index: 1;
  max-width: 220px;
  color: #52647d;
}

.kpi-cyan::before { background: var(--cyan); }
.kpi-orange::before { background: var(--orange); }
.kpi-green::before { background: var(--green); }
.kpi-cyan::after { background: rgba(0, 184, 217, .12); }
.kpi-orange::after { background: rgba(255, 159, 26, .14); }
.kpi-green::after { background: rgba(34, 160, 107, .12); }

.dashboard-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr) minmax(280px, .9fr);
  gap: 16px;
  padding: 18px 28px 0;
}

.bi-panel {
  min-height: 240px;
  padding: 20px;
}

.panel-title {
  margin-bottom: 16px;
}

.panel-title h2 {
  color: #071f4d;
}

.panel-title span {
  color: #6b778c;
}

.status-bars {
  display: grid;
  gap: 14px;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 42px;
  gap: 10px 12px;
  align-items: center;
}

.progress-row > span {
  color: #172b4d;
  font-weight: 900;
}

.progress-row > strong {
  justify-self: end;
  color: #071f4d;
  font-size: 18px;
}

.progress-row > div {
  grid-column: 1 / -1;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2fb;
}

.progress-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0c66e4, #00b8d9);
}

.progress-andamento i { background: linear-gradient(90deg, #00b8d9, #34d399); }
.progress-aprovacao i { background: linear-gradient(90deg, #ff9f1a, #ffd166); }
.progress-finalizado i { background: linear-gradient(90deg, #22a06b, #7ee2b8); }
.progress-cancelado i { background: linear-gradient(90deg, #c9372c, #ff8f73); }

.priority-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.priority-grid div {
  min-height: 82px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f5f8ff);
}

.leader-list {
  display: grid;
  gap: 12px;
}

.leader-list div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid rgba(9, 30, 66, .08);
}

.leader-list span {
  overflow: hidden;
  color: #172b4d;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-list strong {
  color: #071f4d;
}

.leader-list i {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0c66e4, #00b8d9);
}

.dashboard-list {
  padding: 18px 28px 28px !important;
}

.requester-ticket-card,
.list-ticket {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(9, 30, 66, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.requester-ticket-card:hover,
.list-ticket:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 102, 228, .24);
  box-shadow: 0 18px 34px rgba(9, 30, 66, .12);
}

.board {
  gap: 14px;
  padding: 16px 18px 18px;
  background: transparent;
}

.lane {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: #f1f5fb;
  box-shadow: 0 10px 24px rgba(9, 30, 66, .07);
}

.lane header {
  padding: 14px 16px;
  background: rgba(255,255,255,.88);
}

.ticket-card {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 13px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(9, 30, 66, .08);
}

.ticket-code {
  background: #eef4ff;
  color: #0c4fb5;
}

.people-grid {
  gap: 18px;
  padding: 18px 28px 28px;
}

.people-panel {
  padding: 20px;
}

.people-list {
  gap: 12px;
}

.person-row {
  min-height: 86px;
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 8px 20px rgba(9, 30, 66, .06);
}

.person-row .avatar {
  background: linear-gradient(180deg, #1d7af7, #0c66e4);
  color: #fff;
  box-shadow: 0 10px 20px rgba(12, 102, 228, .22);
}

.person-edit {
  grid-template-columns: 48px minmax(220px, 1fr) minmax(150px, .75fr) minmax(150px, .7fr) auto auto;
  gap: 12px;
  align-items: center;
}

.person-edit label span {
  color: #6b778c;
}

.person-edit select {
  border-radius: 10px;
  background: #fff;
}

.person-edit .check.compact {
  min-height: 42px;
  align-items: center;
  border-radius: 10px;
  padding: 0 12px;
  background: #f2f7ff;
}

.filter-bar {
  border-radius: 14px;
  background: rgba(255,255,255,.90);
}

.quick-filters .btn {
  min-height: 40px;
}

.badge,
.priority {
  border: 1px solid rgba(9, 30, 66, .07);
}

@media (max-width: 1180px) {
  .dashboard-visual-grid,
  .dashboard-grid-polished,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person-edit {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .dashboard-visual-grid,
  .dashboard-grid-polished,
  .dashboard-grid {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .dashboard-list,
  .people-grid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

.form-link {
  width: fit-content;
  color: var(--blue);
  font-weight: 900;
}

.form-link:hover {
  color: #0052cc;
  text-decoration: underline;
}

.table-card {
  overflow: auto;
  margin: 18px 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td a {
  color: var(--blue);
  font-weight: 900;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.timeline,
.events {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  background: #f7f8fa;
}

.message span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.message p {
  margin-bottom: 0;
}

dl {
  margin: 0 0 12px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.file {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 900;
  background: #f7f8fa;
}

.requester-list {
  display: grid;
  gap: 12px;
  margin: 18px 28px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 28px 0;
}

.kpi-card {
  min-height: 136px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.kpi-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.kpi-card strong {
  color: #092957;
  font-size: 34px;
  line-height: 1;
}

.kpi-card small {
  color: var(--soft);
  line-height: 1.35;
}

.bi-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  padding: 14px 28px 28px;
}

.bi-panel,
.people-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.bi-panel.large {
  grid-column: span 2;
}

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

.panel-title h2 {
  margin: 0;
  color: #092957;
  font-size: 20px;
}

.panel-title span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bar-chart {
  height: 240px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 16px;
}

.bar-item {
  min-width: 28px;
  flex: 1;
  display: grid;
  align-items: end;
  gap: 8px;
  height: 100%;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.bar {
  min-height: 6px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.gauge-panel {
  display: grid;
  align-content: start;
}

.gauge {
  --value: 0;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  margin: 4px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--green) calc(var(--value) * 1%), #ebecf0 0);
}

.gauge strong,
.gauge span {
  grid-area: 1 / 1;
}

.gauge strong {
  margin-top: -18px;
  color: #092957;
  font-size: 38px;
}

.gauge span {
  margin-top: 44px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-bars {
  display: grid;
  gap: 13px;
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.progress-row span {
  color: var(--muted);
  font-weight: 800;
}

.progress-row strong {
  color: #092957;
}

.progress-row div {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebecf0;
}

.progress-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.leader-list,
.priority-grid {
  display: grid;
  gap: 10px;
}

.leader-list div,
.priority-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f7f8fa;
}

.leader-list span {
  color: var(--muted);
  font-weight: 800;
}

.leader-list strong,
.priority-grid strong,
.big-number strong {
  color: #092957;
  font-size: 22px;
}

.big-number {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
}

.big-number strong {
  display: block;
  font-size: 56px;
}

.big-number span,
.empty-bi {
  color: var(--soft);
  font-weight: 800;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 28px 28px;
}

.people-list {
  display: grid;
  gap: 10px;
}

.person-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f7f8fa;
}

.person-edit {
  grid-template-columns: 42px minmax(180px, 1fr) minmax(150px, .8fr) minmax(130px, .7fr) auto auto;
}

.person-edit small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.check.compact {
  align-self: end;
  min-height: 42px;
  display: flex;
  padding: 0 8px;
  text-transform: none;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.person-row strong,
.person-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-row strong {
  color: #092957;
}

.person-row span,
.person-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.person-row b {
  color: var(--blue-dark);
}

.list-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.list-ticket a {
  display: block;
  color: var(--text);
  font-weight: 900;
}

.list-ticket span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.list-ticket > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.requester-dashboard {
  display: grid;
  gap: 18px;
  padding: 18px 28px 28px;
}

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

.requester-summary article {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.requester-summary span,
.requester-summary small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.requester-summary span {
  font-size: 12px;
  text-transform: uppercase;
}

.requester-summary strong {
  display: block;
  margin: 8px 0 6px;
  color: #092957;
  font-size: 34px;
  line-height: 1;
}

.requester-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}

.requester-panel {
  margin: 0;
}

.requester-panel.wide {
  grid-column: span 1;
}

.requester-ticket-stack,
.activity-feed,
.closed-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.requester-ticket-card,
.activity-feed a,
.closed-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #f7f8fa;
}

.activity-feed a {
  display: grid;
}

.requester-ticket-card strong,
.activity-feed strong,
.closed-list strong {
  display: block;
  color: #092957;
  font-weight: 900;
}

.requester-ticket-card span,
.requester-ticket-card small,
.activity-feed span,
.activity-feed p,
.closed-list span,
.closed-list small,
.empty-dashboard {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.activity-feed p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.empty-dashboard {
  margin-top: 14px;
}

.copybox {
  display: flex;
  gap: 10px;
}

.alert {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 900;
}

.alert.success {
  background: #dcfff1;
  color: #006644;
}

.alert.error {
  background: #ffebe6;
  color: #bf2600;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(9, 30, 66, .58);
  backdrop-filter: blur(6px);
}

.modal-backdrop[hidden] {
  display: none;
}

.transition-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(9, 30, 66, .34);
}

.transition-modal h2 {
  margin: 0;
  color: #092957;
  font-size: 28px;
}

.transition-modal p {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f1f2f4;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--muted);
}

.check input {
  width: auto;
}

@media (max-width: 1180px) {
  .marketing-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(138px, 1fr));
  }

  .board {
    grid-template-columns: repeat(5, minmax(240px, 1fr));
    overflow-x: auto;
  }

  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bi-layout,
  .people-grid {
    grid-template-columns: 1fr;
  }

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

  .department-filter {
    align-items: end;
    flex-wrap: wrap;
  }

  .person-edit {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .person-edit label,
  .person-edit .check,
  .person-edit button {
    grid-column: 2;
  }

  .requester-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .bi-panel.large {
    grid-column: auto;
  }
}

@media (max-width: 920px) {
  .marketing-nav {
    height: auto;
    display: grid;
    gap: 12px;
    padding: 14px 18px;
  }

  .marketing-nav nav {
    flex-wrap: wrap;
  }

  .marketing-nav nav a,
  .marketing-nav nav a:last-child {
    min-height: 42px;
    border-radius: 6px;
    padding: 0 12px;
  }

  .marketing-hero {
    min-height: auto;
    padding: 42px 0 30px;
  }

  .hero-visual {
    min-height: 440px;
    transform: scale(.82);
  }

  .phone-mock {
    transform: translate(112px, 42px);
  }

  .analytics-board {
    left: 4px;
    width: 500px;
  }

  .auth-card {
    margin: 0 0 40px;
  }

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

  .sidebar {
    position: static;
    height: auto;
  }

  .content {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .workspace-head,
  .ticket-head,
  .columns,
  .form.grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .workspace-head {
    padding: 16px 18px;
  }

  .board {
    height: auto;
    min-height: 70vh;
    grid-template-columns: minmax(280px, 1fr);
    overflow: visible;
    padding: 12px 18px 18px;
  }

  .lane {
    min-height: 360px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-head h1,
  .ticket-head h1,
  .panel h1 {
    font-size: 28px;
  }

  .copybox,
  .list-ticket,
  .signup-row {
    display: grid;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 14px 18px 0;
  }

  .bi-layout,
  .people-grid {
    padding: 14px 18px 18px;
  }

  .requester-dashboard {
    padding: 14px 18px 18px;
  }

  .requester-summary {
    grid-template-columns: 1fr;
  }

  .requester-ticket-card,
  .closed-list a {
    display: grid;
  }

  .person-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .person-row em,
  .person-row b {
    grid-column: 2;
  }
}

/* Final priority overrides for the refreshed workspace UI. */
.content {
  background:
    radial-gradient(circle at 12% 0, rgba(12, 102, 228, .08), transparent 260px),
    linear-gradient(180deg, #f7faff 0, #f7f8fb 280px, #f7f8fb 100%);
}

.workspace-head {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 78px;
  border-bottom: 1px solid rgba(9, 30, 66, .10);
  background: rgba(247, 250, 255, .92);
  backdrop-filter: blur(16px);
}

.btn {
  min-height: 44px;
  border-radius: 10px;
  border-color: rgba(9, 30, 66, .12);
  background: linear-gradient(180deg, #fff, #f5f8ff);
  color: #09326c;
}

.btn.primary {
  border-color: #0c66e4;
  background: linear-gradient(180deg, #1d7af7, #0c66e4);
  color: #fff;
  box-shadow: 0 12px 24px rgba(12, 102, 228, .24);
}

.btn.ghost {
  border-color: rgba(12, 102, 228, .18);
  background: #f7fbff;
  color: #0c4fb5;
}

.panel,
.people-panel,
.table-card,
.filter-bar,
.bi-panel,
.kpi-card {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(9, 30, 66, .09);
}

.dashboard-grid-polished,
.dashboard-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  padding: 24px 28px 0;
}

.kpi-card {
  position: relative;
  min-height: 144px;
  overflow: hidden;
  padding: 20px;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--blue);
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(12, 102, 228, .10);
}

.kpi-cyan::before { background: var(--cyan); }
.kpi-orange::before { background: var(--orange); }
.kpi-green::before { background: var(--green); }
.kpi-cyan::after { background: rgba(0, 184, 217, .12); }
.kpi-orange::after { background: rgba(255, 159, 26, .14); }
.kpi-green::after { background: rgba(34, 160, 107, .12); }

.dashboard-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr) minmax(280px, .9fr);
  gap: 16px;
  padding: 18px 28px 0;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 42px;
  gap: 10px 12px;
  align-items: center;
}

.progress-row > div {
  grid-column: 1 / -1;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2fb;
}

.progress-row i,
.leader-list i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0c66e4, #00b8d9);
}

.leader-list i {
  grid-column: 1 / -1;
  height: 7px;
}

.requester-ticket-card,
.list-ticket,
.ticket-card,
.person-row {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 8px 20px rgba(9, 30, 66, .06);
}

.board {
  gap: 14px;
  padding: 16px 18px 18px;
  background: transparent;
}

.lane {
  border: 1px solid rgba(9, 30, 66, .10);
  border-radius: 14px;
  background: #f1f5fb;
  box-shadow: 0 10px 24px rgba(9, 30, 66, .07);
}

.person-edit {
  grid-template-columns: 48px minmax(220px, 1fr) minmax(150px, .75fr) minmax(150px, .7fr) auto auto;
  gap: 12px;
}

@media (max-width: 1180px) {
  .dashboard-visual-grid,
  .dashboard-grid-polished,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person-edit {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .dashboard-visual-grid,
  .dashboard-grid-polished,
  .dashboard-grid {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Final Equipe overrides - keep at EOF. */
.people-grid.people-grid-single {
  display: block;
  grid-template-columns: 1fr !important;
  width: 100%;
  max-width: 100%;
  padding: 20px 32px 32px !important;
  overflow: visible !important;
}

.people-panel.people-panel-wide {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  overflow: hidden;
}

.people-panel-wide .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.people-list.people-list-unified {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.people-list-unified .person-row.person-edit {
  display: grid;
  grid-template-columns: 48px minmax(220px, 1.4fr) minmax(150px, .7fr) minmax(150px, .7fr) 104px 96px !important;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px;
}

.person-main,
.person-main strong,
.person-main span,
.people-list-unified .person-edit label,
.people-list-unified .person-edit select {
  min-width: 0;
  max-width: 100%;
}

.person-main strong,
.person-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-main small {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #64748b;
  white-space: nowrap;
}

.role-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.people-list-unified .person-edit .check.compact,
.people-list-unified .person-edit button {
  min-width: 0;
  width: 100%;
}

@media (max-width: 1200px) {
  .people-list-unified .person-row.person-edit {
    grid-template-columns: 48px minmax(0, 1fr) minmax(145px, .8fr) minmax(145px, .8fr) !important;
  }
}

@media (max-width: 820px) {
  .people-grid.people-grid-single {
    padding: 16px !important;
  }

  .people-list-unified .person-row.person-edit {
    grid-template-columns: 48px minmax(0, 1fr) !important;
  }

  .people-list-unified .person-edit label,
  .people-list-unified .person-edit .check,
  .people-list-unified .person-edit button {
    grid-column: 2;
  }
}

/* Usuarios page: admin-only management list without outer card framing. */
.users-head {
  padding-bottom: 18px;
}

.people-grid.people-grid-single {
  padding: 20px 24px 32px !important;
}

.people-panel.people-panel-wide.users-panel {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.users-panel-title {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.users-panel-title strong {
  border-radius: 999px;
  padding: 8px 14px;
  background: #e9f2ff;
  color: #0c66e4;
  font-size: 13px;
}

.users-panel .people-list-unified {
  gap: 12px;
}

/* Fixed kanban viewport: only cards inside each lane scroll vertically. */
body:has(.board) {
  overflow: hidden;
}

.content:has(.board) {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.content:has(.board) > .alert {
  position: fixed;
  top: 18px;
  right: 28px;
  z-index: 30;
  max-width: 520px;
}

.content:has(.board) .workspace-head,
.content:has(.board) .filter-bar {
  flex: 0 0 auto;
}

.content:has(.board) .board {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  align-items: stretch;
}

.content:has(.board) .lane {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.content:has(.board) .lane header {
  flex: 0 0 auto;
}

.content:has(.board) .lane-stack {
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 18px;
}

@media (max-width: 1180px) {
  body:has(.board) {
    overflow: auto;
  }

  .content:has(.board) {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    display: block;
  }

  .content:has(.board) .board {
    height: auto;
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(260px, 1fr));
  }

  .content:has(.board) .lane {
    height: calc(100vh - 220px);
    min-height: 520px;
  }
}
