/* LaborMig — design system v1
   Folosim un CSS scris de la zero, modern, fara dependente. Optim pentru
   shared hosting (un singur fisier cacheable). */

:root {
  /* Brand */
  --brand-50:  #effaf3;
  --brand-100: #d8f3e0;
  --brand-200: #b1e4c2;
  --brand-300: #82cea0;
  --brand-400: #4eb27f;
  --brand-500: #2c9763;
  --brand-600: #1c7a4e;
  --brand-700: #186040;
  --brand-800: #154d34;
  --brand-900: #11402c;

  /* Accent (deep blue) */
  --accent-50:  #eef3ff;
  --accent-100: #d9e2ff;
  --accent-200: #bbcaff;
  --accent-300: #91a8ff;
  --accent-400: #6379ff;
  --accent-500: #4256f5;
  --accent-600: #3540dc;
  --accent-700: #2c33b0;
  --accent-800: #262d8a;
  --accent-900: #1f2469;

  /* Neutrals */
  --gray-0:  #ffffff;
  --gray-50: #f8fafc;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-300:#cbd5e1;
  --gray-400:#94a3b8;
  --gray-500:#64748b;
  --gray-600:#475569;
  --gray-700:#334155;
  --gray-800:#1e293b;
  --gray-900:#0f172a;

  /* Semantic */
  --success: var(--brand-500);
  --warning: #d97706;
  --danger:  #dc2626;
  --info:    var(--accent-500);

  /* Layout */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow:    0 4px 12px rgba(15,23,42,0.06);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.10);

  --container: min(1200px, 92vw);
  --gutter: clamp(16px, 4vw, 32px);

  /* Typography */
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-display: "Inter", "Manrope", var(--font-body);

  /* Animation */
  --ease: cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
svg { display: inline-block; vertical-align: -.1em; flex-shrink: 0; width: 1em; height: 1em; }

/* Tailwind-style size classes used inline by templates */
.w-3 { width: .75rem; }   .h-3 { height: .75rem; }
.w-4 { width: 1rem; }     .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }  .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }   .h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }     .h-8 { height: 2rem; }

a { color: var(--brand-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-500); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--gray-900); margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: var(--container); margin: 0 auto; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); color: var(--gray-0); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-700); color: var(--gray-0); }
.btn-accent { background: var(--accent-600); color: var(--gray-0); box-shadow: var(--shadow); }
.btn-accent:hover { background: var(--accent-700); color: var(--gray-0); }
.btn-secondary { background: var(--gray-0); color: var(--gray-800); border-color: var(--gray-200); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--gray-50); color: var(--gray-900); border-color: var(--gray-300); }
.btn-ghost { background: transparent; color: var(--gray-700); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 1em; height: 1em; }

.btn-icon { padding: .55rem; }

/* ----- forms ----- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 220px; }
label { font-weight: 500; color: var(--gray-700); font-size: .92rem; }
.label-hint { font-weight: 400; color: var(--gray-500); margin-left: .35rem; font-size: .82rem; }

.input, .select, .textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; color: var(--gray-900);
  background: var(--gray-0);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(44,151,99,.12); }
.textarea { min-height: 100px; resize: vertical; line-height: 1.45; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: .15rem; }
.field-help { color: var(--gray-500); font-size: .82rem; }

.checkbox, .radio {
  display: inline-flex; align-items: flex-start; gap: .55rem; cursor: pointer;
  padding: .35rem 0; font-weight: 400;
}
.checkbox input, .radio input { width: 1.05rem; height: 1.05rem; accent-color: var(--brand-600); margin-top: 2px; }

/* ----- cards / surfaces ----- */
.card {
  background: var(--gray-0);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card-flush { padding: 0; overflow: hidden; }
.card-title { font-size: 1.1rem; font-weight: 600; color: var(--gray-900); margin: 0 0 .5rem; }
.card-subtle { color: var(--gray-500); font-size: .9rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.kpi { background: var(--gray-0); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; }
.kpi-label { color: var(--gray-500); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.kpi-value { font-size: 1.85rem; font-weight: 700; color: var(--gray-900); margin-top: .25rem; line-height: 1.1; }
.kpi-foot { color: var(--gray-500); font-size: .85rem; margin-top: .25rem; }

/* ----- badges / pills ----- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .15rem .55rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600;
  background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200);
  white-space: nowrap;
}
.badge-success { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.badge-warning { background: #fff7ed; color: #b45309; border-color: #fed7aa; }
.badge-danger  { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.badge-info    { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-100); }
.badge-pulse::before { content: ""; width: .45rem; height: .45rem; background: currentColor; border-radius: 50%; animation: pulse 1.6s infinite ease-out; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.85); } 60% { opacity: .15; transform: scale(1.6); } 100% { opacity: 0; transform: scale(1.8); } }

/* ----- tables ----- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.table th, .table td { padding: .85rem .9rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.table th { color: var(--gray-500); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; background: var(--gray-50); }
.table tr:hover td { background: var(--gray-50); }
.table-empty { padding: 2.5rem 1rem; text-align: center; color: var(--gray-500); }

/* ----- alerts / flash ----- */
.alert { padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid; display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.alert-success { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.alert-error   { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.alert-warning { background: #fff7ed; color: #b45309; border-color: #fdba74; }
.alert-info    { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-200); }

/* ----- nav (public) ----- */
.nav-public {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-public .container { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--gray-900); }
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a { padding: .5rem .8rem; border-radius: var(--radius-sm); color: var(--gray-700); font-weight: 500; font-size: .92rem; }
.nav-links a:hover { background: var(--gray-100); color: var(--gray-900); }

/* ----- hero ----- */
.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 6vw, 4rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 100% -10%, rgba(44,151,99,.18), transparent 60%),
    radial-gradient(700px 300px at -5% 30%, rgba(66,86,245,.13), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200); font-size: .82rem; font-weight: 600; margin-bottom: 1rem; }
.hero-cta { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-badges { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-illustration { position: relative; }

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ----- sections ----- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3rem) 0; }
.section-alt { background: var(--gray-0); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-dark { background: linear-gradient(135deg, var(--gray-900) 0%, var(--accent-900) 100%); color: var(--gray-100); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: white; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow { color: var(--brand-600); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 700; }
.section-head p { color: var(--gray-600); margin-top: .5rem; }

/* ----- audience cards ----- */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.audience-card {
  background: var(--gray-0);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.audience-card .icon-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.audience-card h3 { margin: 0; }
.audience-card p { color: var(--gray-600); margin: 0; }

/* ----- step list ----- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { background: var(--gray-0); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 1.4rem; position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 1rem; right: 1.1rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--brand-100); }
.step h4 { margin: 0; color: var(--gray-900); }
.step p { margin: .35rem 0 0; color: var(--gray-600); }

/* ----- feature grid ----- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.feature { display: flex; gap: .9rem; padding: 1.1rem; background: var(--gray-0); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.feature .icon-wrap { flex: 0 0 auto; width: 38px; height: 38px; background: var(--accent-50); color: var(--accent-700); border-radius: 10px; display: grid; place-items: center; }
.feature h4 { margin: 0 0 .2rem; }
.feature p { color: var(--gray-600); margin: 0; font-size: .92rem; }

/* ----- compliance strip ----- */
.compliance { background: var(--gray-0); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 1.4rem 1.7rem; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; justify-content: center; }
.compliance .law { font-weight: 600; color: var(--gray-700); display: inline-flex; gap: .4rem; align-items: center; }
.compliance .law svg { color: var(--brand-600); }

/* ----- pricing ----- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.pricing-block { background: var(--gray-0); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); overflow: hidden; }
.pricing-block-head { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }
.pricing-block-head h3 { margin: 0; }
.pricing-plans { padding: 1rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.pricing-plan { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem 0; border-bottom: 1px dashed var(--gray-200); gap: 1rem; }
.pricing-plan:last-child { border-bottom: 0; }
.pricing-plan .name { font-weight: 600; color: var(--gray-900); }
.pricing-plan .scope { color: var(--gray-500); font-size: .82rem; }
.pricing-plan .price { font-weight: 700; color: var(--brand-700); }

/* ----- faq ----- */
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { background: var(--gray-0); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1rem 1.2rem; }
.faq-item summary { font-weight: 600; color: var(--gray-900); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::after { content: "+"; color: var(--gray-500); font-size: 1.2rem; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-item p { margin: .8rem 0 0; color: var(--gray-600); }

/* ----- footer ----- */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 3.5rem 0 1.5rem; }
.footer h4 { color: white; font-size: .95rem; margin: 0 0 .8rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer a { color: var(--gray-400); display: block; padding: .25rem 0; }
.footer a:hover { color: white; }
.footer-brand .brand { color: white; }
.footer-brand p { color: var(--gray-400); max-width: 400px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-700); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--gray-500); font-size: .85rem; }
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ----- app shell (authenticated) ----- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.app-aside { background: var(--gray-900); color: var(--gray-300); padding: 1.2rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-aside .brand { color: white; padding: .25rem .5rem 1.2rem; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--gray-400); font-weight: 500; }
.app-nav a:hover { background: rgba(255,255,255,.05); color: white; }
.app-nav a.active { background: rgba(255,255,255,.08); color: white; }
.app-nav-section { margin-top: 1.4rem; padding: 0 .75rem .25rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-500); }
.app-aside-foot { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; gap: .65rem; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-600); color: white; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: 0 0 auto; }

.app-main { padding: 1.6rem clamp(1rem, 3vw, 2.5rem) 4rem; max-width: 1400px; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; }
.app-topbar h1 { font-size: 1.6rem; margin: 0; }
.app-topbar .actions { display: flex; gap: .5rem; align-items: center; }

.crumbs { color: var(--gray-500); font-size: .85rem; margin-bottom: .35rem; display: flex; gap: .35rem; align-items: center; }
.crumbs a { color: var(--gray-500); }
.crumbs a:hover { color: var(--brand-600); }

@media (max-width: 880px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-aside { position: static; height: auto; padding: 1rem; }
  .app-nav { flex-direction: row; flex-wrap: wrap; }
  .app-aside-foot { display: none; }
}

/* ----- pipeline kanban ----- */
.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.kanban-col { background: var(--gray-100); border-radius: var(--radius-lg); padding: 1rem; min-height: 50vh; }
.kanban-col h4 { margin: 0 0 .8rem; display: flex; justify-content: space-between; }
.kanban-col h4 .count { background: var(--gray-200); padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--gray-700); }
.kanban-card { background: var(--gray-0); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow-sm); margin-bottom: .65rem; cursor: pointer; }
.kanban-card:hover { box-shadow: var(--shadow); }
.kanban-card .name { font-weight: 600; color: var(--gray-900); }
.kanban-card .occ { color: var(--gray-500); font-size: .82rem; }

/* ----- assistant widget ----- */
.assistant-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  color: white; display: grid; place-items: center;
  box-shadow: 0 14px 30px rgba(28,122,78,.45);
  border: 0; cursor: pointer; transition: transform .2s var(--ease);
}
.assistant-fab:hover { transform: translateY(-2px); }
.assistant-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 60;
  width: min(380px, 92vw); height: min(560px, 80vh);
  background: var(--gray-0); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
}
.assistant-panel[open] { display: flex; }
.assistant-head { padding: 1rem 1.2rem; background: linear-gradient(135deg, var(--brand-600), var(--accent-600)); color: white; display: flex; justify-content: space-between; align-items: center; }
.assistant-head .title { font-weight: 600; }
.assistant-body { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; }
.assistant-msg { padding: .55rem .85rem; border-radius: var(--radius); max-width: 85%; line-height: 1.45; font-size: .92rem; }
.assistant-msg.user { align-self: flex-end; background: var(--accent-600); color: white; }
.assistant-msg.bot { align-self: flex-start; background: var(--gray-100); color: var(--gray-800); }
.assistant-msg.bot .src { display: block; font-size: .8rem; color: var(--gray-500); margin-top: .4rem; padding-top: .4rem; border-top: 1px dashed var(--gray-300); }
.assistant-foot { padding: .8rem; border-top: 1px solid var(--gray-200); display: flex; gap: .4rem; }
.assistant-foot input { flex: 1; padding: .55rem .8rem; border: 1px solid var(--gray-200); border-radius: var(--radius); font: inherit; }
.assistant-foot input:focus { outline: none; border-color: var(--brand-500); }
.assistant-foot button { padding: 0 .85rem; border-radius: var(--radius); border: 0; background: var(--brand-600); color: white; cursor: pointer; }

/* ----- chips for filters ----- */
.chip { display: inline-flex; padding: .35rem .65rem; border-radius: 999px; background: var(--gray-100); color: var(--gray-700); font-size: .82rem; font-weight: 500; cursor: pointer; border: 1px solid transparent; }
.chip:hover { background: var(--gray-200); }
.chip.is-active { background: var(--brand-600); color: white; }

/* ----- utilities ----- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-sm { font-size: .88rem; }
.text-xs { font-size: .78rem; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--brand-600); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.divider { height: 1px; background: var(--gray-200); margin: 1.2rem 0; }

.skeleton { background: linear-gradient(90deg, var(--gray-100), var(--gray-200), var(--gray-100)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* htmx visual feedback */
.htmx-indicator { opacity: 0; transition: opacity .2s var(--ease); }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* ----- progress ----- */
.progress { height: 8px; border-radius: 999px; background: var(--gray-200); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-500); transition: width .3s var(--ease); }

/* ----- cookie banner ----- */
.cookie-bar {
  position: fixed; left: 1rem; bottom: 1rem; right: 1rem; z-index: 50;
  background: var(--gray-900); color: var(--gray-100);
  padding: 1rem 1.2rem; border-radius: var(--radius-lg);
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.cookie-bar p { margin: 0; max-width: 720px; }
.cookie-bar .actions { display: flex; gap: .5rem; }

/* ----- print ----- */
@media print {
  .nav-public, .footer, .app-aside, .assistant-fab, .assistant-panel, .cookie-bar { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  body { background: white; }
}
