:root {
  --bg: #fbf9ff;
  --panel: #ffffff;
  --ink: #171431;
  --muted: #756b91;
  --line: #e8ddff;
  --accent: #6427e9;
  --accent-strong: #4d16c7;
  --accent-soft: #f1e9ff;
  --accent-2: #19a974;
  --accent-3: #ff6b83;
  --danger: #dc2626;
  --soft: #f4edff;
  --sidebar: #26105f;
  --sidebar-2: #140b35;
  --shadow: 0 18px 48px rgba(84, 37, 206, 0.11);
  --shadow-strong: 0 22px 58px rgba(84, 37, 206, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #f7f3ff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.mobile-nav-open {
  overflow: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

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

button {
  border: 0;
}

.app-shell {
  --sidebar-width: 276px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.app-shell.is-sidebar-collapsed {
  --sidebar-width: 82px;
}

.mobile-shellbar,
.sidebar-backdrop {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  transition: padding 180ms ease, transform 180ms ease, width 180ms ease;
}

.sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
}

.brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--accent);
  font-size: 25px;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(20, 11, 53, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.brand-copy,
.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand span,
.account span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  margin-top: 3px;
  word-break: break-word;
}

.account {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 2px;
  min-width: 0;
}

.account strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-top: 10px;
}

.account .pill,
.account .status-tag {
  display: inline-flex;
}

.account .pill {
  color: #fff;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.status-tag.green {
  background: #dcfce7;
  color: #166534;
}

.status-tag.amber {
  background: #fef3c7;
  color: #92400e;
}

.status-tag.red {
  background: #fee2e2;
  color: #991b1b;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
  flex: 0 0 auto;
}

.status-tag .status-dot {
  color: inherit;
  display: block;
  margin-top: 0;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.portal-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button,
.nav-help {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  text-align: left;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.nav-help {
  text-decoration: none;
}

.nav button:hover,
.nav button.active,
.nav-help:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav button:hover .nav-icon,
.nav button.active .nav-icon,
.nav-help:hover .nav-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
  color: #efe8ff;
}

.menu-icon {
  width: 17px;
  height: 17px;
  display: block;
  overflow: visible;
  stroke: currentColor;
}

.sidebar-actions {
  margin-top: auto;
  width: 100%;
  display: grid;
  gap: 8px;
}

.btn.logout,
.btn.ghost.logout {
  width: 100%;
  border-color: rgba(248, 113, 113, 0.7);
  background: #dc2626;
  color: #fff;
  box-shadow: 0 10px 22px rgba(127, 29, 29, 0.26);
}

.btn.logout:hover,
.btn.ghost.logout:hover {
  background: #b91c1c;
  border-color: rgba(252, 165, 165, 0.9);
}

.btn.logout .nav-icon,
.btn.ghost.logout .nav-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sidebar-toggle,
.mobile-menu-button,
.mobile-close-button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sidebar-toggle,
.mobile-close-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar-toggle:hover,
.mobile-close-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.mobile-close-button {
  display: none;
}

.menu-glyph {
  width: 18px;
  height: 14px;
  display: grid;
  gap: 4px;
}

.menu-glyph span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-glyph.close {
  position: relative;
}

.menu-glyph.close span {
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
}

.menu-glyph.close span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-glyph.close span:nth-child(2) {
  opacity: 0;
}

.menu-glyph.close span:nth-child(3) {
  transform: rotate(-45deg);
}

.app-shell.is-sidebar-collapsed .sidebar {
  align-items: center;
  padding: 18px 12px;
}

.app-shell.is-sidebar-collapsed .sidebar-head {
  grid-template-columns: 1fr;
  justify-items: center;
}

.app-shell.is-sidebar-collapsed .brand {
  grid-template-columns: 46px;
  justify-content: center;
}

.app-shell.is-sidebar-collapsed .brand-copy,
.app-shell.is-sidebar-collapsed .account,
.app-shell.is-sidebar-collapsed .nav-label {
  display: none;
}

.app-shell.is-sidebar-collapsed .nav,
.app-shell.is-sidebar-collapsed .sidebar-actions,
.app-shell.is-sidebar-collapsed .logout {
  width: 100%;
}

.app-shell.is-sidebar-collapsed .nav button,
.app-shell.is-sidebar-collapsed .nav-help,
.app-shell.is-sidebar-collapsed .logout {
  width: 48px;
  justify-content: center;
  padding: 0;
}

.app-shell.is-sidebar-collapsed .nav button {
  justify-self: center;
}

.app-shell.is-sidebar-collapsed .nav-help,
.app-shell.is-sidebar-collapsed .logout {
  justify-self: center;
}

.main {
  min-width: 0;
  width: 100%;
  max-width: 100vw;
  padding: 26px;
}

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

.topbar > * {
  min-width: 0;
}

.topbar h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.topbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.month-picker {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(84, 37, 206, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.toolbar .month-picker {
  flex: 0 0 auto;
}

.month-picker:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 39, 233, 0.12), 0 10px 24px rgba(84, 37, 206, 0.12);
}

.month-picker .btn.month-step {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
}

.month-picker .btn.month-step:hover {
  filter: none;
  background: var(--accent-soft);
  color: var(--accent);
}

.month-picker .btn.month-step .menu-icon,
.month-field-icon .menu-icon {
  width: 18px;
  height: 18px;
}

.month-field {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 11px;
  border-left: 1px solid #f0e8ff;
  border-right: 1px solid #f0e8ff;
  color: var(--accent-strong);
  cursor: pointer;
}

.month-field-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--accent);
}

.month-picker .month-input {
  width: 132px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
}

.month-picker .month-input:focus {
  border-color: transparent;
  box-shadow: none;
}

.month-picker .month-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.62;
}

.month-picker .month-input:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

.grid {
  display: grid;
  gap: 14px;
}

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

.grid.two {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

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

.panel,
.card,
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel {
  padding: 18px;
}

.card {
  padding: 14px;
}

.metric {
  padding: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
}

.section-title h3 {
  margin: 0;
  font-size: 17px;
  min-width: 0;
}

.btn {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0eaff;
  color: var(--ink);
  font-weight: 820;
  cursor: pointer;
  min-width: 0;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(0.98);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7b35ff 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(100, 39, 233, 0.24);
}

.btn.good {
  background: var(--accent-2);
  color: #fff;
}

.btn.warn {
  background: #fff0f3;
  color: #a32441;
}

.btn.danger {
  background: #fee2e2;
  color: var(--danger);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
  outline: none;
}

.textarea {
  padding-top: 10px;
  min-height: 88px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 39, 233, 0.14);
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.collab-picker {
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9ff;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.collab-picker legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.collab-options {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.collab-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
}

.collab-option.selected {
  border-color: #c8b8ff;
  background: #f5f0ff;
}

.collab-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.collab-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.collab-main strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.collab-main span,
.collab-empty {
  color: var(--muted);
  font-size: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

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

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 5px 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.badge.green {
  background: #dcfce7;
  color: #166534;
}

.badge.amber {
  background: #fef3c7;
  color: #92400e;
}

.badge.red {
  background: #fee2e2;
  color: #991b1b;
}

.finance-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 780;
}

.finance-alert.amber {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.finance-alert.red {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.subscription-strip,
.billing-toggle {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.subscription-strip {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-toggle {
  padding: 10px 0 0;
}

.annual-savings-callout {
  margin-top: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  border-radius: 8px;
  border: 1px solid #86efac;
  background: linear-gradient(135deg, #ecfdf5 0%, #fef9c3 100%);
  color: #065f46;
  box-shadow: var(--shadow);
}

.annual-savings-callout strong {
  font-size: 46px;
  line-height: 0.95;
  letter-spacing: 0;
}

.annual-savings-callout span {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.annual-savings-callout p {
  margin: 4px 0 0;
  color: #4d5b1f;
  font-size: 14px;
  font-weight: 760;
}

.finance-payment-grid {
  align-items: stretch;
}

.pix-box {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  background: #fff;
}

.pix-box img {
  width: min(280px, 100%);
  height: auto;
  display: block;
  border-radius: 8px;
}

.pix-copy {
  min-height: 190px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.payment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.payment-meta strong {
  color: var(--ink);
}

.plan-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.plan-price {
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
}

.plan-addon {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.plan-addon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
}

.plan-addon-head strong {
  font-size: 13px;
}

.plan-addon-head span,
.plan-addon-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.plan-addon-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plan-addon-button {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.plan-addon-button:hover:not(:disabled) {
  border-color: #10b981;
  color: #047857;
}

.plan-addon-button.active {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.plan-addon-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.plan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.guidelines-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: start;
}

.guidelines-hero h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.guidelines-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guidelines-meta {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9ff;
}

.guidelines-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.guidelines-meta strong {
  font-size: 19px;
}

.guidelines-meta a {
  width: fit-content;
  color: var(--accent-strong);
  font-weight: 850;
  text-decoration: none;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.guideline-section {
  display: grid;
  gap: 10px;
  align-content: start;
}

.guideline-section h3,
.guideline-section p {
  margin: 0;
}

.guideline-section p,
.guideline-section li {
  color: var(--muted);
  line-height: 1.55;
}

.guideline-section ul {
  margin: 0;
  padding-left: 18px;
}

.guideline-section li + li {
  margin-top: 7px;
}

.guidelines-note {
  line-height: 1.5;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(238px, 1fr));
  align-items: start;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.lane {
  min-height: 430px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 247, 255, 0.92)),
    #f5f0ff;
  border: 1px solid #e6dcff;
  border-radius: 8px;
  padding: 10px;
  scroll-snap-align: start;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.lane h3 {
  font-size: 13px;
  margin: 0 0 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}

.lane-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lane-count {
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--accent-strong);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.lane-empty {
  min-height: 90px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border: 1px dashed #d8c7ff;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 760;
}

.lane.is-drag-over {
  border-color: #8b5cf6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 235, 255, 0.98)),
    #f0e9ff;
  box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.18), 0 18px 42px rgba(84, 37, 206, 0.11);
}

.lane.is-drop-disabled {
  opacity: 0.55;
}

.task,
.queue-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8ddff;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 9px;
  margin-bottom: 11px;
  box-shadow: 0 10px 24px rgba(84, 37, 206, 0.08);
  cursor: grab;
  user-select: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, opacity 160ms ease;
  overflow: hidden;
}

.queue-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.queue-card:hover {
  transform: translateY(-2px);
  border-color: #c8b8ff;
  box-shadow: 0 16px 34px rgba(84, 37, 206, 0.14);
}

.queue-card:active {
  cursor: grabbing;
}

.queue-card.is-dragging {
  opacity: 0.46;
  transform: rotate(1deg) scale(0.985);
}

.queue-card.is-moving {
  pointer-events: none;
}

.task-drag-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #9a8bb8;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.drag-grip {
  width: 24px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.75;
  background-image: radial-gradient(currentColor 1.4px, transparent 1.4px);
  background-size: 8px 7px;
  background-position: 0 0;
}

.task-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.task-title > * {
  min-width: 0;
}

.queue-card .pet-line {
  align-items: flex-start;
}

.queue-card .avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid #eadfff;
  background: #f3ecff;
  box-shadow: 0 7px 18px rgba(84, 37, 206, 0.1);
}

.queue-card strong {
  display: block;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.queue-card > .muted {
  min-height: 32px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #fbf9ff;
  border: 1px solid #f0e9ff;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.queue-card .badge {
  max-width: 118px;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: anywhere;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.queue-actions {
  padding-top: 2px;
}

.queue-actions .btn {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 12px;
}

.queue-entry-pet {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9ff;
}

.queue-entry-pet strong {
  display: block;
  line-height: 1.2;
}

.mini-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.schedule-panel {
  margin-bottom: 14px;
}

.schedule-range {
  flex: 0 0 auto;
}

.schedule-range button {
  min-width: 76px;
}

.schedule-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.schedule-day {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.schedule-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}

.schedule-day-head strong {
  text-transform: capitalize;
}

.schedule-day-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.schedule-slots {
  display: grid;
  gap: 8px;
}

.slot-card {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.slot-card.free {
  border-left-color: var(--accent-2);
}

.slot-card.partial {
  border-left-color: #d97706;
}

.slot-card.busy {
  border-left-color: var(--danger);
  background: #fffafa;
}

.slot-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.slot-card-head strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.slot-bookings {
  display: grid;
  gap: 7px;
}

.slot-booking {
  display: grid;
  gap: 4px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.slot-booking span:not(.badge),
.slot-free-text {
  color: var(--muted);
  font-size: 12px;
}

.portal-card {
  width: min(820px, 100%);
}

.signup-page {
  align-items: start;
  padding-block: 32px;
  background:
    radial-gradient(circle at 18% 0%, rgba(100, 39, 233, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fbf8ff 45%, #f0e9ff 100%);
}

.signup-card {
  width: min(960px, 100%);
  display: grid;
  gap: 18px;
}

.signup-plan-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.signup-plan {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.signup-plan:hover,
.signup-plan.active {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(100, 39, 233, 0.12);
}

.signup-plan.active {
  transform: translateY(-1px);
}

.signup-plan strong,
.signup-plan span {
  display: block;
  overflow-wrap: anywhere;
}

.signup-plan strong {
  font-size: 14px;
}

.signup-plan span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.signup-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9ff;
}

.signup-total span,
.signup-total small {
  color: var(--muted);
  font-weight: 780;
}

.signup-total strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.signup-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signup-consent input {
  width: auto;
  margin-top: 3px;
  flex: 0 0 auto;
}

.signup-consent a {
  color: var(--accent-strong);
  font-weight: 850;
  text-decoration: none;
}

.captcha-box {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.captcha-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.captcha-refresh {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
}

.signup-payment {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.admin-payment-value {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 118px;
  text-align: right;
}

.admin-payment-value strong {
  font-variant-numeric: tabular-nums;
}

.portal-confirmation {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.portal-confirmation span {
  font-size: 13px;
}

.portal-appointments {
  margin-top: 18px;
}

.portal-privacy-consent {
  align-items: start;
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.portal-privacy-consent input {
  margin-top: 2px;
}

.portal-privacy-consent a {
  color: var(--accent);
  font-weight: 800;
}

.whatsapp-qr-card {
  display: grid;
  justify-content: start;
  margin-top: 16px;
}

.whatsapp-qr-card img {
  width: min(280px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.whatsapp-qr-warning {
  margin-top: 16px;
}

.chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 7px;
  padding-top: 18px;
}

.bar {
  min-width: 12px;
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--accent);
  position: relative;
}

.bar:nth-child(3n) {
  background: #8b5cf6;
}

.bar:nth-child(4n) {
  background: var(--accent-3);
}

.dashboard-section-label {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-section-label.spaced,
.dashboard-grid {
  margin-top: 14px;
}

.chart-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin-bottom: 12px;
}

.chart-head > div {
  min-width: 0;
}

.chart-head-actions {
  display: flex;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.chart-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.chart-head span,
.chart-summary,
.ranking-detail {
  color: var(--muted);
  font-size: 12px;
}

.chart-head strong {
  flex: 0 0 auto;
  max-width: 45%;
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: right;
}

.chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.chart-summary strong {
  color: var(--ink);
  font-weight: 850;
}

.chart-scroll {
  min-width: 0;
  max-width: 100%;
}

.chart-scroll:focus-visible {
  outline: 3px solid rgba(100, 39, 233, 0.18);
  outline-offset: 3px;
}

.chart-detailed {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-height: 238px;
  align-items: end;
}

.chart-column {
  min-width: 0;
  display: grid;
  grid-template-rows: 20px 180px 18px;
  gap: 5px;
}

.chart-column.is-latest .chart-track {
  box-shadow: inset 0 0 0 2px rgba(23, 20, 49, 0.16);
}

.chart-column.is-latest > span {
  color: var(--ink);
  font-weight: 900;
}

.chart-value {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.chart-track,
.hour-track {
  position: relative;
  display: flex;
  align-items: end;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 7px;
  background:
    linear-gradient(180deg, transparent 0 24%, rgba(232, 221, 255, 0.7) 24% 25%, transparent 25% 49%, rgba(232, 221, 255, 0.7) 49% 50%, transparent 50% 74%, rgba(232, 221, 255, 0.7) 74% 75%, transparent 75%),
    #fbf9ff;
  overflow: hidden;
}

.chart-fill,
.hour-track > div {
  width: 100%;
  min-height: 2px;
  border-radius: 7px 7px 0 0;
  background: var(--accent);
}

.chart-detailed.green .chart-fill,
.ranking-bars.green .ranking-track > div {
  background: #1d9e75;
}

.chart-detailed.purple .chart-fill,
.ranking-bars.purple .ranking-track > div {
  background: var(--accent);
}

.ranking-bars.rose .ranking-track > div {
  background: var(--accent-3);
}

.chart-column > span,
.hour-column > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  text-align: center;
  min-height: 14px;
}

.ranking-bars {
  display: grid;
  gap: 12px;
}

.ranking-row {
  display: grid;
  gap: 6px;
}

.ranking-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.ranking-line strong {
  min-width: 0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-line span {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ranking-track {
  height: 9px;
  border-radius: 999px;
  background: #f3efff;
  overflow: hidden;
}

.ranking-track > div {
  height: 100%;
  border-radius: inherit;
}

.profitability-bars {
  display: grid;
  gap: 12px;
}

.profitability-row {
  display: grid;
  gap: 6px;
}

.profitability-track {
  height: 12px;
  border-radius: 999px;
  background: #f3efff;
  overflow: hidden;
}

.profitability-stack {
  display: flex;
  height: 100%;
  min-width: 5%;
  border-radius: inherit;
  overflow: hidden;
}

.profitability-net {
  height: 100%;
  background: #1d9e75;
}

.profitability-commission {
  height: 100%;
  background: #f97316;
}

.hour-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-height: 240px;
  align-items: end;
}

.hour-column {
  display: grid;
  grid-template-rows: 20px 180px 18px;
  gap: 5px;
  min-width: 0;
}

.hour-value {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.hour-track > div {
  background: #9fe1cb;
}

.hour-column.peak .hour-track > div {
  background: #1d9e75;
}

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

.list-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.list-item > * {
  min-width: 0;
}

.security-grid {
  margin-top: 14px;
  align-items: start;
}

.security-backup strong {
  display: block;
  overflow-wrap: anywhere;
}

.audit-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 12px;
}

.audit-search-form .input {
  width: 100%;
}

.security-log-list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.security-log-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  min-width: 0;
}

.security-log-row strong,
.security-log-row span,
.security-log-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.security-log-row small {
  color: var(--muted);
  margin-top: 5px;
}

.admin-grid {
  align-items: start;
}

.admin-customers {
  display: grid;
  gap: 14px;
}

.admin-customer {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.admin-customer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.admin-customer-head strong {
  display: block;
  overflow-wrap: anywhere;
}

.admin-customer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.admin-readonly {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid #f0e9ff;
  border-radius: 8px;
  background: #fbf9ff;
}

.admin-readonly div {
  min-width: 0;
}

.admin-readonly span,
.admin-sub-info span:not(.badge) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.admin-readonly strong,
.admin-sub-info strong {
  display: block;
  margin-top: 3px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-login-form,
.admin-sub-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-subsection {
  display: grid;
  gap: 10px;
}

.admin-subsection .section-title {
  margin-bottom: 0;
}

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

.admin-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9ff;
  min-width: 0;
}

.admin-sub-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-sub-form {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9ff;
}

.admin-sub-form-new {
  background: #f6fffb;
  border-color: #b9ead8;
}

.admin-plan-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.clinic-search-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.clinic-search-field {
  max-width: 560px;
}

.clinic-selected-pet {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #b9ead8;
  border-radius: 8px;
  background: #f1fcf7;
}

.clinic-selected-pet strong,
.clinic-selected-pet span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.clinic-selected-pet span {
  color: var(--muted);
  font-size: 13px;
}

.clinic-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.clinic-pet-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.clinic-pet-result:hover,
.clinic-pet-result.selected {
  border-color: #9fe1cb;
  background: #f6fffb;
}

.clinic-pet-result .badge {
  flex: 0 0 auto;
}

.tutor-return-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.tutor-return-card:hover,
.tutor-return-card.selected {
  border-color: #cbb8ff;
  background: #fbf8ff;
}

.tutor-return-main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.tutor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 12px;
}

.return-pets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 46px;
}

.return-pet {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f7f3ff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.return-pet.active {
  background: #ecfdf5;
  color: #166534;
}

.tutor-return-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
  flex: 0 0 auto;
}

.campaign-composer {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d9ccff;
  border-radius: 8px;
  background: #fbf8ff;
  display: grid;
  gap: 12px;
}

.campaign-title {
  margin-bottom: 0;
}

.campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.campaign-textarea {
  min-height: 128px;
}

.campaign-warning {
  font-size: 12px;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  background: #eee7ff;
  border-radius: 8px;
  gap: 4px;
  max-width: 100%;
}

.tabs button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 820;
  cursor: pointer;
  white-space: nowrap;
}

.tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(84, 37, 206, 0.12);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.48);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 18px;
}

.confirm-modal {
  width: min(460px, 100%);
}

.confirm-dialog {
  display: grid;
  gap: 14px;
}

.confirm-copy,
.confirm-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.confirm-target {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8ff;
}

.confirm-target strong,
.confirm-target span {
  display: block;
}

.confirm-target span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.confirm-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.login-page,
.portal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(100, 39, 233, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbf8ff 48%, #f2ebff 100%);
}

.login-card {
  width: min(440px, 100%);
  padding: 28px;
  border-color: rgba(100, 39, 233, 0.2);
  box-shadow: var(--shadow-strong);
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.login-card h1 {
  margin: 0;
  font-size: 32px;
}

.login-avatar .brand-mark {
  width: 88px;
  height: 88px;
}

.login-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.login-card form {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.guidelines-gate-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 48%, #eef2f7 100%);
}

.guidelines-gate-card {
  width: min(940px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 15px;
  padding: 24px;
  border-color: rgba(100, 116, 139, 0.22);
  box-shadow: var(--shadow-strong);
}

.guidelines-gate-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.guidelines-gate-head h1,
.guidelines-gate-head p {
  margin: 0;
}

.guidelines-gate-head h1 {
  font-size: 28px;
}

.guidelines-gate-head p,
.guidelines-gate-meta {
  color: var(--muted);
  font-weight: 760;
}

.guidelines-gate-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
}

.guidelines-gate-meta a {
  color: var(--accent-strong);
  text-decoration: none;
}

.guidelines-gate-scroll {
  min-height: 260px;
  overflow: auto;
  padding: 4px 6px 4px 0;
}

.guidelines-gate-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.guidelines-gate-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.guidelines-gate-section h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.guidelines-gate-section p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.guidelines-gate-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.55;
}

.guidelines-accept-form {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.guidelines-accept-check {
  margin: 0;
}

.guidelines-gate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 44px));
  border-radius: 8px;
  padding: 12px 14px;
  background: #171431;
  color: #fff;
  font-weight: 750;
  box-shadow: var(--shadow);
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.money {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1180px) {
  .main {
    padding: 22px;
  }

  .grid.metrics,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr 1fr;
  }

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

  .chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .chart-scroll::-webkit-scrollbar {
    height: 8px;
  }

  .chart-scroll::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #f3efff;
  }

  .chart-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c8b8ff;
  }

  .chart-scroll > .chart-detailed {
    min-width: 720px;
  }

  .chart-scroll > .hour-chart {
    min-width: 520px;
  }
}

@media (max-width: 860px) {
  .guidelines-gate-page {
    align-items: start;
    padding: 16px;
  }

  .guidelines-gate-card {
    max-height: none;
  }

  .guidelines-gate-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .guidelines-gate-head .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .app-shell,
  .app-shell.is-sidebar-collapsed {
    --sidebar-width: min(312px, calc(100vw - 48px));
    grid-template-columns: 1fr;
  }

  .mobile-shellbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 25;
    height: 62px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(84, 37, 206, 0.08);
  }

  .mobile-menu-button {
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--accent) 0%, #7b35ff 100%);
    color: #fff;
  }

  .mobile-shellbrand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-shellbrand .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
    background: transparent;
  }

  .mobile-shellbrand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 28;
    display: block;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .app-shell.is-sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .sidebar,
  .app-shell.is-sidebar-collapsed .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    max-width: calc(100vw - 48px);
    height: 100dvh;
    z-index: 30;
    padding: 18px 14px;
    align-items: stretch;
    transform: translateX(-102%);
    box-shadow: 18px 0 42px rgba(15, 23, 42, 0.24);
  }

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

  .sidebar-toggle {
    display: none;
  }

  .mobile-close-button {
    display: grid;
  }

  .sidebar-head,
  .app-shell.is-sidebar-collapsed .sidebar-head {
    grid-template-columns: minmax(0, 1fr) 38px;
    justify-items: stretch;
  }

  .app-shell.is-sidebar-collapsed .brand {
    grid-template-columns: 46px minmax(0, 1fr);
    justify-content: stretch;
  }

  .app-shell.is-sidebar-collapsed .brand-copy,
  .app-shell.is-sidebar-collapsed .account,
  .app-shell.is-sidebar-collapsed .nav-label {
    display: block;
  }

  .app-shell.is-sidebar-collapsed .nav,
  .app-shell.is-sidebar-collapsed .sidebar-actions,
  .app-shell.is-sidebar-collapsed .logout {
    width: 100%;
  }

  .app-shell.is-sidebar-collapsed .nav button,
  .app-shell.is-sidebar-collapsed .nav-help,
  .app-shell.is-sidebar-collapsed .logout {
    width: 100%;
    justify-content: flex-start;
    padding: 0 12px;
  }

  .app-shell.is-sidebar-collapsed .nav-help,
  .app-shell.is-sidebar-collapsed .logout {
    justify-self: stretch;
  }

  .main {
    padding: 82px 18px 22px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .toolbar {
    width: 100%;
  }

  .toolbar > * {
    flex: 1 1 auto;
  }

  .toolbar .input,
  .toolbar .select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .toolbar .month-picker {
    flex: 1 1 100%;
    width: 100%;
  }

  .toolbar .month-field {
    flex: 1 1 auto;
  }

  .toolbar .month-input {
    width: 100% !important;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
  }

  .tabs button {
    flex: 1 0 auto;
  }

  .nav,
  .grid.metrics,
  .grid.two,
  .grid.three,
  .guidelines-hero,
  .guidelines-grid,
  .form-grid,
  .signup-plan-strip,
  .admin-readonly,
  .admin-login-form,
  .admin-sub-form,
  .audit-search-form {
    grid-template-columns: 1fr;
  }

  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  pre {
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .guidelines-gate-page {
    padding: 12px;
  }

  .guidelines-gate-card {
    gap: 12px;
  }

  .guidelines-gate-head h1 {
    font-size: 24px;
  }

  .guidelines-gate-actions > * {
    flex: 1 1 100%;
  }

  .main {
    padding: 78px 12px 18px;
  }

  .panel,
  .card,
  .modal {
    padding: 14px;
  }

  .topbar h2 {
    font-size: 24px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .signup-page {
    padding: 16px 12px;
  }

  .signup-card {
    gap: 14px;
  }

  .signup-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-payment-value {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .admin-customer-head {
    flex-direction: column;
  }

  .admin-customer-meta {
    justify-content: flex-start;
  }

  .admin-sub-row {
    align-items: stretch;
    flex-direction: column;
  }

  .return-pets {
    padding-left: 0;
  }

  .tutor-return-meta {
    justify-items: start;
  }

  .list-item .select,
  .list-item .input {
    width: 100% !important;
    max-width: none !important;
  }

  .mini-actions,
  .toolbar {
    width: 100%;
  }

  .mini-actions > *,
  .toolbar > * {
    flex: 1 1 100%;
  }

  .pets-table {
    overflow: visible;
  }

  .pets-table thead {
    display: none;
  }

  .pets-table tbody {
    display: grid;
    gap: 10px;
  }

  .pets-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .pets-table td {
    padding: 0;
    border-bottom: 0;
  }

  .pets-table .pet-cell {
    order: 1;
  }

  .pets-table .pet-actions-cell {
    order: 2;
  }

  .pets-table .pet-tutor-cell {
    order: 3;
  }

  .pets-table .pet-status-cell {
    order: 4;
  }

  .pet-actions {
    align-items: center;
    gap: 6px;
  }

  .pet-actions > * {
    flex: 0 1 auto;
    min-height: 34px;
    padding-inline: 9px;
    font-size: 12px;
    white-space: nowrap;
  }

  .kanban {
    grid-template-columns: repeat(6, minmax(min(78vw, 280px), 1fr));
  }

  .chart-card {
    padding: 14px 12px;
  }

  .chart-scroll {
    margin-right: -8px;
    padding-right: 8px;
  }

  .chart-scroll > .chart-detailed {
    min-width: 640px;
  }

  .chart-scroll > .hour-chart {
    min-width: 460px;
  }

  .chart-head {
    flex-direction: column;
    gap: 6px;
  }

  .chart-head-actions,
  .chart-head-actions .month-picker {
    width: 100%;
  }

  .chart-head-actions .month-field {
    flex: 1 1 auto;
  }

  .chart-head-actions .month-input {
    flex: 1 1 auto;
    width: 100% !important;
  }

  .chart-head strong {
    max-width: none;
    text-align: left;
  }

  .chart-summary {
    gap: 6px 10px;
  }

  .chart-detailed {
    gap: 2px;
    min-height: 190px;
  }

  .chart-column {
    grid-template-rows: 1px 150px 16px;
    gap: 4px;
  }

  .chart-value {
    visibility: hidden;
    line-height: 0;
  }

  .chart-column > span,
  .hour-column > span {
    font-size: 9px;
  }

  .hour-chart {
    gap: 3px;
    min-height: 190px;
  }

  .hour-column {
    grid-template-rows: 18px 145px 16px;
    gap: 4px;
  }
}
