:root {
  --ink: #14201d;
  --body: #3c4a46;
  --muted: #6b7975;
  --paper: #f7f6f2;
  --card: #ffffff;
  --line: #e2ded5;
  --line-soft: #eeebe4;
  --copper: #b87333;
  --copper-dark: #8f5722;
  --green: #14503c;
  --green-deep: #0d2f24;
  --green-ink: #08201a;
  --accent: #d4af37;
  --btn-bg: var(--accent);
  --btn-fg: var(--green-ink);
  --btn-hover: color-mix(in srgb, var(--accent) 78%, #111);
  --btn-shadow: color-mix(in srgb, var(--accent) 32%, transparent);
  --danger: #b42318;
  --warn: #b54708;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 29, .06), 0 2px 8px rgba(20, 32, 29, .05);
  --shadow-md: 0 4px 12px rgba(20, 32, 29, .08), 0 12px 32px rgba(20, 32, 29, .07);
  --max: 1200px;
  --hero-copy: 820px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  --font-display: Georgia, "Noto Serif TC", "PMingLiU", "Songti TC", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; }

.swal2-popup {
  font-family: var(--font) !important;
}
.swal2-title, .swal2-html-container {
  color: var(--ink) !important;
}
.swal2-styled.swal2-confirm {
  background-color: var(--green) !important;
}
.swal2-styled.swal2-cancel {
  background-color: #6b7975 !important;
}
.swal2-icon.swal2-success [class^=swal2-success-line] {
  background-color: var(--green) !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
  border-color: var(--green) !important;
}
body.font-sm { font-size: 15px; }
body.font-md { font-size: 16px; }
body.font-lg { font-size: 17px; }
body { --nav-font-size: 14.5px; }
body.nav-font-sm { --nav-font-size: 13px; }
body.nav-font-md { --nav-font-size: 14.5px; }
body.nav-font-lg { --nav-font-size: 16px; }
body.nav-font-xl { --nav-font-size: 18px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 0 0 16px; }
h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 10px; }
p { margin: 0 0 16px; }

a { color: var(--green); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--copper); }

img { max-width: 100%; height: auto; }
.prose img { max-width: 100%; height: auto; width: auto; }
.prose figure { margin: 12px 0; max-width: 100%; }
.prose figure img { display: block; height: auto; max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg, rgba(8, 32, 26, .96));
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.site-header .bar {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  flex-wrap: nowrap;
}

.logo { display: flex; gap: 8px; align-items: baseline; color: #fff; flex: 0 0 auto; }
.logo.has-image { align-items: center; }
.logo img { height: 36px; width: auto; display: block; }
.logo:hover { color: #fff; }
.logo .mark {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .16em;
  color: var(--accent);
}
.logo .name { font-size: 15px; font-weight: 600; color: #eef4f0; }
.logo .ticker {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent);
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 999px;
  padding: 1px 9px;
}

.nav { display: flex; gap: 2px; flex-wrap: nowrap; justify-content: flex-end; flex: 1 1 auto; }
.nav a {
  color: var(--header-nav-text, #dce7e1);
  font-size: var(--nav-font-size, 14.5px);
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); color: #fff; }
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-group > a { display: inline-block; }
.nav-more,
.nav-toggle { display: none; }
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--mobile-nav-backdrop, rgba(0, 0, 0, .45));
  cursor: pointer;
}
.nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 8px 0;
  background: var(--header-drop-bg, var(--header-bg));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 8px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--header-bg) 40%, transparent);
  z-index: 40;
}
.nav-group:hover > .nav-drop,
.nav-group:focus-within > .nav-drop { display: flex; flex-direction: column; }
.nav-drop a { display: block; padding: 8px 14px; white-space: nowrap; color: var(--header-nav-text, #dce7e1); }
.nav-drop a:hover { color: #fff; }

.nav.nav-underline a { background: transparent; border-radius: 0; border-bottom: 2px solid transparent; }
.nav.nav-underline a:hover { background: transparent; color: var(--accent); border-bottom-color: var(--accent); }
.nav.nav-underline .nav-drop a { border-bottom: 0; }

.nav.nav-pills a { border-radius: 999px; padding: 7px 14px; }
.nav.nav-pills a:hover { background: var(--accent); color: color-mix(in srgb, var(--header-bg) 85%, #000); }
.nav.nav-pills .nav-drop { border-radius: 12px; }
.nav.nav-pills .nav-drop a { border-radius: 6px; margin: 0 6px; }

.nav.nav-tabs a { border-radius: 0; background: transparent; border-bottom: 3px solid transparent; }
.nav.nav-tabs a:hover { background: rgba(212,175,55,.08); color: #fff; border-bottom-color: var(--accent); }
.nav.nav-tabs .nav-drop a { border-bottom: 0; }

.nav.nav-compact { gap: 0; }
.nav.nav-compact a { font-size: var(--nav-font-size, 14.5px); padding: 7px 8px; letter-spacing: .02em; }

.tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.tools a {
  color: #cfded7;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  transition: all .18s ease;
}
.tools a:hover { background: var(--accent); border-color: var(--accent); color: var(--green-ink); }
.tools a.is-current { background: rgba(212, 175, 55, .18); border-color: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.site-main { min-height: 60vh; padding: 0 0 88px; }

.site-main > * {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main > .hero { max-width: none; padding: 0; }

.site-main > section,
.site-main > article,
.site-main > .quote,
.site-main > .figure,
.site-main > .video-wrap,
.site-main > .faq-wrap,
.site-main > .block-contact { margin-bottom: 56px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  padding: 0;
  margin-bottom: 64px;
  background-image:
    linear-gradient(100deg, rgba(8, 32, 26, .93) 0%, rgba(8, 32, 26, .78) 46%, rgba(8, 32, 26, .28) 100%),
    url('/media/yufoai.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 88px 24px;
}

.hero-body { max-width: min(100%, var(--hero-copy, 820px)); }

.hero .eyebrow,
.hero-html .eyebrow,
.sun-editor-editable .eyebrow {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
}

.hero h1,
.hero-html h1,
.ve-hero-wysiwyg .sun-editor-editable h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  white-space: pre-line;
}

.hero .lead,
.hero-html .lead,
.ve-hero-wysiwyg .sun-editor-editable .lead {
  color: #d5e2dc;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  margin: 0 0 30px;
  white-space: pre-line;
}

.hero-track { position: relative; width: 100%; min-height: 460px; }
.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.is-slider .hero-slide {
  position: absolute;
  inset: 0;
  min-height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .7s ease, visibility .7s;
}
.hero.is-slider .hero-slide.is-on {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-align-center .hero-body { margin-left: auto; margin-right: auto; text-align: center; }
.hero-align-right .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-align-right .hero-body { text-align: right; }
.hero-align-right .hero-html { align-self: stretch; }
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 32, 26, .45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.hero-prev:hover,
.hero-next:hover { background: rgba(8, 32, 26, .75); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
}
.hero-dot.is-on { background: #fff; }
.hero-html { color: #d5e2dc; margin-top: 18px; }
.hero-html.is-canvas { margin-top: 0; max-width: min(100%, var(--hero-copy, 820px)); }
.hero-align-center .hero-html.is-canvas { margin-left: auto; margin-right: auto; text-align: center; }
.hero-html h2,
.hero-html h3,
.hero-html h4,
.ve-hero-wysiwyg .sun-editor-editable h2,
.ve-hero-wysiwyg .sun-editor-editable h3,
.ve-hero-wysiwyg .sun-editor-editable h4 {
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -.01em;
  text-shadow: none;
  margin: 0 0 10px;
}
.hero-html p { margin: 0 0 12px; }
.hero-html a:not(.btn):not([data-yufo-btn]) { color: var(--accent); }
.hero a.btn:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.hero-html a.btn:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.hero-html .hero-cta a:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.hero-html p > a:only-child:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.ve-hero-wysiwyg .sun-editor-editable a.btn:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.ve-hero-wysiwyg .sun-editor-editable .hero-cta a:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.ve-hero-wysiwyg .sun-editor-editable p > a:only-child:not(.btn-ghost):not(.btn-ink):not(.btn-light) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg, var(--accent)) !important;
  color: var(--btn-fg, #fff) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1.2;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  border: 0 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px var(--btn-shadow, color-mix(in srgb, var(--accent) 32%, transparent));
  margin: 4px 8px 4px 0;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.hero a.btn:hover:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.hero-html a.btn:hover:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.hero-html .hero-cta a:hover:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.hero-html p > a:only-child:hover:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.ve-hero-wysiwyg .sun-editor-editable a.btn:hover:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.ve-hero-wysiwyg .sun-editor-editable .hero-cta a:hover:not(.btn-ghost):not(.btn-ink):not(.btn-light),
.ve-hero-wysiwyg .sun-editor-editable p > a:only-child:hover:not(.btn-ghost):not(.btn-ink):not(.btn-light) {
  color: var(--btn-fg, #fff) !important;
  background: var(--btn-hover, color-mix(in srgb, var(--btn-bg, var(--accent)) 78%, #111)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--btn-shadow, color-mix(in srgb, var(--accent) 40%, transparent));
}
.hero-html .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 8px;
}
.hero-html .btn-row .btn { margin: 0; }
.hero-html a.btn.btn-ghost,
.hero-html .hero-cta a.btn-ghost,
.hero-html p > a.btn-ghost:only-child,
.ve-hero-wysiwyg .sun-editor-editable a.btn.btn-ghost,
.ve-hero-wysiwyg .sun-editor-editable p > a.btn-ghost:only-child {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  box-shadow: none;
}
.hero-html a.btn.btn-ghost:hover,
.hero-html .hero-cta a.btn-ghost:hover,
.hero-html p > a.btn-ghost:only-child:hover,
.ve-hero-wysiwyg .sun-editor-editable a.btn.btn-ghost:hover,
.ve-hero-wysiwyg .sun-editor-editable p > a.btn-ghost:only-child:hover {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  border-color: #fff !important;
  transform: translateY(-2px);
}
.hero-html a.btn.btn-gold,
.sun-editor-editable a.btn.btn-gold {
  background: var(--btn-bg, var(--accent)) !important;
  color: var(--btn-fg, #fff) !important;
  box-shadow: 0 4px 14px var(--btn-shadow, color-mix(in srgb, var(--accent) 32%, transparent));
}
.hero-html a.btn.btn-ink,
.hero-html .hero-cta a.btn-ink,
.hero-html p > a.btn-ink:only-child,
.ve-hero-wysiwyg .sun-editor-editable a.btn.btn-ink,
.ve-hero-wysiwyg .sun-editor-editable p > a.btn-ink:only-child {
  background: #061410 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.hero-html a.btn.btn-light,
.hero-html .hero-cta a.btn-light,
.hero-html p > a.btn-light:only-child,
.ve-hero-wysiwyg .sun-editor-editable a.btn.btn-light,
.ve-hero-wysiwyg .sun-editor-editable p > a.btn-light:only-child {
  background: #fff !important;
  color: #14201d !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.hero-html a.btn.btn-gold:hover,
.sun-editor-editable a.btn.btn-gold:hover {
  background: var(--btn-hover, color-mix(in srgb, var(--accent) 78%, #111)) !important;
  color: var(--btn-fg, #fff) !important;
}
.hero-html a.btn.btn-ink:hover,
.hero-html .hero-cta a.btn-ink:hover,
.hero-html p > a.btn-ink:only-child:hover,
.ve-hero-wysiwyg .sun-editor-editable a.btn.btn-ink:hover,
.ve-hero-wysiwyg .sun-editor-editable p > a.btn-ink:only-child:hover {
  background: #000 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .4) !important;
  transform: translateY(-2px);
}
.hero-html a.btn.btn-light:hover,
.hero-html .hero-cta a.btn-light:hover,
.hero-html p > a.btn-light:only-child:hover,
.ve-hero-wysiwyg .sun-editor-editable a.btn.btn-light:hover,
.ve-hero-wysiwyg .sun-editor-editable p > a.btn-light:only-child:hover {
  background: #f3f1ea !important;
  color: #14201d !important;
  transform: translateY(-2px);
}
.hero-html .hero-grid,
.hero-html .hero-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  text-align: left;
}
.hero-html .hero-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-html .hero-rule {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.28);
  margin: 18px 0;
}
.ve-hero-wysiwyg {
  margin-top: 22px;
  max-width: none;
  width: 100%;
}
.ve-hero-wysiwyg.hero-html.is-canvas {
  margin-top: 0;
  max-width: none;
  width: 100%;
}
.ve-hero-wysiwyg-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.ve-hero-wysiwyg-label {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.ve-hero-wysiwyg-hint {
  width: 100%;
  margin: 0;
  color: #d5e2dc;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.ve-hero-snips .btn:not(.btn-ghost) {
  background: var(--btn-bg, #d4af37) !important;
  color: var(--btn-fg, #08201a) !important;
}
.ve-hero-wysiwyg .ve-hero-snips { margin: 0; }
.ve-hero-wysiwyg-bar .btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border-color: rgba(255,255,255,.35);
}
.ve-hero-wysiwyg-bar .btn-ghost:hover {
  background: #fff;
  color: var(--green-ink) !important;
}
.ve-hero-btn-styles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ve-hero-btn-styles > span {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.ve-hero-wysiwyg .sun-editor {
  border: 1px dashed rgba(255,255,255,.4);
  border-radius: 8px;
  background: transparent;
}
.ve-hero-wysiwyg .sun-editor .se-toolbar {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  border-radius: 8px 8px 0 0;
  background: rgba(255,255,255,.96);
  height: auto !important;
  overflow: visible !important;
}
.admin-app .sun-editor .se-toolbar,
.ve-hero-wysiwyg .sun-editor .se-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.admin-app .sun-editor .se-btn-module,
.admin-app .sun-editor .se-btn-module-border,
.ve-hero-wysiwyg .sun-editor .se-btn-module,
.ve-hero-wysiwyg .sun-editor .se-btn-module-border {
  float: none !important;
  display: inline-flex !important;
  height: auto;
}
.admin-app .sun-editor .se-toolbar-more-layer,
.ve-hero-wysiwyg .sun-editor .se-toolbar-more-layer {
  width: 100%;
  flex: 1 0 100%;
}
.admin-app .sun-editor .se-more-layer,
.ve-hero-wysiwyg .sun-editor .se-more-layer {
  display: block !important;
}
.ve-hero-wysiwyg .sun-editor .se-wrapper,
.ve-hero-wysiwyg .sun-editor .se-wrapper-inner,
.ve-hero-wysiwyg .sun-editor-editable {
  background: transparent !important;
  color: #d5e2dc !important;
  font-family: var(--font) !important;
}
.ve-hero-wysiwyg .sun-editor {
  width: 100%;
}
.ve-hero-wysiwyg .sun-editor-editable {
  min-height: 420px;
  max-width: min(100%, var(--hero-copy, 820px));
  width: 100%;
}
.ve-hero-wysiwyg .sun-editor-editable h1,
.ve-hero-wysiwyg .sun-editor-editable h2,
.ve-hero-wysiwyg .sun-editor-editable h3 {
  color: #fff !important;
  font-family: var(--font-display) !important;
}
.ve-hero-wysiwyg .sun-editor .se-resizing-bar {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.45);
}
.ve-hero-wysiwyg .se-placeholder {
  color: rgba(255,255,255,.45);
}
.hero.is-slider,
.hero.is-plain {
  background-image: none;
  background-color: #08201a;
}

.hero-html hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .35);
  margin: 8px 0 18px;
}

/* SunEditor text/paragraph styles must also exist on the public site */
.__se__solid { border-style: solid none none; }
.__se__dotted { border-style: dotted none none; }
.__se__dashed { border-style: dashed none none; }
.__se__float-left { float: left; margin-right: 4px; }
.__se__float-right { float: right; margin-left: 4px; }
.__se__float-center { display: block; margin-left: auto; margin-right: auto; }
.__se__float-none { float: none; }
.__se__p-bordered { border-top: 1px solid #b1b1b1; border-bottom: 1px solid #b1b1b1; padding: 4px 0; }
.__se__p-spaced { letter-spacing: 1px; }
.__se__p-neon {
  font-weight: 200 !important;
  font-style: italic !important;
  background: #000 !important;
  color: #fff !important;
  padding: 6px 4px;
  border: 2px solid #fff !important;
  border-radius: 6px;
  text-transform: uppercase !important;
  animation: neonFlicker 1.5s infinite alternate;
}
.__se__t-shadow {
  text-shadow:
    -.2rem -.2rem 1rem #fff,
    .2rem .2rem 1rem #fff,
    0 0 .2rem #999,
    0 0 .4rem #888,
    0 0 .6rem #777,
    0 0 .8rem #666,
    0 0 1rem #555 !important;
}
.__se__t-code {
  font-family: ui-monospace, Consolas, monospace !important;
  color: #d5e2dc !important;
  background-color: rgba(255, 255, 255, .08) !important;
  border-radius: 6px;
  padding: .2em .4em;
}
.__se__p-quote {
  border-left: 3px solid var(--accent) !important;
  padding: 2px 0 2px 16px !important;
  margin: 0 0 12px;
}
.__se__p-muted {
  color: var(--muted) !important;
  font-size: .95em !important;
}
.__se__p-box {
  background: var(--line-soft, #eeebe4) !important;
  padding: 12px 16px !important;
  border-radius: 8px;
}
.__se__p-caps {
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}
.__se__t-gold {
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.__se__t-white {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.__se__t-mark {
  background: color-mix(in srgb, var(--accent) 28%, transparent) !important;
  padding: 0 .18em;
  border-radius: 2px;
}
.__se__t-kicker {
  font-size: .82em !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}
.__se__t-soft {
  text-shadow: 0 0 12px rgba(255, 255, 255, .55) !important;
}
.hero-html .__se__p-muted,
.ve-hero-wysiwyg .sun-editor-editable .__se__p-muted {
  color: #b7c7c1 !important;
}
.hero-html .__se__p-box,
.ve-hero-wysiwyg .sun-editor-editable .__se__p-box {
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}
.hero-html .__se__p-quote,
.ve-hero-wysiwyg .sun-editor-editable .__se__p-quote {
  border-left-color: #e4c35a !important;
  color: #e8eeea;
}
.hero-html .__se__t-gold,
.ve-hero-wysiwyg .sun-editor-editable .__se__t-gold,
.hero .__se__t-gold {
  color: #e4c35a !important;
}
.hero-html .__se__t-white,
.ve-hero-wysiwyg .sun-editor-editable .__se__t-white {
  color: #fff !important;
}
.hero-html .__se__t-code,
.ve-hero-wysiwyg .sun-editor-editable .__se__t-code {
  color: #d5e2dc !important;
  background-color: rgba(255, 255, 255, .12) !important;
}
.prose .__se__t-code {
  color: var(--ink) !important;
  background: var(--line-soft) !important;
}
@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: -.2rem -.2rem 1rem #fff, .2rem .2rem 1rem #fff, 0 0 2px #f40, 0 0 4px #f40, 0 0 6px #f40, 0 0 8px #f40, 0 0 10px #f40;
    box-shadow: 0 0 .5px #fff, inset 0 0 .5px #fff, 0 0 2px #08f, inset 0 0 2px #08f, 0 0 4px #08f, inset 0 0 4px #08f;
  }
  20%, 24%, 55% {
    text-shadow: none;
    box-shadow: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--green-ink)) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--btn-shadow, color-mix(in srgb, var(--accent) 32%, transparent));
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover {
  background: var(--btn-hover, color-mix(in srgb, var(--btn-bg, var(--accent)) 78%, #111));
  color: var(--btn-fg, var(--green-ink)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--btn-shadow, color-mix(in srgb, var(--accent) 40%, transparent));
}
.btn-ghost {
  background: transparent;
  color: var(--green) !important;
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--paper);
  color: var(--green-ink) !important;
  transform: none;
  box-shadow: none;
}
@media (max-width: 800px) {
  .lang-form { grid-template-columns: 1fr; }
}

.analytics { margin-top: 36px; }
.analytics .facts { grid-template-columns: repeat(3, 1fr); }
.analytics-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.analytics .range a { margin-right: 10px; }
.analytics .range a.is-on { color: var(--green); font-weight: 700; }
.chart { width: 100%; max-width: 960px; height: 160px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.data.compact td, .data.compact th { padding: 8px 10px; font-size: 14px; }
.tag-bot, .tag-human {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 7px;
  letter-spacing: .04em;
}
.tag-bot { color: #8a4b12; background: #f6e6d0; }
.tag-human { color: var(--green); background: rgba(20, 80, 60, .1); }
.ip-identity { max-width: 220px; }
.ip-identity .ip-host {
  font-size: 12px; line-height: 1.35; word-break: break-all;
}
.ip-identity .ip-org { font-size: 12px; margin-top: 2px; }
@media (max-width: 900px) { .analytics-grid { grid-template-columns: 1fr; } }

/* ---------- Facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.facts div {
  padding: 26px 24px;
  border-right: 1px solid var(--line-soft);
  text-align: center;
}
.facts div:last-child { border-right: 0; }

.facts span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.facts strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  color: var(--body);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--copper);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d3cdc0;
  color: var(--body);
}
.card:hover::before { transform: scaleY(1); }

.card h3 { color: var(--ink); }
.card:hover h3 { color: var(--green); }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card img {
  display: block;
  width: calc(100% + 52px);
  max-width: none;
  height: 160px;
  object-fit: cover;
  margin: -28px -26px 16px;
}
a.card { color: inherit; }
.card.is-link { cursor: pointer; }
.card:not(.is-link) { cursor: default; }
.card:not(.is-link):hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}
.card:not(.is-link):hover::before { transform: none; }
.card:not(.is-link):hover h3 { color: var(--ink); }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .02em;
}
.card-more::after {
  content: "\2192";
  transition: transform .2s ease;
}
.card.is-link:hover .card-more { color: var(--ink); }
.card.is-link:hover .card-more::after { transform: translateX(4px); }

/* ---------- Quality certs ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.cert-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 210px;
}
.cert-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 8px;
  background: linear-gradient(180deg, #fff 0%, #f6f7f8 100%);
  min-height: 118px;
}
.cert-logo img {
  width: 100%;
  max-width: 180px;
  height: 92px;
  object-fit: contain;
}
.cert-body { margin-top: auto; }
.cert-mark {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--green);
  line-height: 1.25;
  text-align: center;
}
.cert-card:not(.has-logo) .cert-logo .cert-mark { font-size: 20px; }
.cert-card.has-logo .cert-body .cert-mark { display: none; }
.cert-note {
  margin: 0;
  padding: 10px 10px 12px;
  font-size: 12.5px;
  color: #fff;
  line-height: 1.5;
  text-align: center;
  background: #1e4e72;
  white-space: pre-line;
}
.cert-note p { margin: 0 0 .35em; color: inherit; }
.cert-note p:last-child { margin: 0; }
.cert-card:nth-child(n+7) {
  grid-column: span 3;
  flex-direction: row;
  align-items: stretch;
  min-height: 140px;
}
.cert-card:nth-child(n+7) .cert-logo {
  flex: 0 0 168px;
  min-height: 0;
  border-right: 1px solid var(--line);
}
.cert-card:nth-child(n+7) .cert-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px;
  text-align: left;
}
.cert-card.has-logo:nth-child(n+7) .cert-body .cert-mark {
  display: block;
  text-align: left;
  color: var(--ink);
  margin-bottom: 6px;
}
.cert-card:nth-child(n+7) .cert-note {
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0;
}

@media (max-width: 1100px) {
  .certs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cert-card:nth-child(n+7) { grid-column: span 3; }
}
@media (max-width: 640px) {
  .certs-grid { grid-template-columns: 1fr; }
  .cert-card:nth-child(n+7) {
    grid-column: auto;
    flex-direction: column;
  }
  .cert-card:nth-child(n+7) .cert-logo { flex-basis: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}

.cards-wrap > h2,
.certs-wrap > h2,
.timeline-wrap > h2,
.columns-wrap > h2 {
  padding-left: 14px;
  border-left: 4px solid var(--copper);
}

/* ---------- Figure ---------- */
.figure img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.figure.is-center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.figure.is-left {
  float: left;
  width: 46%;
  margin: 0 28px 16px 0;
}
.figure.is-right {
  float: right;
  width: 46%;
  margin: 0 0 16px 28px;
}
.figure.is-full { width: 100%; }

/* ---------- Split / quote / columns ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split.is-flip .split-media { order: 2; }
.split-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  max-height: 420px;
}
.split-copy .btn { margin-top: 12px; }

.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.quote p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

.text-cols {
  display: grid;
  gap: 28px 36px;
}
.text-cols.is-1 { grid-template-columns: 1fr; }
.text-cols.is-2 { grid-template-columns: 1fr 1fr; }
.text-cols.is-3 { grid-template-columns: 1fr 1fr 1fr; }
.text-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.text-col h3 { margin: 0 0 10px; color: var(--ink); }
.text-col p { margin: 0 0 0.8em; color: var(--muted); }
.text-col p:last-child { margin-bottom: 0; }
.text-col img { max-width: 100%; height: auto; }
.text-col ul, .text-col ol { padding-left: 1.2em; margin: 0 0 0.8em; }
.ve-col-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.ve-preview.ve-columns .text-cols.is-2,
.ve-preview.ve-columns .text-cols.is-3 {
  grid-template-columns: 1fr;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 28px;
  box-shadow: var(--shadow-sm);
}

.timeline div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.timeline div:last-child { border-bottom: 0; }

.timeline strong {
  position: relative;
  font-size: 20px;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
}

.timeline p { margin: 0; }

/* ---------- Video ---------- */
.video-wrap > h2,
.faq-wrap > h2,
.block-contact > h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 32px);
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0a1a14;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption,
.contact-intro {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 720px;
  white-space: pre-line;
}

.ve-video-preview { margin-top: 12px; max-width: 640px; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child { border-bottom: 0; }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  line-height: 1.45;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item[open] summary { color: var(--brand); }

.faq-a {
  padding: 0 22px 18px;
  color: var(--muted);
}

.faq-a p { margin: 0; white-space: pre-line; }

.ve-faq-edit { display: grid; gap: 14px; margin-top: 12px; }

.ve-faq-item {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.ve-field textarea {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  resize: vertical;
}

.block-contact .contact-form { margin-top: 8px; }

/* ---------- Page head ---------- */
.page-head {
  padding-top: 56px !important;
  padding-bottom: 36px;
  margin-bottom: 40px !important;
  border-bottom: 1px solid var(--line);
}

.page-head .eyebrow,
.eyebrow {
  color: var(--copper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.page-head h1 { margin: 0; }

/* ---------- Prose ---------- */
/* The 1200px column comes from `.site-main > *`; cap the reading measure per child
   so tables can still use the full width. */
.prose > :not(table) { max-width: 940px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose h2 {
  padding-left: 14px;
  border-left: 4px solid var(--copper);
}

/* ---------- Tables ---------- */
.docs-cards { margin-top: 8px; }
.ve-doc-preview { margin: 8px 0; padding-left: 20px; color: var(--muted); }
.docs h2 {
  padding-left: 14px;
  border-left: 4px solid var(--copper);
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.file-list li:last-child { border-bottom: 0; }
.file-list li::before {
  content: "\2193";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1b7a4e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-list .file-video::before {
  content: "\25B6";
  background: #d32f2f;
}
.file-list .file-link::before { background: #8f5722; content: "\2197"; }
.file-list a { font-weight: 600; color: var(--ink); }
.file-list a:hover { color: var(--green); }
.file-list.is-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.file-list.is-2col li { border-right: 1px solid var(--line-soft); }
.file-list.is-2col li:nth-child(2n) { border-right: 0; }
.docs-years { display: grid; gap: 22px; }
.docs-years h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.docs-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.docs-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111 center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.docs-thumb.is-plain { background: #1a1a1a; }
.docs-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.docs-thumb-play::before {
  content: "";
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.docs-thumb-play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.docs-thumb-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}
.docs-thumb:hover { color: #fff; }
body.theme-neo-brutal .docs-thumb {
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: 6px 6px 0 #000;
}
body.theme-neo-brutal .docs-thumb:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
  background-color: #111;
}
body.theme-neo-brutal .docs-years h3 {
  border-left: 6px solid var(--accent);
  border-bottom: 3px solid #000;
  padding: 0 0 6px 10px;
}
body.theme-neo-brutal a.docs-thumb:hover {
  background-color: transparent;
  color: #fff;
}
@media (max-width: 900px) {
  .docs-thumbs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .file-list.is-2col { grid-template-columns: 1fr; }
  .file-list.is-2col li { border-right: 0; }
  .docs-thumbs { grid-template-columns: 1fr; }
}
.file-list.has-icon li::before,
.file-list li.has-icon::before,
.file-list li.has-icon a::before,
.file-list li.has-icon .file-video::before,
.file-list li.has-icon .file-link::before {
  content: none;
  display: none;
}
img.yufo-icon,
span.yufo-icon,
.sun-editor img.yufo-icon,
.sun-editor-editable img.yufo-icon,
.prose img.yufo-icon,
.text-col img.yufo-icon {
  width: 1.35em !important;
  height: 1.35em !important;
  max-width: 28px !important;
  max-height: 28px !important;
  display: inline-block !important;
  vertical-align: -0.25em;
  margin: 0 0.2em 0 0;
}
span.yufo-icon {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.sun-editor .se-component:has(img.yufo-icon),
.sun-editor .se-image-container:has(img.yufo-icon) {
  display: inline-block !important;
  width: auto !important;
  max-width: 32px !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  vertical-align: middle;
}
.sun-editor .se-component:has(img.yufo-icon) figure,
.sun-editor .se-component:has(img.yufo-icon) figcaption {
  display: none;
}

.player-mask {
  position: fixed;
  inset: 0;
  background: rgba(8, 32, 26, .72);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.player-mask[hidden] { display: none; }
.player-box {
  width: min(960px, 100%);
  background: #0d2f24;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #fff;
}
.player-head h3 { margin: 0; font-size: 16px; color: #fff; }
.player-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
.player-frame { position: relative; padding-top: 56.25%; background: #000; }
.player-frame iframe,
.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
body.player-open { overflow: hidden; }

.data, .prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}

.data thead th, .prose thead th {
  background: var(--green-deep);
  color: #eaf1ed;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-align: left;
  padding: 13px 18px;
  border: 0;
}

.data td, .data th, .prose td, .prose th {
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  word-break: keep-all;
  vertical-align: top;
}

.data tbody tr:last-child td, .prose tbody tr:last-child td { border-bottom: 0; }
.data tbody tr { transition: background .15s ease; }
.data tbody tr:nth-child(even) { background: #fbfaf7; }
.data tbody tr:hover { background: #f2f6f3; }
.data td:first-child { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }

/* TWSE-style diagonal corner for committee member tables (職稱 / 姓名). */
.table-corner {
  display: block;
  width: 217px;
  max-width: 100%;
  height: auto;
}
.prose td .table-corner { margin: 0; }

.prose > .gov-chart { max-width: none; }
.gov-chart {
  margin: 8px 0 28px;
  padding: 22px 16px 26px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, .55) 0%, transparent 46%),
    linear-gradient(180deg, #c5dff3 0%, #dceef9 32%, #eef6fb 68%, #f7f6f2 100%);
  border: 1px solid color-mix(in srgb, #8bb4d4 35%, var(--line));
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.gov-chart-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
.gov-lvl, .gov-branch, .gov-depts {
  display: grid;
  width: 100%;
  justify-items: center;
  position: relative;
}
.gov-lvl { grid-template-columns: 1fr; }
.gov-branch {
  grid-template-columns: 1fr minmax(160px, 220px) 1fr;
  align-items: stretch;
  gap: 16px 20px;
  padding-top: 22px;
}
.gov-depts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  padding-top: 22px;
}
.gov-vline {
  width: 2px;
  height: 18px;
  background: color-mix(in srgb, var(--green) 45%, var(--line));
  flex: 0 0 auto;
}
.gov-branch::before,
.gov-depts::before {
  content: "";
  position: absolute;
  top: 0;
  height: 2px;
  background: color-mix(in srgb, var(--green) 45%, var(--line));
}
.gov-branch::before { left: 16.66%; right: 16.66%; }
.gov-depts::before { left: 12.5%; right: 12.5%; }
.gov-node {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 72px;
  width: min(100%, 240px);
  padding: 12px 16px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.gov-node strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.35;
}
.gov-node .gov-role,
.gov-node em {
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: none;
  color: var(--muted);
}
.gov-node-apex {
  width: min(100%, 280px);
  background: linear-gradient(180deg, #f7efd4 0%, #efe0a8 100%);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 18%, transparent);
}
.gov-node-apex .gov-role { color: #7a5b12; }
.gov-node-board {
  width: min(100%, 280px);
  background: #fff;
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
  border-top: 4px solid var(--green);
  color: var(--ink);
}
.gov-node-board .gov-role { color: var(--green); }
.gov-node-side {
  width: min(100%, 260px);
  background: #fff;
  border-top: 3px solid var(--accent);
}
.gov-node-side strong { display: block; }
.gov-branch > .gov-node { height: 100%; width: min(100%, 280px); }
.gov-node-exec {
  background: #fff;
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
  border-top: 4px solid var(--green-deep);
  color: var(--ink);
}
.gov-node-exec .gov-role { color: var(--green-deep); }
.gov-node-dept {
  width: 100%;
  min-height: 64px;
  border-top: 3px solid var(--green);
}
.gov-branch > .gov-node::before,
.gov-depts > .gov-node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 2px;
  height: 22px;
  background: color-mix(in srgb, var(--green) 45%, var(--line));
  transform: translateX(-50%);
}
.gov-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}
.gov-legend li { display: flex; align-items: center; gap: 8px; }
.gov-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.gov-swatch-apex { background: #efe0a8; border-color: var(--accent) !important; }
.gov-swatch-board { background: #fff; border-top: 3px solid var(--green); height: 14px; }
.gov-swatch-exec { background: #fff; border-top: 3px solid var(--green-deep); height: 14px; }
.gov-swatch-unit { background: #fff; border-top: 3px solid var(--green); height: 14px; }

@media (max-width: 760px) {
  .gov-chart { padding: 16px 12px 20px; }
  .gov-branch,
  .gov-depts {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 0;
  }
  .gov-branch::before,
  .gov-depts::before,
  .gov-branch > .gov-node::before,
  .gov-depts > .gov-node::before { display: none; }
  .gov-node, .gov-node-apex, .gov-node-board, .gov-node-side { width: 100%; }
  .gov-vline { height: 12px; }
}

.doc-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.doc-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--green-deep);
}
.doc-links a:hover { color: var(--green); }
.file-period { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; }
.file-period .yufo-icon { margin-top: 3px; flex-shrink: 0; }
.file-period-label { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 5.5rem; padding-top: 2px; }
.file-copy { display: grid; gap: 2px; min-width: 0; flex: 1 1 12rem; }
.file-pair { display: inline-flex; align-items: flex-start; gap: 8px; margin-right: 12px; }
.file-note { margin: 0; font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.cards .file-note { margin-top: 6px; }
.docs-thumb-title .file-note { display: block; font-weight: 500; font-size: 12px; opacity: .88; margin-top: 2px; color: inherit; }
.doc-links .file-copy { display: grid; gap: 2px; margin: 0 0 8px; }
.data a { font-weight: 500; }

/* ---------- Forms ---------- */
.contact form, .admin form { display: grid; gap: 16px; max-width: 560px; }

.contact label, .admin label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.contact input, .contact textarea,
.admin input, .admin textarea, .admin select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--body);
  padding: 11px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.contact input:focus, .contact textarea:focus,
.admin input:focus, .admin textarea:focus, .admin select:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 80, 60, .12);
}

.contact .btn, .admin .btn { justify-self: start; }

.contact-extra {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-captcha .captcha-q {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 8px 0 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--paper, #f4f2ec);
  border: 1px solid var(--line);
}
.form-error {
  background: #fdecea;
  border-left: 4px solid var(--danger, #b23);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  color: var(--danger, #b23);
  font-weight: 500;
}

.ok {
  background: #e7f3ec;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  color: var(--green);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--footer-bg, var(--green-ink));
  color: #b9cbc3;
  padding: 56px 24px 32px;
  font-size: 14.5px;
}

body.footer-pcb .site-footer {
  position: relative;
  isolation: isolate;
  border-top: 3px solid var(--accent);
  overflow: hidden;
}

body.footer-pcb .site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/media/brand/footer-circuit.svg");
  opacity: .62;
  pointer-events: none;
  z-index: 0;
}

body.footer-pcb.footer-bg-cover-top .site-footer::before {
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
body.footer-pcb.footer-bg-cover-center .site-footer::before {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
body.footer-pcb.footer-bg-contain .site-footer::before {
  background-position: center bottom;
  background-size: contain;
  background-repeat: no-repeat;
}
body.footer-pcb.footer-bg-stretch .site-footer::before {
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
body.footer-pcb.footer-bg-repeat .site-footer::before {
  background-position: left top;
  background-size: auto;
  background-repeat: repeat;
}
body.footer-pcb.footer-bg-repeat-x .site-footer::before {
  background-position: center top;
  background-size: auto 100%;
  background-repeat: repeat-x;
}
body.footer-pcb.footer-bg-repeat-y .site-footer::before {
  background-position: left center;
  background-size: 100% auto;
  background-repeat: repeat-y;
}
body.footer-pcb.footer-bg-tile-sm .site-footer::before {
  background-position: left top;
  background-size: 420px auto;
  background-repeat: repeat;
}

body.footer-pcb .site-footer .grid,
body.footer-pcb .site-footer .copy {
  position: relative;
  z-index: 1;
}

.site-footer .grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: 48px;
}

.site-footer strong { display: block; color: #fff; font-size: 16px; margin-bottom: 10px; }
.site-footer p { margin: 0 0 6px; line-height: 1.7; }
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: #fff; }

.copy {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  opacity: .65;
  text-align: center;
}

/* ---------- Apple glass theme ---------- */
body.theme-apple-glass {
  --paper: #e8ecf0;
  --ink: #1d1d1f;
  --body: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --line-soft: rgba(0, 0, 0, .05);
  --card: rgba(255, 255, 255, .55);
  --green: #0071e3;
  --header-nav-text: #1d1d1f;
  --header-nav-muted: #6e6e73;
  --header-drop-bg: rgba(255, 255, 255, .82);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .08), 0 16px 40px rgba(0, 0, 0, .1);
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(180, 200, 230, .45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(200, 210, 230, .35) 0%, transparent 50%),
    linear-gradient(165deg, #d4dce6 0%, #eef1f5 45%, #f5f5f7 100%);
  background-attachment: fixed;
}

body.theme-apple-glass .site-header {
  background: var(--header-bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 4px 24px rgba(0, 0, 0, .04);
}

body.theme-apple-glass .logo { color: var(--ink); }
body.theme-apple-glass .logo:hover { color: var(--ink); }
body.theme-apple-glass .logo .mark { color: var(--accent); }
body.theme-apple-glass .logo .name { color: var(--ink); }
body.theme-apple-glass .logo .ticker {
  color: var(--accent);
  border-color: var(--accent-35);
  background: var(--accent-08);
}

body.theme-apple-glass .nav a { color: var(--header-nav-text); }
body.theme-apple-glass .nav a:hover {
  background: rgba(0, 0, 0, .06);
  color: var(--ink);
}
body.theme-apple-glass .nav.nav-pills a:hover {
  background: var(--accent-12);
  color: var(--accent);
}

body.theme-apple-glass .nav-drop {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 1px 0 rgba(255, 255, 255, .8) inset;
}
body.theme-apple-glass .nav-drop a { color: var(--header-nav-text); }
body.theme-apple-glass .nav-drop a:hover {
  background: rgba(0, 0, 0, .05);
  color: var(--ink);
}

body.theme-apple-glass .tools a {
  color: var(--body);
  border-color: rgba(0, 0, 0, .12);
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(8px);
}
body.theme-apple-glass .tools a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.theme-apple-glass .tools a.is-current {
  background: var(--accent-12);
  border-color: var(--accent-35);
  color: var(--accent);
}

body.theme-apple-glass .card {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06), 0 1px 0 rgba(255, 255, 255, .7) inset;
}
body.theme-apple-glass .card:hover {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(255, 255, 255, .85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}
body.theme-apple-glass .card::before { background: var(--accent); }
body.theme-apple-glass .card:hover h3 { color: var(--accent); }

body.theme-apple-glass .site-footer {
  background: var(--footer-bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--body);
  border-top: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04) inset;
}
body.theme-apple-glass .site-footer strong { color: var(--ink); }
body.theme-apple-glass .site-footer a { color: var(--accent); }
body.theme-apple-glass .site-footer a:hover { color: var(--accent); opacity: .85; }
body.theme-apple-glass .site-footer .copy {
  border-top-color: rgba(0, 0, 0, .08);
  opacity: .75;
}

body.theme-apple-glass a { color: var(--accent); }
body.theme-apple-glass a:hover { color: var(--accent); opacity: .85; }

@media (max-width: 900px) {
  body.theme-apple-glass .nav-drop {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(12px);
  }
}

/* ---------- Apple glass dark theme ---------- */
body.theme-apple-glass-dark {
  --paper: #1c1c1e;
  --ink: #f5f5f7;
  --body: #aeaeb2;
  --muted: #8e8e93;
  --line: rgba(255, 255, 255, .1);
  --line-soft: rgba(255, 255, 255, .06);
  --card: rgba(44, 44, 46, .65);
  --green: #0a84ff;
  --copper: #64d2ff;
  --header-nav-text: #f5f5f7;
  --header-nav-muted: #aeaeb2;
  --header-drop-bg: rgba(44, 44, 46, .88);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 4px 16px rgba(0, 0, 0, .25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
  background:
    radial-gradient(ellipse 80% 55% at 15% 15%, rgba(10, 132, 255, .12) 0%, transparent 55%),
    radial-gradient(ellipse 65% 45% at 90% 80%, rgba(100, 210, 255, .08) 0%, transparent 50%),
    linear-gradient(165deg, #0a0a0c 0%, #1c1c1e 40%, #2c2c2e 100%);
  background-attachment: fixed;
  color: var(--body);
}

body.theme-apple-glass-dark h1,
body.theme-apple-glass-dark h2,
body.theme-apple-glass-dark h3,
body.theme-apple-glass-dark h4 { color: var(--ink); }

body.theme-apple-glass-dark .site-header {
  background: var(--header-bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 4px 24px rgba(0, 0, 0, .35);
}

body.theme-apple-glass-dark .logo { color: var(--ink); }
body.theme-apple-glass-dark .logo:hover { color: var(--ink); }
body.theme-apple-glass-dark .logo .mark { color: var(--accent); }
body.theme-apple-glass-dark .logo .name { color: var(--ink); }
body.theme-apple-glass-dark .logo .ticker {
  color: var(--accent);
  border-color: var(--accent-45);
  background: var(--accent-12);
}

body.theme-apple-glass-dark .nav a { color: var(--header-nav-text); }
body.theme-apple-glass-dark .nav a:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
body.theme-apple-glass-dark .nav.nav-pills a:hover {
  background: var(--accent-22);
  color: var(--accent);
}

body.theme-apple-glass-dark .nav-drop {
  background: rgba(44, 44, 46, .88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .06) inset;
}
body.theme-apple-glass-dark .nav-drop a { color: var(--header-nav-text); }
body.theme-apple-glass-dark .nav-drop a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

body.theme-apple-glass-dark .tools a {
  color: var(--body);
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}
body.theme-apple-glass-dark .tools a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.theme-apple-glass-dark .tools a.is-current {
  background: var(--accent-20);
  border-color: var(--accent-45);
  color: var(--accent);
}

body.theme-apple-glass-dark .card {
  background: rgba(44, 44, 46, .55);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .05) inset;
  color: var(--body);
}
body.theme-apple-glass-dark .card:hover {
  background: rgba(58, 58, 60, .72);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}
body.theme-apple-glass-dark .card::before { background: var(--accent); }
body.theme-apple-glass-dark .card h3 { color: var(--ink); }
body.theme-apple-glass-dark .card:hover h3 { color: var(--accent); }

body.theme-apple-glass-dark .site-footer {
  background: var(--footer-bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--body);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .04) inset;
}
body.theme-apple-glass-dark .site-footer strong { color: var(--ink); }
body.theme-apple-glass-dark .site-footer a { color: var(--accent); }
body.theme-apple-glass-dark .site-footer a:hover { color: var(--accent); opacity: .85; }
body.theme-apple-glass-dark .site-footer .copy {
  border-top-color: rgba(255, 255, 255, .08);
  opacity: .7;
}

body.theme-apple-glass-dark a { color: var(--accent); }
body.theme-apple-glass-dark a:hover { color: var(--accent); opacity: .85; }

body.theme-apple-glass-dark .cards-wrap > h2,
body.theme-apple-glass-dark .timeline-wrap > h2,
body.theme-apple-glass-dark .columns-wrap > h2 {
  border-left-color: var(--accent);
}

@media (max-width: 900px) {
  body.theme-apple-glass-dark .nav-drop {
    background: rgba(44, 44, 46, .75);
    backdrop-filter: blur(12px);
  }
  body.theme-apple-glass-dark .nav-more { color: var(--header-nav-text); }
}

/* ---------- Aurora theme ---------- */
body.theme-aurora {
  --paper: #0f0a1a;
  --ink: #ede9fe;
  --body: #c4b5fd;
  --muted: #8b7ec8;
  --line: rgba(123, 97, 255, .2);
  --card: rgba(30, 20, 60, .65);
  --green: #7b61ff;
  --header-nav-text: #ede9fe;
  --header-drop-bg: rgba(25, 15, 50, .92);
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(123, 97, 255, .35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 80% 70%, rgba(16, 185, 129, .25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(236, 72, 153, .12) 0%, transparent 45%),
    linear-gradient(180deg, #0a0612 0%, #0f0a1a 50%, #120818 100%);
  background-attachment: fixed;
  color: var(--body);
}
body.theme-aurora h1, body.theme-aurora h2, body.theme-aurora h3, body.theme-aurora h4 { color: var(--ink); }
body.theme-aurora .site-header {
  background: var(--header-bg-soft);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--accent-25);
}
body.theme-aurora .logo .mark { color: var(--accent); }
body.theme-aurora .logo .name { color: #ede9fe; }
body.theme-aurora .nav a { color: #c4b5fd; }
body.theme-aurora .nav a:hover { color: #fff; background: var(--accent-20); }
body.theme-aurora .nav-drop {
  background: var(--header-drop-bg);
  border: 1px solid var(--accent-30);
  box-shadow: 0 12px 40px var(--accent-15);
}
body.theme-aurora .tools a { color: #c4b5fd; border-color: var(--accent-35); }
body.theme-aurora .tools a:hover { background: var(--accent); color: #fff; }
body.theme-aurora .card {
  background: rgba(30, 20, 60, .55);
  border: 1px solid var(--accent-25);
  box-shadow: 0 4px 24px var(--accent-12);
}
body.theme-aurora .card:hover { border-color: var(--accent-50); box-shadow: 0 8px 32px var(--accent-20); }
body.theme-aurora .card::before { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #10b981)); }
body.theme-aurora .card:hover h3 { color: var(--accent); }
body.theme-aurora .site-footer {
  background: var(--footer-bg-soft);
  color: var(--accent);
  border-top: 1px solid var(--accent-20);
}
body.theme-aurora .site-footer strong { color: #ede9fe; }
body.theme-aurora .site-footer a { color: var(--accent); }
body.theme-aurora a { color: var(--accent); }
body.theme-aurora a:hover { color: color-mix(in srgb, var(--accent) 70%, #10b981); }

/* ---------- Neon cyber theme ---------- */
body.theme-neon-cyber {
  --paper: #0a0a12;
  --ink: #e0f7ff;
  --body: #94a3b8;
  --muted: #64748b;
  --line: rgba(0, 240, 255, .2);
  --card: rgba(10, 15, 30, .8);
  --green: #00f0ff;
  --header-nav-text: #e0f7ff;
  --header-drop-bg: rgba(5, 5, 15, .95);
  background:
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 0, 170, .15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(0, 240, 255, .12) 0%, transparent 50%),
    linear-gradient(180deg, #050508 0%, #0a0a12 100%);
  background-attachment: fixed;
  color: var(--body);
}
body.theme-neon-cyber h1, body.theme-neon-cyber h2, body.theme-neon-cyber h3, body.theme-neon-cyber h4 { color: var(--ink); }
body.theme-neon-cyber .site-header {
  background: var(--header-bg-solid);
  border-bottom: 1px solid var(--accent-30);
  box-shadow: 0 0 20px var(--accent-08);
}
body.theme-neon-cyber .logo .mark {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-50);
}
body.theme-neon-cyber .logo .name { color: #e0f7ff; }
body.theme-neon-cyber .logo .ticker {
  color: var(--accent);
  border-color: var(--accent-50);
  box-shadow: 0 0 8px var(--accent-30);
}
body.theme-neon-cyber .nav a { color: #94a3b8; }
body.theme-neon-cyber .nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-50);
  background: var(--accent-08);
}
body.theme-neon-cyber .nav.nav-tabs a:hover { border-bottom-color: var(--accent); box-shadow: 0 4px 12px var(--accent-20); }
body.theme-neon-cyber .nav-drop {
  background: var(--header-drop-bg);
  border: 1px solid var(--accent-35);
  box-shadow: 0 0 24px var(--accent-15), inset 0 0 20px var(--accent-08);
}
body.theme-neon-cyber .tools a { border-color: var(--accent-35); color: #94a3b8; }
body.theme-neon-cyber .tools a:hover { background: var(--accent); color: #0a0a12; box-shadow: 0 0 16px var(--accent-50); }
body.theme-neon-cyber .card {
  background: rgba(10, 15, 30, .7);
  border: 1px solid var(--accent-25);
  box-shadow: 0 0 16px var(--accent-08);
}
body.theme-neon-cyber .card:hover {
  border-color: var(--accent-50);
  box-shadow: 0 0 28px var(--accent-15);
}
body.theme-neon-cyber .card::before { background: linear-gradient(180deg, var(--accent), #ff00aa); }
body.theme-neon-cyber .card:hover h3 { color: var(--accent); text-shadow: 0 0 8px var(--accent-50); }
body.theme-neon-cyber .site-footer {
  background: var(--footer-bg-solid);
  color: #64748b;
  border-top: 1px solid var(--accent-25);
  box-shadow: 0 -4px 20px var(--accent-08);
}
body.theme-neon-cyber .site-footer strong { color: #e0f7ff; }
body.theme-neon-cyber .site-footer a { color: var(--accent); }
body.theme-neon-cyber a { color: var(--accent); }
body.theme-neon-cyber a:hover { color: #ff00aa; }

/* ---------- Midnight gold theme ---------- */
body.theme-midnight-gold {
  --paper: #0d0d0d;
  --ink: #faf6ed;
  --body: #b8b0a0;
  --muted: #8a8278;
  --line: rgba(212, 175, 55, .15);
  --card: rgba(26, 24, 20, .85);
  --green: #d4af37;
  --header-nav-text: #faf6ed;
  --header-drop-bg: rgba(20, 18, 14, .96);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 175, 55, .08) 0%, transparent 55%),
    linear-gradient(180deg, #000000 0%, #0d0d0d 40%, #141210 100%);
  background-attachment: fixed;
  color: var(--body);
}
body.theme-midnight-gold h1, body.theme-midnight-gold h2, body.theme-midnight-gold h3, body.theme-midnight-gold h4 { color: var(--ink); }
body.theme-midnight-gold .site-header {
  background: var(--header-bg-solid);
  border-bottom: 1px solid var(--accent-30);
}
body.theme-midnight-gold .logo .mark { color: var(--accent); }
body.theme-midnight-gold .logo .name { color: #faf6ed; }
body.theme-midnight-gold .logo .ticker { color: var(--accent); border-color: var(--accent-50); }
body.theme-midnight-gold .nav a { color: #d4cfc4; }
body.theme-midnight-gold .nav a:hover { background: var(--accent-15); color: var(--accent); }
body.theme-midnight-gold .nav-drop {
  background: var(--header-drop-bg);
  border: 1px solid var(--accent-25);
}
body.theme-midnight-gold .tools a { border-color: var(--accent-35); color: #b8b0a0; }
body.theme-midnight-gold .tools a:hover { background: var(--accent); color: #0d0d0d; }
body.theme-midnight-gold .card {
  background: rgba(26, 24, 20, .8);
  border: 1px solid var(--accent-15);
}
body.theme-midnight-gold .card:hover { border-color: var(--accent-35); }
body.theme-midnight-gold .card::before { background: var(--accent); }
body.theme-midnight-gold .card:hover h3 { color: var(--accent); }
body.theme-midnight-gold .site-footer {
  background: var(--footer-bg-solid);
  color: #8a8278;
  border-top: 2px solid var(--accent-35);
}
body.theme-midnight-gold .site-footer strong { color: #faf6ed; }
body.theme-midnight-gold .site-footer a { color: var(--accent); }
body.theme-midnight-gold a { color: var(--accent); }
body.theme-midnight-gold a:hover { color: color-mix(in srgb, var(--accent) 80%, #fff); }

/* ---------- Sunset warm theme ---------- */
body.theme-sunset-warm {
  --paper: #fff5eb;
  --ink: #431407;
  --body: #7c2d12;
  --muted: #9a3412;
  --line: rgba(232, 93, 4, .15);
  --card: #ffffff;
  --green: #e85d04;
  --header-nav-text: #431407;
  --header-drop-bg: #fff0e6;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(251, 146, 60, .35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 100%, rgba(244, 63, 94, .2) 0%, transparent 50%),
    linear-gradient(165deg, #fff7ed 0%, #ffedd5 50%, #fff5eb 100%);
  background-attachment: fixed;
}
body.theme-sunset-warm .site-header {
  background: var(--header-bg-soft);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--accent-15);
}
body.theme-sunset-warm .logo .mark { color: var(--accent); }
body.theme-sunset-warm .logo .name { color: #431407; }
body.theme-sunset-warm .nav a { color: #7c2d12; }
body.theme-sunset-warm .nav a:hover { background: var(--accent-12); color: color-mix(in srgb, var(--accent) 75%, #000); }
body.theme-sunset-warm .nav.nav-pills a:hover { background: var(--accent); color: #fff; }
body.theme-sunset-warm .nav-drop {
  background: var(--header-drop-bg);
  border: 1px solid var(--accent-20);
  box-shadow: 0 8px 24px var(--accent-12);
}
body.theme-sunset-warm .tools a { color: #7c2d12; border-color: var(--accent-25); }
body.theme-sunset-warm .tools a:hover { background: var(--accent); color: #fff; }
body.theme-sunset-warm .card {
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--accent-12);
  box-shadow: 0 4px 16px var(--accent-08);
}
body.theme-sunset-warm .card:hover { border-color: var(--accent-30); box-shadow: 0 8px 24px var(--accent-15); }
body.theme-sunset-warm .card::before { background: var(--accent); }
body.theme-sunset-warm .card:hover h3 { color: color-mix(in srgb, var(--accent) 75%, #000); }
body.theme-sunset-warm .site-footer {
  background: var(--footer-bg-soft);
  color: #7c2d12;
  border-top: 1px solid var(--accent-20);
}
body.theme-sunset-warm .site-footer strong { color: #431407; }
body.theme-sunset-warm .site-footer a { color: var(--accent); }
body.theme-sunset-warm a { color: color-mix(in srgb, var(--accent) 75%, #000); }
body.theme-sunset-warm a:hover { color: var(--accent); }

/* ---------- Neo brutal theme ---------- */
body.theme-neo-brutal {
  --paper: #fafafa;
  --ink: #000;
  --body: #1a1a1a;
  --muted: #525252;
  --line: #000;
  --card: #fff;
  --green: #000;
  --radius: 0;
  --header-nav-text: #000;
  --header-drop-bg: var(--header-bg);
  --shadow-sm: 4px 4px 0 #000;
  --shadow-md: 6px 6px 0 #000;
  background: #fafafa;
}
body.theme-neo-brutal .site-header {
  background: var(--header-bg);
  border-bottom: 3px solid #000;
  box-shadow: 0 4px 0 #000;
  backdrop-filter: none;
}
body.theme-neo-brutal .logo .mark {
  color: #000;
  background: var(--accent);
  padding: 2px 8px;
  letter-spacing: .1em;
}
body.theme-neo-brutal .logo .name { color: #000; font-weight: 800; }
body.theme-neo-brutal .logo .ticker {
  color: #000;
  background: var(--accent);
  border: 2px solid #000;
  font-weight: 700;
}
body.theme-neo-brutal .nav a {
  color: #000;
  font-weight: 700;
  border-radius: 0;
}
body.theme-neo-brutal .nav a:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 3px 3px 0 #000;
}
body.theme-neo-brutal .nav-drop {
  background: var(--header-drop-bg);
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: 6px 6px 0 #000;
}
body.theme-neo-brutal .nav-drop a:hover { background: var(--accent); }
body.theme-neo-brutal .tools a {
  color: #000;
  border: 2px solid #000;
  border-radius: 0;
  font-weight: 700;
  background: var(--header-bg);
}
body.theme-neo-brutal .tools a:hover { background: var(--accent); box-shadow: 3px 3px 0 #000; }
body.theme-neo-brutal .tools a.is-current { background: var(--accent); }
body.theme-neo-brutal .card {
  background: #fff;
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: 6px 6px 0 #000;
}
body.theme-neo-brutal .card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
}
body.theme-neo-brutal .card::before { background: var(--accent); width: 6px; }
body.theme-neo-brutal .card:hover h3 { color: #000; }
body.theme-neo-brutal .site-footer {
  background: var(--footer-bg);
  color: #000;
  border-top: 3px solid #000;
  font-weight: 500;
}
body.theme-neo-brutal .site-footer strong { color: #000; font-weight: 800; }
body.theme-neo-brutal .site-footer a { color: #000; font-weight: 700; text-decoration: underline; }
body.theme-neo-brutal .site-footer .copy { border-top-color: #000; opacity: 1; }
body.theme-neo-brutal a { color: #000; font-weight: 600; }
body.theme-neo-brutal a:hover { background: var(--accent); }
body.theme-neo-brutal .cards-wrap > h2,
body.theme-neo-brutal .timeline-wrap > h2,
body.theme-neo-brutal .columns-wrap > h2 {
  border-left: 6px solid var(--accent);
  border-bottom: 3px solid #000;
  padding-bottom: 8px;
}

/* ---------- Executive navy (professional IR) ---------- */
body.theme-executive-navy {
  --paper: #0c1829;
  --ink: #f0f4f8;
  --body: #94a3b8;
  --muted: #64748b;
  --line: rgba(197, 205, 216, .12);
  --card: rgba(15, 28, 48, .85);
  --header-nav-text: #cbd5e1;
  --header-drop-bg: rgba(10, 22, 40, .97);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(197, 205, 216, .06) 0%, transparent 55%),
    linear-gradient(180deg, #071018 0%, #0a1628 45%, #0c1829 100%);
  background-attachment: fixed;
  color: var(--body);
}
body.theme-executive-navy h1, body.theme-executive-navy h2,
body.theme-executive-navy h3, body.theme-executive-navy h4 { color: var(--ink); }
body.theme-executive-navy .site-header {
  background: var(--header-bg-solid);
  border-bottom: 1px solid var(--accent-18);
  box-shadow: 0 1px 0 var(--accent-08);
}
body.theme-executive-navy .logo .mark { color: var(--accent); letter-spacing: .18em; }
body.theme-executive-navy .logo .name { color: var(--ink); font-weight: 600; }
body.theme-executive-navy .logo .ticker { color: var(--accent); border-color: var(--accent-35); }
body.theme-executive-navy .nav a { color: var(--header-nav-text); }
body.theme-executive-navy .nav a:hover { color: var(--accent); background: var(--accent-08); }
body.theme-executive-navy .nav.nav-underline a:hover { border-bottom-color: var(--accent); }
body.theme-executive-navy .nav-drop {
  background: var(--header-drop-bg);
  border: 1px solid var(--accent-18);
  box-shadow: var(--shadow-md);
}
body.theme-executive-navy .tools a { color: var(--header-nav-text); border-color: var(--accent-25); }
body.theme-executive-navy .tools a:hover { background: var(--accent-12); color: var(--accent); border-color: var(--accent-35); }
body.theme-executive-navy .card {
  background: var(--card);
  border: 1px solid var(--accent-12);
  box-shadow: var(--shadow-sm);
}
body.theme-executive-navy .card:hover { border-color: var(--accent-25); box-shadow: var(--shadow-md); }
body.theme-executive-navy .card::before { background: var(--accent); }
body.theme-executive-navy .card:hover h3 { color: var(--accent); }
body.theme-executive-navy .site-footer {
  background: var(--footer-bg-solid);
  color: var(--muted);
  border-top: 1px solid var(--accent-18);
}
body.theme-executive-navy .site-footer strong { color: var(--ink); }
body.theme-executive-navy .site-footer a { color: var(--accent); }
body.theme-executive-navy a { color: var(--accent); }
body.theme-executive-navy a:hover { color: color-mix(in srgb, var(--accent) 85%, #fff); }
body.theme-executive-navy .cards-wrap > h2,
body.theme-executive-navy .timeline-wrap > h2,
body.theme-executive-navy .columns-wrap > h2 { border-left-color: var(--accent); }

/* ---------- Platinum minimal (consulting clean) ---------- */
body.theme-platinum-minimal {
  --paper: #ffffff;
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --card: #ffffff;
  --header-nav-text: #334155;
  --header-drop-bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .08), 0 12px 40px rgba(15, 23, 42, .06);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 40%, #f1f5f9 100%);
  background-attachment: fixed;
}
body.theme-platinum-minimal .site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}
body.theme-platinum-minimal .logo .mark { color: var(--accent); }
body.theme-platinum-minimal .logo .name { color: var(--ink); font-weight: 600; }
body.theme-platinum-minimal .logo .ticker { color: var(--accent); border-color: var(--accent-25); background: var(--accent-08); }
body.theme-platinum-minimal .nav a { color: var(--header-nav-text); }
body.theme-platinum-minimal .nav a:hover { color: var(--accent); background: var(--accent-08); }
body.theme-platinum-minimal .nav.nav-underline a:hover { border-bottom-color: var(--accent); }
body.theme-platinum-minimal .nav-drop {
  background: var(--header-drop-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
body.theme-platinum-minimal .tools a { color: var(--body); border-color: var(--line); background: #fff; }
body.theme-platinum-minimal .tools a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
body.theme-platinum-minimal .card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
body.theme-platinum-minimal .card:hover {
  border-color: var(--accent-25);
  box-shadow: var(--shadow-md);
}
body.theme-platinum-minimal .card::before { background: var(--accent); }
body.theme-platinum-minimal .card:hover h3 { color: var(--accent); }
body.theme-platinum-minimal .site-footer {
  background: var(--footer-bg);
  color: var(--body);
  border-top: 1px solid var(--line);
}
body.theme-platinum-minimal .site-footer strong { color: var(--ink); }
body.theme-platinum-minimal .site-footer a { color: var(--accent); }
body.theme-platinum-minimal a { color: var(--accent); }
body.theme-platinum-minimal a:hover { color: color-mix(in srgb, var(--accent) 80%, #000); }

/* ---------- Slate corporate (B2B rational) ---------- */
body.theme-slate-corporate {
  --paper: #f1f5f9;
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #cbd5e1;
  --card: #ffffff;
  --header-nav-text: #e2e8f0;
  --header-drop-bg: rgba(15, 23, 42, .98);
  background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 50%, #f8fafc 100%);
  background-attachment: fixed;
}
body.theme-slate-corporate .site-header {
  background: var(--header-bg-solid);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 12px rgba(15, 23, 42, .15);
}
body.theme-slate-corporate .logo .mark { color: var(--accent); }
body.theme-slate-corporate .logo .name { color: #f8fafc; font-weight: 600; }
body.theme-slate-corporate .logo .ticker { color: var(--accent); border-color: var(--accent-45); }
body.theme-slate-corporate .nav a { color: var(--header-nav-text); }
body.theme-slate-corporate .nav a:hover { color: #fff; background: var(--accent-15); }
body.theme-slate-corporate .nav.nav-tabs a:hover { border-bottom-color: var(--accent); color: var(--accent); }
body.theme-slate-corporate .nav-drop {
  background: var(--header-drop-bg);
  border: 1px solid var(--accent-25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
body.theme-slate-corporate .tools a { color: #cbd5e1; border-color: var(--accent-35); }
body.theme-slate-corporate .tools a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
body.theme-slate-corporate .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  box-shadow: var(--shadow-sm);
}
body.theme-slate-corporate .card:hover {
  border-top-color: var(--accent);
  box-shadow: var(--shadow-md);
}
body.theme-slate-corporate .card::before { background: var(--accent); }
body.theme-slate-corporate .card:hover h3 { color: var(--accent); }
body.theme-slate-corporate .site-footer {
  background: var(--footer-bg-solid);
  color: #94a3b8;
  border-top: 1px solid var(--accent-25);
}
body.theme-slate-corporate .site-footer strong { color: #f1f5f9; }
body.theme-slate-corporate .site-footer a { color: var(--accent); }
body.theme-slate-corporate a { color: var(--accent); }
body.theme-slate-corporate a:hover { color: color-mix(in srgb, var(--accent) 75%, #fff); }

/* ---------- Ivory editorial (magazine warm) ---------- */
body.theme-ivory-editorial {
  --paper: #faf8f5;
  --ink: #1c1917;
  --body: #57534e;
  --muted: #78716c;
  --line: #e7e5e4;
  --line-soft: #f5f5f4;
  --card: #ffffff;
  --header-nav-text: #44403c;
  --header-drop-bg: #faf8f5;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(26, 77, 62, .04) 0%, transparent 50%),
    linear-gradient(180deg, #faf8f5 0%, #f5f2ed 100%);
  background-attachment: fixed;
}
body.theme-ivory-editorial .site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
body.theme-ivory-editorial .logo .mark {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .12em;
}
body.theme-ivory-editorial .logo .name { color: var(--ink); font-weight: 600; }
body.theme-ivory-editorial .logo .ticker { color: var(--accent); border-color: var(--accent-30); }
body.theme-ivory-editorial .nav a { color: var(--header-nav-text); }
body.theme-ivory-editorial .nav a:hover { color: var(--accent); background: var(--accent-08); }
body.theme-ivory-editorial .nav.nav-underline a:hover { border-bottom-color: var(--accent); }
body.theme-ivory-editorial .nav-drop {
  background: var(--header-drop-bg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(28, 25, 23, .08);
}
body.theme-ivory-editorial .tools a { color: var(--body); border-color: var(--line); }
body.theme-ivory-editorial .tools a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
body.theme-ivory-editorial .card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(28, 25, 23, .04);
}
body.theme-ivory-editorial .card:hover { border-color: var(--accent-25); box-shadow: 0 8px 24px rgba(28, 25, 23, .08); }
body.theme-ivory-editorial .card::before { background: var(--accent); }
body.theme-ivory-editorial .card:hover h3 { color: var(--accent); }
body.theme-ivory-editorial .site-footer {
  background: var(--footer-bg);
  color: var(--body);
  border-top: 1px solid var(--line);
}
body.theme-ivory-editorial .site-footer strong { color: var(--ink); }
body.theme-ivory-editorial .site-footer a { color: var(--accent); }
body.theme-ivory-editorial a { color: var(--accent); }
body.theme-ivory-editorial a:hover { color: color-mix(in srgb, var(--accent) 75%, #000); }
body.theme-ivory-editorial .cards-wrap > h2,
body.theme-ivory-editorial .timeline-wrap > h2,
body.theme-ivory-editorial .columns-wrap > h2 {
  font-family: Georgia, "Times New Roman", serif;
  border-left-color: var(--accent);
}

/* ---------- Copper luxe (precision manufacturing) ---------- */
body.theme-copper-luxe {
  --paper: #141210;
  --ink: #f5f0eb;
  --body: #a8a29e;
  --muted: #78716c;
  --line: rgba(200, 121, 65, .15);
  --card: rgba(24, 22, 20, .92);
  --header-nav-text: #e7e5e4;
  --header-drop-bg: rgba(20, 18, 16, .98);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200, 121, 65, .1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(200, 121, 65, .05) 0%, transparent 50%),
    linear-gradient(180deg, #0a0908 0%, #141210 50%, #1a1816 100%);
  background-attachment: fixed;
  color: var(--body);
}
body.theme-copper-luxe h1, body.theme-copper-luxe h2,
body.theme-copper-luxe h3, body.theme-copper-luxe h4 { color: var(--ink); }
body.theme-copper-luxe .site-header {
  background: var(--header-bg-solid);
  border-bottom: 1px solid var(--accent-25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}
body.theme-copper-luxe .logo .mark {
  color: var(--accent);
  letter-spacing: .2em;
  font-weight: 700;
}
body.theme-copper-luxe .logo .name { color: var(--ink); font-weight: 600; }
body.theme-copper-luxe .logo .ticker { color: var(--accent); border-color: var(--accent-45); }
body.theme-copper-luxe .nav a { color: var(--header-nav-text); }
body.theme-copper-luxe .nav a:hover { color: var(--accent); background: var(--accent-12); }
body.theme-copper-luxe .nav-drop {
  background: var(--header-drop-bg);
  border: 1px solid var(--accent-25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45);
}
body.theme-copper-luxe .tools a { color: #d6d3d1; border-color: var(--accent-30); }
body.theme-copper-luxe .tools a:hover { background: var(--accent); color: #141210; border-color: var(--accent); }
body.theme-copper-luxe .tools a.is-current { background: var(--accent-18); border-color: var(--accent-45); color: var(--accent); }
body.theme-copper-luxe .card {
  background: var(--card);
  border: 1px solid var(--accent-15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}
body.theme-copper-luxe .card:hover {
  border-color: var(--accent-35);
  box-shadow: 0 8px 32px rgba(200, 121, 65, .12);
}
body.theme-copper-luxe .card::before { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #8b6914)); }
body.theme-copper-luxe .card:hover h3 { color: var(--accent); }
body.theme-copper-luxe .site-footer {
  background: var(--footer-bg-solid);
  color: var(--muted);
  border-top: 1px solid var(--accent-25);
}
body.theme-copper-luxe .site-footer strong { color: var(--ink); }
body.theme-copper-luxe .site-footer a { color: var(--accent); }
body.theme-copper-luxe a { color: var(--accent); }
body.theme-copper-luxe a:hover { color: color-mix(in srgb, var(--accent) 80%, #fff); }
body.theme-copper-luxe .cards-wrap > h2,
body.theme-copper-luxe .timeline-wrap > h2,
body.theme-copper-luxe .columns-wrap > h2 { border-left-color: var(--accent); }

/* ---------- Admin ---------- */
.admin-header {
  background-color: #08201a;
  background-image:
    linear-gradient(90deg, rgba(5, 14, 12, .78) 0%, rgba(8, 32, 26, .58) 42%, rgba(6, 22, 18, .72) 100%),
    url("/img/admin-header.jpg");
  background-size: cover;
  background-position: center 46%;
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  border-bottom: 3px solid #d4af37;
  box-shadow: 0 1px 0 rgba(255, 229, 0, .35);
}
.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.admin-nav-toggle { display: none; }
.admin-logout { display: inline; margin: 0; }
.admin-nav a { color: #eef4f0; margin-right: 6px; padding: 6px 12px; border-radius: 6px; font-size: 14px; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.admin-nav a:hover { background: rgba(212, 175, 55, .22); color: #fff; }
.admin-nav a.is-active {
  background: rgba(212, 175, 55, .28);
  color: #fff;
  box-shadow: inset 0 -2px 0 #ffe500;
}
.admin-nav-item { position: relative; }
.admin-nav-parent {
  appearance: none;
  border: 0;
  background: transparent;
  color: #eef4f0;
  margin-right: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.admin-nav-parent::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom-width: 0;
  vertical-align: 2px;
  opacity: .8;
}
.admin-nav-parent:hover,
.admin-nav-item.is-open .admin-nav-parent,
.admin-nav-item.is-current .admin-nav-parent {
  background: rgba(212, 175, 55, .22);
  color: #fff;
}
.admin-nav-item.is-current .admin-nav-parent {
  box-shadow: inset 0 -2px 0 #ffe500;
}
.admin-nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  min-width: 200px;
  padding: 8px;
  background: #0b1c17;
  border: 2px solid #d4af37;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #000;
  z-index: 40;
}
.admin-nav-sub a {
  display: block;
  margin: 0 0 2px;
  border-radius: 6px;
}
.admin-nav-item:hover .admin-nav-sub,
.admin-nav-item.is-open .admin-nav-sub { display: grid; }
.admin-wrap { max-width: var(--max); margin: 0 auto; padding: 32px 24px 64px; }
.admin-brand { display: flex; gap: 8px; align-items: baseline; color: #fff; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.admin-brand:hover { color: #fff; }
.admin-brand .mark { color: #ffe500; letter-spacing: .14em; }
@media (max-width: 1100px) {
  .admin-header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
  }
  .admin-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px 10px;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 8px;
    cursor: pointer;
  }
  .admin-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #d4af37;
    border-radius: 1px;
    transition: transform .18s ease, opacity .18s ease;
  }
  body.admin-nav-open .admin-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.admin-nav-open .admin-nav-toggle span:nth-child(2) { opacity: 0; }
  body.admin-nav-open .admin-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .admin-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 8px;
  }
  body.admin-nav-open .admin-nav { display: flex; }
  .admin-nav a,
  .admin-nav .btn,
  .admin-nav-parent {
    display: block;
    width: 100%;
    margin: 0;
    text-align: left;
    box-sizing: border-box;
  }
  .admin-nav-item { width: 100%; }
  .admin-nav-sub {
    position: static;
    display: grid;
    min-width: 0;
    margin: 4px 0 8px 10px;
    padding: 4px 0 4px 8px;
    border: 0;
    border-left: 2px solid rgba(212, 175, 55, .45);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .admin-nav-parent { pointer-events: none; }
  .admin-logout { display: block; }
  .admin-wrap { padding: 20px 16px 48px; }
}
body.admin-app {
  --accent: #d4af37;
  --btn-bg: #d4af37;
  --btn-fg: #08201a;
  --btn-hover: #c19b2e;
  --btn-shadow: color-mix(in srgb, #d4af37 32%, transparent);
  --green-ink: #08201a;
  --header-bg: #08201a;
}

.lang-tabs { display: flex; gap: 0; margin: 20px 0 16px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.lang-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 16px 0 32px; }
.lang-form h2 { grid-column: 1 / -1; margin: 12px 0 0; font-size: 18px; }
.lang-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.lang-form input, .lang-form select, .lang-form textarea { padding: 8px 10px; }
.lang-form input.color-input {
  padding: 0;
  width: 4rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
}
.lang-form .color-field { align-content: start; }
.lang-form .span-2 { grid-column: 1 / -1; }
.lang-form .check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.lang-form .check-row input { margin-top: 4px; }
.role-chip {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef4f0;
  font-size: 12px;
  color: var(--green);
}
.user-checks { display: grid; gap: 10px; }
.user-checks .check-row { align-items: flex-start; }
.admin-warn {
  margin: 0;
  padding: 10px 24px;
  background: #fff4e0;
  border-bottom: 1px solid #e6c98a;
  color: #7a4a00;
  font-weight: 600;
  font-size: 14px;
}
.preview-logo { height: 48px; width: auto; vertical-align: middle; margin: 0 12px; background: #08201a; padding: 6px 10px; border-radius: 6px; }
.preview-icon { height: 24px; width: auto; vertical-align: middle; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin-left: 8px; }
.password-show-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.password-show-check input { margin: 0; cursor: pointer; }
.login-field .password-show-check { margin-top: 2px; }
.err { background: #fdecea; border-left: 4px solid var(--danger); padding: 12px 16px; border-radius: 6px; color: var(--danger); font-weight: 600; }
.lang-tabs a { padding: 10px 22px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.lang-tabs a.is-active { color: var(--green); border-bottom-color: var(--copper); }
.admin-hint { color: #3c4a46; font-size: 14.5px; }
.ok { background: #e7f3ec; border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 6px; color: var(--green); font-weight: 600; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.revenue-form, .doc-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin: 20px 0 28px; }
.revenue-form label, .doc-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.revenue-form input { width: 140px; padding: 8px 10px; }
.doc-form label { min-width: 220px; }
.doc-form input, .doc-form select { padding: 8px 10px; min-width: 220px; }
.doc-form textarea { padding: 8px 10px; min-width: 220px; resize: vertical; }
.doc-note-field { flex: 1 1 100%; min-width: 100%; }
.doc-note-field textarea { width: 100%; min-width: 100%; }
.path-form { margin: 16px 0 40px; }
.path-form input { width: 100%; padding: 8px 10px; min-width: 180px; box-sizing: border-box; }
.doc-form .admin-hint { font-weight: 400; }
.doc-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 8px 0 16px; }
.doc-filter label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.doc-filter input, .doc-filter select { padding: 7px 10px; min-width: 120px; }
.inline-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; min-width: 280px !important; font-weight: 500 !important; }
.row-actions { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--green); cursor: pointer;
}
.link-btn:hover { color: var(--copper); }

#page-form { display: block; max-width: none; }
.editor-meta { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; max-width: 720px; }
.editor-meta-span { grid-column: 1 / -1; }
.editor-save {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 0;
  background: linear-gradient(to top, var(--paper) 70%, rgba(247, 246, 242, 0));
}

.confirm-mask {
  position: fixed;
  inset: 0;
  background: rgba(8, 32, 26, .52);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
  animation: fadeIn .18s ease;
}
.confirm-mask[hidden] { display: none; }
.confirm-box, .confirm-card {
  background: #fffdf8;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(8, 32, 26, .28);
  text-align: center;
  animation: popIn .2s ease;
}
.confirm-box h3, .confirm-card h3 { margin: 0 0 10px; color: var(--ink); font-size: 22px; }
.confirm-card p { margin: 0; color: var(--body); }
.confirm-icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%;
  background: #f8e8d8;
  color: var(--copper);
  font-size: 28px; font-weight: 700; line-height: 52px;
}
.confirm-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.btn-danger {
  background: #9b2c2c;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(155, 44, 44, .28);
}
.btn-danger:hover { background: #7a1f1f; transform: translateY(-1px); }
body.dialog-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#visual-editor { margin-top: 8px; }
.ve-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
}
.ve-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.ve-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ve-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #f4f2ec;
  border-bottom: 1px solid var(--line-soft);
}
.ve-type { font-size: 13px; font-weight: 700; color: var(--green); }
.ve-tools { display: flex; gap: 6px; }
.ve-mini {
  font-family: inherit;
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.ve-mini:disabled,
.ve-mini.is-off {
  opacity: .38;
  cursor: not-allowed;
}
.ve-mini:hover { background: var(--green); color: #fff; border-color: var(--green); }
.ve-mini:disabled:hover,
.ve-mini.is-off:hover {
  background: #fff;
  color: inherit;
  border-color: var(--line);
}
.ve-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.ve-preview { padding: 0; }
.ve-preview.ve-html,
.ve-preview.ve-facts,
.ve-preview.ve-cards,
.ve-preview.ve-timeline,
.ve-preview.ve-image,
.ve-preview.ve-split,
.ve-preview.ve-quote,
.ve-preview.ve-columns,
.ve-preview.ve-capability,
.ve-preview.ve-docs { padding: 20px 22px 22px; }
.ve-docs-live { margin-top: 12px; pointer-events: none; }
.ve-docs-live .file-list { max-width: none; }
.ve-docs-live .cards { pointer-events: none; }
.ve-cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ve-cap-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; margin-bottom: 6px; }
.ve-cap-row input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
}
.ve-cap-cuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) {
  .ve-cap-grid, .ve-cap-cuts { grid-template-columns: 1fr; }
}
.ve-edit { outline: none; min-height: 1.2em; }
.ve-hero .lead.ve-edit,
.ve-hero h1.ve-edit { white-space: pre-line; }
.ve-hero textarea.ve-hero-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  font-family: inherit;
  resize: vertical;
  padding: 2px 4px;
  margin: 0;
  line-height: 1.45;
}
.ve-hero textarea.ve-hero-title-input {
  color: #fff;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  margin-bottom: 18px;
}
.ve-hero textarea.ve-hero-lead-input {
  color: #d5e2dc;
  font-size: clamp(16px, 1.5vw, 19px);
  margin-bottom: 30px;
}
.ve-hero textarea.ve-hero-eyebrow-input {
  display: inline-block;
  width: auto;
  min-width: 14em;
  max-width: 100%;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding: 0 0 8px;
  resize: none;
  border-bottom: 2px solid rgba(212, 175, 55, .5);
}
.ve-preview.ve-hero-block { padding: 0; }
.ve-hero-bg {
  padding: 16px 18px 8px;
  border-top: 1px solid var(--line-soft);
  background: #f3f1eb;
  color: var(--ink);
}
.ve-hero-sec {
  margin: 0 0 14px;
  padding: 16px 16px 14px;
  border: 1px solid #d4cfc4;
  border-radius: 10px;
  background: #fff;
}
.ve-hero-sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #14201d;
}
.ve-hero-sec-num {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.ve-hero-sec-hint {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #2f3d39;
}
.ve-hero-opts {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, .8fr) minmax(0, 1.2fr);
  gap: 14px 18px;
  align-items: end;
}
.ve-hero-play {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 12px;
  align-items: end;
}
.ve-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #14201d;
  font-weight: 700;
}
.ve-check input { width: 18px; height: 18px; accent-color: var(--green); }
.ve-hero-form { display: grid; gap: 12px; }
.ve-hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ve-hero-slides {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}
.ve-hero-shot {
  width: 168px;
  background: #fff;
  border: 2px solid #c8c3b8;
  border-radius: 10px;
  overflow: hidden;
  padding: 0 0 8px;
  font-family: inherit;
  text-align: left;
}
.ve-hero-shot.is-on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(20, 80, 60, .18); }
.ve-hero-shot img,
.ve-hero-shot .ve-hero-shot-empty {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
  background: #e8e4da;
}
.ve-hero-shot-hit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.ve-hero-shot-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3c4a46;
  font-size: 14px;
  font-weight: 600;
}
.ve-hero-shot-no {
  display: block;
  padding: 8px 10px 4px;
  font-size: 14px;
  color: #14201d;
}
.ve-hero-shot-bar {
  display: flex;
  flex-wrap: wrap;
  padding: 4px 8px 0;
  gap: 6px;
}
.ve-hero-shot-bar button {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid #c8c3b8;
  background: #fff;
  color: #14201d;
  border-radius: 6px;
  cursor: pointer;
}
.ve-hero-shot-bar button.is-danger { color: var(--danger); border-color: #e2b4b0; }
.ve-hero-shot-bar button:disabled {
  opacity: .38;
  cursor: not-allowed;
}
.ve-hero-snips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}
@media (max-width: 900px) {
  .ve-hero-opts,
  .ve-hero-play,
  .ve-hero-cta { grid-template-columns: 1fr; }
}
.ve-hero textarea.ve-hero-input:focus {
  border-color: rgba(255,255,255,.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  border-radius: 4px;
}
.ve-edit:focus { box-shadow: inset 0 0 0 2px rgba(20, 80, 60, .18); border-radius: 4px; }
.ve-hero {
  min-height: 620px;
  align-items: stretch;
}
.ve-hero .hero-inner {
  width: 100%;
  padding-top: 36px;
  padding-bottom: 36px;
}
.ve-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: #14201d; }
.ve-field span { color: #14201d; }
.ve-field input,
.ve-field select,
.ve-field textarea {
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid #b8b3a8;
  background: #fff;
  color: #14201d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
}
.ve-field textarea { min-height: 96px; line-height: 1.5; }
.ve-html { min-height: 120px; }
.sun-editor-editable .cap-sheet { margin: 8px 0; }
.ve-cap-preview { margin: 8px auto 12px; overflow: auto; max-width: 1080px; }
.ve-cap-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ve-cap-preview .cap-sheet { margin: 0 auto; }
.ve-cap-preview [contenteditable] { cursor: text; }
.ve-cap-preview [contenteditable]:focus {
  outline: 2px solid rgba(31, 95, 158, .45);
  outline-offset: 1px;
  background: rgba(255,255,255,.55);
}
.ve-cap-preview img { cursor: pointer; }
.ve-source {
  width: 100%;
  min-height: 220px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}
.ve-rt-bar { display: flex; gap: 6px; margin: 8px 0; }
.ve-caption { text-align: center; color: var(--muted); }
.ve-image-pick { display: flex; align-items: center; gap: 12px; padding: 12px 22px 18px; }
.ve-image-thumb {
  width: 120px;
  height: 72px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f2ec;
  color: var(--muted);
  font-size: 13px;
}
.ve-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.ve-picker {
  position: fixed; inset: 0; background: rgba(8,32,26,.5);
  display: flex; align-items: center; justify-content: center; z-index: 20000; padding: 24px;
}
.ve-picker-box {
  background: #fff; border-radius: 12px; padding: 24px; max-width: 760px; width: 100%;
  max-height: 80vh; overflow: auto;
}
.ve-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.ve-picker-item {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 8px; text-align: left;
}
.ve-picker-item img { width: 100%; height: 90px; object-fit: cover; border-radius: 4px; display: block; }
.ve-picker-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; word-break: break-all; }
.ve-picker-item.is-on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(20,80,60,.2); }
.ve-picker-none { min-height: 90px; }
.ve-picker-upload { margin: 8px 0 4px; }
.ve-picker-upload input[type="file"] { margin-top: 8px; }
.ve-picker-search {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 8px 0 0;
  font-size: 14px;
}
.ve-picker-filters { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.ve-picker-filters .ve-picker-search { margin: 0; flex: 1; }
.ve-picker-cat {
  flex: 0 0 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
}
.ve-doc-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; max-height: 48vh; overflow: auto; }
.ve-doc-item {
  display: block; width: 100%; text-align: left;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 10px 12px; cursor: pointer;
}
.ve-doc-item strong { display: block; font-size: 14px; }
.ve-doc-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.ve-doc-item:hover:not(:disabled) { border-color: var(--green); }
.ve-doc-item.is-off, .ve-doc-item:disabled { opacity: .55; cursor: not-allowed; }
.ve-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin: 12px 0; }
.ve-icon-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
}
.ve-icon-item img { width: 36px; height: 36px; display: block; margin: 0 auto 6px; }
.ve-icon-item span { font-size: 12px; color: var(--muted); }
.ve-icon-item:hover { border-color: var(--green); }

.gap { color: var(--danger); font-weight: 600; }
.ok-status { color: var(--green); font-weight: 600; }
.muted { color: var(--muted); }
.partial { color: var(--warn); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .logo .name { display: none; }
}

@media (max-width: 1024px) {
  .site-header .bar { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px 10px;
    margin-left: auto;
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--mobile-nav-toggle) 28%, transparent);
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--mobile-nav-toggle);
    border-radius: 1px;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle span { transition: transform .18s ease, opacity .18s ease; }
  .nav {
    display: none;
    order: 4;
    width: 100%;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 8px 0 12px;
    border-top: 1px solid var(--mobile-nav-border, rgba(255,255,255,.1));
  }
  body.nav-open .nav { display: flex; }
  body[class*="theme-"] .nav a {
    padding: 12px 8px;
    color: var(--mobile-nav-text);
  }
  .nav-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
  }
  .nav-group > a { flex: 1 1 auto; }
  .nav-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    background: transparent;
    border: 0;
    color: var(--mobile-nav-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  .nav-group.is-open > .nav-more { color: var(--accent); }
  .nav-group:hover > .nav-drop,
  .nav-group:focus-within > .nav-drop { display: none; }
  .nav-group.is-open > .nav-drop,
  .nav-group.is-open:hover > .nav-drop,
  .nav-group.is-open:focus-within > .nav-drop {
    display: flex;
    flex-direction: column;
  }
  .nav-drop {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0 0 8px;
    padding: 4px 0 4px 16px;
    background: color-mix(in srgb, var(--mobile-nav-bg, var(--header-drop-bg, var(--header-bg))) 88%, transparent);
    border: 0;
    border-radius: 8px;
    box-shadow: none;
  }
  .nav-drop a { padding: 10px 12px; color: var(--mobile-nav-muted); }
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    border: 0;
    padding: 0;
    margin: 0;
    background: var(--mobile-nav-backdrop, rgba(0, 0, 0, .45));
    cursor: pointer;
  }
  body.nav-open.mobile-nav-overlay .nav-backdrop,
  body.nav-open.mobile-nav-drawer .nav-backdrop,
  body.nav-open.mobile-nav-fullscreen .nav-backdrop {
    display: block;
  }
  body.mobile-nav-overlay.nav-open .nav,
  body.mobile-nav-drawer.nav-open .nav,
  body.mobile-nav-fullscreen.nav-open .nav {
    order: unset;
    position: fixed;
    z-index: 60;
    border-top: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--mobile-nav-bg, var(--header-bg, #08201a));
  }
  body.mobile-nav-overlay.nav-open .nav {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 40px));
    max-height: min(80vh, 640px);
    padding: 16px 12px 20px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  }
  body.mobile-nav-drawer.nav-open .nav {
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    max-height: 100dvh;
    padding: 72px 16px 24px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, .25);
    animation: nav-drawer-in .22s ease;
  }
  body.mobile-nav-fullscreen.nav-open .nav {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 72px 20px 32px;
  }
  @keyframes nav-drawer-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .text-cols.is-3 { grid-template-columns: 1fr 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Process capability sheet ---------- */
.prose .cap-sheet { max-width: none; }
.site-main > .cap-sheet {
  max-width: 1080px;
  width: calc(100% - 48px);
  margin: 32px auto 48px;
  padding: 28px 32px 20px;
}
.cap-sheet {
  --cap-blue: #1f5f9e;
  --cap-ink: #16324d;
  --cap-line: #2a4d73;
  --cap-head: #b7d4ea;
  position: relative;
  overflow: hidden;
  margin: 8px 0 24px;
  padding: 22px 22px 16px;
  color: var(--cap-ink);
  background-color: #cfe4f4;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(207,228,244,.2)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.4) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.4) 39px 40px);
  border: 1px solid #9bbbd4;
  box-shadow: var(--shadow-sm);
}
.cap-sheet::before {
  content: "";
  position: absolute;
  inset: 8% 8% 28%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(90,140,190,.18), transparent 55%),
    radial-gradient(ellipse at 70% 50%, rgba(70,120,170,.14), transparent 50%);
  pointer-events: none;
}
.cap-title {
  position: relative;
  z-index: 1;
  width: max-content;
  margin: 0 auto 18px;
  padding: 8px 48px;
  background: var(--cap-blue);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .12em;
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.cap-specs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.cap-sheet table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--cap-line);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  font-size: 14px;
}
.cap-sheet thead th,
.prose .cap-sheet thead th {
  background: var(--cap-head);
  color: var(--cap-ink);
  font-size: 14px;
  letter-spacing: 0;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid var(--cap-line);
}
.cap-sheet th,
.cap-sheet td,
.prose .cap-sheet th,
.prose .cap-sheet td {
  border: 1px solid var(--cap-line);
  padding: 7px 10px;
  vertical-align: middle;
  word-break: break-word;
}
.cap-spec th:first-child {
  width: 42%;
  font-weight: 600;
  background: rgba(183,212,234,.28);
  white-space: nowrap;
}
.cap-spec td { color: #1b3b57; }
.cap-cuts { margin-top: 4px; }
.cap-cuts th { text-align: center; }
.cap-cuts tbody th {
  writing-mode: vertical-rl;
  letter-spacing: .3em;
  font-size: 16px;
  width: 42px;
  background: rgba(183,212,234,.35);
}
.cap-cuts td { padding: 6px; background: #0f1720; }
.cap-cuts img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cap-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.cap-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cap-blue);
  font-size: 22px;
  letter-spacing: .16em;
}
.cap-mark {
  width: 22px;
  height: 22px;
  background: #d21f1f;
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}
.cap-date { color: #6a8194; font-size: 13px; }
.cap-motto {
  background: var(--cap-blue);
  color: #fff;
  font-weight: 700;
  letter-spacing: .18em;
  padding: 8px 28px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 900px) {
  .cap-specs { grid-template-columns: 1fr; }
  .cap-title { font-size: 22px; padding: 8px 28px; }
  .cap-cuts img { height: 140px; }
}
@media (max-width: 720px) {
  .cap-foot { flex-wrap: wrap; }
  .cap-motto { width: 100%; clip-path: none; text-align: center; }
  .cap-cuts { display: block; overflow-x: auto; }
  .cap-cuts img { height: 120px; }
}

/* ---------- Login ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background:
    radial-gradient(1200px 480px at 50% -10%, rgba(212, 175, 55, .16), transparent 55%),
    linear-gradient(165deg, #0d2f24 0%, #14503c 42%, #0a1f19 100%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow: 0 18px 50px rgba(8, 32, 26, .28);
  border-top: 4px solid var(--copper);
}
.login-mark {
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--accent);
  font-size: 13px;
  margin: 0 0 4px;
}
.login-card .eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
  margin: 0 0 14px;
}
.login-card h1 {
  font-size: 28px;
  margin: 0 0 10px;
}
.login-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  background: var(--paper);
}
.login-form input:focus {
  outline: 2px solid rgba(184, 115, 51, .35);
  border-color: var(--copper);
  background: #fff;
}
.login-error {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}
.login-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.login-back {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 720px) {
  .site-header .bar { gap: 12px; padding: 12px 18px; }
  .nav { padding-bottom: 4px; }
  .hero { min-height: 380px; background-position: 70% center; }
  .hero-inner { padding: 60px 18px; }
  .hero-track,
  .hero-slide { min-height: 380px; }
  .hero-prev, .hero-next { width: 34px; height: 34px; margin-top: -17px; font-size: 22px; }
  .hero-html .hero-grid,
  .hero-html .hero-grid-3 { grid-template-columns: 1fr; }
  .site-main > * { padding: 0 18px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .timeline div { grid-template-columns: 1fr; gap: 4px; }
  .split, .split.is-flip { grid-template-columns: 1fr; }
  .split.is-flip .split-media { order: 0; }
  .text-cols.is-2,
  .text-cols.is-3 { grid-template-columns: 1fr; }
  .figure.is-left,
  .figure.is-right { float: none; width: 100%; margin: 0 0 16px; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 28px; }
  .data, .prose table { display: block; overflow-x: auto; }
  .prose .cap-sheet table { display: table; }
}

/* ---------- Theme admin ---------- */
.theme-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 16px 20px;
  margin: 20px 0;
  background: linear-gradient(135deg, #f7faf8 0%, #eef4f0 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 920px;
}
.theme-status-main { flex: 1 1 200px; }
.theme-status-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.theme-status-value { font-size: 18px; color: var(--ink); }
.theme-status-swatches { display: flex; gap: 6px; }
.theme-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid rgba(0,0,0,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.theme-status-link { margin-left: auto; }

.theme-help {
  max-width: 920px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafbfa;
}
.theme-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green);
}
.theme-help-list {
  margin: 12px 0 8px;
  padding-left: 1.25rem;
  line-height: 1.7;
  color: var(--body);
}

.theme-form { max-width: 920px; }
.theme-step {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.theme-step:last-child { border-bottom: 0; }
.theme-step-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.theme-step-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  grid-column: auto;
}
.theme-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.theme-subhead {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.theme-group-title {
  grid-column: 1 / -1;
  margin: 16px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.theme-preset-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.theme-preset-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  text-align: left;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  font: inherit;
  color: inherit;
}
.theme-preset-card:hover {
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.theme-preset-card.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  background: #f5faf7;
}
.theme-preset-swatches {
  display: flex;
  gap: 4px;
}
.theme-preset-swatches span {
  flex: 1;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.1);
}
.theme-preset-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.theme-preset-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}
.theme-style-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.theme-load-hint {
  grid-column: 1 / -1;
  color: var(--green);
  font-weight: 600;
}
.theme-color-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.theme-color-grid .field-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.theme-mobile-preview-swatches {
  display: flex;
  gap: 10px;
  margin: 8px 0 4px;
}
.theme-mobile-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.theme-save-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 24px;
  padding: 20px;
  background: #fafbfa;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.theme-save-primary {
  display: grid;
  gap: 8px;
}
.theme-btn-primary {
  font-size: 16px;
  padding: 12px 28px;
  font-weight: 700;
}
.theme-save-secondary {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.theme-save-secondary label { max-width: 320px; }

.theme-profiles {
  max-width: 920px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}
.theme-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.theme-profile-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.theme-profile-card.is-current {
  border-color: var(--green);
  background: #f5faf7;
}
.theme-profile-card h3 {
  margin: 10px 0 6px;
  font-size: 16px;
}
.theme-profile-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
}
.theme-profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Media library ---------- */
.media-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 12px;
}
.media-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.media-tool {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 2px solid #d4af37;
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #08201a);
  text-decoration: none;
  box-shadow: 3px 3px 0 #08201a;
}
.media-tool strong {
  font-size: 16px;
  font-weight: 800;
}
.media-tool span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.media-tool:hover {
  color: var(--ink, #08201a);
  background: #fffbeb;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #08201a;
}
.media-tool.is-active {
  background: #ffe500;
  border-color: #000;
  color: #111;
}
.media-tool.is-active span { color: #333; }
@media (max-width: 720px) {
  .media-tools { grid-template-columns: 1fr; }
}
.media-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  text-decoration: none;
  font-size: 14px;
}
.media-tab.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.media-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.media-search input[type="search"] {
  min-width: 220px;
  flex: 1 1 220px;
}
.media-upload-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 16px;
  margin-bottom: 20px;
  background: #fafbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.media-grid .span-all { grid-column: 1 / -1; }
.media-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.media-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #f4f6f5;
  border-bottom: 1px solid var(--line-soft);
}
.media-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.media-file-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .06em;
}
.media-card-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}
.media-card-body strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.media-usage {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--body);
}
.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.media-delete-form { display: inline; }
.media-icon-label-form {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.media-icon-label-form label {
  font-size: 12px;
  display: grid;
  gap: 4px;
}
.media-inuse {
  margin: 16px 0;
  padding: 12px 16px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.media-inuse-list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.media-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.media-icon-choice {
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 72px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  color: var(--body);
}
.media-icon-choice.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 25%, transparent);
}
.media-icon-choice img { display: block; }
.media-icon-default {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--line-soft);
  font-size: 11px;
}
.doc-icon-field { grid-column: 1 / -1; }

.pixabay-import {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfa;
}
.pixabay-import h2 {
  margin: 0 0 6px;
  font-size: 16px;
}
.pixabay-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 12px 0;
}
.pixabay-search label {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.pixabay-search input[type="search"] {
  min-width: 220px;
}
.pixabay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.pixabay-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.pixabay-thumb {
  display: block;
  width: 100%;
  height: 120px;
  padding: 0;
  border: 0;
  background: #eef1ef;
  cursor: zoom-in;
}
.pixabay-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pixabay-card-body {
  padding: 10px;
  display: grid;
  gap: 6px;
}
.pixabay-card-body strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pixabay-more {
  margin-top: 12px;
}

.studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.icon-studio {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 16px;
  min-height: 520px;
}
.studio-editor {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.studio-editor-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfa;
}
.studio-editor-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.studio-editor-file { margin-left: auto; }
.studio-editor-export {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.studio-png-size-inline select,
.studio-png-custom-inline {
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
}
.studio-png-custom-inline {
  width: 72px;
}
.studio-icon-btn {
  min-width: 32px;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 1;
}
.studio-snap-toggle {
  font-size: 12px;
  white-space: nowrap;
}
.studio-workspace {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  min-height: 0;
}
.studio-tool-rail {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.studio-tool-btn {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  transition: background .12s, border-color .12s;
}
.studio-tool-btn:hover {
  background: #f4f6f5;
  border-color: var(--line-soft);
}
.studio-tool-btn.is-active {
  background: color-mix(in srgb, var(--green) 14%, #fff);
  border-color: var(--green);
  color: var(--green);
}
.studio-tool-icon {
  font-size: 18px;
  line-height: 1;
}
.studio-tool-name {
  font-size: 10px;
  color: var(--muted);
}
.studio-tool-btn.is-active .studio-tool-name { color: var(--green); }
.studio-canvas-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f6f5;
  padding: 12px;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.studio-canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.studio-canvas-toolbar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
}
.studio-zoom-label {
  min-width: 44px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.studio-canvas-toolbar-hint {
  margin-left: auto;
  font-size: 11px;
}
.studio-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: calc(100vh - 180px);
  overflow: auto;
}
.studio-panel-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}
.studio-search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.studio-icon-list {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}
.studio-icon-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fafbfa;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}
.studio-icon-item:hover { border-color: var(--green); }
.studio-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.studio-upload {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
}
.studio-canvas-stage.studio-fabric-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
}
.studio-canvas-grid {
  --studio-cell: 16px;
  background-color: #eef1ef;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.07) 1px, transparent 1px);
  background-size: var(--studio-cell) var(--studio-cell);
}
.studio-fabric-stage .canvas-container {
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  border-radius: 4px;
  line-height: 0;
  outline: 2px solid rgba(47,107,79,.25);
  overflow: visible;
}
.studio-fabric-stage .upper-canvas,
.studio-fabric-stage .lower-canvas {
  overflow: visible;
}
.studio-context-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  padding: 0 8px;
}
.studio-preview-box img {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.studio-previews {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.studio-preview-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.studio-preview-box {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.studio-preview-box span { font-size: 11px; color: var(--muted); }
.studio-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.studio-field input[type="text"],
.studio-field input[type="number"],
.studio-field select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.studio-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.studio-field-label {
  font-size: 13px;
}
.studio-check label {
  font-size: 12px;
  cursor: pointer;
}
.studio-actions {
  display: grid;
  gap: 8px;
}
.studio-tools .btn.is-active {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, #fff);
}
.studio-canvas-stage.studio-tool-draw { cursor: crosshair; }
.studio-canvas-stage.studio-tool-draw #studio-canvas { cursor: crosshair; }
.studio-field-group {
  display: grid;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 4px;
}
.studio-props-panel {
  padding: 0;
  gap: 0;
}
.studio-quick-style {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
  background: #fafbfa;
}
.studio-quick-hint {
  margin: 0;
  font-size: 11px;
}
.studio-color-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 8px;
  align-items: center;
}
.studio-color-pick {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.studio-color-pick input[type="color"] {
  width: 40px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
}
.studio-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  grid-column: 2;
}
.studio-check-inline {
  grid-column: 1 / -1;
  font-size: 11px;
}
.studio-swatch {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  padding: 0;
}
.studio-swatch:hover {
  transform: scale(1.08);
}
.studio-stroke-width-row {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.studio-layers-section {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  gap: 8px;
}
.studio-layers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.studio-layer-hint { margin: 0; font-size: 12px; line-height: 1.45; }
.studio-layer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
}
.studio-layer-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}
.studio-layer-item:hover { border-color: var(--green); }
.studio-layer-item.is-active {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, #fff);
}
.studio-layer-item.is-dragging { opacity: .45; }
.studio-layer-item.is-drop-target {
  border-color: var(--accent, #ffe500);
  box-shadow: inset 0 3px 0 var(--accent, #ffe500);
}
.studio-layer-item { cursor: grab; }
.studio-layer-item:active { cursor: grabbing; }
.studio-layer-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: transparent;
}
.studio-layer-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-layer-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
  text-align: center;
}
.studio-props-empty {
  padding: 20px 14px;
  text-align: center;
  color: var(--muted);
}
.studio-props-empty p:first-child {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
}
.studio-props-empty .admin-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.studio-props-body {
  padding: 12px 14px;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.studio-prop-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: color-mix(in srgb, var(--green) 14%, #fff);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  width: fit-content;
}
.studio-prop-section {
  display: grid;
  gap: 8px;
}
.studio-prop-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.studio-prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.studio-prop-cell {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.studio-prop-cell input[type="number"],
.studio-prop-cell select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
}
.studio-prop-cell input[type="range"] {
  width: 100%;
  margin: 4px 0 0;
}
.studio-prop-span2 {
  grid-column: 1 / -1;
}
.studio-range-val {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.studio-layer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.studio-props-save {
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.studio-props-save .studio-panel-head {
  margin-top: 0;
}
#studio-canvas .studio-draft { opacity: .75; }

.photo-studio {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 180px);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0d1c18;
}
.photo-editor { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: #f4f6f5; }
.photo-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 0;
  height: calc(100vh - 240px);
}
.photo-stage {
  position: relative;
  min-height: 480px;
  background:
    linear-gradient(45deg, #cfd8d4 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(45deg, transparent 75%, #cfd8d4 75%) 8px 8px / 16px 16px,
    #e7ece9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.photo-stage canvas {
  display: block;
  cursor: crosshair;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}
.photo-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: rgba(244, 246, 245, .72);
}
.photo-empty[hidden] { display: none; }
.photo-gallery {
  display: grid;
  gap: 8px;
  padding: 10px 12px 16px;
  overflow: auto;
  max-height: calc(100vh - 260px);
}
.photo-thumb {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: transparent;
  color: #dce7e1;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.photo-thumb img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
}
.photo-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.photo-thumb:hover, .photo-thumb.is-active {
  border-color: #d4af37;
  background: rgba(212, 175, 55, .12);
}
.photo-props { background: #fff; max-height: none; }
.photo-aspects { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.photo-aspects .btn.is-active {
  background: var(--green-ink, #08201a);
  color: #fff;
}
@media (max-width: 960px) {
  .photo-studio, .photo-workspace { grid-template-columns: 1fr; }
  .photo-stage { min-height: 360px; }
}

@media (max-width: 960px) {
  .icon-studio { grid-template-columns: 1fr; }
  .studio-panel { max-height: none; }
  .studio-workspace { grid-template-columns: 1fr; }
  .studio-tool-rail {
    grid-template-columns: repeat(4, 1fr);
  }
  .studio-tool-name { display: none; }
}

.msg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 18px;
}
.msg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 0;
}
.msg-filters a {
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.msg-filters a.is-on {
  color: var(--green);
  border-bottom-color: var(--copper);
}
.msg-detail {
  margin: 0 0 24px;
  padding: 18px 20px;
  background: #f7faf8;
  border: 1px solid #d7e3dc;
  border-radius: 8px;
}
.msg-detail-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.msg-body {
  margin: 14px 0 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5ebe7;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  line-height: 1.55;
  max-height: 420px;
  overflow: auto;
}
.msg-table tr.is-unread td {
  font-weight: 600;
  background: #f3f8f5;
}
.msg-table tr.is-selected td {
  background: #e8f1ec;
}
.inline-form { display: inline; margin: 0; }
.inline-form button[disabled] { opacity: .45; cursor: not-allowed; }

