[v-cloak] { display: none; }
:root { --vz-bg-1:#fff7e8; --vz-bg-2:#fffaf2; --vz-primary:#2563eb; --vz-orange:#f59e0b; --vz-text:#243b53; --vz-muted:#64748b; --vz-card:#fff; }
* { box-sizing: border-box; }
body { background: linear-gradient(180deg, var(--vz-bg-1), var(--vz-bg-2) 55%, #fff); min-height:100vh; color:var(--vz-text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.login-bg { background: linear-gradient(135deg, #fff4de, #fff); }
.app-shell { max-width:520px; margin:0 auto; padding:18px 14px 40px; }
.topbar { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.app-kicker { color:var(--vz-orange); font-size:.8rem; font-weight:700; }
.app-title { font-size:1.75rem; font-weight:800; letter-spacing:-.03em; margin:0; }
.icon-button { width:42px; height:42px; border-radius:16px; border:1px solid #cbd5e1; background:rgba(255,255,255,.88); display:inline-flex; align-items:center; justify-content:center; color:#334155; text-decoration:none; box-shadow:0 4px 14px rgba(15,23,42,.05); }
.icon-button:hover { background:#fff; color:var(--vz-primary); }
.nav-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:16px; }
.nav-grid .btn { border-radius:999px; font-size:.92rem; padding:10px 0; box-shadow:none; }
.btn-primary { background:var(--vz-primary); border-color:var(--vz-primary); }
.screen { animation:fadeIn .18s ease-out; }
.vz-card { background:var(--vz-card); border:0; border-radius:24px; box-shadow:0 8px 24px rgba(36,59,83,.10); margin-bottom:18px; }
.vz-card .card-body { padding:20px; }
.section-title { font-size:1.25rem; font-weight:800; margin-bottom:12px; }
.category-scroll { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; }
.card-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.zukan-card { position:relative; border:0; background:#fff; border-radius:24px; min-height:150px; padding:16px; box-shadow:0 8px 24px rgba(36,59,83,.08); text-align:left; transition:transform .15s ease, box-shadow .15s ease; }
.zukan-card:hover { transform:translateY(-1px); box-shadow:0 10px 28px rgba(36,59,83,.12); }
.recorded-star { position:absolute; top:10px; right:12px; width:28px; height:28px; border-radius:999px; display:flex; align-items:center; justify-content:center; color:#f59e0b; background:#fff7d6; font-size:18px; box-shadow:0 4px 12px rgba(245,158,11,.20); }
.add-card { border:2px dashed #ffbd59; background:#fff8ed; color:#c76a00; font-weight:700; text-align:center; }
.emoji-placeholder { font-size:56px; line-height:1.1; text-align:center; }
.card-img { width:100%; height:110px; object-fit:contain; border-radius:18px; background:#f8fafc; padding:6px; }
.detail-img { width:auto; max-width:100%; max-height:280px; object-fit:contain; border-radius:24px; margin:0 auto; display:block; background:#f8fafc; }
.detail-emoji { font-size:92px; line-height:1.1; }
.record-button { width:110px; height:110px; border-radius:999px; border:0; background:#ff8a3d; color:#fff; font-size:48px; box-shadow:0 12px 30px rgba(255,138,61,.4); }
.record-button.recording { background:#e03131; animation:pulse 1s infinite; }
.memory-box { background:#fff7ed; border-radius:18px; padding:12px; }
.list-row { background:#f8fafc; border-radius:16px; padding:12px; margin-bottom:10px; }
.list-row audio { display:block; width:100%; max-width:100%; margin-top:8px; }
.history-row { background:#f8fafc; border-radius:16px; padding:12px; margin-bottom:10px; }
.recording-options-btn {
  flex-shrink:0;
  width:26px;
  height:26px;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#334155;
  font-weight:800;
  font-size:15px;
  line-height:1;
  box-shadow:0 2px 6px rgba(36,59,83,.10);
  display:flex;
  align-items:center;
  justify-content:center;
}
.recording-options-btn:hover { background:#f1f5f9; color:#2563eb; }
.history-row audio { width:100%; margin-top:6px; }
.timeline-item { border-left:4px solid #ffbd59; padding:10px 0 10px 12px; margin-bottom:12px; background:#fff; border-radius:0 16px 16px 0; }
.modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.35); display:flex; align-items:center; justify-content:center; padding:20px; z-index:20; }
.modal-card { background:#fff; border-radius:24px; padding:20px; width:100%; max-width:420px; box-shadow:0 12px 40px rgba(0,0,0,.2); }
.child-button { height:auto; border-radius:18px; padding:12px 16px; }
.child-avatar, .child-avatar-placeholder {
  width:40px; height:40px; border-radius:999px; object-fit:cover;
  display:flex; align-items:center; justify-content:center;
  background:#e2e8f0; color:#475569; font-weight:700; flex-shrink:0;
}
.child-button-avatar, .child-button-avatar-placeholder {
  width:56px; height:56px; border-radius:999px; object-fit:cover;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.6); color:#334155; font-weight:700; font-size:1.1rem; flex-shrink:0;
}
.child-button-name { font-weight:700; line-height:1.2; }
.child-button-age { opacity:.85; }
.child-edit-row { padding:8px 4px; border-bottom:1px solid #f1f5f9; }
.child-edit-row:last-child { border-bottom:0; }
.card-subtext { font-size:.78rem; color:var(--vz-muted); }
.zukan-card { cursor:pointer; }
.card-options-btn-detail {
  position:absolute;
  top:16px;
  right:16px;
  width:32px;
  height:32px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#334155;
  font-weight:800;
  font-size:18px;
  line-height:1;
  box-shadow:0 4px 10px rgba(36,59,83,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}
.card-options-btn-detail:hover { background:#fff; color:#2563eb; }
.category-list-row { padding:8px 4px; border-bottom:1px solid #f1f5f9; }
.category-list-row:last-child { border-bottom:0; }

@keyframes fadeIn { from {opacity:0; transform:translateY(8px);} to {opacity:1; transform:translateY(0);} }
@keyframes pulse { 0% {transform:scale(1);} 50% {transform:scale(1.04);} 100% {transform:scale(1);} }

.recording-meter { height:10px; width:100%; background:#e2e8f0; border-radius:999px; overflow:hidden; }
.recording-meter-bar { height:100%; background:#f97316; border-radius:999px; transition:width .12s linear; }

.nav-grid-3 { grid-template-columns: repeat(3, 1fr); }
.toast-fixed {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  background: rgba(36, 59, 83, .92);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 50;
  text-align: center;
}

.toast-fade-enter-active,
.toast-fade-leave-active {
  transition: opacity .2s ease, transform .2s ease;
}
.toast-fade-enter-from,
.toast-fade-leave-to {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

.login-help-note {
  font-size: .85rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.6;
}