:root {
  --wh-blue: #0A71B4;
  --wh-blue-dark: #075587;
  --wh-black: #14181c;
  --wh-line: #e4e8ec;
  --wh-bg: #f5f7f9;
  --wh-white: #fff;
  --wh-muted: #667080;
  --wh-green: #146c43;
  --wh-red: #b3261e;
  --wh-radius: 10px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--wh-bg);
  color: var(--wh-black);
  font-family: "DM Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: inherit;
}

/* ---------- login ---------- */

.wh-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.wh-login-card {
  width: 100%;
  max-width: 380px;
  background: var(--wh-white);
  border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius);
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(20, 24, 28, .07);
}

.wh-login-logo {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 22px;
}

.wh-login-card h1 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

.wh-login-card p.wh-sub {
  margin: 0 0 26px;
  color: var(--wh-muted);
  font-size: 13.5px;
  text-align: center;
}

.wh-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.wh-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--wh-muted);
}

.wh-field input[type="text"],
.wh-field input[type="password"],
.wh-field input[type="url"],
.wh-field input[type="tel"],
.wh-field input[type="email"],
.wh-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--wh-line);
  border-radius: 8px;
  font: inherit;
  color: var(--wh-black);
  background: var(--wh-white);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.wh-field input:focus,
.wh-field textarea:focus {
  outline: none;
  border-color: var(--wh-blue);
  box-shadow: 0 0 0 3px rgba(10, 113, 180, .14);
}

.wh-field textarea {
  resize: vertical;
  min-height: 70px;
}

.wh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--wh-blue);
  color: var(--wh-white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}

.wh-btn:hover,
.wh-btn:focus-visible {
  background: var(--wh-blue-dark);
  outline: none;
}

.wh-alert {
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.wh-alert-error {
  background: #fbeceb;
  color: var(--wh-red);
  border: 1px solid #f2c8c5;
}

.wh-alert-success {
  background: #e9f6ee;
  color: var(--wh-green);
  border: 1px solid #bfe3cd;
}

/* ---------- dashboard shell ---------- */

.wh-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.wh-sidebar {
  background: var(--wh-white);
  border-right: 1px solid var(--wh-line);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.wh-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--wh-line);
}

.wh-sidebar-brand img {
  width: 34px;
  height: auto;
}

.wh-sidebar-brand span {
  font-weight: 700;
  font-size: 14px;
}

.wh-sidebar-brand small {
  display: block;
  color: var(--wh-muted);
  font-size: 11px;
  font-weight: 500;
}

.wh-nav {
  display: grid;
  gap: 2px;
}

.wh-nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--wh-black);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}

.wh-nav a:hover,
.wh-nav a:focus-visible {
  background: rgba(10, 113, 180, .08);
  color: var(--wh-blue);
  outline: none;
}

.wh-sidebar-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--wh-line);
}

.wh-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--wh-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}

.wh-logout:hover,
.wh-logout:focus-visible {
  background: #fbeceb;
  color: var(--wh-red);
  outline: none;
}

.wh-view-site {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--wh-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.wh-view-site:hover,
.wh-view-site:focus-visible {
  background: rgba(10, 113, 180, .08);
  outline: none;
}

.wh-main {
  min-width: 0;
  padding: 28px 36px 120px;
}

.wh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.wh-topbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.wh-topbar p {
  margin: 4px 0 0;
  color: var(--wh-muted);
  font-size: 13.5px;
}

.wh-section {
  background: var(--wh-white);
  border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius);
  padding: 24px 26px;
  margin-bottom: 22px;
  scroll-margin-top: 20px;
}

.wh-section h2 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
}

.wh-section .wh-section-hint {
  margin: 0 0 20px;
  color: var(--wh-muted);
  font-size: 13px;
}

.wh-row {
  display: grid;
  grid-template-columns: 200px repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--wh-line);
  align-items: start;
}

.wh-row:first-of-type {
  border-top: none;
  padding-top: 6px;
}

.wh-row-label {
  padding-top: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wh-black);
}

.wh-row-label span {
  display: block;
  margin-top: 2px;
  color: var(--wh-muted);
  font-weight: 500;
  font-size: 11.5px;
}

.wh-lang-field {
  display: grid;
  gap: 5px;
}

.wh-lang-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wh-muted);
}

.wh-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.wh-savebar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 26px;
  margin: 0 -36px -120px;
  background: rgba(245, 247, 249, .92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--wh-line);
}

.wh-savebar .wh-btn {
  width: auto;
  padding: 11px 26px;
}

.wh-save-msg {
  font-size: 13px;
  color: var(--wh-muted);
}

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

  .wh-sidebar {
    position: static;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
  }

  .wh-sidebar-brand {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .wh-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .wh-sidebar-foot {
    margin-left: auto;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    display: flex;
    gap: 4px;
  }

  .wh-main {
    padding: 22px 18px 100px;
  }

  .wh-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wh-row-label {
    padding-top: 0;
  }

  .wh-savebar {
    margin: 0 -18px -100px;
    padding: 12px 18px;
  }
}
