:root {
  color-scheme: light;
  --ink: #102a34;
  --muted: #647780;
  --subtle: #8a9aa1;
  --surface: #ffffff;
  --surface-soft: #f4f8f7;
  --line: #dde7e4;
  --green: #138064;
  --green-dark: #0b5d4a;
  --green-soft: #e4f4ee;
  --amber: #b36a0a;
  --amber-soft: #fff3dd;
  --red: #b73c43;
  --red-soft: #fdebed;
  --blue: #326c9b;
  --blue-soft: #e9f3fb;
  --nav: #071b22;
  --nav-soft: #102b34;
  --shadow: 0 18px 50px rgba(12, 42, 49, 0.1);
  --radius: 18px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--surface-soft);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.loading-screen {
  align-items: center;
  background: var(--nav);
  color: white;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 100;
}

.loading-screen p {
  color: #b7c8ca;
  margin-top: 18px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand > span:last-child,
.operator-chip > span:last-child,
.system-status > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-mark--large {
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05);
  height: 58px;
  width: 58px;
}

.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(380px, 1.15fr) minmax(440px, 0.85fr);
}

.login-story {
  align-items: flex-end;
  background:
    radial-gradient(circle at 78% 15%, rgba(38, 151, 119, 0.28), transparent 27%),
    linear-gradient(145deg, rgba(7, 27, 34, 0.97), rgba(8, 47, 54, 0.93));
  color: white;
  display: flex;
  overflow: hidden;
  padding: 10vh 8vw;
  position: relative;
}

.login-story::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  height: 540px;
  position: absolute;
  right: -250px;
  top: -180px;
  width: 540px;
}

.login-story__content {
  max-width: 660px;
  position: relative;
  z-index: 1;
}

.login-story h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5.4vw, 76px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 28px 0;
}

.login-story p {
  color: #bed0d1;
  font-size: 18px;
  line-height: 1.65;
  max-width: 560px;
}

.story-points {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  padding-top: 28px;
}

.story-points div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.story-points strong {
  font-size: 17px;
}

.story-points span {
  color: #9eb4b7;
  font-size: 12px;
}

.login-panel {
  align-items: center;
  background: var(--surface);
  display: flex;
  justify-content: center;
  padding: 48px;
}

.login-card {
  max-width: 420px;
  width: 100%;
}

.login-copy {
  margin: 72px 0 34px;
}

.login-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 10px 0;
}

.login-copy p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--light {
  align-items: center;
  color: #b7ddd1;
  display: flex;
  gap: 9px;
}

.status-dot {
  background: #35c494;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(53, 196, 148, 0.12);
  display: inline-block;
  height: 8px;
  width: 8px;
}

.field {
  display: block;
  margin: 18px 0;
}

.field > span:first-child,
.field-label {
  color: var(--ink);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  background: white;
  border: 1px solid #cfdcda;
  border-radius: 11px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 0 14px;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
  width: 100%;
}

.field textarea {
  min-height: 96px;
  padding-bottom: 12px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 128, 100, 0.12);
}

.password-field {
  display: block;
  position: relative;
}

.password-field input {
  padding-right: 58px;
}

.icon-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0 12px;
}

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

.icon-button--inside {
  border: 0;
  color: var(--green);
  font-size: 12px;
  height: 36px;
  position: absolute;
  right: 6px;
  top: 6px;
}

.primary-button,
.secondary-button,
.table-action {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
}

.primary-button {
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
}

.primary-button:hover {
  background: var(--green-dark);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.login-card > .primary-button {
  min-height: 50px;
  width: 100%;
}

.secondary-button {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.danger-button {
  align-items: center;
  background: white;
  border: 1px solid #d98b90;
  border-radius: 9px;
  color: var(--red);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
}

.danger-button:hover {
  background: #fff4f4;
}

.danger-zone {
  align-items: center;
  background: #fff9f8;
  border: 1px solid #efd6d4;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 20px 0;
  padding: 15px;
}

.danger-zone strong,
.danger-zone span {
  display: block;
}

.danger-zone span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.danger-summary {
  background: #fff2f1;
  border: 1px solid #e8c3c0;
  border-radius: 12px;
  color: #7b292e;
  line-height: 1.5;
  margin: 18px 0;
  padding: 16px;
}

.danger-summary strong,
.danger-summary span {
  display: block;
}

.danger-summary span {
  font-size: 12px;
  margin-top: 5px;
}

.form-error {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
}

.secure-note {
  color: var(--subtle);
  font-size: 11px;
  margin-top: 22px;
  text-align: center;
}

.secure-note span {
  color: var(--green);
  margin-right: 4px;
}

.app-view {
  min-height: 100vh;
}

.sidebar {
  background: var(--nav);
  color: white;
  display: flex;
  flex-direction: column;
  inset: 0 auto 0 0;
  padding: 28px 18px 20px;
  position: fixed;
  width: 244px;
  z-index: 20;
}

.brand--sidebar {
  padding: 0 10px;
}

.brand--sidebar small {
  color: #849da1;
}

.navigation {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  margin-top: 46px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #9db0b3;
  display: flex;
  font-size: 13px;
  font-weight: 650;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  text-align: left;
  width: 100%;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--nav-soft);
  color: white;
}

.nav-item.is-active {
  box-shadow: inset 3px 0 var(--green);
}

.nav-icon {
  align-items: center;
  border: 1px solid #35515a;
  border-radius: 7px;
  display: inline-flex;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.nav-count {
  background: #24414a;
  border-radius: 10px;
  color: #b9c8ca;
  font-size: 10px;
  margin-left: auto;
  padding: 3px 7px;
}

.nav-count--alert:not(:empty) {
  background: rgba(211, 82, 88, 0.18);
  color: #f2a9ad;
}

.sidebar-footer {
  border-top: 1px solid #1c3740;
  padding-top: 18px;
}

.system-status {
  align-items: center;
  display: flex;
  gap: 11px;
  padding: 0 8px 17px;
}

.system-status strong {
  font-size: 12px;
}

.system-status small {
  color: #81979b;
  font-size: 10px;
  margin-top: 3px;
}

.logout-button {
  background: transparent;
  border: 1px solid #29454d;
  border-radius: 9px;
  color: #aebfc1;
  font-size: 12px;
  min-height: 40px;
  width: 100%;
}

.logout-button:hover {
  border-color: #49636a;
  color: white;
}

.logout-button--secondary {
  border-color: transparent;
  margin-bottom: 7px;
}

.workspace {
  margin-left: 244px;
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  min-height: 84px;
  padding: 14px 34px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 3px 0 0;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 11px;
  margin-left: auto;
}

.sync-status {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 8px;
  margin-right: 6px;
}

.operator-chip {
  align-items: center;
  border-left: 1px solid var(--line);
  display: flex;
  gap: 10px;
  margin-left: 4px;
  padding-left: 16px;
}

.operator-chip strong {
  font-size: 12px;
}

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

.operator-avatar {
  align-items: center;
  background: var(--green-soft);
  border-radius: 50%;
  color: var(--green-dark);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.menu-button {
  display: none;
  margin-right: 12px;
}

.content {
  margin: 0 auto;
  max-width: 1560px;
  padding: 28px 34px 50px;
}

.section-heading {
  align-items: flex-end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.section-actions {
  display: flex;
  gap: 10px;
}

.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 24px rgba(19, 51, 58, 0.04);
  min-height: 146px;
  padding: 22px;
}

.metric-card__top {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
}

.metric-icon {
  align-items: center;
  background: var(--green-soft);
  border-radius: 9px;
  color: var(--green);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.metric-card--alert .metric-icon {
  background: var(--red-soft);
  color: var(--red);
}

.metric-card--amber .metric-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.metric-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
  margin: 18px 0 7px;
}

.metric-foot {
  color: var(--subtle);
  font-size: 11px;
}

.overview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  margin-top: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 24px rgba(19, 51, 58, 0.04);
  overflow: hidden;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 66px;
  padding: 16px 20px;
}

.panel-header h3 {
  font-size: 14px;
  margin: 0;
}

.panel-link {
  background: none;
  border: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.support-hero {
  align-items: center;
  background:
    radial-gradient(circle at 90% -30%, rgba(255, 255, 255, 0.13), transparent 38%),
    linear-gradient(135deg, #0b3c36, #0d6552);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(9, 68, 56, 0.18);
  color: white;
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
  min-height: 142px;
  overflow: hidden;
  padding: 26px 30px;
  position: relative;
}

.support-hero--warning {
  background:
    radial-gradient(circle at 90% -30%, rgba(255, 255, 255, 0.13), transparent 38%),
    linear-gradient(135deg, #4b3817, #89601b);
}

.support-hero--danger {
  background:
    radial-gradient(circle at 90% -30%, rgba(255, 255, 255, 0.13), transparent 38%),
    linear-gradient(135deg, #482127, #8b343d);
}

.support-hero__signal {
  align-items: center;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  flex: 0 0 58px;
  height: 58px;
  justify-content: center;
}

.support-hero__signal span {
  background: #69e5bd;
  border: 5px solid rgba(105, 229, 189, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(105, 229, 189, 0.09);
  height: 16px;
  width: 16px;
}

.support-hero--warning .support-hero__signal span {
  background: #ffd47c;
  border-color: rgba(255, 212, 124, 0.2);
  box-shadow: 0 0 0 6px rgba(255, 212, 124, 0.09);
}

.support-hero--danger .support-hero__signal span {
  background: #ff9ca3;
  border-color: rgba(255, 156, 163, 0.2);
  box-shadow: 0 0 0 6px rgba(255, 156, 163, 0.09);
}

.support-hero__copy {
  flex: 1;
}

.support-hero__copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 7px 0 5px;
}

.support-hero__copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  margin: 0;
}

.support-kicker {
  color: var(--subtle);
  display: block;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.support-hero .support-kicker {
  color: rgba(255, 255, 255, 0.55);
}

.support-hero__meta {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex: 0 0 210px;
  flex-direction: column;
  padding: 8px 0 8px 24px;
}

.support-hero__meta span,
.support-hero__meta small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
}

.support-hero__meta strong {
  font-size: 13px;
  margin: 5px 0 9px;
}

.support-status-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.support-status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 24px rgba(19, 51, 58, 0.04);
  min-height: 178px;
  padding: 20px;
  position: relative;
}

.support-status-card::before {
  background: var(--green);
  border-radius: var(--radius) var(--radius) 0 0;
  content: "";
  height: 3px;
  left: 18px;
  position: absolute;
  right: 18px;
  top: -1px;
}

.support-status-card--whatsapp::before {
  background: #25a96b;
}

.support-status-card__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.support-status-icon {
  align-items: center;
  background: var(--green-soft);
  border-radius: 10px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  letter-spacing: -0.03em;
  width: 38px;
}

.support-status-card h3 {
  font-size: 14px;
  margin: 18px 0 6px;
}

.support-status-card p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

.support-status-card__foot {
  align-items: center;
  border-top: 1px solid #edf2f1;
  color: var(--subtle);
  display: flex;
  font-size: 10px;
  gap: 7px;
  margin-top: 16px;
  padding-top: 12px;
}

.support-status-card__foot span {
  background: var(--green);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.support-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  margin-bottom: 18px;
}

.support-panel__header > div h3 {
  margin-top: 5px;
}

.support-checklist {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px 20px;
}

.support-check {
  align-items: center;
  border-bottom: 1px solid #edf2f1;
  display: flex;
  gap: 11px;
  min-height: 66px;
}

.support-check:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.support-check__mark {
  align-items: center;
  border-radius: 50%;
  display: flex;
  flex: 0 0 28px;
  font-size: 11px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
}

.support-check__mark--ok {
  background: var(--green-soft);
  color: var(--green-dark);
}

.support-check__mark--warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.support-check strong,
.support-check small {
  display: block;
}

.support-check strong {
  font-size: 11px;
}

.support-check small {
  color: var(--subtle);
  font-size: 9px;
  margin-top: 4px;
}

.support-webhook {
  background: #f7faf9;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 17px 20px;
}

.support-webhook span {
  color: var(--subtle);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.support-webhook strong {
  font-size: 12px;
  margin: 5px 0 3px;
}

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

.support-count {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 10px;
  display: flex;
  font-family: Georgia, serif;
  font-size: 19px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.support-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 20px 20px;
}

.support-summary div {
  border-right: 1px solid var(--line);
  padding: 0 12px;
  text-align: center;
}

.support-summary div:last-child {
  border-right: 0;
}

.support-summary strong,
.support-summary span {
  display: block;
}

.support-summary strong {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.support-summary span {
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.35;
  margin-top: 6px;
}

.support-guidance {
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  color: #725121;
  font-size: 10px;
  line-height: 1.55;
  margin: 0 20px 20px;
  padding: 11px 12px;
}

.support-errors {
  margin-bottom: 18px;
}

.support-source,
.support-date {
  display: block;
  font-weight: 700;
}

.support-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  text-align: center;
}

.support-empty > span {
  align-items: center;
  background: var(--green-soft);
  border-radius: 50%;
  color: var(--green-dark);
  display: flex;
  font-size: 16px;
  height: 38px;
  justify-content: center;
  margin-bottom: 10px;
  width: 38px;
}

.support-empty strong {
  font-size: 12px;
}

.support-empty small {
  color: var(--subtle);
  font-size: 10px;
  margin-top: 4px;
}

.table-wrap {
  overflow-x: auto;
}

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

.data-table th {
  background: #f8faf9;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  border-top: 1px solid #edf2f1;
  font-size: 12px;
  padding: 14px 16px;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #fafcfb;
}

.cell-primary {
  display: block;
  font-weight: 700;
}

.cell-secondary {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
}

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

.badge--green {
  background: var(--green-soft);
  color: var(--green-dark);
}

.badge--amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge--red {
  background: var(--red-soft);
  color: var(--red);
}

.badge--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge--gray {
  background: #edf1f1;
  color: #5f7278;
}

.table-action {
  background: white;
  border: 1px solid #cbdad7;
  color: var(--green-dark);
  font-size: 10px;
  min-height: 31px;
  padding: 0 10px;
}

.table-action:hover {
  background: var(--green-soft);
}

.table-action--danger {
  border-color: #ecc7ca;
  color: #9c3038;
}

.table-action--danger:hover {
  background: #fff0f1;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.security-footnote {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  margin: 14px 2px 0;
}

.security-footnote--dialog {
  background: var(--surface-soft);
  border-left: 3px solid var(--green);
  margin: 8px 0 18px;
  padding: 10px 12px;
}

.notice {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  padding: 13px 20px;
}

.notice:last-child {
  border-bottom: 0;
}

.notice span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.association-guide {
  border-left: 4px solid var(--amber);
  margin-bottom: 16px;
  padding: 16px 18px;
}

.association-guide p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 0 0;
}

.resident-section-head,
.resident-card {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.resident-section-head {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 18px;
}

.resident-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.resident-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}

.resident-card strong,
.resident-card span {
  display: block;
}

.resident-card span {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.report-toolbar {
  align-items: flex-end;
  flex-wrap: wrap;
}

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

.platform-filter-bar .compact-field {
  flex: 1 1 150px;
}

.platform-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 20px;
}

.compact-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.compact-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.compact-field input,
.compact-field select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 11px;
}

.report-metrics {
  margin-bottom: 18px;
}

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

.manual-card {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
}

.manual-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  margin: 17px 0 8px;
}

.manual-card p {
  color: var(--muted);
  flex: 1;
  font-size: 12px;
  line-height: 1.65;
}

.manual-icon {
  align-items: center;
  background: var(--green-soft);
  border-radius: 12px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 4px 20px 12px;
}

.activity-item {
  border-bottom: 1px solid #edf2f1;
  display: grid;
  gap: 3px 11px;
  grid-template-columns: 9px 1fr auto;
  padding: 15px 0;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-dot {
  background: var(--green);
  border-radius: 50%;
  grid-row: 1 / span 2;
  height: 7px;
  margin-top: 4px;
  width: 7px;
}

.activity-item strong {
  font-size: 11px;
}

.activity-item p {
  color: var(--muted);
  font-size: 10px;
  grid-column: 2 / span 2;
  line-height: 1.45;
  margin: 0;
}

.activity-item time {
  color: var(--subtle);
  font-size: 9px;
}

.toolbar {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
}

.search-input,
.filter-select {
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  min-height: 40px;
  outline: none;
  padding: 0 12px;
}

.search-input {
  flex: 1;
  min-width: 180px;
}

.filter-select {
  min-width: 150px;
}

.search-input:focus,
.filter-select:focus {
  border-color: var(--green);
}

.empty-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  justify-content: center;
  padding: 34px;
  text-align: center;
}

.empty-state__icon {
  align-items: center;
  background: var(--green-soft);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 24px;
  height: 58px;
  justify-content: center;
  margin-bottom: 14px;
  width: 58px;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 15px;
  margin: 0 0 7px;
}

.empty-state p {
  font-size: 12px;
  margin: 0;
}

.dialog {
  background: white;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
  max-height: calc(100vh - 32px);
  max-width: 560px;
  padding: 0;
  width: calc(100% - 32px);
}

.dialog::backdrop {
  background: rgba(5, 25, 31, 0.66);
  backdrop-filter: blur(3px);
}

.dialog-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 22px 24px 18px;
}

.dialog-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  margin: 5px 0 0;
}

.dialog-body {
  max-height: 58vh;
  overflow-y: auto;
  padding: 4px 24px;
}

.field-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.confirm-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.6;
  margin: 18px 0;
  padding: 16px;
}

.confirm-card strong {
  display: block;
  font-size: 14px;
}

.confirm-card span {
  color: var(--muted);
  font-size: 12px;
}

.dialog-actions {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 24px 22px;
}

.dialog-actions button {
  min-width: 105px;
}

.toast-region {
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: fixed;
  right: 22px;
  z-index: 80;
}

.toast {
  align-items: center;
  animation: toast-in 0.2s ease-out;
  background: var(--nav);
  border: 1px solid #29474f;
  border-radius: 11px;
  box-shadow: var(--shadow);
  color: white;
  display: flex;
  font-size: 12px;
  gap: 9px;
  max-width: 360px;
  padding: 13px 16px;
}

.toast--error {
  background: #5d1e24;
  border-color: #8d343c;
}

.sidebar-overlay {
  display: none;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .support-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-story {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 30px 24px;
  }

  .login-copy {
    margin-top: 54px;
  }

  .sidebar {
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.24);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-overlay.is-open {
    background: rgba(3, 20, 25, 0.55);
    display: block;
    inset: 0;
    position: fixed;
    z-index: 15;
  }

  .workspace {
    margin-left: 0;
  }

  .menu-button {
    display: inline-flex;
  }

  .sync-status {
    display: none;
  }

  .topbar {
    padding: 12px 18px;
  }

  .content {
    padding: 22px 18px 40px;
  }

  .support-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .support-hero__meta {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    flex: 1 0 100%;
    padding: 14px 0 0;
  }

  .support-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .danger-button {
    width: 100%;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 128px;
  }

  .operator-chip > span:last-child,
  #refresh-button {
    display: none;
  }

  .topbar-title h1 {
    font-size: 20px;
  }

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

  .section-actions .primary-button {
    flex: 1;
  }

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

  .filter-select {
    width: 100%;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .support-hero {
    padding: 22px;
  }

  .support-hero__copy h3 {
    font-size: 23px;
  }

  .support-checklist,
  .support-summary {
    grid-template-columns: 1fr;
  }

  .support-check:nth-last-child(-n + 2) {
    border-bottom: 1px solid #edf2f1;
  }

  .support-check:last-child {
    border-bottom: 0;
  }

  .support-summary div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 13px 0;
  }

  .support-summary div:last-child {
    border-bottom: 0;
  }

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

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