  :root {
    --color-bg: #faf9f5;
    --color-border: #bbb;
    --color-border-soft: #d8d5ce;
    --color-input-bg: #f3f1ec;
    --color-surface-muted: #ede9e0;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { height: 100%; }
  body {
    font-family: monospace; background: var(--color-bg); color: #111; padding: 24px;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }
  .app-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
  }
  .app-brand {
    display: flex; align-items: center; gap: 10px;
    color: #2c2c2c;
  }
  .icon-brand { width: 28px; height: 28px; flex-shrink: 0; color: #3d5a80; }
  .app-title { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em; color: #2c2c2c; }
  .app-header-actions { display: flex; align-items: center; gap: 10px; }
  .icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--color-border-soft); background: #fff; color: #4a5568;
    text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .icon-btn:hover { background: #f0ede7; border-color: #b8b3a8; color: #1a202c; }
  .icon-btn svg { width: 22px; height: 22px; }
  .lang-switcher { display: flex; gap: 6px; }
  .lang-btn {
    background: none; border: 1px solid #ccc; color: #666;
    padding: 3px 10px; font-family: monospace; font-size: 0.75rem;
    border-radius: 3px; cursor: pointer;
  }
  .lang-btn:hover { border-color: #888; color: #111; }
  .lang-btn.active { background: #e8e4dc; border-color: var(--color-border); color: #111; font-weight: bold; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #e8e4dc; border: 1px solid var(--color-border); color: #111;
    padding: 7px 16px; font-family: monospace; font-size: 0.85rem;
    border-radius: 6px; cursor: pointer; align-self: flex-end;
  }
  .btn:hover { background: #d8d4cc; }
  .btn svg { flex-shrink: 0; opacity: 0.85; }
  .btn:disabled { opacity: 0.4; cursor: default; }
  #status { font-size: 0.8rem; color: #666; margin-bottom: 12px; min-height: 1.2em; flex-shrink: 0; }
  #status:empty { display: none; margin: 0; min-height: 0; }
  #status.error { color: #a00; }
  /* Grid so wrapped rows form aligned columns (vertical neighbors line up). */
  .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px 28px;
    margin-top: 4px;
    align-items: start;
  }
  .checkbox-item {
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start;
    gap: 16px; font-size: 0.85rem;
    min-width: 0;
    max-width: 100%;
  }
  .checkbox-item input[type="checkbox"] {
    width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; margin-top: 2px;
  }
  .checkbox-label-text { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
  .checkbox-item.water-hot {
    padding: 6px 8px 6px 10px; margin: -2px 0; border-radius: 6px;
    border-left: 3px solid #c53030;
    background: rgba(197, 48, 48, 0.06);
  }
  .checkbox-item.water-cold {
    padding: 6px 8px 6px 10px; margin: -2px 0; border-radius: 6px;
    border-left: 3px solid #2b6cb0;
    background: rgba(43, 108, 176, 0.07);
  }
  #view-tabs {
    display: inline-flex; align-self: flex-start; gap: 4px;
    margin-bottom: 10px; padding: 3px; border: 1px solid var(--color-border-soft);
    border-radius: 8px; background: #f8f6f2; flex-shrink: 0;
  }
  .view-tab {
    padding: 6px 14px; font-family: monospace; font-size: 0.8rem;
    border: 1px solid transparent; border-radius: 6px; background: transparent;
    color: #555; cursor: pointer;
  }
  .view-tab:hover { background: var(--color-surface-muted); color: #111; }
  .view-tab.active {
    background: #fff; border-color: #c9c4ba; color: #111;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
