:root {
  --bg: #10101a;
  --surface: #191927;
  --surface-2: #222238;
  --surface-3: #11111d;
  --line: #35354d;
  --text: #f4f1ff;
  --muted: #9c9bb4;
  --accent: #9d7aff;
  --accent-2: #c08aff;
  --gold: #e9ba67;
  --blue: #75b6f7;
  --green: #67d6a1;
  --warn: #edb969;
  --danger: #fa7687;
  --shadow: 0 18px 46px rgba(0, 0, 0, .26);
  --radius: 14px;
  color-scheme: dark;
  font-family: "Meiryo", "メイリオ", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 1180px; background: radial-gradient(circle at 78% 2%, #2a2048 0, transparent 32%), var(--bg); color: var(--text); }
body[data-theme="light"] { --bg: #f2f0f8; --surface: #fff; --surface-2: #f4f1fb; --surface-3: #f7f6fb; --line: #ddd8ea; --text: #272238; --muted: #716b83; --shadow: 0 15px 35px rgba(64, 47, 101, .11); background: radial-gradient(circle at 78% 2%, #e8dcff 0, transparent 32%), var(--bg); }
body[data-theme="light"] .crm-sidebar, body[data-theme="light"] .crm-detail { background: rgba(255, 255, 255, .84); }
body[data-theme="light"] .brand-context, body[data-theme="light"] .crm-alert, body[data-theme="light"] .crm-status { background: #f1eaff; }
body[data-theme="light"] .crm-nav button:hover, body[data-theme="light"] .crm-nav button.active { color: #4c347f; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.crm-shell { display: grid; grid-template-columns: 248px minmax(620px, 1fr) 286px; min-height: 100vh; }
.crm-sidebar { padding: 25px 16px; background: rgba(14, 14, 26, .88); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.crm-brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 24px; }
.crm-brand strong, .crm-brand small { display: block; }
.crm-brand strong { font-size: 15px; letter-spacing: .03em; }
.crm-brand small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.crm-brand-mark, .detail-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #fff; font-weight: 800; background: linear-gradient(145deg, var(--accent), #6647bf); box-shadow: 0 8px 20px rgba(157, 122, 255, .28); }
.brand-context { margin: 0 7px 22px; padding: 9px 10px; border: 1px solid #40385f; background: #211c39; border-radius: 8px; color: #cfc7ed; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(103, 214, 161, .12); }
.crm-nav { display: grid; gap: 5px; }
.crm-nav button { padding: 10px 12px; border: 0; border-radius: 9px; text-align: left; color: var(--muted); background: transparent; font-size: 12px; transition: .2s ease; }
.crm-nav button:hover, .crm-nav button.active { color: #fff; background: linear-gradient(90deg, rgba(157, 122, 255, .2), rgba(157, 122, 255, .06)); box-shadow: inset 3px 0 0 var(--accent); }
.sidebar-note { margin: auto 8px 0; padding: 13px 12px; border-top: 1px solid var(--line); color: #83829a; font-size: 10px; line-height: 1.65; }
.eyebrow { display: block; color: #827f9e; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; }
.crm-main { min-width: 0; padding: 30px 28px 42px; }
.crm-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 23px; }
.crm-kicker { margin: 0 0 7px; color: var(--accent-2); font-size: 11px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 25px; letter-spacing: -.025em; }
h2 { margin: 5px 0 0; font-size: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.preview-badge, .chip, .status-pill { border-radius: 999px; padding: 5px 9px; font-size: 10px; white-space: nowrap; }
.preview-badge { color: #eddaff; background: #2f2450; border: 1px solid #5c458c; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #332b50; color: #d9c9ff; font-weight: 800; font-size: 12px; }
.crm-alert { margin-bottom: 17px; padding: 11px 14px; border: 1px solid #4d3b79; border-radius: 9px; color: #d9cbff; background: rgba(42, 31, 72, .65); font-size: 11px; }
.crm-toolbar { display: flex; gap: 9px; margin-bottom: 20px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.search-box input { width: 100%; padding: 10px 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
button.ghost, button.primary { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--text); background: var(--surface); font-size: 11px; }
button.ghost:hover { border-color: #6b5b99; background: var(--surface-2); }
button.primary { border-color: var(--accent); color: #fff; background: linear-gradient(135deg, #9d7aff, #7050c8); box-shadow: 0 6px 16px rgba(157, 122, 255, .18); }
button.primary.small { padding: 8px 10px; font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(34, 34, 56, .94), rgba(24, 24, 39, .94)); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; right: -25px; bottom: -28px; width: 95px; height: 95px; border-radius: 50%; opacity: .15; background: currentColor; }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 10px; }
.metric-card strong { display: block; margin: 9px 0 4px; font-size: 28px; letter-spacing: -.05em; }
.accent-violet { color: var(--accent); } .accent-gold { color: var(--gold); } .accent-blue { color: var(--blue); } .accent-green { color: var(--green); }
.content-grid { display: grid; grid-template-columns: 1.17fr .83fr; gap: 12px; margin-top: 12px; }
.lower-grid { grid-template-columns: 1.17fr .83fr; }
.panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(25, 25, 39, .9); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.chip-warn { color: #f6d39a; background: #3a2d1b; border: 1px solid #6b4e27; }
.journey { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; gap: 5px; }
.journey-step { display: flex; align-items: center; gap: 8px; min-width: 0; }
.journey-step > span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; color: #9a90b4; background: #2a293c; font: 10px ui-monospace, monospace; }
.journey-step.done > span, .journey-step.current > span { color: #fff; background: var(--accent); }
.journey-step strong, .journey-step small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-step strong { font-size: 10px; } .journey-step small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.journey-line { height: 1px; background: #47465d; } .journey-line.done { background: var(--accent); }
.approval-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 23px; padding-top: 14px; border-top: 1px solid var(--line); }
.approval-row strong, .approval-row small { display: block; } .approval-row strong { font-size: 11px; } .approval-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.icon-button, .link-button { border: 0; color: var(--accent-2); background: transparent; font-size: 11px; }
.stage-bars { display: grid; gap: 12px; }
.stage-bars > div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 5px; padding-bottom: 7px; font-size: 9px; }
.stage-bars span { color: var(--muted); } .stage-bars strong { color: #fff; font-size: 10px; }
.stage-bars i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.panel-footer { display: flex; justify-content: space-between; margin-top: 18px; color: var(--muted); font-size: 9px; }
.activity-list { display: grid; gap: 2px; }
.activity { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid rgba(53, 53, 77, .7); }
.activity:last-child { border-bottom: 0; }.activity-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 14px; }.activity-icon.violet { color: var(--accent); background: #2e2550; }.activity-icon.gold { color: var(--gold); background: #3b2d1d; }.activity-icon.blue { color: var(--blue); background: #202f45; }
.activity strong, .activity small { display: block; }.activity strong { font-size: 10px; }.activity small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.status-pill.pending { color: #dbcbff; background: #302650; }.status-pill.review { color: #f1ce8e; background: #3c2e1b; }.status-pill.done { color: #9be6bf; background: #1d3b2c; }
.quick-panel { padding-bottom: 10px; }.quick-action { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--text); background: transparent; }.quick-action:last-child { border-bottom: 0; }.quick-action > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--accent-2); background: #2c2550; }.quick-action strong, .quick-action small { display: block; }.quick-action strong { font-size: 10px; }.quick-action small { margin-top: 3px; color: var(--muted); font-size: 9px; }.quick-action b { color: var(--muted); font-size: 14px; }.quick-action:hover b { color: var(--accent); }
.crm-detail { padding: 30px 17px; border-left: 1px solid var(--line); background: rgba(17, 17, 29, .78); }.crm-detail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; }.crm-detail-head h2 { font-size: 14px; }.detail-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }.detail-hero { padding: 18px 15px; border-radius: 12px; background: radial-gradient(circle at 80% 10%, #3a2a63, transparent 48%), #211d35; border: 1px solid #49386e; }.orb { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 14px; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--accent), #6442b5); }.detail-hero strong { display: block; font-size: 12px; }.detail-hero p { margin: 8px 0 0; color: #b0a9c8; font-size: 10px; line-height: 1.7; }.kv { display: grid; gap: 14px; margin: 20px 0; }.kv div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }.kv dt { color: var(--muted); font-size: 10px; }.kv dd { margin: 0; text-align: right; font-size: 10px; }.detail-note { display: grid; gap: 5px; padding: 12px; border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 9px; }.detail-note strong { color: var(--text); font-size: 10px; }
.crm-status { margin-bottom: 15px; padding: 10px 12px; border: 1px solid #4d3b79; border-radius: 8px; color: #d9cbff; background: #221c39; font-size: 10px; }
.integration-provider-picker { display: grid; gap: 7px; margin: 16px 0 12px; color: var(--muted); font-size: 12px; }
.integration-provider-picker select, .integration-credential-form input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: var(--surface-3); }
.integration-provider-picker select:focus, .integration-credential-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(157, 122, 255, .13); }
.integration-credential-form { margin-top: 12px; }
.integration-credential-form .form-grid { display: grid; gap: 11px; margin-top: 13px; }
.integration-credential-form label { display: grid; gap: 5px; color: var(--text); font-size: 12px; }
.integration-credential-form label small { color: var(--muted); font-size: 10px; }
.view-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 4px 0 18px; padding: 20px; border: 1px solid #453b64; border-radius: var(--radius); background: radial-gradient(circle at 88% 8%, rgba(157, 122, 255, .19), transparent 33%), var(--surface); }
.view-hero h2 { margin-top: 7px; font-size: 20px; }
.view-hero p { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.filter-row { display: flex; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-chip { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.filter-chip.active { border-color: #6c55a0; color: #f0e9ff; background: #2b2250; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { padding: 10px 8px; color: #85839b; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 500; text-align: left; white-space: nowrap; }
td { padding: 12px 8px; border-top: 1px solid rgba(53, 53, 77, .75); color: #d4d0e2; white-space: nowrap; }
td strong, td small { display: block; } td strong { color: var(--text); font-size: 10px; } td small { margin-top: 3px; color: var(--muted); font-size: 9px; }
code { color: #d5c3ff; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.consent-ok { color: var(--green); font-size: 10px; } .consent-warn { color: var(--gold); font-size: 10px; }
.rule-panel { min-height: 100%; }.rule-list { display: grid; gap: 9px; margin-bottom: 18px; }.rule-list div { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-3); }.rule-list b { min-width: 34px; color: var(--accent-2); font: 9px ui-monospace, monospace; }.rule-list span { color: #d4d0e2; font-size: 10px; }
.menu-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }.menu-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.menu-card.active { border-color: #7055aa; box-shadow: 0 0 0 1px rgba(157, 122, 255, .2); }.menu-preview { display: flex; flex-direction: column; justify-content: space-between; min-height: 105px; padding: 13px; color: #fff; }.menu-preview span { font-size: 23px; font-weight: 800; }.menu-preview strong { font-size: 11px; }.menu-preview.violet { background: linear-gradient(145deg, #7653c1, #2e2052); }.menu-preview.gold { background: linear-gradient(145deg, #9b713c, #3b281a); }.menu-preview.blue { background: linear-gradient(145deg, #3d73a8, #1a2b47); }.menu-card-body { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px; }.menu-card-body strong, .menu-card-body small { display: block; }.menu-card-body strong { font: 10px ui-monospace, monospace; }.menu-card-body small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.approval-board { display: grid; gap: 12px; }.approval-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.approval-card-head { display: flex; justify-content: space-between; align-items: center; }.approval-card-head small { color: var(--muted); font-size: 9px; }.approval-card h3 { margin: 14px 0 6px; font-size: 13px; }.approval-card p { margin: 0; color: var(--muted); font-size: 10px; }.approval-meta { display: flex; flex-wrap: wrap; gap: 8px 17px; margin: 17px 0; color: #8f8ca6; font: 9px ui-monospace, monospace; }.approval-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.queue-list { display: grid; gap: 5px; }.queue-list > div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }.queue-list > div:last-child { border-bottom: 0; }.queue-list strong, .queue-list small { display: block; }.queue-list strong { font-size: 10px; }.queue-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }.queue-dot { width: 7px; height: 7px; border-radius: 50%; }.queue-dot.gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(233, 186, 103, .12); }
.consent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }.consent-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.consent-card span, .consent-card small { display: block; color: var(--muted); font: 9px ui-monospace, monospace; }.consent-card strong { display: block; margin: 9px 0 4px; font-size: 23px; }
.compact { margin-bottom: 12px; }.compact .metric-card { padding: 13px; }.compact .metric-card strong { font-size: 24px; }
@media (max-width: 1250px) { .crm-shell { grid-template-columns: 220px minmax(620px, 1fr); }.crm-detail { display: none; } }
@media (max-width: 900px) { body { min-width: 760px; }.crm-shell { grid-template-columns: 190px minmax(570px, 1fr); }.crm-main { padding: 24px 18px 35px; }.metric-grid, .consent-grid { grid-template-columns: repeat(2, 1fr); }.content-grid, .lower-grid { grid-template-columns: 1fr; }.menu-card-grid { grid-template-columns: 1fr; } }
.prototype-modal[hidden] { display: none; }
.empty-state { color: var(--muted); font-size: 12px; padding: 14px 0; }
.crm-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 2; }
.prototype-modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; }
.prototype-modal-backdrop { position: absolute; inset: 0; background: rgba(7, 7, 14, .72); backdrop-filter: blur(5px); }
.prototype-modal-card { position: relative; width: min(460px, 100%); padding: 20px; border: 1px solid #63518b; border-radius: var(--radius); background: var(--surface); box-shadow: 0 26px 75px rgba(0, 0, 0, .42); }
.prototype-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }.prototype-modal-head h2 { font-size: 17px; }.modal-description { color: var(--muted); font-size: 10px; line-height: 1.7; }.modal-field { display: grid; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 10px; }.modal-field input, .modal-field textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; resize: vertical; color: var(--text); background: var(--surface-3); font-size: 11px; }.modal-field input:focus, .modal-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(157, 122, 255, .13); }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Readability pass: the first prototype used 9-10px labels. Keep the compact
   layout, but make the effective baseline 14px and the smallest UI text 11px. */
:root { font-size: 16px; }
body { font-size: 14px; line-height: 1.5; }
.crm-nav button, .search-box input, button.ghost, button.primary, .crm-alert,
.metric-card span, .metric-card small, .preview-badge, .chip, .status-pill,
.filter-chip, .view-hero p, .detail-hero p, .detail-note, .modal-description,
.modal-field, .modal-field input, .modal-field textarea, .crm-status,
.settings-notice, .settings-card { font-size: 12px; }
.eyebrow, .sidebar-note, .journey-step strong, .journey-step small,
.approval-row strong, .approval-row small, .stage-bars > div, .stage-bars strong,
.panel-footer, .activity strong, .activity small, .quick-action strong,
.quick-action small, .detail-hero strong, .kv dt, .kv dd, .detail-note strong,
table, th, td, td strong, td small, code, .rule-list b, .rule-list span,
.menu-preview strong, .menu-card-body strong, .menu-card-body small,
.approval-card-head small, .approval-card p, .approval-meta, .queue-list strong,
.queue-list small, .consent-card span, .consent-card small { font-size: 11px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-card { min-width: 0; }
.settings-notice { display: grid; gap: 6px; margin-bottom: 12px; padding: 14px 16px; border: 1px solid #4d3b79; border-radius: var(--radius); color: #d9cbff; background: rgba(42, 31, 72, .65); line-height: 1.65; }
.settings-notice strong { color: var(--text); font-size: 13px; }
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-actions button { font-size: 12px; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }

/* Final +2px readability adjustment requested for the CRM UI. */
body { font-size: 16px; }
h1 { font-size: 27px; }
h2 { font-size: 17px; }
.view-hero h2 { font-size: 22px; }
.crm-brand strong { font-size: 17px; }
.crm-brand small, .crm-kicker, .avatar, .crm-detail-head h2 { font-size: 14px; }
.metric-card span, .metric-card small, .preview-badge, .chip, .status-pill,
.filter-chip, .view-hero p, .detail-hero p, .detail-note, .modal-description,
.modal-field, .modal-field input, .modal-field textarea, .crm-status,
.settings-notice, .settings-card, .crm-nav button, .search-box input,
button.ghost, button.primary { font-size: 14px; }
.eyebrow, .sidebar-note, .journey-step strong, .journey-step small,
.approval-row strong, .approval-row small, .stage-bars > div, .stage-bars strong,
.panel-footer, .activity strong, .activity small, .quick-action strong,
.quick-action small, .detail-hero strong, .kv dt, .kv dd, .detail-note strong,
table, th, td, td strong, td small, code, .rule-list b, .rule-list span,
.menu-preview strong, .menu-card-body strong, .menu-card-body small,
.approval-card-head small, .approval-card p, .approval-meta, .queue-list strong,
.queue-list small, .consent-card span, .consent-card small { font-size: 13px; }
.metric-card strong { font-size: 30px; }
.settings-notice strong { font-size: 15px; }
.settings-actions button { font-size: 14px; }

/* Keep every CRM element on the same Meiryo stack, including legacy
   monospace declarations used by compact labels and table metadata. */
.crm-shell, .crm-shell * { font-family: "Meiryo", "メイリオ", sans-serif; }
.crm-nav button, .nav-section-label { font-family: "Meiryo", "メイリオ", sans-serif; font-weight: 700; }
.crm-shell h1, .crm-shell h2, .crm-shell h3 { font-family: "Meiryo", "メイリオ", sans-serif; font-weight: 700; }
.crm-nav button { display: flex; align-items: center; gap: 10px; }
.crm-nav button::before { display: inline-grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid rgba(156, 155, 180, .28); border-radius: 6px; color: var(--muted); background: rgba(255, 255, 255, .035); font-size: 13px; line-height: 1; }
.crm-nav button:hover::before, .crm-nav button.active::before { border-color: rgba(157, 122, 255, .6); color: var(--accent-2); background: rgba(157, 122, 255, .13); }
.crm-nav button[data-view="dashboard"]::before { content: "⌂"; }
.crm-nav button[data-view="participants"]::before { content: "◎"; }
.crm-nav button[data-view="stages"]::before { content: "◆"; }
.crm-nav button[data-view="richmenus"]::before { content: "▦"; }
.crm-nav button[data-view="results"]::before { content: "✦"; }
.crm-nav button[data-view="approvals"]::before { content: "✓"; }
.crm-nav button[data-view="billing"]::before { content: "▣"; }
.crm-nav button[data-view="consents"]::before { content: "▤"; }
.crm-nav button[data-view="settings"]::before { content: "⚙"; }
.nav-section-label { margin: 13px 8px 2px; color: #706b8b; font: 10px/1.2 Arial, sans-serif; letter-spacing: .14em; }
.profile-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.signal-list { display: grid; gap: 10px; }
.signal-list > div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-3); }
.signal-list strong, .signal-list small { display: block; }.signal-list strong { font-size: 13px; }.signal-list small { margin-top: 3px; color: var(--muted); font-size: 12px; }.signal-list b { color: var(--muted); font-size: 11px; text-transform: uppercase; }.signal-dot { width: 8px; height: 8px; border-radius: 50%; }.signal-dot.green { background: var(--green); box-shadow: 0 0 0 4px rgba(103, 214, 161, .12); }.signal-dot.violet { background: var(--accent); box-shadow: 0 0 0 4px rgba(157, 122, 255, .12); }.signal-dot.gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(233, 186, 103, .12); }
.forecast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }.forecast-card { min-height: 160px; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.forecast-card.violet { background: linear-gradient(145deg, rgba(89, 62, 148, .72), var(--surface)); }.forecast-card.gold { background: linear-gradient(145deg, rgba(117, 80, 37, .72), var(--surface)); }.forecast-card.blue { background: linear-gradient(145deg, rgba(47, 87, 132, .72), var(--surface)); }.forecast-date { color: #e8ddff; font: 11px Arial, sans-serif; letter-spacing: .12em; }.forecast-card strong { font-size: 18px; }.forecast-card p { flex: 1; margin: 0; color: #c8c3d8; font-size: 12px; }
.chat-layout { display: grid; grid-template-columns: 235px minmax(330px, 1fr) 250px; gap: 12px; min-height: 520px; }.chat-list, .chat-thread, .ai-panel { min-width: 0; }.chat-contact { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--text); background: transparent; }.chat-contact.active { padding-left: 8px; padding-right: 8px; border-radius: 8px; background: rgba(157, 122, 255, .12); }.chat-contact strong, .chat-contact small { display: block; }.chat-contact strong { font-size: 13px; }.chat-contact small { margin-top: 3px; color: var(--muted); font-size: 11px; }.chat-contact .status-pill { font-size: 10px; }.chat-messages { display: grid; gap: 12px; min-height: 345px; padding: 10px 0 16px; border-bottom: 1px solid var(--line); }.chat-bubble { max-width: 84%; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.65; }.chat-bubble.user { justify-self: end; color: #fff; background: linear-gradient(135deg, #7050c8, #4a3980); }.chat-bubble.assistant { justify-self: start; color: #e8e3f5; background: var(--surface-2); }.chat-bubble.note { justify-self: start; color: var(--muted); background: transparent; border: 1px dashed var(--line); font-size: 11px; }.chat-compose { display: flex; gap: 8px; margin-top: 14px; }.chat-compose input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-3); font-size: 13px; }.context-item { display: grid; gap: 5px; margin-bottom: 14px; padding: 11px; border-radius: 8px; background: var(--surface-3); }.context-item strong { font-size: 12px; }.context-item span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.journey-board { display: grid; gap: 12px; }.journey-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.journey-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 5px; }.journey-flow span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: #d5cfee; background: var(--surface-3); font-size: 12px; }.journey-flow b { color: var(--accent-2); }
.rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }.rank-card { min-height: 174px; display: flex; flex-direction: column; gap: 8px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.rank-card.violet { border-color: #6651a0; background: linear-gradient(145deg, rgba(89, 62, 148, .55), var(--surface)); }.rank-card.gold { border-color: #88612e; background: linear-gradient(145deg, rgba(117, 80, 37, .55), var(--surface)); }.rank-card.blue { border-color: #3a6692; background: linear-gradient(145deg, rgba(47, 87, 132, .55), var(--surface)); }.rank-label { color: var(--muted); font: 10px Arial, sans-serif; letter-spacing: .14em; }.rank-card strong { font-size: 17px; }.rank-card p { flex: 1; margin: 0; color: #c8c3d8; font-size: 12px; line-height: 1.55; }.rank-card .status-pill { align-self: flex-start; font-size: 10px; }
@media (max-width: 1100px) { .chat-layout { grid-template-columns: 210px minmax(300px, 1fr); }.ai-panel { grid-column: 1 / -1; }.rank-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .profile-grid, .forecast-grid { grid-template-columns: 1fr; } }
.crm-shell, .crm-shell * { font-family: "Meiryo", "メイリオ", sans-serif; }
.provider-heading { display: flex; align-items: center; gap: 9px; }
.provider-icon-google { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(66, 133, 244, .42); border-radius: 9px; color: transparent; background: conic-gradient(from -35deg, #4285f4 0 26%, #34a853 26% 51%, #fbbc05 51% 72%, #ea4335 72% 100%); -webkit-background-clip: text; background-clip: text; font: 800 22px/1 Arial, sans-serif; box-shadow: 0 5px 13px rgba(66, 133, 244, .18); }
