/**
 * NS-Bina-Site — yerel CSS (Tailwind CDN yok)
 * Slate / teal bina yönetimi görünümü
 */

:root {
  --color-bg: #f1f5f9;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-soft: #94a3b8;
  --color-primary: #0f766e;
  --color-primary-hover: #0d9488;
  --color-primary-soft: #ccfbf1;
  --color-primary-border: #99f6e4;
  --color-accent: #134e4a;
  --color-danger: #b91c1c;
  --color-danger-bg: #fef2f2;
  --color-danger-border: #fecaca;
  --color-warning: #9a3412;
  --color-warning-bg: #fff7ed;
  --color-warning-border: #fdba74;
  --color-success: #166534;
  --color-success-bg: #f0fdf4;
  --color-success-border: #bbf7d0;
  --color-info-bg: #f0fdfa;
  --color-info-border: #99f6e4;
  --color-info-text: #115e59;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.1);
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --header-h: 56px;
  --max-w: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

/* —— Slim top bar (no page nav) —— */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.top-bar__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.top-bar__brand:hover { text-decoration: none; }
.top-bar__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #2dd4bf 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.3);
  flex-shrink: 0;
}
.top-bar__mark svg {
  width: 1.3rem;
  height: 1.3rem;
}
.top-bar__brand:hover .top-bar__mark {
  filter: brightness(1.06);
}
.top-bar__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.top-bar__site {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}
.top-bar__page {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}
.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.top-bar__home,
.top-bar__action,
.top-bar__logout {
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
}
.top-bar__home {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}
.top-bar__home:hover {
  background: #99f6e4;
  text-decoration: none;
}
.top-bar__action {
  color: var(--color-primary);
  background: #f0fdfa;
}
.top-bar__action:hover { text-decoration: none; background: #ccfbf1; }
.top-bar__user {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.top-bar__logout { color: #64748b; }
.top-bar__logout:hover {
  background: #f1f5f9;
  color: var(--color-text);
  text-decoration: none;
}
@media (max-width: 640px) {
  .top-bar__user { display: none; }
  .top-bar__site { max-width: 9rem; }
}

/* —— Layout —— */
.app-body {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(15, 118, 110, 0.07), transparent 42%),
    linear-gradient(180deg, #eef2f6 0%, var(--color-bg) 45%, #e8edf2 100%);
  min-height: 100vh;
}

.app-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}
.app-shell--public {
  max-width: 28rem;
  padding-top: 2rem;
}

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

.app-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  padding: 0.75rem 1rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.app-footer__ver {
  opacity: 0.75;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.page-toolbar__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}
.page-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Legacy page helpers (admin list screens) */
.container {
  max-width: none;
  margin: 0;
  padding: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
}
.icon-btn:hover {
  background: #f1f5f9;
  text-decoration: none;
}
.icon-btn-danger { color: #b91c1c; border-color: #fecaca; background: #fff5f5; }
.icon-btn-primary { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
.icon-btn-info { color: #0c4a6e; border-color: #bae6fd; background: #f0f9ff; }
.icon-btn-statement { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
form.inline { display: inline; }
.muted { color: #475569; font-size: 13px; }
.ok { color: #166534; }
.error { color: #b91c1c; }
.badge-voided {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 600;
}
.row-voided { opacity: 0.72; }

/* —— Cards (sparingly) —— */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.875rem;
  box-shadow: var(--shadow);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* —— Tables —— */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

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

th, td {
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  padding: 0.5rem 0.4rem;
  font-size: 0.875rem;
  vertical-align: top;
}

th {
  font-weight: 650;
  color: var(--color-text-muted);
  background: #f8fafc;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

/* —— Forms —— */
label,
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="tel"],
input[type="file"],
select,
textarea,
.form-control {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--color-text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  border-color: var(--color-primary);
}

.form-row {
  margin-bottom: 0.85rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.money-preview {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* —— Buttons —— */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  background: var(--color-primary);
  color: #fff;
}
button:hover,
.btn:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
  color: #fff;
}

.btn-secondary,
button.btn-secondary {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover,
button.btn-secondary:hover {
  background: #f8fafc;
  color: var(--color-text);
}

.btn-danger,
button.btn-danger {
  background: var(--color-danger);
  color: #fff;
}
.btn-danger:hover {
  background: #991b1b;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}
.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--color-border-strong);
  text-decoration: none;
  color: var(--color-text);
  background: #fff;
}
.icon-btn:hover {
  background: #f1f5f9;
  text-decoration: none;
}

/* —— Alerts —— */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert--ok,
.alert.ok,
.alert-success {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
  color: var(--color-success);
}
.alert--error,
.alert.error,
.alert-danger {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-border);
  color: var(--color-danger);
}
.alert--warn,
.alert.warning {
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
  color: var(--color-warning);
}
.alert--info {
  background: var(--color-info-bg);
  border-color: var(--color-info-border);
  color: var(--color-info-text);
}

#flash-region:empty {
  display: none;
}

/* —— Modals —— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.modal-backdrop.is-open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.25rem;
}
.modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* —— Pagination —— */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}
.pagination a,
.pagination span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
}
.pagination a:hover {
  background: var(--color-primary-soft);
}
.pagination .is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* —— Auth / public panels —— */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    linear-gradient(145deg, #ecfdf5 0%, #f1f5f9 45%, #e0f2fe 100%);
}
.auth-panel {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}
.auth-panel__brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-panel__brand h1 {
  font-size: 1.75rem;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}
.auth-panel__brand p {
  color: var(--color-text-muted);
  margin: 0;
}

/* —— Dashboard tiles —— */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .tile-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .tile-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.dash-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 5.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 650;
  color: #0f766e;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.dash-tile--slate { color: #334155; }
.dash-tile:hover {
  border-color: var(--color-primary-border, #5eead4);
  background: #f0fdfa;
  text-decoration: none;
  transform: translateY(-1px);
}
.dash-tile--slate:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.dash-tile__icon {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, #2dd4bf 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.25);
}
.dash-tile--slate .dash-tile__icon {
  background: linear-gradient(145deg, #94a3b8 0%, #475569 100%);
  box-shadow: 0 1px 2px rgba(51, 65, 85, 0.22);
}
.dash-tile__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.dash-tile__label {
  text-align: center;
  line-height: 1.25;
  color: inherit;
}

.section-details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
}
.section-details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: between;
  justify-content: space-between;
  font-weight: 650;
}
.section-details > summary::-webkit-details-marker { display: none; }
.section-details .tile-grid {
  padding: 0 1rem 1rem;
}

.role-switch {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.role-switch a {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-primary-border);
  background: var(--color-primary-soft);
  color: var(--color-accent);
  text-decoration: none;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  background: #e2e8f0;
  color: #334155;
}
.badge--ok { background: var(--color-success-bg); color: var(--color-success); }
.badge--warn { background: var(--color-warning-bg); color: var(--color-warning); }
.badge--void { background: #f1f5f9; color: #64748b; text-decoration: line-through; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.dropdown {
  position: relative;
}
.dropdown__menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 0.25rem;
  width: 11rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  padding: 0.25rem 0;
}
.dropdown__menu.is-open,
.dropdown__menu:not(.hidden) {
  display: block;
}
.dropdown__menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  text-decoration: none;
}
.dropdown__menu a:hover {
  background: #f8fafc;
}
.dropdown__menu a.is-danger {
  color: var(--color-danger);
}

/* —— Utility classes (Tailwind-like subset) —— */
.hidden { display: none !important; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }
.h-20 { height: 5rem; }
.shrink-0 { flex-shrink: 0; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.relative { position: relative; }
.absolute { position: absolute; }
.right-0 { right: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-0\.5 { margin-left: 0.125rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* —— Auth / public centered cards —— */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(15, 118, 110, 0.12), transparent 55%),
    linear-gradient(180deg, #f0fdfa 0%, #f1f5f9 45%, #e2e8f0 100%);
}
.auth-page__wrap {
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.auth-page__wrap--lg {
  max-width: 32rem;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.5rem;
}
.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  text-align: center;
}
.auth-card__sub {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.auth-tenant-btn {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.auth-tenant-btn:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary-border);
  transform: translateY(-1px);
}
.auth-tenant-btn h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}
.auth-tenant-btn p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.auth-phone-chip {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.85rem;
}
.stack {
  display: grid;
  gap: 0.65rem;
}
.min-h-screen { min-height: 100vh; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.underline { text-decoration: underline; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.border { border: 1px solid var(--color-border); }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-amber-200 { border-color: #fde68a; }
.border-red-200 { border-color: #fecaca; }
.border-teal-200 { border-color: #99f6e4; }
.border-yellow-200 { border-color: #fde68a; }
.border-emerald-300 { border-color: #6ee7b7; }
.border-indigo-300 { border-color: #a5b4fc; }
.shadow-md { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-lg); }
.shadow-sm { box-shadow: var(--shadow); }
.bg-white { background: #fff; }
.bg-slate-50 { background: #f8fafc; }
.bg-slate-100 { background: #f1f5f9; }
.bg-slate-200 { background: #e2e8f0; }
.bg-slate-900 { background: #0f172a; }
.bg-amber-50 { background: #fffbeb; }
.bg-red-50 { background: #fef2f2; }
.bg-teal-50 { background: #f0fdfa; }
.bg-yellow-50 { background: #fefce8; }
.bg-emerald-50 { background: #ecfdf5; }
.bg-indigo-50 { background: #eef2ff; }
.bg-gray-50 { background: #f9fafb; }
.bg-gray-800 { background: #1e293b; }
.bg-gray-900 { background: #0f172a; }
.text-white { color: #fff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-amber-900 { color: #78350f; }
.text-red-600 { color: #dc2626; }
.text-red-800 { color: #991b1b; }
.text-teal-800 { color: #115e59; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }
.hover\:bg-slate-50:hover { background: #f8fafc; }
.hover\:bg-slate-200:hover { background: #e2e8f0; }
.hover\:bg-slate-300:hover { background: #cbd5e1; }
.hover\:bg-slate-700:hover { background: #334155; }
.hover\:bg-gray-900:hover { background: #0f172a; }
.hover\:bg-red-50:hover { background: #fef2f2; }
.hover\:bg-emerald-50:hover { background: #ecfdf5; }
.hover\:bg-indigo-50:hover { background: #eef2ff; }
.hover\:border-emerald-300:hover { border-color: #6ee7b7; }
.hover\:border-indigo-300:hover { border-color: #a5b4fc; }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.bg-white\/10 { background: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/20:hover { background: rgba(255, 255, 255, 0.2); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.overflow-hidden { overflow: hidden; }
.z-50 { z-index: 50; }
.list-none { list-style: none; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.transition { transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:text-lg { font-size: 1.125rem; }
  .md\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-from, #f8fafc), var(--tw-gradient-to, #e2e8f0));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-from, #334155), var(--tw-gradient-to, #0f172a));
}
.from-teal-50 { --tw-gradient-from: #f0fdfa; }
.to-cyan-50 { --tw-gradient-to: #ecfeff; }
.from-slate-50 { --tw-gradient-from: #f8fafc; }
.to-slate-100 { --tw-gradient-to: #f1f5f9; }
.from-slate-700 { --tw-gradient-from: #334155; }
.to-slate-900 { --tw-gradient-to: #0f172a; }
.from-emerald-400 { --tw-gradient-from: #34d399; }
.via-teal-400 { --tw-gradient-via: #2dd4bf; }
.to-cyan-400 { --tw-gradient-to: #22d3ee; }
.from-indigo-400 { --tw-gradient-from: #818cf8; }
.via-violet-400 { --tw-gradient-via: #a78bfa; }
.to-fuchsia-400 { --tw-gradient-to: #e879f9; }
.bg-gradient-to-br.from-emerald-400 {
  background-image: linear-gradient(135deg, #34d399, #2dd4bf, #22d3ee);
}
.bg-gradient-to-br.from-indigo-400 {
  background-image: linear-gradient(135deg, #818cf8, #a78bfa, #e879f9);
}

.bg-teal-600 { background: #0d9488; }
.hover\:bg-teal-700:hover { background: #0f766e; }
.bg-slate-700 { background: #334155; }
.hover\:bg-slate-800:hover { background: #1e293b; }
.bg-amber-100 { background: #fef3c7; }
.bg-amber-600 { background: #d97706; }
.hover\:bg-amber-700:hover { background: #b45309; }
.bg-indigo-600 { background: #4f46e5; }
.hover\:bg-indigo-700:hover { background: #4338ca; }
.bg-emerald-100 { background: #d1fae5; }
.hover\:bg-emerald-100:hover { background: #d1fae5; }
.bg-red-100 { background: #fee2e2; }
.hover\:bg-red-100:hover { background: #fee2e2; }
.text-red-700 { color: #b91c1c; }
.text-amber-800 { color: #92400e; }
.border-gray-300 { border-color: #d1d5db; }
.text-yellow-800 { color: #854d0e; }
.from-red-500 { --tw-gradient-from: #ef4444; }
.to-red-600 { --tw-gradient-to: #dc2626; }
.from-sky-500 { --tw-gradient-from: #0ea5e9; }
.to-sky-600 { --tw-gradient-to: #0284c7; }
.from-green-500 { --tw-gradient-from: #22c55e; }
.to-green-600 { --tw-gradient-to: #16a34a; }
.bg-gradient-to-br.from-red-500 {
  background-image: linear-gradient(135deg, #ef4444, #dc2626);
}
.bg-gradient-to-br.from-sky-500 {
  background-image: linear-gradient(135deg, #0ea5e9, #0284c7);
}
.bg-gradient-to-br.from-green-500 {
  background-image: linear-gradient(135deg, #22c55e, #16a34a);
}
.mr-2 { margin-right: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .transition { transition: none; }
}

