    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', Georgia, serif;
      --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;

      --navy: #1E3A5F;
      --gold: #C08010;
      --gold-badge: #D4AF37;
      --gold-accent: #c9a84c;
      --gold-light: #e8d08a;
      --gold-dark: #8B5E00;
      --green: #3B5A3E;

      --bg: #faf8f3;
      --bg-card: #ffffff;
      --bg-green: #eef1ea;
      --bg-cream: #f8f6ee;
      --bg-blue: #eef2f8;
      --bg-icon: #f0f4f9;

      --text: #0f172a;
      --text-strong: #1E3A5F;
      --text-sub: #334155;
      --text-mid: #475569;
      --text-muted: #64748b;

      --border: #e2e8f0;
      --border-warm: #f0e8d8;

      --radius-sm: 8px;
      --radius-md: 16px;
      --radius-lg: 24px;
      --radius-full: 9999px;

      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
      --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
      --shadow-lg: 0 16px 40px rgba(139, 94, 0, 0.10);

      --member-max-width: 1022px;

      --fs-page-title: 24px;
      --fs-section-title: 19.2px;
      --fs-card-title: 16px;
      --fs-button: 14px;
      --fs-body: 12px;
      --fs-note: 12px;

      /* 既存セレクター互換用。値は確定トークンに統一する。 */
      --navy-dark: var(--gold-dark);
      --navy-mid: var(--navy);
      --danger: var(--gold-dark);
      --success: var(--green);
      --text-main: var(--text);
      --radius: var(--radius-full);
      --transition: 0.25s ease;
    }

    body {
      font-family: var(--font-sans);
      font-size: var(--fs-body);
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      background-image:
        radial-gradient(circle at 8% 12%, var(--bg-blue) 0 130px, transparent 131px),
        radial-gradient(circle at 94% 18%, var(--border-warm) 0 150px, transparent 151px),
        radial-gradient(circle at 74% 88%, var(--bg-green) 0 180px, transparent 181px);
      background-repeat: no-repeat;
      background-attachment: fixed;
    }

    /* ══ ヘッダー ══════════════════════════════════════════════ */
    .header {
      background: var(--bg);
      padding: 0 32px;
      height: 56px;
      display: flex;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: none;
      border-bottom: 1px solid var(--border-warm);
    }
    .header::after {
      display: none;
    }
    .header-brand {
      display: flex;
      align-items: center;
      gap: 14px;
      flex: 1;
      text-decoration: none;
    }
    .header-logo {
      height: 32px;
      width: auto;
      object-fit: contain;
    }
    .header-brand-text {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }
    .header-brand-name {
      font-family: var(--font-serif);
      font-size: var(--fs-note);
      font-weight: 600;
      color: var(--navy);
      letter-spacing: 0.08em;
    }
    .header-brand-sub {
      font-family: var(--font-sans);
      font-size: var(--fs-note);
      color: var(--text-muted);
      letter-spacing: 0.15em;
    }
    .header-logout {
      font-family: var(--font-sans);
      font-size: var(--fs-note);
      color: var(--text-sub);
      background: transparent;
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      padding: 6px 14px;
      cursor: pointer;
      text-decoration: none;
      transition: all var(--transition);
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .header-logout:hover {
      border-color: var(--navy);
      color: var(--navy);
      background: transparent;
    }
    .header-back {
      font-size: 12px;
      color: var(--text-sub);
      background: transparent;
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      padding: 6px 14px;
      text-decoration: none;
      transition: all var(--transition);
      display: flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
    }
    .header-back:hover {
      border-color: var(--navy);
      color: var(--navy);
      background: transparent;
    }

    /* ══ レイアウト ════════════════════════════════════════════ */
    .container {
      max-width: var(--member-max-width);
      margin: 0 auto;
      padding: 40px 20px 100px;
    }

    /* ══ ゴールドデバイダー ═════════════════════════════════════ */
    .gold-divider {
      height: 1px;
      background: linear-gradient(to right, transparent, var(--gold), transparent);
      margin: 36px 0;
      border: none;
    }

    /* ══ ウェルカムバー（コンパクト横長） ═══════════════════════ */
    .welcome-bar {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      padding: 10px 20px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-left: 3px solid var(--navy);
      border-radius: 0 var(--radius-md) var(--radius-md) 0;
      margin-bottom: 28px;
      box-shadow: var(--shadow-sm);
      max-width: 100%;
    }
    .welcome-name {
      font-family: var(--font-serif);
      font-size: 15px;
      font-weight: 600;
      color: var(--navy);
    }
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 700;
      padding: 5px 18px;
      border-radius: 2px;
      letter-spacing: 0.05em;
    }
    /* active=顧問契約 → ゴールド×ネイビー */
    .status-active {
      background: var(--navy);
      color: var(--gold);
      border: 1px solid var(--gold-dark);
    }
    /* subscription=サブスク → ゴールドライン */
    .status-subscription {
      background: transparent;
      color: var(--gold-dark);
      border: 1px solid var(--gold);
    }

    /* ══ セクション見出し ════════════════════════════════════ */
    .section-header {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
      row-gap: 8px;
      margin-bottom: 20px;
    }
    /* ガイドボタンは常に右端 / 折り返し時は2行目右端 */
    .section-header .money-guide-btn {
      margin-left: auto;
    }
    @media (max-width: 640px) {
      .section-header .money-guide-btn {
        /* 折り返したときタイトル下に揃える */
        margin-left: 28px;
      }
    }
    .section-header-line {
      width: 3px;
      height: 20px;
      background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
      border-radius: 2px;
      flex-shrink: 0;
    }
    .section-title {
      font-family: var(--font-serif);
      font-size: var(--fs-section-title);
      font-weight: 600;
      color: var(--navy);
      letter-spacing: 0.05em;
    }
    .section-title-icon {
      color: var(--gold);
      display: flex;
      align-items: center;
    }

    /* ══ 受講カード ═════════════════════════════════════════ */
    .courses-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 8px;
    }
    .course-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-top: 3px solid var(--navy);
      border-radius: 0 0 var(--radius-md) var(--radius-md);
      padding: 22px 24px;
      box-shadow: var(--shadow-sm);
      transition: box-shadow var(--transition), transform var(--transition);
      position: relative;
    }
    .course-card::before {
      content: '';
      position: absolute;
      top: -1px;
      left: 20px;
      right: 20px;
      height: 1px;
      background: var(--gold);
      opacity: 0.4;
    }
    .course-card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }
    .course-card.expired {
      opacity: 0.55;
      border-top-color: var(--text-muted);
    }
    .course-card.expired::before { opacity: 0; }
    .course-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }
    .course-type-label {
      font-size: 10px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 2px;
      letter-spacing: 0.05em;
    }
    .type-tsukutsuku {
      background: var(--navy);
      color: var(--gold);
    }
    .type-general {
      background: #EFF3FA;
      color: var(--navy);
    }
    .validity-badge {
      font-size: 11px;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 2px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .valid {
      color: #166534;
      background: #F0FDF4;
      border: 1px solid #BBF7D0;
    }
    .expired-badge {
      background: #F3F4F6;
      color: #9CA3AF;
      border: 1px solid #E5E7EB;
    }
    .course-level {
      font-family: var(--font-serif);
      font-size: 19px;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 8px;
    }
    .course-meta {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 18px;
      line-height: 1.8;
    }
    .review-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: 100%;
      text-align: center;
      background: var(--navy);
      color: var(--gold);
      border: 1px solid var(--gold-dark);
      border-radius: var(--radius-sm);
      padding: 10px 0;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: all var(--transition);
      letter-spacing: 0.03em;
    }
    .review-btn:hover {
      background: var(--navy-dark);
      color: #fff;
    }
    .review-btn.disabled {
      background: #F3F4F6;
      color: var(--text-muted);
      border-color: #E5E7EB;
      cursor: not-allowed;
      pointer-events: none;
    }

    /* ══ 認証エラー ════════════════════════════════════════ */
    .auth-error {
      display: none;
      max-width: 480px;
      margin: 80px auto;
      text-align: center;
      padding: 48px 32px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-top: 3px solid var(--navy);
      border-radius: 0 0 var(--radius-md) var(--radius-md);
      box-shadow: var(--shadow-md);
    }
    .auth-error-icon {
      width: 56px;
      height: 56px;
      background: rgba(30,58,95,0.06);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--navy);
      margin: 0 auto 16px;
    }
    .auth-error h2 {
      font-family: var(--font-serif);
      font-size: 18px;
      color: var(--navy);
      margin-bottom: 10px;
    }
    .auth-error p {
      font-size: 13px;
      color: var(--text-sub);
      line-height: 1.8;
    }

    /* ══ ローディング / 空状態 ════════════════════════════ */
    .loading {
      text-align: center;
      padding: 60px 0;
      color: var(--text-muted);
      font-size: 14px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
    .empty-state {
      text-align: center;
      padding: 48px 0;
      color: var(--text-muted);
      font-size: 14px;
      background: var(--bg-card);
      border: 1px dashed var(--border);
      border-radius: var(--radius-md);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    /* ══ 困りごとセクション ══════════════════════════════ */
    .mc-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-top: 3px solid var(--navy);
      border-radius: 0 0 var(--radius-md) var(--radius-md);
      padding: 26px 28px;
      margin-bottom: 16px;
      box-shadow: var(--shadow-sm);
    }
    .mc-card-title {
      font-family: var(--font-serif);
      font-size: 14px;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 8px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border);
    }
    .mc-card-title-icon { color: var(--gold); }
    .mc-no-link {
      font-size: 13px;
      color: #92400e;
      background: #FFFBEB;
      border: 1px solid #FDE68A;
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .mc-textarea {
      width: 100%;
      min-height: 120px;
      padding: 13px 15px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-family: var(--font-sans);
      font-size: 14px;
      color: var(--text);
      resize: vertical;
      outline: none;
      transition: border-color var(--transition), box-shadow var(--transition);
      line-height: 1.7;
      background: var(--bg-card);
    }
    .mc-textarea:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
    }
    .mc-textarea::placeholder { color: var(--text-muted); }
    .mc-char-count {
      text-align: right;
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 4px;
    }
    .mc-char-count.over { color: var(--danger); }
    .mc-row {
      display: flex;
      gap: 12px;
      margin-top: 18px;
      flex-wrap: wrap;
      align-items: flex-start;
    }
    .mc-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-sub);
      margin-bottom: 7px;
      display: block;
      letter-spacing: 0.02em;
    }
    .mc-select {
      font-size: 13px;
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--bg-card);
      color: var(--text);
      outline: none;
      transition: border-color var(--transition);
      width: 100%;
      font-family: var(--font-sans);
    }
    .mc-select:focus { border-color: var(--gold); }
    .mc-urgency-group { display: flex; gap: 14px; flex-wrap: wrap; }
    .mc-urgency-radio {
      display: flex;
      align-items: center;
      gap: 7px;
      cursor: pointer;
      font-size: 13px;
      color: var(--text);
    }
    .mc-urgency-radio input { cursor: pointer; accent-color: var(--navy); }
    .mc-urgency-note {
      display: none;
      font-size: 12px;
      color: #92400e;
      background: #FFFBEB;
      border: 1px solid #FDE68A;
      border-radius: var(--radius-sm);
      padding: 9px 13px;
      margin-top: 9px;
      line-height: 1.65;
    }
    .mc-urgency-note.visible { display: block; }
    .mc-submit-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 22px;
    }
    .mc-btn-primary {
      background: var(--navy);
      color: var(--gold);
      border: 1px solid var(--gold-dark);
      border-radius: var(--radius-sm);
      padding: 10px 26px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      font-family: var(--font-sans);
      transition: all var(--transition);
      display: flex;
      align-items: center;
      gap: 7px;
      letter-spacing: 0.04em;
    }
    .mc-btn-primary:hover:not(:disabled) {
      background: var(--navy-dark);
      color: #fff;
    }
    .mc-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
    .mc-msg {
      display: none;
      font-size: 13px;
      padding: 4px 0;
    }
    .mc-msg.success { display: block; color: var(--success); }
    .mc-msg.error   { display: block; color: var(--danger); }

    .mc-concern-header {
      gap: 10px;
    }
    .mc-header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
    }
    .mc-toggle-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid var(--navy);
      border-radius: 4px;
      background: var(--navy);
      color: var(--gold);
      font-size: 12px;
      font-weight: 600;
      padding: 7px 14px;
      cursor: pointer;
      font-family: var(--font-sans);
      transition: background var(--transition), color var(--transition), border-color var(--transition);
      white-space: nowrap;
    }
    .mc-toggle-btn:hover { background: var(--navy-dark); color: #fff; }
    .mc-history-header {
      margin-bottom: 14px;
    }
    .mc-history-filters {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }
    .mc-history-filters-main {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .mc-filter-tab-muted {
      color: var(--text-muted);
      background: #fafafa;
    }
    .mc-filter-tab-muted.active {
      background: #f8fafc;
      color: var(--navy);
      border-color: var(--border);
    }
    .mc-concern-card {
      padding: 16px 18px;
    }
    .mc-card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }
    .mc-card-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
      line-height: 1.45;
      min-width: 0;
      word-break: break-word;
    }
    .mc-card-date {
      font-size: 11px;
      color: var(--text-muted);
      white-space: nowrap;
      flex-shrink: 0;
      padding-top: 1px;
    }
    .mc-card-badges {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }
    .mc-card-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 12px;
    }
    .mc-card-actions-left {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      flex-wrap: wrap;
    }
    .mc-delete-btn {
      position: static;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-muted);
      padding: 4px;
      line-height: 1;
      border-radius: 3px;
      transition: all 0.15s;
      margin-left: auto;
      flex-shrink: 0;
    }
    /* 投稿履歴 */
    .mc-history-header {
      margin-bottom: 14px;
    }
    .mc-history-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--navy);
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .mc-history-filters {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }
    .mc-filter-tab {
      font-size: 12px;
      padding: 4px 14px;
      border: 1px solid var(--border);
      border-radius: 2px;
      background: var(--bg-card);
      color: var(--text-sub);
      cursor: pointer;
      transition: all 0.15s;
      letter-spacing: 0.02em;
    }
    .mc-filter-tab.active {
      background: var(--navy);
      color: var(--gold);
      border-color: var(--navy);
    }
    .mc-filter-tab:hover:not(.active) {
      background: rgba(30,58,95,0.05);
      border-color: var(--navy);
      color: var(--navy);
    }
    .mc-concern-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-left: 3px solid var(--navy);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: 18px 20px;
      margin-bottom: 12px;
      position: relative;
      box-shadow: var(--shadow-sm);
      transition: box-shadow var(--transition);
    }
    .mc-concern-card:hover { box-shadow: var(--shadow-md); }
    .mc-concern-card.resolved {
      opacity: 0.65;
      border-left-color: var(--text-muted);
      background: #FAFAF8;
    }
    .mc-concern-meta {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 10px;
      font-size: 12px;
      color: var(--text-muted);
    }
    .mc-badge {
      font-size: 10px;
      font-weight: 700;
      padding: 2px 9px;
      border-radius: 2px;
      letter-spacing: 0.03em;
    }
    .mc-badge-open {
      background: var(--navy);
      color: var(--gold);
    }
    .mc-badge-resolved {
      background: #F0FDF4;
      color: #166534;
      border: 1px solid #BBF7D0;
    }
    .mc-badge-auto {
      background: #F3F4F6;
      color: #6b7280;
    }
    .mc-badge-urgent {
      background: #FEF3C7;
      color: #92400e;
    }
    .mc-badge-normal {
      background: #F3F4F6;
      color: var(--text-muted);
    }
    .mc-concern-body {
      font-size: 14px;
      color: var(--text);
      line-height: 1.8;
      white-space: pre-wrap;
      margin-bottom: 12px;
    }
    .mc-response-block {
      background: #F8FBF9;
      border: 1px solid #BBF7D0;
      border-left: 3px solid #16a34a;
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: 12px 16px;
      font-size: 13px;
      color: #166534;
      margin-bottom: 10px;
      line-height: 1.65;
    }
    .mc-response-label {
      font-weight: 700;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .mc-response-missing {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 10px;
      padding: 10px 14px;
      background: #FAFAF8;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      font-style: italic;
    }
    .mc-resolve-btn {
      font-size: 12px;
      color: #166534;
      background: none;
      border: 1px solid #BBF7D0;
      border-radius: var(--radius-sm);
      padding: 5px 14px;
      cursor: pointer;
      font-family: var(--font-sans);
      transition: all 0.15s;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .mc-resolve-btn:hover { background: #F0FDF4; }
    .mc-resolved-btn {
      font-size: 12px;
      color: var(--text-muted);
      background: none;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 5px 14px;
      cursor: default;
    }
    .mc-resolve-form { margin-top: 10px; }
    .mc-resolve-textarea {
      width: 100%;
      min-height: 64px;
      font-size: 13px;
      padding: 9px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-family: var(--font-sans);
      resize: vertical;
      outline: none;
      margin-bottom: 8px;
      transition: border-color var(--transition);
    }
    .mc-resolve-textarea:focus { border-color: var(--gold); }
    .mc-resolve-form-actions { display: flex; gap: 8px; }
    .mc-resolve-cancel {
      font-size: 12px;
      padding: 6px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--bg-card);
      cursor: pointer;
      font-family: var(--font-sans);
      color: var(--text-sub);
    }
    .mc-resolve-submit {
      font-size: 12px;
      padding: 6px 14px;
      border: none;
      border-radius: var(--radius-sm);
      background: var(--navy);
      color: var(--gold);
      cursor: pointer;
      font-family: var(--font-sans);
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .mc-delete-btn {
      position: static;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-muted);
      padding: 4px;
      line-height: 1;
      border-radius: 3px;
      transition: all 0.15s;
      margin-left: auto;
      flex-shrink: 0;
    }
    .mc-delete-btn:hover { color: var(--danger); background: #FEF2F2; }
    .mc-empty {
      font-size: 14px;
      color: var(--text-muted);
      padding: 32px 0;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }

    /* ══ フッター風ネイビーバー ════════════════════════════ */
    .page-footer {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--navy);
      padding: 8px 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 50;
    }
    .page-footer-brand {
      font-family: var(--font-serif);
      font-size: var(--fs-card-title);
      color: #ffffff;
      letter-spacing: 0.1em;
    }
    .page-footer-sub {
      font-family: var(--font-sans);
      font-size: var(--fs-note);
      color: #ffffff;
      opacity: 0.75;
      letter-spacing: 0.1em;
    }

    /* ══ お金の見える化セクション ═══════════════════════════════ */
    .money-no-settings {
      text-align: center; padding: 28px 16px;
    }
    .money-no-settings p { font-size: 13px; color: var(--text-sub); line-height: 1.8; margin-bottom: 16px; }
    .money-setup-btn {
      display: inline-flex; align-items: center; gap: 7px;
      background: var(--navy); color: var(--gold); border: 1px solid var(--gold-dark);
      border-radius: var(--radius-sm); padding: 9px 20px;
      font-size: 13px; font-weight: 600; font-family: var(--font-sans);
      text-decoration: none; transition: all var(--transition);
    }
    .money-setup-btn:hover { background: var(--navy-dark); color: #fff; }
    .money-footer {
      display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
      font-size: 12px; color: var(--text-muted);
    }
    .money-footer a {
      color: var(--navy); text-decoration: none; font-weight: 600; font-size: 12px;
      display: inline-flex; align-items: center; gap: 3px;
    }
    .money-footer a:hover { text-decoration: underline; }
    /* プロフィール編集リンク */
    .profile-edit-link {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 13px; font-weight: 600; color: var(--gold-dark);
      text-decoration: none; white-space: nowrap;
      transition: color 0.2s;
    }
    .profile-edit-link:hover { color: var(--navy); }
    .profile-edit-help-wrap {
      position: relative; display: inline-flex; align-items: center;
    }
    .profile-edit-help-icon {
      color: var(--text-muted); cursor: pointer; display: flex; align-items: center;
      transition: color 0.2s;
    }
    .profile-edit-help-icon:hover { color: var(--navy); }
    .profile-edit-tooltip {
      display: none; position: absolute; right: 0; left: auto;
      top: calc(100% + 8px); width: 220px; padding: 8px 12px;
      background: var(--navy); color: #fff; font-size: 11px; line-height: 1.6;
      border-radius: 6px; white-space: normal; z-index: 200;
      box-shadow: 0 4px 16px rgba(30,58,95,0.2);
      pointer-events: none;
    }
    .profile-edit-tooltip::before {
      content: ''; position: absolute; bottom: 100%; right: 3px; left: auto;
      border: 5px solid transparent;
      border-bottom-color: var(--navy);
    }
    .profile-edit-help-wrap:hover .profile-edit-tooltip { display: block; }
    /* お金セクション ヘッダーアクション群 */
    .money-section-header { flex-wrap: wrap; row-gap: 6px; }
    .money-header-actions {
      display: flex; align-items: center; gap: 8px;
      margin-left: auto;
    }
    @media (max-width: 640px) {
      .money-header-actions {
        margin-left: 0;
        width: 100%;
        padding-left: 28px; /* section-header-line(3px) + gap(12px) + icon(~13px) = 28px 相当 */
      }
    }
    /* 使い方ガイドボタン */
    .money-guide-btn {
      margin-left: auto;
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 12px; font-weight: 600; font-family: inherit;
      color: var(--navy); background: rgba(201,168,76,0.12);
      border: 1px solid rgba(201,168,76,0.4);
      padding: 5px 12px; border-radius: 6px; cursor: pointer;
      white-space: nowrap; transition: background .2s, border-color .2s;
      flex-shrink: 0;
    }
    .money-guide-btn:hover { background: rgba(201,168,76,0.22); border-color: var(--gold); }
    /* 投稿詳細ドロワー */
    #concernDetailOverlay {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,0.35); z-index: 300;
      opacity: 0; transition: opacity .25s;
    }
    #concernDetailDrawer {
      position: fixed; top: 0; right: 0; height: 100vh;
      width: 420px; max-width: 92vw;
      background: var(--bg-card); box-shadow: -4px 0 28px rgba(0,0,0,0.18);
      z-index: 301; transform: translateX(100%);
      transition: transform .28s cubic-bezier(.4,0,.2,1);
      overflow-y: auto; display: flex; flex-direction: column;
    }
    /* 投稿一覧ラベル（PC：右端 / モバイル：コンパクト行の上） */
    .mc-older-toggle-btn {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 12px; font-weight: 600; color: var(--navy);
      background: none; border: none; cursor: pointer;
      font-family: inherit; padding: 0; white-space: nowrap; flex-shrink: 0;
      transition: color .2s;
    }
    .mc-older-toggle-btn:hover { color: var(--gold-dark); }
    .mc-older-hint { font-size: 11px; font-weight: 400; color: var(--text-muted); }
    /* 使い方ガイド ドロワー（汎用） */
    #guideOverlay {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,0.35); z-index: 300;
      opacity: 0; transition: opacity .25s;
    }
    #guideDrawer {
      position: fixed; top: 0; right: 0; height: 100vh;
      width: 360px; max-width: 92vw;
      background: var(--bg-card); box-shadow: -4px 0 28px rgba(0,0,0,0.18);
      z-index: 301; transform: translateX(100%);
      transition: transform .28s cubic-bezier(.4,0,.2,1);
      overflow-y: auto; display: flex; flex-direction: column;
    }
    .guide-header {
      position: sticky; top: 0; background: var(--navy);
      padding: 16px 20px; display: flex; align-items: center; gap: 10px;
      color: #E8D5A0; flex-shrink: 0;
    }
    .guide-header-title { font-size: 15px; font-weight: 700; font-family: var(--font-serif); }
    .guide-close-btn {
      margin-left: auto; background: none; border: none;
      color: rgba(232,213,160,0.7); font-size: 18px; cursor: pointer;
      padding: 2px 6px; line-height: 1; transition: color .2s;
    }
    .guide-close-btn:hover { color: #E8D5A0; }
    .guide-body { padding: 20px; flex: 1; }
    .guide-section { margin-bottom: 22px; }
    .guide-section-title {
      font-size: 13px; font-weight: 700; color: var(--navy);
      margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
    }
    .guide-section-title::before {
      content: ''; display: inline-block; width: 3px; height: 14px;
      background: var(--gold); border-radius: 2px; flex-shrink: 0;
    }
    .guide-section p { font-size: 13px; color: var(--text-sub); line-height: 1.75; margin: 0; }
    .guide-tip {
      background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.25);
      border-radius: 8px; padding: 10px 14px; margin-top: 8px;
      font-size: 12px; color: var(--gold-dark); line-height: 1.7;
    }
    .guide-tip::before { content: '💡 '; }
    .guide-divider {
      border: none; border-top: 1px solid var(--border); margin: 16px 0;
    }

    /* 状態サマリーバー */
    .money-status-bar {
      display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px;
    }
    .money-status-bar.two-col { grid-template-columns: 1fr 1fr; }
    .money-status-item {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: var(--radius-md); padding: 14px 16px;
      box-shadow: var(--shadow-sm);
    }
    .money-status-label { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
    .money-status-value { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
    .money-status-value.unset { font-size: 12px; font-weight: 400; color: var(--text-muted); }
    .money-status-value.warn { color: var(--gold-dark); }
    .money-status-value.danger { color: var(--danger); }
    .money-status-value.safe { color: var(--success); }
    .money-status-sub { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
    .money-status-link {
      display: inline-flex; align-items: center; gap: 3px;
      font-size: 11px; font-weight: 600; color: var(--navy); text-decoration: none; margin-top: 8px;
    }
    .money-status-link:hover { text-decoration: underline; }
    .fc-both-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
    .fc-both-label { font-size: 11px; color: var(--text-muted); min-width: 52px; }
    .fc-both-val { font-size: 13px; font-weight: 600; color: var(--navy); }
    .fc-both-val.danger { color: var(--danger); }
    .fc-both-val.warn { color: #d97706; }
    .fc-both-val.safe { color: var(--success); }
    .fc-both-val.unset { font-size: 11px; font-weight: 400; color: var(--text-muted); }
    .fc-both-val.short-safe { white-space: nowrap; }
    .money-diag-breakdown { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
    /* 診断カード */
    .money-diag-section-label {
      font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted);
      text-transform: uppercase; margin-bottom: 10px;
    }
    .money-diag-card {
      background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--navy);
      border-radius: 0 var(--radius-md) var(--radius-md) 0;
      padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
    }
    .money-diag-header {
      display: flex; align-items: center; gap: 6px;
      font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 12px;
    }
    .money-diag-grid { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
    .money-diag-item { display: flex; flex-direction: column; gap: 2px; }
    .money-diag-label { font-size: 10px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; }
    .money-diag-value { font-size: 15px; font-weight: 700; color: var(--navy); }
    .money-diag-value.unset { font-size: 12px; font-weight: 400; color: var(--text-muted); }
    .money-diag-value.covered { font-size: 13px; font-weight: 600; color: var(--success); }
    .money-diag-btn {
      display: inline-flex; align-items: center; gap: 4px; font-size: 12px;
      color: var(--navy); border: 1px solid var(--navy);
      border-radius: 3px; padding: 5px 12px; font-weight: 600; text-decoration: none;
      transition: all var(--transition);
    }
    .money-diag-btn:hover { background: var(--navy); color: white; }
    .money-diag-grid-wrap { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .money-diag-grid-wrap.two-col { grid-template-columns: 1fr 1fr; }
    .money-diag-grid-wrap .money-diag-card { margin-bottom: 0; }

    /* ══ 次にやること ════════════════════════════════════════════ */
    #nextTodoList {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
    .ntd-item {
      display: flex;
      width: fit-content;
      max-width: 100%;
      gap: 12px;
      align-items: flex-start;
      padding: 11px 14px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-left: 3px solid var(--navy);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      margin-bottom: 8px;
      box-shadow: var(--shadow-sm);
    }
    .ntd-item.in-progress {
      border-left-color: var(--gold);
    }
    .ntd-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 1.5px solid #B8B8B8;
      flex-shrink: 0;
      margin-top: 5px;
    }
    .ntd-dot.in-progress {
      border-color: var(--gold);
    }
    .ntd-task {
      font-size: 14px;
      color: var(--text);
      line-height: 1.6;
      flex: 0 1 auto;
    }
    .ntd-due {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 3px;
    }
    .ntd-more-link {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 13px;
      font-weight: 700;
      color: var(--navy);
      text-decoration: underline;
      text-underline-offset: 2px;
      margin-top: 6px;
      padding: 4px 0;
      cursor: pointer;
      background: none;
      border: none;
      font-family: inherit;
    }
    .ntd-more-link:hover { color: var(--gold-dark); }

    /* ══ モバイル対応 ══════════════════════════════════════════ */
    @media (max-width: 600px) {
      body {
        background-image: none;
      }
      .header {
        padding: 0 16px;
        height: 56px;
      }
      .header-logo { height: 30px; }
      .header-brand-name { font-size: var(--fs-note); }
      .header-brand-sub  { font-size: var(--fs-note); }
      .container {
        padding: 24px 16px 100px;
      }
      .welcome-bar {
        padding: 12px 16px;
        gap: 10px;
      }
      .welcome-name {
        font-size: 14px;
      }
      .courses-grid {
        grid-template-columns: 1fr;
        gap: 8px;
      }
      .course-card {
        padding: 14px 16px;
      }
      .course-card-header {
        margin-bottom: 10px;
      }
      .course-meta {
        margin-bottom: 12px;
      }
      .validity-badge {
        font-size: 10px;
        padding: 2px 8px;
      }
      .money-section-header {
        display: grid;
        grid-template-columns: 3px auto 1fr;
        align-items: center;
        column-gap: 12px;
        row-gap: 12px;
      }
      .money-section-header .section-title { min-width: 0; }
      .money-header-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        width: 100%;
        margin-left: 0;
        padding-left: 0;
      }
      .profile-edit-link {
        min-width: 0;
        white-space: normal;
        line-height: 1.5;
      }
      .profile-edit-help-wrap { display: none; }
      .money-guide-btn {
        margin-left: 0;
        justify-self: end;
        max-width: 100%;
      }
      .money-status-bar,
      .money-status-bar.two-col {
        grid-template-columns: 1fr;
        gap: 8px;
      }
      .money-status-item {
        padding: 12px 14px;
        min-height: 0;
      }
      .money-status-label { margin-bottom: 4px; }
      .money-status-value {
        font-size: 17px;
        line-height: 1.35;
        overflow-wrap: anywhere;
      }
      .money-status-sub { font-size: 12px; line-height: 1.55; }
      #statusForecastBoth {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }
      .fc-both-row {
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 0;
      }
      .fc-both-label {
        min-width: 0;
        font-size: 12px;
      }
      .fc-both-val {
        font-size: 14px;
        white-space: nowrap;
      }      .mc-card {
        padding: 20px 18px;
      }
      .mc-row {
        flex-direction: column;
        gap: 16px;
      }
      .mc-submit-row {
        flex-direction: column;
        align-items: stretch;
      }
      .mc-btn-primary {
        justify-content: center;
      }
      .mc-concern-card {
        padding: 14px 16px;
      }
      .page-footer {
        padding: 8px 16px;
      }
      .page-footer-brand { font-size: var(--fs-card-title); }
      .page-footer-sub   { font-size: var(--fs-note); }
      .mc-compact-header { font-size: 12px; }
      .mc-compact-preview { max-width: 180px; }
      .money-diag-grid-wrap.two-col {
        grid-template-columns: 1fr;
      }
    }

    /* ══ 投稿履歴コンパクト表示 ══════════════════════════════ */
    .mc-history-subtitle {
      font-size: 12px;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
      letter-spacing: 0.03em;
    }
    .mc-compact-row {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-left: 3px solid var(--navy);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: 10px 16px;
      margin-bottom: 6px;
      cursor: pointer;
      transition: box-shadow var(--transition), background var(--transition);
    }
    .mc-compact-row:hover {
      box-shadow: var(--shadow-sm);
      background: rgba(30,58,95,0.02);
    }
    .mc-compact-row.resolved {
      opacity: 0.6;
      border-left-color: var(--text-muted);
    }
    .mc-compact-header {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      font-size: 13px;
    }
    .mc-compact-date {
      font-size: 12px;
      color: var(--text-muted);
      flex-shrink: 0;
    }
    .mc-compact-preview {
      color: var(--text);
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mc-compact-chevron {
      color: var(--text-muted);
      font-size: 12px;
      flex-shrink: 0;
    }
    .mc-compact-cat {
      font-size: 10px;
      color: var(--text-muted);
      background: #F3F4F6;
      padding: 1px 8px;
      border-radius: 2px;
      flex-shrink: 0;
    }
    .mc-compact-detail {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid var(--border);
    }

    /* ══ 面談カードセクション ════════════════════════════════════ */
    .mt-empty {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text-muted);
      font-size: 13px;
      padding: 24px 0;
      justify-content: center;
    }
    .mt-current-issues-box {
      background: var(--bg-card);
      border: 1px solid var(--gold-light);
      border-left: 4px solid var(--gold);
      border-radius: var(--radius-md);
      padding: 16px 20px;
      margin-bottom: 20px;
    }
    .mt-current-issues-title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gold-dark);
      margin-bottom: 12px;
    }
    .mt-issue-tags-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .mt-issue-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 500;
      border: 1px solid;
    }
    .mt-issue-tag.in_progress {
      background: rgba(201,168,76,0.1);
      border-color: var(--gold);
      color: var(--gold-dark);
    }
    .mt-issue-tag.waiting_client {
      background: rgba(30,58,95,0.08);
      border-color: var(--navy);
      color: var(--navy);
    }
    .mt-issue-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .mt-issue-tag.in_progress .mt-issue-dot   { background: var(--gold); }
    .mt-issue-tag.waiting_client .mt-issue-dot { background: var(--navy); }
    .mt-meeting-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      margin-bottom: 12px;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    .mt-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 18px 12px;
      cursor: pointer;
      user-select: none;
      gap: 10px;
    }
    .mt-card-header:hover { background: rgba(30,58,95,0.02); }
    .mt-card-date {
      font-size: 12px;
      color: var(--text-muted);
      flex-shrink: 0;
    }
    .mt-card-themes {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      flex: 1;
    }
    .mt-theme-pill {
      background: var(--navy);
      color: var(--gold-light);
      font-size: 11px;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 12px;
      letter-spacing: 0.02em;
    }
    .mt-card-chevron {
      color: var(--text-muted);
      font-size: 13px;
      flex-shrink: 0;
      transition: transform 0.2s;
      display: inline-block;
    }
    .mt-card-chevron.open { transform: rotate(90deg); }
    .mt-card-body {
      border-top: 1px solid var(--border);
      padding: 16px 18px;
      display: none;
    }
    .mt-card-body.open { display: block; }
    .mt-subsection { margin-bottom: 16px; }
    .mt-subsection:last-child { margin-bottom: 0; }
    .mt-subsection-title {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 8px;
    }
    .mt-decision-item {
      font-size: 13px;
      line-height: 1.7;
      color: var(--text);
      padding: 3px 0 3px 14px;
      position: relative;
    }
    .mt-decision-item::before {
      content: '▸';
      position: absolute;
      left: 0;
      color: var(--gold);
      font-size: 10px;
      top: 5px;
    }
    .mt-action-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 6px 0;
      font-size: 13px;
      border-bottom: 1px solid var(--border);
    }
    .mt-action-row:last-child { border-bottom: none; }
    .mt-action-text { flex: 1; line-height: 1.6; color: var(--text); }
    .mt-due { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
    .mt-action-status-badge {
      font-size: 10px;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 10px;
      flex-shrink: 0;
      margin-top: 2px;
      white-space: nowrap;
    }
    .mt-action-status-badge.not_started { background: #F3F4F6; color: var(--text-muted); }
    .mt-action-status-badge.in_progress { background: rgba(201,168,76,0.15); color: var(--gold-dark); }
    .mt-action-status-badge.done        { background: rgba(22,163,74,0.12); color: var(--success); }
    .mt-status-select {
      font-size: 11px;
      font-weight: 600;
      padding: 3px 6px;
      border-radius: 6px;
      border: 1px solid var(--border);
      cursor: pointer;
      font-family: inherit;
      flex-shrink: 0;
      -webkit-tap-highlight-color: transparent;
      appearance: auto;
    }
    .mt-status-select.not_started { background: #F3F4F6; color: var(--text-muted); border-color: #E5E7EB; }
    .mt-status-select.in_progress { background: rgba(201,168,76,0.15); color: var(--gold-dark); border-color: #C9A84C; }
    .mt-status-select.done        { background: rgba(22,163,74,0.12); color: var(--success); border-color: #16a34a; }
    .mt-next-check-item {
      font-size: 13px;
      color: var(--text-sub);
      padding: 3px 0 3px 16px;
      position: relative;
      line-height: 1.6;
    }
    .mt-next-check-item::before {
      content: '?';
      position: absolute;
      left: 0;
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 700;
      top: 4px;
    }
    .mt-history-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* ══ 体験モードセクション（Aステータス） ═══════════════════════ */
    .trial-cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 16px;
    }
    @media (max-width: 640px) {
      .trial-cards-grid { grid-template-columns: 1fr; }
    }
    .trial-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-top: 3px solid var(--navy);
      border-radius: 0 0 var(--radius-md) var(--radius-md);
      padding: 22px 18px 18px;
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      transition: box-shadow var(--transition), transform var(--transition);
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .trial-card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }
    .trial-card-icon {
      width: 40px; height: 40px; flex-shrink: 0;
      background: rgba(201,168,76,0.12); border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      color: var(--gold);
    }
    .trial-card-title {
      font-family: var(--font-serif);
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
      line-height: 1.45;
    }
    .trial-card-desc {
      font-size: 12px;
      color: var(--text-sub);
      line-height: 1.6;
      flex: 1;
    }
    .trial-card-btn {
      margin-top: 6px;
      font-size: 12px;
      font-weight: 600;
      color: var(--gold-dark);
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .trial-card-btn::after { content: ' →'; }

    /* ── 体験モード ドロワー ── */
    .trial-overlay {
      position: fixed; inset: 0;
      background: rgba(15,23,42,0.45);
      z-index: 200;
      display: none; opacity: 0;
      transition: opacity 0.28s ease;
    }
    .trial-drawer {
      position: fixed; top: 0; right: 0; bottom: 0;
      width: min(480px, 100vw);
      background: var(--bg-card);
      z-index: 201;
      display: flex; flex-direction: column;
      transform: translateX(100%);
      transition: transform 0.28s ease;
      overflow: hidden;
    }
    .trial-drawer-header {
      display: flex; align-items: center; gap: 10px;
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
      background: var(--navy);
      flex-shrink: 0;
    }
    .trial-drawer-title {
      font-family: var(--font-serif);
      font-size: 15px; font-weight: 600;
      color: var(--gold);
      flex: 1;
    }
    .trial-drawer-close {
      background: none; border: none; cursor: pointer;
      color: var(--gold-light); font-size: 18px; line-height: 1;
      padding: 2px 6px; border-radius: 4px;
    }
    .trial-drawer-close:hover { color: #fff; }
    .trial-banner {
      background: #FFF8E7;
      border-bottom: 1px solid #F0D080;
      padding: 10px 20px;
      font-size: 12px; color: #7A5800;
      line-height: 1.6; flex-shrink: 0;
    }
    .trial-banner strong { display: block; margin-bottom: 2px; font-weight: 700; }
    .trial-drawer-body {
      flex: 1; overflow-y: auto;
      padding: 20px;
    }
    .trial-cta-box {
      background: linear-gradient(135deg, #FFF8E7 0%, #FFF2C8 100%);
      border: 1px solid #E8D080;
      border-radius: var(--radius-md);
      padding: 16px 18px;
      margin-top: 20px;
    }
    .trial-cta-box p {
      font-size: 13px; color: #5C4200;
      line-height: 1.65; margin-bottom: 12px;
    }
    .trial-cta-link {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--navy);
      color: var(--gold);
      font-size: 13px; font-weight: 700;
      padding: 10px 20px; border-radius: var(--radius-sm);
      text-decoration: none;
      transition: background var(--transition);
    }
    .trial-cta-link:hover { background: var(--navy-dark); }

    /* 困りごと体験フォーム */
    .trial-concern-label {
      font-size: 12px; font-weight: 600; color: var(--navy);
      margin-bottom: 6px; display: block;
    }
    .trial-concern-textarea {
      width: 100%; box-sizing: border-box;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 10px 12px;
      font-size: 13px; line-height: 1.7;
      font-family: var(--font-sans);
      resize: vertical; min-height: 100px;
      color: var(--text);
      transition: border-color var(--transition);
    }
    .trial-concern-textarea:focus {
      outline: none; border-color: var(--navy);
    }
    .trial-concern-submit {
      display: inline-flex; align-items: center; gap: 7px;
      background: var(--navy); color: var(--gold);
      border: none; border-radius: var(--radius-sm);
      padding: 10px 22px; font-size: 13px; font-weight: 700;
      cursor: pointer; margin-top: 12px;
      transition: background var(--transition);
    }
    .trial-concern-submit:hover { background: var(--navy-dark); }
    .trial-concern-submit:disabled { opacity: 0.5; cursor: not-allowed; }
    .trial-ai-reply {
      background: #F0F4FF;
      border: 1px solid #C8D8F8;
      border-radius: var(--radius-md);
      padding: 14px 16px;
      font-size: 13px; line-height: 1.75;
      color: var(--text); white-space: pre-wrap;
      margin-top: 16px;
    }
    .trial-ai-reply-label {
      font-size: 11px; font-weight: 700; color: #3B5FC0;
      margin-bottom: 8px; display: block;
      letter-spacing: 0.05em;
    }

    /* ══ 予約・申込カード ════════════════════════════════════════ */
    .booking-card {
      display: inline-block;
      width: fit-content;
      max-width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-top: 3px solid var(--navy);
      border-radius: 0 0 var(--radius-md) var(--radius-md);
      padding: 22px 24px;
      box-shadow: var(--shadow-sm);
    }
    .booking-card-desc {
      font-size: 12px;
      color: var(--text-sub);
      line-height: 1.6;
      margin-bottom: 16px;
    }
    .booking-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    .booking-action {
      display: inline-block;
      width: fit-content;
      max-width: 100%;
      background: #F8F9FC;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 14px 16px;
    }
    .booking-action-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 4px;
    }
    .booking-action-desc {
      font-size: 12px;
      color: var(--text-sub);
      line-height: 1.6;
      margin-bottom: 10px;
    }
    .booking-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--navy);
      color: var(--gold);
      border: 1px solid var(--gold-dark);
      border-radius: var(--radius-sm);
      padding: 9px 18px;
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
      transition: all var(--transition);
      letter-spacing: 0.03em;
    }
    .booking-action-btn:hover {
      background: var(--navy-dark);
      color: #fff;
    }
    .booking-action--scheduled {
      background: linear-gradient(135deg, rgba(30,58,95,0.04), rgba(201,168,76,0.07));
      border: 1.5px solid rgba(201,168,76,0.4);
    }
    .booking-scheduled-row {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 18px;
    }
    .booking-scheduled-main {
      min-width: 0;
    }
    .booking-scheduled-date {
      font-size: 18px; font-weight: 700; color: var(--navy);
      letter-spacing: 0.02em; margin: 6px 0 0;
    }
    .booking-action-btn--change {
      background: transparent; border: 1.5px solid var(--navy);
      color: var(--navy);
    }
    .booking-action-btn--change:hover { background: rgba(30,58,95,0.06); color: var(--navy); }
    .booking-manage-note {
      font-size: 12px; color: var(--text-muted);
      display: flex; align-items: center; gap: 4px;
    }
    #bookingSection > hr { margin-top: 8px; }  /* ① ウェルカムバーとの過剰余白を縮小 */
    #bookingSection { margin-bottom: 36px; }   /* ② お金セクションとの余白を確保 */
    @media (max-width: 600px) {
      .booking-card { padding: 18px 16px; }
      .booking-action-btn { width: 100%; justify-content: center; }
      .booking-scheduled-row { align-items: flex-start; flex-direction: column; gap: 10px; }
      .booking-scheduled-row .booking-cancel-actions { width: 100%; }
      .booking-scheduled-row .booking-change-btn,
      .booking-scheduled-row .booking-cancel-btn { flex: 1; justify-content: center; }
    }

    /* 面談カードサンプル */
    .trial-meeting-sample-label {
      display: inline-flex; align-items: center; gap: 5px;
      background: #FFF3CD; color: #856404;
      border: 1px solid #FFDF7E;
      border-radius: 4px; font-size: 11px; font-weight: 700;
      padding: 3px 10px; margin-bottom: 14px;
      letter-spacing: 0.05em;
    }
    .trial-meeting-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 20px;
      box-shadow: var(--shadow-sm);
    }
    .trial-meeting-date {
      font-size: 12px; color: var(--text-sub);
      margin-bottom: 16px;
    }
    .trial-meeting-section { margin-bottom: 16px; }
    .trial-meeting-section-title {
      font-size: 12px; font-weight: 700;
      color: var(--navy); margin-bottom: 8px;
      display: flex; align-items: center; gap: 6px;
    }
    .trial-meeting-section-title::before {
      content: ''; display: block;
      width: 3px; height: 13px;
      background: var(--gold); border-radius: 2px;
    }
    .trial-meeting-items { list-style: none; padding: 0; margin: 0; }
    .trial-meeting-items li {
      font-size: 13px; color: var(--text);
      line-height: 1.65; padding: 4px 0 4px 16px;
      position: relative;
    }
    .trial-meeting-items li::before {
      content: '–'; position: absolute; left: 0;
      color: var(--text-muted);
    }

    /* ══ 月間カウント表示 ═══════════════════════════════════════════ */
    .booking-count-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }
    .booking-count-label {
      font-size: 12px;
      color: var(--text-sub);
    }
    .booking-count-badge {
      font-size: 15px;
      font-weight: 700;
      color: var(--navy);
    }
    .booking-count-badge.complete {
      color: var(--success);
    }

    /* ══ キャンセル・変更ボタン ═════════════════════════════════════ */
    .booking-cancel-actions {
      display: flex;
      gap: 8px;
      margin-top: 12px;
      flex-wrap: wrap;
    }
    .booking-scheduled-row .booking-cancel-actions {
      margin-top: 0;
      flex-shrink: 0;
    }
    .booking-change-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: transparent;
      border: 1.5px solid var(--navy);
      color: var(--navy);
      border-radius: var(--radius-sm);
      padding: 8px 16px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      font-family: var(--font-sans);
      transition: all var(--transition);
    }
    .booking-change-btn:hover {
      background: rgba(30,58,95,0.06);
    }
    .booking-cancel-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: none;
      border: 1px solid var(--border);
      color: var(--text-muted);
      border-radius: var(--radius-sm);
      padding: 8px 12px;
      font-size: 12px;
      cursor: pointer;
      font-family: var(--font-sans);
      transition: all var(--transition);
    }
    .booking-cancel-btn:hover {
      border-color: var(--danger);
      color: var(--danger);
    }

    /* ══ キャンセル確認UI ════════════════════════════════════════════ */
    .bk-cancel-confirm {
      padding: 4px 0;
    }
    .bk-cancel-confirm-msg {
      font-size: 14px;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 6px;
    }
    .bk-cancel-confirm-date {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 14px;
    }
    .bk-cancel-confirm-actions {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    /* ══ 上限到達・追加面談 ══════════════════════════════════════════ */
    .booking-action--limit {
      background: rgba(201,168,76,0.05);
      border-left: 3px solid var(--gold);
    }
    .booking-count-limit-msg {
      font-size: 13px;
      color: var(--text-sub);
      line-height: 1.75;
      margin-bottom: 14px;
    }
    .booking-preparing-msg {
      font-size: 13px;
      color: var(--text-sub);
      line-height: 1.75;
      background: rgba(30,58,95,0.04);
      border: 1px dashed var(--border);
      border-radius: 6px;
      padding: 10px 14px;
    }
    .booking-extra-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--gold-dark);
      background: rgba(201,168,76,0.12);
      border: 1px solid rgba(201,168,76,0.3);
      border-radius: 3px;
      padding: 1px 7px;
      margin-left: 8px;
      vertical-align: middle;
    }

    /* ══ インライン通知（予約カード内） ════════════════════════════════ */
    .bk-inline-msg {
      background: var(--navy);
      color: #fff;
      font-size: 13px;
      line-height: 1.65;
      padding: 10px 16px;
      border-radius: 6px;
      margin-bottom: 14px;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.35s ease, opacity 0.3s;
    }
    .bk-inline-msg--show {
      max-height: 80px;
      opacity: 1;
    }
    .bk-inline-msg--error {
      background: #b91c1c;
    }

    /* ══ 自前予約UI（スロットピッカー） ════════════════════════════════ */
    .bk-panel {
      padding: 4px 0;
    }
    .bk-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 12px;
    }
    .bk-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
      gap: 8px;
    }
    .bk-week-label {
      font-size: 13px;
      font-weight: 600;
      color: var(--navy);
      flex: 1;
      text-align: center;
    }
    .bk-week-btn {
      background: none;
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--navy);
      font-size: 12px;
      padding: 5px 10px;
      cursor: pointer;
      font-family: var(--font-sans);
      transition: background var(--transition);
      white-space: nowrap;
    }
    .bk-week-btn:hover:not(:disabled) { background: rgba(30,58,95,0.06); }
    .bk-week-btn:disabled { opacity: 0.35; cursor: default; }
    /* ── グリッドUI ─────────────────────────────────────────────── */
    .bk-grid-wrap {
      overflow-x: auto;
      margin-bottom: 10px;
      -webkit-overflow-scrolling: touch;
    }
    .bk-grid {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
    }
    .bk-grid-corner { width: 44px; }
    .bk-grid-th {
      font-size: 12px;
      font-weight: 700;
      color: var(--navy);
      text-align: center;
      padding: 6px 2px;
      border-bottom: 1.5px solid var(--border);
      line-height: 1.4;
    }
    .bk-grid-dow {
      font-size: 10px;
      font-weight: 400;
      color: var(--text-muted);
    }
    .bk-grid-time {
      font-size: 11px;
      color: var(--text-sub);
      text-align: right;
      padding: 0 6px 0 0;
      white-space: nowrap;
      vertical-align: middle;
      height: 32px;
    }
    .bk-grid-cell {
      text-align: center;
      font-size: 13px;
      vertical-align: middle;
      height: 32px;
      border: 1px solid transparent;
    }
    .bk-grid-cell--open {
      color: var(--navy);
      cursor: pointer;
      transition: background var(--transition), color var(--transition);
      border-radius: 4px;
    }
    .bk-grid-cell--open:hover {
      background: var(--navy);
      color: #fff;
    }
    .bk-grid-cell--closed {
      color: var(--text-muted);
      cursor: default;
      opacity: 0.4;
    }
    .bk-grid-cell--skel .bk-skel-dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--border);
      animation: bkPulse 1.2s ease-in-out infinite;
    }
    @keyframes bkPulse {
      0%, 100% { opacity: 0.3; }
      50%       { opacity: 0.9; }
    }
    .bk-legend {
      display: flex;
      gap: 14px;
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 10px;
    }
    .bk-legend-dot--avail { color: var(--navy); }
    .bk-legend-dot--none  { color: var(--text-muted); }
    .bk-empty {
      font-size: 13px;
      color: var(--text-muted);
      text-align: center;
      padding: 12px 0;
    }
    .bk-loading {
      font-size: 13px;
      color: var(--text-sub);
      text-align: center;
      padding: 20px 0;
    }
    .bk-error {
      font-size: 13px;
      color: #b91c1c;
      text-align: center;
      padding: 12px 0;
    }
    .bk-retry-btn {
      background: none;
      border: 1px solid #b91c1c;
      border-radius: 4px;
      color: #b91c1c;
      font-size: 12px;
      padding: 4px 12px;
      cursor: pointer;
      margin-top: 8px;
      font-family: var(--font-sans);
    }
    .bk-cancel-link {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 12px;
      cursor: pointer;
      font-family: var(--font-sans);
      padding: 0;
      text-decoration: underline;
      display: block;
      margin-top: 4px;
    }
    .bk-cancel-link:hover { color: var(--navy); }

    /* ── 確認画面 ─────────────────────────────────────────────── */
    .bk-confirm {
      background: rgba(30,58,95,0.03);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 14px 16px;
      margin-bottom: 16px;
    }
    .bk-confirm-row {
      display: flex;
      gap: 12px;
      font-size: 13px;
      padding: 4px 0;
    }
    .bk-confirm-label {
      color: var(--text-muted);
      min-width: 52px;
    }
    .bk-confirm-value {
      color: var(--navy);
      font-weight: 600;
    }
    .bk-confirm-actions {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .bk-submit-btn {
      font-size: 13px;
    }

    /* ══ freee連携バナー ════════════════════════════════════════════ */
    .freee-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 16px;
      border-radius: var(--radius-md);
      font-size: 13px;
      flex-wrap: wrap;
    }
    .freee-banner-connected {
      background: #f0faf4;
      border: 1px solid #86efac;
    }
    .freee-banner-disconnected {
      background: var(--bg-card);
      border: 1px solid var(--border);
    }
    .freee-banner-error {
      background: #fef2f2;
      border: 1px solid #fca5a5;
      color: #991b1b;
      gap: 8px;
    }
    .freee-banner-left {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
      min-width: 0;
    }
    .freee-status-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #15803d;
      font-weight: 600;
      white-space: nowrap;
    }
    .freee-last-fetched {
      font-size: 12px;
      color: var(--text-muted);
      white-space: nowrap;
    }
    .freee-banner-icon {
      display: inline-flex;
      align-items: center;
      color: var(--gold);
      flex-shrink: 0;
    }
    .freee-banner-desc {
      color: var(--text-sub);
      line-height: 1.5;
    }
    .freee-connect-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--navy);
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      padding: 7px 14px;
      border-radius: var(--radius-sm);
      text-decoration: none;
      white-space: nowrap;
      transition: background var(--transition);
    }
    .freee-connect-btn:hover {
      background: var(--navy-dark);
    }
    .freee-banner-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
      flex-wrap: wrap;
    }
    .freee-refresh-btn {
      background: var(--navy);
      color: #fff;
      border: none;
      font-size: 11px;
      font-weight: 600;
      padding: 5px 12px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      font-family: var(--font-sans);
      white-space: nowrap;
      transition: background var(--transition), opacity var(--transition);
    }
    .freee-refresh-btn:hover { background: var(--navy-dark, #152d4a); }
    .freee-refresh-btn:disabled { opacity: 0.6; cursor: default; }
    .freee-disconnect-btn {
      background: none;
      border: 1px solid #d1d5db;
      color: var(--text-muted);
      font-size: 11px;
      padding: 5px 12px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      font-family: var(--font-sans);
      white-space: nowrap;
      transition: border-color var(--transition), color var(--transition);
    }
    .freee-disconnect-btn:hover {
      border-color: var(--danger);
      color: var(--danger);
    }

    #freeeBanner .freee-banner {
      justify-content: flex-start;
      padding: 10px 14px;
    }
    #freeeBanner .freee-banner-left {
      flex: 0 1 auto;
    }
    #freeeBanner .freee-banner-actions {
      margin-left: 0;
    }

    /* ─── 今月の経営状態（経営羅針盤）カード ──────────────────── */
    .compass-card {
      border: 1.5px solid #e5e7eb;
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      background: #fff;
      font-size: 13px;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .compass-card.compass-safe    { border-color: #22c55e; background: #f0fdf4; }
    .compass-card.compass-caution { border-color: var(--gold); background: #fffbeb; }
    .compass-card.compass-danger  { border-color: var(--danger); background: #fff5f5; }

    .compass-top-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .compass-status-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 14px;
      font-weight: 700;
      color: var(--text-main);
      flex-shrink: 0;
    }
    .compass-last-updated {
      font-size: 11px;
      color: var(--text-muted);
      margin-left: auto;
    }

    .compass-indicators {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 16px;
      margin-bottom: 12px;
      padding: 10px 12px;
      background: rgba(255,255,255,0.7);
      border-radius: var(--radius-sm);
    }
    .compass-ind-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .compass-ind-label {
      font-size: 11px;
      color: var(--text-muted);
      white-space: nowrap;
    }
    .compass-ind-val {
      font-size: 12px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .compass-ind-dot {
      font-size: 8px;
    }
    .compass-ind-dot.safe    { color: #22c55e; }
    .compass-ind-dot.caution { color: #f59e0b; }
    .compass-ind-dot.danger  { color: var(--danger); }
    .compass-ind-val.compass-safe    { color: #16a34a; }
    .compass-ind-val.compass-caution { color: #b45309; }
    .compass-ind-val.compass-danger  { color: var(--danger); }

    .compass-card-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      letter-spacing: 0.04em;
      margin-bottom: 2px;
    }

    .compass-card.compass-unconnected {
      border-color: var(--border);
      background: #fff;
    }
    .compass-unconnected-msg {
      font-size: 13px;
      color: var(--text-sub);
      margin: 4px 0 0;
    }

    .compass-reason {
      font-size: 12px;
      color: var(--text-sub);
      line-height: 1.5;
      margin: 0;
    }

    /* 2列カードグリッド */
    .money-cards-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-areas:
        "compass prep"
        "freee prep";
      gap: 12px 16px;
      align-items: start;
      margin-bottom: 4px;
    }
    #compassCard { grid-area: compass; }
    #freeeBanner { grid-area: freee; }
    #prepCard { grid-area: prep; }
    .money-card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 6px;
    }
    @media (max-width: 520px) {
      .money-cards-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
          "compass"
          "freee"
          "prep";
      }
    }
    @media (max-width: 768px) {
      /* freee連携バナー：スマホで2行に折り返す */
      .freee-banner {
        flex-wrap: wrap;
        gap: 8px;
      }
      .freee-banner-left {
        flex: 0 0 100%;
      }
    }

    /* 今月の準備カード */
    .prep-card {
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      background: #fff;
      font-size: 13px;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .prep-card-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      letter-spacing: 0.04em;
      margin-bottom: 4px;
    }
    .prep-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
    }
    .prep-label {
      font-size: 11px;
      color: var(--text-muted);
      white-space: nowrap;
      min-width: 52px;
    }
    .prep-value {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
    }
    .prep-value.warn   { color: #b45309; }
    .prep-value.danger { color: var(--danger); }
    .prep-sub-row {
      font-size: 11px;
      color: var(--text-muted);
      padding-left: 60px;
      margin-bottom: 2px;
    }
    .prep-detail-link {
      display: inline-block;
      margin-top: 0;
      font-size: 11px;
      font-weight: 600;
      color: var(--navy);
      text-decoration: none;
      padding: 3px 9px;
      border: 1.5px solid var(--navy);
      border-radius: 12px;
      align-self: flex-start;
      transition: background var(--transition), color var(--transition);
    }
    .prep-detail-link:hover { background: var(--navy); color: #fff; }

    .compass-detail-link {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      color: var(--navy);
      text-decoration: none;
      padding: 3px 9px;
      border: 1.5px solid var(--navy);
      border-radius: 12px;
      white-space: nowrap;
      flex-shrink: 0;
      transition: background var(--transition), color var(--transition);
    }
    .compass-detail-link:hover {
      background: var(--navy);
      color: #fff;
    }

    /* 初回タイプ設定カード */
    .compass-setup-card {
      border: 1.5px dashed var(--gold);
      border-radius: var(--radius);
      padding: 18px 18px 14px;
      background: #fffbeb;
    }
    .compass-setup-title {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-main);
      margin-bottom: 14px;
      line-height: 1.5;
    }
    .compass-radio-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 14px;
    }
    .compass-radio-label {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      background: #fff;
      border: 1.5px solid #e5e7eb;
      cursor: pointer;
      transition: border-color var(--transition);
    }
    .compass-radio-label:has(input:checked) {
      border-color: var(--navy);
      background: #f0f4ff;
    }
    .compass-radio-label input[type="radio"] {
      margin-top: 3px;
      accent-color: var(--navy);
      flex-shrink: 0;
    }
    .compass-radio-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .compass-radio-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-main);
    }
    .compass-radio-desc {
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.5;
    }
    .compass-setup-btn {
      background: var(--navy);
      color: #fff;
      border: none;
      border-radius: var(--radius-sm);
      padding: 8px 20px;
      font-size: 13px;
      font-family: var(--font-sans);
      cursor: pointer;
      transition: background var(--transition);
    }
    .compass-setup-btn:hover:not(:disabled) { background: var(--navy-dark); }
    .compass-setup-btn:disabled { opacity: 0.6; cursor: not-allowed; }
    .compass-setup-msg {
      margin-left: 10px;
      font-size: 12px;
      color: var(--text-muted);
    }
    .compass-setup-msg.error { color: var(--danger); }

    .mc-concern-header {
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }
    .mc-concern-header-left {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex-wrap: wrap;
    }
    .mc-card-actions-right {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      flex-shrink: 0;
    }
    .mc-badge-read {
      background: #fff7ed;
      color: #c2410c;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    /* 直近投稿フッター・お金ヘッダー・次にやること幅調整 */
    .money-title-block {
      display: flex;
      flex-direction: column;
      gap: 5px;
      min-width: 0;
    }
    .profile-edit-row {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: fit-content;
    }
    #nextTodoList {
      width: max-content;
      max-width: 100%;
    }
    #nextTodoList .ntd-item {
      width: 100%;
    }
    #nextTodoList .ntd-task {
      min-width: 0;
    }
    .mc-latest-footer {
      display: flex;
      justify-content: flex-end;
      margin-top: 10px;
    }

    /* 予約・申込と次にやること：PCのみ横並び */
    @media (min-width: 860px) {
      .booking-todo-layout {
        display: grid;
        grid-template-columns: max-content max-content;
        align-items: start;
        gap: 0 40px;
        margin-bottom: 36px;
      }
      .booking-todo-layout #bookingSection,
      .booking-todo-layout #nextTodoSection {
        margin-bottom: 0;
        min-width: 0;
      }
      .booking-todo-layout #nextTodoSection > .gold-divider {
        margin-top: 8px;
      }
    }

    /* 会員サイト上部の理念文 */
    .member-philosophy {
      max-width: 760px;
      margin: -10px 0 28px;
      padding-left: 14px;
      border-left: 3px solid var(--gold);
      color: var(--navy);
      font-size: 14px;
      line-height: 1.8;
      font-weight: 500;
    }
    @media (max-width: 640px) {
      .member-philosophy {
        margin: -8px 0 24px;
        font-size: 13px;
        line-height: 1.75;
      }
    }

    /* 予約フォーム表示中は右カラムを下へ逃がす */
    @media (min-width: 860px) {
      .booking-todo-layout:has(#bookingSection.booking-ui-open) {
        grid-template-columns: minmax(0, 760px);
        max-width: 760px;
      }
      .booking-todo-layout:has(#bookingSection.booking-ui-open) #nextTodoSection {
        grid-column: 1;
        width: 100%;
        margin-top: 8px;
      }
      #bookingSection.booking-ui-open {
        width: min(760px, calc(100vw - 96px));
        min-width: 0;
      }
      #bookingSection.booking-ui-open .booking-card,
      #bookingSection.booking-ui-open .booking-action,
      #bookingSection.booking-ui-open #bookingActions,
      #bookingSection.booking-ui-open .bk-panel {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }
      #bookingSection.booking-ui-open .bk-grid {
        min-width: 560px;
      }
    }
