/* GARAN tool — EU-inspired design system (ECL-like) */
/* the hidden attribute always wins over component display rules (grid/flex) */
[hidden] { display: none !important; }

:root {
  --eu-blue: #004494;
  --eu-blue-dark: #003776;
  --eu-blue-light: #006fb4;
  --eu-yellow: #ffd617;
  --ink: #231f20;
  --grey-900: #262b38;
  --grey-700: #404a5a;
  --grey-500: #71778a;
  --grey-300: #cfd5de;
  --grey-100: #f3f5f8;
  --white: #fff;
  --green: #1d7d4d;
  --red: #b01038;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(9, 49, 142, .12);
  --font: 'Inter', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

a { color: var(--eu-blue); }
a:hover { color: var(--eu-blue-light); }

img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- header */

.site-header { background: var(--eu-blue); color: var(--white); }

.site-header .topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
}

.brand .brand-badge {
  background: var(--eu-yellow);
  color: var(--eu-blue);
  border-radius: 3px;
  padding: 1px 7px;
  font-size: 15px;
  font-weight: 800;
}

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border-bottom: 3px solid transparent;
}

.main-nav a:hover, .main-nav a.active { background: rgba(255, 255, 255, .12); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch select {
  background: var(--eu-blue-dark);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--radius);
  padding: 6px 8px;
  font-family: var(--font);
  font-size: 14px;
}

/* yellow identity stripe, like europa.eu */
.site-header .stripe { height: 4px; background: var(--eu-yellow); }

/* ------------------------------------------------------------------ hero */

.hero {
  background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 70%);
  color: var(--white);
  padding: 64px 0 72px;
}

.hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 760px;
}

.hero p.lead { font-size: 19px; max-width: 680px; margin: 0 0 28px; color: #dbe6ff; }

.hero .hero-flex { display: flex; gap: 48px; align-items: center; justify-content: space-between; flex-wrap: nowrap; }

/* text column stays left and takes the remaining space */
.hero .hero-flex > div:first-child { flex: 1 1 auto; min-width: 0; text-align: left; }

/* label image pinned to the right */
.hero .hero-art { flex: 0 0 300px; margin-left: auto; background: var(--white); border-radius: 6px; padding: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }

@media (max-width: 820px) {
  .hero .hero-flex { flex-wrap: wrap; }
  .hero .hero-art { margin: 0 auto; }
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 214, 23, .16);
  border: 1px solid rgba(255, 214, 23, .5);
  color: var(--eu-yellow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.hero-highlight {
  color: var(--eu-yellow);
  position: relative;
  white-space: nowrap;
}

.hero-checks {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  color: #eaf1ff;
  font-size: 16px;
}

.hero-checks li { padding: 4px 0 4px 30px; position: relative; }

.hero-checks li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--eu-yellow);
  color: var(--eu-blue-dark);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn-xl { padding: 15px 30px; font-size: 18px; font-weight: 700; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }

.hero-proof { margin-top: 22px; font-size: 14px; color: #b9c9ec; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-proof strong { color: var(--eu-yellow); font-size: 16px; }
.hero-dot { opacity: .5; }

.hero-art { position: relative; transform: rotate(2deg); transition: transform .25s ease; }
.hero-art:hover { transform: rotate(0deg) scale(1.03); }
.hero-art-caption { text-align: center; font-size: 13px; color: var(--grey-500); padding-top: 10px; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}

.btn-primary { background: var(--eu-yellow); color: var(--ink); }
.btn-primary:hover { background: #ffdf4d; color: var(--ink); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-blue { background: var(--eu-blue); color: var(--white); }
.btn-blue:hover { background: var(--eu-blue-light); color: var(--white); }
.btn-ghost { background: var(--grey-100); color: var(--eu-blue); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-danger { background: var(--red); color: var(--white); }

/* -------------------------------------------------------------- sections */

.section { padding: 64px 0; }
.section.alt { background: var(--grey-100); }

.section-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.section-title:after { content: ''; display: block; width: 64px; height: 4px; background: var(--eu-yellow); margin-top: 10px; }
.section-sub { color: var(--grey-700); max-width: 720px; margin: 14px 0 34px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--grey-700); font-size: 15px; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--eu-blue);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ------------------------------------------------------------- generator */

.generator-wrap { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 36px; align-items: start; }

@media (max-width: 900px) { .generator-wrap { grid-template-columns: 1fr; } }

.gen-form { background: var(--white); border: 1px solid var(--grey-300); border-radius: 6px; padding: 26px; box-shadow: var(--shadow); }

.field { margin-bottom: 18px; }

.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }

.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url],
.field input[type=date], .field input[type=number], .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 15px;
  border: 1px solid var(--grey-500);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(0, 111, 180, .35);
  border-color: var(--eu-blue-light);
}

.field .hint { font-size: 13px; color: var(--grey-500); margin-top: 4px; }

.variant-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.variant-pills label {
  border: 1.5px solid var(--grey-300);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.variant-pills input { position: absolute; opacity: 0; pointer-events: none; }

.variant-pills label:has(input:checked) { background: var(--eu-blue); border-color: var(--eu-blue); color: var(--white); }

.gen-preview { text-align: center; }

.gen-preview .preview-stage {
  background: repeating-conic-gradient(var(--grey-100) 0% 25%, var(--white) 0% 50%) 50% / 24px 24px;
  border: 1px solid var(--grey-300);
  border-radius: 6px;
  padding: 28px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gen-preview .preview-stage svg, .gen-preview .preview-stage img { max-width: 340px; width: 100%; height: auto; background: #fff; box-shadow: var(--shadow); }

.gen-preview .preview-stage.nested svg, .gen-preview .preview-stage.nested img { max-width: 420px; box-shadow: none; }

.download-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }

.embed-code {
  text-align: left;
  background: var(--grey-900);
  color: #d8e6ff;
  font-family: Consolas, Menlo, monospace;
  font-size: 13px;
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
  margin-top: 16px;
}

.copy-ok { color: var(--green); font-size: 13px; margin-left: 8px; }

.gen-error { color: var(--red); font-size: 14px; margin-top: 10px; font-weight: 600; }

/* ------------------------------------------------------------- vote grid */

.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }

.vote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid;
  background: var(--white);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}

.vote-btn:active { transform: scale(.97); }

.vote-btn .vote-arrow { font-size: 18px; }

.vote-btn .vote-count {
  background: rgba(0, 0, 0, .08);
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 14px;
}

.vote-up { border-color: var(--green); color: var(--green); }
.vote-up:hover { background: #e6f4ec; }
.vote-up.active { background: var(--green); color: var(--white); }
.vote-up.active .vote-count { background: rgba(255, 255, 255, .25); }

.vote-down { border-color: var(--red); color: var(--red); }
.vote-down:hover { background: #fbeaee; }
.vote-down.active { background: var(--red); color: var(--white); }
.vote-down.active .vote-count { background: rgba(255, 255, 255, .25); }

/* --------------------------------------------------------------- notices */

.alert { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 18px; font-size: 15px; }
.alert-success { background: #e6f4ec; color: var(--green); border: 1px solid #bfe3cf; }
.alert-error { background: #fbeaee; color: var(--red); border: 1px solid #f0c3cf; }
.alert-info { background: #e8f1fb; color: var(--eu-blue); border: 1px solid #c3d8f0; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}

table.data th {
  text-align: left;
  background: var(--grey-100);
  color: var(--grey-700);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 2px solid var(--grey-300);
  white-space: nowrap;
}

table.data td { padding: 10px 12px; border-bottom: 1px solid var(--grey-300); vertical-align: middle; }

.badge-status { display: inline-block; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 10px; white-space: nowrap; }
.badge-status.pending { background: #fff3cd; color: #8a6d00; }
.badge-status.source_backed { background: #e6f4ec; color: var(--green); }
.badge-status.rejected { background: #fbeaee; color: var(--red); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--grey-900); color: #c9d2e3; margin-top: 64px; font-size: 14px; }

.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-block: 44px 28px; }

.site-footer h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }

.site-footer a { color: #c9d2e3; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.site-footer .legal { border-top: 1px solid var(--grey-700); padding: 18px 0 26px; font-size: 13px; color: #97a1b6; }

/* ----------------------------------------------------------------- panel */

.panel-body { display: flex; min-height: calc(100vh - 62px); align-items: stretch; background: var(--grey-100); }

.panel-side {
  flex: 0 0 230px;
  background: var(--white);
  border-right: 1px solid var(--grey-300);
  padding: 22px 0;
}

.panel-side a {
  display: block;
  padding: 10px 22px;
  color: var(--grey-700);
  text-decoration: none;
  font-size: 15px;
  border-left: 4px solid transparent;
}

.panel-side a.active, .panel-side a:hover { background: var(--grey-100); color: var(--eu-blue); border-left-color: var(--eu-yellow); font-weight: 600; }

.panel-side .side-group { margin-top: 18px; padding: 8px 22px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-500); }

.panel-main { flex: 1; padding: 34px clamp(16px, 4vw, 48px); min-width: 0; }

/* boxed layout: every top-level block is centered on a comfortable width */
.panel-main > * { max-width: 1020px; margin-left: auto; margin-right: auto; }

.panel-main h1 {
  font-size: 24px;
  margin: 0 auto 22px;
  letter-spacing: -.01em;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--eu-yellow);
}

.panel-main .card { border-radius: 8px; box-shadow: 0 1px 3px rgba(9, 49, 142, .08); }

.panel-main form { width: 100%; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }

.stat-card { background: var(--white); border: 1px solid var(--grey-300); border-radius: 6px; padding: 18px 20px; }
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--eu-blue); }
.stat-card .lbl { font-size: 13px; color: var(--grey-500); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }

.auth-card { max-width: 440px; margin: 56px auto; }

.picker-row { display: flex; align-items: center; gap: 10px; }
.picker-row input[type=color] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--grey-300); border-radius: 4px; background: var(--white); cursor: pointer; }
.picker-value { font-size: 13px; color: var(--grey-500); font-family: Consolas, Menlo, monospace; }
input[type=range] { width: 100%; accent-color: var(--eu-blue); margin: 4px 0 0; }

/* ------------------------------------------------------------ site form */
.mono { font-family: Consolas, Menlo, monospace !important; font-size: 14px !important; }
.muted-inline { font-weight: 400; color: var(--grey-500); font-size: 13px; }
.field label output { font-weight: 600; font-family: Consolas, Menlo, monospace; font-size: 13px; color: var(--eu-blue); margin-left: 4px; }
.field label output.is-default { color: var(--grey-500); font-weight: 400; font-family: var(--font); }

/* append rules: one compact card per selector */
.rules { display: grid; gap: 12px; margin: 16px 0 14px; }
.rule { border: 1px solid var(--grey-300); border-radius: 6px; background: var(--grey-100); padding: 12px 16px 2px; }
.rule-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rule-num { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-700); }
.rule-remove { border: 0; background: none; color: var(--red); font: 600 13px var(--font); cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.rule-remove:hover { background: #fbe7ec; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.rule-grid .rule-wide { grid-column: 1 / -1; }
.rule .field { margin-bottom: 14px; }
.rule .field input[type=text], .rule .field select { background: var(--white); }
.rules-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rules-presets-label { font-size: 13px; color: var(--grey-500); margin-left: 8px; }
.chip { border: 1px solid var(--grey-300); background: var(--white); color: var(--grey-700); border-radius: 999px; padding: 5px 12px; font: 500 13px var(--font); cursor: pointer; }
.chip:hover { border-color: var(--eu-blue); color: var(--eu-blue); }

/* visual picker launcher */
.picker-box { border: 1px dashed var(--eu-blue-light); background: #f2f7fc; border-radius: 8px; padding: 14px 16px; margin: 16px 0 4px; }
.picker-box-text strong { display: block; color: var(--eu-blue); margin-bottom: 2px; }
.picker-box-text span { font-size: 14px; color: var(--grey-700); }
.picker-box-form { display: flex; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.picker-box-form input { flex: 1 1 260px; min-width: 0; padding: 8px 10px; font: 14px var(--font); border: 1px solid var(--grey-500); border-radius: var(--radius); background: var(--white); }
.picker-box .hint { font-size: 13px; color: var(--grey-500); }
.picker-status { font-size: 14px; padding: 8px 12px; border-radius: var(--radius); margin: 6px 0; word-break: break-word; }
.picker-status.ok { background: #e6f4ec; color: var(--green); }
.picker-status.wait { background: var(--grey-100); color: var(--grey-700); }
.picker-status.warn { background: #fbe7ec; color: var(--red); }
.rule { transition: box-shadow .3s, border-color .3s; }
.rule.rule-new { border-color: var(--eu-yellow); box-shadow: 0 0 0 3px rgba(255, 214, 23, .5); }

/* segmented control (radio group) */
.seg { display: inline-flex; border: 1px solid var(--grey-500); border-radius: var(--radius); overflow: hidden; background: var(--white); max-width: 100%; }
.field .seg label { margin: 0; font-weight: 500; }
.seg label { display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 14px; font-size: 14px; color: var(--grey-700); white-space: nowrap; }
.seg label + label span { border-left: 1px solid var(--grey-300); }
.seg input:checked + span { background: var(--eu-blue); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid rgba(0, 111, 180, .35); outline-offset: -3px; }
.seg-sm span { padding: 5px 10px; font-size: 13px; }

/* styling editor: controls left, sticky preview right */
.styler { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 28px; margin-top: 18px; align-items: start; }
.style-group { border: 0; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }

.style-group legend { width: 100%; border-bottom: 1px solid var(--grey-300); margin-bottom: 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-500); padding: 0 0 8px; }
.style-group .hint { grid-column: 1 / -1; margin: -6px 0 14px; }

.color-field { display: flex; align-items: stretch; border: 1px solid var(--grey-500); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.color-field:focus-within { outline: 3px solid rgba(0, 111, 180, .35); border-color: var(--eu-blue-light); }
/* Coloris (public/vendor/coloris) wraps the hex input in .clr-field; its
 * swatch button is moved to the left. No native <input type=color> is used,
 * so no browser/extension picker icon can appear. */
.color-field .clr-field { flex: 1; min-width: 0; display: flex; color: transparent; }
.color-field .clr-field button { left: 7px; right: auto; width: 28px; height: 26px; border-radius: 4px; }
.color-field .clr-field button:after { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.field .color-field .clr-field input[type=text] { padding-left: 44px; cursor: pointer; }
.clr-picker { font-family: var(--font); box-shadow: 0 10px 30px rgba(9, 49, 142, .25); }
.clr-picker .clr-close { background: var(--eu-blue); color: #fff; }
.field .color-field input[type=text] { flex: 1; min-width: 0; border: 0; border-radius: 0; padding: 8px 10px; outline: none; text-transform: lowercase; }
.field .color-field input[type=text].invalid { color: var(--red); }
.field .color-field input[type=text]::placeholder { text-transform: none; }
.color-field .reset { flex: none; border: 0; border-left: 1px solid var(--grey-300); background: var(--grey-100); color: var(--grey-700); font: 500 13px var(--font); padding: 0 12px; cursor: pointer; }
.color-field .reset:hover { color: var(--eu-blue); }
.color-field.is-empty .reset { visibility: hidden; }

.styler-preview { position: sticky; top: 20px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.mock-product { border: 1px solid var(--grey-300); border-radius: 8px; padding: 20px; background: var(--white); color: var(--ink); transition: background .15s, color .15s; }
.mock-product.dark { background: #1d2230; color: #e8ebf2; border-color: #1d2230; }
.mock-title { font-weight: 700; font-size: 17px; }
.mock-price { font-weight: 800; font-size: 22px; margin: 4px 0 10px; }
.mock-badge { display: block; height: 48px; width: auto; max-width: 100%; }
.mock-btn { display: inline-block; margin: 14px 0 4px; background: #e94560; color: #fff; border-radius: 6px; padding: 9px 18px; font-size: 14px; font-weight: 600; }
.mock-legal { margin-top: 12px; font-size: 14px; color: var(--grey-500); }
.mock-product.dark .mock-legal { color: #a9b0c2; }
.pv-link { color: #004494; }
/* mirrors .garan-notice-badge in public/embed/garan.js */
.pv-badge { display: inline-flex; align-items: center; gap: .55em; padding: .45em .8em; border: 1px solid #cfd5de; border-radius: 6px; background: #fff; font-weight: 600; line-height: 1.25; text-decoration: none; }
.pv-badge img { height: 1.7em; width: auto; flex: none; }

@media (max-width: 1100px) {
  .styler { grid-template-columns: 1fr; }
  .styler-preview { position: static; }
}
@media (max-width: 600px) {
  .rule-grid, .style-group { grid-template-columns: 1fr; }
  .seg { display: flex; }
  .seg label { flex: 1; text-align: center; }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--grey-500);
  font-size: 13px;
}
.auth-divider:before, .auth-divider:after { content: ''; flex: 1; height: 1px; background: var(--grey-300); }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--grey-300);
}
.btn-google:hover { background: var(--grey-100); color: var(--ink); }

.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; }

.inline-form { display: inline; }

.muted { color: var(--grey-500); }
.mono { font-family: Consolas, Menlo, monospace; font-size: 13px; }

.pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--grey-300); border-radius: var(--radius); text-decoration: none; font-size: 14px; }
.pagination .current { background: var(--eu-blue); color: var(--white); border-color: var(--eu-blue); }

@media (max-width: 860px) {
  .panel-body { flex-direction: column; }
  .panel-side { flex: none; border-right: 0; border-bottom: 1px solid var(--grey-300); display: flex; flex-wrap: wrap; padding: 8px; }
  .panel-side a { border-left: 0; border-bottom: 3px solid transparent; }
  .panel-side .side-group { display: none; }
  .site-header .topbar { flex-wrap: wrap; gap: 10px; }
  .main-nav { margin-left: 0; order: 3; width: 100%; }
}

/* ------------------------------------------------------- EU frame (border) */
/* EC practical guidelines: the border line of the harmonised notice and of the
 * full EU GARAN label must not be altered or removed. The official files carry
 * no outer border (notice) or only a hairline one (label), so every display of
 * them gets a solid black 1px frame. The nested label has no border by design. */
.eu-frame { border: 1px solid #000 !important; border-radius: 0 !important; background: #fff; box-sizing: border-box; }
.gen-preview .preview-stage:not(.nested) svg, .gen-preview .preview-stage:not(.nested) img { border: 1px solid #000; }

/* ------------------------------------------------------- label directory */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.dir-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.dir-filters { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 420px; }
.dir-filters input, .dir-filters select { padding: 9px 12px; border: 1px solid var(--grey-500); border-radius: var(--radius); font: 15px var(--font); background-color: var(--white); color: var(--ink); }
.dir-search { flex: 1 1 220px; max-width: 340px; display: flex; }
.dir-search input { width: 100%; padding-left: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2371778a' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 12px 50%; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.brand-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--grey-300); border-radius: 999px; background: var(--white); color: var(--grey-700); font-size: 14px; text-decoration: none; }
.brand-chip span { font-size: 12px; background: var(--grey-100); color: var(--grey-500); border-radius: 999px; padding: 1px 7px; }
.brand-chip:hover { border-color: var(--eu-blue); color: var(--eu-blue); }
.brand-chip.active { background: var(--eu-blue); border-color: var(--eu-blue); color: var(--white); }
.brand-chip.active span { background: rgba(255, 255, 255, .2); color: var(--white); }
.dir-count { font-size: 14px; color: var(--grey-500); margin: 0 0 12px; }

.label-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.label-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-300); border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.label-card:hover, .label-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(9, 49, 142, .16); border-color: var(--eu-blue-light); }
.label-card:focus-visible { outline: 3px solid rgba(0, 111, 180, .35); }

.lc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.lc-dur { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; height: 58px; padding: 0 8px; border-radius: 8px; background: var(--eu-blue); color: var(--white); line-height: 1; }
.lc-dur strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.lc-dur span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; color: var(--eu-yellow); font-weight: 700; }
.lc-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lc-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-500); }
.lc-model { font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lc-thumb { background: var(--grey-100); border-top: 1px solid var(--grey-300); border-bottom: 1px solid var(--grey-300); padding: 18px; display: flex; justify-content: center; }
.lc-thumb img { display: block; width: auto; max-width: 100%; height: 170px; }

.lc-meta { list-style: none; margin: 0; padding: 14px 16px 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.lc-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--grey-700); background: var(--grey-100); border-radius: 4px; padding: 3px 8px; }
.lc-cc { font: 700 11px var(--font); background: var(--white); border: 1px solid var(--grey-300); border-radius: 3px; padding: 1px 4px; color: var(--eu-blue); }
.lc-chip.lc-ok { background: #e6f4ec; color: var(--green); }

.lc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 14px; }
.lc-score { display: inline-flex; gap: 10px; font-size: 13px; font-weight: 600; color: var(--grey-500); }
.lc-score.pos .up { color: var(--green); }
.lc-score.neg .down { color: var(--red); }
.lc-more { font-size: 14px; font-weight: 600; color: var(--eu-blue); }
.label-card:hover .lc-more { text-decoration: underline; }

/* ------------------------------------------------------- install code */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill-ok { background: #e6f4ec; color: var(--green); }
.pill-wait { background: #fff4d6; color: #8a5a00; }
.pill-bad { background: #fbe7ec; color: var(--red); }

.install-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgba(9, 49, 142, .35); }
.install-dialog::backdrop { background: rgba(20, 24, 35, .55); }
.install-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: var(--white); border-bottom: 1px solid var(--grey-300); }
.install-dialog-head h2 { margin: 0; font-size: 19px; }
.install-close { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--grey-700); padding: 4px 8px; border-radius: 4px; }
.install-close:hover { background: var(--grey-100); }
.install-dialog-body { padding: 18px 22px 22px; }

.install-card { margin-bottom: 20px; padding: 0; }
.install-card > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; cursor: pointer; font-weight: 700; font-size: 17px; color: var(--eu-blue); }
.install-card > summary::-webkit-details-marker { display: none; }
.install-card > summary::after { content: '▾'; margin-left: 8px; color: var(--grey-500); }
.install-card[open] > summary { border-bottom: 1px solid var(--grey-300); }
.install-card[open] > summary::after { content: '▴'; }
.install-card > .install { padding: 18px 24px 22px; }

.install-status { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 6px; background: #fff4d6; color: #6b4600; font-size: 14px; margin-bottom: 16px; }
.install-status.ok { background: #e6f4ec; color: var(--green); }
.install-steps { margin: 0; padding-left: 22px; }
.install-steps > li { margin-bottom: 18px; }
.install-steps > li::marker { font-weight: 800; color: var(--eu-blue); }
.install-steps h4 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.install-steps p { margin: 4px 0 8px; font-size: 14px; color: var(--grey-700); }
.install-req, .install-opt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 3px; padding: 2px 6px; }
.install-req { background: var(--eu-blue); color: var(--white); }
.install-opt { background: var(--grey-100); color: var(--grey-500); }
.code-copy { display: flex; align-items: flex-start; gap: 8px; background: var(--grey-900); border-radius: 6px; padding: 10px 10px 10px 14px; margin: 6px 0; }
.code-copy pre { flex: 1; min-width: 0; margin: 0; overflow-x: auto; color: #e8ebf2; font: 13px/1.5 Consolas, Menlo, monospace; white-space: pre; }
.code-copy .btn { flex: none; }
.code-copy .btn-ghost { background: rgba(255, 255, 255, .12); color: var(--white); }
.install-platforms { font-size: 14px; margin-top: 6px; }
.install-platforms summary { cursor: pointer; color: var(--eu-blue); }
.install-platforms ul { margin: 8px 0 0; padding-left: 18px; color: var(--grey-700); }
.install-platforms li { margin-bottom: 4px; }
.install-foot { font-size: 14px; margin: 4px 0 0; }

/* install status row + panel notifications */
.install-status { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 14px; }
.install-status > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.install-status.bad { background: #fbe7ec; color: var(--red); }
.install-status form { flex: none; }
.install-daily { font-size: 12px; opacity: .8; margin-top: 4px; }

.notices { display: grid; gap: 8px; margin-bottom: 18px; }
.notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--grey-300); background: var(--white); font-size: 14px; }
.notice-bad { border-left-color: var(--red); background: #fdf3f5; }
.notice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notice-text small { color: var(--grey-500); }
.notice-x { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--grey-500); padding: 2px 6px; border-radius: 4px; }
.notice-x:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
.notices-all { text-align: right; }
.notices-all button { border: 0; background: none; color: var(--eu-blue); font: 600 13px var(--font); cursor: pointer; text-decoration: underline; }

/* small inline forms (dismiss ×, "Check now") must not inherit .panel-main form { width: 100% } */
.panel-main .notice form, .panel-main .install-status form, .panel-main .notices-all { width: auto; flex: none; }

/* homepage: community labels */
.home-labels-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.home-labels-head .section-sub { margin-bottom: 0; }
.home-tabs button { border: 0; background: var(--white); color: var(--grey-700); font: 600 14px var(--font); padding: 9px 16px; cursor: pointer; }
.home-tabs button + button { border-left: 1px solid var(--grey-300); }
.home-tabs button.on { background: var(--eu-blue); color: var(--white); }
.home-tabs button:focus-visible { outline: 3px solid rgba(0, 111, 180, .35); outline-offset: -3px; }
.home-labels-more { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.label-grid[hidden] { display: none; }

/* ---------------------------------------------------------------- blog */
.blog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-300); border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.post-card:hover, .post-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(9, 49, 142, .16); border-color: var(--eu-blue-light); }
.post-cover { aspect-ratio: 16 / 9; background: var(--eu-blue); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover-ph { color: var(--white); font-weight: 800; font-size: 28px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.post-cover-ph b { background: var(--eu-yellow); color: var(--eu-blue); font-size: 14px; padding: 3px 8px; border-radius: 4px; }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-body h2 { font-size: 19px; line-height: 1.3; margin: 0; color: var(--ink); }
.post-body p { margin: 0; font-size: 15px; color: var(--grey-700); }
.post-author { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--eu-blue); }
.post-meta { font-size: 13px; color: var(--grey-500); }

.post-wrap { max-width: 760px; }
.post-title { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; margin: 6px 0 10px; letter-spacing: -.01em; }
.post-hero { display: block; width: 100%; border-radius: 10px; margin: 22px 0 6px; }
.lead-excerpt { font-size: 18px; color: var(--grey-700); }
.prose { font-size: 17px; line-height: 1.7; color: var(--ink); margin-top: 22px; overflow-wrap: break-word; }
.prose h2 { font-size: 25px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin: 0 0 1em; }
.prose a { color: var(--eu-blue); }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }
.prose blockquote { border-left: 4px solid var(--eu-yellow); padding: 4px 0 4px 16px; color: var(--grey-700); background: var(--grey-100); }
.prose code { font: 15px Consolas, Menlo, monospace; background: var(--grey-100); padding: 1px 5px; border-radius: 3px; }
.prose pre { background: var(--grey-900); color: #e8ebf2; padding: 14px; border-radius: 6px; overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--grey-300); padding: 6px 10px; text-align: left; }
.post-contribute { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 34px 0 10px; padding: 18px 20px; border-radius: 8px; background: #f2f7fc; border: 1px dashed var(--eu-blue-light); }
.post-contribute span { color: var(--grey-700); font-size: 15px; }
.post-related-title { font-size: 20px; margin: 28px 0 10px; }
.post-related { padding-left: 18px; margin: 0; }
.post-related li { margin-bottom: 6px; }

/* editor */
.post-form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.pill-draft { background: var(--grey-100); color: var(--grey-700); }

/* moderation */
.review-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 14px; }
.review-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.side-count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; text-align: center; }
.notice-info { border-left-color: var(--eu-blue); }

/* WYSIWYG editor (Quill 2) */
.wysiwyg { border: 1px solid var(--grey-500); border-radius: var(--radius); background: var(--white); }
.wysiwyg .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--grey-300); background: var(--grey-100); border-radius: var(--radius) var(--radius) 0 0; font-family: var(--font); }
.wysiwyg .ql-container.ql-snow { border: 0; font: 17px/1.7 var(--font); }
.wysiwyg .ql-editor { min-height: 360px; max-height: 70vh; overflow-y: auto; color: var(--ink); }
.wysiwyg .ql-editor h2 { font-size: 24px; margin: 1em 0 .4em; }
.wysiwyg .ql-editor h3 { font-size: 19px; margin: .9em 0 .3em; }
.wysiwyg .ql-editor blockquote { border-left: 4px solid var(--eu-yellow); padding-left: 14px; color: var(--grey-700); }
.wysiwyg .ql-editor.ql-blank::before { color: var(--grey-500); font-style: normal; }
.wysiwyg:focus-within { outline: 3px solid rgba(0, 111, 180, .35); border-color: var(--eu-blue-light); }
.wysiwyg-foot { border-top: 1px solid var(--grey-300); padding: 4px 10px; text-align: right; font-size: 12px; color: var(--green); }
.wysiwyg-foot .short { color: var(--grey-500); }
.wysiwyg .ql-snow .ql-tooltip { z-index: 5; }

/* cover image: drag & drop + 16:9 crop */
.cover-drop { position: relative; aspect-ratio: 16 / 9; max-width: 520px; border: 2px dashed var(--grey-500); border-radius: 10px; background: var(--grey-100); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.cover-drop:hover, .cover-drop:focus-visible, .cover-drop.over { border-color: var(--eu-blue); background: #eef4fb; outline: none; }
.cover-drop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-drop-text { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px; color: var(--grey-700); font-size: 14px; }
.cover-drop-text strong { font-size: 16px; color: var(--eu-blue); }
.cover-ratio { margin-top: 6px; font: 700 12px var(--font); letter-spacing: .1em; color: var(--grey-500); border: 1px solid var(--grey-300); border-radius: 4px; padding: 2px 8px; background: var(--white); }
.cover-actions { display: flex; gap: 8px; margin-top: 8px; }
.cover-error { color: var(--red); font-size: 14px; margin-top: 6px; }
.crop-dialog { width: min(920px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgba(9, 49, 142, .35); }
.crop-dialog::backdrop { background: rgba(20, 24, 35, .6); }
.crop-head { padding: 16px 20px 8px; }
.crop-head h2 { margin: 0 0 4px; font-size: 19px; }
.crop-head p { margin: 0; font-size: 14px; color: var(--grey-700); }
.crop-stage { height: min(60vh, 520px); background: var(--grey-900); }
.crop-stage img { display: block; max-width: 100%; }
.crop-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--grey-300); }

/* admin: public label moderation */
tr.row-warn td { background: #fff8e6; }
.delist { display: inline-block; vertical-align: top; }
.delist > summary { list-style: none; cursor: pointer; }
.delist > summary::-webkit-details-marker { display: none; }
.delist-form { margin-top: 8px; width: 280px; padding: 12px; background: var(--white); border: 1px solid var(--grey-300); border-radius: 8px; box-shadow: 0 10px 28px rgba(9, 49, 142, .2); display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.delist-form label { font-weight: 600; font-size: 13px; }
.delist-form textarea { width: 100%; padding: 8px; border: 1px solid var(--grey-500); border-radius: var(--radius); font: 14px var(--font); }
.panel-main .delist-form { width: 300px; }

/* badge install variants + beta note */
.install-variant { margin: 14px 0 4px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.install-beta { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 3px; padding: 2px 6px; background: #fff4d6; color: #8a5a00; border: 1px solid #f1d58a; }
.beta-note { background: #fff8e6; border: 1px solid #f1d58a; border-radius: 6px; padding: 10px 14px; font-size: 14px; color: #5c4300; margin: 8px 0 10px; line-height: 1.5; }

/* header: two rows — brand + account on top, navigation on its own row (room for new sections) */
.site-header .topbar { flex-wrap: wrap; row-gap: 0; padding-block: 12px 0; }
.site-header .brand, .site-header .brand-badge, .header-actions .btn { white-space: nowrap; }
.site-header .header-actions { margin-left: auto; }
.site-header .main-nav { order: 3; width: 100%; margin: 10px 0 0; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .18); flex-wrap: wrap; gap: 2px; }
.site-header .main-nav a { padding: 10px 14px; border-radius: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.site-header .main-nav a:hover { background: rgba(255, 255, 255, .1); }
.site-header .main-nav a.active { background: none; border-bottom-color: var(--eu-yellow); font-weight: 600; }
.header-auth { display: flex; align-items: center; gap: 10px; }
.header-user { font-size: 14px; color: #dbe6ff; }

/* hamburger, shown only on narrow screens */
.site-header .header-cta { display: none; }
.nav-toggle { display: none; flex: none; width: 42px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--radius); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header .topbar { flex-wrap: wrap; gap: 0 10px; padding-block: 12px; }
  /* lang select and account buttons become direct flex items of the top bar */
  .site-header .header-actions { display: contents; }
  .site-header .brand { margin-right: auto; }
  .site-header .header-cta { display: inline-flex; order: 1; padding: 9px 12px; font-size: 14px; }
  /* the language picker lives inside the drawer on phones, leaving room for the CTA */
  .site-header .lang-switch { display: none; order: 5; width: 100%; padding: 4px 0 6px; }
  .site-header.nav-open .lang-switch { display: block; }
  .site-header .lang-switch select { width: 100%; padding: 9px 10px; font-size: 15px; }
  .site-header .nav-toggle { display: flex; order: 2; }
  .site-header .main-nav, .site-header .header-auth { display: none; order: 3; width: 100%; }
  .site-header.nav-open .main-nav { display: flex; flex-direction: column; gap: 0; margin: 12px 0 0; padding: 4px 0 0; }
  .site-header .main-nav a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .site-header .main-nav a.active { border-bottom-color: rgba(255, 255, 255, .12); box-shadow: inset 4px 0 0 var(--eu-yellow); padding-left: 14px; }
  .site-header.nav-open .header-auth { display: flex; order: 4; flex-wrap: wrap; gap: 10px; padding: 14px 0 4px; }
  .site-header .header-auth .btn { flex: 1 1 140px; text-align: center; padding-block: 10px; }
  .site-header .header-auth .inline-form { flex: 1 1 140px; }
  .site-header .header-auth .inline-form .btn { width: 100%; }
  .site-header .header-user { flex-basis: 100%; }
}

/* short explanatory box at the top of panel pages */
.page-intro { display: flex; align-items: flex-start; gap: 12px; max-width: 680px; margin: 0 0 20px; padding: 12px 16px; background: #f2f7fc; border: 1px solid #d4e3f3; border-radius: 8px; }
.page-intro p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--grey-700); }
.page-intro-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--eu-blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* my labels: public rows + approval rate */
tr.row-public td:first-child { box-shadow: inset 4px 0 0 var(--green); }
.vote-rate { min-width: 130px; }
.vote-rate-top { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--grey-500); }
.vote-rate-top strong { font-size: 15px; color: var(--grey-700); }
.vote-rate-top strong.good { color: var(--green); }
.vote-rate-top strong.bad { color: var(--red); }
.vote-rate-bar { height: 6px; border-radius: 3px; background: #f4c7d1; overflow: hidden; margin-top: 4px; }
.vote-rate-bar span { display: block; height: 100%; background: var(--green); }

/* combobox (brand suggestions) */
.combo { position: relative; }
.field .combo input[type=text] { padding-right: 38px; }
.combo-toggle { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 36px; border: 0; border-left: 1px solid var(--grey-300); background: var(--grey-100); color: var(--grey-700); cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: var(--white); border: 1px solid var(--grey-300); border-radius: 6px; box-shadow: 0 10px 28px rgba(9, 49, 142, .18); }
.combo-list li { padding: 8px 12px; cursor: pointer; font-size: 15px; }
.combo-list li:hover, .combo-list li.active { background: #eef4fb; color: var(--eu-blue); }
.combo-list li.combo-new { border-top: 1px solid var(--grey-300); color: var(--grey-700); font-style: italic; }

/* public author profile (settings) */
.profile-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 8px; }
.avatar-field { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.avatar-pick { position: relative; width: 140px; height: 140px; border-radius: 50%; overflow: hidden; cursor: pointer; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--grey-300), 0 4px 14px rgba(9, 49, 142, .15); }
.avatar-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-pick span { position: absolute; inset: auto 0 0 0; padding: 6px 0 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--white); background: rgba(0, 31, 77, .7); opacity: 0; transition: opacity .15s; }
.avatar-pick:hover span, .avatar-pick:focus-within span { opacity: 1; }
.field .avatar-remove, .avatar-remove { font-weight: 400; font-size: 13px; }
@media (max-width: 600px) { .profile-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- article page (conversion layout) */
.post-hero-band { background: linear-gradient(135deg, var(--eu-blue) 0%, #0a2f6b 100%); color: var(--white); padding: 34px 0 40px; }
.post-hero-inner { max-width: 1140px; }
.post-crumbs { font-size: 13px; color: #c9d6ee; margin-bottom: 12px; }
.post-crumbs a { color: #e3ebfa; }
.post-hero-band .post-title { color: var(--white); max-width: 820px; margin: 0 0 12px; }
.post-lead { font-size: 19px; line-height: 1.5; color: #dbe5f7; max-width: 760px; margin: 0 0 18px; }
.post-byline { display: flex; align-items: center; gap: 12px; }
.post-byline strong { display: block; font-size: 15px; }
.post-byline span { font-size: 13px; color: #c9d6ee; }
.avatar { border-radius: 50%; object-fit: cover; background: var(--grey-100); flex: none; }
.post-byline .avatar { width: 44px; height: 44px; border: 2px solid rgba(255, 255, 255, .7); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; padding-top: 32px; padding-bottom: 56px; }
.post-main { min-width: 0; max-width: 760px; }
.post-cover-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 0 0 8px; box-shadow: 0 10px 30px rgba(9, 49, 142, .18); }
.post-main .prose { margin-top: 18px; }
.post-main .prose > p:first-child { font-size: 19px; color: var(--grey-900); }

.post-cta-banner { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 22px; align-items: center; margin: 40px 0 24px; padding: 26px 26px 26px 28px; border-radius: 14px; background: linear-gradient(135deg, #0a2f6b 0%, var(--eu-blue) 60%, #0b5cb8 100%); color: var(--white); position: relative; overflow: hidden; }
.post-cta-banner::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 214, 23, .12); }
.post-cta-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--eu-yellow); margin-bottom: 6px; }
.post-cta-banner h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; color: var(--white); }
.post-cta-banner p { margin: 0 0 16px; color: #dbe5f7; font-size: 15px; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post-cta-banner .btn-outline { border-color: rgba(255, 255, 255, .7); color: var(--white); background: transparent; }
.post-cta-art { width: 150px; height: auto; transform: rotate(3deg); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); position: relative; z-index: 1; }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; font-size: 14px; color: var(--grey-500); }
.post-share a, .post-share button { border: 1px solid var(--grey-300); background: var(--white); color: var(--grey-700); border-radius: 999px; padding: 5px 12px; font: 600 13px var(--font); text-decoration: none; cursor: pointer; }
.post-share a:hover, .post-share button:hover { border-color: var(--eu-blue); color: var(--eu-blue); }

.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--grey-300); border-radius: 12px; background: var(--white); margin-bottom: 30px; }
.avatar-lg { width: 88px; height: 88px; }
.author-body { min-width: 0; }
.author-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-500); }
.author-name { margin: 2px 0 6px; font-size: 20px; }
.author-name a { color: var(--ink); text-decoration: none; }
.author-name a:hover { color: var(--eu-blue); text-decoration: underline; }
.author-bio { margin: 0 0 10px; color: var(--grey-700); font-size: 15px; line-height: 1.55; }
.author-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--grey-700); }
.author-meta a { color: var(--eu-blue); }
.author-labels { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.author-labels a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--grey-300); border-radius: 999px; font-size: 13px; color: var(--grey-900); text-decoration: none; }
.author-labels a:hover { border-color: var(--eu-blue); color: var(--eu-blue); }
.author-label-dur { background: var(--eu-blue); color: var(--white); border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: 12px; }

.post-grid-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.post-grid-sm .post-body h2 { font-size: 16px; }

.post-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 18px; border: 1px solid var(--grey-300); border-radius: 12px; background: var(--white); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.side-card strong { font-size: 16px; color: var(--ink); }
.side-card p { margin: 0 0 4px; font-size: 14px; color: var(--grey-700); line-height: 1.5; }
.side-card-blue { background: #f2f7fc; border-color: #c3d8f0; }
.side-link { font-size: 14px; font-weight: 600; color: var(--eu-blue); }

@media (max-width: 980px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; }
}
@media (max-width: 600px) {
  .post-cta-banner { grid-template-columns: 1fr; }
  .post-cta-art { display: none; }
  .author-box { flex-direction: column; }
}

/* public label page: who published it */
.label-author { display: inline-flex; align-items: center; gap: 10px; }
.label-author .avatar { width: 28px; height: 28px; }
.label-author > span { display: flex; flex-direction: column; line-height: 1.3; }
.label-author a { font-size: 13px; }

/* shared author card (article + public label page): profile column + content column */
.author-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); border: 1px solid var(--grey-300); border-radius: 14px; overflow: hidden; background: var(--white); margin-bottom: 30px; box-shadow: 0 4px 18px rgba(9, 49, 142, .07); }
.author-card-profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 22px; background: linear-gradient(180deg, #eef4fb 0%, #f7f9fc 100%); border-right: 1px solid var(--grey-300); }
.author-card-profile .author-kicker { align-self: stretch; }
.author-card-avatar { width: 96px; height: 96px; border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--eu-yellow), 0 6px 16px rgba(9, 49, 142, .18); }
.author-card .author-name { margin: 4px 0 0; font-size: 21px; }
.author-card .author-name a { color: var(--ink); text-decoration: none; }
.author-card .author-name a:hover { color: var(--eu-blue); }
.author-since { font-size: 13px; color: var(--grey-500); }
.author-card .author-bio { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--grey-700); }
.author-card-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; align-self: stretch; margin-top: 8px; }
.author-card-content { padding: 22px 24px; min-width: 0; }
.author-card-content h3 { margin: 20px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500); }
.author-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.author-tiles div { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--grey-100); }
.author-tiles strong { font-size: 26px; font-weight: 800; color: var(--eu-blue); line-height: 1; }
.author-tiles span { font-size: 14px; color: var(--grey-700); }
.author-mini-labels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.author-mini-labels a { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--grey-300); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.author-mini-labels a:hover { border-color: var(--eu-blue-light); box-shadow: 0 4px 12px rgba(9, 49, 142, .12); }
.author-mini-labels img { width: 56px; height: auto; flex: none; }
.mini-label-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mini-label-text small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500); }
.mini-label-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-label-text em { font-style: normal; font-size: 12px; color: var(--eu-blue); font-weight: 600; margin-top: 2px; }
.author-mini-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.author-mini-posts a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mini-post-cover { flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--eu-blue); display: flex; align-items: center; justify-content: center; }
.mini-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-post-cover b { color: var(--white); font-size: 13px; }
.mini-post-text { display: flex; flex-direction: column; min-width: 0; }
.mini-post-text strong { font-size: 15px; line-height: 1.3; }
.author-mini-posts a:hover strong { color: var(--eu-blue); text-decoration: underline; }
.mini-post-text em { font-style: normal; font-size: 12px; color: var(--grey-500); }
.label-author-wrap { margin-top: 44px; }
.related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 40px 0 18px; }
.related-head .section-title { margin: 0; }
/* the article column is narrower: stack the card there */
.post-main .author-card { grid-template-columns: 1fr; }
.post-main .author-card-profile { border-right: 0; border-bottom: 1px solid var(--grey-300); }
.post-main .author-card-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .author-card { grid-template-columns: 1fr; }
  .author-card-profile { border-right: 0; border-bottom: 1px solid var(--grey-300); }
  .author-mini-labels { grid-template-columns: 1fr; }
}
/* public author page */
.author-hero-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.author-hero-avatar { width: 120px; height: 120px; border: 4px solid rgba(255, 255, 255, .85); box-shadow: 0 0 0 3px var(--eu-yellow); }
.author-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #dbe5f7; }
.author-hero-meta strong { color: var(--eu-yellow); font-size: 17px; }
.author-hero-meta a { color: var(--white); }

/* ------------------------------------------------- reputation / gamification */
.level-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; background: var(--grey-100); color: var(--grey-700); border: 1px solid var(--grey-300); white-space: nowrap; vertical-align: middle; }
.level-star { font-size: 13px; }
.level-points { padding: 2px 8px; border-radius: 999px; background: var(--white); color: var(--grey-700); font-weight: 600; font-size: 12px; }
.level-contributor { background: #e8f1fb; border-color: #c3d8f0; color: var(--eu-blue); }
.level-active { background: #e6f4ec; border-color: #b7dfc8; color: var(--green); }
.level-expert { background: #fff4d6; border-color: #f1d58a; color: #8a5a00; }
.level-ambassador { background: var(--eu-blue); border-color: var(--eu-blue); color: var(--eu-yellow); }
.level-ambassador .level-points { color: var(--eu-blue); }
.post-hero-band .level-badge { box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }

/* profile hero: stats as chips */
.author-hero-meta { gap: 8px; }
.author-hero-meta > span, .author-hero-meta > a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #e3ebfa; text-decoration: none; }
.author-hero-meta > a:hover { background: rgba(255, 255, 255, .18); }

/* contribution points panel */
.rep-panel { border: 1px solid var(--grey-300); border-radius: 14px; background: var(--white); padding: 20px 22px; margin-bottom: 40px; box-shadow: 0 4px 18px rgba(9, 49, 142, .06); }
.rep-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rep-panel-head strong { font-size: 18px; }
.rep-panel-head span { font-size: 14px; color: var(--grey-500); }
.rep-bar { height: 10px; border-radius: 999px; background: var(--grey-100); overflow: hidden; margin-bottom: 16px; }
.rep-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--eu-blue), var(--eu-blue-light)); }
.rep-breakdown { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rep-breakdown li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--grey-100); font-size: 14px; color: var(--grey-700); }
.rep-breakdown li strong { font-size: 24px; font-weight: 800; color: var(--eu-blue); line-height: 1.1; }
.rep-breakdown li em { font-style: normal; font-size: 12px; color: var(--grey-500); }

/* leaderboard */
.points-rules { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.points-rules li { padding: 6px 12px; border-radius: 999px; background: var(--grey-100); font-size: 14px; color: var(--grey-700); }
.points-rules strong { color: var(--green); }
.leaderboard { list-style: none; margin: 0; padding: 0; border: 1px solid var(--grey-300); border-radius: 12px; overflow: hidden; background: var(--white); }
.leaderboard li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--grey-300); }
.leaderboard li:first-child { border-top: 0; }
.leaderboard li.top { background: #fffbea; }
.lb-rank { width: 30px; text-align: center; font-weight: 800; font-size: 18px; color: var(--grey-500); }
.leaderboard li.top .lb-rank { color: #b58900; }
.leaderboard .avatar { width: 48px; height: 48px; }
.lb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-name a { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.lb-name a:hover { color: var(--eu-blue); text-decoration: underline; }
.lb-name small { font-size: 13px; color: var(--grey-500); }

/* comments */
.comments { margin: 10px 0 30px; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.comment { display: flex; gap: 12px; }
.comment .avatar { width: 44px; height: 44px; }
.comment-body { flex: 1; min-width: 0; background: var(--grey-100); border-radius: 0 12px 12px 12px; padding: 10px 14px; }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 4px; font-size: 13px; color: var(--grey-500); }
.comment-author { font-weight: 700; font-size: 15px; color: var(--ink); }
a.comment-author { color: var(--eu-blue); }
.comment-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 3px; background: var(--eu-blue); color: var(--white); }
.comment-tag-member { background: var(--white); color: var(--eu-blue); border: 1px solid #c3d8f0; }
.comment-text { font-size: 15px; line-height: 1.6; color: var(--grey-900); overflow-wrap: anywhere; }
.comment-form { border: 1px solid var(--grey-300); border-radius: 12px; padding: 18px 20px; background: var(--white); }
.comment-form h3 { margin: 0 0 12px; font-size: 18px; }
.comment-guest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.comment-as { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grey-700); margin: 0 0 10px; }
.comment-as .avatar { width: 28px; height: 28px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 700px) { .comment-guest { grid-template-columns: 1fr; } }

/* admin comment moderation */
.mod-list { display: grid; gap: 12px; }
.mod-item { padding: 16px 18px; }
.mod-head { display: flex; gap: 10px; align-items: flex-start; }
.mod-head .avatar { width: 36px; height: 36px; }
.mod-text { margin: 10px 0; padding: 10px 12px; background: var(--grey-100); border-radius: 8px; font-size: 15px; overflow-wrap: anywhere; }
.mod-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mod-actions { display: flex; gap: 6px; }

/* client dashboard: public profile + reputation */
.profile-share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; }
.profile-share .card h3 { margin-top: 0; }
.share-url { display: flex; border: 1px solid var(--grey-500); border-radius: var(--radius); overflow: hidden; margin: 10px 0; }
.share-url input { flex: 1; min-width: 0; border: 0; padding: 9px 10px; font: 14px Consolas, Menlo, monospace; background: var(--grey-100); color: var(--ink); }
.share-url button { border: 0; border-left: 1px solid var(--grey-300); background: var(--eu-blue); color: var(--white); font: 600 14px var(--font); padding: 0 14px; cursor: pointer; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.unlock-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 14px; }
.unlock-steps li { display: flex; align-items: center; gap: 8px; }
.unlock-steps .done { color: var(--green); font-weight: 700; }
@media (max-width: 900px) { .profile-share { grid-template-columns: 1fr; } }

/* panel: every top-level block sits in the same centred column, even components
   that set their own margin shorthand (chips, alerts, intro boxes…) */
.panel-main > * { margin-left: auto !important; margin-right: auto !important; }
.panel-main > .page-intro { max-width: 1020px; }

/* table action buttons wrap instead of overflowing the card */
td.row-actions { white-space: normal; }
td.row-actions > a, td.row-actions > form { display: inline-block; margin: 2px 0; }

/* client panel: new label form + live preview */
.label-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.label-form-preview { position: sticky; top: 20px; background: var(--white); border: 1px solid var(--grey-300); border-radius: 12px; padding: 16px; }
.label-form-preview-title { display: block; margin-bottom: 10px; font-size: 14px; }
.label-form-preview .preview-stage { background: repeating-conic-gradient(var(--grey-100) 0% 25%, var(--white) 0% 50%) 50% / 20px 20px; border: 1px solid var(--grey-300); border-radius: 8px; padding: 16px; display: flex; justify-content: center; min-height: 200px; align-items: center; }
.label-form-preview .preview-stage svg { width: 100%; max-width: 300px; height: auto; background: #fff; border: 1px solid #000; }
.label-form-preview .preview-stage.nested svg { border: 0; }
.field-error { margin-top: 8px; color: var(--red); font-size: 14px; }
@media (max-width: 980px) { .label-form-layout { grid-template-columns: 1fr; } .label-form-preview { position: static; order: -1; } }

/* my labels: card list instead of a table */
.my-labels { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ml-item { background: var(--white); border: 1px solid var(--grey-300); border-radius: 12px; transition: box-shadow .15s, border-color .15s; }
.ml-item:hover { box-shadow: 0 6px 20px rgba(9, 49, 142, .1); }
.ml-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 190px auto; gap: 18px; align-items: center; padding: 14px 18px; }
.ml-thumb { display: flex; align-items: center; justify-content: center; width: 76px; height: 80px; background: var(--grey-100); border-radius: 8px; }
.ml-thumb img { max-width: 64px; max-height: 68px; width: auto; height: auto; background: #fff; }
.ml-main { min-width: 0; }
.ml-title { display: flex; align-items: center; gap: 12px; }
.ml-dur { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 50px; height: 50px; padding: 0 6px; border-radius: 8px; background: var(--eu-blue); color: var(--white); font-weight: 800; font-size: 20px; line-height: 1; }
.ml-dur small { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--eu-yellow); margin-top: 3px; letter-spacing: .04em; }
.ml-name { display: flex; flex-direction: column; min-width: 0; }
.ml-name small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-500); }
.ml-name strong { font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.ml-meta .pill { text-decoration: none; }
.ml-tag { font-size: 12px; font-weight: 600; color: var(--grey-700); background: var(--grey-100); border-radius: 4px; padding: 3px 8px; }
.ml-date { font-size: 12px; color: var(--grey-500); }
.ml-note { margin: 8px 0 0; font-size: 13px; color: var(--red); }
.ml-muted { font-size: 13px; color: var(--grey-500); }
.ml-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.ml-remove { border: 1px solid transparent; background: none; border-radius: 6px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; color: var(--grey-500); }
.ml-remove:hover { border-color: #f4c7d1; background: #fbe7ec; color: var(--red); }
.ml-publish { margin: 0 18px 16px; padding: 16px 18px; border-radius: 10px; background: #f2f7fc; border: 1px solid #c3d8f0; }
.ml-publish h3 { margin: 0 0 12px; font-size: 16px; }
.ml-publish-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
@media (max-width: 900px) {
  .ml-row { grid-template-columns: 64px minmax(0, 1fr); }
  .ml-thumb { width: 64px; height: 70px; }
  .ml-rating, .ml-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
/* inline forms inside label cards keep their natural width (override .panel-main form) */
.panel-main .ml-actions form { width: auto; }
.panel-main .ml-item form.ml-publish { width: auto; }
.ml-remove { display: inline-flex; align-items: center; justify-content: center; }
.ml-remove svg { width: 18px; height: 18px; }

/* threaded comments (one reply level) */
.comment-list { gap: 18px; }
.comment-thread { list-style: none; }
.comment-main { flex: 1; min-width: 0; }
.comment-reply-btn { border: 0; background: none; color: var(--eu-blue); font: 600 13px var(--font); cursor: pointer; padding: 6px 4px 0; }
.comment-reply-btn:hover { text-decoration: underline; }
.comment-time { color: var(--grey-500); text-decoration: none; }
.comment-time:hover { text-decoration: underline; }
.comment-mention { font-weight: 700; color: var(--eu-blue); }
.comment-replies { list-style: none; margin: 10px 0 0 22px; padding: 0 0 0 22px; border-left: 2px solid var(--grey-300); display: grid; gap: 12px; }
.comment-replies .comment .avatar { width: 34px; height: 34px; }
.comment-replies .comment-body { background: #f7f9fc; }
.reply-slot:not(:empty) { margin: 12px 0 0 44px; }
.comment-form.is-reply { border-color: #c3d8f0; background: #f7fafd; }
.replying-to { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; font-weight: 600; color: var(--eu-blue); }
.replying-to button { border: 0; background: none; color: var(--grey-500); font: 600 13px var(--font); cursor: pointer; text-decoration: underline; }
@media (max-width: 600px) { .comment-replies { margin-left: 8px; padding-left: 12px; } .reply-slot:not(:empty) { margin-left: 0; } }

/* legal pages (public + admin) */
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: start; }
.legal-prose { max-width: 760px; margin-top: 0; }
.legal-prose h2 { font-size: 22px; }
.legal-nav { position: sticky; top: 20px; border: 1px solid var(--grey-300); border-radius: 12px; padding: 16px 18px; background: var(--white); }
.legal-nav ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.legal-nav a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--grey-700); text-decoration: none; font-size: 14px; }
.legal-nav a:hover { background: var(--grey-100); color: var(--eu-blue); }
.legal-nav a.active { background: #eef4fb; color: var(--eu-blue); font-weight: 700; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static; } }
.legal-cell { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; min-width: 130px; }
.legal-cell small { font-weight: 400; font-size: 12px; opacity: .8; }
.legal-cell.ok { background: #e6f4ec; color: var(--green); }
.legal-cell.warn { background: #fff4d6; color: #8a5a00; }
.legal-cell.missing { background: var(--grey-100); color: var(--grey-500); border: 1px dashed var(--grey-300); }
.legal-cell:hover { filter: brightness(.97); }

/* cookie notice */
.cookie-notice { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; pointer-events: none; }
.cookie-notice-inner { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 760px; padding: 14px 18px; background: var(--white); border: 1px solid var(--grey-300); border-radius: 12px; box-shadow: 0 12px 34px rgba(9, 49, 142, .22); }
.cookie-notice-inner p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--grey-700); }
.cookie-notice-icon { font-size: 22px; flex: none; }
.cookie-notice .btn { flex: none; }
@media (max-width: 600px) { .cookie-notice-inner { flex-wrap: wrap; } .cookie-notice .btn { width: 100%; } }

/* AI descriptions */
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; margin-bottom: 10px; }
.ai-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 18px; }
.label-about { margin-top: 40px; padding: 22px 24px; border: 1px solid var(--grey-300); border-radius: 12px; background: var(--white); }
.label-about h2 { margin: 0 0 6px; font-size: 22px; }
.label-about .prose { margin-top: 8px; font-size: 16px; }
.label-about-note { margin: 4px 0 0; font-size: 13px; color: var(--grey-500); }

/* admin: site settings */
.settings-section { margin-bottom: 20px; }
.settings-section h2 { margin: 0 0 4px; font-size: 19px; }
.settings-section > .hint { margin: 0 0 16px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 18px; }
.settings-grid .span-2 { grid-column: 1 / -1; }
.settings-clear { display: block; margin-top: 6px; font-weight: 400 !important; font-size: 13px; color: var(--grey-700); }
.settings-help { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--grey-700); display: grid; gap: 4px; }

/* contact page + admin inbox */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-side .side-card p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.contact-sent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding: 14px 16px; border-radius: 10px; background: #e6f4ec; color: var(--green); }
.contact-sent > span { font-size: 22px; font-weight: 800; }
.contact-sent p { margin: 2px 0 0; color: var(--grey-700); font-size: 14px; }
.msg-unread { border-color: var(--blue-200); background: var(--blue-50); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

/* error pages */
.error-page { padding-top: 56px; }
.error-hero { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.error-hero > div:last-child { flex: 1; min-width: 280px; }
.error-hero h1 { font-size: 34px; margin: 0; }
.error-code { flex: none; display: flex; align-items: center; gap: 6px; font-size: 120px; font-weight: 800; line-height: 1; color: var(--eu-blue); letter-spacing: -.04em; }
.error-badge { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--eu-yellow); color: var(--eu-blue); font-size: 54px; }
.error-search { display: flex; gap: 8px; max-width: 520px; }
.error-search input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--grey-500); border-radius: var(--radius); font: 16px var(--font); }
.error-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.error-links a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--grey-300); border-radius: 12px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.error-links a:hover { border-color: var(--eu-blue-light); box-shadow: 0 8px 22px rgba(9, 49, 142, .12); transform: translateY(-2px); }
.error-links strong { font-size: 16px; color: var(--eu-blue); }
.error-links span { font-size: 14px; color: var(--grey-700); }
@media (max-width: 600px) { .error-code { font-size: 80px; } .error-badge { width: 64px; height: 64px; font-size: 36px; } }

/* panel sub-navigation on phones: two even columns instead of a ragged wrap */
@media (max-width: 600px) {
  .panel-side { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px; }
  .panel-side a { padding: 10px 12px; }
}

/* generator: account nudge for guests */
.gen-account { margin-top: 22px; padding: 20px 22px; background: #f2f7fc; border: 1px solid #d4e3f3; border-radius: 8px; text-align: left; transition: box-shadow .3s, border-color .3s; }
.gen-account.is-ready { background: #fffbea; border-color: #f1d58a; box-shadow: 0 6px 22px rgba(0, 68, 148, .12); animation: gen-account-pop .5s var(--ease-out); }
@keyframes gen-account-pop { 0% { transform: scale(.98); } 60% { transform: scale(1.01); } 100% { transform: none; } }
.gen-account-title { font-size: 19px; margin: 0 0 6px; color: var(--eu-blue); }
.gen-account-sub { margin: 0 0 12px; font-size: 14px; color: var(--grey-700); }
.gen-account-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.gen-account-list li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; color: var(--grey-700); }
.gen-account-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--eu-blue); color: var(--white); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gen-account-list strong { color: var(--grey-900); }
.gen-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.gen-account-login { font-size: 14px; font-weight: 600; }
.gen-account-note { margin: 10px 0 0; font-size: 12.5px; color: #71778a; }
.gen-account-in { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
@media (max-width: 600px) { .gen-account-actions .btn { flex: 1 1 100%; text-align: center; } }

/* footer: disclaimer + "made by" badge */
.site-footer .legal-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.site-footer .legal-row p { margin: 0; flex: 1 1 420px; }
.site-footer a.made-by { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 14px; border: 1px solid #3a4354; border-radius: 999px; background: rgba(255, 255, 255, .04); color: #c9d2e3; font-size: 13px; text-decoration: none; transition: border-color .2s, background .2s; }
.site-footer a.made-by:hover { border-color: var(--eu-yellow); background: rgba(255, 214, 23, .08); color: var(--white); text-decoration: none; }
.site-footer a.made-by strong { color: var(--white); font-weight: 700; }
.made-by-heart { color: #ff5a6e; display: inline-block; transition: transform .2s; }
.made-by:hover .made-by-heart { transform: scale(1.25); }
@media (max-width: 860px) {
  .site-header .header-cta { white-space: nowrap; }
}
@media (max-width: 420px) {
  .site-header .topbar { column-gap: 8px; }
  .site-header .brand { font-size: 19px; gap: 7px; }
  .site-header .brand .brand-badge { font-size: 13px; padding: 1px 5px; }
  .site-header .header-cta { padding: 8px 10px; font-size: 13px; }
  .site-header .nav-toggle { width: 40px; }
}

/* feedback form (bug report / feature request) */
.fb-types { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fb-type { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--grey-300); border-radius: 10px; cursor: pointer; background: var(--white); transition: border-color .15s, background .15s; }
.fb-type:hover { border-color: #9db8dc; }
.fb-type input { position: absolute; opacity: 0; pointer-events: none; }
.fb-type:has(input:checked) { border-color: var(--eu-blue); background: #f2f7fc; box-shadow: 0 0 0 3px rgba(0, 68, 148, .1); }
.fb-type:has(input:focus-visible) { outline: 2px solid var(--eu-blue); outline-offset: 2px; }
.fb-type-icon { font-size: 26px; line-height: 1; flex: none; }
.fb-type strong { display: block; font-size: 15px; }
.fb-type small { display: block; color: var(--grey-700); font-size: 13px; margin-top: 2px; }
.fb-steps { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--grey-700); line-height: 1.5; }
.fb-steps li + li { margin-top: 6px; }
@media (max-width: 560px) { .fb-types { grid-template-columns: 1fr; } }

/* admin: bugs & ideas */
.fb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 18px; }
.fb-chip { padding: 6px 12px; border: 1px solid var(--grey-300); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--grey-900); background: var(--white); }
.fb-chip.active { background: var(--eu-blue); border-color: var(--eu-blue); color: var(--white); }
.fb-chip.active .muted { color: #c9d8f0; }
.fb-sep { width: 1px; height: 22px; background: var(--grey-300); margin: 0 6px; }
.fb-status { background: #eef1f6; color: #3b4558; }
.fb-status-new { background: #fff4d6; color: #8a5a00; }
.fb-status-planned { background: #e6efff; color: #1f4f9a; }
.fb-status-in_progress { background: #ece6ff; color: #4b2f9a; }
.fb-status-done { background: #e3f5e8; color: #1d6b34; }
.fb-status-declined { background: #f3e5e5; color: #8a2b2b; }
.panel-main form.fb-triage { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--grey-300); }
.fb-triage label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.fb-triage .fb-note { flex: 1 1 260px; }
.fb-triage .fb-notify { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; padding-bottom: 8px; }
.fb-triage .mod-actions { margin-left: auto; }
.fb-triage select, .fb-triage input[type=text] { padding: 8px 10px; border: 1px solid var(--grey-300); border-radius: var(--radius); font: inherit; font-size: 14px; font-weight: 400; background: var(--white); }
.save-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--grey-900); }
.save-toggle input { width: 18px; height: 18px; accent-color: var(--eu-blue); margin: 0; }
.save-status { margin: 10px 0 0; text-align: center; font-size: 13.5px; }
.save-status.is-ok { color: #1d6b34; }
.save-status.is-warn { color: #8a5a00; }

/* =====================================================================
 * Polish pass (impeccable): browser surfaces, side-tab removal, icons,
 * home variants + steps, dashboard stat strip
 * ===================================================================== */

/* tokens the pass needed */
:root {
  --blue-50: #f2f7fc;
  --blue-100: #e3edf8;
  --blue-200: #c9dbef;
  --amber-50: #fff8e6;
  --amber-200: #f1d58a;
  --amber-700: #6b4b00;
  --red-50: #fdf3f5;
  --red-200: #f1c7cf;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --focus-ring: 0 0 0 3px rgba(0, 111, 180, .35);
}

/* browser surfaces carry the palette */
::selection { background: var(--eu-yellow); color: var(--eu-blue-dark); }
html { accent-color: var(--eu-blue); caret-color: var(--eu-blue); scrollbar-color: #b7c2d3 transparent; }
a { text-underline-offset: .18em; text-decoration-thickness: from-font; }
:focus-visible { outline: 2px solid var(--eu-blue-light); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--eu-yellow); }
table, .num, .stat-strip strong, .author-tiles strong { font-variant-numeric: tabular-nums; }
h1, h2, h3, .section-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* icon family */
.icon { display: inline-block; vertical-align: -.2em; flex: none; }
.btn .icon, .pill .icon, .brand-chip .icon, .fb-chip .icon { vertical-align: -.22em; }
.panel-side a .icon { margin-right: 2px; color: var(--grey-500); }
.panel-side a.active .icon, .panel-side a:hover .icon { color: var(--eu-blue); }
.contact-line { display: flex; align-items: flex-start; gap: 10px; }
.contact-line .icon { margin-top: 3px; color: var(--eu-blue); }
.cookie-notice-icon { display: inline-flex; color: var(--eu-blue); font-size: inherit; }
.fb-type-icon { color: var(--eu-blue); display: inline-flex; }
.error-links strong .icon { color: var(--eu-blue); margin-right: 4px; }
.error-code .icon { width: 1em; height: 1em; vertical-align: 0; }
.label-about-note .icon { color: var(--eu-blue-light); }

/* side-tab accents → full, tinted outlines */
.notice-info { border-color: var(--blue-200); background: var(--blue-50); }
.notice-bad { border-color: var(--red-200); background: var(--red-50); }
.beta-note { color: var(--amber-700); }
.ml-item.is-delisted { background: var(--red-50); border-color: var(--red-200); }

/* home hero: the regulation is a fact, not an eyebrow */
.hero-reg { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13.5px; color: #b9c9ec; }
.hero-reg .icon { color: var(--eu-yellow); }

/* home: the three official variants */
.variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 30px; }
.variant { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.variant-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin-bottom: 12px; padding: 22px; border-radius: 10px; background: var(--grey-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='8' height='8' fill='%23e9edf2'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23e9edf2'/%3E%3C/svg%3E"); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.variant-art img { max-height: 100%; width: auto; max-width: 100%; box-shadow: 0 6px 18px rgba(9, 49, 142, .14); }
.variant-bw { filter: grayscale(1) contrast(1.05); }
.variant strong { font-size: 17px; color: var(--eu-blue); }
.variant > span:last-child { font-size: 14.5px; color: var(--grey-700); }
.variant:hover .variant-art { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(9, 49, 142, .14); }
.variants-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 30px 0 0; font-size: 14px; }
@media (max-width: 760px) { .variants { grid-template-columns: 1fr; gap: 22px; } .variant-art { aspect-ratio: 16 / 9; } }

/* home: how it works as one connected sequence */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; margin: 34px 0 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: calc(33.33% - 20px); height: 2px; background: linear-gradient(90deg, var(--eu-blue), var(--blue-200)); }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step); position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--eu-blue); color: var(--white); font-weight: 800; font-size: 16px; box-shadow: 0 0 0 6px var(--grey-100); }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--grey-700); font-size: 15px; max-width: 34ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--eu-blue), var(--blue-200)); }
  .steps li { padding-left: 60px; }
  .steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }
}

/* client dashboard: one stat strip instead of five identical tiles */
.stat-cards { display: flex; flex-wrap: wrap; gap: 0; padding: 0; background: var(--white); border: 1px solid var(--grey-300); border-radius: 10px; overflow: hidden; }
.stat-card { flex: 1 1 150px; border: 0; border-radius: 0; padding: 16px 20px; box-shadow: inset -1px 0 0 var(--grey-300), inset 0 -1px 0 var(--grey-300); }
.stat-card .num { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card .lbl { font-size: 13px; margin-top: 2px; }

/* panel lists: search (?q=) + sorting (partials/list-search, partials/sort-th) */
.panel-main form.list-search, form.list-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; width: 100%; margin: 0 0 16px; }
.list-search-field { position: relative; flex: 1 1 260px; max-width: 440px; display: flex; }
.list-search-field .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--grey-500); pointer-events: none; }
.list-search-field input { width: 100%; padding: 9px 12px 9px 34px; border: 1px solid var(--grey-300); border-radius: var(--radius); font: 15px var(--font); background: var(--white); color: var(--ink); }
.list-search-field input:focus { border-color: var(--eu-blue-light); outline: none; box-shadow: var(--focus-ring); }
.list-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grey-700); font-weight: 600; }
.list-sort select { padding: 8px 10px; border: 1px solid var(--grey-300); border-radius: var(--radius); font: 14px var(--font); background: var(--white); color: var(--ink); }
.list-search-clear { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--grey-700); text-decoration: none; }
.list-search-clear:hover { color: var(--red); }
.list-search-note { margin: -6px 0 14px; font-size: 13px; color: var(--grey-500); }
table.data th[aria-sort] { padding: 0; }
.sort-link { display: flex; align-items: center; gap: 4px; padding: 10px 12px; color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link .icon { color: var(--grey-300); transition: color .15s; }
.sort-link:hover .icon, .sort-link.is-active .icon { color: var(--eu-blue); }
.sort-link.is-active { color: var(--eu-blue); }
@media (max-width: 600px) {
  .list-search-field { max-width: none; flex-basis: 100%; }
  .list-sort { flex: 1 1 auto; }
  .list-sort select { flex: 1; }
}

/* admin settings: OAuth URLs to copy into Google Cloud */
.oauth-urls { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; align-items: center; margin: 4px 0 10px; font-size: 14px; }
.oauth-urls dt { font-weight: 600; color: var(--grey-700); }
.oauth-urls dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.oauth-urls code { overflow-wrap: anywhere; background: var(--grey-100); border: 1px solid var(--grey-300); border-radius: var(--radius); padding: 4px 8px; font-size: 13px; }
@media (max-width: 700px) { .oauth-urls { grid-template-columns: 1fr; } .oauth-urls dt { margin-top: 6px; } }

/* pagination (resources/views/vendor/pagination/garan.blade.php) */
.pagination { align-items: center; margin-top: 24px; }
.pagination a, .pagination span { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); color: var(--eu-blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--eu-blue); background: var(--blue-50); }
.pagination .current { color: var(--white); }
.pagination .is-disabled { color: var(--grey-500); background: var(--grey-100); cursor: default; }
.pagination .page-gap { border: 0; background: none; min-width: 20px; color: var(--grey-500); }

/* site form: richer injection rules */
.rule-inline { display: flex; gap: 8px; }
.rule-inline > * { flex: 1 1 0; min-width: 0; }
.rule-inline .rule-nth { flex: 0 0 76px; }

/* admin users */
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .inline-form { display: inline; }
.panel-main form.user-block-form { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.user-block-form input { flex: 1 1 260px; }

.rule-head-actions { display: inline-flex; align-items: center; gap: 8px; }
