/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin"],"variable":"--font-inter"}],"variableName":"inter"} ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Inter_Fallback_f367f3';src: local("Arial");ascent-override: 90.49%;descent-override: 22.56%;line-gap-override: 0.00%;size-adjust: 107.06%
}.__className_f367f3 {font-family: '__Inter_f367f3', '__Inter_Fallback_f367f3';font-style: normal
}.__variable_f367f3 {--font-inter: '__Inter_f367f3', '__Inter_Fallback_f367f3'
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ============================================================
   EcoWise Design Tokens — single source of truth for the UI.
   All components reference these variables; never raw hex.
   ============================================================ */
:root {
  /* Brand colours */
  --brand-orange: #cc5424;
  --brand-teal:   #3c8478;
  --brand-green:  #84b430;
  --brand-forest: #0a2a1f;
  --ink:          #23423a;
  --muted:        #6e8079;
  --line:         #dce7e1;
  --paper:        #f3f7f5;
  --card:         #ffffff;

  /* Derived tones */
  --teal-dark:    #2e6860;
  --teal-soft:    #e8f2f0;
  --green-soft:   #eef5de;
  --forest-2:     #103d2c;
  --forest-soft:  #e2edea;
  --orange-soft:  #fce9e0;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(10,42,31,.06), 0 1px 1px rgba(10,42,31,.04);
  --sh-2: 0 4px 16px rgba(10,42,31,.08), 0 2px 6px rgba(10,42,31,.05);

  /* Shape */
  --r:    10px;
  --r-sm: 6px;

  /* Mono font stack */
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; }

/* ============================================================
   Base
   ============================================================ */
body {
  font-family: var(--font-inter), -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

nav + main { padding-top: 0; }

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

/* ============================================================
   Forms
   ============================================================ */
form { display: flex; flex-direction: column; gap: 1.25rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; }

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="search"],
select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-family: inherit;
  width: 100%;
  max-width: 480px;
  background: var(--card);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
select:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(60,132,120,.14);
}

input[type="file"] { font-size: 0.875rem; color: var(--muted); }

fieldset, details {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  background: var(--card);
}

legend, summary {
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--ink);
}

fieldset label, details label {
  font-weight: normal;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0;
}

/* ============================================================
   Buttons (base — components override as needed)
   ============================================================ */
button[type="submit"] {
  align-self: flex-start;
  padding: 0.55rem 1.4rem;
  background: var(--brand-teal);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}

button[type="submit"]:hover:not(:disabled) { background: var(--teal-dark); }

button[type="submit"]:disabled {
  background: var(--muted);
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================
   Utility classes
   ============================================================ */
/* ============================================================
   Article body — rendered Markdown prose
   ============================================================ */
.article-body {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.6rem;
  color: var(--ink);
}
.article-body h1 { font-size: 1.6rem; }
.article-body h2 { font-size: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; }
.article-body h3 { font-size: 1rem; }
.article-body h4 { font-size: 0.9rem; }

.article-body p { margin: 0.6rem 0; }

.article-body a { color: var(--brand-teal); text-decoration: underline; }

.article-body ul,
.article-body ol {
  margin: 0.5rem 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.article-body li > ul,
.article-body li > ol { margin: 0.2rem 0; }

.article-body blockquote {
  border-left: 3px solid var(--brand-teal);
  padding: 0.25rem 0.85rem;
  margin: 0.75rem 0;
  color: var(--muted);
  font-style: italic;
}

.article-body code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--teal-soft);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.article-body pre {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
}
.article-body pre code { background: none; padding: 0; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0.75rem 0;
}
.article-body thead th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}
.article-body tbody td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-body tbody tr:last-child td { border-bottom: none; }

.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}

/* SVG diagrams — rendered via dangerouslySetInnerHTML wrapper */
.article-svg { margin: 1.25rem 0; line-height: 0; }
.article-svg svg { max-width: 100%; height: auto; display: block; }

/* ============================================================
   Tag pills (article category tags)
   ============================================================ */
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.tag-pill--regulation {
  background: var(--teal-soft);
  color: var(--brand-teal);
  border: 1px solid rgba(60,132,120,.25);
}
.tag-pill--standard {
  background: var(--forest-soft);
  color: var(--brand-forest);
  border: 1px solid rgba(10,42,31,.2);
}
.tag-pill--sector {
  background: var(--orange-soft);
  color: var(--brand-orange);
  border: 1px solid rgba(204,84,36,.2);
}
.tag-pill--region {
  background: var(--green-soft);
  color: #5a7a1a;
  border: 1px solid rgba(132,180,48,.3);
}
.tag-pill--domain {
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ============================================================
   Article hub cards
   ============================================================ */

/* Wrapper link — no underline, block display */
.article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.article-card-link:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
  border-radius: var(--r);
}

.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  padding: 1.1rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  transition: box-shadow .15s, border-color .15s;
}
.article-card-link:hover .article-card {
  box-shadow: var(--sh-2);
  border-color: rgba(60,132,120,.35);
}

.article-card--locked {
  background: var(--paper);
  opacity: 0.9;
}

/* Top row: badge + pills */
.article-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.4rem;
}

/* "Updated" badge */
.article-card-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--green-soft);
  color: #3a6010;
  border: 1px solid rgba(132,180,48,.3);
  flex-shrink: 0;
}

/* Override tag-pills margin inside cards */
.article-card-top .tag-pills { margin-bottom: 0; }

/* Title */
.article-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.article-card--locked .article-card-title { color: var(--muted); }

/* Lock icon */
.article-card-lock {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--muted);
}

/* Snippet */
.article-card-snippet {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1;
}

.article-card-snippet--blurred {
  filter: blur(4px);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: none;
  -webkit-line-clamp: 2;
}

/* Footer */
.article-card-footer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
  flex-wrap: wrap;
}

.article-card-footer--locked {
  justify-content: space-between;
}

.article-card-dot { opacity: 0.5; }

/* Package label in locked footer */
.article-card-package {
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}

/* Unlock button */
.article-card-unlock-btn {
  padding: 0.3rem 0.85rem;
  background: var(--brand-forest);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.article-card-unlock-btn:hover { background: var(--forest-2); }

/* Annex block (Links to Standards & Regulations) — hidden in print */
.article-annex { margin-top: 2rem; }

.article-annex-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem !important;
}

/* Collapsible section */
.collapsible-section {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.collapsible-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}

.collapsible-toggle:hover { background: var(--teal-soft); }
.collapsible-toggle:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: -2px;
}

.collapsible-icon {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--brand-teal);
  line-height: 1;
  flex-shrink: 0;
  margin-left: 0.75rem;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.collapsible-body {
  padding: 0.85rem 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--card);
}

/* ============================================================
   Print / PDF export
   ============================================================ */
@media print {
  nav,
  .no-print { display: none !important; }

  body { background: #fff; }

  main {
    max-width: 100%;
    padding: 0;
  }

  .article-body { font-size: 11pt; line-height: 1.6; }
  .article-body h2 { border-bottom: 1px solid #ccc; }
  .article-body svg { page-break-inside: avoid; break-inside: avoid; }
  .article-body table { page-break-inside: avoid; break-inside: avoid; }
}

.required { color: var(--brand-orange); }
.error    { color: #b0271d; font-size: 0.875rem; margin-top: 0.25rem; }
.success  { color: var(--brand-teal);   font-weight: 500; margin-top: 0.5rem; }

/* ============================================================
   Card
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  padding: 1.5rem;
}

/* ============================================================
   Table
   ============================================================ */
.ew-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ew-table thead tr {
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}

.ew-table thead th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ew-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background .1s;
}

.ew-table tbody tr:last-child { border-bottom: none; }

.ew-table tbody tr:hover { background: var(--teal-soft); }

.ew-table tbody td {
  padding: 0.7rem 1rem;
  color: var(--ink);
  vertical-align: middle;
}

/* ───────────────────────────────────────────────
   EcoWise admin/expert page utilities
─────────────────────────────────────────────── */

.ew-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.ew-page-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}

.ew-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.ew-page-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.ew-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--sh-1);
}

.ew-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.ew-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.ew-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ew-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.ew-input {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.ew-input:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(60,132,120,0.12);
}

.ew-input::placeholder { color: var(--muted); opacity: 0.7; }

.ew-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  background: #fff;
  color: var(--ink);
}

.ew-btn--primary {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
}

.ew-btn--primary:hover:not(:disabled) {
  background: var(--brand-forest);
  border-color: var(--brand-forest);
}

.ew-btn--primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.ew-btn--danger {
  border-color: #c0392b;
  color: #c0392b;
  background: #fff;
}

.ew-btn--danger:hover:not(:disabled) {
  background: #fdf0ee;
}

.ew-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.ew-badge {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--brand-teal);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.ew-count-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.ew-form-error {
  font-size: 0.82rem;
  color: #c0392b;
  align-self: center;
}

.ew-error {
  font-size: 0.875rem;
  color: #c0392b;
  margin: 0.5rem 0;
}

.ew-muted {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ───────────────────────────────────────────────
   Tag picker (admin licence grant)
─────────────────────────────────────────────── */

.tag-picker {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tag-picker-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tag-picker-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-picker-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Extend tag-pill for interactive use */
.tag-pill {
  cursor: default;
}

button.tag-pill {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.1s, transform 0.1s, box-shadow 0.1s;
}

button.tag-pill:hover {
  opacity: 0.85;
}

button.tag-pill:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}

/* Active/selected state for picker pills */
.tag-pill--picked {
  outline: 2px solid currentColor;
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.tag-pill-check {
  font-size: 0.7em;
}

/* Customer detail page */
.ew-back-link {
  font-size: 0.82rem;
  color: var(--brand-teal);
  text-decoration: none;
}

.ew-back-link:hover { text-decoration: underline; }

.ew-table-link {
  color: var(--brand-teal);
  text-decoration: none;
  font-weight: 500;
}

.ew-table-link:hover { text-decoration: underline; }

.customer-licences-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.customer-licence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.customer-licence-row:last-child { border-bottom: none; }

.customer-licence-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.customer-licence-key {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}

.customer-licence-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────
   Article History panel (Unit 2a)
─────────────────────────────────────────────── */

.ew-history {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  margin-top: 1.5rem;
}

.ew-history summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.ew-history-list {
  margin-top: 0.6rem;
}

.ew-history-event {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.84rem;
  flex-wrap: wrap;
}

.ew-history-event:last-child {
  border-bottom: none;
}

.ew-history-badge {
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.ew-history-badge--rev {
  background: #f0f0f0;
  color: #555;
}

.ew-history-badge--audit {
  background: #e8f4f1;
  color: var(--brand-teal);
}

.ew-history-meta {
  color: #888;
  font-size: 0.78rem;
}

/* ───────────────────────────────────────────────
   Filter sidebar (Customer Hub)
─────────────────────────────────────────────── */

.filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.filter-sidebar-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

/* Group -------------------------------------------------------- */

.filter-group {
  border-bottom: 1px solid var(--line);
}

.filter-group:first-of-type {
  border-top: 1px solid var(--line);
}

.filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.65rem 0;
  cursor: pointer;
  color: var(--ink);
  gap: 0.5rem;
}

.filter-group-header:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.filter-group-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.filter-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.filter-chevron--open {
  transform: rotate(180deg);
}

/* Items -------------------------------------------------------- */

.filter-group-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.6rem;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  cursor: pointer;
}

.filter-item--child {
  padding-left: 1.25rem;
}

.filter-checkbox {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: var(--brand-teal);
  cursor: pointer;
}

.filter-item-label {
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.3;
  cursor: pointer;
}

.filter-item:hover .filter-item-label {
  color: var(--brand-teal);
}

/* Clear all ---------------------------------------------------- */

.filter-clear {
  background: none;
  border: none;
  padding: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--brand-teal);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.filter-clear:hover {
  color: var(--brand-forest);
}

/* ───────────────────────────────────────────────
   Customer Hub page layout
─────────────────────────────────────────────── */

/* Hero */
.hub-hero {
  position: relative;
  overflow: hidden;
  /* rich multi-stop gradient: forest → slightly warmer deep green */
  background: linear-gradient(135deg, #071e15 0%, #0a2a1f 35%, #0d3324 65%, #071e15 100%);
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
}

/* Subtle dot-grid texture overlay */
.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Teal accent glow in top-right corner */
.hub-hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(60,132,120,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Teal accent bar at the very bottom of the hero */
.hub-hero-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-teal) 30%, var(--brand-green) 70%, transparent 100%);
}

.hub-hero-inner {
  position: relative; /* above ::before/::after */
  max-width: 780px;
  margin: 0 auto;
}

/* Eyebrow label above the title */
.hub-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.hub-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
  flex-shrink: 0;
}

.hub-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hub-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin: 0 0 2rem;
  max-width: 500px;
  line-height: 1.6;
}

/* Search */
.hub-search-wrap {
  position: relative;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hub-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.45);
  pointer-events: none;
  z-index: 1;
}

.hub-search {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

/* Hide browser's native ✕ clear button */
.hub-search::-webkit-search-cancel-button,
.hub-search::-webkit-search-decoration,
.hub-search::-webkit-search-results-button,
.hub-search::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.hub-search::placeholder { color: rgba(255,255,255,0.4); }

.hub-search:focus {
  color: #fff;
  border-color: rgba(60,132,120,0.7);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(60,132,120,0.2), 0 1px 3px rgba(0,0,0,0.25);
}

/* Popular chips */
.hub-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.hub-popular-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 0.2rem;
}

.hub-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-family: inherit;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.hub-chip:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
}

.hub-chip--active {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
}

/* Licence indicator */
.hub-licence-indicator {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin: 0.25rem 0 0;
}

/* Two-column body */
.hub-body {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  align-items: flex-start;
}

.hub-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 1.5rem;
}

.hub-main {
  flex: 1 1;
  min-width: 0;
}

/* Article count line */
.hub-count {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hub-count-clear {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  color: var(--brand-teal);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
}

.hub-count-clear:hover { color: var(--brand-forest); }

/* Card grid */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

/* Status / empty states */
.hub-status {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.hub-status--error { color: #c0392b; }

/* Responsive — narrow screens */
@media (max-width: 680px) {
  .hub-body {
    flex-direction: column;
  }
  .hub-sidebar {
    width: 100%;
    position: static;
  }
}

