:root {
  --bg: #FEFAF1;
  --bg-alt: #F7F1E6;
  --card: #FFFFFF;
  --card-alt: #F7F1E6;
  --primary: #1E402F;
  --primary-soft: #E8F0EB;
  --accent: #1E402F;
  --gold: #8C6A3A;
  --text: #1E402F;
  --muted: #7A847C;
  --border: #E6DFD2;
  --protein: #1E402F;
  --fat: #8C6A3A;
  --carbs: #8A5348;
  --water: #4F7463;
  --danger: #8A5348;
  --ring: #1E402F;
  --ring-track: #E8F0EB;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-h: calc(58px + var(--safe-bottom));
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  height: 100%;
  background: #EFE8DA;
  color: var(--text);
  font-family: var(--sans);
}
body { overflow: hidden; }
.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  width: 100%;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); }

.screen {
  flex: 1;
  overflow: auto;
  padding: calc(10px + var(--safe-top)) 16px 18px;
  -webkit-overflow-scrolling: touch;
}
.screen.with-tabs { padding-bottom: calc(16px + var(--tab-h)); }

.brand {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  margin: 4px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--primary);
}
.brand-hello {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--primary);
}
.muted { color: var(--muted); font-size: 13px; line-height: 1.45; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex: 1; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #FEFAF1;
  font-weight: 650;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
}
.btn:disabled { opacity: 0.45; }
.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn.danger { background: var(--danger); color: #fff; }
.btn.pill { padding: 7px 12px; font-size: 13px; min-width: 34px; border-radius: 8px; }
.btn.full { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #FEFAF1; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

.tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--tab-h);
  background: #FEFAF1;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 6px 4px var(--safe-bottom);
  z-index: 20;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  color: #9AA39C;
  font-size: 9.5px;
  font-weight: 600;
  padding-top: 4px;
}
.tab .ico {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tab .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.tab.active { color: var(--primary); }

.date-row { display: flex; align-items: center; margin-bottom: 10px; }
.date-row .mid { flex: 1; text-align: center; }
.date-big { font-size: 16px; font-weight: 700; color: var(--primary); }
.arrow {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 20px;
}
.arrow:disabled { color: var(--border); }

.ring-wrap { display: flex; flex-direction: column; align-items: center; }
.ring { position: relative; width: 148px; height: 148px; }
.ring svg { transform: rotate(-90deg); }
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-val { font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--primary); }
.ring-sub { color: var(--muted); font-size: 11px; margin-top: 3px; }
.ring-left { color: var(--gold); font-size: 11px; font-weight: 600; margin-top: 3px; }
.ring-left.over { color: var(--danger); }

.macros { width: 100%; margin-top: 14px; }
.macro { margin-top: 10px; }
.macro-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; color: var(--muted); font-weight: 500; }
.track { height: 3px; background: var(--ring-track); border-radius: 999px; overflow: hidden; }
.fill { height: 100%; border-radius: 999px; }

.insight {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.45;
}
.insight.good { background: #F3F7F4; border-color: #D5E3DA; }
.insight.warn { background: #FBF6EE; border-color: #E8DCC6; }
.mark-mini {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  overflow: hidden;
  background: var(--bg);
}
.mark-mini img { width: 100%; height: 100%; object-fit: contain; }

.water-val { color: var(--water); font-weight: 700; font-size: 13px; }
.water-btns { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.water-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff; color: var(--primary); font-size: 20px;
  border: 1px solid var(--border);
}

.meal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.badge {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}
.meal-kcal { color: var(--muted); font-size: 12px; font-weight: 600; margin-left: auto; }
.entry {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-top: 1px solid var(--border);
}
.entry-name { font-weight: 650; font-size: 14px; }
.entry-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.icon-btn { width: 32px; height: 32px; color: var(--muted); font-size: 15px; }
.empty { color: var(--muted); font-size: 13.5px; line-height: 1.45; padding: 8px 0 4px; }

.food-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
button.food-row { width: 100%; text-align: left; }
button.food-row .btn.pill { flex-shrink: 0; pointer-events: none; }
.tag {
  font-size: 10px; font-weight: 700; color: var(--primary);
  border: 1px solid var(--primary); border-radius: 4px; padding: 1px 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 12px;
  margin-bottom: 10px;
}
.search input { border: none; background: transparent; padding: 10px 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat-val { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--primary); }
.stat-lbl { color: var(--muted); font-size: 11px; margin-top: 3px; }

.chart { width: 100%; height: 140px; display: block; }
.chart-wrap { overflow-x: auto; }

.sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  top: 0; bottom: 0;
  z-index: 40;
  background: rgba(30, 64, 47, 0.28);
  display: flex; align-items: flex-end;
}
.sheet-card {
  background: var(--bg);
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  padding: 16px 16px calc(18px + var(--safe-bottom));
  width: 100%; max-height: 92%;
  overflow: auto;
  border: 1px solid var(--border);
}
.sheet-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--primary); letter-spacing: -0.02em; }
.lbl { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin: 12px 0 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.macro-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.choice {
  flex: 1; text-align: center; padding: 12px 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; font-weight: 650; font-size: 14px;
}
.choice.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-card {
  text-align: left; padding: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px;
}
.choice-card.active { border-color: var(--primary); background: var(--primary-soft); }
.choice-card b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--primary); }

.progress-dots { display: flex; gap: 6px; justify-content: center; margin: 8px 0 16px; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--border); }
.dot.on { background: var(--primary); width: 18px; }

.preview {
  text-align: center; padding: 18px 8px;
  background: var(--card); border-radius: 16px; margin-top: 14px;
  border: 1px solid var(--border);
}
.preview-kcal { font-size: 36px; font-weight: 700; letter-spacing: -0.04em; color: var(--primary); }
.chat { display: flex; flex-direction: column; height: 100%; }
.msgs { flex: 1; overflow: auto; padding-bottom: 8px; }
.bubble {
  max-width: 88%; padding: 11px 13px; border-radius: 14px;
  margin: 8px 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap;
}
.bubble.user { margin-left: auto; background: var(--primary); color: #FEFAF1; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.composer { display: flex; gap: 8px; padding-top: 8px; align-items: center; }
.composer input { flex: 1; min-width: 0; }
.composer-tools { display: flex; gap: 4px; flex: none; }
.composer .cam { font-size: 18px; width: 40px; height: 42px; flex: none; }
.composer .cam.rec { color: #fff; background: var(--danger); border-radius: 10px; }
.bubble .speak { margin-top: 6px; width: 28px; height: 28px; }
.voice-note { font-size: 11px; opacity: 0.8; margin-bottom: 4px; }
.bubble-photo {
  display: block;
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  margin-bottom: 8px;
  object-fit: cover;
}
.quick { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0 0 10px; }
.list-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.streak { font-size: 11px; font-weight: 700; color: var(--gold); margin-top: 2px; }
.error { color: var(--danger); font-size: 13px; margin-top: 8px; }
.ok { color: var(--protein); font-size: 13px; }
.small { font-size: 12px; color: var(--muted); }
.ing { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin-bottom: 8px; }

.ob-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 8px 0 22px;
}
.ob-logo img.icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 12px;
}
.ob-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.scan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.scan-reader {
  width: 100%;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  margin-bottom: 12px;
}
.scan-reader video { width: 100% !important; }
.scan-file-box {
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.online-head {
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.screen.chat-screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: calc(8px + var(--safe-top)) 12px calc(10px + var(--tab-h));
}
.lada { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.lada-top {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 4px 2px 10px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.lada-top img {
  width: 42px; height: 42px; border-radius: 14px; object-fit: cover; display: block;
  box-shadow: 0 4px 12px rgba(30, 64, 47, 0.12);
}
.lada-name { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; display: flex; align-items: center; gap: 8px; }
.lada-sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3D9A6A;
  box-shadow: 0 0 0 0 rgba(61, 154, 106, 0.6);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(61, 154, 106, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(61, 154, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 154, 106, 0); }
}
.lada .msgs {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.row-msg { display: flex; gap: 8px; margin: 10px 0; align-items: flex-end; }
.row-msg.user { justify-content: flex-end; }
.row-msg.bot { align-items: flex-start; }
.lada-col {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  min-width: 0;
}
.lada-col .bubble { max-width: 100%; }
.plate-card {
  margin-top: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  white-space: normal;
  box-shadow: 0 6px 18px rgba(30, 64, 47, 0.04);
}
.plate-edit {
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--border);
}
.plate-edit-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.plate-name {
  width: 100%;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 650;
  background: var(--bg);
}
.plate-del { flex: none; color: var(--muted); }
.plate-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 0.85fr 0.85fr 0.85fr;
  gap: 5px;
  margin-top: 6px;
}
.plate-grid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.plate-grid input {
  width: 100%;
  padding: 7px 4px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
}
.plate-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.plate-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
  color: var(--text);
}
.plate-item span { min-width: 0; }
.plate-item b { flex: none; font-weight: 700; }
.plate-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.plate-meals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0;
}
.plate-meals .chip {
  justify-content: center;
  padding: 8px 10px;
  width: 100%;
}
.plate-add { padding: 11px 14px; font-size: 14px; }
.plate-card.done {
  background: var(--primary-soft);
  border-color: transparent;
  box-shadow: none;
}
.plate-done {
  font-size: 14px;
  font-weight: 650;
  color: var(--primary);
  text-align: center;
  padding: 2px 0;
}
.lada-mini { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; flex: none; margin-bottom: 2px; }
.lada .bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 18px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.lada .bubble.user {
  background: var(--primary);
  color: #FEFAF1;
  border-bottom-right-radius: 6px;
}
.lada .bubble.bot {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  box-shadow: 0 6px 18px rgba(30, 64, 47, 0.04);
}
.bubble-actions { display: flex; gap: 2px; margin-top: 6px; }
.lada .bubble .speak { width: 28px; height: 28px; opacity: 0.7; }
.lada-empty { text-align: center; padding: 36px 16px 18px; }
.lada-empty img { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px; display: block; }
.lada-hello { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.lada-empty p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.lada-dock { flex: none; padding-top: 8px; background: linear-gradient(180deg, transparent, var(--bg) 10px); }
.lada-box {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 5px 5px 5px 6px;
  box-shadow: 0 10px 28px rgba(30, 64, 47, 0.07);
}
.lada-plus {
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; line-height: 1; font-weight: 500;
  color: var(--primary); flex: none;
}
.lada-plus.on { background: var(--primary-soft); }
.lada-attach {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 8px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.lada-attach button {
  text-align: left; padding: 14px 16px; font-size: 15px; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.lada-attach button:last-child { border-bottom: none; }
.lada-rec {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 6px 6px 6px 10px;
  box-shadow: 0 10px 28px rgba(30, 64, 47, 0.07);
}
.lada-rec-x {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-alt); font-size: 16px; flex: none;
}
.lada-rec-mid {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 650; color: var(--primary);
}
.lada-rec-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--danger);
  animation: blink 1s step-end infinite;
}
.lada-box textarea {
  border: none;
  background: transparent;
  resize: none;
  min-height: 24px;
  max-height: 128px;
  padding: 8px 0;
  line-height: 1.4;
  flex: 1;
}
.lada-box textarea:focus { outline: none; }
.lada-send {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #FEFAF1;
  font-size: 16px; flex: none;
}
.lada-send.mic { background: var(--primary-soft); color: var(--primary); }
.lada-send.stop { background: var(--danger); font-size: 12px; }
.lada-send:disabled { opacity: 0.4; }
.typing { display: flex; gap: 5px; padding: 4px 2px; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: typing 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.typing-status { color: var(--muted); font-size: 13px; }
.lada-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--primary); margin-left: 2px; vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.lada-error { padding: 0 8px 8px; }

.plan-card.ahead { border-color: #D5E3DA; background: #F3F7F4; }
.plan-card.behind { border-color: #E8DCC6; background: #FBF6EE; }

.sync-code {
  margin: 8px 0 10px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px 8px;
}

.gate-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-top: 24px;
}
.gate-code {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  font-weight: 700;
}

.host-body {
  overflow: auto;
  background: var(--bg);
}
.host-app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.host-wrap { width: 100%; }
.host-head { margin-bottom: 16px; align-items: flex-start; }
.host-card {
  max-width: 420px;
  margin: 12vh auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.host-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: block;
  margin-bottom: 12px;
}
.host-table-wrap { overflow: auto; margin-top: 12px; }
.host-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.host-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
.host-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.host-code {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.host-note { min-width: 110px; padding: 8px 10px; }
.host-comment { min-width: 160px; }
.host-st {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--muted);
}
.host-st.active { background: var(--primary-soft); color: var(--primary); }
.host-st.revoked { background: #F4E8E4; color: var(--danger); }
.host-actions { white-space: nowrap; }
.host-actions .btn { margin-left: 4px; }
