:root{--s-mail:#2B4AA0;--s-form:#C27A12}
@media(prefers-color-scheme:dark){:root{--s-mail:#5B8DEF;--s-form:#B87A1A}}
.crm-dashboard.wrap{max-width:1180px;margin:0 auto;padding:20px 16px 48px;display:grid;gap:14px}
.crm-dashboard .head{display:flex;flex-wrap:wrap;gap:10px;align-items:end;justify-content:space-between}
.crm-dashboard h1{font-size:1.25rem;margin:0}.crm-dashboard .sub{color:var(--ink-3);font-size:0.75rem}
.crm-dashboard .seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel)}.crm-dashboard .seg button{font:inherit;font-size:0.8125rem;padding:6px 12px;border:0;background:none;color:var(--ink-2)}.crm-dashboard .seg button[aria-pressed=true]{background:var(--ai-tint);color:var(--ink);font-weight:600}
.crm-dashboard .panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px 18px}
.crm-dashboard .panel h2{font-size:0.875rem;margin:0 0 2px}.crm-dashboard .panel .note{color:var(--ink-3);font-size:0.75rem;margin:0 0 12px}
.crm-dashboard .say{display:grid;gap:8px;margin:0;padding:0;list-style:none}.crm-dashboard .say li{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start}.crm-dashboard .tag{font-size:0.6875rem;font-weight:600;padding:2px 8px;border-radius:999px;white-space:nowrap}
.crm-dashboard .t-warn{background:var(--ochre-tint);color:var(--ochre)}.crm-dashboard .t-bad{background:var(--shu-tint);color:var(--shu)}.crm-dashboard .t-good{background:var(--moss-tint);color:var(--moss)}.crm-dashboard .t-info{background:var(--slate-tint);color:var(--ink-2)}
.crm-dashboard .kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.crm-dashboard .kpi{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px}.crm-dashboard .kpi .l{font-size:0.75rem;color:var(--ink-3)}.crm-dashboard .kpi .v{font-size:1.75rem;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}.crm-dashboard .kpi .v small{font-size:0.8125rem;font-weight:500;color:var(--ink-3)}.crm-dashboard .kpi .d{font-size:0.75rem;color:var(--ink-2)}
.crm-dashboard .meter{height:6px;border-radius:3px;background:var(--sunken);margin-top:8px;overflow:hidden}.crm-dashboard .meter i{display:block;height:100%;background:var(--ai);border-radius:3px}
.crm-dashboard .two{display:grid;grid-template-columns:1.7fr 1fr;gap:14px}.crm-dashboard .three{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.crm-dashboard svg text{font:0.6875rem var(--font);fill:var(--ink-3)}.crm-dashboard svg .val{fill:var(--ink);font-weight:600}.crm-dashboard .grid{stroke:var(--line);stroke-width:1}
.crm-dashboard .legend{display:flex;gap:14px;font-size:0.75rem;color:var(--ink-2);margin:0 0 6px}.crm-dashboard .legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.crm-dashboard .fn{display:grid;gap:10px}.crm-dashboard .fn .row{display:grid;grid-template-columns:5.5em 3.6em 1fr 4.5em;gap:8px;align-items:center;font-variant-numeric:tabular-nums}.crm-dashboard .fn .n{text-align:right;font-weight:700}.crm-dashboard .fn .bar{height:10px;background:var(--sunken);border-radius:5px;overflow:hidden}.crm-dashboard .fn .bar i{display:block;height:100%;min-width:2px;background:var(--ai);border-radius:5px}.crm-dashboard .fn .r{font-size:0.75rem;color:var(--ink-3);text-align:right}
.crm-dashboard table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.crm-dashboard th,.crm-dashboard td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:right;font-size:0.8125rem}.crm-dashboard th{font-size:0.75rem;color:var(--ink-3);font-weight:500}.crm-dashboard th:first-child,.crm-dashboard td:first-child{text-align:left}.crm-dashboard tr.gap td{border-bottom:0;padding-top:14px;font-size:0.75rem;color:var(--ink-3)}
.crm-dashboard .rate{display:grid;grid-template-columns:3.4em 1fr;gap:8px;align-items:center}.crm-dashboard .rate .bar{height:8px;background:var(--sunken);border-radius:4px;overflow:hidden}.crm-dashboard .rate .bar i{display:block;height:100%;background:var(--moss);border-radius:4px}
.crm-dashboard .list{display:grid;gap:0;margin:0;padding:0;list-style:none}.crm-dashboard .list li{padding:9px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:2px 10px}.crm-dashboard .list li:last-child{border:0}.crm-dashboard .list b{font-weight:600}.crm-dashboard .list .m{grid-column:1/-1;font-size:0.75rem;color:var(--ink-3)}.crm-dashboard .count{float:right;font-size:0.75rem;color:var(--ink-3);font-weight:500}
@media (max-width:900px){.crm-dashboard .kpis{grid-template-columns:repeat(2,1fr)}.crm-dashboard .two,.crm-dashboard .three{grid-template-columns:1fr}}

.crm-dashboard {font:0.875rem/1.6 var(--font);font-feature-settings:"palt";color:var(--ink);width:100%;min-width:0;gap:14px}
.crm-dashboard *, .crm-dashboard *::before, .crm-dashboard *::after {box-sizing:border-box;min-width:0}
.crm-dashboard h1 {font-size:1.25rem;margin:0;line-height:1.6}
.crm-dashboard .panel h2 {font-size:0.875rem;margin:0 0 2px;line-height:1.6}
.crm-dashboard .panel .note {margin:0 0 12px}
.crm-dashboard .fn > .note {margin:14px 0 0}
.crm-dashboard .two {grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.crm-dashboard .three {grid-template-columns:repeat(3,minmax(0,1fr))}
.crm-dashboard .kpis {grid-template-columns:repeat(5,minmax(0,1fr))}
.crm-dashboard button {cursor:pointer}
.crm-dashboard button.tag, .crm-dashboard button.count, .crm-dashboard .paid-value {border:0;font-family:inherit}
.crm-dashboard button.count, .crm-dashboard .paid-value {background:none;color:var(--ink);padding:0;text-align:left}
.crm-dashboard .paid-value {display:block;font-size:1.75rem;font-weight:700;line-height:1.2}
.crm-dashboard .paid-value small {font-size:0.8125rem;font-weight:500;color:var(--ink-3)}
.crm-dashboard .count {color:var(--ink-3)}
.crm-dashboard .list a {color:var(--ink);text-decoration:none}
.crm-dashboard a:hover, .crm-dashboard button.count:hover {text-decoration:underline}
.crm-dashboard .fn .bar i {min-width:0}
.crm-dashboard svg {display:block;width:100%;height:auto;overflow:visible}
.crm-dashboard svg .grid {opacity:.65}
.crm-dashboard .table-scroll {max-width:100%;overflow-x:auto}
.crm-dashboard table {min-width:310px}
.crm-dashboard .rate {grid-template-columns:3.6em minmax(16px,1fr)}
.crm-dashboard .rate .bar {min-width:16px}
.crm-dashboard .table-scroll .tag {display:inline-block;margin-left:4px;white-space:normal}
.crm-dashboard .list li {grid-template-columns:minmax(0,1fr) auto}
.crm-dashboard .list .m {white-space:pre-wrap;overflow-wrap:anywhere}
.crm-dashboard .list .tag {white-space:normal;max-width:9em;align-self:start}
.crm-dashboard .dashboard-error {color:var(--shu)}
.crm-dashboard :is(a,button,summary,[tabindex]):focus-visible {outline:2px solid var(--focus);outline-offset:2px}
.crm-dashboard details summary {color:var(--ink-2);cursor:pointer;font-size:.75rem}
.crm-root:has(.crm-dashboard) > .crm-toolbar .crm-heading {display:none}
.crm-root:has(.crm-dashboard) > .crm-status:empty {display:none}
.crm-tabs {display:flex;flex-wrap:wrap}
.crm-tabs .crm-tab {flex:1 1 auto}
@media(max-width:900px){.crm-dashboard .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dashboard .two,.crm-dashboard .three{grid-template-columns:minmax(0,1fr)}}

.crm-dashboard .seg button {min-height:0;line-height:inherit;border-radius:0;flex:none}
.crm-dashboard .tag {line-height:1.6;display:inline-block;letter-spacing:normal}
.crm-dashboard .say li:has(> span:only-child) {grid-template-columns:1fr}

.crm-dashboard .fn .row {grid-template-columns:minmax(0,22%) minmax(0,14%) minmax(16px,1fr) minmax(0,18%)}
.crm-dashboard .seg {flex-wrap:wrap;max-width:100%;padding:0;gap:0}
.crm-dashboard .tag {height:auto}

@media(max-width:900px){
  .content:has(.crm-dashboard){padding-inline:0}
  .crm-root:has(.crm-dashboard) > :is(.crm-toolbar,.crm-status,.crm-tabs){margin-inline:16px}
}

/* 返信の分類の札は折り返さない(「条件不一致(自動)」など。2026-10-09) */
.crm-dashboard .list button.tag { white-space: nowrap; }
