/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --brand:      #3B6EA5;
  --brand-dk:   #2D5A8E;
  --brand-lt:   #EEF4FB;
  --brand-md:   #C5DBED;
  --success:    #2E9E6B;
  --success-lt: #E8F7F1;
  --warn:       #C47A1E;
  --warn-lt:    #FEF5E7;
  --warn-bd:    #EDD89A;
  --danger:     #C0392B;
  --danger-lt:  #FDECEA;
  --danger-bd:  #F5C6C2;
  --bg:         #F0F4F8;
  --surface:    #FFFFFF;
  --border:     #DDE5EE;
  --border-dk:  #C5CFDA;
  --text:       #1A2636;
  --text-sub:   #5A7080;
  --text-muted: #8FA3B3;
  --sb:         #1E3352;
  --sb-active:  rgba(255,255,255,0.14);
  --sb-border:  rgba(255,255,255,0.10);
  --sb-text:    rgba(255,255,255,0.62);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; height: 100%; }
body {
  font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  display: flex;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; transition: opacity .15s, transform .12s; }
button:hover { opacity: .85; }
button:active { transform: scale(.97); }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--border-dk); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.layout { display: flex; height: 100vh; width: 100%; overflow: hidden; }

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.sidebar {
  width: 220px;
  background: linear-gradient(160deg, #5B8DB8 0%, #4A7AA8 50%, #3D6E99 100%);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 2px 0 12px rgba(0,0,0,.18);
  overflow: hidden;
  position: relative;
}
.sidebar::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  pointer-events: none;
}
.sidebar::after {
  content: "";
  position: absolute;
  bottom: 60px; left: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,217,61,.15);
  pointer-events: none;
}

.sb-logo {
  padding: 20px 16px;
  border-bottom: 1px solid var(--sb-border);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.sb-logo-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3B6EA5, #2D5A8E);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.sb-logo-text { line-height: 1.35; }
.sb-logo-name { color: #fff; font-size: 14px; font-weight: 700; }
.sb-logo-sub  { color: var(--sb-text); font-size: 10px; }

.sb-nav { flex: 1; padding: 10px 8px; overflow-y: auto; position: relative; z-index: 1; }
.sb-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 1px;
  color: var(--sb-text);
  font-size: 13px;
  font-weight: 400;
  transition: background .15s, color .15s;
}
.sb-nav a:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.sb-nav a.active {
  background: rgba(255,255,255,.20);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.sb-nav a svg { flex-shrink: 0; }

.sb-staff {
  padding: 13px 14px;
  border-top: 1px solid var(--sb-border);
  display: flex; align-items: center; gap: 9px;
  position: relative; z-index: 1;
}
.sb-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sb-staff-name  { color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; }
.sb-staff-role  { color: var(--sb-text); font-size: 10px; }

/* ═══════════════════════════════════════════
   MAIN AREA
═══════════════════════════════════════════ */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ── Topbar ── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.topbar-left { display: flex; align-items: center; gap: 8px; }
.topbar-title { font-size: 16px; font-weight: 700; color: var(--text); }
.topbar-sub   { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.breadcrumb { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 13px; }
.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--border-dk); }
.breadcrumb .cur { color: var(--text); font-weight: 600; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.clock-box {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 14px;
  font-weight: 700; font-size: 15px; color: var(--text);
  letter-spacing: .04em;
}
.bell-btn {
  position: relative;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px;
  display: flex; align-items: center;
}
.bell-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--danger); color: #fff;
  border-radius: 50%; width: 14px; height: 14px;
  font-size: 8px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--surface);
}

/* ── Content ── */
.content { flex: 1; overflow-y: auto; padding: 24px 28px 50px; overflow-anchor: none; }
.content-inner { max-width: 100%; display: flex; flex-direction: column; gap: 16px; }

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card.warn-card { border-color: var(--danger-bd); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: #FAFCFF;
}
.card.warn-card .card-head { background: var(--danger-lt); border-color: var(--danger-bd); }
.card-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--text); }
.card.warn-card .card-title { color: var(--danger); }
.card-body { padding: 22px; }
.card-body.no-pad { padding: 0; }

/* ═══════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.stat-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 2px; }
.stat-value { display: flex; align-items: baseline; gap: 3px; }
.stat-num   { font-size: 26px; font-weight: 800; color: var(--text); }
.stat-unit  { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   TABS (kid detail)
═══════════════════════════════════════════ */
.tab-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow-x: auto;
  gap: 2px;
  min-height: 46px;
}
.tab-bar a {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 13px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border-radius: 7px;
  white-space: nowrap;
  transition: all .15s;
}
.tab-bar a:hover { color: var(--text); background: rgba(255,255,255,.7); }
.tab-bar a.active {
  color: var(--brand);
  font-weight: 700;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.back-btn {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--brand-lt) !important;
  border: 1.5px solid var(--brand-md) !important;
  color: var(--brand) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.back-btn:active { background: var(--brand-md) !important; }

/* Sub-header (kid detail) */
.sub-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 11px 22px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.sub-header-avatar {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-lt); border: 1.5px solid var(--brand-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sub-header-name  { font-size: 16px; font-weight: 700; color: var(--text); }
.sub-header-sub   { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ═══════════════════════════════════════════
   BADGES
═══════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  border-radius: 6px; padding: 3px 9px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-brand   { color: var(--brand);   background: var(--brand-lt);   border-color: var(--brand-md); }
.badge-success { color: var(--success); background: var(--success-lt); border-color: #A8DFC4; }
.badge-warn    { color: var(--warn);    background: var(--warn-lt);    border-color: var(--warn-bd); }
.badge-danger  { color: var(--danger);  background: var(--danger-lt);  border-color: var(--danger-bd); }
.badge-muted   { color: var(--text-sub);background: var(--bg);         border-color: var(--border); }

/* ═══════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════ */
.form-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 8px 20px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.form-row:last-child { border-bottom: none; }
.form-label {
  padding-top: 7px;
  font-size: 13px; font-weight: 600; color: var(--text-sub);
  letter-spacing: .03em;
}
.form-val { font-size: 15px; font-weight: 500; color: var(--text); padding-top: 7px; line-height: 1.5; }
.form-val.muted { color: var(--text-muted); }
.form-req { color: var(--danger); margin-left: 2px; }

input[type=text], input[type=number], input[type=date], input[type=time], input[type=email], input[type=tel], select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 14px; color: var(--text);
  font-family: inherit; outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
textarea { resize: vertical; min-height: 72px; }
input[readonly] { background: #F5F7FA; color: var(--text-sub); border-color: transparent; cursor: default; }
.inp-sm { width: 80px !important; }
.inp-md { width: 130px !important; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; border-radius: 8px; padding: 10px 20px;
  font-size: 14px; font-weight: 700; font-family: inherit;
}
.btn-primary  { background: var(--brand);   color: #fff; box-shadow: 0 3px 10px rgba(59,110,165,.32); }
.btn-success  { background: var(--success); color: #fff; box-shadow: 0 3px 10px rgba(46,158,107,.32); }
.btn-danger   { background: var(--danger);  color: #fff; }
.btn-outline  { background: var(--surface); color: var(--text-sub); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); }
.btn-ghost    { background: none; color: var(--text-muted); }
.btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 7px; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 6px; }

/* ═══════════════════════════════════════════
   TABLE
═══════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 11px 18px; text-align: left;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  letter-spacing: .05em; background: #FAFCFF;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 14px 18px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--brand-lt); }

/* ═══════════════════════════════════════════
   CHECK TILES
═══════════════════════════════════════════ */
.check-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.check-tile {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg);
  cursor: pointer; font-size: 13px; color: var(--text-sub);
  transition: all .13s; user-select: none;
}
.check-tile.on { background: var(--brand-lt); border-color: var(--brand-md); color: var(--brand); font-weight: 600; }
.check-tile input { display: none; }
.tile-box {
  width: 14px; height: 14px; border-radius: 3px;
  border: 1.5px solid var(--border-dk);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .13s;
}
.check-tile.on .tile-box { background: var(--brand); border-color: var(--brand); }
.check-tile.on .tile-box::after {
  content: ""; width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px,-1px); display: block;
}

/* ═══════════════════════════════════════════
   MISC
═══════════════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 4px 0; }
.section-title { font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.sub-card { background: var(--bg); border-radius: 9px; border: 1px solid var(--border); padding: 14px 16px; }
.sub-title { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 16px; }
.full { grid-column: 1 / -1; }
.mini-label { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; display: block; }
.field-group { display: flex; flex-direction: column; }

/* Toast */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: #1A2636; color: #fff;
  border-radius: 12px; padding: 13px 18px;
  display: none; align-items: center; gap: 9px;
  box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; z-index: 999;
}
.toast.show { display: flex; animation: fadeUp .2s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* Modal backdrop */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,25,40,.40); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 500; padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--surface); border-radius: 16px; padding: 26px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
  animation: fadeUp .18s ease;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.modal-title { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }

/* Inline row */
.inline-row { display: flex; align-items: center; gap: 8px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 6px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
input[type=radio], input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }

/* empty state */
.empty-state { padding: 60px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-lt); border: 1px solid var(--brand-md); display: flex; align-items: center; justify-content: center; }
.empty-title { font-size: 15px; font-weight: 700; color: var(--text-sub); }
.empty-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

/* ── Mobile hamburger & overlay ── */
.hamburger-btn {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  flex-shrink: 0;
}
.sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index: 299;
}
.sb-overlay.open { display: block; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) {
  /* ── ハンバーガー表示 ── */
  .hamburger-btn { display: flex; }

  /* ── サイドバー：ドロワー化 ── */
  .sidebar {
    display: flex !important;
    position: fixed;
    top: 0; left: 0;
    height: 100dvh;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.3);
  }

  /* ── トップバー ── */
  .topbar { padding: 0 12px; height: 52px; }
  .topbar-sub { display: none; }
  .topbar-title { font-size: 15px; }
  .clock-box { display: none; }

  /* ── サブヘッダー ── */
  .sub-header { padding: 8px 12px; gap: 7px; flex-wrap: wrap; }
  .sub-header-name { font-size: 14px; }
  .sub-header-sub  { font-size: 11px; }

  /* ── タブバー ── */
  .tab-bar { padding: 0 6px; }
  .tab-bar a { padding: 10px 11px; font-size: 12px; gap: 4px; }

  /* ── コンテンツ ── */
  .content { padding: 14px 12px 56px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* ── カード ── */
  .card-head { padding: 10px 14px; flex-wrap: wrap; gap: 6px; }
  .card-body { padding: 14px; }

  /* ── テーブル ── */
  .data-table th { padding: 9px 12px; }
  .data-table td { padding: 11px 12px; font-size: 13px; }

  /* ── モーダル ── */
  .modal { padding: 18px; max-width: 100%; }
  .modal-backdrop { padding: 12px; align-items: flex-end; }

  /* ── トースト ── */
  .toast { bottom: 16px; right: 12px; left: 12px; border-radius: 10px; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .sub-header .badge { display: none; }
}

/* ═══════════════════════════════════════════
   BOTTOM NAV (mobile)
═══════════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 58px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  padding: 5px 4px 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s;
  font-family: inherit;
}
.bn-item.active { color: var(--brand); }
.bn-item:active { background: var(--brand-lt); }

/* Mobile kid cards */
.kids-mobile-list { display: none; }

/* FAB (floating action button) */
.fab-btn {
  position: fixed;
  bottom: 72px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(59,110,165,.4);
  cursor: pointer;
  z-index: 150;
  transition: transform .15s, box-shadow .15s;
  font-family: inherit;
}
.fab-btn:active { transform: scale(.91); box-shadow: 0 2px 8px rgba(59,110,165,.25); }

@media (max-width: 700px) {
  .topbar { display: none !important; }
  .fab-btn { display: flex; }
  .hide-on-mobile { display: none !important; }
  .vt-label { display: none; }
  .rec-add-btn { padding: 6px 10px; }
  .view-toggle-btn { padding: 5px 8px; }

  .bottom-nav { display: flex; }

  .kids-mobile-list { display: block; }
  #kidsTable { display: none; }

  .kid-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
  }
  .kid-card:last-child { border-bottom: none; }
  .kid-card-avatar {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--brand-lt);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .kid-card-info { flex: 1; min-width: 0; }
  .kid-card-name {
    font-size: 14px; font-weight: 600; color: var(--text);
    display: flex; align-items: center; gap: 6px;
  }
  .kid-card-kana { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
  .kid-card-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  /* 詳細はコンパクトな副ボタン */
  .kid-card-detail-btn { padding: 7px 12px; font-size: 12px; }
  /* 記録は最頻出の主アクション。大きく目立たせる */
  .kid-card-rec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59,110,165,.35);
  }
  .kid-card-rec-btn svg { width: 19px; height: 19px; }
  .kid-card-rec-btn:active { background: #2F5681; transform: scale(.97); }
}
