/* ==========================================================================
   AGENCYOS — Design System
   A calm, "studio-green" agency workspace. Tokens mirror the source
   Lazy Portal product design language exactly (oklch palette, Plus Jakarta
   Sans, dotted canvas, soft float shadows, lane-tinted status colors).
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap");

:root {
  --radius: 0.875rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  --canvas: oklch(0.955 0.008 130);
  --background: oklch(1 0 0);
  --surface: oklch(1 0 0);
  --surface-muted: oklch(0.972 0.008 130);
  --foreground: oklch(0.21 0.03 150);
  --card: oklch(1 0 0);

  --primary: oklch(0.5 0.14 152);
  --primary-foreground: oklch(0.99 0.01 130);
  --secondary: oklch(0.965 0.012 130);
  --secondary-foreground: oklch(0.28 0.04 150);
  --muted: oklch(0.968 0.008 130);
  --muted-foreground: oklch(0.58 0.02 150);
  --accent: oklch(0.94 0.09 128);
  --accent-foreground: oklch(0.35 0.1 150);
  --destructive: oklch(0.58 0.19 27);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.925 0.01 140);
  --input: oklch(0.925 0.01 140);
  --ring: oklch(0.72 0.19 128);

  --lane-violet: oklch(0.55 0.04 175);
  --lane-orange: oklch(0.74 0.19 128);
  --lane-clay: oklch(0.72 0.15 78);
  --lane-green: oklch(0.45 0.12 152);
  --lane-violet-soft: oklch(0.96 0.012 175);
  --lane-orange-soft: oklch(0.955 0.05 128);
  --lane-clay-soft: oklch(0.96 0.04 85);
  --lane-green-soft: oklch(0.955 0.03 152);
  --lane-red: oklch(0.58 0.19 27);
  --lane-red-soft: oklch(0.96 0.03 27);

  --sidebar: oklch(0.24 0.045 155);
  --sidebar-foreground: oklch(0.97 0.01 130);
  --sidebar-accent: oklch(0.31 0.055 155);

  --shadow-portal: 0 40px 90px -30px oklch(0.28 0.06 152 / 0.4);
  --shadow-float: 0 30px 60px -22px oklch(0.28 0.06 152 / 0.32);
  --shadow-card: 0 2px 10px -4px oklch(0.25 0.03 150 / 0.16);

  /* client brand overrides — reassigned per-client at runtime via theme.js */
  --brand-primary: var(--primary);
  --brand-primary-foreground: var(--primary-foreground);
  --brand-accent: var(--accent);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.45;
  overflow-x: clip; /* no page-level sideways scroll (inner rails keep their own); clip (not hidden) preserves sticky */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p { margin: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

.dotted-canvas {
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 14px 14px;
}
.scroll-slim { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.scroll-slim::-webkit-scrollbar { height: 8px; width: 8px; }
.scroll-slim::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

/* ---------------------------------- App shell ---------------------------------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--canvas);
}

/* Sidebar */
.sidebar {
  width: 236px;
  flex-shrink: 0;
  background: var(--sidebar);
  color: var(--sidebar-foreground);
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 30;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.sidebar-brand .mark {
  height: 32px; width: 32px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sidebar-brand .mark img { height: 100%; width: 100%; object-fit: cover; }
.sidebar-brand .name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.sidebar-brand .name .dot { color: var(--lane-orange); }
.sidebar-brand .sub { font-size: 10.5px; color: rgba(255,255,255,.45); margin-top: 1px; }

.side-label {
  margin: 22px 8px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: rgba(255,255,255,.42);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 10px; border: none; background: transparent;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.62); cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.side-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.side-link:hover { color: #fff; }
.side-link.active { color: #fff; background: var(--sidebar-accent); }
.side-link .count {
  margin-left: auto; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.14);
  padding: 1px 6px; border-radius: 6px;
}
.side-link.locked { opacity: .35; cursor: not-allowed; }

.sidebar-foot {
  margin-top: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05); padding: 12px;
}
.sidebar-foot .lbl { font-size: 12px; font-weight: 700; }
.sidebar-foot .val { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }
.sidebar-foot .bar { margin-top: 10px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.sidebar-foot .bar > span { display: block; height: 100%; border-radius: 99px; background: var(--lane-orange); }
.sidebar-user { display:flex; align-items:center; gap:8px; margin-top: 14px; padding: 8px; border-radius: 10px; }
.sidebar-user:hover { background: rgba(255,255,255,.06); }
.sidebar-user .initials { height: 30px; width: 30px; border-radius: 999px; background: var(--brand-primary,var(--primary)); color: var(--primary-foreground); display:flex; align-items:center; justify-content:center; font-size: 11px; font-weight: 700; flex-shrink:0; }
.sidebar-user .who { min-width:0; }
.sidebar-user .who .n { font-size: 12.5px; font-weight: 600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-user .who .r { font-size: 10.5px; color: rgba(255,255,255,.5); }
.sidebar-user .logout { margin-left:auto; color: rgba(255,255,255,.45); }
.sidebar-user .logout:hover { color:#fff; }

.mobile-topbar { display: none; }
.sidebar-scrim { display: none; }

/* Main column */
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

/* Topbar */
.topbar { border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 95%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.topbar-row { display: flex; align-items: center; gap: 12px; padding: 14px 24px; }
.crumb { font-size: 13px; color: var(--muted-foreground); }
.crumb b { color: var(--foreground); font-weight: 600; }
.topbar-search {
  display: flex; align-items: center; gap: 8px; width: 240px; padding: 8px 12px;
  border-radius: var(--radius-lg); border: 1px solid var(--border); color: var(--muted-foreground);
  background: var(--surface); cursor: pointer;
}
.topbar-search svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-search span { flex: 1; font-size: 12px; text-align: left; }
.topbar-search kbd { font-size: 10px; background: var(--surface-muted); padding: 2px 6px; border-radius: 6px; }
.icon-btn {
  height: 34px; width: 34px; border-radius: var(--radius-lg); border: 1px solid transparent; background: transparent;
  display: flex; align-items: center; justify-content: center; color: var(--muted-foreground); cursor: pointer; position: relative;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { color: var(--foreground); background: var(--surface-muted); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; height: 7px; width: 7px; border-radius: 999px; background: var(--lane-orange); border: 1.5px solid var(--surface); }
.avatar-btn {
  height: 30px; width: 30px; border-radius: 999px; background: var(--brand-primary,var(--primary)); color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: none; cursor: pointer;
}
.topbar-substrip { display: flex; align-items: center; gap: 12px; padding: 0 24px 14px; flex-wrap: wrap; }

.page-body { flex: 1; padding: 22px 24px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.page-head p { margin-top: 4px; font-size: 13px; color: var(--muted-foreground); }

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-lg); border: 1px solid transparent; padding: 9px 16px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--brand-primary,var(--primary)); color: var(--brand-primary-foreground,var(--primary-foreground)); box-shadow: var(--shadow-card); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-float); }
.btn-outline { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-card); }
.btn-outline:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { color: var(--foreground); background: var(--surface-muted); }
.btn-danger { background: var(--destructive); color: var(--destructive-foreground); }
.btn-sm { padding: 6px 11px; font-size: 11.5px; border-radius: var(--radius-md); }
.btn-icon-pill { height: 24px; width: 24px; border-radius: 999px; background: var(--brand-primary,var(--primary)); color: var(--brand-primary-foreground,var(--primary-foreground)); display:flex; align-items:center; justify-content:center; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* ---------------------------------- Cards / stats ---------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-xl);
  padding: 14px 16px; box-shadow: var(--shadow-card);
}
.stat-card .top { display:flex; align-items:center; justify-content:space-between; }
.stat-card .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.stat-card .ic { height: 28px; width: 28px; border-radius: 9px; display:flex; align-items:center; justify-content:center; }
.stat-card .ic svg { width: 14px; height: 14px; }
.stat-card .val { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.stat-card .delta { font-size: 11px; color: var(--muted-foreground); margin-top: 2px; }
.stat-card .delta.up { color: var(--lane-green); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.card-pad { padding: 18px; }
.card-head { display:flex; align-items:center; justify-content:space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 14px; font-weight: 700; }
.card-head .link { font-size: 12px; font-weight: 600; color: var(--brand-primary,var(--primary)); }

.section-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }

/* Activity / list rows */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row .ic { height: 32px; width: 32px; border-radius: 10px; flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.list-row .ic svg { width: 15px; height: 15px; }
.list-row .txt { min-width: 0; }
.list-row .txt p { font-size: 12.5px; font-weight: 600; }
.list-row .txt span { font-size: 11.5px; color: var(--muted-foreground); }
.list-row .time { margin-left: auto; font-size: 11px; color: var(--muted-foreground); flex-shrink: 0; }

/* ---------------------------------- Badges ---------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.badge svg { width: 11px; height: 11px; }
.badge.violet { background: var(--lane-violet-soft); color: var(--lane-violet); }
.badge.orange { background: var(--lane-orange-soft); color: color-mix(in oklab, var(--lane-orange) 70%, black 25%); }
.badge.clay { background: var(--lane-clay-soft); color: color-mix(in oklab, var(--lane-clay) 55%, black 30%); }
.badge.green { background: var(--lane-green-soft); color: var(--lane-green); }
.badge.red { background: var(--lane-red-soft); color: var(--lane-red); }
.badge.grey { background: var(--surface-muted); color: var(--muted-foreground); }
.badge.solid-green { background: var(--lane-green); color: #fff; }

/* ---------------------------------- Forms ---------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; }
.field .hint { font-size: 11px; color: var(--muted-foreground); font-weight: 400; }
.input, .select, textarea.input {
  width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg);
  padding: 9px 12px; font-size: 13px; transition: border-color .15s ease;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--brand-primary,var(--primary)); outline: none; }
textarea.input { resize: vertical; min-height: 76px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { height: 30px; width: 30px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; position: relative; }
.swatch.active { border-color: var(--foreground); }
.swatch.active::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 1px solid var(--border); }
.checkbox-row { display: flex; align-items: center; gap: 9px; padding: 9px 2px; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--brand-primary,var(--primary)); }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius-xl); padding: 26px; text-align: center; color: var(--muted-foreground);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand-primary, var(--primary)); background: var(--surface-muted); }
.dropzone svg { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--muted-foreground); }

/* ---------------------------------- Search / toolbar ---------------------------------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); padding: 8px 12px; min-width: 220px; }
.search-box svg { width: 14px; height: 14px; color: var(--muted-foreground); flex-shrink: 0; }
.search-box input { border: none; outline: none; background: transparent; font-size: 12.5px; width: 100%; }
.chip-group { display: flex; align-items: center; gap: 6px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.chip-group::-webkit-scrollbar { display: none; }
.chip { padding: 6px 12px; border-radius: var(--radius-md); font-size: 11.5px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; border:none; background:transparent; flex-shrink: 0; white-space: nowrap; }
.chip.active { background: var(--surface-muted); color: var(--foreground); }
.view-toggle { display:flex; gap:2px; border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 3px; }
.view-toggle button { height: 26px; width: 30px; border-radius: 8px; border: none; background: transparent; display:flex; align-items:center; justify-content:center; color: var(--muted-foreground); cursor: pointer; }
.view-toggle button.active { background: var(--surface-muted); color: var(--foreground); }
.view-toggle svg { width: 14px; height: 14px; }

/* ---------------------------------- Avatars ---------------------------------- */
.team-stack { display: flex; }
.team-stack .av {
  height: 24px; width: 24px; margin-left: -8px; border-radius: 999px; border: 2px solid var(--surface); color: #fff;
  font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: transform .15s ease;
}
.team-stack .av:first-child { margin-left: 0; }
.team-stack .av:hover { transform: translateY(-2px); }
.team-stack.md .av { height: 32px; width: 32px; font-size: 11px; margin-left: -10px; }
.t-violet { background: var(--lane-violet); } .t-orange { background: var(--lane-orange); }
.t-green { background: var(--lane-green); } .t-clay { background: var(--lane-clay); }

/* ---------------------------------- Kanban ---------------------------------- */
.board-wrap { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 14px; }
.lane { width: 258px; flex-shrink: 0; border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid transparent; display: flex; flex-direction: column; max-height: calc(100vh - 300px); transition: border-color .15s ease; }
.lane.drag-over { border-color: var(--brand-primary, var(--primary)); }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 11px 13px; color: #fff; }
.lane-head h2 { font-size: 12.5px; font-weight: 700; }
.lane-head .count { background: rgba(255,255,255,.28); font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 7px; }
.lane-head button { margin-left: auto; color: rgba(255,255,255,.85); background: none; border: none; cursor: pointer; display:flex; }
.lane-head svg { width: 15px; height: 15px; }
.lane-body { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.lane-add {
  height: 56px; border: 2px dashed var(--border); border-radius: var(--radius-lg); background: transparent;
  color: var(--muted-foreground); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.lane-add:hover { color: var(--foreground); border-color: var(--brand-primary,var(--primary)); }

.p-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px;
  box-shadow: var(--shadow-card); cursor: grab; transition: box-shadow .18s ease, transform .18s ease;
}
.p-card:hover { box-shadow: var(--shadow-float); transform: translateY(-2px); }
.p-card.selected { box-shadow: 0 0 0 2px var(--brand-primary,var(--primary)); }
.p-card header { display: flex; align-items: center; gap: 8px; }
.p-card .tint { height: 28px; width: 28px; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 800; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.p-card h3 { font-size: 12.5px; font-weight: 700; line-height:1.2; }
.p-card .brief { margin-top: 9px; font-size: 11.5px; color: var(--muted-foreground); line-height: 1.4; }
.p-card .meta3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--border); }
.p-card .meta3 p.k { font-size: 8.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-foreground); opacity:.8;}
.p-card .meta3 .v { margin-top: 4px; background: var(--surface-muted); border-radius: 6px; padding: 4px 4px; text-align: center; font-size: 9.5px; font-weight: 600; }
.p-card .paydot { display:flex; justify-content:center; margin-top:4px; }
.p-card .paydot span { height: 20px; width: 20px; border-radius: 999px; display:flex; align-items:center; justify-content:center; background: var(--muted); }
.p-card .paydot span.on { background: var(--lane-green); }
.p-card .paydot svg { width: 11px; height: 11px; color: #fff; }
.p-card .prog-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.p-card .prog-row span { font-size: 10px; font-weight: 600; color: var(--muted-foreground); }
.p-card .prog-row b { font-size: 10px; }
.dots { display: flex; gap: 2px; margin-top: 6px; flex-wrap: wrap; }
.dots i { height: 5px; width: 5px; border-radius: 999px; background: var(--border); display:block; }
.dots i.on { background: var(--lane-green); }
.p-card footer { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); }
.p-card footer .mini { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted-foreground); }
.p-card footer .mini svg { width: 12px; height: 12px; }

/* ---------------------------------- Table / list view ---------------------------------- */
.table-card { border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); }
.t-head { display: grid; gap: 10px; background: var(--surface-muted); padding: 11px 18px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-foreground); }
.t-row { display: grid; gap: 10px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--border); transition: background .15s ease; text-align: left; width: 100%; background: transparent; border-left:none;border-right:none;border-bottom:none; cursor: pointer; }
.t-row:hover { background: var(--surface-muted); }
.cell-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-title .tint { height: 28px; width: 28px; border-radius: 9px; color:#fff; font-size:11px; font-weight:800; display:flex;align-items:center;justify-content:center; flex-shrink:0; }
.cell-title .txt { min-width: 0; }
.cell-title .txt b { display:block; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.cell-title .txt span { display:block; font-size: 11px; color: var(--muted-foreground); white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.progress-cell { display: flex; align-items: center; gap: 8px; }
.progress-cell .bar { width: 80px; height: 6px; border-radius: 99px; background: var(--muted); overflow: hidden; }
.progress-cell .bar > span { display: block; height: 100%; border-radius: 99px; }

/* ---------------------------------- Modal ---------------------------------- */
.overlay {
  position: fixed; inset: 0; background: oklch(0.2 0.02 150 / 0.45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }
/* Belt-and-braces hide applied by JS ~one frame after every fade-out ends:
   even if a browser/GPU ever leaves a CSS transition stuck mid-flight, a
   closed overlay can never linger visibly (or eat clicks) on screen. */
.force-hide { display: none !important; }
.modal {
  background: var(--surface); border-radius: var(--radius-2xl); width: 100%; max-width: 520px; max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-portal); transform: translateY(14px) scale(.98); transition: transform .2s ease; border: 1px solid var(--border);
}
@supports (max-height: 88dvh) { .modal { max-height: 88dvh; } } /* keeps Cancel/Save reachable when a mobile keyboard shrinks the viewport */
.overlay.open .modal { transform: translateY(0) scale(1); }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border); position: sticky; top:0; background: var(--surface); z-index: 2;}
.modal-head h3 { font-size: 15px; font-weight: 700; }
.modal-head p { font-size: 11.5px; color: var(--muted-foreground); margin-top: 2px; }
.modal-head .x { margin-left: auto; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
/* ---------------------------------- Lightbox ---------------------------------- */
.lightbox-overlay .lightbox-box { position: relative; width: 100%; max-width: 980px; max-height: 90vh; max-height: 90dvh; background: transparent; box-shadow: none; border: none; display: flex; flex-direction: column; align-items: center; }
.lightbox-stage { width: 100%; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img { max-width: 100%; max-height: 78vh; max-height: 78dvh; object-fit: contain; border-radius: var(--radius-lg); box-shadow: var(--shadow-portal); background: var(--surface); }
.lightbox-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--surface); background: color-mix(in oklab, var(--surface) 12%, transparent); border-radius: var(--radius-lg); padding: 60px 40px; }
.lightbox-placeholder i { width: 34px; height: 34px; }
.lightbox-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 4px; color: var(--surface); font-size: 12.5px; }
.lightbox-close { position: absolute; top: -6px; right: -6px; background: var(--surface); z-index: 3; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: var(--surface); z-index: 3; }
.lightbox-prev { left: -6px; }
.lightbox-next { right: -6px; }
@media (max-width: 640px) { .lightbox-close, .lightbox-nav { background: color-mix(in oklab, var(--surface) 92%, transparent); } .lightbox-prev { left: 4px; } .lightbox-next { right: 4px; } .lightbox-close { top: 4px; right: 4px; } }

.cdr-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cdr-gallery-tile { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--surface-2); }
.cdr-gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.cdr-gallery-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 20px; }
.tab { padding: 10px 4px; margin-right: 18px; font-size: 12.5px; font-weight: 600; color: var(--muted-foreground); border-bottom: 2px solid transparent; cursor: pointer; background:none; border-top:none; border-left:none;border-right:none; }
.tab.active { color: var(--foreground); border-color: var(--brand-primary, var(--primary)); }

/* ---------------------------------- Dropdown / notif panel ---------------------------------- */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 320px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-float); z-index: 60; display: none; overflow: hidden;
}
.dropdown-panel.open { display: block; }
.dropdown-panel .dh { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.dropdown-panel .dh h4 { font-size: 13px; font-weight: 700; }
.dropdown-panel .dh a { font-size: 11px; font-weight: 600; color: var(--brand-primary,var(--primary)); }
.notif-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border: none; }
.notif-item .ic { height: 28px; width: 28px; border-radius: 8px; flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.notif-item .ic svg { width: 13px; height: 13px; }
.notif-item p { font-size: 12px; font-weight: 600; }
.notif-item span { font-size: 10.5px; color: var(--muted-foreground); }
.notif-item.unread { background: var(--surface-muted); }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); z-index: 60; display:none; padding: 6px; }
.user-menu.open { display:block; }
.user-menu a, .user-menu button { display:flex; align-items:center; gap:8px; width:100%; padding:8px 10px; border-radius:8px; font-size:12.5px; font-weight:500; background:none;border:none;text-align:left;cursor:pointer; }
.user-menu a:hover, .user-menu button:hover { background: var(--surface-muted); }
.user-menu svg { width:14px;height:14px; }

/* ---------------------------------- Toast ---------------------------------- */
#toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items:center; }
.toast {
  display: flex; align-items: center; gap: 8px; background: var(--foreground); color: var(--background); padding: 10px 16px;
  border-radius: var(--radius-lg); font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-float); animation: toast-in .25s ease;
}
.toast svg { width: 14px; height: 14px; color: var(--lane-orange); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.toast.leave { animation: toast-out .18s ease forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------------------------------- Detail drawer ---------------------------------- */
.drawer-scrim { position: fixed; inset: 0; background: oklch(0.2 0.02 150 / 0.35); z-index: 89; opacity:0; pointer-events:none; transition:opacity .2s ease; }
.drawer-scrim.open { opacity:1; pointer-events:auto; }
.drawer {
  position: fixed; right: 0; top: 0; height: 100vh; width: 360px; max-width: 92vw; background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-portal); z-index: 90; padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .25s cubic-bezier(.2,.9,.3,1);
}
.drawer.open { transform: translateX(0); }
.drawer-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.drawer-grid2 .box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px; }
.drawer-grid2 .box .k { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-foreground); }
.drawer-grid2 .box .v { font-size: 13px; font-weight: 700; margin-top: 3px; }
.stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.stage-btn { padding: 8px; border-radius: 10px; font-size: 11px; font-weight: 700; border: none; cursor: pointer; }
.stage-btn.ring { box-shadow: 0 0 0 2px var(--brand-primary,var(--primary)); }

/* ---------------------------------- Login pages ---------------------------------- */
.auth-page { min-height: 100vh; display: flex; }
.auth-side {
  flex: 1; background: var(--sidebar); color: var(--sidebar-foreground); display: flex; flex-direction: column;
  justify-content: space-between; padding: 44px; position: relative; overflow: hidden;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 16px 16px;
}
.auth-side > * { position: relative; }
.auth-side h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; max-width: 380px; line-height: 1.2; margin-top: 30px;}
.auth-side p.tag { color: rgba(255,255,255,.6); margin-top: 12px; max-width: 340px; font-size: 13.5px; }
.auth-stat-row { display: flex; gap: 22px; }
.auth-stat-row div b { font-size: 20px; font-weight: 800; display:block; }
.auth-stat-row div span { font-size: 11px; color: rgba(255,255,255,.55); }
.auth-form-col { width: 460px; max-width: 100%; display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--surface); }
.auth-card { width: 100%; max-width: 340px; }
.auth-card .lock { height: 44px; width: 44px; border-radius: 12px; background: var(--brand-primary,var(--primary)); color: var(--brand-primary-foreground,var(--primary-foreground)); display:flex; align-items:center; justify-content:center; margin-bottom: 18px; }
.auth-card h2 { font-size: 20px; font-weight: 800; }
.auth-card p.sub { font-size: 12.5px; color: var(--muted-foreground); margin-top: 4px; margin-bottom: 22px; }
.role-toggle { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 20px; }
.role-toggle button { flex: 1; padding: 8px; border-radius: 9px; font-size: 12px; font-weight: 700; background: none; border: none; color: var(--muted-foreground); cursor:pointer; }
.role-toggle button.active { background: var(--surface-muted); color: var(--foreground); }
.auth-demo-list { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 14px; }
.auth-demo-list p { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-foreground); margin-bottom: 8px; }
.demo-pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 6px; cursor: pointer; text-align: left;}
.demo-pick:hover { border-color: var(--brand-primary,var(--primary)); }
.demo-pick .sw { height: 22px; width: 22px; border-radius: 7px; flex-shrink: 0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:10px; font-weight:800;}
.demo-pick b { font-size: 12px; display:block; }
.demo-pick span { font-size: 10.5px; color: var(--muted-foreground); }
.error-msg { font-size: 11.5px; color: var(--destructive); margin-top: -6px; margin-bottom: 12px; display:none; }
.error-msg.show { display:block; }

/* Empty states */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted-foreground); }
.empty-state svg { width: 34px; height: 34px; margin: 0 auto 12px; opacity: .5; }
.empty-state p.t { font-size: 13.5px; font-weight: 700; color: var(--foreground); }
.empty-state p.s { font-size: 12px; margin-top: 4px; }

/* Message / chat */
.thread-shell { display: grid; grid-template-columns: 260px 1fr; gap: 14px; height: calc(100vh - 180px); min-height: 480px; }
.thread-list { border: 1px solid var(--border); border-radius: var(--radius-xl); overflow-y: auto; background: var(--surface); }
.thread-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.thread-item:hover, .thread-item.active { background: var(--surface-muted); }
.thread-item .tint { height: 32px; width: 32px; border-radius: 10px; color:#fff; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.thread-item b { font-size: 12.5px; display:block; }
.thread-item span { font-size: 11px; color: var(--muted-foreground); display:block; margin-top:2px; white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.thread-panel { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
.thread-panel .th { padding: 14px 18px; border-bottom: 1px solid var(--border); display:flex; align-items:center; gap: 10px; }
.thread-panel .th b { font-size: 13.5px; }
.thread-panel .th span { font-size: 11px; color: var(--muted-foreground); display:block; }
.thread-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; max-width: 78%; }
.msg .b { height: 28px; width: 28px; border-radius: 999px; flex-shrink:0; color:#fff; font-size:10.5px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.msg .bubble { background: var(--surface-muted); border-radius: var(--radius-lg); padding: 9px 13px; font-size: 12.5px; }
.msg .meta { font-size: 10px; color: var(--muted-foreground); margin-top: 4px; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--brand-primary,var(--primary)); color: var(--brand-primary-foreground,var(--primary-foreground)); }
.thread-input { border-top: 1px solid var(--border); padding: 12px; display: flex; gap: 8px; align-items:center; }
.thread-input input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 14px; font-size: 12.5px; }

/* Asset grid */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px,1fr)); gap: 12px; }
.asset-tile { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-card); cursor: pointer; transition: box-shadow .15s ease, transform .15s ease;}
.asset-tile:hover { box-shadow: var(--shadow-float); transform: translateY(-2px); }
.asset-thumb { height: 100px; display: flex; align-items: center; justify-content: center; }
.asset-thumb svg { width: 30px; height: 30px; }
.asset-meta { padding: 9px 10px; border-top: 1px solid var(--border); }
.asset-meta b { font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-meta span { font-size: 10px; color: var(--muted-foreground); }
.folder-rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; }
.folder-chip { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 600; white-space:nowrap; cursor:pointer; }
.folder-chip.active { background: var(--brand-primary,var(--primary)); color: var(--brand-primary-foreground,var(--primary-foreground)); border-color: transparent; }
.folder-chip svg { width: 14px; height: 14px; }

/* Social content cards */
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }
.social-card { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-card); }
.social-card .shot { height: 130px; display: flex; align-items:center; justify-content:center; position: relative; }
.social-card .shot .plat { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); color: #fff; height: 24px; width: 24px; border-radius: 7px; display:flex; align-items:center; justify-content:center; }
.social-card .shot .plat svg { width: 13px; height: 13px; }
.social-card .body { padding: 12px; }
.social-card .cap { font-size: 12px; color: var(--muted-foreground); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.social-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.social-card .foot span { font-size: 10.5px; color: var(--muted-foreground); }

/* Approvals */
.approval-card { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); padding: 14px; box-shadow: var(--shadow-card); }
.approval-card .top { display:flex; gap: 10px; align-items: center; }
.approval-card .top .ic { height: 34px; width: 34px; border-radius: 10px; flex-shrink:0; display:flex; align-items:center; justify-content:center;}
.approval-card .actions { display: flex; gap: 8px; margin-top: 12px; }
.comment-box { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.comment-item { font-size: 11.5px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-item b { font-weight: 700; }

/* Doc / report rows */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.doc-row:last-child { border-bottom: none; }
.doc-row .info { min-width: 0; flex: 1; }
.doc-row .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-row .right { flex-shrink: 0; }
.doc-row .ic { height: 36px; width: 36px; border-radius: 10px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.doc-row .info b { font-size: 12.5px; display:block; }
.doc-row .info span { font-size: 11px; color: var(--muted-foreground); }
.doc-row .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav button { text-align:left; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted-foreground); background: none; border: none; cursor: pointer; }
.settings-nav button.active { background: var(--surface); color: var(--foreground); box-shadow: var(--shadow-card); }
.settings-panel { display: none; }
.settings-panel.active { display: block; }

/* Staff row */
.staff-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.staff-row:last-child { border-bottom: none; }

/* Utility */
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-18 { margin-top: 18px; } .mb-0 { margin-bottom:0; }
.text-muted { color: var(--muted-foreground); } .flex-1 { flex: 1; } .w-full { width: 100%; }
.hidden { display: none !important; }
.brand-txt { color: var(--brand-primary, var(--primary)); }

/* WhatsApp contact float (all portal pages) */
#wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  height: 48px; width: 48px; border-radius: 999px;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-float); transition: transform .15s ease;
}
#wa-float:hover { transform: translateY(-2px); }
#wa-float svg { width: 24px; height: 24px; }

/* Milestone timeline (project drawers) */
.tl-rail { display: flex; align-items: flex-start; gap: 0; margin-top: 12px; }
.tl-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; text-align: center; }
.tl-step::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: var(--border); }
.tl-step:first-child::before { display: none; }
.tl-step.done::before { background: var(--lane-green); }
.tl-dot { height: 12px; width: 12px; border-radius: 999px; background: var(--surface); border: 2px solid var(--border); position: relative; z-index: 1; }
.tl-step.done .tl-dot { background: var(--lane-green); border-color: var(--lane-green); }
.tl-step.now .tl-dot { border-color: var(--brand-primary, var(--primary)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-primary, var(--primary)) 25%, transparent); }
.tl-lab { font-size: 9.5px; font-weight: 700; color: var(--muted-foreground); line-height: 1.2; }
.tl-step.now .tl-lab { color: var(--foreground); }

/* Keyboard navigation focus */
.kb-focus { outline: 2px solid var(--brand-primary, var(--primary)) !important; outline-offset: 2px; }

/* Onboarding checklist */
.onboard-step { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.onboard-step:last-child { border-bottom: none; }
.onboard-step .tick { height: 22px; width: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--surface-muted); color: var(--muted-foreground); }
.onboard-step.done .tick { background: var(--lane-green); color: #fff; }
.onboard-step.done span.lbl { color: var(--muted-foreground); text-decoration: line-through; }

/* Print: reports and summaries come out clean on paper */
@media print {
  .sidebar, .mobile-topbar, .topbar, .toolbar, .page-head button, .modal-foot, .cmdk-overlay, #toast-root, .drawer-scrim, .upsell-card,
  .overlay, .drawer, .cmdk-box, .maverix-modal-scrim, #wa-float { display: none !important; }
  .app-shell, .main-col, .page-body { display: block; min-height: 0; }
  .page-body { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .section-grid { grid-template-columns: 1fr; }
  .thread-shell { grid-template-columns: 220px 1fr; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-portal); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 29; opacity:0; pointer-events:none; transition: opacity .2s ease; }
  .sidebar-scrim.open { opacity: 1; pointer-events: auto; }
  .mobile-topbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top:0; z-index: 15; }
  .topbar-substrip { display: none; }
  .topbar-search { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .thread-shell { grid-template-columns: 1fr; height: auto; }
  .thread-list { max-height: 200px; }
  .auth-side { display: none; }
  .auth-form-col { width: 100%; }
}
@media (max-width: 620px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .page-body { padding: 16px; }
  .t-head { display: none; }
  .t-row { grid-template-columns: 1fr !important; gap: 6px; }
}
