:root {
  --brown-900: #3a2c25;
  --brown-700: #5b4636;
  --terracotta: #b5543c;
  --terracotta-soft: #c87d57;
  --sage: #9bab8f;
  --cream: #f7f4ee;
  --card: #ffffff;
  --ink: #2f2722;
  --muted: #8a7d72;
  --line: #ece5da;
  --warn: #c0703a;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(58, 44, 37, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Zen Maru Gothic", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

/* ---- top bar ---- */
.topbar {
  background: var(--brown-900);
  color: #fff;
  padding: 18px 28px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .paw { font-size: 32px; }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: 1px; }
.brand .tag { margin: 0; font-size: 13px; color: #d8cabd; }

/* ---- layout ---- */
.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 18px; }
.chip {
  background: var(--terracotta);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---- form ---- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input[type="text"],
.field input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fcfbf8;
}
.field input[type="text"]:focus { outline: 2px solid var(--terracotta-soft); border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.video-preview {
  width: 100%;
  border-radius: 12px;
  background: #000;
  margin: 6px 0 14px;
  display: none;
}
.video-preview.show { display: block; }

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--terracotta);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.btn-primary:hover:not(:disabled) { background: #9e472f; }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { background: #d8cfc6; cursor: not-allowed; }

.status { font-size: 13px; color: var(--terracotta); min-height: 20px; margin: 12px 0 4px; }
.status.error { color: #b3261e; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs img { width: 54px; height: 38px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* 取り消しボタン類 */
.btn-remove {
  display: block;
  background: #f0e9e0;
  border: none;
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  margin: -8px 0 14px;
}
.btn-remove:hover { background: #e7ddd0; }

.thumb-wrap { position: relative; display: inline-block; }
.thumb-wrap img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.thumb-x {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  border: none; background: var(--terracotta); color: #fff;
  font-size: 10px; line-height: 1; padding: 0; cursor: pointer;
}
.thumb-x:hover { background: #9e472f; }

.csv-link { display: inline-block; font-size: 12px; color: var(--terracotta); text-decoration: none; margin: -6px 0 14px; }
.csv-link:hover { text-decoration: underline; }

/* ---- report ---- */
.report { min-height: 420px; }
.report-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  height: 100%;
  min-height: 380px;
}
.big-paw { font-size: 56px; margin-bottom: 12px; }

.report-card { animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.report-top { border-bottom: 2px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.report-date { margin: 0; font-size: 13px; color: var(--muted); }
.report-top h2 { margin: 2px 0 0; font-size: 24px; color: var(--brown-900); }

.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.badge {
  background: var(--cream);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.badge-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.badge-val { font-weight: 700; font-size: 15px; color: var(--terracotta); }

.summary {
  background: #fbf7f0;
  border-left: 4px solid var(--terracotta-soft);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 22px;
}

.block { margin-bottom: 22px; }
.block h3 { margin: 0 0 10px; font-size: 16px; color: var(--brown-700); }

.scene-list { list-style: none; margin: 0; padding: 0; }
.scene-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.scene-list .when {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: var(--sage);
  padding: 2px 9px;
  border-radius: 999px;
  margin-right: 8px;
}

.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pill-list li {
  background: #f1f4ee;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}
.pill-list.warn li { background: #fbeee2; color: #8a4b22; }

.home-list { display: flex; flex-direction: column; gap: 12px; }
.home-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.home-card .home-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--brown-900);
  margin-bottom: 6px;
}
.home-card .time {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--terracotta-soft);
  padding: 2px 10px;
  border-radius: 999px;
}
.home-card .why { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.home-card .how { font-size: 14px; margin: 0; }

.owner-message {
  margin: 6px 0 18px;
  background: var(--brown-900);
  color: #fff;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 15px;
}

.disclaimer { font-size: 12px; color: var(--muted); margin: 0; }

/* ============================================================
   v2: スタッフ入力 / 顧客連絡帳カード / タイムライン
   ============================================================ */
.role-badge {
  font-size: 12px;
  background: var(--terracotta);
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}
.chip.ghost { background: var(--sage); }

.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.field-hint strong { color: var(--terracotta); }
.req { font-size: 10px; color: #fff; background: var(--terracotta); padding: 1px 6px; border-radius: 999px; vertical-align: middle; font-weight: 700; }

/* 入力ステップ */
.flow-guide { font-size: 12px; color: var(--muted); background: #faf7f1; border-radius: 8px; padding: 8px 10px; margin: 0 0 14px; line-height: 1.6; }
.flow-guide b { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; text-align: center; background: var(--sage); color: #fff; border-radius: 999px; font-size: 11px; }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.step-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brown-900); font-size: 16px; margin-bottom: 6px; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--terracotta); color: #fff; border-radius: 50%; font-size: 14px; flex: none; }
.step-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.6; background: #fbf7f0; border-left: 3px solid var(--terracotta-soft); padding: 8px 10px; border-radius: 0 8px 8px 0; }
.step-hint b { color: var(--terracotta); }

/* 削除（管理） */
.manage-box { background: #fbf1ee; border: 1px solid #f0dcd4; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.manage-head { font-weight: 700; color: #9e472f; font-size: 13px; margin-bottom: 8px; }
.entry-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.muted-line { font-size: 12px; color: var(--muted); margin: 4px 0; }
.entry-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.entry-del { border: 1px solid #e6b8a8; background: #fff; color: #b3432a; border-radius: 7px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.entry-del:hover { background: #fbeee9; }
.btn-danger { width: 100%; padding: 10px; border: 1px solid #d98b74; background: #fff; color: #b3432a; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; }
.btn-danger:hover { background: #fbeee9; }

/* 犬の登録パネル */
.profile-box { background: #f7f4ee; border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.profile-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--brown-700); margin-bottom: 4px; }
.profile-status { font-size: 11px; font-weight: 500; color: #fff; background: var(--muted); padding: 2px 9px; border-radius: 999px; }
.profile-status.done { background: var(--sage); }
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fcfbf8;
  resize: vertical;
}
.field select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fcfbf8;
}

/* レッスン見出し行 */
.lesson-head {
  display: grid;
  grid-template-columns: 1fr 90px 92px 28px;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  padding: 0 2px;
}

/* レッスン行 */
.lesson-row {
  display: grid;
  grid-template-columns: 1fr 90px 92px 28px;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}
.lesson-row input, .lesson-row select {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fcfbf8;
  min-width: 0;
}
.l-del { border: none; background: #f0e9e0; color: var(--muted); border-radius: 8px; cursor: pointer; height: 34px; }
.l-del:hover { background: #e7ddd0; }

/* 記録 */
.rec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rec-row label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.rec-row select { padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fcfbf8; }

.ai-row { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.btn-ai {
  padding: 11px;
  border: 1px dashed var(--terracotta-soft);
  background: #fbf2ea;
  color: #9e472f;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-ai:hover:not(:disabled) { background: #f7e8db; }
.btn-ai:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  font: inherit;
  cursor: pointer;
  color: var(--brown-700);
}
.btn-ghost:hover { background: var(--cream); }

.share-box {
  margin-top: 14px;
  background: #f1f4ee;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
}
.share-row { display: flex; gap: 6px; margin: 8px 0; }
.share-row input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.link-customer { color: var(--terracotta); font-weight: 700; text-decoration: none; }

/* 顧客プレビューmount */
.preview-mount { min-height: 360px; }
.preview-empty {
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--muted); height: 360px; font-size: 14px;
}

/* ---- 連絡帳カード（顧客が見る主役） ---- */
.diary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.diary-head { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.diary-paw { font-size: 28px; }
.diary-date { margin: 0; font-size: 12px; color: var(--muted); }
.diary-name { margin: 2px 0 0; font-size: 20px; color: var(--brown-900); }
.diary-video { width: 100%; border-radius: 12px; background: #000; margin-bottom: 16px; display: block; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.photo-grid.single { grid-template-columns: 1fr; }
.photo-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-grid.single .photo-thumb { aspect-ratio: 4 / 3; }

.diary-section { margin-bottom: 16px; }
.sec-title { margin: 0 0 8px; font-size: 15px; color: var(--brown-700); display: flex; align-items: center; gap: 8px; }

.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); gap: 10px; }
.lesson-name { font-weight: 500; }
.lesson-meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lesson-step { font-size: 12px; background: var(--sage); color: #fff; padding: 2px 9px; border-radius: 999px; }
.lesson-stars { color: var(--terracotta); font-size: 13px; letter-spacing: 1px; }

.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.record-cell { background: var(--cream); border-radius: 10px; padding: 9px 12px; display: flex; justify-content: space-between; align-items: center; }
.record-k { font-size: 13px; color: var(--muted); }
.record-v { font-weight: 700; font-size: 14px; color: var(--brown-900); }

.diary-text { margin: 0; }
.diary-text.condition { background: #fbf7f0; border-left: 4px solid var(--terracotta-soft); padding: 12px 14px; border-radius: 0 10px 10px 0; }
.diary-text.notice { background: #fbeee2; padding: 12px 14px; border-radius: 10px; color: #8a4b22; }

.home-section .sec-title { color: var(--muted); }
.ai-tag { font-size: 10px; background: #ece5da; color: var(--muted); padding: 2px 7px; border-radius: 999px; font-weight: 400; }
.home-section .home-card { background: #fafaf7; }
.diary-disclaimer { font-size: 11px; color: var(--muted); margin: 6px 0 0; }

/* ---- 顧客ページ ---- */
.customer-body { background: var(--cream); }
.customer-top { background: var(--brown-900); }
.customer-main { max-width: 620px; margin: 0 auto; padding: 22px 16px 60px; }
.c-status { font-size: 13px; color: var(--muted); margin-bottom: 16px; text-align: center; }
.timeline { display: flex; flex-direction: column; gap: 22px; }
.timeline-item { position: relative; }

/* ---- ログイン / クレイム / マイページ ---- */
.line-btn { display: inline-block; background: #06c755; color: #fff; font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 10px; border: none; font: inherit; font-weight: 700; cursor: pointer; }
.line-btn:hover { background: #05b34c; }
.line-btn.small { padding: 6px 12px; font-size: 13px; }
.auth-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.auth-bar a { color: var(--terracotta); text-decoration: none; }
.auth-bar .bar-links { white-space: nowrap; }
.claim-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #eef5ea; border: 1px solid #cfe0c4; border-radius: 12px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; flex-wrap: wrap; }
.claim-banner b { color: #2f7d33; }
.locked { min-height: 300px; display: flex; align-items: center; justify-content: center; }
.locked-inner { text-align: center; color: var(--muted); max-width: 340px; }
.locked-icon { font-size: 48px; margin-bottom: 12px; }
.locked-inner p { margin: 0 0 16px; }
.my-dog { display: flex; flex-direction: column; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; text-decoration: none; box-shadow: var(--shadow); }
.my-dog:hover { border-color: var(--terracotta-soft); }
.my-dog-name { font-weight: 700; font-size: 17px; color: var(--brown-900); }
.my-dog-meta { font-size: 13px; color: var(--muted); }

/* ---- カレンダー ---- */
.calendar { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 20px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-weight: 700; color: var(--brown-900); font-size: 15px; }
.cal-nav { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 18px; color: var(--brown-700); cursor: pointer; line-height: 1; }
.cal-nav:hover { background: var(--cream); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 11px; color: var(--muted); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border: none; background: transparent; border-radius: 8px; font: inherit; font-size: 13px; color: var(--muted); }
.cal-day.empty { visibility: hidden; }
.cal-day:disabled { color: #cfc6bc; }
.cal-day.has { background: var(--terracotta); color: #fff; font-weight: 700; cursor: pointer; }
.cal-day.has:hover { background: #9e472f; }

/* ジャンプ先の一時ハイライト */
.timeline-item.flash .diary-card { box-shadow: 0 0 0 3px var(--terracotta-soft); transition: box-shadow 0.3s; }


/* ---- 今日の登園ボード（スタッフ） ---- */
.board { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; box-shadow: var(--shadow); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.board-title { font-weight: 700; color: var(--brown-900); }
.board-date { font-weight: 400; color: var(--muted); font-size: 13px; }
.board-add { white-space: nowrap; }
.board-picker { margin-bottom: 12px; }
.board-picker input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; margin-bottom: 6px; background: var(--cream); color: var(--ink); }
.board-picker input:focus { outline: none; border-color: var(--terracotta-soft); }
.board-picker-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.board-pick-row { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); font-family: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.board-pick-row:hover { border-color: var(--terracotta-soft); background: #fff; }
.board-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; }
.board-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream); font-family: inherit; cursor: pointer; transition: border-color .15s, transform .08s; }
.board-card:hover { border-color: var(--terracotta-soft); }
.board-card:active { transform: scale(0.97); }
.board-card.done { border-color: var(--sage); background: #f2f6ee; }
.bc-face { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 26px; background: #fff; border: 1px solid var(--line); }
.bc-face img { width: 100%; height: 100%; object-fit: cover; }
.bc-name { font-size: 13px; font-weight: 700; color: var(--brown-900); text-align: center; line-height: 1.2; word-break: break-word; }
.bc-status { font-size: 11px; color: var(--muted); }
.board-card.done .bc-status { color: #5c7a4a; }
.bc-x { position: absolute; top: 1px; right: 3px; font-size: 12px; line-height: 1; color: var(--muted); padding: 3px 5px; border-radius: 6px; }
.bc-x:hover { color: var(--terracotta); background: #fff; }
.board-empty { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 4px 0 0; }

/* ---- マイページ：家族共有（招待・メンバー・除名） ---- */
.my-dog-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.my-dog-card .my-dog { display: flex; flex-direction: column; gap: 3px; padding: 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.my-dog-card .my-dog-name { font-weight: 700; font-size: 17px; color: var(--brown-900); }
.my-dog-card .my-dog-meta { font-size: 13px; color: var(--muted); }
.fam { padding: 12px 16px 16px; }
.fam-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--brown-700); }
.fam-invite-btn { background: var(--terracotta); color: #fff; border: none; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.fam-invite-btn:hover { background: var(--terracotta-soft); }
.fam-invite-btn:disabled { opacity: .6; }
.fam-list { display: flex; flex-direction: column; gap: 6px; }
.fam-row { display: flex; align-items: center; justify-content: space-between; background: var(--cream); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.fam-you { display: inline-block; margin-left: 8px; font-size: 11px; color: var(--brown-700); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.fam-rm { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-family: inherit; cursor: pointer; }
.fam-rm:hover { color: var(--warn); border-color: var(--warn); }
.fam-invite-box { margin-top: 12px; background: var(--cream); border-radius: 12px; padding: 12px; }
.fam-invite-hint { font-size: 12.5px; color: var(--brown-700); margin: 0 0 8px; line-height: 1.6; }
.fam-invite-row { display: flex; gap: 6px; }
.fam-invite-row input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: #fff; color: var(--ink); font-family: inherit; }
.fam-copy { white-space: nowrap; background: var(--brown-700); color: #fff; border: none; border-radius: 8px; padding: 9px 14px; font-size: 13px; font-family: inherit; cursor: pointer; transition: background .15s, transform .08s; }
.fam-copy:hover { background: var(--brown-900); }
.fam-copy:active { transform: translateY(1px); }
.fam-copy.done { background: var(--sage); }

/* ---- いぬごころ連携カード：発行コードは「ちぎり取る券」風（破線テラコッタ・等幅数字） ---- */
.link-card { border-color: var(--terracotta-soft); } /* いぬごころへの橋渡し＝ブランドアクセントで静かに区別 */
.link-code {
  flex: 1; min-width: 0; text-align: center; background: #fff;
  border: 1.5px dashed var(--terracotta-soft); border-radius: 12px; padding: 12px;
  font-size: 24px; font-weight: 700; letter-spacing: .16em; color: var(--brown-900);
  font-variant-numeric: tabular-nums; font-family: inherit; user-select: all;
}

/* ---- 飼い主のスタンプ返信（3種） ---- */
.stamp-bar { display: flex; gap: 8px; margin: -6px 2px 20px; }
.stamp { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 17px; font-family: inherit; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s, transform .08s; }
.stamp .sc { font-size: 13px; font-weight: 700; color: var(--muted); min-width: 5px; }
.stamp.on { border-color: var(--terracotta); background: #fbeee7; }
.stamp.on .sc { color: var(--terracotta); }
.stamp:active { transform: scale(.94); }
.stamp:disabled { opacity: .6; }
.stamp-bar.readonly .stamp { cursor: default; }
/* スタッフ側: 連絡帳リストの反応集計 */
.entry-react { font-size: 12.5px; color: var(--terracotta); margin-left: 8px; white-space: nowrap; }

/* ---- メディア受信箱 ---- */
.bc-cam { position: absolute; top: 1px; left: 3px; font-size: 13px; line-height: 1; color: var(--brown-700); padding: 3px 4px; border-radius: 6px; }
.bc-cam b { font-size: 10px; color: var(--terracotta); margin-left: 1px; }
.bc-cam:hover { background: #fff; }
.form-inbox { background: #f2f6ee; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.fi-head { font-size: 13px; font-weight: 700; color: var(--brown-700); margin-bottom: 8px; line-height: 1.5; }
.fi-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.fi-thumb { position: relative; width: 66px; height: 66px; }
.fi-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.fi-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--brown-900); color: #fff; font-size: 11px; cursor: pointer; line-height: 1; }
