/* [project]/styles/globals.css [client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #fff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #64748b;
  --line: #d9e2ef;
  --blue: #2563eb;
  --green: #14936f;
  --violet: #7c3aed;
  --amber: #b7791f;
  --red: #b42318;
  --shadow: 0 18px 50px #14203d1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

a {
  color: inherit;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  letter-spacing: 0;
  margin-bottom: 8px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
}

h2 {
  letter-spacing: 0;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.eyebrow {
  color: var(--blue);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.subtitle, .form-help {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.loading-shell {
  min-height: 100vh;
  color: var(--muted);
  place-items: center;
  font-weight: 800;
  display: grid;
}

.brand-lockup {
  color: var(--text);
  align-items: center;
  gap: 12px;
  text-decoration: none;
  display: flex;
}

.brand-lockup strong, .brand-lockup small {
  display: block;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  font-weight: 900;
  display: grid;
}

.brand-lockup.large .brand-mark {
  width: 54px;
  height: 54px;
}

.login-stage {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  align-items: center;
  gap: 36px;
  width: min(1180px, 100% - 32px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
}

.login-info h1 {
  max-width: 720px;
  margin: 28px 0 16px;
}

.login-info p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin-top: 28px;
  display: grid;
}

.benefit-grid span {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  font-weight: 800;
  display: flex;
  box-shadow: 0 10px 30px #1720330f;
}

.login-card, .studio-panel, .hero-panel, .system-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.login-card {
  padding: 28px;
}

.login-card label + label, .login-card button {
  margin-top: 16px;
}

label {
  color: var(--muted);
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  display: grid;
}

input, select, textarea {
  border: 1px solid var(--line);
  width: 100%;
  min-height: 44px;
  color: var(--text);
  font: inherit;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
}

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

input[type="color"] {
  padding: 4px;
}

button, .primary-link, .secondary-link, .ghost-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}

button:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.secondary-link, .ghost-button {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}

.error {
  color: var(--red);
  font-weight: 800;
}

.notice {
  color: var(--green);
  font-weight: 800;
}

.app-frame {
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  height: 100vh;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.side-nav {
  gap: 4px;
  margin-top: 26px;
  display: grid;
}

.side-nav a {
  color: #334155;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
}

.side-nav a span {
  width: 24px;
  height: 24px;
  color: var(--muted);
  background: #edf2f7;
  border-radius: 6px;
  place-items: center;
  font-size: 11px;
  display: grid;
}

.side-nav a.active, .side-nav a:hover {
  color: var(--blue);
  background: #eaf1ff;
}

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

.topbar {
  border-bottom: 1px solid var(--line);
  background: #f4f7fbdb;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px 16px;
  display: flex;
}

.topbar h1 {
  font-size: 34px;
}

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

.user-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 10px;
  display: flex;
}

.user-chip span {
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-weight: 900;
  display: grid;
}

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

.user-chip small {
  max-width: 220px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.tenant-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 28px 0;
  display: grid;
}

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

.tenant-strip span, .info-grid span {
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  display: block;
}

.content {
  padding: 24px 28px 42px;
}

.hero-panel {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  padding: 26px;
  display: flex;
}

.hero-panel p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.progress-ring {
  border: 10px solid #dbeafe;
  border-top-color: var(--blue);
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 128px;
  height: 128px;
  display: grid;
}

.progress-ring strong, .progress-ring span {
  text-align: center;
  display: block;
}

.progress-ring strong {
  font-size: 28px;
}

.progress-ring span {
  color: var(--muted);
  margin-top: -18px;
  font-size: 12px;
  font-weight: 800;
}

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

.compact-metrics {
  margin-bottom: 20px;
}

.metric-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 142px;
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  margin: 10px 0 8px;
  font-size: 26px;
  display: block;
}

.metric-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.tone-blue {
  border-top: 4px solid var(--blue);
}

.tone-green {
  border-top: 4px solid var(--green);
}

.tone-violet {
  border-top: 4px solid var(--violet);
}

.tone-amber {
  border-top: 4px solid var(--amber);
}

.settings-grid, .theme-studio-grid, .users-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  align-items: start;
  gap: 20px;
  display: grid;
}

.users-layout {
  grid-template-columns: 340px minmax(0, 1fr);
}

.studio-panel {
  padding: 22px;
}

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

.wide, .section-title {
  grid-column: 1 / -1;
}

.checkbox-label {
  align-items: center;
  gap: 10px;
  display: flex;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.preview-stack {
  gap: 16px;
  display: grid;
}

.compact-panel p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.inline-search {
  align-items: center;
  gap: 8px;
  display: flex;
}

.inline-search input {
  min-width: 220px;
}

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

.info-grid div {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 8px;
  min-height: 76px;
  padding: 14px;
}

.color-swatches {
  gap: 6px;
  display: inline-flex;
}

.color-swatches span {
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: inline-block;
}

.status-badge, .role-badge, .count-pill {
  color: #334155;
  background: #edf2f7;
  border-radius: 999px;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
}

.status-badge.active {
  color: #166534;
  background: #dcfce7;
}

.status-badge.disabled {
  color: #991b1b;
  background: #fee2e2;
}

.phone-preview {
  box-shadow: var(--shadow);
  background: #fff;
  border: 8px solid #111827;
  border-radius: 28px;
  overflow: hidden;
}

.phone-top {
  background: #1f2937;
  border-radius: 999px;
  width: 84px;
  height: 6px;
  margin: 12px auto;
}

.phone-cover {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  background-position: center;
  background-size: cover;
  height: 132px;
}

.phone-content {
  padding: 18px;
}

.phone-logo {
  background: var(--brand-secondary);
  color: #fff;
  border: 4px solid #fff;
  border-radius: 12px;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-top: -48px;
  margin-bottom: 12px;
  font-weight: 900;
  display: grid;
}

.phone-logo img {
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}

.phone-content p {
  color: var(--muted);
  line-height: 1.5;
}

.phone-content button {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  width: 100%;
  margin-top: 8px;
}

.phone-content button.accent {
  border-color: var(--brand-accent);
  background: var(--brand-accent);
}

.message-preview {
  background: #e8f5ee;
  border-radius: 8px;
  padding: 14px;
}

.message-preview p {
  color: var(--text);
}

.user-create {
  gap: 14px;
  display: grid;
}

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

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

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

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

.home-page {
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
  padding: 42px 0;
}

.home-hero {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 24px;
  min-height: 420px;
  display: grid;
}

.system-card {
  padding: 24px;
}

.system-card span {
  color: var(--green);
  font-weight: 900;
}

.system-card.fail span {
  color: var(--red);
}

.public-page {
  min-height: 100vh;
  color: var(--brand-secondary);
  background: #f8fafc;
}

.public-hero {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  color: #fff;
  align-items: end;
  min-height: 540px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.public-cover {
  object-fit: cover;
  opacity: .32;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.public-inner {
  width: min(1080px, 100% - 32px);
  margin: 0 auto;
  padding: 52px 0;
  position: relative;
}

.public-header {
  align-items: center;
  gap: 18px;
  max-width: 820px;
  display: flex;
}

.public-header img, .public-header span {
  color: #fff;
  object-fit: cover;
  background: #ffffff24;
  border: 2px solid #ffffffb8;
  border-radius: 12px;
  flex: none;
  place-items: center;
  width: 76px;
  height: 76px;
  font-size: 34px;
  font-weight: 900;
  display: grid;
}

.public-header .eyebrow {
  color: #ffffffc7;
}

.public-header p, .public-description {
  color: #ffffffe0;
}

.public-description {
  max-width: 720px;
  margin: 22px 0;
  font-size: 18px;
  line-height: 1.6;
}

.public-actions {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

.public-actions a {
  background: var(--brand-accent, var(--green));
  color: #fff;
  border-radius: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
}

.public-actions a + a {
  background: #ffffff29;
}

.public-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1080px, 100% - 32px);
  margin: 28px auto;
  display: grid;
}

.public-cards article {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 154px;
  padding: 18px;
  box-shadow: 0 10px 30px #1720330f;
}

.public-cards span {
  color: var(--brand-primary, var(--blue));
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.public-cards strong {
  margin: 10px 0 8px;
  display: block;
}

.public-cards p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.home-modules {
  width: 100%;
}

.public-info {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(1080px, 100% - 32px);
  margin: 0 auto 28px;
  display: grid;
}

.public-info > div {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 24px;
}

.public-info p {
  color: var(--muted);
}

.public-footer {
  width: min(1080px, 100% - 32px);
  color: var(--muted);
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 24px 0 42px;
  display: flex;
}

.public-footer small {
  color: var(--brand-primary, var(--blue));
  font-weight: 900;
}

@media (max-width: 1080px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

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

  .side-nav, .tenant-strip, .metric-grid, .public-cards, .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-grid, .theme-studio-grid, .users-layout, .login-stage, .home-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar, .hero-panel, .split-header, .public-footer {
    display: block;
  }

  .topbar-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .tenant-strip, .metric-grid, .form-grid, .public-cards, .public-info, .info-grid, .benefit-grid {
    grid-template-columns: 1fr;
  }

  .content, .topbar, .tenant-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .public-header {
    align-items: flex-start;
  }
}

/*# sourceMappingURL=styles_globals_1sjip1h.css.map*/