/* =================================================================
   EveryUtil – Common Styles v1.0
   https://util.bmsystems.biz
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #f7f9fb;
  --surface:     #ffffff;
  --surface2:    #f0f3f7;
  --navy:        #1a2236;
  --accent:      #4f7ef8;
  --accent-soft: #e8effe;
  --green:       #1db87e;
  --green-soft:  #e3f9f0;
  --red:         #e84545;
  --red-soft:    #fdeaea;
  --gold:        #f0a340;
  --text-1:      #1a2236;
  --text-2:      #4a5568;
  --text-3:      #8a95a8;
  --border:      rgba(26,34,54,0.09);
  --border-md:   rgba(26,34,54,0.15);
  --shadow-sm:   0 1px 4px rgba(26,34,54,0.06);
  --shadow-md:   0 4px 16px rgba(26,34,54,0.09);
  --shadow-lg:   0 8px 40px rgba(26,34,54,0.12);
  --font:        'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h:    60px;
  --guh-logo-every: #1d3161;
  --radius-sm:   6px;
  --radius:      11px;
  --radius-lg:   16px;
  --radius-pill: 100px;
}

[data-theme="dark"] {
  --bg:          #111827;
  --surface:     #1e2a3a;
  --surface2:    #253147;
  --navy:        #e8edf8;
  --accent:      #6690fa;
  --accent-soft: #1e2a4a;
  --green:       #2ecf90;
  --green-soft:  #0d2e20;
  --red:         #f06060;
  --red-soft:    #2e1010;
  --text-1:      #e8edf8;
  --text-2:      #9aabcc;
  --text-3:      #5a6a84;
  --border:      rgba(255,255,255,0.07);
  --border-md:   rgba(255,255,255,0.12);
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --guh-logo-every: #ffffff;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.3s;
}
main { flex: 1; }
a { color: var(--accent); }

/* ─── Header ────────────────────────────────────────────────────── */
.guh-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s;
}
.guh-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.guh-logo {
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.guh-logo:hover { text-decoration: none; }

.guh-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.guh-nav::-webkit-scrollbar { display: none; }
.guh-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.15s;
}
.guh-nav-link:hover, .guh-nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.guh-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ─── Search ─────────────────────────────────────────────────────── */
.guh-search-wrap { position: relative; display: flex; align-items: center; gap: 2px; }
.guh-search-input {
  -webkit-appearance: none;
  appearance: none;
  border: none !important;
  border-bottom: 1.5px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 2px 4px;
  font-size: 13px;
  color: var(--text-1);
  width: 130px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, width 0.25s ease, opacity 0.25s ease;
}
.guh-search-input:focus { border-bottom-color: var(--accent); }
.guh-search-input::placeholder { color: var(--text-3); }
.guh-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: none; border: none; cursor: pointer;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0; padding: 0;
}
.guh-search-btn:hover { color: var(--accent); background: var(--accent-soft); }
.guh-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 300;
  overflow: hidden;
}
.guh-search-results.show { display: block; }
.guh-search-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  text-decoration: none;
  color: var(--text-1);
  font-size: 13px;
  transition: background 0.12s;
  border-bottom: 1px solid var(--border);
}
.guh-search-item:last-child { border-bottom: none; }
.guh-search-item:hover { background: var(--surface2); color: var(--accent); text-decoration: none; }
.guh-search-item-icon { color: var(--text-3); flex-shrink: 0; display: flex; }
.guh-search-item-title { flex: 1; line-height: 1.3; }
.guh-search-empty { padding: 12px; font-size: 13px; color: var(--text-3); text-align: center; }

.guh-lang-select {
  display: flex;
  gap: 2px;
  background: var(--surface2);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.guh-lang-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s;
  line-height: 1.4;
}
.guh-lang-btn:hover, .guh-lang-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.guh-theme-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.guh-theme-btn:hover { background: var(--accent-soft); }

.guh-menu-btn {
  display: none;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-2);
  transition: all 0.15s;
}
.guh-menu-btn:hover { background: var(--accent-soft); color: var(--accent); }

.guh-mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.guh-mobile-nav.open { display: block; }
.guh-mobile-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.12s;
}
.guh-mobile-nav a:hover { background: var(--surface2); color: var(--accent); }
.guh-mobile-nav hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

@media (max-width: 768px) {
  .guh-nav { display: none; }
  .guh-menu-btn { display: flex; }
  .guh-logo { flex: 1; }
  .guh-lang-select { display: none; }
  .guh-search-input { width: 0; padding: 0; opacity: 0; border-bottom-color: transparent; pointer-events: none; }
  .guh-search-wrap.open .guh-search-input { width: 110px; padding: 2px 4px; opacity: 1; border-bottom-color: var(--border); pointer-events: auto; }
  .guh-search-results { right: -34px; width: 240px; }
}
@media (max-width: 480px) {
  .guh-logo { font-size: 15px; }
}

/* ─── Footer ────────────────────────────────────────────────────── */
.guh-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  margin-top: auto;
  transition: background 0.3s, border-color 0.3s;
}
.guh-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.guh-footer-logo { font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; }
.guh-footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.guh-footer-links a { font-size: 12px; color: var(--text-3); text-decoration: none; transition: color 0.15s; }
.guh-footer-links a:hover { color: var(--accent); }
.guh-footer-copy { font-size: 11px; color: var(--text-3); }

/* ─── Layout ─────────────────────────────────────────────────────── */
.guh-container { max-width: 800px; margin: 0 auto; padding: 0 16px; }
.guh-page { padding: 28px 0 64px; }

/* ─── Breadcrumb ─────────────────────────────────────────────────── */
.guh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.guh-breadcrumb a { color: var(--text-3); text-decoration: none; transition: color 0.15s; }
.guh-breadcrumb a:hover { color: var(--accent); }
.guh-breadcrumb-sep { color: var(--text-3); }

/* ─── Hero ───────────────────────────────────────────────────────── */
.guh-hero { margin-bottom: 28px; }
.guh-hero h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.guh-hero p { font-size: 15px; color: var(--text-2); line-height: 1.7; }

@media (max-width: 576px) {
  .guh-hero h1 { font-size: 21px; }
  .guh-hero p { font-size: 14px; }
  .guh-page { padding: 20px 10px 48px; }
}

/* ─── Section ───────────────────────────────────────────────────── */
.guh-section { margin-bottom: 36px; scroll-margin-top: calc(var(--header-h) + 16px); }
.guh-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}

/* ─── Card ───────────────────────────────────────────────────────── */
.guh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s;
}

/* ─── Calculator Card ────────────────────────────────────────────── */
.guh-calc-card {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  transition: background 0.3s, border-color 0.3s;
}

.guh-form-group { margin-bottom: 14px; }
.guh-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; letter-spacing: 0.3px; }

.guh-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  color: var(--text-1);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.guh-input:focus { border-color: var(--accent); background: var(--surface); }
.guh-input::placeholder { color: var(--text-3); }

.guh-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 36px 11px 14px;
  color: var(--text-1);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a95a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: border-color 0.2s;
}
.guh-select:focus { border-color: var(--accent); }

.guh-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .guh-input-row { grid-template-columns: 1fr; } }

.guh-btn {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}
.guh-btn:hover { opacity: 0.88; }
.guh-btn:active { transform: scale(0.98); }
.guh-btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.guh-btn-outline:hover { background: var(--accent-soft); opacity: 1; }
.guh-btn-green { background: var(--green); }
.guh-btn-group { display: flex; gap: 8px; }
.guh-btn-group .guh-btn { flex: 1; }

/* Toggle group */
.guh-toggle-group {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  width: fit-content;
  margin-bottom: 16px;
}
.guh-toggle-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.guh-toggle-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ─── Result Card ────────────────────────────────────────────────── */
.guh-result-card {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 20px;
  display: none;
  transition: background 0.3s;
}
.guh-result-card.show { display: block; }
.guh-result-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.guh-result-value { font-size: 42px; font-weight: 700; color: var(--accent); letter-spacing: -1.5px; line-height: 1; margin-bottom: 8px; }
.guh-result-sub { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.guh-result-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}
.badge-normal { background: var(--green-soft); color: var(--green); }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-info { background: var(--accent-soft); color: var(--accent); }

/* Multi-result grid */
.guh-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  display: none;
}
.guh-result-grid.show { display: grid; }
.guh-result-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.guh-result-item-label { font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.guh-result-item-value { font-size: 22px; font-weight: 700; color: var(--text-1); }
.guh-result-item-unit { font-size: 12px; color: var(--text-3); }

/* ─── BMI Gauge ──────────────────────────────────────────────────── */
.bmi-gauge { margin: 16px 0 8px; }
.bmi-gauge-bar {
  height: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #3b82f6 0%, #22c55e 28%, #f59e0b 55%, #ef4444 80%, #7c3aed 100%);
  position: relative;
  margin-bottom: 4px;
}
.bmi-gauge-needle {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 20px;
  background: var(--navy);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.6s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
[data-theme="dark"] .bmi-gauge-needle { background: var(--text-1); }
.bmi-gauge-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); padding: 0 2px; }

/* ─── Formula Box ────────────────────────────────────────────────── */
.guh-formula-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: var(--text-1);
  margin: 10px 0;
  overflow-x: auto;
  line-height: 1.8;
}

/* ─── FAQ ────────────────────────────────────────────────────────── */
.guh-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.guh-faq-item:hover { border-color: var(--border-md); }
.guh-faq-q {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
}
.guh-faq-q:hover { background: var(--surface2); }
.guh-faq-icon { font-size: 18px; color: var(--text-3); transition: transform 0.25s; flex-shrink: 0; line-height: 1; }
.guh-faq-q.open .guh-faq-icon { transform: rotate(45deg); color: var(--accent); }
.guh-faq-a {
  display: none;
  padding: 0 18px 14px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.75;
  background: var(--surface);
}
.guh-faq-a.open { display: block; }

/* ─── Related Tools ──────────────────────────────────────────────── */
.guh-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.guh-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: all 0.15s;
  line-height: 1.3;
}
.guh-tool-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.guh-tool-icon { font-size: 22px; line-height: 1; }

/* ─── Related Blogs ──────────────────────────────────────────────── */
.guh-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.guh-blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-1);
  transition: all 0.15s;
  display: block;
}
.guh-blog-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text-1);
}
.guh-blog-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guh-blog-card-date { font-size: 11px; color: var(--text-3); }
.guh-blog-empty { font-size: 13px; color: var(--text-3); padding: 10px 0; }

/* ─── Ad Container ───────────────────────────────────────────────── */
.guh-ad {
  min-height: 90px;
  background: var(--surface2);
  border: 1px dashed var(--border-md);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  color: var(--text-3);
  font-size: 11px;
}

/* ─── Toast ──────────────────────────────────────────────────────── */
.guh-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 10px 22px; border-radius: var(--radius-pill);
  opacity: 0; transition: all 0.3s ease;
  pointer-events: none; z-index: 9999;
}
.guh-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Examples ───────────────────────────────────────────────────── */
.guh-example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.guh-example-title { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.guh-example dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.guh-example dt { font-size: 13px; color: var(--text-3); font-weight: 500; }
.guh-example dd { font-size: 13px; color: var(--text-1); font-weight: 600; }

/* ─── Upload Zone ────────────────────────────────────────────────── */
.guh-upload-zone {
  border: 2px dashed var(--border-md);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface2);
}
.guh-upload-zone:hover, .guh-upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.guh-upload-icon { font-size: 36px; margin-bottom: 10px; }
.guh-upload-text { font-size: 15px; font-weight: 600; color: var(--text-1); }
.guh-upload-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }

.guh-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.guh-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.guh-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guh-preview-item .preview-num {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}
.guh-preview-item .remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}
.guh-preview-item .remove-btn:hover { background: rgba(232,69,69,0.9); }

/* ─── QR Code Output ─────────────────────────────────────────────── */
.guh-qr-output {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 16px;
  transition: background 0.3s;
}
.guh-qr-output.show { display: flex; }
#qr-canvas { border-radius: 8px; display: block; }

/* ─── Info List ──────────────────────────────────────────────────── */
.guh-info-list { list-style: none; padding: 0; }
.guh-info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.guh-info-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.guh-info-list li:last-child { border-bottom: none; }

/* ─── Category Chip ──────────────────────────────────────────────── */
.guh-category-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
  transition: all 0.15s;
}
.guh-category-chip:hover { background: var(--accent); color: white; text-decoration: none; }

/* ─── Favorites ──────────────────────────────────────────────────── */
.guh-fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  color: var(--text-3);
  transition: color 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  margin-left: 6px;
  touch-action: manipulation;
  min-height: 36px;
}
.guh-fav-btn:hover { transform: scale(1.05); }
.guh-fav-btn.active { color: #f5c518; }
.guh-fav-star { font-size: 20px; line-height: 1; }
.guh-fav-label { font-size: 11px; font-weight: 400; line-height: 1; color: var(--text-3); }
.guh-fav-btn.active .guh-fav-label { color: #f5c518; }
@media (max-width: 768px) {
  .guh-fav-btn { padding: 10px 14px; min-height: 44px; gap: 6px; }
  .guh-fav-star { font-size: 24px; }
  .guh-fav-label { font-size: 13px; }
}
.guh-fav-section {
  padding: 20px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
}

/* ─── PWA Install Banner ─────────────────────────────────────────── */
#guh-pwa-banner {
  position: fixed;
  bottom: -130px;
  left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(26,34,54,0.13);
  z-index: 10000;
  transition: bottom 0.35s cubic-bezier(0.4,0,0.2,1);
  padding: 14px 16px;
}
#guh-pwa-banner.show { bottom: 0; }
.guh-pwa-inner {
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
}
.guh-pwa-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; object-fit: contain; }
.guh-pwa-msg { font-size: 13px; color: var(--text-2); flex: 1; line-height: 1.5; margin: 0; }
.guh-pwa-msg b { color: var(--text-1); font-weight: 600; }
.guh-pwa-btns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#guh-pwa-ok {
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius); padding: 9px 18px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; font-family: var(--font);
  transition: opacity 0.15s;
}
#guh-pwa-ok:hover { opacity: 0.88; }
#guh-pwa-close {
  background: none; border: none; font-size: 18px;
  color: var(--text-3); cursor: pointer; padding: 4px 6px; line-height: 1;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .guh-calc-card { padding: 16px; }
  .guh-result-value { font-size: 34px; }
  .guh-tool-grid { grid-template-columns: repeat(3, 1fr); }
  .guh-blog-grid { grid-template-columns: 1fr; }
  .guh-result-grid { grid-template-columns: repeat(2, 1fr); }
}
