  :root {
    --bg: #F4F3EF;          /* Warm paper background */
    --bg-laplace: #111216;  /* Dark Laplace Mode background */
    --card: #FCFBF6;        /* Notion-like paper card */
    --text-dark: #181A17;   /* Close to black ink */
    --text-main: #4E4C46;   /* Secondary slate text */
    --muted: #8E91A5;       /* Muted text */
    --mbti-purple: #181A17; /* Accent purple replaced by ink black */
    --mbti-purple-light: rgba(24, 26, 23, 0.05);
    --border: #D6D2C8;      /* Fine warm line/border */
    --radius: 20px;
    --shadow: 0 4px 20px rgba(24, 26, 23, 0.03), 0 2px 8px rgba(24, 26, 23, 0.01);
    --shadow-hover: 0 10px 30px rgba(24, 26, 23, 0.06), 0 4px 12px rgba(24, 26, 23, 0.02);

    /* PRD Color tokens */
    --observer-black: #181A17;
    --observer-blue: #2F75FF;
    --observer-red: #E93546;

    --archive-blue: #49A9DB;
    --archive-red: #EB5042;
    --archive-yellow: #EEB52E;
    --archive-green: #4DB26A;
    --grid: #E8E5DC;
    --radar-fill: rgba(47, 117, 255, 0.15);
  }

  * { margin:0; padding:0; box-sizing:border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
  }

  body:not(.laplace-active) {
    background-image: 
      linear-gradient(var(--grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 30px 30px;
    background-attachment: fixed;
  }

  body.laplace-active {
    background-color: var(--bg-laplace);
    background-image: 
      radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.04) 0%, transparent 45%),
      radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 45%);
    color: #C1C4D6;
    --observer-red: #7C3AED; /* Replaced harsh red in Laplace mode with sleek cyber violet */
    --observer-blue: #7C3AED; /* Laplace mode blue elements become violet */
    --radar-fill: rgba(124, 58, 237, 0.15);
  }

  /* Grid overlay for Laplace Mode */
  body.laplace-active::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(124, 58, 237, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
  }

  /* Typography */
  h1, h2, h3, .logo-text-left, .logo-text-right, .year-title, .emoji-heading, .mod-title, .character-title {
    font-family: 'Libre Bodoni', -apple-system, serif;
    font-weight: 700;
  }

  .logo-container {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
  }

  .logo-text-left, .logo-text-right {
    font-size: 22px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    user-select: none;
  }

  body.laplace-active .logo-main {
    color: #FFFFFF !important;
  }
  body.laplace-active .logo-sub {
    color: #A8AABF !important;
  }

  .logo-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 1px;
    color: var(--text-dark);
  }

  body.laplace-active .logo-icon-wrap {
    color: #FFFFFF;
  }

  .gear-eye-svg {
    width: 100%;
    height: 100%;
    animation: gearRotate 20s linear infinite;
  }
  
  @keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* Navigation */
  .kso-nav {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.4s ease, border-color 0.4s ease;
  }

  body.laplace-active .kso-nav {
    background: rgba(17, 18, 22, 0.8);
    border-bottom: 1px solid #2C2E3E;
  }

  .nav-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .nav-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s;
  }

  .nav-link:hover {
    color: var(--mbti-purple);
  }

  .mobile-menu-toggle,
  .mobile-about-link,
  .mobile-nav-panel {
    display: none;
  }

  .container {
    max-width: 1200px; /* Expanded for widescreen console & book */
    margin: 0 auto;
    padding: 10px 24px 30px; /* Reduced vertical padding to fit in standard viewports */
    position: relative;
  }

  /* Cards */
  .kso-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .kso-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #E2DDD5;
  }

  body.laplace-active .kso-card {
    background: #1C1D24;
    border-color: #2D3043;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  }

  body.laplace-active .kso-card:hover {
    border-color: var(--mbti-purple);
  }

  /* Observer Eye Wrapper & PNG Redesign */
  .observer-eye-wrapper {
    width: 320px;
    height: 320px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .observer-eye-wrapper .eye-orbit-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
  }
  
  /* Base gear: shell owns visual state, inner layer owns rotation. */
  .observer-eye-wrapper .eye-base-shell {
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: 1;
    transition: filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
      opacity 0.25s ease,
      transform 0.25s ease;
    filter: drop-shadow(0 4px 12px rgba(24, 26, 23, 0.08));
  }

  .observer-eye-wrapper .eye-base-spin-layer {
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    animation: observerGearSpin 18s linear infinite;
    will-change: transform;
  }

  .observer-eye-wrapper img.eye-base {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  @keyframes observerGearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  .observer-eye-wrapper .eye-static-core {
    position: absolute;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #000000;
    z-index: 2;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Legacy ellipse mask is disabled; the real eye shape comes from the static asset. */
  .observer-eye-wrapper .eye-mask-cover {
    display: none;
  }

  .observer-eye-wrapper img.eye-open-face {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: contain;
    z-index: 3;
    clip-path: circle(30% at 50% 50%);
    pointer-events: none;
  }

  .observer-eye-wrapper .eye-pupil-cover {
    position: absolute;
    width: 52px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    z-index: 3;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Moving pupil/iris layer */
  .observer-eye-wrapper img.eye-pupil {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: contain;
    z-index: 4;
    clip-path: circle(12% at 50% 50%);
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
  }

  .observer-eye-wrapper img.eye-closed-face {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: contain;
    z-index: 4;
    display: none;
    clip-path: circle(30% at 50% 50%);
    pointer-events: none;
  }
  
  /* Eye dynamic movements on hover - very subtle 4px shift horizontally and 2px vertically */
  .observer-eye-wrapper.look-left .eye-base-shell {
    filter: drop-shadow(0 8px 24px rgba(47, 117, 255, 0.25));
  }
  .observer-eye-wrapper.look-left img.eye-pupil {
    transform: translate(-4px, 2px);
  }
  
  .observer-eye-wrapper.look-right .eye-base-shell {
    filter: drop-shadow(0 8px 24px rgba(233, 53, 70, 0.25));
  }
  .observer-eye-wrapper.look-right img.eye-pupil {
    transform: translate(4px, 2px);
  }
  
  /* Eye selected visual states - very subtle 4px shift horizontally and 2px vertically */
  .observer-eye-wrapper.male-active .eye-base-shell {
    filter: drop-shadow(0 0 25px rgba(47, 117, 255, 0.45));
  }
  .observer-eye-wrapper.male-active img.eye-pupil {
    transform: translate(-4px, 2px);
  }
  
  .observer-eye-wrapper.female-active .eye-base-shell {
    filter: drop-shadow(0 0 25px rgba(233, 53, 70, 0.45));
  }
  .observer-eye-wrapper.female-active img.eye-pupil {
    transform: translate(4px, 2px);
  }
  
  .observer-eye-wrapper.eye-closed .eye-base-shell {
    opacity: 1;
    transform: scale(0.98);
  }
  .observer-eye-wrapper.eye-closed img.eye-closed-face {
    display: block;
  }
  .observer-eye-wrapper.eye-closed img.eye-open-face {
    display: none;
  }
  .observer-eye-wrapper.eye-closed .eye-pupil-cover {
    display: none;
  }
  .observer-eye-wrapper.eye-closed img.eye-pupil {
    display: none;
  }
  
  /* Laplace Mode overrides for Orbit SVG lines */
  body.laplace-active .eye-orbit-svg line,
  body.laplace-active .eye-orbit-svg circle {
    stroke: #2D3043;
  }

  /* Page 1 (Input/Home) Style */
  .home-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-section {
    margin-bottom: 32px;
  }

  .hero-title {
    font-size: 40px;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
  }

  body.laplace-active .hero-title {
    color: #FFFFFF;
  }

  .hero-title span {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-subtitle {
    font-size: 15px;
    color: var(--muted);
    font-weight: 500;
  }

  .robot-illustration {
    width: 64px;
    height: 64px;
    margin: 16px auto;
    animation: robotFloat 4s ease-in-out infinite alternate;
  }

  @keyframes robotFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(4deg); }
  }

  /* Form Elements */
  .form-group {
    margin-bottom: 20px;
    text-align: left;
  }

  .form-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  body.laplace-active .form-label {
    color: #EEEEEE;
  }

  .form-row {
    display: flex;
    gap: 16px;
  }

  .form-row > * {
    flex: 1;
  }

  input, select {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--text-dark);
    font-family: inherit;
    transition: all 0.2s ease;
  }

  body.laplace-active input, body.laplace-active select {
    background: #15161D;
    border-color: #2D3043;
    color: #FFFFFF;
  }

  input:focus, select:focus {
    outline: none;
    border-color: var(--mbti-purple);
    box-shadow: 0 0 0 3px var(--mbti-purple-light);
  }

  .gender-toggle {
    display: flex;
    gap: 12px;
  }

  .gender-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
  }

  body.laplace-active .gender-btn {
    background: #15161D;
    border-color: #2D3043;
  }

  .gender-btn:hover {
    border-color: var(--mbti-purple);
    color: var(--mbti-purple);
  }

  .gender-btn.active {
    background: var(--mbti-purple);
    color: #FFFFFF;
    border-color: var(--mbti-purple);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
  }

  .btn {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.5px;
    text-align: center;
  }

  .btn-primary {
    background: var(--mbti-purple);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.2);
  }

  .btn-primary:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
  }

  .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .btn-secondary {
    background: transparent;
    color: var(--muted);
    border: 1.5px solid var(--border);
    font-size: 13px;
    padding: 10px 18px;
  }

  .btn-secondary:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
  }

  body.laplace-active .btn-secondary {
    border-color: #2D3043;
  }
  body.laplace-active .btn-secondary:hover {
    border-color: #C1C4D6;
    color: #FFFFFF;
  }

  .city-wrap { position: relative; }
  .city-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 100;
    background: #FFFFFF; border: 1.5px solid var(--border); border-radius: 12px;
    max-height: 200px; overflow-y: auto; display: none; box-shadow: var(--shadow);
  }
  body.laplace-active .city-dropdown {
    background: #1C1D24;
    border-color: #2D3043;
  }
  .city-dropdown.show { display: block; }
  .city-dropdown .city-item {
    padding: 12px 16px; cursor: pointer; font-size: 13.5px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; transition: background 0.15s;
  }
  body.laplace-active .city-dropdown .city-item {
    border-bottom-color: #2D3043;
  }
  .city-dropdown .city-item:hover {
    background: var(--mbti-purple-light);
    color: var(--mbti-purple);
  }
  .city-province { font-size: 11px; color: var(--muted); }
  .online-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--observer-blue);
    border-radius: 50%;
    animation: cityLoadingSpin 0.8s linear infinite;
  }
  @keyframes cityLoadingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .online-search-trigger {
    transition: all 0.2s ease;
  }
  .male-theme-active .online-search-trigger:hover {
    background: rgba(47, 117, 255, 0.06) !important;
    color: var(--observer-blue) !important;
  }
  .female-theme-active .online-search-trigger:hover {
    background: rgba(233, 53, 70, 0.06) !important;
    color: var(--observer-red) !important;
  }

  .user-count-bar {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .avatar-stack {
    display: flex;
    align-items: center;
  }

  .avatar-stack-item {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #FAF8F5;
    background: #CCCCCC;
    margin-right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
  }
  body.laplace-active .avatar-stack-item {
    border-color: var(--bg-laplace);
  }

  .count-text {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
  }

  .solar-note {
    background: #FFFBEB;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 4px solid #F59E0B;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: #B45309;
    margin-top: 12px;
    display: none;
    line-height: 1.5;
    text-align: left;
  }

  body.laplace-active .solar-note {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.15);
  }

  /* Laplace Mode Toggle in bottom right */
  .laplace-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 150;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    user-select: none;
  }

  .laplace-toggle:hover {
    border-color: var(--mbti-purple);
    color: var(--mbti-purple);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.12);
  }

  body.laplace-active .laplace-toggle {
    background: #1C1D24;
    border-color: #2D3043;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }

  body.laplace-active .laplace-toggle .eye-indicator {
    color: var(--mbti-purple);
    text-shadow: 0 0 8px var(--mbti-purple);
  }

  /* Laplace-only elements animation */
  .laplace-only {
    display: none !important;
  }

  body.laplace-active .laplace-only {
    display: block !important;
    animation: fadeIn 0.4s ease both;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .laplace-steps {
    margin-top: 40px;
    border-top: 1px dashed var(--border);
    padding-top: 40px;
    text-align: left;
  }
  
  body.laplace-active .laplace-steps {
    border-top-color: #2D3043;
  }

  .laplace-steps h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
  }
  body.laplace-active .laplace-steps h3 { color: #FFF; }

  /* 科幻风块状终端闪烁光标 */
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  .terminal-cursor {
    color: var(--accent, var(--mbti-purple, #7c3aed));
    animation: blink 1s infinite;
    margin-left: 3px;
    font-weight: bold;
    display: inline-block;
  }

  /* 算力电池样式 */
  .quota-battery-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Public Sans', sans-serif;
    cursor: help;
    user-select: none;
    transition: color 0.2s;
    color: var(--muted);
  }
  .quota-battery-container:hover {
    color: var(--text-dark);
  }
  .quota-battery-container.hidden {
    display: none !important;
  }
  .quota-battery-container .battery-outer {
    width: 28px;
    height: 14px;
    border: 1.8px solid currentColor;
    border-radius: 3px;
    padding: 1.5px;
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.2s;
    flex-shrink: 0;
  }
  .quota-battery-container .battery-body {
    height: 100%;
    width: 100%;
    background-color: #10B981;
    border-radius: 1px;
    transition: width 0.3s ease, background-color 0.3s ease;
  }
  .quota-battery-container .battery-terminal {
    width: 1.5px;
    height: 5px;
    background-color: currentColor;
    border-radius: 0 1px 1px 0;
    position: absolute;
    right: -3px;
    top: 4.5px;
    transition: background-color 0.2s;
  }
  .quota-battery-container span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.2s;
  }

  /* 移动端导航栏自适应优化 */
  @media (max-width: 768px) {
    .nav-container {
      padding: 10px 14px !important;
    }
    .nav-right {
      gap: 8px !important; /* 缩小右侧元素间距 */
    }
    .nav-link {
      font-size: 12px !important; /* 关于我们字号稍微缩小 */
    }
    .quota-battery-container {
      gap: 4px !important; /* 缩小电池与文字的间距 */
    }
    .quota-battery-container .battery-outer {
      width: 24px !important; /* 电池宽度微调 */
      height: 12px !important;
      border-width: 1.5px !important;
      flex-shrink: 0 !important;
    }
    .quota-battery-container .battery-terminal {
      height: 4px !important;
      top: 3.5px !important;
      right: -2px !important;
    }
    .quota-battery-container span {
      display: none !important; /* 手机端隐藏“算力 3/3”等文字，仅保留精致电池图标 */
    }
    .lang-switch {
      margin-right: 4px !important; /* 减少右侧间距 */
    }
    .lang-switch button {
      padding: 3px 6px !important; /* 缩小语言切换按钮 */
      font-size: 10px !important;
    }
    .logo-main {
      font-size: 16px !important; /* 缩减 Logo 大小 */
    }
    .logo-sub {
      font-size: 8px !important;
    }
  }

  /* KSO mobile portrait contract */
  @media (max-width: 768px) {
    html {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      overflow-x: clip;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      overflow-x: clip;
      touch-action: pan-y;
    }

    body * {
      min-width: 0;
    }

    img,
    svg,
    canvas,
    video {
      max-width: 100%;
      height: auto;
    }

    .container {
      width: 100%;
      max-width: 100%;
      padding: 8px max(14px, env(safe-area-inset-left)) calc(28px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
      overflow-x: hidden;
      overflow-x: clip;
    }

    .kso-nav {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      overflow-x: clip;
    }

    .nav-container {
      width: 100%;
      max-width: 100%;
      gap: 10px;
      align-items: center;
    }

    .logo-container {
      flex: 0 1 auto;
      min-width: 88px;
    }

    .nav-right {
      flex: 0 1 auto;
      min-width: 0;
      justify-content: flex-end;
    }

    .nav-link {
      white-space: nowrap;
    }

    input,
    select,
    textarea,
    button {
      font-size: 16px;
    }

    h1,
    h2,
    h3,
    p,
    li,
    label,
    button,
    .kso-card,
    .step-panel,
    .book-page,
    .share-box,
    .history-drawer {
      overflow-wrap: anywhere;
    }

    button,
    .btn,
    .nav-link,
    .branch-option,
    .chip-item,
    .step-action-btn,
    .btn-book-action,
    .book-tab,
    .theme-btn,
    .filter-btn,
    .history-item {
      min-height: 44px;
    }

    .observer-eye-wrapper {
      width: min(74vw, 280px);
      height: min(74vw, 280px);
      margin: 6px auto 12px;
    }

    .observer-eye-wrapper .eye-base-shell,
    .observer-eye-wrapper img.eye-base,
    .observer-eye-wrapper img.eye-open-face,
    .observer-eye-wrapper img.eye-closed-face,
    .observer-eye-wrapper img.eye-pupil {
      width: min(48vw, 180px);
      height: min(48vw, 180px);
    }

    .observer-eye-wrapper .eye-static-core {
      width: min(27vw, 100px);
      height: min(27vw, 100px);
    }

    .observer-eye-wrapper .eye-pupil-cover {
      width: min(13vw, 46px);
      height: min(12vw, 42px);
    }

    .city-wrap {
      position: relative;
      z-index: 80;
    }

    .city-dropdown {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 6px);
      bottom: auto;
      width: 100%;
      max-height: min(42vh, 320px);
      z-index: 250;
    }

    .city-dropdown .city-item {
      min-height: 48px;
      gap: 10px;
      align-items: flex-start;
    }
  }

  /* Mobile touch target contract */
  @media (max-width: 480px) {
    .nav-container {
      padding: 9px 12px !important;
    }

    .nav-right {
      gap: 6px !important;
    }

    .lang-switch {
      margin-right: 0 !important;
      flex-shrink: 0;
    }

    .nav-link {
      font-size: 11px !important;
    }
  }

  /* Mobile compact top bar contract */
  @media (max-width: 768px) {
    .kso-nav {
      min-height: 54px;
    }

    .nav-container {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto 40px;
      column-gap: 8px;
      padding: 8px 12px !important;
      min-height: 54px;
      position: relative;
    }

    .nav-right {
      display: flex !important;
      min-width: 0;
      justify-self: end;
      align-self: center;
    }

    .logo-container {
      width: auto !important;
      max-width: 170px !important;
      min-width: 0 !important;
      align-items: flex-start !important;
      justify-self: start;
      align-self: center;
      overflow: hidden;
    }

    .logo-main {
      width: 100%;
      font-size: 17px !important;
      line-height: 1.08 !important;
      white-space: nowrap;
    }

    .logo-sub {
      display: none !important;
    }

    .logo-sub span {
      display: none !important;
    }

    .quota-battery-container {
      display: flex !important;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1px !important;
      transform: none;
      min-width: 42px;
      justify-self: end;
      align-self: center;
    }

    #quotaBattery.quota-battery-container.hidden {
      display: flex !important;
    }

    .quota-battery-container .battery-outer {
      width: 26px !important;
      height: 13px !important;
    }

    #quotaBattery #batteryText {
      display: block !important;
      font-size: 8.5px;
      line-height: 1;
      white-space: nowrap;
      color: var(--muted);
    }

    .lang-switch {
      display: none !important;
    }

    .nav-link {
      display: none !important;
    }

    .mobile-about-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 36px;
      padding: 0 6px;
      justify-self: end;
      align-self: center;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
      text-decoration: none;
      white-space: nowrap;
    }

    .mobile-menu-toggle {
      display: inline-flex;
      width: 40px;
      height: 40px;
      min-height: 40px;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 4px;
      justify-self: end;
      align-self: center;
      border: 1.5px solid var(--border);
      border-radius: 14px;
      background: var(--card);
      color: var(--text-dark);
      cursor: pointer;
      padding: 0;
    }

    .mobile-menu-toggle span {
      width: 16px;
      height: 2px;
      border-radius: 999px;
      background: currentColor;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-nav-panel {
      position: absolute;
      top: calc(100% + 6px);
      right: 12px;
      left: auto;
      z-index: 1200;
      display: grid;
      gap: 10px;
      width: min(342px, calc(100vw - 24px));
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: color-mix(in srgb, var(--card) 96%, transparent);
      box-shadow: 0 14px 36px rgba(24, 26, 23, 0.14);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .mobile-nav-panel.hidden {
      display: none !important;
    }

    .mobile-nav-item {
      width: 100%;
      min-height: 44px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--bg);
      color: var(--text-dark);
      font-size: 14px;
      font-weight: 700;
      text-align: left;
      text-decoration: none;
      cursor: pointer;
    }

    .mobile-nav-icon {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      background: var(--card);
      color: var(--muted);
      font-size: 15px;
      flex: 0 0 auto;
    }

    .mobile-nav-text-icon {
      width: 42px;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .mobile-nav-copy {
      min-width: 0;
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      gap: 2px;
    }

    .mobile-nav-title {
      color: var(--text-dark);
      font-size: 15px;
      font-weight: 900;
      line-height: 1.2;
    }

    .mobile-nav-subtitle {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.25;
    }

    .mobile-lang-row {
      justify-content: space-between;
    }

    .mobile-lang-actions {
      display: inline-flex;
      gap: 6px;
      flex: 0 0 auto;
    }

    .mobile-lang-actions button {
      min-width: 48px;
      min-height: 38px;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 7px 12px;
      background: var(--card);
      color: var(--text-dark);
      font-size: 13px;
      font-weight: 800;
    }
  }

  @media (max-width: 380px) {
    .nav-container {
      column-gap: 6px;
    }

    .logo-container {
      max-width: 138px !important;
    }

    .mobile-about-link {
      font-size: 11px;
      padding: 0 3px;
    }

    .quota-battery-container {
      min-width: 38px;
    }
  }
