/*
 * 共通ベーススタイル（ログイン画面・App Shell実装画面の両方で読み込む）
 * 出典: reference/mockups/ibemaru_mockup.html の :root 変数・body・.wrap・.btn系（1〜36, 233〜243行付近）
 *       .grid / .tile系（117〜172行付近）
 *       .section-block / .section-title / .section-title-row（141〜150行付近）
 *       .metric-card系（121〜129行付近、ダッシュボードのポイント残高カード等で使用）
 */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-muted: #eeece5;
  --border: #ddd9cf;
  --text: #2c2c2a;
  --text-secondary: #6b6a62;
  --text-muted: #9a988e;
  --accent: #185fa5;
  --accent-bg: #e6f1fb;
  --warning: #854f0b;
  --warning-bg: #faeeda;
  --danger: #a32d2d;
  --danger-bg: #f8e6e6;
  --success: #1f7a4d;
  --success-bg: #e5f3ea;
  --radius: 8px;
  --radius-lg: 12px;
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  padding: 24px;
}
.wrap { max-width: 720px; margin: 0 auto; position: relative; }
h1 { font-size: 18px; margin: 0 0 4px; }
.note { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 12px; }

.btn {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 500;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-outline { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }

.hidden { display: none; }

.grid { display: grid; gap: 12px; margin-bottom: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.tile {
  position: relative;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
}
.tile-icon { font-size: 18px; margin-bottom: 8px; display: block; }
.tile-title { font-weight: 500; font-size: 14px; margin: 0 0 2px; }
.tile-sub { font-size: 12px; color: var(--text-secondary); margin: 0; }
.tile-status { font-size: 12px; display: flex; align-items: center; gap: 4px; margin: 0; }
.tile-add {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; color: var(--text-secondary); text-align: center;
}
.tile-badge {
  position: absolute; top: 10px; right: 10px; font-size: 11px;
  padding: 2px 8px; border-radius: var(--radius);
  background: var(--warning-bg); color: var(--warning);
}
.tile-coming-soon {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.metric-card {
  background: var(--surface-muted);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
}
#dashboard-points-card { background: var(--surface); }
.metric-label { font-size: 13px; color: var(--text-secondary); margin: 0 0 4px; }
.metric-value { font-size: 24px; font-weight: 500; margin: 0 0 8px; }
.metric-link { font-size: 12px; color: var(--accent); margin: 0; }

.section-block { margin-bottom: 24px; }
.section-title-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.section-title { font-size: 14px; font-weight: 500; margin: 0; }
