:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #cfd6df;
  --panel: #ffffff;
  --bg: #eef2f6;
  --head: #1f3a5f;
  --accent: #0f766e;
  --danger: #b42318;
  --focus: #2563eb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #174a7c; text-decoration: none; }
h1 { font-size: 20px; margin: 0 0 6px; }
h2 { font-size: 15px; margin: 0 0 10px; }
input, select, textarea {
  width: 100%;
  min-height: 32px;
  border: 1px solid #aeb8c4;
  border-radius: 2px;
  padding: 5px 7px;
  font-size: 13px;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .14);
  outline: 0;
}
textarea { resize: vertical; }
label { display: block; font-weight: 600; color: #263746; }
label input, label select, label textarea { margin-top: 3px; font-weight: 400; }
.label-note { color: var(--muted); font-size: 11px; font-weight: 400; }

.topbar {
  height: 42px;
  background: var(--head);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 3px solid #0f766e;
}
.brand { color: #fff; font-weight: 700; letter-spacing: 0; }
.topnav { display: flex; gap: 14px; align-items: center; }
.topnav a, .topnav span, .link-btn { color: #fff; font-size: 12px; }
.topnav a {
  border-bottom: 2px solid transparent;
  padding: 12px 0 10px;
}
.topnav a.active {
  border-bottom-color: #8dd7c8;
  color: #f8fafc;
}
.user-chip {
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  padding: 4px 7px;
}
.link-btn { border: 0; background: transparent; padding: 0; }
.topnav form { margin: 0; }
.menu-toggle,
.drawer-close,
.nav-backdrop {
  display: none;
}

.app-shell { display: flex; flex: 1; min-height: 0; }
.content-pane { flex: 1; padding: 14px; overflow-x: auto; display: flex; flex-direction: column; }
.breadcrumb-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb-bar a { color: #31577d; font-weight: 700; }
.breadcrumb-bar b { color: #17202a; }
.span-all { grid-column: 1 / -1; }
.complaint-page {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, .94), rgba(238, 242, 246, .98)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='500' viewBox='0 0 900 500'%3E%3Crect width='900' height='500' fill='%23e5edf5'/%3E%3Cg fill='none' stroke='%2394a3b8' stroke-width='1' opacity='.45'%3E%3Cpath d='M0 90h900M0 180h900M0 270h900M0 360h900M0 450h900M90 0v500M180 0v500M270 0v500M360 0v500M450 0v500M540 0v500M630 0v500M720 0v500M810 0v500'/%3E%3C/g%3E%3Cg fill='%230f766e' opacity='.13'%3E%3Crect x='98' y='96' width='126' height='42'/%3E%3Crect x='585' y='190' width='180' height='42'/%3E%3Crect x='335' y='328' width='136' height='42'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-attachment: fixed;
}
.complaint-page .content-pane {
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
}
.sidebar {
  width: 190px;
  background: #f8fafc;
  border-right: 1px solid var(--line);
  padding: 10px;
}
.sidebar a {
  display: block;
  padding: 8px 9px;
  color: #263746;
  border: 1px solid transparent;
}
.sidebar a:hover { background: #e9eef5; border-color: #cdd6e1; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  color: var(--muted);
  margin-top: auto;
}
.site-footer b {
  display: block;
  color: var(--ink);
}
.site-footer span,
.site-footer small {
  font-size: 11px;
}

.page-head, .form-panel, .record-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px;
  margin-bottom: 12px;
}
.landing-hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: center;
  padding: 34px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .76)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1100' height='560' viewBox='0 0 1100 560'%3E%3Crect width='1100' height='560' fill='%23dfe7f0'/%3E%3Cg opacity='.62'%3E%3Crect x='650' y='78' width='320' height='260' rx='6' fill='%23ffffff' stroke='%2394a3b8'/%3E%3Crect x='686' y='122' width='248' height='16' fill='%231f3a5f' opacity='.9'/%3E%3Crect x='686' y='166' width='210' height='12' fill='%230f766e' opacity='.8'/%3E%3Crect x='686' y='202' width='240' height='12' fill='%2394a3b8'/%3E%3Crect x='686' y='238' width='180' height='12' fill='%2394a3b8'/%3E%3Crect x='120' y='340' width='620' height='88' rx='6' fill='%23ffffff' stroke='%2394a3b8'/%3E%3Cpath d='M155 384h540M155 410h340' stroke='%230f766e' stroke-width='10' opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  border-radius: 4px;
}
.landing-copy h1 {
  max-width: 620px;
  font-size: 34px;
  line-height: 1.08;
  margin-bottom: 10px;
}
.landing-copy p {
  max-width: 680px;
  color: #344054;
  font-size: 15px;
}
.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.landing-panel {
  background: #ffffff;
  border: 1px solid #b9c5d2;
  border-radius: 4px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.panel-head span { color: var(--muted); font-size: 11px; }
.queue-row {
  display: grid;
  grid-template-columns: 85px 80px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid #d6dde6;
  padding: 8px;
  margin-top: 7px;
  background: #f8fafc;
}
.queue-row b {
  background: #ecfdf5;
  border: 1px solid #86b7a9;
  color: #075e54;
  text-align: center;
  padding: 2px 4px;
  font-size: 11px;
}
.queue-row em { color: var(--muted); font-style: normal; font-size: 11px; }
.home-section,
.home-panel,
.home-action-band {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 12px;
  padding: 14px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}
.section-head h2,
.home-panel h2,
.home-action-band h2 {
  margin: 0;
  font-size: 16px;
}
.section-head p,
.home-action-band p {
  margin: 0;
  color: var(--muted);
}
.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.workflow-strip div {
  border: 1px solid #d6dde6;
  background: #f8fafc;
  padding: 10px;
}
.workflow-strip b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #1f3a5f;
  color: #fff;
  margin-bottom: 6px;
}
.workflow-strip span {
  display: block;
  font-weight: 700;
}
.workflow-strip small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}
.mini-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.mini-platforms span {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 6px;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}
.compact-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #344054;
}
.compact-list li {
  margin-bottom: 5px;
}
.home-action-band {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-left: 4px solid var(--accent);
}
.home-action-band > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.complaint-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  overflow: hidden;
  position: relative;
}
.complaint-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0f766e, #2563eb, #f59e0b);
}
.eyebrow {
  display: block;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.complaint-hero h1 {
  font-size: 28px;
  line-height: 1.12;
  margin-bottom: 8px;
}
.complaint-hero p { margin: 0; color: var(--muted); max-width: 760px; }
.complaint-steps {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 8px;
}
.complaint-steps span {
  border: 1px solid #d6dde6;
  background: #f8fafc;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #344054;
  white-space: nowrap;
}
.complaint-panel {
  position: relative;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .09);
}
.complaint-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e4e9f0;
  background: #ffffff;
}
.complaint-panel-head h2 {
  font-size: 18px;
  margin: 0 0 4px;
}
.complaint-panel-head p {
  margin: 0;
  color: var(--muted);
}
.secure-chip {
  flex: 0 0 auto;
  border: 1px solid #86b7a9;
  background: #ecfdf5;
  color: #075e54;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}
.complaint-panel .grid-form {
  padding: 20px;
  gap: 14px;
}
.complaint-panel input,
.complaint-panel select,
.complaint-panel textarea {
  border-radius: 6px;
  border-color: #b9c5d2;
  padding: 8px 10px;
}
.complaint-panel textarea {
  min-height: 132px;
}
.form-section {
  border: 1px solid #e1e7ef;
  background: #fbfcfe;
  border-radius: 8px;
  padding: 14px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8edf3;
}
.section-label b {
  font-size: 14px;
  color: #17202a;
}
.section-label span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.section-grid.one-column {
  grid-template-columns: 1fr;
}
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.page-head p { margin: 0; color: var(--muted); }
.narrow { max-width: 420px; margin: 28px auto; }
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.span-2 { grid-column: span 2; }
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}
.inline-form { display: flex; gap: 6px; align-items: center; }

.btn-primary, .btn-secondary, .btn-mini {
  border: 1px solid #0e5f59;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  display: inline-block;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-primary:hover, .btn-secondary:hover, .btn-mini:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
}
.btn-primary:disabled, .btn-secondary:disabled, .btn-mini:disabled {
  cursor: not-allowed;
  opacity: .7;
  transform: none;
  box-shadow: none;
}
.btn-secondary { background: #4b5563; border-color: #374151; }
.btn-mini { padding: 7px 10px; white-space: nowrap; }
.btn-loading {
  position: relative;
}
.btn-loading.is-loading {
  padding-left: 34px;
}
.btn-loading.is-loading::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn-mini.danger {
  background: #b42318;
  border-color: #991b1b;
}
.action-row,
.mobile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.action-row form,
.mobile-action-row form {
  margin: 0;
}
.state-pill {
  display: inline-block;
  border: 1px solid #86b7a9;
  background: #ecfdf5;
  color: #075e54;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
}
.state-pill.invited {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #78350f;
}
.state-pill.disabled {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #475569;
}
.state-pill.blocked {
  border-color: #dc2626;
  background: #fff1f0;
  color: #991b1b;
}

.quick-grid, .stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.action-tile, .stats-row div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px;
  color: var(--ink);
}
.action-tile span { display: block; color: var(--muted); margin-top: 4px; }
.stats-row div { color: var(--muted); }
.stats-row b { display: block; font-size: 24px; color: var(--ink); }
.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.chart-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px;
}
.chart-card h2 {
  margin-bottom: 10px;
}
.bar-list {
  display: grid;
  gap: 8px;
}
.bar-row {
  display: grid;
  gap: 4px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.bar-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-label b {
  color: var(--ink);
}
.bar-track {
  height: 9px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
}
.bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1f3a5f, #0f766e);
}
.pie-card {
  min-height: 260px;
}
.chartjs-wrap {
  height: 210px;
  position: relative;
}
.platform-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.platform-strip a {
  background: #ffffff;
  border: 1px solid var(--line);
  color: #102a43;
  padding: 7px 9px;
  font-weight: 700;
  text-align: center;
}
.platform-strip-large a {
  text-align: left;
}
.platform-strip-large span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.small-link { display: inline-block; margin-top: 8px; font-size: 12px; }

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.ticket-card-list {
  display: none;
}
.developer-card-list {
  display: none;
}
.data-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #dbe4ee;
  color: #102a43;
  border: 1px solid #b9c5d2;
  padding: 6px;
  text-align: left;
}
.data-table td {
  border: 1px solid #d6dde6;
  padding: 5px 6px;
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: #f8fafc; }
.mono { font-family: Consolas, Menlo, monospace; }
.muted { color: var(--muted); font-size: 11px; }
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
}
.pagination-summary {
  font-size: 12px;
}
.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pagination-controls a {
  min-width: 32px;
  text-align: center;
  border: 1px solid #b9c5d2;
  background: #fff;
  color: #31577d;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 700;
}
.pagination-controls a.active {
  background: #1f3a5f;
  color: #fff;
  border-color: #1f3a5f;
}
.pagination-controls a.disabled {
  pointer-events: none;
  opacity: .45;
  color: var(--muted);
}
.badge-lite {
  display: inline-block;
  min-width: 56px;
  text-align: center;
  border: 1px solid #b6c2cf;
  padding: 2px 5px;
  background: #f2f4f7;
}
.badge-lite.high, .badge-lite.critical { color: var(--danger); border-color: #d92d20; background: #fff1f0; }
.badge-lite.medium { color: #92400e; background: #fffbeb; border-color: #f59e0b; }

.record-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.detail-grid {
  display: grid;
  grid-template-columns: 150px 1fr 150px 1fr;
  border: 1px solid var(--line);
  margin: 10px 0;
}
.detail-grid span, .detail-grid b {
  padding: 6px;
  border: 1px solid var(--line);
}
.detail-grid span { background: #f3f6fa; color: #344054; }
.empty-state {
  border: 1px dashed #b9c5d2;
  background: #f8fafc;
  color: var(--muted);
  padding: 12px;
}
.audit-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
}
.audit-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #d6dde6;
}
.audit-timeline li {
  position: relative;
  padding: 0 0 10px 16px;
}
.audit-dot {
  position: absolute;
  left: -17px;
  top: 11px;
  width: 10px;
  height: 10px;
  border: 2px solid #0f766e;
  background: #fff;
}
.audit-card {
  border: 1px solid #d6dde6;
  background: #fff;
  padding: 9px;
}
.audit-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
  margin-bottom: 6px;
}
.audit-action {
  text-transform: capitalize;
  background: #eef6ff;
  border: 1px solid #b9cfe8;
  color: #1f3a5f;
  padding: 2px 6px;
  font-weight: 700;
  font-size: 11px;
}
.audit-card time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.audit-card p {
  margin: 6px 0;
  color: #344054;
  white-space: pre-wrap;
}
.audit-card footer {
  color: var(--muted);
  font-size: 11px;
}
.audit-transition {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 5px 0;
}
.audit-transition span {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 2px 6px;
  font-size: 11px;
}
.audit-transition b {
  color: var(--muted);
}
.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.attachments a {
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 4px 7px;
}
.attachment-gallery {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.section-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.evidence-group {
  margin-top: 10px;
}
.evidence-group h3 {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  margin: 0 0 7px;
  color: #263746;
}
.evidence-group h3 span {
  min-width: 22px;
  text-align: center;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  padding: 1px 5px;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.evidence-card {
  position: relative;
  display: block;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}
.evidence-card.evidence-admin { border-color: #b9cfe8; }
.evidence-card.evidence-developer { border-color: #86b7a9; }
.evidence-source {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  background: rgba(31, 58, 95, .92);
  color: #fff;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
}
.evidence-developer .evidence-source { background: rgba(15, 118, 110, .94); }
.evidence-admin .evidence-source { background: rgba(37, 99, 235, .94); }
.evidence-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eef2f6;
  border-bottom: 1px solid #d6dde6;
}
.evidence-name {
  display: block;
  padding: 6px 6px 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
}
.evidence-meta {
  display: block;
  padding: 0 6px 6px;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.evidence-file {
  height: 112px;
  display: grid;
  place-items: center;
  background: #e9eef5;
  color: #1f3a5f;
  font-weight: 700;
  border-bottom: 1px solid #d6dde6;
}
.verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid #e1e7ef;
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
}
.verified-card {
  border: 1px solid #86b7a9;
  background: #f0fdfa;
  border-radius: 8px;
  padding: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.verified-card.is-selected {
  border-color: #0f766e;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.verified-card.is-selected::before {
  content: "Selected verified member";
  display: inline-block;
  margin-bottom: 8px;
  border: 1px solid #86b7a9;
  background: #ffffff;
  color: #075e54;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
.verified-card .btn-primary,
.verified-card .btn-mini {
  margin-top: 8px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.upload-box {
  border: 1px dashed #9aa9ba;
  background: linear-gradient(180deg, #fbfcfe, #f4f7fb);
  border-radius: 8px;
  padding: 14px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.upload-box input[type="file"] {
  padding: 11px;
  background: #fff;
  border-style: dashed;
  border-radius: 6px;
}
.upload-clear {
  margin-top: 8px;
}
.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.add-more-btn {
  background: #1f3a5f;
  border-color: #18304f;
}
.upload-box.dragging {
  border-color: var(--accent);
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}
.upload-help {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.preview-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 5px;
}
.preview-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #d6dde6;
}
.preview-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #344054;
}
.file-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #b9c5d2;
  background: #e9eef5;
  color: #1f3a5f;
  font-size: 10px;
  font-weight: 700;
}
.progress-panel {
  border: 1px solid #b9c5d2;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.progress-track {
  height: 10px;
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
}
.progress-track div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #2563eb);
  transition: width .15s linear;
}
.submit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.form-loader {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(248, 250, 252, .76);
  backdrop-filter: blur(3px);
}
.form-loader[hidden] {
  display: none;
}
.loader-card {
  width: min(340px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}
.loader-card b {
  font-size: 15px;
}
.loader-card span:last-child {
  color: var(--muted);
}
.loader-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #d8e0ea;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.choice-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, .62);
}
.choice-modal[hidden] {
  display: none;
}
.choice-dialog {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid #b9c5d2;
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  padding: 16px;
}
.choice-dialog h2 {
  font-size: 19px;
  margin-bottom: 5px;
}
.choice-dialog p {
  color: var(--muted);
  margin: 0 0 12px;
}
.choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice-card {
  min-height: 112px;
  border: 1px solid #b9c5d2;
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
  padding: 12px;
  cursor: pointer;
}
.choice-card:hover,
.choice-card:focus {
  border-color: var(--accent);
  background: #ecfdf5;
  outline: 0;
}
.choice-card b {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}
.choice-card span {
  color: var(--muted);
  font-size: 12px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}
.issue-main,
.workflow-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.issue-main {
  padding: 14px;
}
.issue-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.issue-header h1 {
  font-size: 24px;
  line-height: 1.15;
  margin: 4px 0 0;
}
.issue-key {
  color: #31577d;
  font-family: Consolas, Menlo, monospace;
  font-weight: 700;
  font-size: 12px;
}
.status-pill {
  border: 1px solid #86b7a9;
  background: #ecfdf5;
  color: #075e54;
  padding: 5px 8px;
  font-weight: 700;
  white-space: nowrap;
}
.issue-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.issue-meta-grid div {
  border: 1px solid #d6dde6;
  background: #f8fafc;
  padding: 8px;
}
.issue-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 3px;
}
.issue-meta-grid b {
  display: block;
  overflow-wrap: anywhere;
}
.issue-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.issue-section p {
  white-space: pre-wrap;
}
.workflow-panel {
  position: sticky;
  top: 56px;
  overflow: hidden;
}
.workflow-head {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}
.workflow-head h2 {
  margin: 0;
  font-size: 16px;
}
.workflow-head span {
  color: var(--muted);
  font-size: 11px;
}
.jira-form {
  padding: 12px;
}
.workflow-block {
  margin-bottom: 12px;
}
.transition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 5px;
}
.transition-btn {
  border: 1px solid #b9c5d2;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
}
.transition-btn:hover,
.transition-btn.active {
  border-color: #31577d;
  background: #eff6ff;
  color: #1f3a5f;
}
.transition-btn.success:hover,
.transition-btn.success.active {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #075e54;
}
.transition-btn.muted:hover,
.transition-btn.muted.active {
  border-color: #8ea0b5;
  background: #f3f6fa;
  color: #344054;
}
.selected-transition {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.workflow-submit {
  width: 100%;
  text-align: center;
}
.approval-banner {
  display: grid;
  gap: 3px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
  padding: 9px;
  margin-bottom: 10px;
}
.approval-banner span {
  font-size: 12px;
}

.print-page { background: #fff; padding: 24px; }
.print-table { border-collapse: collapse; width: 100%; }
.print-table th, .print-table td { border: 1px solid #222; padding: 8px; text-align: left; }

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 44px;
    min-height: 44px;
    align-items: center;
    flex-direction: row;
    padding: 0 10px;
  }
  .brand {
    max-width: calc(100vw - 60px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 20px;
    line-height: 1;
  }
  .drawer-close {
    display: block;
    align-self: flex-end;
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #17202a;
    font-size: 22px;
    line-height: 1;
  }
  .topnav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(285px, 86vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background: #ffffff;
    border-right: 1px solid #cbd5e1;
    box-shadow: 18px 0 45px rgba(15, 23, 42, .22);
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  .topnav.open {
    transform: translateX(0);
  }
  .topnav a,
  .topnav span,
  .topnav .link-btn {
    color: #17202a;
    font-size: 13px;
  }
  .topnav a {
    border: 1px solid transparent;
    padding: 9px 10px;
  }
  .topnav a.active {
    border-color: #86b7a9;
    background: #ecfdf5;
    color: #075e54;
  }
  .topnav form {
    padding: 9px 10px;
    border-top: 1px solid #e5e7eb;
  }
  .user-chip {
    color: #344054 !important;
    border-color: #cbd5e1;
    background: #f8fafc;
  }
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 23, 42, .45);
  }
  .nav-backdrop.open {
    display: block;
  }
  body.drawer-open {
    overflow: hidden;
  }
  .app-shell { display: block; }
  .sidebar { width: 100%; display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .grid-form, .detail-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .content-pane { padding: 8px; }
  .page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 9px;
  }
  .page-head h1 {
    font-size: 20px;
    line-height: 1.05;
    margin: 0;
  }
  .page-head p {
    font-size: 12px;
  }
  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }
  .stats-row div {
    min-height: 64px;
    padding: 8px;
    font-size: 12px;
  }
  .stats-row b {
    font-size: 22px;
    line-height: 1.1;
  }
  .chart-card {
    min-height: 0;
    padding: 7px;
  }
  .chart-card h2 {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .chart-grid,
  .chart-grid.two {
    gap: 6px;
    margin: 6px 0;
  }
  .pie-card {
    min-height: 138px;
  }
  .chartjs-wrap {
    height: 108px;
  }
  .pie-legend {
    gap: 3px;
  }
  .pie-legend div {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 5px;
    font-size: 11px;
  }
  .pie-legend i {
    width: 8px;
    height: 8px;
  }
  .pie-legend b {
    font-size: 10px;
  }
  .record-card,
  .form-panel {
    padding: 9px;
    margin-bottom: 8px;
  }
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }
  .filter-bar input,
  .filter-bar select,
  .filter-bar button {
    min-height: 34px;
    font-size: 12px;
    padding: 5px 6px;
  }
  .table-wrap {
    display: none;
  }
  .ticket-card-list {
    display: grid;
    gap: 7px;
  }
  .developer-card-list {
    display: grid;
    gap: 7px;
  }
  .ticket-mobile-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 8px;
  }
  .ticket-mobile-card header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
  }
  .ticket-mobile-card h3 {
    font-size: 13px;
    line-height: 1.2;
    margin: 2px 0 0;
    overflow-wrap: anywhere;
  }
  .ticket-mobile-card .mono {
    font-size: 10px;
    color: #31577d;
    font-weight: 700;
  }
  .mobile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 7px 0;
  }
  .mobile-meta span {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 4px 5px;
    color: var(--muted);
    font-size: 10px;
  }
  .mobile-meta b {
    display: block;
    color: var(--ink);
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .ticket-mobile-card footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #edf2f7;
    padding-top: 6px;
    color: var(--muted);
    font-size: 10px;
  }
  .developer-mobile-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 8px;
  }
  .developer-mobile-card header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
  }
  .developer-mobile-card h3 {
    font-size: 13px;
    margin: 0 0 2px;
  }
  .developer-mobile-card header span {
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .developer-mobile-card header b {
    border: 1px solid #86b7a9;
    background: #ecfdf5;
    color: #075e54;
    padding: 2px 6px;
    font-size: 10px;
  }
  .mobile-reset-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    border-top: 1px solid #edf2f7;
    padding-top: 7px;
  }
  .mobile-action-row {
    margin-top: 7px;
  }
  .mobile-action-row form {
    flex: 1;
  }
  .mobile-action-row button {
    width: 100%;
  }
  .mobile-reset-form input {
    min-height: 32px;
    font-size: 12px;
  }
  .pagination-bar {
    align-items: stretch;
    gap: 6px;
  }
  .pagination-summary {
    font-size: 11px;
  }
  .pagination-controls {
    gap: 4px;
  }
  .pagination-controls a {
    min-width: 28px;
    padding: 4px 5px;
    font-size: 11px;
  }
  .complaint-page { background-attachment: scroll; }
  .complaint-page .content-pane { padding: 10px; }
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
  }
  .landing-copy h1 { font-size: 26px; }
  .landing-panel { order: 2; }
  .queue-row { grid-template-columns: 1fr; }
  .home-section,
  .home-panel,
  .home-action-band {
    padding: 10px;
    margin-bottom: 8px;
  }
  .section-head,
  .home-action-band {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .workflow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .workflow-strip div {
    padding: 8px;
  }
  .workflow-strip b {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
  }
  .workflow-strip span,
  .mini-platforms span,
  .compact-list {
    font-size: 11px;
  }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mini-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-action-band .btn-primary,
  .home-action-band .btn-secondary {
    flex: 1;
    text-align: center;
  }
  .chart-grid,
  .chart-grid.two {
    grid-template-columns: 1fr;
  }
  .complaint-hero {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  .complaint-hero h1 {
    font-size: 24px;
  }
  .complaint-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .complaint-steps span { white-space: normal; }
  .complaint-panel-head {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 10px;
  }
  .complaint-panel .grid-form {
    padding: 14px;
    gap: 10px;
  }
  .form-section {
    padding: 12px;
  }
  .section-label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .section-label span {
    text-align: left;
  }
  .section-grid,
  .section-grid.one-column,
  .guest-grid {
    grid-template-columns: 1fr;
  }
  .verify-row .btn-secondary, .verify-row .btn-mini, .submit-row .btn-primary {
    width: 100%;
    text-align: center;
  }
  input, select, textarea { min-height: 40px; font-size: 16px; }
  .preview-grid { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-actions { grid-template-columns: 1fr; }
  .choice-card { min-height: 88px; }
  .issue-layout { grid-template-columns: 1fr; }
  .workflow-panel { position: static; }
  .issue-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .stats-row {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .stats-row div {
    min-width: 58px;
    min-height: 54px;
    padding: 6px;
    font-size: 10px;
  }
  .stats-row b {
    font-size: 18px;
  }
  .page-head h1 {
    font-size: 18px;
  }
  .page-head p {
    font-size: 11px;
  }
  .chartjs-wrap {
    height: 96px;
  }
  .pie-card {
    min-height: 126px;
  }
  .landing-actions .btn-primary,
  .landing-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .evidence-grid { grid-template-columns: 1fr; }
  .issue-meta-grid { grid-template-columns: 1fr; }
}

@media print {
  .topbar, .sidebar, .site-footer, .btn-primary, .btn-secondary, .btn-mini { display: none !important; }
  body, .content-pane { background: #fff; padding: 0; }
  .record-card, .form-panel, .page-head { border: 0; }
}
