* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }
body {
  font-family: "Yu Gothic UI", "Segoe UI", sans-serif;
  color: #222;
  background: #f5f6f8;
}

#app { display: flex; height: 100vh; }

/* --- セクション見出し（カード内のh3）は全画面共通で青字にする --- */
h3 { color: #1f6feb; }

/* --- ナビレール --- */
#navRail {
  width: 180px;
  flex: 0 0 auto;
  background: #1f2937;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 0;
}
.nav-brand { text-align: left; padding: 0 16px; font-size: 14px; font-weight: 600; margin-bottom: 20px; color: #fff; }
.nav-item {
  background: none;
  border: none;
  color: #cbd5e1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  width: 100%;
}
.nav-item:hover { background: #2b3648; }
.nav-item.active { background: #374357; color: #fff; }
.nav-icon { font-size: 17px; flex: 0 0 auto; }
.nav-label { white-space: nowrap; }

/* --- メインエリア --- */
#mainArea { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
#pageContainer { flex: 1 1 auto; overflow-y: auto; padding: 24px 32px; }
.page { max-width: 960px; }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.page-header h2 { margin: 0; font-size: 20px; }
.page-subtitle { color: #888; font-size: 13px; margin: 4px 0 16px; }

.warning-banner {
  padding: 8px 24px;
  background: #fff3cd;
  color: #7a5c00;
  border-bottom: 1px solid #f0d98a;
  font-size: 13px;
  cursor: pointer;
}
.warning-banner:hover { background: #ffe8a3; }

/* --- 共通フォーム --- */
form { display: flex; flex-direction: column; gap: 6px; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  font-family: inherit;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.field-row {
  display: grid;
  grid-template-columns: 7em 1fr;
  align-items: center;
  gap: 8px;
}
.form-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.form-grid-2col > * { min-width: 0; }
.time-range-inputs { display: flex; align-items: center; gap: 20px; }
.time-range-inputs label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.time-range-inputs select { width: auto; }
.form-actions { display: flex; gap: 8px; }
.form-footer { display: flex; justify-content: flex-end; gap: 8px; margin: 20px 0; }
.inline-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #888; margin-bottom: 8px; }
.breadcrumb .link-button { padding: 0; font-size: 12px; }

.textarea-field { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.textarea-field-header { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #555; }
.textarea-field textarea { width: 100%; resize: vertical; }
.char-counter { font-size: 11px; color: #999; }

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef2ff;
  color: #333;
  border-radius: 999px;
  padding: 3px 6px 3px 10px;
  font-size: 12px;
}
.chip-remove { background: none; border: none; padding: 0 2px; cursor: pointer; color: #888; font-size: 12px; line-height: 1; }
.chip-remove:hover { color: #c0392b; background: none; }

button {
  font-family: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
button:hover { background: #f0f0f0; }
button:disabled { opacity: 0.6; cursor: default; }
button.danger { color: #c0392b; border-color: #e2a4a4; }
button.link-button { background: none; border: none; color: #2c6ecb; padding: 2px 0; text-decoration: underline; }
button.page-back-link { display: block; margin-bottom: 12px; }
button.icon-button { padding: 4px 8px; margin-right: 4px; }
button.icon-button.danger { color: #c0392b; border-color: #e2a4a4; }

.delete-warning { font-size: 13px; color: #333; margin: 0 0 12px; }
.delete-confirm-member { display: flex; align-items: center; gap: 12px; background: #f7f8fa; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
button.btn-primary { background: #1f6feb; color: #fff; border-color: #1f6feb; }
button.btn-primary:hover { background: #1a5fc9; }

.empty-hint { color: #999; font-size: 12px; }
.status { min-height: 18px; font-size: 12px; padding: 2px 0; }
.status.ok { color: #1a7f37; }
.status.error { color: #c0392b; }
.status.info { color: #555; }

/* --- モーダル --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-box {
  background: #fff;
  border-radius: 10px;
  width: 480px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 0 20px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 8px;
  position: sticky;
  top: 0;
  background: #fff;
}
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-close { border: none; background: none; font-size: 18px; line-height: 1; padding: 2px 6px; cursor: pointer; color: #888; }
.modal-close:hover { color: #222; background: none; }

/* --- カード --- */
.card, .summary-card, .ai-summary-card, .settings-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
  padding: 20px 24px;
  margin-bottom: 16px;
}

/* --- アバター --- */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  color: #fff; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }

/* --- バッジ --- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-green { background: #dcf5e6; color: #1a7f37; }
.badge-red { background: #fde2e1; color: #c0392b; }
.badge-blue { background: #dbe9ff; color: #1f5fbf; }
.badge-gray { background: #eee; color: #666; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-orange { background: #fff3cd; color: #b45309; }
.summary-card .badge, .followups-table .badge { min-width: 70px; text-align: center; }

/* --- ホーム/メンバー一覧 --- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar input[type="text"] { min-width: 220px; }

.member-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.member-table th { text-align: left; font-size: 12px; color: #888; padding: 10px 14px; border-bottom: 1px solid #eee; white-space: nowrap; }
.member-table td button { white-space: nowrap; }
.member-table td { padding: 10px 14px; border-bottom: 1px solid #f2f2f2; font-size: 13px; vertical-align: middle; }
.member-table tr.clickable-row { cursor: pointer; }
.member-table tr.clickable-row:hover { background: #f7f9fc; }
.member-table tr.inactive-row { opacity: 0.55; }
.member-table tr.editing-row { background: #eaf1ff; }

.member-cell { display: flex; align-items: center; gap: 10px; }
.member-cell-name { font-weight: 600; }
.member-cell-role { font-size: 11px; color: #888; }
.inactive-tag { margin-left: 6px; font-size: 10px; color: #999; border: 1px solid #ccc; border-radius: 4px; padding: 1px 4px; }

/* --- メンバー詳細 --- */
.profile-card { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profile-info { flex: 1 1 auto; }
.profile-info h2 { margin: 0; font-size: 18px; }
.profile-meta { margin: 4px 0 0; font-size: 13px; color: #555; }
.profile-meta-row { display: grid; grid-template-columns: 6em 1fr; gap: 8px; }
.handover-meta-row { grid-template-columns: 8em 1fr; margin: 8px 0; font-size: 13px; color: #333; }
.profile-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.profile-actions-row { display: flex; gap: 8px; }
.project-tag-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}

.status-metrics { display: flex; gap: 24px; margin-bottom: 12px; flex-wrap: wrap; }
.status-metrics-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 12px; }
.status-metrics-3col > * { min-width: 0; }
.status-metrics-3col .metric { background: #fff; border: 1px solid #e2e5eb; border-radius: 10px; padding: 12px 16px; align-items: center; text-align: center; }
.status-metrics-3col .metric.metric-text { align-items: flex-start; text-align: left; }
.status-metrics-boxed .metric { background: #fff; border: 1px solid #e2e5eb; border-radius: 10px; padding: 12px 16px; align-items: center; text-align: center; flex: 1 1 160px; border-top: 3px solid #d0d5dd; }
.status-metrics-boxed .metric-accent-blue { border-top-color: #2563eb; }
.status-metrics-boxed .metric-accent-green { border-top-color: #16a34a; }
.status-metrics-boxed .metric-accent-red { border-top-color: #dc2626; }
.status-metrics-boxed .metric-accent-gray { border-top-color: #9ca3af; }
.status-metrics-boxed .metric-accent-green strong { color: #16a34a; }
.status-metrics-boxed .metric-accent-red strong { color: #dc2626; }
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric-label { font-size: 11px; color: #888; }
.status-metrics-3col .metric-label, .status-metrics-boxed .metric-label { font-size: 14px; font-weight: 600; color: #444; }
.metric-sublabel { font-size: 12px; color: #555; }
.metric-text p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; }
.rating-display { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.rating-display-emoji { font-size: 28px; line-height: 1; }

.session-history .summary-row { margin: 20px 0 8px; }
.session-history h3 { font-size: 14px; margin: 0; }

.section-block { margin-bottom: 24px; }
.section-block > h3:first-child { margin-top: 0; }
.session-row { background: #fff; border: 1px solid #e2e5eb; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.session-row:hover { background: #f7f9fc; }
.session-row-date { font-weight: 600; font-size: 13px; }
.session-row-excerpt { font-size: 12px; color: #777; margin-top: 2px; }
.bullet-list.session-row-bullets { margin-top: 4px; font-size: 12px; color: #777; }

/* --- 1on1記録/詳細 --- */
.structured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.structured-grid > * { min-width: 0; }
.structured-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; }
.structured-grid label.span-2 { grid-column: 1 / -1; }
.structured-grid textarea { width: 100%; resize: vertical; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.detail-grid > * { min-width: 0; }
.detail-field { background: #fff; border: 1px solid #e2e5eb; border-radius: 10px; padding: 12px 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.detail-field h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #444; }
.detail-field p { margin: 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.session-meta { font-size: 12px; color: #777; }

.followup-editor, .followup-section { margin: 16px 0; }
.followup-editor h3, .followup-section h3 { font-size: 14px; margin: 0 0 8px; }
.followup-editor h4 { font-size: 14px; color: #555; margin: 0 0 8px; }
.followup-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.followup-row { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px; padding: 8px 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.followup-row .action-item-edit-input { flex: 1 1 auto; }
.followup-row span:not(.due-tag):not(.severity-dot) { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.followup-row button, .followup-row .due-tag { white-space: nowrap; flex-shrink: 0; }
.dashboard-followup-row { gap: 14px; align-items: flex-start; }
.dashboard-followup-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.followup-row .done-text { color: #999; text-decoration: line-through; }
.followup-row.editing-row { background: #eaf1ff; }
.due-tag { font-size: 11px; color: #b45309; background: #fff3cd; padding: 2px 6px; border-radius: 4px; }

.bullet-list { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.7; color: #333; }
.bullet-list li { padding-left: 1.1em; text-indent: -1.1em; }
.bullet-list li::before { content: "・"; color: #999; }
.due-date-input { width: 130px; }
.add-action-item-row { display: flex; gap: 6px; margin-top: 8px; }
.add-action-item-row input[type="text"] { flex: 1 1 auto; }

.rating-section { display: flex; gap: 40px; margin: 16px 0; }
.rating-section h4 { font-size: 13px; color: #555; margin: 0 0 8px; }
.rating-picker { display: flex; gap: 6px; }
.rating-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid #ddd; background: #fafafa;
}
.rating-btn .rating-emoji { font-size: 18px; }
.rating-btn .rating-num { font-size: 10px; color: #888; }
.rating-btn:hover { border-color: #1f6feb; }
.rating-btn.selected { border-color: #1f6feb; background: #eaf1ff; }
.rating-btn.selected .rating-num { color: #1f6feb; font-weight: 700; }
.rating-hint { margin: 6px 0 0; font-size: 11px; color: #b45309; }

/* --- フォロー事項一覧 --- */
.followups-layout { display: flex; gap: 20px; align-items: flex-start; }
.followups-main { flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.followup-content-cell { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.followups-table th, .followups-table td { padding: 10px 8px; }
.followup-row-actions { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.followups-sidebar { width: 200px; flex: 0 0 auto; }

.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.summary-row > h3 { margin: 0; }
.ai-summary-card p { font-size: 12px; }
.ai-summary-card button { width: 100%; }

/* --- プロジェクト詳細（タブ） --- */
.project-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e5eb; margin-bottom: 20px; overflow-x: auto; }
.project-tab-btn {
  padding: 10px 16px; border: none; background: transparent; color: #666; font-size: 13px;
  border-bottom: 2px solid transparent; border-radius: 0; white-space: nowrap;
}
.project-tab-btn:hover { color: #1f6feb; background: transparent; }
.project-tab-btn.active { color: #1f6feb; border-bottom-color: #1f6feb; font-weight: 600; }

.trait-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trait-cards-grid > * { min-width: 0; }
.trait-card { border-radius: 12px; padding: 16px 18px; }
.trait-card h4 { margin: 0 0 10px; font-size: 14px; }
.trait-card .bullet-list, .trait-card .empty-hint { margin: 0; }
.trait-card .link-button { display: block; margin-top: 10px; }
.trait-card-green { background: #eafaf1; }
.trait-card-green h4 { color: #1e7e4a; }
.trait-card-red { background: #fdecec; }
.trait-card-red h4 { color: #c0392b; }
.trait-card-orange { background: #fff3cd; }
.trait-card-orange h4 { color: #b45309; }
.trait-card-purple { background: #ede9fe; }
.trait-card-purple h4 { color: #6d28d9; }

/* --- 設定 --- */
.settings-section h3 { margin-top: 0; font-size: 14px; }
.card > h3:first-child,
.summary-card > h3:first-child,
.ai-summary-card > h3:first-child,
.settings-section > h3:first-child { margin-top: 0; }
.card > .summary-row:first-child { padding-top: 0; }

/* --- ナビのサブメニュー（1on1） --- */
.nav-group { display: flex; flex-direction: column; }
.nav-subitems {
  display: flex;
  flex-direction: column;
  margin: 2px 16px 8px 30px;
  padding-left: 16px;
  border-left: 1px solid #3a4657;
}
.nav-subitem {
  background: none;
  border: none;
  border-radius: 4px;
  color: #b8c4d9;
  font-size: 12px;
  padding: 6px 10px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.nav-subitem:hover { background: #2b3648; }
.nav-subitem.active { background: #374357; color: #fff; }

/* --- ダッシュボード（ホーム） --- */
.dashboard-cards { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.dashboard-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 14px 18px 20px;
  flex: 1 1 160px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.dashboard-card-value-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dashboard-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-card-icon svg { width: 13px; height: 13px; }
.dashboard-card-icon-blue { background: #dbeafe; color: #2563eb; }
.dashboard-card-icon-orange { background: #ffedd5; color: #ea580c; }
.dashboard-card-icon-green { background: #dcfce7; color: #16a34a; }
.dashboard-card-icon-purple { background: #ede9fe; color: #7c3aed; }
.dashboard-card-icon-red { background: #fee2e2; color: #dc2626; }
.dashboard-card strong { font-size: 22px; }
.dashboard-card-sub { font-size: 11px; color: #888; }
.dashboard-lists-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.dashboard-lists-2col > * { min-width: 0; }
.dashboard-month-toolbar { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.dashboard-month-toolbar button { padding: 4px 10px; }
.dashboard-month-toolbar strong { font-size: 14px; }
.dashboard-card-link { padding: 0; margin-top: auto; padding-top: 6px; font-size: 12px; }
.dashboard-card .metric-label { color: #333; font-size: 13px; }

.pending-members-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; max-height: 264px; overflow-y: auto; }
.pending-member-row { display: flex; align-items: center; gap: 16px; padding: 6px 4px; border-bottom: 1px solid #f2f2f2; cursor: pointer; border-radius: 6px; }
.pending-member-row:last-child { border-bottom: none; }
.pending-member-row:hover { background: #f7f9fc; }
.pending-member-info { display: flex; align-items: center; gap: 20px; flex: 1 1 auto; }
.pending-member-chevron { color: #bbb; font-size: 18px; flex: 0 0 auto; }
.pending-member-name { font-size: 13px; color: #2c6ecb; text-decoration: underline; }
.pending-member-team { font-size: 12px; color: #888; }
.dashboard-cta-button { width: 100%; text-align: center; color: #2c6ecb; background: #eaf1ff; border: none; border-radius: 8px; padding: 10px; font-size: 13px; }

/* --- ドーナツグラフ（実施率表示、ダッシュボード/引き継ぎノート一覧で共有） --- */
.donut-card-body { display: flex; align-items: center; gap: 20px; }
.donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
  background: conic-gradient(
    #16a34a 0% calc(var(--pct-done) * 1%),
    #d1d5db calc(var(--pct-done) * 1%) calc((var(--pct-done) + var(--pct-excluded)) * 1%),
    #f59e0b calc((var(--pct-done) + var(--pct-excluded)) * 1%) 100%
  );
}
.donut-hole {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut-hole strong { font-size: 22px; color: #222; }
.donut-hole span { font-size: 11px; color: #888; }
.donut-legend { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.donut-legend-item { display: flex; align-items: center; gap: 8px; }
.donut-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.donut-legend-dot-done { background: #16a34a; }
.donut-legend-dot-pending { background: #f59e0b; }
.donut-legend-dot-excluded { background: #d1d5db; }

.severity-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.severity-dot-orange { background: #f59e0b; }

.tag-chip-list { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* --- プロジェクトチェックボックス（メンバー追加/編集） --- */
.project-checkbox-list { display: flex; flex-direction: column; gap: 4px; }
.project-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.project-tag {
  display: inline-block;
  background: #eef2ff;
  color: #3949ab;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  margin-right: 4px;
  white-space: nowrap;
}

/* --- プロジェクト詳細：所属メンバー --- */
.member-avatar-list { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; }
.member-avatar-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  cursor: pointer;
}
.member-avatar-chip .avatar { width: 26px; height: 26px; font-size: 12px; }

/* --- 1on1実施状況：6ヶ月推移 --- */
.trend-layout { display: flex; gap: 20px; align-items: flex-start; margin-top: 10px; }
.trend-table { flex: 1 1 auto; }
.trend-cell { text-align: center; }
.member-table th.trend-cell { text-align: center; }
.trend-sidebar { width: 260px; flex: 0 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 12px 16px; }
.trend-sidebar h4 { margin: 0 0 8px; font-size: 13px; color: #555; }
.empty-hint-list { list-style: none; padding: 0; margin: 0; font-size: 12px; color: #b45309; display: flex; flex-direction: column; gap: 6px; }

/* --- 管理職メモ --- */
.manager-memo-field { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; font-size: 13px; color: #555; }
.manager-memo-field textarea { width: 100%; resize: vertical; }

/* --- 引き継ぎサマリー --- */
.handover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.handover-grid > * { min-width: 0; }
.handover-col { display: flex; flex-direction: column; gap: 16px; }
.trait-row { display: grid; grid-template-columns: 8em 1fr; gap: 8px; margin: 10px 0; }
.trait-row h4 { margin: 0; font-size: 13px; color: #444; font-weight: 600; }
.trait-row p { margin: 0; font-size: 13px; line-height: 1.6; }
.plain-topic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.plain-topic-list li { line-height: 1.6; }
.handover-memo-card { background: #fff8e6; border: 1px solid #f0d98a; }

/* --- 印刷（引き継ぎサマリー） --- */
@media print {
  #navRail, #operatorWarning, .no-print { display: none !important; }
  #mainArea, #pageContainer { overflow: visible !important; }
  body { background: #fff; }
}

/* --- ログイン画面（Web版のみ） --- */
.login-overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #1e2733; z-index: 1000;
}
.login-box {
  background: #fff; border-radius: 10px; padding: 32px 36px; width: 320px;
  display: flex; flex-direction: column; gap: 14px;
}
.login-box h2 { margin: 0 0 6px; font-size: 18px; text-align: center; }
.login-box label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #444; }
.login-box input { padding: 8px 10px; font-size: 14px; }
.login-box button { padding: 10px; font-size: 14px; }

/* --- ログアウトボタンをナビ下部に固定（Web版のみ） --- */
.nav-item-bottom { margin-top: auto; }
