/* BitCommerce Console: the Tangram design system (copied unchanged into ./tangram) plus a few helpers. */
@layer theme, base, components, utilities;
@import './tangram/tokens/_primitives.css';
@import './tangram/tokens/_roles.css';
@import './tangram/tokens/_themes.css';
@import './tangram/tokens/_typography.css';
@import './tangram/tokens/_motion.css';
@import './tangram/tokens/_charts.css';
@import './tangram/tokens/_recipes.css';
@import './tangram/base.css';
@import './tangram/shell.css';
@import './tangram/nav.css';
@import './tangram/components.css';
@import './tangram/charts.css';
@import './tangram/utilities.css';

/* Brand: one line beside the menu (as in the BitCommerce admin). */
.c-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--tg-primary-ink);
  background: var(--tg-primary);
  border-radius: 10px;
}
.tg-island .tg-brand { gap: 8px; min-width: 0; }
.tg-island .tg-brand b { font-size: 17px; white-space: nowrap; }
.tg-brand small { display: block; font-size: 11px; font-weight: 600; color: var(--tg-ink-3); letter-spacing: .08em; text-transform: uppercase; }
.tg-island__top { flex-wrap: nowrap; justify-content: space-between; }

/* small layout helpers (the template takes these from Tailwind) */
.c-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.c-between { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.c-col { display: flex; flex-direction: column; gap: 14px; }
.c-grid { display: grid; gap: var(--tg-gutter); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.c-right { text-align: end; }
.c-mt { margin-top: 8px; }
.c-grow { flex: 1; }
.c-muted { color: var(--tg-ink-3); }
.c-small { font-size: var(--tg-text-xs); }
.c-pre { white-space: pre-line; }
.c-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--tg-line-2); text-underline-offset: 3px; }
.c-link:hover { text-decoration-color: currentColor; }
.c-num { font-variant-numeric: tabular-nums; }
.c-inline { display: inline; }
.c-empty { padding: 18px 4px; color: var(--tg-ink-3); }
.c-table td { white-space: normal; }
.c-table td.c-nw, .c-table th.c-nw { white-space: nowrap; }
.tg-table td a.c-link { white-space: nowrap; }
.c-big { font-family: var(--tg-font-display); font-size: var(--tg-text-4xl); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.c-hero { font-family: var(--tg-font-display); font-size: var(--tg-text-5xl); font-weight: 800; line-height: .95; letter-spacing: -0.04em; }
.c-lbl { font-size: var(--tg-text-2xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }

/* simple bar chart (collected per month) */
.c-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 120px; }
.c-bars div { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: flex-end; height: 100%; }
.c-bars i { display: block; width: 100%; min-height: 4px; background: var(--tg-ink); border-radius: 8px; opacity: .85; }
.c-bars span { font-size: 11px; font-weight: 700; }

/* forms */
textarea.tg-input { height: auto; min-height: 92px; padding: 12px 16px; resize: vertical; }
select.tg-input { appearance: auto; }
.c-form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.c-form .c-wide { grid-column: 1 / -1; }
.c-items { display: grid; gap: 8px; }
.c-item { display: grid; grid-template-columns: 1fr 160px 40px; gap: 8px; align-items: center; }
.tg-field__error { margin-top: 2px; }

/* the island footer: user + sign out */
.c-user { display: flex; gap: 8px; align-items: center; padding: 6px 4px 2px; border-top: 1px solid var(--tg-surface-2); }
.c-user .tg-user__text { min-width: 0; }

@media (max-width: 760px) {
  .tg-bento > * { grid-column: span 12; }
  .c-item { grid-template-columns: 1fr 110px 36px; }
}
