:root {
  --ink: #14212b;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #ffffff;
  --field: #f7f9fc;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #b45309;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f4f7f8;
}

a { color: var(--brand-dark); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.topbar strong { font-size: 18px; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button, .btn {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
}
.nav .primary, .btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}
.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1000;
}
.language-trigger {
  height: 38px;
  min-width: 62px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}
.language-trigger::after { content: " \25BE"; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  overflow: hidden;
}
.language-switcher:not(.is-open) .language-menu,
.language-menu[hidden] {
  display: none !important;
}
.language-switcher a,
.nav .language-switcher a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  background: #ffffff;
}
.language-switcher a.active,
.nav .language-switcher a.active {
  background: #0f766e;
  color: #ffffff;
}
.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 56px;
}
.narrow { width: min(680px, calc(100% - 32px)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
  margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wide { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-weight: 700; font-size: 13px; color: #344054; }
.required { color: #b42318; font-weight: 700; }
.field-error { color: #b42318; font-size: 12px; min-height: 16px; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--field);
  padding: 10px;
  font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
h1 { margin: 0 0 10px; font-size: 28px; }
h2 { margin: 0 0 12px; font-size: 20px; }
p { color: #475467; line-height: 1.55; }
.status { padding: 12px; border-left: 4px solid var(--brand); background: #ecfdf5; color: #24534f; }
.status.info { border-left-color: #2563eb; background: #eff6ff; color: #1e3a8a; }
.status.warning { border-left-color: #d97706; background: #fffbeb; color: #92400e; }
.error { border-left-color: #b42318; background: #fff1f3; color: #912018; }
.btn[disabled],
.nav button[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}
.toast-region {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.toast strong { font-size: 13px; }
.toast p { margin: 0; color: inherit; }
.toast.success { border-left-color: var(--brand); color: #24534f; }
.toast.error { border-left-color: #b42318; color: #912018; }
.toast.warning { border-left-color: #d97706; color: #92400e; }
.toast.info,
.toast.loading { border-left-color: #2563eb; color: #1e3a8a; }
.toast.loading strong::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #ffffff;
}
.table-wrap table { min-width: 880px; }
.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}
.badge.warning { background: #fff7ed; color: #9a3412; }
.badge.danger { background: #fff1f3; color: #b42318; }
.badge.muted { background: #eef2f7; color: #475467; }
.btn.danger {
  border-color: #fecdd3;
  color: #b42318;
}
.btn.warning {
  border-color: #fed7aa;
  color: #9a3412;
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.logo-preview { max-height: 64px; max-width: 220px; display: block; margin-top: 8px; }
.logo-upload { margin: 18px 0; }
.logo-upload-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.logo-upload-box {
  width: min(420px, 100%);
  min-height: 190px;
  border: 2px dashed #b7c3d3;
  background: #f8fafc;
  background-image:
    linear-gradient(45deg, rgba(15, 118, 110, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 118, 110, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15, 118, 110, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15, 118, 110, 0.05) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  padding: 18px;
}
.logo-upload-box:hover, .logo-upload-box:focus-within { border-color: var(--brand); background: #f0fdfa; }
.logo-upload-plus {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  margin: 0 auto 10px;
}
.logo-upload-preview {
  max-width: 100%;
  max-height: 120px;
  display: block;
  object-fit: contain;
}
.logo-upload-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.logo-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
details.advanced { margin: 12px 0 18px; }
details.advanced summary { cursor: pointer; color: var(--brand-dark); font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }
.share-box {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}
.share-box input { min-width: min(520px, 100%); }
.white-label { background: #f6f8fb; }
.wl-header {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.wl-brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
}
.wl-logo {
  max-width: 240px;
  max-height: 72px;
  object-fit: contain;
  display: block;
}
.wl-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.wl-nav a { color: var(--brand); text-decoration: none; font-weight: 700; }
.wl-hero {
  padding: 42px;
  border-top: 5px solid var(--brand);
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.wl-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
}
.wl-footer a { color: var(--brand); }
.inquiry-list { display: grid; gap: 14px; }
.inquiry-item { border-left: 4px solid var(--brand); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
.wl-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.wl-card {
  border: 1px solid var(--line);
  background: #ffffff;
  display: grid;
  min-height: 100%;
}
.wl-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.wl-card div { padding: 16px; }
.wl-card h3 { margin: 0 0 8px; font-size: 19px; }
.wl-card h3 a { color: var(--ink); text-decoration: none; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}
.wl-detail-hero {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
}
.admin-body { background: #eef3f6; }
.admin-topbar { position: sticky; top: 0; z-index: 10; }
.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 67px);
}
.admin-sidebar {
  background: #10232f;
  color: #ffffff;
  padding: 18px 12px;
  display: grid;
  align-content: start;
  gap: 4px;
}
.admin-sidebar a {
  color: #dbeafe;
  text-decoration: none;
  padding: 10px 12px;
  border: 1px solid transparent;
}
.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: #163848;
  border-color: rgba(255,255,255,0.14);
  color: #ffffff;
}
.admin-main {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 56px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.metric { margin-bottom: 0; }
.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.metric strong {
  display: block;
  font-size: 30px;
}
.mt { margin-top: 14px; }
.admin-pre,
td pre {
  max-height: 360px;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  font-size: 12px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.media-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 10px;
}
.media-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: #f8fafc;
  display: block;
}
.media-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.media-grid input { font-size: 12px; min-height: 34px; margin-top: 6px; }
@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .grid, .grid-3, .wl-card-grid { grid-template-columns: 1fr; }
  .wl-header { align-items: flex-start; flex-direction: column; }
  .wl-hero { padding: 24px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid, .media-grid { grid-template-columns: 1fr; }
}
