:root {
  color-scheme: light;
  --ink: #07111a;
  --muted: #607080;
  --line: #d9e5e8;
  --canvas: #f4f8f8;
  --panel: #ffffff;
  --brand: #75fcc0;
  --brand-dark: #064a4a;
  --brand-deep: #030a12;
  --brand-soft: #eafff7;
  --mint: #74fc91;
  --aqua: #74fced;
  --lime: #8afc74;
  --sky: #74dffc;
  --accent: #74fced;
  --gold: #5a7d08;
  --gold-soft: #f0ffe9;
  --danger: #b42318;
  --danger-soft: #ffe4e0;
  --success: #08794d;
  --success-soft: #eafff7;
  --blue: #09728a;
  --blue-soft: #e7fbff;
  --shadow: 0 18px 48px rgba(3, 10, 18, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  max-width: 100vw;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  background: #f7fafc;
}

.login-panel {
  background: #ffffff;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #e2e8f0;
}

.login-visual {
  padding: 34px 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eefcff;
  background:
    radial-gradient(circle at 26% 22%, rgba(117, 252, 192, 0.2), transparent 26%),
    radial-gradient(circle at 80% 16%, rgba(116, 223, 252, 0.14), transparent 24%),
    linear-gradient(140deg, #030a12 0%, #071a24 58%, #041114 100%);
}

.login-copy {
  width: min(860px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #030a12;
  border: 1px solid rgba(117, 252, 192, 0.22);
  overflow: hidden;
}

.product-mark img,
.brand-logo img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 15px;
}

.login-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.login-panel h1,
.login-copy h2 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: 0;
}

.login-panel h1 {
  max-width: 360px;
  font-size: 22px;
  font-weight: 850;
}

.login-copy h2 {
  max-width: none;
  font-size: 24px;
  white-space: nowrap;
  color: #ffffff;
}

.login-panel p,
.login-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.login-panel p {
  max-width: 360px;
  font-size: 13px;
}

.login-copy p {
  color: rgba(238, 252, 255, 0.72);
  max-width: 540px;
}

.login-copy-head {
  width: 100%;
  text-align: center;
}

.login-copy-head span {
  display: none;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-hero-logo {
  display: block;
  width: min(190px, 34vw);
  height: auto;
  margin: 0 auto 6px;
  object-fit: contain;
}

.login-form {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  max-width: 360px;
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.google-button:hover {
  border-color: rgba(117, 252, 192, 0.75);
  box-shadow: 0 0 0 3px rgba(117, 252, 192, 0.16);
}

.auth-note {
  margin-top: 16px;
  max-width: 360px;
  padding: 10px 0 0;
  border-top: 1px solid #e2e8f0;
  color: var(--muted);
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}

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

.plan-card {
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  padding: 14px 12px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.login-copy .plan-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
}

.plan-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(117, 252, 192, 0.18);
}

.plan-card.popular {
  border-color: rgba(6, 74, 74, 0.28);
  background: linear-gradient(180deg, #ffffff, #f3fffb);
}

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.plan-card-head > span,
.plan-card-head .status {
  justify-content: center;
}

.plan-card h3 {
  margin: 10px 0 0;
  color: #07111a;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.1;
}

.plan-price {
  display: grid;
  gap: 2px;
  justify-items: center;
  margin-top: 8px;
}

.plan-price strong {
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
}

.plan-price span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.plan-card p {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.plan-limits {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin-top: 10px;
}

.plan-limits span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.plan-current {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-dark);
  text-align: center;
}

.plan-current.muted {
  color: var(--muted);
  font-weight: 700;
}

.plan-checkout-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 12px;
}

.plan-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.plan-notice span,
.plan-notice p {
  color: var(--muted);
}

.plan-notice strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.plan-notice p {
  margin: 6px 0 0;
}

.usage-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.usage-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 8px;
  font-weight: 700;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #030a12;
  color: #ecfeff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(117, 252, 192, 0.22);
  overflow: hidden;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  font-size: 10.5px;
  color: rgba(236, 254, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

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

.nav-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(236, 254, 255, 0.82);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  text-align: left;
}

.nav-button.active,
.nav-button:hover {
  background: rgba(117, 252, 192, 0.13);
  color: #ffffff;
}

.account-mini {
  margin-top: auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-mini div,
.account-mini strong,
.account-mini span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-mini span {
  font-size: 12px;
  color: rgba(236, 254, 255, 0.74);
  margin-top: 3px;
  white-space: nowrap;
}

.avatar {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
  object-fit: cover;
}

.avatar.sm {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.avatar.md {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.avatar.lg {
  width: 78px;
  height: 78px;
  font-size: 24px;
}

.profile-summary,
.profile-edit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

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

.profile-summary strong,
.profile-edit strong {
  font-size: 17px;
}

.profile-summary span,
.profile-edit span {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-card {
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
}

.billing-card {
  background: linear-gradient(180deg, #ffffff, #f7fffc);
}

.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.checkout-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4fffc);
}

.checkout-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.checkout-panel strong {
  color: var(--ink);
}

.checkout-panel span,
.checkout-card small {
  color: var(--muted);
  font-size: 12px;
}

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

.checkout-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
}

.checkout-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-card-actions .button {
  min-height: 34px;
  font-size: 12px;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(117, 252, 192, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, #061115, #0b3f3f);
  color: #fff;
}

.admin-hero span,
.muted-small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-hero span {
  color: var(--brand);
}

.admin-hero h2 {
  margin: 4px 0;
  font-size: 22px;
}

.admin-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.admin-kpis .kpi {
  border-top: 3px solid var(--brand);
}

.account-card .band-header {
  min-height: 48px;
  background: #f8fafc;
}

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

.account-info-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
}

.account-info-item:nth-child(4n + 1) {
  border-top: 3px solid var(--brand);
}

.account-info-item:nth-child(4n + 2) {
  border-top: 3px solid var(--blue);
}

.account-info-item:nth-child(4n + 3) {
  border-top: 3px solid var(--gold);
}

.account-info-item:nth-child(4n + 4) {
  border-top: 3px solid #64748b;
}

.account-info-item span {
  display: block;
  color: #48617a;
  font-size: 11px;
  font-weight: 700;
}

.account-info-item strong {
  display: block;
  min-width: 0;
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.compact-plans {
  align-self: start;
}

.compact-plan-header {
  min-height: 46px;
}

.compact-plan-header > div:first-child {
  min-width: 0;
}

.compact-plan-header h2,
.compact-plan-header span {
  display: block;
}

.compact-plan-header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.service-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-plan-card strong,
.service-plan-card small {
  display: block;
}

.service-plan-card strong {
  margin-top: 8px;
  font-size: 16px;
}

.service-plan-card small {
  margin-top: 4px;
  color: var(--muted);
}

.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 68px;
  background: rgba(246, 248, 251, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}

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

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

.main {
  padding: 24px 28px 42px;
  min-width: 0;
}

.view {
  display: grid;
  gap: 18px;
}

.band {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

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

.band-header h2 {
  font-size: 15px;
  margin: 0;
}

.band-body {
  min-width: 0;
  padding: 16px;
}

.kpi-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.kpi {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
}

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

.kpi strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

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

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  min-width: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.input,
.select,
.textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

.textarea {
  min-height: 76px;
  resize: vertical;
}

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

.form-grid .wide {
  grid-column: span 2;
}

.button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}

.button:hover {
  background: #032f31;
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.secondary:hover {
  background: #f1f5f9;
}

.button.warning {
  color: #7c2d12;
  background: var(--gold-soft);
  border-color: #f4cd8b;
}

.button.danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #ffb4ac;
}

.button.full {
  width: 100%;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
}

.icon-button:hover {
  background: #f8fafc;
}

.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 11px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: #07111a;
  color: #fff;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:hover {
  background: #f8fafc;
}

.money,
.num {
  text-align: right;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.status.ok {
  background: var(--success-soft);
  color: var(--success);
}

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

.status.warn {
  background: var(--gold-soft);
  color: #a16207;
}

.status.bad {
  background: var(--danger-soft);
  color: var(--danger);
}

.status.neutral {
  background: #eef2f7;
  color: #475569;
}

.chart-box {
  min-height: 330px;
}

.report-layout {
  display: grid;
  gap: 18px;
}

.report-export-header {
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.report-export-header img {
  width: 112px;
  height: auto;
  object-fit: contain;
}

.report-export-header strong,
.report-export-header span,
.report-export-header small {
  display: block;
}

.report-export-header strong {
  color: var(--ink);
  font-size: 18px;
}

.report-export-header span {
  margin-top: 3px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.report-export-header small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

canvas {
  display: block;
  width: 100%;
  height: 292px;
}

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

.action-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.action-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: #92400e;
  border-radius: 8px;
  font-weight: 800;
}

.action-item strong {
  display: block;
  margin-bottom: 2px;
}

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

.notice {
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 12px;
  border-radius: 8px;
  line-height: 1.45;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal .band-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #07111a;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.print-only {
  display: none;
}

@media (max-width: 1060px) {
  .app {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .sidebar {
    padding: 12px 10px;
  }

  .brand-copy,
  .nav-button span,
  .account-mini {
    display: none;
  }

  .nav-button {
    justify-content: center;
  }

  .topbar,
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .kpi-grid,
  .plan-grid,
  .checkout-grid,
  .account-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .login-visual {
    padding: 28px 18px 38px;
  }

  .login-panel {
    padding: 34px 24px;
    border-right: 0;
  }

  .login-panel h1 {
    font-size: 24px;
  }

  .login-copy h2 {
    white-space: normal;
  }

  .plan-grid,
  .kpi-grid,
  .split-grid,
  .checkout-grid,
  .account-info-grid {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
    height: auto;
    padding: 14px 12px;
  }

  .brand-copy,
  .nav-button span,
  .account-mini {
    display: flex;
  }

  .brand-copy,
  .nav-button span {
    display: block;
  }

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

  .nav-button {
    min-height: 42px;
    justify-content: center;
    padding: 9px 8px;
    text-align: center;
  }

  .nav-button span {
    font-size: 12px;
  }

  .topbar,
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px;
    flex-direction: column;
  }

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

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

  .profile-summary,
  .profile-edit {
    align-items: flex-start;
  }

  .plan-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-strip {
    justify-content: flex-start;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .login-panel,
  .login-visual,
  .main,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .band-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi strong {
    font-size: 24px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .no-print,
  .modal-backdrop,
  .toast {
    display: none !important;
  }

  .app {
    display: block;
  }

  .main {
    padding: 0;
  }

  .view > .band:not(.report-print) {
    display: none;
  }

  .print-only {
    display: block;
  }

  .report-export-header.print-only {
    display: flex;
  }

  .report-print {
    border: 0;
    box-shadow: none;
  }

  .report-print .band-body {
    padding: 18px 0 0;
  }
}
