/* SEAVIN Navigation UI V2 — Visual Alignment
   Family: Deep Sea Blue + Cyan Teal + Cool Gray Blue
   Tokens only. No IA / business-logic changes. */

:root {
  --page-bg: var(--seavin-bg, #F3F7F8);
  --page-bg-secondary: var(--seavin-bg-secondary, #EEF6F5);
  --text-primary: var(--seavin-text-primary, #10292D);
  --text-secondary: var(--seavin-text-secondary, #6D8184);
  --sea-deep: var(--seavin-brand-deep, #0D4D68);
  --sea-primary: var(--seavin-brand-primary, #0D7174);
  --sea-accent: var(--seavin-brand-accent, #1DAFAA);
  --sea-blue: var(--seavin-brand-blue, #2D71AE);
  --surface: var(--seavin-surface, rgba(255, 255, 255, 0.86));
  --surface-strong: var(--seavin-surface-strong, #FFFFFF);
  --border: rgba(12, 92, 96, 0.13);
  --shadow: var(--seavin-shadow-md, 0 18px 44px rgba(21, 79, 84, 0.09));
  --shadow-hover: var(--seavin-shadow-lg, 0 22px 52px rgba(13, 97, 100, 0.15));
  --warning-text: var(--seavin-warning, #C86A2A);
  --warning-bg: var(--seavin-warning-bg, #FFF1E7);
  --success: var(--seavin-success, #0D7174);
  --success-bg: var(--seavin-success-bg, #ECF8F6);
  --danger: var(--seavin-danger, #B42318);
  --link: var(--seavin-brand-primary, #0D7174);
  --link-hover: var(--seavin-brand-deep, #0D4D68);
  --focus-ring: var(--seavin-focus-ring, 0 0 0 3px rgba(29, 175, 170, 0.18));
  --brand-gradient: var(--seavin-brand-gradient, linear-gradient(135deg, #0D4D68, #1DAFAA));
  --hero-emphasis: linear-gradient(90deg, var(--sea-deep), var(--sea-accent));
  --radius: var(--seavin-radius-lg, 20px);
  --radius-sm: var(--seavin-radius-md, 14px);
  --header-h: var(--seavin-header-height, 64px);
  --font: var(--seavin-font, system-ui, "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans KR", "Sarabun", "Microsoft YaHei", sans-serif);
  --ease: var(--seavin-ease, 200ms ease);

  /* compatibility aliases used by remaining selectors */
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --bg: var(--page-bg);
  --bg-deep: var(--page-bg-secondary);
  --panel: var(--surface);
  --panel-solid: var(--surface-strong);
  --accent: var(--sea-primary);
  --accent-2: var(--sea-accent);
  --line: var(--border);
}

html[data-theme="dark"] {
  --page-bg: #071519;
  --page-bg-secondary: #0A2025;
  --text-primary: #EEF8F7;
  --text-secondary: #90A9AA;
  --sea-deep: #0D4D68;
  --sea-primary: #53D5CB;
  --sea-accent: #1DB7AE;
  --sea-blue: #5FA7DF;
  --surface: rgba(14, 35, 40, 0.88);
  --surface-strong: #10262C;
  --border: rgba(110, 220, 207, 0.13);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 22px 52px rgba(0, 0, 0, 0.38);
  --warning-text: #E08A4C;
  --warning-bg: #3A2416;
  --success: #53D5CB;
  --success-bg: #12312F;
  --danger: #F0A8A2;
  --link: #53D5CB;
  --link-hover: #5FA7DF;
  --focus-ring: 0 0 0 3px rgba(29, 183, 174, 0.28);
  --brand-gradient: linear-gradient(135deg, #0D4D68, #1DB7AE);
  --hero-emphasis: linear-gradient(90deg, #5FA7DF, #53D5CB);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --page-bg: #071519;
    --page-bg-secondary: #0A2025;
    --text-primary: #EEF8F7;
    --text-secondary: #90A9AA;
    --sea-deep: #0D4D68;
    --sea-primary: #53D5CB;
    --sea-accent: #1DB7AE;
    --sea-blue: #5FA7DF;
    --surface: rgba(14, 35, 40, 0.88);
    --surface-strong: #10262C;
    --border: rgba(110, 220, 207, 0.13);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 22px 52px rgba(0, 0, 0, 0.38);
    --warning-text: #E08A4C;
    --warning-bg: #3A2416;
    --success: #53D5CB;
    --success-bg: #12312F;
    --danger: #F0A8A2;
    --link: #53D5CB;
    --link-hover: #5FA7DF;
    --focus-ring: 0 0 0 3px rgba(29, 183, 174, 0.28);
    --brand-gradient: linear-gradient(135deg, #0D4D68, #1DB7AE);
    --hero-emphasis: linear-gradient(90deg, #5FA7DF, #53D5CB);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nav-v2 {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 15% 0%, rgba(33, 180, 170, 0.10), transparent 32%),
    radial-gradient(circle at 88% 5%, rgba(45, 113, 174, 0.10), transparent 25%),
    linear-gradient(180deg, var(--page-bg), var(--page-bg-secondary));
  line-height: 1.55;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--sea-deep); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }
.muted { color: var(--text-secondary); }
.tiny { font-size: 0.82rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); }
.brand-mark { color: var(--sea-deep); display: grid; place-items: center; }
.brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark-text { font-weight: 750; letter-spacing: 0.04em; font-size: 0.95rem; color: var(--sea-deep); }
.brand-sub { font-size: 0.75rem; color: var(--text-secondary); }

.primary-nav { display: none; gap: 18px; align-items: center; }
.primary-nav a { color: var(--text-primary); font-weight: 550; font-size: 0.95rem; }
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--sea-primary); }
.nav-cta-link { color: var(--sea-primary) !important; }

.header-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.field-select, .engine-select, .search-input {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
}
.field-select.compact { max-width: 9.5rem; padding-block: 7px; }
.tool-chip, .btn-ghost, .btn-text, .menu-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px;
  padding: 10px 16px;
  background: var(--brand-gradient);
  color: #FFFFFF !important;
  font-weight: 650;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease), background-color var(--ease);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: var(--shadow-hover);
  color: #FFFFFF !important;
}
html.nav-locale-js .nav-locale-submit-fallback,
html.nav-locale-js .theme-form > button { display: none !important; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
/* Author `display` must not override UA hide for closed <details> */
.menu:not([open]) > .menu-panel {
  display: none;
}
.menu[open] > .menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 220px;
  display: grid; gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 40;
}
.menu-panel a {
  text-align: left;
  color: var(--text-primary);
  text-decoration: none;
}
.menu-panel a:hover { color: var(--sea-primary); }
.menu-panel button { text-align: left; }
.region-form { display: grid; gap: 6px; margin-bottom: 6px; color: var(--text-primary); }
.user-chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px 4px 4px; background: color-mix(in srgb, var(--surface) 70%, transparent); cursor: pointer; }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-gradient);
  color: #FFFFFF; font-weight: 700; font-size: 0.85rem;
}
.user-name { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.menu-toggle { display: inline-flex; }

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface-strong);
}
.drawer-panel {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid; gap: 4px;
  padding: 12px 0 16px;
}
.drawer-panel a {
  padding: 10px 4px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  font-weight: 550;
}

/* Main sections */
main { width: min(1120px, 92vw); margin: 0 auto; padding: 18px 0 64px; }
.hero {
  padding: 22px 0 8px;
}
.hero-inner {
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 22px 24px;
  background:
    radial-gradient(circle at 82% 8%, rgba(29, 175, 170, 0.12), transparent 42%),
    radial-gradient(circle at 12% 0%, rgba(13, 77, 104, 0.08), transparent 36%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}
.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--hero-emphasis);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}
.hero-tagline {
  margin: 10px 0 20px;
  color: var(--text-secondary);
  font-size: 1.02rem;
}
.search-shell {
  display: grid;
  grid-template-columns: minmax(96px, 120px) 1fr auto;
  gap: 8px;
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.engine-select { border-radius: 999px; min-width: 0; }
.search-input {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0;
  outline: none;
  padding-inline: 8px;
}
.search-input:focus { outline: none; }
.search-shell:focus-within {
  border-color: #1DAFAA;
  box-shadow: var(--focus-ring), var(--shadow);
}
.search-btn { white-space: nowrap; }
.hero-links { margin: 14px 0 0; font-size: 0.88rem; }
.hero-links a { color: var(--text-secondary); }
.hero-links a:hover { color: var(--sea-primary); }

.section { margin-top: 34px; }
.section-head { margin-bottom: 14px; }
.section-head h2 { margin: 0 0 4px; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--sea-deep); }
.section-head .muted { margin: 0; font-size: 0.92rem; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.product-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text-primary);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.product-card::before {
  content: "";
  position: absolute;
  top: -28%;
  right: -12%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(29, 175, 170, 0.14), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.product-card > * { position: relative; z-index: 1; }
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 175, 170, 0.55);
  box-shadow: var(--shadow-hover);
  color: var(--text-primary);
}
.product-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 750;
  color: #FFFFFF;
  background: linear-gradient(145deg, #0D4D68, #1DAFAA);
  border: 0;
}
.product-body { display: grid; gap: 2px; min-width: 0; }
.product-body strong { font-size: 1.02rem; }
.host { font-size: 0.82rem; }
.blurb { font-size: 0.88rem; }
.badge-row { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--border) 55%, transparent);
}
.badge.status-frozen, .badge.status-coming_soon {
  color: var(--warning-text);
  background: var(--warning-bg);
  border-color: color-mix(in srgb, var(--warning-text) 28%, transparent);
}
.badge.status-available {
  color: var(--success);
  background: var(--success-bg);
}
.product-card .action { font-size: 0.82rem; }
.card-arrow { color: var(--sea-accent); transition: transform var(--ease); }
.product-card:hover .card-arrow { transform: translateX(3px); }

.login-panel {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(13, 77, 104, 0.10), rgba(29, 175, 170, 0.12));
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.login-title { margin: 0; font-weight: 600; }

.personal-grid, .category-grid, .site-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* Prefer fluid columns so nested / half-width grids never crush cards */
.site-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.panel-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid rgba(13, 77, 104, 0.14);
  color: var(--text-primary);
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.category-card, .site-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: 0 10px 28px rgba(21, 79, 84, 0.05);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.panel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 175, 170, 0.45);
  box-shadow: var(--shadow-hover);
  color: var(--text-primary);
}
.category-card:hover, .site-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 175, 170, 0.40);
  color: var(--text-primary);
}
.panel-card.is-static { cursor: default; }
.panel-card.is-static:hover { transform: none; }
.category-card, .site-card {
  grid-template-columns: auto 1fr;
  align-items: start;
}
.cat-icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem;
  color: var(--sea-deep);
  background: rgba(13, 77, 104, 0.08);
  border: 1px solid var(--border);
}
.site-icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem;
  color: var(--sea-primary);
  background: rgba(29, 175, 170, 0.12);
  border: 1px solid rgba(29, 175, 170, 0.18);
}
.site-copy { display: grid; gap: 2px; min-width: 0; }
.site-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-link { margin-left: 8px; font-size: 0.85rem; font-weight: 500; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.footer-inner { width: min(1120px, 92vw); margin: 0 auto; display: grid; gap: 10px; }
.footer-brand { margin: 0; font-weight: 750; letter-spacing: 0.06em; color: var(--sea-deep); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

:focus-visible {
  outline: 2px solid var(--sea-accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .primary-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-drawer { display: none !important; }
  .product-grid, .personal-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 32px 28px 28px; }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-card { grid-template-columns: 1fr; align-items: start; min-height: 180px; }
  .product-card .card-arrow { justify-self: end; }
  .personal-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .product-card:hover,
  .panel-card:hover,
  .category-card:hover,
  .site-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}

/* Compat for non-home views using old class names */
.wrap { width: min(1120px, 92vw); margin: 0 auto; padding: 20px 0 48px; }
.nav-header { display: none; }
.card { padding: 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
button.linkish { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font: inherit; }

/* Member tools — production forms / cards / empty states */
.mt-page { display: grid; gap: 22px; max-width: 1120px; }
.mt-pagehead { display: grid; gap: 8px; }
.mt-pagehead h1 { margin: 0; font-size: clamp(1.55rem, 2.4vw, 2rem); color: var(--sea-deep); letter-spacing: -0.02em; }
.mt-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr); align-items: start; }
.mt-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.mt-card.is-static { box-shadow: none; }
.mt-card__title { margin: 0 0 14px; font-size: 1.05rem; color: var(--text-primary); }
.mt-form { display: grid; gap: 14px; }
.mt-field { display: grid; gap: 6px; }
.mt-field label {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  font-weight: 600; color: var(--text-primary); font-size: 0.92rem;
}
.mt-req { color: var(--danger); font-size: 0.78rem; font-weight: 550; }
.mt-opt { color: var(--text-secondary); font-size: 0.78rem; font-weight: 500; }
.mt-input, .mt-select, .mt-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text-primary);
  padding: 10px 12px;
  font: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.mt-textarea { min-height: 110px; resize: vertical; }
.mt-input:focus, .mt-select:focus, .mt-textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--sea-accent) 55%, var(--border));
  box-shadow: var(--focus-ring);
}
.mt-input:disabled, .mt-select:disabled, .mt-textarea:disabled, .btn-primary:disabled {
  opacity: 0.6; cursor: not-allowed;
}
.mt-input.is-error, .mt-select.is-error, .mt-textarea.is-error {
  border-color: var(--danger);
}
.mt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mt-msg { margin: 0; min-height: 1.2em; color: var(--text-secondary); font-size: 0.92rem; }
.mt-msg.is-error { color: var(--danger); }
.mt-msg.is-ok { color: var(--success); }
.mt-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 8px; color: var(--text-secondary); }
.mt-section { display: grid; gap: 12px; }
.mt-section h2 { margin: 0; font-size: 1.15rem; color: var(--sea-deep); }
.mt-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mt-recent li {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
}
.mt-status {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 10px;
  font-size: 0.78rem; font-weight: 650;
  background: color-mix(in srgb, var(--sea-primary) 12%, transparent);
  color: var(--sea-primary);
}
.mt-status--pending { background: var(--warning-bg); color: var(--warning-text); }
.mt-status--approved { background: var(--success-bg); color: var(--success); }
.mt-status--rejected,
.mt-status--returned,
.mt-status--closed { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.mt-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-filter {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  cursor: pointer;
}
.mt-filter.is-active,
.mt-filter[aria-selected="true"] {
  background: color-mix(in srgb, var(--sea-primary) 12%, transparent);
  border-color: color-mix(in srgb, var(--sea-primary) 35%, var(--border));
  color: var(--sea-primary);
  font-weight: 650;
}
.mt-filter:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mt-card-list { display: grid; gap: 12px; }
.mt-sub-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mt-sub-card__head h2,
.mt-sub-card__head h3 { margin: 0; font-size: 1.05rem; }
.mt-note { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--page-bg-secondary); color: var(--text-secondary); }
.mt-link { color: var(--link); font-weight: 600; }
.mt-empty { color: var(--text-secondary); }
.mt-empty--panel {
  display: grid; gap: 12px; justify-items: start;
  padding: 28px 22px; border-radius: var(--radius);
  border: 1px dashed var(--border); background: var(--surface);
}
.mt-empty--panel h2, .mt-empty--panel h3 { margin: 0; color: var(--text-primary); }
.mt-url-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.mt-url-prefix {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--page-bg-secondary);
  color: var(--text-secondary); font-size: 0.85rem;
}
.mt-stack { display: grid; gap: 10px; }
.mt-inline-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mt-template-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); display: grid; }
.mt-template-cover { display: block; margin: 0 0 12px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.mt-template-cover img { display: block; width: 100%; max-height: 140px; object-fit: cover; }
.mt-crumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.mt-crumbs a { color: var(--link); }
.panel { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }

@media (max-width: 860px) {
  .mt-layout { grid-template-columns: 1fr; }
  .mt-url-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-input, .mt-select, .mt-textarea, .mt-filter, .btn-primary { transition: none; }
}

/* SEA INK / 海墨智荐 badge (flag-gated section) */
.sea-ink-badge {
  display: inline-block;
  margin-left: 0.35em;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--nav-accent, #0b6e7a);
  border: 1px solid color-mix(in srgb, var(--nav-accent, #0b6e7a) 40%, transparent);
  padding: 0.05em 0.4em;
  border-radius: 0.25rem;
  vertical-align: middle;
}
.sea-ink-disclaimer { margin: 0 0 0.75rem; max-width: 52rem; }

/* Navigation V1.2 — discovery tabs + entity cards + smart submit */
.discovery-tabs { display: grid; gap: 14px; }
.discovery-tablist {
  display: flex; flex-wrap: wrap; gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.discovery-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  cursor: pointer;
}
.discovery-tab.is-active,
.discovery-tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--sea-primary) 12%, transparent);
  border-color: color-mix(in srgb, var(--sea-primary) 35%, var(--border));
  color: var(--sea-primary);
  font-weight: 650;
}
.discovery-panel { display: grid; gap: 12px; }
.entity-card .entity-avatar {
  padding: 0; overflow: hidden;
}
.entity-card .entity-avatar img {
  width: 36px; height: 36px; object-fit: cover; display: block; border-radius: 12px;
}
.entity-meta { display: block; }
.entity-reason { display: block; }
.entity-cta { display: block; font-weight: 600; color: var(--sea-primary); }
.site-grid--curated { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.creator-card {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
  padding: 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-elevated, var(--card));
}
.creator-card__main {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px;
  text-decoration: none; color: inherit;
  min-width: 0;
}
.creator-card__avatar {
  width: 48px; height: 48px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: color-mix(in srgb, var(--sea-primary) 10%, transparent);
}
.creator-card__avatar img { width: 48px; height: 48px; object-fit: cover; display: block; }
.creator-card__avatar--fallback { font-weight: 700; color: var(--sea-primary); }
.creator-card__name { display: block; line-height: 1.25; }
.creator-card__handle { display: block; }
.creator-card__meta { display: block; }
.creator-card__bio {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35;
}
.creator-card__platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.creator-card__platform-link {
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border); text-decoration: none; color: var(--sea-primary);
}
.entity-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.discover-filter-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 12px;
}
.discover-filters { margin-bottom: 18px; }
.smart-suggestion {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--sea-primary) 6%, transparent);
}
.mt-field--url-smart .mt-url-row { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 860px) {
  .mt-field--url-smart .mt-url-row { grid-template-columns: 1fr; }
}


/* === V1.3 UX-IA === */
.nav-v13 .hero--v13 {
  position: relative;
  padding: 3.5rem 1.25rem 2.75rem;
  overflow: hidden;
}
.nav-v13 .hero--v13.hero--compact { padding-top: 2rem; padding-bottom: 1.5rem; }
.nav-v13 .hero-atmosphere {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 480px at 50% -10%, rgba(29,175,170,.22), transparent 60%),
    linear-gradient(165deg, #0a3a4f 0%, #0d5f6b 42%, #117a7c 100%);
  opacity: .95;
}
.nav-v13 .hero-inner { position: relative; max-width: 920px; margin: 0 auto; color: #f3fbfb; }
.nav-v13 .hero--v13 .eyebrow { letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.nav-v13 .hero--v13 h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .35rem 0 .5rem; }
.nav-v13 .hero--v13 .hero-tagline { font-size: 1.15rem; margin: 0 0 .35rem; }
.nav-v13 .hero--v13 .hero-supporting { color: rgba(243,251,251,.82); margin-bottom: 1.25rem; }
.nav-v13 .search-shell {
  display: grid; grid-template-columns: auto 1fr auto; gap: .6rem;
  background: rgba(255,255,255,.94); border-radius: 16px; padding: .55rem;
  box-shadow: 0 18px 40px rgba(8,40,48,.22);
}
.nav-v13 .search-shell .engine-select,
.nav-v13 .search-shell .search-input {
  border: 0; background: transparent; color: #10292d; min-height: 44px;
}
.nav-v13 .editorial-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.nav-v13 .editorial-hero,
.nav-v13 .editorial-secondary {
  min-width: 0;
}
.nav-v13 .editorial-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.nav-v13 .editorial-secondary .creator-card,
.nav-v13 .editorial-secondary .entity-card,
.nav-v13 .editorial-secondary .site-card {
  min-width: 0;
  height: 100%;
}
.nav-v13 .editorial-hero .creator-card,
.nav-v13 .editorial-hero .entity-card,
.nav-v13 .editorial-hero .site-card {
  min-height: 100%;
  height: 100%;
  padding: 1.25rem;
}
@media (max-width: 960px) {
  .nav-v13 .editorial-layout { grid-template-columns: 1fr; }
  .nav-v13 .editorial-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-v13 .search-shell { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-v13 .editorial-secondary { grid-template-columns: 1fr; }
}
.nav-v13 .use-case-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem;
}
@media (max-width: 720px) {
  .nav-v13 .use-case-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.nav-v13 .use-case-tile {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1rem 1.05rem; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(238,246,245,.9));
  border: 1px solid rgba(12,92,96,.12); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-v13 .use-case-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(13,97,100,.12); }
.nav-v13 .collections-rail, .nav-v13 .creators-rail {
  display: flex; gap: .85rem; overflow-x: auto; padding-bottom: .35rem; scroll-snap-type: x mandatory;
}
.nav-v13 .collection-card, .nav-v13 .creators-rail .entity-card {
  flex: 0 0 min(280px, 80vw); scroll-snap-align: start;
  border-radius: 16px; padding: 1rem; background: rgba(255,255,255,.9);
  border: 1px solid rgba(12,92,96,.12); text-decoration: none; color: inherit;
}
.nav-v13 .guest-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.4rem; border-radius: 18px;
  background: linear-gradient(120deg, rgba(13,77,104,.08), rgba(29,175,170,.12));
}
.nav-v13 .products-section--weak { opacity: .92; }
.nav-v13 .discover-layout {
  display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 1.25rem;
}
@media (max-width: 900px) {
  .nav-v13 .discover-layout { grid-template-columns: 1fr; }
}
.nav-v13 .discover-side-nav { display: flex; flex-direction: column; gap: .35rem; }
.nav-v13 .discover-side-link {
  padding: .55rem .75rem; border-radius: 10px; text-decoration: none; color: inherit;
}
.nav-v13 .discover-side-link.is-active {
  background: rgba(29,175,170,.14); color: #0d4d68; font-weight: 600;
}
.nav-v13 .discover-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0 1rem; }
.nav-v13 .discover-chip {
  padding: .35rem .7rem; border-radius: 999px; border: 1px solid rgba(12,92,96,.16);
  text-decoration: none; color: inherit; font-size: .9rem;
}
.nav-v13 .discover-chip.is-active { background: #0d7174; color: #fff; border-color: transparent; }
.nav-v13 .footer-links--products { display: grid; gap: .25rem; }
.nav-v13 .footer-links-label { font-weight: 600; margin: 0 0 .2rem; }
.nav-v13 .brand-lockup { display: inline-flex; align-items: center; gap: .65rem; }
.nav-v13 .brand-mark-link { display: inline-flex; }
.nav-v13 .personal-grid--utility {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem;
}
@media (max-width: 800px) {
  .nav-v13 .personal-grid--utility { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.nav-v13 .utility-tile {
  display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem;
  border-radius: 14px; background: rgba(255,255,255,.9); border: 1px solid rgba(12,92,96,.12);
  text-decoration: none; color: inherit;
}


/* === EDITORIAL GRID FIX v13f1 === */
.creator-card__body,
.creator-card__main,
.entity-card {
  min-width: 0;
}
.creator-card__name,
.creator-card__handle,
.creator-card__meta,
.creator-card__bio {
  max-width: 100%;
  overflow-wrap: break-word;
}

.editorial-layout {
  display: grid !important;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: stretch !important;
  width: 100%;
}
.editorial-hero,
.editorial-secondary {
  min-width: 0 !important;
  max-width: 100%;
}
.editorial-secondary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-content: start !important;
}
.editorial-secondary > * {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100%;
  box-sizing: border-box;
}
.editorial-secondary .creator-card,
.editorial-secondary .entity-card,
.editorial-secondary .site-card {
  overflow: hidden;
}
.editorial-secondary .creator-card__name,
.editorial-secondary .creator-card__handle,
.editorial-secondary .creator-card__meta,
.editorial-secondary .creator-card__bio,
.editorial-secondary .creator-card__body {
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
}
.editorial-hero .creator-card,
.editorial-hero .entity-card,
.editorial-hero .site-card {
  height: auto;
  min-height: 0;
  max-height: none;
}
@media (max-width: 960px) {
  .editorial-layout {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 560px) {
  .editorial-secondary {
    grid-template-columns: 1fr !important;
  }
}
/* Discovery grids: never force fixed 4-col into narrow parents */
.discovery-panel > .site-grid,
.site-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
}


/* === V1.3 VISUAL FINAL POLISH === */
.home-v13 .section { margin-top: 2.75rem; }
.home-v13 .section-head h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.home-v13 .section-head .muted { max-width: 42rem; }
.home-v13 .discovery-section { margin-top: 2rem; }
.home-v13 .products-section--weak {
  opacity: 0.88;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(12, 92, 96, 0.08);
}
.home-v13 .products-section--weak .section-head h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary, #5b7377);
}

/* Reduce boxiness: sections themselves are not cards */
.home-v13 .section:not(.guest-cta-section) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.entity-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
  background: rgba(13, 77, 104, 0.08);
  color: #0d4d68;
}
.entity-badge--tool { background: rgba(29, 175, 170, 0.12); color: #0d7174; }
.entity-badge--community { background: rgba(45, 113, 174, 0.12); color: #2d71ae; }
.entity-card--tool { border-color: rgba(29, 175, 170, 0.22); }
.entity-card--community { border-color: rgba(45, 113, 174, 0.2); }
.entity-card--website .entity-cta { opacity: 0.85; }

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 180px;
  background:
    linear-gradient(160deg, rgba(13, 77, 104, 0.06), rgba(29, 175, 170, 0.05)),
    rgba(255, 255, 255, 0.92);
}
.collection-card__badge,
.collection-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d7174;
}
.collection-card__blurb { font-size: 0.9rem; line-height: 1.4; }
.collection-card__cta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0d4d68;
}

.creators-section .creators-rail {
  gap: 0.9rem;
}
.creators-section .creator-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.35rem 0.15rem;
}
.creators-section .creator-card__main {
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(12, 92, 96, 0.1);
}
.creators-more a { font-weight: 600; }

.guest-cta {
  border: 0;
  background: linear-gradient(120deg, rgba(13, 77, 104, 0.1), rgba(29, 175, 170, 0.14));
  box-shadow: none;
}
.use-case-tile {
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  border-bottom: 1px solid rgba(12, 92, 96, 0.12);
  border-radius: 12px;
}
.use-case-tile:hover {
  background: rgba(255, 255, 255, 0.9);
}

.personal-section--member {
  padding: 1rem 0 0.25rem;
}
.utility-tile {
  border: 1px solid rgba(12, 92, 96, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

/* Discover */
.discover-mobile-groups {
  display: none;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
}
.discover-mobile-chip,
.discover-type-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 92, 96, 0.16);
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  white-space: nowrap;
}
.discover-mobile-chip.is-active,
.discover-type-chip.is-active,
.discover-chip.is-active {
  background: #0d7174;
  color: #fff;
  border-color: transparent;
}
.discover-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 1rem;
}
.discover-filters--compact {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 1rem;
}
.discover-filter-grid--compact {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 0.75rem;
}
.discover-side {
  position: sticky;
  top: 5.25rem;
  align-self: start;
}
@media (max-width: 900px) {
  .discover-side { display: none; }
  .discover-mobile-groups { display: flex; }
  .discover-layout { grid-template-columns: 1fr; }
  .discover-filter-grid--compact { grid-template-columns: 1fr; }
}

/* Dark mode: deep sea, not pure black */
html[data-theme="dark"] body.nav-v13,
html[data-theme="dark"] .nav-v13 {
  --page-bg: #0a2430;
}
html[data-theme="dark"] {
  --page-bg: #0a2430;
  --page-bg-secondary: #0d2f3b;
  --surface: rgba(14, 40, 50, 0.88);
  --surface-strong: #123644;
  --text-primary: #e7f3f4;
  --text-secondary: #9bb4b8;
  --border: rgba(140, 190, 196, 0.16);
}
html[data-theme="dark"] .hero--v13 .hero-atmosphere,
html[data-theme="dark"] .hero-atmosphere {
  opacity: 1;
}
html[data-theme="dark"] .collection-card,
html[data-theme="dark"] .creators-section .creator-card__main,
html[data-theme="dark"] .utility-tile,
html[data-theme="dark"] .use-case-tile,
html[data-theme="dark"] .site-card,
html[data-theme="dark"] .creator-card {
  background: rgba(14, 40, 50, 0.92);
  border-color: rgba(140, 190, 196, 0.16);
  color: var(--text-primary);
}
html[data-theme="dark"] .guest-cta {
  background: linear-gradient(120deg, rgba(13, 77, 104, 0.35), rgba(29, 175, 170, 0.22));
}
html[data-theme="dark"] .entity-badge {
  background: rgba(29, 175, 170, 0.16);
  color: #9ee7e3;
}

@media (prefers-reduced-motion: reduce) {
  .nav-v13 *,
  .nav-v13 *::before,
  .nav-v13 *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* === V1.3 HTML PROTO POLISH === */
.footer-inner.footer-grid {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 28px 40px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  padding: 38px 0 56px;
}
.footer-col .footer-links-label { font-weight: 700; margin: 0 0 12px; }
.footer-col a { display: block; color: var(--muted, #5b6b6d); margin: 7px 0; font-size: 13px; text-decoration: none; }
.footer-col a:hover { color: var(--sea, #0d7884); }
.footer-copy { margin-top: 14px; }
@media (max-width: 820px) {
  .footer-inner.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-inner.footer-grid { grid-template-columns: 1fr; }
}

.use-case-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-height: 132px;
}
.use-case-tile__icon {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(13,97,112,.12), rgba(18,157,155,.18));
  color: #0d6170; font-size: 18px; font-weight: 700;
}
.use-case-tile__keywords { font-size: 12px; line-height: 1.45; }

.eco-bar-section { padding-top: 8px; }
.eco-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid rgba(13,97,112,.12); border-radius: 18px;
  padding: 16px 20px; background: rgba(255,255,255,.55);
}
.eco-bar__brand { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.eco-bar__links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: flex-end; }
.eco-bar__link { text-decoration: none; color: inherit; font-size: 13px; }
.eco-bar__link b { font-weight: 650; }
@media (max-width: 820px) {
  .eco-bar { flex-direction: column; align-items: flex-start; }
  .eco-bar__links { justify-content: flex-start; }
}

.personal-grid--utility { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .personal-grid--utility { grid-template-columns: 1fr; }
}

.collection-card {
  background: linear-gradient(145deg, #0c6170, #129d9b);
  color: #fff; border: 0;
}
.collection-card .muted, .collection-card__blurb, .collection-card__count { color: rgba(255,255,255,.78) !important; }
.collection-card__eyebrow { color: rgba(255,255,255,.7); }
.collections-rail .collection-card:nth-child(2) { background: linear-gradient(145deg, #223c65, #337ca1); }
.collections-rail .collection-card:nth-child(3) { background: linear-gradient(145deg, #385363, #5e8d8c); }

/* === V1.3 FINAL COMPOSITION CLOSURE === */
.editorial-hero .entity-card--hero,
.editorial-hero .site-card,
.editorial-hero .creator-card {
  min-height: 0;
  height: auto;
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  justify-content: flex-start;
}
.editorial-hero .site-icon,
.editorial-hero .entity-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.25rem;
}
.editorial-hero .entity-badge { margin-bottom: .15rem; }
.editorial-hero .entity-desc { font-size: .95rem; line-height: 1.45; }
.editorial-hero .entity-reason { opacity: .78; }
.editorial-hero .entity-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  color: var(--sea, #0d7884);
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.creators-grid .entity-card,
.creators-grid .creator-card {
  min-width: 0;
  width: 100%;
}
/* Kill desktop native scrollbar treatment on creator rails */
.creators-section .creators-rail,
.creators-section .creators-grid {
  overflow-x: visible;
  scrollbar-width: none;
}
.creators-section .creators-rail::-webkit-scrollbar { display: none; }
@media (max-width: 960px) {
  .creators-grid {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .creators-grid::-webkit-scrollbar { display: none; }
  .creators-grid .entity-card,
  .creators-grid .creator-card {
    flex: 0 0 min(78vw, 260px);
    scroll-snap-align: start;
  }
}

.site-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.discovery-more { margin-top: .75rem; }

.use-case-tile {
  min-height: 138px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.use-case-tile:hover,
.use-case-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 97, 112, .12);
  outline: none;
}
.use-case-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(13,97,112,.10), rgba(18,157,155,.16));
}
.use-case-tile__keywords { font-size: 12px; line-height: 1.45; opacity: .82; }
@media (max-width: 720px) {
  .use-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-case-tile { min-height: 120px; }
}

.eco-bar__link .muted { text-transform: none; }

/* === V1.3 PROTOTYPE VISUAL ALIGNMENT (proto2) ===
   Align presentation to SEAVIN_Navigation_V1_3_目标视觉参考原型.html
   without changing IA / data rules. */

body.nav-v13 {
  --proto-bg: #f3f9fa;
  --proto-ink: #102b33;
  --proto-muted: #6f858c;
  --proto-line: #dcebed;
  --proto-sea: #0c7180;
  --proto-sea2: #119b9a;
  --proto-deep: #0b4452;
  --proto-soft: #e8f6f6;
  --proto-shadow: 0 18px 48px rgba(21, 77, 86, 0.09);
  --proto-max: 1180px;
  background: linear-gradient(180deg, #f8fcfc, #eef8f9 45%, #f8fbfb);
  color: var(--proto-ink);
  font-size: 15px;
  line-height: 1.65;
}

body.nav-v13 main {
  width: min(var(--proto-max), 92vw);
}

body.nav-v13 .site-header {
  background: rgba(248, 252, 252, 0.9);
  border-bottom-color: var(--proto-line);
}
body.nav-v13 .header-inner {
  width: min(var(--proto-max), 92vw);
  min-height: 72px;
}
body.nav-v13 .brand-mark-text { font-weight: 800; }
body.nav-v13 .primary-nav a { font-weight: 750; }
body.nav-v13 .tool-chip {
  border: 1px solid var(--proto-line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
}

/* Hero = rounded teal card (prototype .hero) */
.home-v13 .hero-wrap {
  padding: 34px 0 12px;
}
.home-v13 .hero.hero--v13 {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 0;
  margin: 0;
  box-shadow: var(--proto-shadow);
  color: #fff;
}
.home-v13 .hero--v13.hero--compact {
  /* keep compact density via inner padding only */
}
.home-v13 .hero--v13 .hero-atmosphere {
  position: absolute;
  inset: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 24rem),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.18), transparent 20rem),
    linear-gradient(135deg, #0c5363, #128a8e 58%, #18a5a1);
}
.home-v13 .hero--v13 .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 70px 48px 48px;
  text-align: center;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.home-v13 .hero--compact .hero-inner {
  padding: 48px 36px 36px;
}
.home-v13 .hero--v13 .eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 800;
  opacity: 0.72;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #fff;
  text-transform: uppercase;
}
.home-v13 .hero--v13 h1 {
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 12px 0;
  color: #fff;
  letter-spacing: -0.02em;
}
.home-v13 .hero--v13 .hero-tagline {
  font-size: 1.25rem;
  margin: 0;
  color: #fff;
}
.home-v13 .hero--v13 .hero-supporting {
  font-size: 14px;
  opacity: 0.76;
  margin: 8px 0 30px;
  color: rgba(255, 255, 255, 0.86);
}
.home-v13 .hero--v13 .search-shell {
  display: grid;
  grid-template-columns: 150px 1fr 82px;
  gap: 8px;
  max-width: none;
  margin: 0 auto;
  padding: 9px;
  border-radius: 20px;
  background: #fff;
  border: 0;
  box-shadow: 0 20px 45px rgba(2, 39, 46, 0.2);
  color: var(--proto-ink);
}
.home-v13 .hero--v13 .search-shell .engine-select,
.home-v13 .hero--v13 .search-shell .search-input {
  border: 0;
  background: transparent;
  color: var(--proto-ink);
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 12px;
}
.home-v13 .hero--v13 .search-btn {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--proto-sea), var(--proto-sea2));
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}
.home-v13 .hero--v13 .hero-links {
  margin-top: 17px;
  font-size: 13px;
  opacity: 0.8;
}
.home-v13 .hero--v13 .hero-links a {
  color: rgba(255, 255, 255, 0.88);
}
.home-v13 .hero--v13 .hero-links a:hover {
  color: #fff;
}

@media (max-width: 820px) {
  .home-v13 .hero.hero--v13 { border-radius: 26px; }
  .home-v13 .hero--v13 .hero-inner { padding: 48px 22px 36px; }
  .home-v13 .hero--v13 h1 { font-size: 2.35rem; }
  .home-v13 .hero--v13 .search-shell {
    grid-template-columns: 110px 1fr 64px;
  }
}
@media (max-width: 520px) {
  .home-v13 .hero--v13 .search-shell {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.home-v13 .section {
  margin-top: 0;
  padding: 44px 0 0;
}
.home-v13 .section-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--proto-ink);
}
.home-v13 .section-head .muted {
  margin: 5px 0 0;
  color: var(--proto-muted);
  max-width: 40rem;
}
.home-v13 .section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.home-v13 .section-more {
  color: var(--proto-sea);
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
}
.home-v13 .section-more:hover { color: var(--proto-deep); }

/* Personal tiles */
.home-v13 .personal-grid--utility {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-v13 .utility-tile {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--proto-line);
  border-radius: 20px;
  padding: 22px;
  min-height: 112px;
  box-shadow: none;
}
.home-v13 .utility-tile strong { font-size: 17px; }
.home-v13 .utility-tile .muted { margin-top: 8px; }

/* Discovery tabs = soft pills */
.home-v13 .discovery-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.home-v13 .discovery-tab {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--proto-line);
  background: #fff;
  color: var(--proto-ink);
  font-weight: 550;
  cursor: pointer;
}
.home-v13 .discovery-tab.is-active {
  background: var(--proto-soft);
  color: var(--proto-sea);
  font-weight: 800;
  border-color: transparent;
}

/* Editorial 1+4 */
.home-v13 .editorial-layout {
  display: grid !important;
  grid-template-columns: 1.25fr 0.75fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}
.home-v13 .editorial-secondary {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

/* Feature / hero card */
.home-v13 .editorial-hero .feature-card,
.home-v13 .editorial-hero .entity-card--hero {
  min-height: 310px;
  height: 100%;
  border-radius: 28px;
  padding: 30px !important;
  border: 0;
  background: linear-gradient(145deg, #0d4755, #0f7884 58%, #159b9a);
  color: #fff;
  box-shadow: var(--proto-shadow);
  text-decoration: none;
}
.home-v13 .feature-card__eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0.72;
  margin-bottom: 8px;
}
.home-v13 .editorial-hero .feature-card__logo,
.home-v13 .editorial-hero .site-icon,
.home-v13 .editorial-hero .entity-avatar {
  width: 62px !important;
  height: 62px !important;
  border-radius: 20px !important;
  background: #fff;
  color: var(--proto-sea);
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
  margin: 36px 0 20px;
  overflow: hidden;
}
.home-v13 .editorial-hero .feature-card__logo img,
.home-v13 .editorial-hero .entity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-v13 .editorial-hero .site-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.home-v13 .editorial-hero .site-copy strong {
  font-size: 28px;
  line-height: 1.15;
  color: #fff;
}
.home-v13 .editorial-hero .entity-desc,
.home-v13 .editorial-hero .entity-meta,
.home-v13 .editorial-hero .muted {
  color: rgba(255, 255, 255, 0.84) !important;
}
.home-v13 .editorial-hero .entity-reason {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.72;
}
.home-v13 .editorial-hero .entity-cta {
  margin-top: auto;
  color: #fff !important;
  font-weight: 750;
  opacity: 0.9;
}

/* Secondary mini cards */
.home-v13 .editorial-secondary .entity-card,
.home-v13 .editorial-secondary .site-card,
.home-v13 .editorial-secondary .creator-card {
  min-height: 148px;
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--proto-line);
  box-shadow: none;
}
.home-v13 .editorial-secondary .site-icon,
.home-v13 .editorial-secondary .entity-avatar,
.home-v13 .editorial-secondary .creator-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--proto-soft);
  color: var(--proto-sea);
  font-weight: 900;
}
.home-v13 .editorial-secondary .entity-cta,
.home-v13 .editorial-secondary .entity-badge {
  color: var(--proto-sea);
}

/* Use-case tiles */
.home-v13 .use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-v13 .use-case-tile {
  border: 1px solid var(--proto-line);
  border-radius: 22px;
  padding: 22px;
  min-height: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 252, 252, 0.76));
  border-bottom: 1px solid var(--proto-line);
  box-shadow: none;
}
.home-v13 .use-case-tile__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: var(--proto-soft);
  color: var(--proto-sea);
}
.home-v13 .use-case-tile strong {
  font-size: 1.05rem;
  margin: 0 0 7px;
}
.home-v13 .use-case-tile__keywords {
  font-size: 13px;
  color: var(--proto-muted);
  opacity: 1;
}

/* Collections grid */
.home-v13 .collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-v13 .collection-card {
  border-radius: 25px;
  padding: 24px;
  min-height: 240px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--proto-shadow);
  border: 0;
  text-decoration: none;
  background: linear-gradient(145deg, #0c6170, #129d9b);
}
.home-v13 .collection-grid .collection-card:nth-child(2) {
  background: linear-gradient(145deg, #223c65, #337ca1);
}
.home-v13 .collection-grid .collection-card:nth-child(3) {
  background: linear-gradient(145deg, #385363, #5e8d8c);
}
.home-v13 .collection-card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.home-v13 .collection-card__title {
  font-size: 24px;
  margin: 40px 0 0;
  color: #fff;
}
.home-v13 .collection-card__blurb,
.home-v13 .collection-card__count {
  color: rgba(255, 255, 255, 0.8) !important;
}
.home-v13 .collection-card__count { margin-top: auto; font-size: 13px; }
.home-v13 .collection-card__cta {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

/* Creators */
.home-v13 .creators-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.home-v13 .creators-section .creator-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--proto-line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: none;
}
.home-v13 .creators-section .creator-card__main {
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.home-v13 .creators-section .creator-card__avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, #d7eef0, #b8dde1);
  color: var(--proto-sea);
  font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
}
.home-v13 .creators-section .creator-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-v13 .creators-section .creator-card__platform-link {
  display: inline-block;
  border: 1px solid var(--proto-line);
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--proto-sea);
  font-size: 11px;
  margin-top: 8px;
}

/* Guest CTA */
.home-v13 .guest-cta {
  border-radius: 30px;
  background: linear-gradient(135deg, #0b4452, #0d7884);
  color: #fff;
  padding: 34px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  border: 0;
  box-shadow: var(--proto-shadow);
}
.home-v13 .guest-cta h2 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
}
.home-v13 .guest-cta .muted {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.76) !important;
}
.home-v13 .guest-cta .btn-primary {
  background: #fff !important;
  color: var(--proto-deep, var(--seavin-brand-deep, #0b4452)) !important;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  border: 0;
  box-shadow: none;
}
.home-v13 .guest-cta .btn-primary:hover {
  background: #f3fbfb !important;
  color: var(--proto-deep, var(--seavin-brand-deep, #0b4452)) !important;
}

/* Eco bar */
.home-v13 .eco-bar {
  border: 1px solid var(--proto-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  padding: 18px 22px;
}

/* Footer */
body.nav-v13 .footer-inner.footer-grid {
  width: min(var(--proto-max), 92vw);
}

@media (max-width: 960px) {
  .home-v13 .editorial-layout { grid-template-columns: 1fr !important; }
  .home-v13 .creators-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
    overflow: visible;
  }
  .home-v13 .creators-grid .entity-card,
  .home-v13 .creators-grid .creator-card {
    flex: unset;
  }
}
@media (max-width: 820px) {
  .home-v13 .personal-grid--utility,
  .home-v13 .use-case-grid,
  .home-v13 .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-v13 .guest-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .home-v13 .personal-grid--utility,
  .home-v13 .use-case-grid,
  .home-v13 .collection-grid,
  .home-v13 .creators-grid,
  .home-v13 .editorial-secondary {
    grid-template-columns: 1fr !important;
  }
  .home-v13 .section-head--row {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-v13 .section-head h2 { font-size: 24px; }
}

/* Dark: keep deep-sea, soften prototype overrides */
html[data-theme="dark"] body.nav-v13 {
  background: linear-gradient(180deg, #071519, #0a2025 55%, #071519);
}
html[data-theme="dark"] .home-v13 .hero--v13 .search-shell {
  background: #10262c;
  color: var(--text-primary);
}
html[data-theme="dark"] .home-v13 .hero--v13 .search-shell .engine-select,
html[data-theme="dark"] .home-v13 .hero--v13 .search-shell .search-input {
  color: var(--text-primary);
}
html[data-theme="dark"] .home-v13 .utility-tile,
html[data-theme="dark"] .home-v13 .editorial-secondary .entity-card,
html[data-theme="dark"] .home-v13 .editorial-secondary .site-card,
html[data-theme="dark"] .home-v13 .editorial-secondary .creator-card,
html[data-theme="dark"] .home-v13 .use-case-tile,
html[data-theme="dark"] .home-v13 .creators-section .creator-card,
html[data-theme="dark"] .home-v13 .eco-bar,
html[data-theme="dark"] .home-v13 .discovery-tab {
  background: rgba(14, 40, 50, 0.92);
  border-color: rgba(140, 190, 196, 0.16);
  color: var(--text-primary);
}
html[data-theme="dark"] .home-v13 .discovery-tab.is-active {
  background: rgba(29, 175, 170, 0.16);
  color: #9ee7e3;
}

/* Discover page ↔ prototype */
.discover-page--v13 .discover-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0 60px;
}
.discover-page--v13 .discover-side {
  position: sticky;
  top: 96px;
  align-self: start;
  border-right: 1px solid var(--proto-line, #dcebed);
  padding-right: 18px;
}
.discover-page--v13 .discover-side-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--proto-sea, #0c7180);
  font-weight: 800;
  margin: 0 0 10px;
}
.discover-page--v13 .discover-side-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--proto-muted, #6f858c);
  text-decoration: none;
  font-weight: 550;
}
.discover-page--v13 .discover-side-link.is-active {
  background: var(--proto-soft, #e8f6f6);
  color: var(--proto-sea, #0c7180);
  font-weight: 800;
}
.discover-page--v13 .discover-main h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin: 4px 0;
  color: var(--proto-ink, #102b33);
}
.discover-page--v13 .discover-chips,
.discover-page--v13 .discover-type-row,
.discover-page--v13 .discover-mobile-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.discover-page--v13 .discover-chip,
.discover-page--v13 .discover-type-chip,
.discover-page--v13 .discover-mobile-chip {
  border: 1px solid var(--proto-line, #dcebed);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
  color: inherit;
  font-size: 0.92rem;
}
.discover-page--v13 .discover-chip.is-active,
.discover-page--v13 .discover-type-chip.is-active,
.discover-page--v13 .discover-mobile-chip.is-active {
  background: var(--proto-soft, #e8f6f6);
  color: var(--proto-sea, #0c7180);
  font-weight: 800;
  border-color: transparent;
}
.discover-page--v13 .site-grid .site-card,
.discover-page--v13 .result-card {
  background: #fff;
  border: 1px solid var(--proto-line, #dcebed);
  border-radius: 20px;
  padding: 18px;
  min-height: 160px;
}
.discover-page--v13 .discover-mobile-groups { display: none; }
@media (max-width: 900px) {
  .discover-page--v13 .discover-layout { display: block; padding-top: 20px; }
  .discover-page--v13 .discover-side { display: none; }
  .discover-page--v13 .discover-mobile-groups { display: flex; }
}


/* === V3 Global Frame: secondary product navigation === */
body.nav-global-frame .nav-product-secondary,
body.nav-v2.nav-global-frame .nav-product-secondary,
body.nav-v13.nav-global-frame .nav-product-secondary {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--seavin-surface, #fff) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--seavin-border, rgba(13, 77, 104, 0.12));
}
body.nav-global-frame .nav-product-secondary__inner,
body.nav-v2.nav-global-frame .nav-product-secondary__inner,
body.nav-v13.nav-global-frame .nav-product-secondary__inner {
  max-width: var(--nav-max, 1120px);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
body.nav-global-frame .nav-product-secondary__links,
body.nav-v2.nav-global-frame .nav-product-secondary__links,
body.nav-v13.nav-global-frame .nav-product-secondary__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
}
body.nav-global-frame .nav-product-secondary__links a,
body.nav-v2.nav-global-frame .nav-product-secondary__links a,
body.nav-v13.nav-global-frame .nav-product-secondary__links a {
  color: var(--text-secondary, #4a6670);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
body.nav-global-frame .nav-product-secondary__links a:hover,
body.nav-global-frame .nav-product-secondary__links a.is-active,
body.nav-v2.nav-global-frame .nav-product-secondary__links a:hover,
body.nav-v2.nav-global-frame .nav-product-secondary__links a.is-active,
body.nav-v13.nav-global-frame .nav-product-secondary__links a:hover,
body.nav-v13.nav-global-frame .nav-product-secondary__links a.is-active {
  color: var(--sea-deep, #0D4D68);
  border-bottom-color: var(--sea-accent, #1DAFAA);
}
body.nav-global-frame .nav-product-secondary__tools,
body.nav-v2.nav-global-frame .nav-product-secondary__tools,
body.nav-v13.nav-global-frame .nav-product-secondary__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
body.nav-global-frame .nav-content-shell,
body.nav-v2.nav-global-frame .nav-content-shell,
body.nav-v13.nav-global-frame .nav-content-shell {
  min-height: 40vh;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}
@media (max-width: 767px) {
  body.nav-global-frame .nav-product-secondary__links,
  body.nav-v2.nav-global-frame .nav-product-secondary__links,
  body.nav-v13.nav-global-frame .nav-product-secondary__links { display: none; }
  body.nav-global-frame .nav-product-secondary__tools .locale-form,
  body.nav-global-frame .nav-product-secondary__tools .theme-form,
  body.nav-global-frame .nav-product-secondary__tools .more-menu,
  body.nav-v2.nav-global-frame .nav-product-secondary__tools .locale-form,
  body.nav-v2.nav-global-frame .nav-product-secondary__tools .theme-form,
  body.nav-v2.nav-global-frame .nav-product-secondary__tools .more-menu,
  body.nav-v13.nav-global-frame .nav-product-secondary__tools .locale-form,
  body.nav-v13.nav-global-frame .nav-product-secondary__tools .theme-form,
  body.nav-v13.nav-global-frame .nav-product-secondary__tools .more-menu {
    display: none;
  }
  body.nav-global-frame .nav-product-secondary__inner,
  body.nav-v2.nav-global-frame .nav-product-secondary__inner,
  body.nav-v13.nav-global-frame .nav-product-secondary__inner {
    justify-content: flex-end;
  }
  body.nav-global-frame .nav-product-secondary__tools,
  body.nav-v2.nav-global-frame .nav-product-secondary__tools,
  body.nav-v13.nav-global-frame .nav-product-secondary__tools {
    flex-wrap: nowrap;
  }
  body.nav-global-frame .mobile-drawer .drawer-region,
  body.nav-v2.nav-global-frame .mobile-drawer .drawer-region,
  body.nav-v13.nav-global-frame .mobile-drawer .drawer-region {
    display: grid;
    gap: 8px;
    padding: 10px 4px 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
  }
  body.nav-global-frame .mobile-drawer .drawer-region .field-select,
  body.nav-v2.nav-global-frame .mobile-drawer .drawer-region .field-select,
  body.nav-v13.nav-global-frame .mobile-drawer .drawer-region .field-select {
    width: 100%;
    max-width: none;
    border-radius: var(--radius-sm);
  }
}
@media (min-width: 768px) {
  body.nav-global-frame .nav-product-secondary .menu-toggle,
  body.nav-v2.nav-global-frame .nav-product-secondary .menu-toggle,
  body.nav-v13.nav-global-frame .nav-product-secondary .menu-toggle { display: none; }
  body.nav-global-frame .mobile-drawer .drawer-region,
  body.nav-v2.nav-global-frame .mobile-drawer .drawer-region,
  body.nav-v13.nav-global-frame .mobile-drawer .drawer-region { display: none; }
}
