/* src/app.css */
:root {
  --bg: #0b0f14;
  --surface: #131a23;
  --surface-2: #1a232f;
  --border: #243140;
  --text: #e6edf3;
  --muted: #8b96a3;
  --primary: #6366f1;
  --primary-hover: #4f52e0;
  --danger: #ef4444;
  --radius: 10px;
  --gap: 16px;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.muted {
  color: var(--muted);
}
.center-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--muted);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.card-body {
  padding: 18px;
}
.card-actions {
  display: flex;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.login-screen .card {
  width: 100%;
  max-width: 420px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.login-form input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.login-form input:focus {
  outline: none;
  border-color: var(--primary);
}
.form-error {
  color: var(--danger);
  font-size: 13px;
}
.dashboard-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dashboard-main {
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.dashboard-main h1 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
}
.empty-state {
  padding: 24px 0;
  text-align: center;
}
.empty-state p {
  margin: 4px 0;
}
.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dashboard-section-head h1 {
  margin: 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card.status-up {
  border-left-color: #22c55e;
}
.product-card.status-stale {
  border-left-color: #f59e0b;
}
.product-card.status-down {
  border-left-color: var(--danger);
}
.product-card.status-paused {
  border-left-color: #6b7280;
}
.product-card.status-unknown {
  border-left-color: var(--border);
}
.product-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.product-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.product-card-slug {
  font-size: 12px;
  margin-top: 2px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status-pill .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentcolor;
}
.status-pill-up {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.status-pill-stale {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.status-pill-down {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.status-pill-paused {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}
.status-pill-unknown {
  background: var(--surface-2);
  color: var(--muted);
}
.product-card-meta {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card-meta strong {
  color: var(--text);
  font-weight: 500;
}
.product-card-error {
  color: #fca5a5;
}
.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.modal-close:hover {
  color: var(--text);
}
.modal-body {
  padding: 18px;
  overflow-y: auto;
}
.app-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.app-form input,
.app-form textarea,
.app-form select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.app-form textarea {
  resize: vertical;
}
.app-form input:focus,
.app-form textarea:focus,
.app-form select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.mrr-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mrr-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mrr-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mrr-meta {
  font-size: 13px;
}
.mrr-empty {
  font-size: 14px;
  padding: 8px 0;
}
.tab-nav {
  display: flex;
  gap: 4px;
  margin: 24px 0 16px;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: -1px;
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn-active {
  color: var(--text);
  border-bottom-color: var(--primary);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table th {
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table a {
  color: var(--primary);
}
.small {
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.form-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row-pair label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row !important;
  cursor: pointer;
}
.checkbox-row input {
  width: auto !important;
}
.checkbox-row span {
  color: var(--text);
  font-size: 14px;
}
.app-form textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.app-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.signup-shell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg);
}
.signup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 720px;
}
.signup-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}
.signup-card p {
  margin: 4px 0 16px;
}
.token-display {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.token-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  word-break: break-all;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 13px;
}
.inline-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: var(--gap);
  font-size: 14px;
}
.inline-notice-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.inline-notice-close:hover {
  color: var(--text);
}
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}
.row-muted td {
  opacity: 0.55;
}
.status-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}
.status-chip-active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}
.status-chip-requested {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.product-card-description {
  margin: 4px 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.product-card-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.price-badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.product-card-users {
  background: none;
  border: none;
  border-bottom: 1px dotted var(--border);
  color: var(--muted);
  font-size: 13px;
  padding: 0 0 2px;
  cursor: pointer;
  align-self: flex-start;
}
.product-card-users:hover {
  color: var(--text);
}
.signup-products {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-products legend {
  padding: 0 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.signup-product {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.signup-product:hover {
  background: var(--surface-2);
}
.signup-product-active {
  border-color: var(--primary);
  background: var(--surface-2);
}
.signup-product input {
  width: auto !important;
  margin-top: 3px;
}
.signup-product-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.signup-price {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 12px !important;
}
.product-card-todo {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
  color: #fbbf24;
  font-size: 13px;
  line-height: 1.45;
  font-family: inherit;
  cursor: pointer;
}
.product-card-todo:hover {
  background: rgba(245, 158, 11, 0.18);
}
.product-card-todo strong {
  color: #fcd34d;
}
.plans-manager {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plans-description {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.plans-description textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.plans-description textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.plans-description .btn {
  align-self: flex-start;
}
.plans-form {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.plans-form h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.price-badge-limit {
  margin-left: 6px;
  opacity: 0.6;
  font-variant-numeric: normal;
}
.form-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fbbf24;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}
.form-warning-inline {
  color: #fbbf24;
}
.usage-over {
  color: #fbbf24;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.field-hint {
  line-height: 1.45;
}
.modal-content-wide {
  max-width: 760px;
}
.table-scroll {
  overflow-x: auto;
}
.settings-tab .card {
  max-width: 760px;
}
.form-section-head {
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.inline-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.inline-field input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.inline-field input:focus {
  outline: none;
  border-color: var(--primary);
}
.receivables {
  display: flex;
  gap: 48px;
}
.receivables-amount {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.receivables-overdue {
  color: #fbbf24;
}
.preview-line {
  font-size: 12px;
  line-height: 1.5;
}
.link-like {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-like:hover {
  filter: brightness(1.2);
}
.detail-row td {
  background: var(--surface-2);
}
.invoice-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0;
}
.invoice-detail .data-table {
  background: var(--surface);
  border-radius: 8px;
}
a.btn {
  text-decoration: none;
}
a.btn:hover {
  text-decoration: none;
}
/*# sourceMappingURL=app.css.map */
