/* GreenNest — 自宅の小さな温室（コンサバトリー）
   株カード＝植物園の銘板。白磁の地 × 深いボタニカルグリーン × 真鍮。
   夜は「夜の温室」：深い緑黒に、真鍮が月光色へ変わる。 */
:root {
  --background: #F5F6F0;      /* 白磁 */
  --surface: #FDFDFA;
  --surface-soft: #E9EDE3;
  --house: #1C3A2A;           /* 温室の躯体（ヘッダー・銘板） */
  --plate: #1C3A2A;
  --on-plate: #F3F1E6;
  --on-plate-soft: #B9CABB;
  --primary: #1C3A2A;         /* ボタン・選択状態 */
  --primary-strong: #12281C;  /* 見出し文字 */
  --secondary: #5E7F68;
  --secondary-soft: #E0E9DE;
  --brass: #B08D43;           /* 装飾の真鍮 */
  --brass-text: #6F5314;      /* 明地の上の真鍮文字（AA） */
  --brass-soft: #EFE5C8;
  --brass-on-dark: #D4B66F;   /* 暗地の上の真鍮 */
  --brass-line: rgba(212, 182, 111, 0.55);
  --water: #5B8499;
  --water-soft: #DCE8ED;
  --text-primary: #1B241E;
  --text-secondary: #4A564D;
  --text-muted: #5C675E;
  --border: #D6DDCF;
  --focus: #1C3A2A;
  --ripple: #4F7D96;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(18, 40, 28, 0.06), 0 6px 18px rgba(18, 40, 28, 0.07);
  --shadow-soft: 0 1px 3px rgba(18, 40, 28, 0.06);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --nav-height: 68px;
  --max-width: 460px;
  --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --font-latin: "Cormorant Garamond", "Hoefler Text", "Iowan Old Style", Georgia, serif;
  --font-ui: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #09120D;
    --surface: #111D16;
    --surface-soft: #192A20;
    --house: #0F2018;
    --plate: #1A3226;
    --on-plate: #ECEADB;
    --on-plate-soft: #9DB4A2;
    --primary: #2D5842;
    --primary-strong: #D9E8D6;
    --secondary: #86A890;
    --secondary-soft: #1C3226;
    --brass: #D9D0AB;          /* 真鍮 -> 月光 */
    --brass-text: #DCD3AE;
    --brass-soft: #2A2A1C;
    --brass-on-dark: #DCD3AE;
    --brass-line: rgba(220, 211, 174, 0.42);
    --water: #8FB4C6;
    --water-soft: #1B2C34;
    --text-primary: #E9EEE3;
    --text-secondary: #B2C0B4;
    --text-muted: #8A9A8E;
    --border: #243629;
    --focus: #DCD3AE;
    --ripple: #BFD9E6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 22px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { touch-action: manipulation; }
html.text-lg { font-size: 18px; }

/* iOS: html と body の両方に overflow(hidden) を掛けると body がスクロールコンテナ化し
   fixed 要素（下部ナビ）がスクロールに遅れて付いてくる。html 側はコンテナを作らない clip にする */
html { overflow-x: clip; }
body { overflow-x: hidden; }
body {
  background: var(--background);
  word-break: auto-phrase;
  line-break: strict;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  width: 100%;
}

h1, h2, h3 { font-family: var(--font-mincho); font-weight: 700; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.top-bar :focus-visible { outline-color: var(--brass-on-dark); }

#app {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh; /* iOS のバー伸縮でも実表示高さに追従 */
  background: var(--background);
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + var(--space-6));
}

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* 押したら沈む（hover は指だけでなく、マウスのときだけ） */
.task-card, .catalog-card, .shortcut, .btn, .chip--action, .select-card, .cal-cell, .schedule-row, .house-rhythm {
  transition: transform 0.14s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.task-card:active, .catalog-card:active, .shortcut:active, .btn:active, .chip--action:active, .select-card:active, .cal-cell:active, .house-rhythm:active {
  transform: scale(0.972);
}
@media (hover: hover) {
  .task-card:hover, .catalog-card:hover { transform: translateY(-2px); }
  .task-card:active, .catalog-card:active { transform: scale(0.972); }
}

/* --- 温室のヘッダー --- */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--house); color: var(--on-plate);
  padding: calc(var(--space-4) + env(safe-area-inset-top, 0px)) var(--space-5) var(--space-4);
  position: relative;
}
/* 夜だけ：緑黒の地と躯体の境目に、月光色の細い線を引く（昼は色の差で足りる） */
@media (prefers-color-scheme: dark) {
  .top-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass-line); }
  .top-bar:has(+ .screen--home)::after { display: none; }
}
.top-bar__title {
  margin: 0; font-family: var(--font-latin); font-style: italic; font-weight: 600;
  font-size: 28px; line-height: 1; letter-spacing: 0.01em; color: var(--on-plate);
}
.top-bar__subtitle { margin: 5px 0 0; font-size: 12px; color: var(--on-plate-soft); letter-spacing: 0.04em; }
.top-bar__count {
  display: flex; align-items: center; gap: 6px; flex: none;
  border: 1px solid var(--brass-line); border-radius: 999px;
  padding: 6px 13px; font-size: 13px; color: var(--brass-on-dark);
  min-height: 34px;
}
.top-bar__count .icon { width: 16px; height: 16px; }

/* --- Screen header --- */
.screen { padding: 0 var(--space-5) var(--space-5); }
.screen-header { margin: var(--space-6) 0 var(--space-4); }
.screen-header h1 { font-size: 27px; line-height: 1.3; margin: 0; font-weight: 800; color: var(--primary-strong); letter-spacing: 0.02em; }
.screen-header__lead { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); }

/* --- Home --- */
.screen--home { padding-top: 0; }
.home-date {
  margin: 0 calc(var(--space-5) * -1) var(--space-6);
  padding: 4px var(--space-5) 34px;
  background: var(--house); color: var(--on-plate);
  border-radius: 0 0 50% 50% / 0 0 20px 20px;
  display: grid; grid-template-columns: 1fr auto; align-items: end;
}
.home-date__full { grid-column: 1 / -1; }
.home-date__full { margin: 0; font-size: 13px; color: var(--brass-on-dark); letter-spacing: 0.08em; }
.home-date__today { margin: 4px 0 6px; font-size: 54px; line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; color: var(--on-plate); }
.home-date__count { margin: 0 0 10px; font-size: 14px; color: var(--on-plate-soft); letter-spacing: 0.04em; text-align: right; }

.hscroll {
  display: flex; gap: var(--space-3); overflow-x: auto; margin: 0 calc(var(--space-5) * -1);
  padding: 4px var(--space-5) var(--space-3);
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar { display: none; }

/* 銘板カード：写真の下に、真鍮の二重罫の銘板 */
.task-card {
  scroll-snap-align: start;
  flex: 0 0 154px;
  background: var(--plate); color: var(--on-plate);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: block; min-height: 44px;
}
.task-card__photo-wrap { position: relative; aspect-ratio: 4/3.2; background: var(--surface-soft); }
.task-card__photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.task-card__icon-badge {
  position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(12, 25, 18, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; color: #E7EEE6;
}
.task-card__icon-badge .icon { width: 16px; height: 16px; }
.task-card__body {
  margin: 6px; padding: 8px 10px 10px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--brass-line);
}
.task-card__name { margin: 0 0 2px; font-family: var(--font-mincho); font-weight: 700; font-size: 16px; line-height: 1.35; }
.task-card__action { margin: 0; font-size: 12.5px; color: var(--on-plate-soft); }
.overdue-pill {
  display: inline-block; margin-top: 6px; padding: 1px 9px; border-radius: 999px;
  border: 1px solid var(--brass-line); color: var(--brass-on-dark); font-size: 11.5px; font-weight: 500;
}
.overdue-pill--strong { background: var(--brass-on-dark); border-color: var(--brass-on-dark); color: #1C2A1F; font-weight: 700; }

.task-card--house .task-card__photo--house {
  aspect-ratio: 4/3.2; display: flex; align-items: center; justify-content: center;
  background: var(--secondary-soft); color: var(--primary);
}

.task-card--compact {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 44px;
}
.task-card--compact .task-card__photo-wrap { width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden; }
.task-card--compact .task-card__body { padding: 0; margin: 0; box-shadow: none; flex: 1; }
.task-card--compact .task-card__chevron { width: 18px; height: 18px; color: var(--on-plate-soft); }

/* 葉脈のディバイダ：「きょうの仕事」とそれ以外を分ける、ここ1箇所だけ */
.vein-divider { display: flex; align-items: center; gap: 10px; margin: var(--space-5) 8% var(--space-3); color: var(--secondary); }
.vein-divider__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); opacity: 0.55; }
.vein-divider__line--r { background: linear-gradient(90deg, currentColor, transparent); }
.vein-divider__leaf { width: 32px; height: auto; flex: none; overflow: visible; }

.tomorrow-block { margin-top: var(--space-6); }
.tomorrow-block__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-3); }
.tomorrow-block__head h2 { margin: 0; font-size: 17px; }
.tomorrow-block__date { font-size: 12.5px; color: var(--text-secondary); font-weight: 400; margin-left: 6px; }
.tomorrow-block__count { font-size: 12.5px; color: var(--text-secondary); }
.tomorrow-block__list { display: flex; flex-direction: column; gap: var(--space-2); }

.empty-note { color: var(--text-secondary); font-size: 14px; padding: var(--space-3) var(--space-5); margin: 0; font-family: var(--font-mincho); font-weight: 700; }
.empty-note--tight { padding: var(--space-2) var(--space-4); font-family: var(--font-ui); font-weight: 400; font-size: 13.5px; color: var(--text-muted); }

.shortcut-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2);
  margin-top: var(--space-4);
}
.shortcut {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-3) var(--space-2); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; min-height: 44px;
  color: var(--text-primary);
}
.shortcut__icon { color: var(--primary-strong); }
.shortcut__icon .icon { width: 24px; height: 24px; }
.shortcut small { color: var(--text-muted); font-weight: 400; }
.screen--home .shortcut-grid { grid-template-columns: 1fr; }
.screen--home .shortcut {
  flex-direction: row; justify-content: center; gap: 10px; font-size: 15px; font-weight: 700; min-height: 56px;
  background: transparent; border-color: var(--primary-strong); color: var(--primary-strong);
}
.shortcut--addphoto { margin-bottom: var(--space-4); flex-direction: row !important; justify-content: center; gap: 10px !important; font-weight: 700; }

.house-rhythm {
  display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5);
  background: var(--secondary-soft); border-radius: var(--radius); padding: var(--space-4);
  min-height: 44px;
}
.house-rhythm__icon { color: var(--primary-strong); }
.house-rhythm__body { flex: 1; }
.house-rhythm__title { display: block; font-family: var(--font-mincho); font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.house-rhythm__text { display: block; font-size: 12.5px; color: var(--text-secondary); }
.house-rhythm__text strong { color: var(--primary-strong); font-weight: 700; }
.house-rhythm__chevron { color: var(--text-muted); width: 18px; height: 18px; }

/* --- Bottom nav --- */
.bottom-nav {
  /* iOS では fixed + transform の組み合わせで描画がスクロールに追従ずれするため
     left/right + margin auto で中央寄せする（見た目は従来と同じ） */
  position: fixed; left: 0; right: 0; margin: 0 auto; bottom: 0; width: 100%; max-width: var(--max-width);
  background: var(--surface); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
}
.bottom-nav__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px;
  color: var(--text-muted); flex: 1; padding: 6px 0; min-height: 44px; justify-content: center;
}
.bottom-nav__item.is-active { color: var(--primary-strong); font-weight: 700; }
.bottom-nav__item.is-active::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 22px; height: 2px; margin-left: -11px; background: var(--brass);
}
.bottom-nav__icon { width: 22px; height: 22px; }
/* 文字入力中（iOSキーボード表示中）はナビを隠す：キーボード上に浮いて付いてくるのを防ぐ */
body.kb-open .bottom-nav { display: none; }

/* --- Filter chips / view toggle --- */
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px var(--space-3); margin: -3px -3px 0; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none; background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; color: var(--text-secondary); min-height: 36px;
}
.filter-chip.is-active { background: var(--primary); border-color: var(--primary); color: #F3F1E6; font-weight: 500; }

.view-toggle { display: inline-flex; background: var(--surface-soft); border-radius: 999px; padding: 3px; margin-bottom: var(--space-4); }
.view-toggle__btn { padding: 7px 20px; border-radius: 999px; font-size: 13.5px; color: var(--text-secondary); min-height: 36px; }
.view-toggle__btn.is-active { background: var(--primary); color: #F3F1E6; font-weight: 700; }

/* --- Schedule list --- */
.schedule-day { margin-bottom: var(--space-5); }
.schedule-day__head { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--space-2); }
.schedule-day__date { margin: 0; font-family: var(--font-mincho); font-size: 19px; font-weight: 700; color: var(--primary-strong); }
.schedule-day__wd { margin: 0; font-size: 12.5px; color: var(--text-secondary); flex: 1; }
.schedule-day__count { margin: 0; font-size: 12px; color: var(--text-muted); }
.today-pill { background: var(--primary); color: #F3F1E6; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.schedule-day__list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.schedule-day__list:empty { display: none; }

.schedule-row {
  display: flex; align-items: center; gap: 10px; padding: 10px var(--space-4);
  border-bottom: 1px solid var(--border); min-height: 44px;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row__photo { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-soft); }
.schedule-row__photo--house { display: flex; align-items: center; justify-content: center; color: var(--primary-strong); }
.schedule-row__body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.schedule-row__name { font-family: var(--font-mincho); font-weight: 700; font-size: 15px; }
.schedule-row__action { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.schedule-row__action .icon { width: 16px; height: 16px; color: var(--water); }
.schedule-row__extra { font-size: 11.5px; color: var(--text-muted); }

/* --- Month calendar --- */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.cal-toolbar__label { font-family: var(--font-mincho); font-size: 21px; font-weight: 800; margin: 0; color: var(--primary-strong); }
.cal-nav { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: var(--space-4); }
.cal-cell {
  aspect-ratio: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px;
}
.cal-cell--empty { background: transparent; border: none; }
.cal-cell__num { font-size: 13px; }
.cal-cell__dots { display: flex; gap: 2px; min-height: 6px; }
.cal-cell.is-today { box-shadow: inset 0 0 0 1.5px var(--brass); }
.cal-cell.is-today .cal-cell__num { color: var(--primary-strong); font-weight: 700; }
.cal-cell.is-selected { background: var(--primary); border-color: var(--primary); }
.cal-cell.is-selected .cal-cell__num { color: #F3F1E6; }

.cal-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); }
.cal-detail__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-3); }
.cal-detail__head p { margin: 0; font-family: var(--font-mincho); font-weight: 700; font-size: 16px; }
.cal-detail__count { font-size: 12px; color: var(--text-secondary); }
.cal-detail-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cal-detail-row:last-child { border-bottom: none; }
.cal-detail-row__photo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-soft); }
.cal-detail-row__photo--house { display: flex; align-items: center; justify-content: center; color: var(--primary-strong); }
.cal-detail-row__body { flex: 1; }
.cal-detail-row__name { display: block; font-family: var(--font-mincho); font-weight: 700; font-size: 14.5px; }
.cal-detail-row__action { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-secondary); }
.cal-detail-row__action .icon { width: 15px; height: 15px; }
.pred-badge { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; flex: none; }
.pred-badge--actual { background: var(--secondary-soft); color: var(--primary-strong); }
.pred-badge--prediction { background: var(--water-soft); color: var(--text-secondary); }

/* --- Catalog --- */
.search-box {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 16px; margin-bottom: var(--space-3); color: var(--text-muted);
}
.search-box .icon { width: 18px; height: 18px; }
.search-box input { border: none; outline: none; background: transparent; flex: 1; font: inherit; font-size: 16px; color: var(--text-primary); min-height: 24px; }
.search-box:focus-within { border-color: var(--primary-strong); }

.result-count { font-size: 12px; color: var(--text-muted); margin: 0 0 var(--space-3); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.catalog-card { display: flex; flex-direction: column; background: var(--plate); color: var(--on-plate); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.catalog-card__photo { position: relative; aspect-ratio: 1/1; background: var(--surface-soft); }
.catalog-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card__body { flex: 1; display: flex; flex-direction: column; margin: 5px; padding: 9px 10px 10px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--brass-line); }
.catalog-card__name { margin: 0; font-family: var(--font-mincho); font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.catalog-card__latin { margin: 2px 0 7px; font-family: var(--font-latin); font-style: italic; font-weight: 500; font-size: 14px; line-height: 1.25; color: var(--brass-on-dark); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0; }
.catalog-card__body .tag-row { margin-top: auto; }
.tag { color: var(--on-plate-soft); font-size: 10.5px; line-height: 1.6; }
.tag + .tag::before { content: "・"; color: var(--brass-on-dark); margin: 0 1px; }

.badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: rgba(12, 25, 18, 0.72); color: #F3F1E6; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.badge__icon { width: 13px; height: 13px; }
.badge--recovering, .badge--diagnosisPending { color: var(--brass-on-dark); }

/* --- Detail：写真に銘板が重なる --- */
.detail-hero { position: relative; aspect-ratio: 4/3.4; background: var(--surface-soft); }
.detail-hero__img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero__back {
  position: absolute; top: calc(var(--space-4) + env(safe-area-inset-top, 0px)); left: var(--space-4);
  width: 42px; height: 42px; border-radius: 50%; background: rgba(12, 25, 18, 0.62); color: #F3F1E6;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; border: none;
}
.screen--detail { padding-top: 0; }
.detail-plate {
  position: relative; margin: -34px 0 0; padding: 16px 18px 16px; background: var(--plate); color: var(--on-plate);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.detail-plate::before { content: ""; position: absolute; inset: 5px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--brass-line); pointer-events: none; }
.detail-latin { margin: 0; font-family: var(--font-latin); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.2; color: var(--brass-on-dark); }
.detail-name { margin: 4px 0 var(--space-2); font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: 0.02em; color: var(--on-plate); }
.detail-tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--border); margin: var(--space-5) 0 var(--space-4); overflow-x: auto; }
.detail-tabs__btn { padding: 8px 2px 12px; font-size: 14px; color: var(--text-muted); border-bottom: 2px solid transparent; min-height: 44px; }
.detail-tabs__btn.is-active { color: var(--primary-strong); font-weight: 700; border-color: var(--brass); }
.detail-body { min-height: 200px; }

.info-list { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px var(--space-4); margin: 0 0 var(--space-5); }
.info-list > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-list > div:last-child { border-bottom: none; }
.info-list .badge { position: static; background: var(--plate); }
.info-list dt { flex: none; white-space: nowrap; margin: 0; font-size: 13px; color: var(--text-secondary); }
.info-list dd { margin: 0; font-size: 13.5px; text-align: right; }

.care-block { margin-bottom: var(--space-5); }
.care-block h3, .text-block h3 { font-size: 15px; margin: 0 0 var(--space-2); color: var(--primary-strong); }
.care-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.care-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-height: 80px; }
.care-item .icon { color: var(--primary-strong); }
.care-item p { margin: 0; font-size: 12px; font-weight: 700; }
.care-item__sub { font-weight: 400 !important; font-size: 10.5px !important; color: var(--text-secondary); }
.care-item__auto { font-weight: 400 !important; font-size: 9.5px !important; color: var(--text-muted); margin-top: -2px; }

.text-block { margin-bottom: var(--space-5); }
.text-block p { margin: 0; font-size: 13.5px; color: var(--text-secondary); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); }
.memo-preview { white-space: pre-wrap; }

.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: var(--space-2); }
.memo-textarea {
  width: 100%; min-height: 140px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: var(--space-3); font: inherit; font-size: 16px; background: var(--surface); color: var(--text-primary); resize: vertical;
  margin-bottom: var(--space-4);
}

.consult-textarea { min-height: 84px; margin-bottom: var(--space-3); }
.consult-block { margin-top: var(--space-5); }

.record-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.record-history__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3); }
.record-history__date { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.record-history__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--secondary-soft); color: var(--primary-strong); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; }
.mini-chip .icon { width: 13px; height: 13px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-grid__item { margin: 0; }
.photo-grid__item img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-sm); }
.photo-grid__item figcaption { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-align: center; }

/* 夜は写真の明るさだけ落とす（暗い部屋で眩しくならないように） */
@media (prefers-color-scheme: dark) {
  .task-card__photo-wrap img, .catalog-card__photo img, .detail-hero__img, .schedule-row__photo, .cal-detail-row__photo, .select-card__photo img, .photo-grid__item img { filter: brightness(0.86) saturate(0.95); }
}

/* --- Buttons --- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); font-weight: 700; font-size: 15px;
  min-height: 52px; padding: 0 var(--space-5); color: var(--text-primary);
}
.btn--primary { background: var(--primary); border-color: var(--primary); color: #F3F1E6; }
.btn--primary[disabled] { background: var(--surface-soft); border-color: var(--surface-soft); color: var(--text-muted); box-shadow: none; }
.btn--block { width: 100%; }
.btn--sticky { margin-top: var(--space-6); }

/* --- Record --- */
.record-block { margin-bottom: var(--space-6); }
.record-block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.date-picker { display: flex; align-items: center; justify-content: center; gap: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); position: relative; }
.date-picker__nav { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-soft); display: flex; align-items: center; justify-content: center; }
.date-picker__value { margin: 0; font-family: var(--font-mincho); font-size: 21px; font-weight: 800; }
.date-picker__value span { font-family: var(--font-ui); font-size: 13px; font-weight: 400; color: var(--text-secondary); margin-left: 4px; }
.date-picker__today { position: absolute; right: var(--space-3); top: 50%; transform: translateY(-50%); font-size: 11.5px; color: var(--primary-strong); background: var(--secondary-soft); padding: 5px 10px; border-radius: 999px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--action {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 14px; font-size: 13.5px; min-height: 40px; position: relative;
}
.chip--action.is-selected { background: var(--secondary-soft); border-color: var(--primary-strong); color: var(--primary-strong); font-weight: 700; }
.chip__icon { display: inline-flex; color: var(--primary-strong); }
.chip__icon .icon { width: 16px; height: 16px; }
.chip__check { display: inline-flex; color: var(--primary-strong); }
.chip__check .icon { width: 14px; height: 14px; }

.select-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.select-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; }
.select-card__photo { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--surface-soft); display: block; }
.select-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.select-card__check {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #F3F1E6; box-shadow: 0 0 0 1px var(--brass-on-dark); display: flex; align-items: center; justify-content: center;
}
.select-card__check .icon { width: 12px; height: 12px; }
.select-card__name { font-size: 11.5px; text-align: center; line-height: 1.3; padding-bottom: 2px; }
.select-card.is-selected { border-color: var(--primary-strong); background: var(--secondary-soft); }

/* --- Settings --- */
.settings-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-2) var(--space-4); margin-bottom: var(--space-5); }
.settings-block > .field-label { margin-top: var(--space-3); font-family: var(--font-mincho); font-size: 15px; color: var(--primary-strong); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: none; }
.settings-row__label { margin: 0; font-weight: 700; font-size: 14px; }
.settings-row__sub { margin: 2px 0 var(--space-2); font-size: 12px; color: var(--text-secondary); }
.settings-row .settings-row__sub { margin-bottom: 0; }

.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch__track { position: absolute; inset: 0; background: var(--surface-soft); border-radius: 999px; transition: background 0.18s ease; border: 1px solid var(--text-muted); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-muted); transition: transform 0.18s ease, background 0.18s ease; }
.switch input:checked + .switch__track { background: var(--primary); border-color: var(--primary); }
.switch input:checked + .switch__track::after { transform: translateX(20px); background: var(--brass-on-dark); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--focus); outline-offset: 2px; }

.segmented { display: flex; background: var(--surface-soft); border-radius: 999px; padding: 3px; margin-bottom: var(--space-3); }
.segmented__btn { flex: 1; padding: 10px 0; border-radius: 999px; font-size: 13.5px; min-height: 40px; color: var(--text-secondary); }
.segmented__btn.is-active { background: var(--primary); color: #F3F1E6; font-weight: 700; }

/* --- Phase 3: 同期・ログイン --- */
.text-input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font: inherit; font-size: 16px; background: var(--surface); color: var(--text-primary);
  margin-bottom: var(--space-4); min-height: 46px;
}
.btn--ghost { background: var(--surface-soft); color: var(--text-primary); min-height: 40px; padding: 0 16px; font-size: 13.5px; }

/* --- Phase 5: 写真を追加・診断 --- */
.add-photo-preview { margin-top: var(--space-3); }
.add-photo-preview__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-soft); }
.diagnose-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: var(--space-5); }

/* --- Toast --- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-height) + 14px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 8px); background: var(--plate); color: var(--on-plate); padding: 11px 22px;
  border-radius: 999px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50; box-shadow: var(--shadow); max-width: calc(var(--max-width) - 40px); text-align: center;
}
#toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 520px) {
  body { background: var(--surface-soft); }
  #app { box-shadow: 0 0 40px rgba(0,0,0,0.08); min-height: 100vh; }
  .bottom-nav { box-shadow: 0 -2px 10px rgba(0,0,0,0.04); }
}

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--blue { background: var(--water); }
.dot--terracotta { background: var(--brass); }
.dot--sage { background: var(--secondary); }
.dot--green { background: var(--primary-strong); }
.dot--ring { background: transparent; border: 1.6px solid var(--text-muted); }
.dot--ring.dot--blue { border-color: var(--water); }
.dot--ring.dot--terracotta { border-color: var(--brass); }
.dot--ring.dot--sage { border-color: var(--secondary); }
.dot--ring.dot--green { border-color: var(--primary-strong); }
.cal-cell.is-selected .dot--blue, .cal-cell.is-selected .dot--green, .cal-cell.is-selected .dot--sage { background: #F3F1E6; }
.cal-cell.is-selected .dot--terracotta { background: var(--brass-on-dark); }
.cal-cell.is-selected .dot--ring { background: transparent; border-color: #F3F1E6; }

.weather-note { font-size: 12px; color: var(--text-secondary); margin: 0 0 var(--space-3); }

.history-link { margin-top: var(--space-4); text-align: center; text-decoration: none; }
.history-day { margin-bottom: var(--space-4); }
.history-day__head { font-size: 15px; margin: 0 0 var(--space-2); color: var(--primary-strong); }
.history-day__list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px var(--space-4); border-bottom: 1px solid var(--border); font-size: 13.5px; }
.history-row:last-child { border-bottom: none; }
.history-row__name { font-family: var(--font-mincho); font-weight: 700; font-size: 14.5px; }
.history-row__actions { font-size: 12.5px; color: var(--text-secondary); text-align: right; }
.cal-legend { font-size: 12px; color: var(--text-muted); margin: var(--space-2) 0 var(--space-4); }
.cal-upcoming-title { font-family: var(--font-mincho); font-size: 16px; font-weight: 700; margin: 0 0 var(--space-2); }

.tomorrow-line { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--text-secondary); padding: var(--space-3) 0; text-decoration: none; }
.tomorrow-line .icon { width: 16px; height: 16px; }
.cal-upcoming { margin-bottom: var(--space-4); }
.cal-upcoming > summary { cursor: pointer; padding: var(--space-2) 0; }
.btn--sm { padding: 6px 10px; font-size: 12.5px; min-height: 36px; }

/* 同期が止まっているときのホーム表示・設定の状態文（警告色は使わず落ち着いた線で知らせる） */
.sync-banner { display: block; margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brass); border-radius: var(--radius); color: var(--text-primary); text-decoration: none; }
.sync-banner__title { display: block; font-weight: 700; font-size: 14px; }
.sync-banner__text { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); }
.sync-status { font-size: 12.5px; }
.sync-status--warn { color: var(--text-primary); font-weight: 600; }

/* 今日の最初の一歩：カードがひとつずつ現れる（ホームだけ・控えめ） */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.screen--home .hscroll .task-card { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.screen--home .hscroll .task-card:nth-child(2) { animation-delay: 0.06s; }
.screen--home .hscroll .task-card:nth-child(3) { animation-delay: 0.12s; }
.screen--home .hscroll .task-card:nth-child(4) { animation-delay: 0.18s; }
.screen--home .hscroll .task-card:nth-child(n+5) { animation-delay: 0.24s; }

/* signature：記録を保存した瞬間、水の波紋が静かに広がる */
.ripple { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.ripple svg { position: absolute; width: 240px; height: 240px; overflow: visible; color: var(--ripple); }
.ripple circle {
  fill: none; stroke: var(--ripple); stroke-width: 1.6; vector-effect: non-scaling-stroke;
  transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0;
  animation: ripple-out 2.6s cubic-bezier(0.18, 0.62, 0.3, 1) forwards;
}
.ripple circle.r0 { fill: url(#ripple-swell); stroke-width: 2; }
.ripple circle.r2 { stroke-width: 1.1; }
.ripple circle.r3 { stroke-width: 0.8; }
.ripple circle.r1 { animation-delay: 0.16s; }
.ripple circle.r2 { animation-delay: 0.34s; }
.ripple circle.r3 { animation-delay: 0.58s; }
@keyframes ripple-out {
  0% { transform: scale(0.04); opacity: 0; }
  12% { opacity: 0.62; }
  55% { opacity: 0.4; }
  100% { transform: scale(9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ripple { display: none; }
}

/* --- 写真更新＋再診断（2026-10-09）。色は既存トークンのみ・警告色（赤）は使わない --- */
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.shoot-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-bottom: var(--space-4); border-radius: 999px; background: var(--primary); color: #F3F1E6; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.shoot-btn .icon { width: 20px; height: 20px; }
.shoot-btn:active { opacity: 0.85; }

.rediag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--secondary-soft); color: var(--primary-strong); border: 1px solid var(--border); }
.rediag-chip__icon { width: 14px; height: 14px; }
.rediag-chip--waiting { background: var(--surface-soft); color: var(--text-secondary); }
.rediag-chip--seen-updated { background: var(--brass-soft); color: var(--brass-text); border-color: var(--brass-line); }
.rediag-line { margin: var(--space-3) 0 0; }
.rediag-line button.rediag-chip { font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.rediag-panel { margin: var(--space-2) 0 0; padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); }
.rediag-panel__summary { margin: 0 0 var(--space-2); color: var(--text-primary); font-weight: 700; }
.rediag-panel ul { margin: 0; padding-left: 1.2em; }
.rediag-panel li { margin-bottom: 2px; }
.rediag-panel__date { margin: var(--space-2) 0 0; font-size: 11.5px; color: var(--text-muted); }

.photo-grid__item .rediag-chip { margin-top: 4px; font-size: 10px; padding: 2px 7px; gap: 3px; }
.photo-grid__item .rediag-chip__icon { width: 11px; height: 11px; }
.photo-grid__sum { margin: 4px 0 0; font-size: 10.5px; line-height: 1.4; color: var(--text-secondary); }
.photo-grid__memo { margin: 2px 0 0; font-size: 10.5px; color: var(--text-muted); }

.unread-mark { position: absolute; top: 8px; right: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--brass-on-dark); box-shadow: 0 0 0 2px var(--plate); }

.arrived { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--secondary); border-radius: var(--radius); }
.arrived__title { margin: 0 0 var(--space-2); font-family: var(--font-mincho); font-weight: 700; font-size: 14.5px; }
.arrived__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--text-primary); }
.arrived__row img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; }
.arrived__name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; }
.arrived__sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-secondary); }
.arrived__row .icon { width: 16px; height: 16px; color: var(--text-muted); }

.afterrec { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.afterrec__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--space-2); }
.afterrec__title { margin: 0; font-size: 12.5px; color: var(--text-secondary); }
.afterrec__close { font-size: 12px; color: var(--text-muted); text-decoration: underline; padding: 4px 6px; }
.afterrec__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.afterrec__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface-soft); color: var(--text-primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.afterrec__chip .icon { width: 16px; height: 16px; }

.shoot-confirm__new { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--surface-soft); }
.shoot-confirm__prevwrap { display: flex; align-items: center; gap: 10px; margin: var(--space-3) 0 var(--space-4); font-size: 12.5px; color: var(--text-secondary); }
.shoot-confirm__prev { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-soft); }
.shoot-confirm details { margin-bottom: var(--space-4); }
.shoot-confirm summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-secondary); padding: 6px 0; }

.round-note { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 var(--space-4); }
.round-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px var(--space-3); margin-bottom: var(--space-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.round-row:active { opacity: 0.85; }
.round-row img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.round-row__body { flex: 1; min-width: 0; }
.round-row__name { display: block; font-family: var(--font-mincho); font-weight: 700; font-size: 14.5px; }
.round-row__sub { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.round-row__cam { color: var(--primary); }
.round-row__cam .icon { width: 24px; height: 24px; }
.round-row.is-done { background: var(--secondary-soft); }

.undo-bar { position: fixed; left: 50%; bottom: calc(var(--nav-height) + 14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: var(--plate); color: var(--on-plate); padding: 8px 8px 8px 20px; border-radius: 999px; font-size: 13.5px; z-index: 55; box-shadow: var(--shadow); max-width: calc(var(--max-width) - 24px); }
.undo-bar button { min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--brass-on-dark); color: var(--primary-strong); font-weight: 700; font-size: 13px; }
.rediag-line__btn { display: inline-flex; background: none; border: 0; padding: 0; cursor: pointer; }
.photo-grid__missing { aspect-ratio: 1/1; background: var(--surface-soft); border-radius: var(--radius-sm); }
.rediag-chip--unsent { background: var(--surface-soft); color: var(--text-secondary); border-style: dashed; }

/* 表紙にする（v40）：写真タブの小さな操作。警告色は使わない */
.cover-btn { margin-top: 6px; width: 100%; min-height: 32px; border: 1px solid var(--border, #d9d4c8); background: var(--surface-soft); color: var(--text-primary); border-radius: var(--radius-sm); font-size: 11px; }
.cover-now { display: block; margin-top: 6px; text-align: center; font-size: 10.5px; color: var(--text-muted); }
.cover-reset { margin-bottom: 12px; }

/* 相手の端末で登録した診断待ち（写真は撮った端末にだけある）の枠 */
.pending-nophoto { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface-soft); color: var(--text-muted); font-size: 12px; aspect-ratio: 1/1; border-radius: var(--radius-sm); }
.diagnose-hero .pending-nophoto { aspect-ratio: 4/3; width: 100%; }
.pending-nophoto .icon { width: 28px; height: 28px; }
