:root {
  --portal-font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --portal-text: .875rem;
  --portal-small: .75rem;
  --portal-heading: 1.125rem;
  --portal-title: 1.5rem;
}

body { font-family: var(--portal-font); font-size: var(--portal-text); line-height: 1.55; }
h1, h2, h3, h4 { font-family: inherit; }
input, select, textarea, button { font-family: inherit; }
.topbar-title { font-family: var(--portal-font); font-size: var(--portal-text); }
.page-head h1 { font-size: var(--portal-title); line-height: 1.3; }
.page-head p { font-size: var(--portal-text); }
.form-card > h2 { font-size: var(--portal-heading); }
.form-card :is(label, input, select, textarea) { font-size: var(--portal-text); }
.btn { font-size: var(--portal-text); }

.communication-workspace-header h1 { font-size: var(--portal-title); }
.communication-page :is(.communication-section-head h2, .communication-preview-head h2, .communication-editor-section > h2, #communicationEmployeeContent h2) {
  font-size: var(--portal-heading);
  line-height: 1.4;
}
.communication-page :is(.communication-workspace-header nav, .communication-overview-table, .communication-toolbar label, .communication-meta-grid label, .communication-editor-section > label, .communication-section-head p, .communication-preview-head .btn, .communication-entry-person strong, .communication-entry-copy, .communication-staff-pick strong, input, select, textarea, #communicationEmployeeContent label) {
  font-size: var(--portal-text);
}
.communication-page :is(.communication-overview-table .communication-issue-link, .communication-preview-summary, .communication-char-count, .communication-proofread, .communication-proofread-refresh, .communication-proofread-clear, .communication-remove, .communication-meta-grid label small, .communication-entry-person small, .communication-staff-pick small, .communication-staff-pick b, .communication-section-head > span) {
  font-size: var(--portal-small);
}

[data-work-sites] { min-width:10rem; }
[data-work-sites] summary { cursor:pointer; white-space:normal; }
.user-workplace-action { display:block; margin-top:2px; color:var(--navy); font-size:var(--portal-small); }
.user-workplace-choices { display:grid; gap:6px; margin:8px 0; padding:8px; border:1px solid var(--line); border-radius:8px; }
.user-workplace-choices label { display:flex; align-items:center; gap:6px; }
.user-workplace-choices input { margin:0; }
.user-workplace-actions,.communication-staff-actions { display:flex; gap:6px; justify-content:flex-end; }
.user-workplace-actions .btn { padding:5px 8px; }
.communication-staff-dialog { width:min(420px, calc(100% - 32px)); padding:20px; border:1px solid var(--line); border-radius:12px; color:var(--ink); }
.communication-staff-dialog::backdrop { background:rgb(20 30 40 / 45%); }
.communication-staff-dialog h2 { margin:0 0 12px; font-size:var(--portal-heading); }
.communication-staff-dialog label { display:grid; gap:6px; }
.communication-staff-dialog select { padding:8px; border:1px solid var(--line); border-radius:8px; }
.communication-staff-dialog [role="status"] { min-height:1em; }
