/* kalkulatori/bmi.html — page-specific styles (extracted from inline <style>) */
@layer page {
.main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.panel { background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 20px 22px; }
.panel__label { font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.gender-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.gender-tab { flex: 1; height: 42px; border-radius: 8px; font-size: .9375rem; font-weight: 600; border: 1px solid rgba(255,255,255,.08); background: transparent; color: var(--text-2); transition: background .15s, border-color .15s, color .15s; }
.gender-tab.active { background: rgba(var(--accent-rgb),.12); border-color: rgba(var(--accent-rgb),.35); color: var(--accent); }
.unit-toggle { display: flex; background: var(--bg-1); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 3px; margin-bottom: 20px; gap: 3px; }
.unit-btn { flex: 1; height: 32px; border-radius: 6px; font-size: .8125rem; font-weight: 600; border: none; background: transparent; color: var(--text-3); transition: background .15s, color .15s; }
.unit-btn.active { background: var(--surface-3); color: var(--text); }
.form-rows { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .8125rem; font-weight: 600; color: var(--text-3); pointer-events: none; }
.form-input, .form-select { width: 100%; height: 44px; background: var(--bg-1); border: 1px solid rgba(255,255,255,.10); border-radius: 8px; color: var(--text); font-size: .9375rem; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.form-input { padding: 0 40px 0 13px; }
.form-input:focus { border-color: rgba(var(--accent-rgb),.5); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.form-input::placeholder { color: var(--text-4); }
.form-select { padding: 0 32px 0 13px; cursor: pointer; }
.form-select option { background: var(--bg-1); }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235e6470'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E"); background-size: contain; pointer-events: none; }
.slider-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.slider-row input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; outline: none; cursor: pointer; border: none; }
.slider-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; transition: transform .15s; }
.slider-row input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider-row input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer; }
.slider-val { font-size: .8125rem; font-weight: 600; color: var(--text); min-width: 52px; text-align: right; }
.calc-btn { width: 100%; height: 46px; margin-top: 6px; background: var(--accent); color: #fff; border: none; border-radius: 9px; font-size: .9375rem; font-weight: 700; transition: background .15s, transform .1s; }
.calc-btn:hover { background: var(--accent-hover); }
.calc-btn:active { transform: scale(.98); }
.result-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; gap: 10px; color: var(--text-4); text-align: center; }
.result-placeholder__icon { font-size: 2.5rem; opacity: .4; }
.result-placeholder__text { font-size: .875rem; }
.bmi-gauge-wrap { margin-bottom: 16px; }
.bmi-value-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.bmi-number { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.bmi-category { font-size: 1rem; font-weight: 600; }
.gauge-bar { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(to right, #60a5fa 0%, var(--accent) 25%, #fbbf24 55%, #fb923c 75%, #f87171 100%); margin-bottom: 6px; overflow: visible; }
.gauge-needle { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--bg); box-shadow: 0 0 0 2px currentColor; transition: left .5s cubic-bezier(.34,1.56,.64,1); }
.gauge-labels { display: flex; justify-content: space-between; font-size: .6rem; font-weight: 600; color: var(--text-3); letter-spacing: .02em; margin-top: 4px; }
.result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.stat-box { background: var(--bg-1); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 12px 14px; }
.stat-box__label { font-size: .625rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.stat-box__value { font-size: 1.125rem; font-weight: 700; color: var(--text); }
.stat-box__sub { font-size: .75rem; color: var(--text-3); margin-top: 1px; }
.scale-section { background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.scale-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; user-select: none; }
.scale-header__title { font-size: .8125rem; font-weight: 700; color: var(--text); }
.scale-toggle { font-size: .75rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.scale-toggle__icon { transition: transform .2s; display: inline-block; }
.scale-toggle__icon.open { transform: rotate(180deg); }
.scale-body { display: none; }
.scale-body.open { display: block; }
.scale-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.scale-table th { background: var(--bg-1); padding: 8px 16px; text-align: left; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid rgba(255,255,255,.05); }
.scale-table td { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--text-2); }
.scale-table tr:last-child td { border-bottom: none; }
.scale-table tr.active-row td { color: var(--text); font-weight: 600; }
.scale-table .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.calorie-section { background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.calorie-header { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.calorie-header__title { font-size: .8125rem; font-weight: 700; color: var(--text); }
.calorie-header__sub { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.calorie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.05); }
.calorie-item { background: var(--surface); padding: 14px 16px; }
.calorie-item__label { font-size: .6875rem; font-weight: 600; color: var(--text-3); margin-bottom: 4px; }
.calorie-item__value { font-size: 1.125rem; font-weight: 700; color: var(--text); }
.calorie-item__sub { font-size: .6875rem; color: var(--text-3); margin-top: 2px; }
.calorie-item.highlight .calorie-item__value { color: var(--accent); }
.info-box { background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: .8125rem; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.info-box strong { color: var(--text); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeUp .22s ease; }
@media (max-width: 680px) {
  .main-grid { grid-template-columns: 1fr; }
  .calorie-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .panel { padding: 16px; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .calorie-grid { grid-template-columns: repeat(2, 1fr); }
}
@keyframes sosPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
}
/* Monochrome icon set (Lucide, ISC licence) — replaces colour emoji */
@layer skin {
[class^="ei-"], [class*=" ei-"] { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.17em; flex-shrink: 0; font-style: normal;
  background-color: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
[class^="ei-dot-"], [class*=" ei-dot-"] { width: .62em; height: .62em; border-radius: 50%; vertical-align: .02em; -webkit-mask: none; mask: none; }
.ei-clipboard-list { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <rect width=%228%22 height=%224%22 x=%228%22 y=%222%22 rx=%221%22 ry=%221%22 /> <path d=%22M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2%22 /> <path d=%22M12 11h4%22 /> <path d=%22M12 16h4%22 /> <path d=%22M8 11h.01%22 /> <path d=%22M8 16h.01%22 /> </svg>"); }
.ei-flag { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528%22 /> </svg>"); }
.ei-flame { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4%22 /> </svg>"); }
.ei-scale { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M12 3v18%22 /> <path d=%22m19 8 3 8a5 5 0 0 1-6 0zV7%22 /> <path d=%22M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1%22 /> <path d=%22m5 8 3 8a5 5 0 0 1-6 0zV7%22 /> <path d=%22M7 21h10%22 /> </svg>"); }
.ei-user { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2%22 /> <circle cx=%2212%22 cy=%227%22 r=%224%22 /> </svg>"); }
.ei-user-round { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <circle cx=%2212%22 cy=%228%22 r=%225%22 /> <path d=%22M20 21a8 8 0 0 0-16 0%22 /> </svg>"); }
}
