/* Secondary pages share the same grouped surfaces as the notation sheet. */
.action-summary {
 display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0;
 padding: 8px; margin: 0 0 24px; border: 1px solid var(--line);
 border-radius: 22px; background: #fff; box-shadow: none;
}
.action-summary > span { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding: 17px 21px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.action-summary > span + span { border-left: 1px solid var(--line); }
.action-summary strong { margin: 0; color: var(--ink); font-size: 28px; font-weight: 500; line-height: 1.1; letter-spacing: -.9px; }
.actions-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 20px; }
.action-card { padding: 25px; border-color: var(--line); border-radius: 24px; background: #fff; box-shadow: 0 4px 18px rgb(0 0 0 / 2%); }
.action-card > .panel-heading { padding: 0 0 18px; }
.action-card h2 { color: var(--ink); font-size: 21px; line-height: 1.3; letter-spacing: -.55px; font-weight: 600; }
.action-card .item-number { color: var(--muted); font-size: 11px; }
.action-card .action-note { margin-top: 15px; padding: 15px 16px; border-radius: 15px; background: #f5f5f7; color: #66666e; font-size: 13px; line-height: 1.7; }
.action-owner { gap: 11px; margin-top: 21px; }
.action-owner .avatar { width: 37px; height: 37px; background: #eef2f7; color: #65798d; }
.action-owner strong { color: var(--ink); font-size: 13px; font-weight: 500; }
.action-owner small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.correction-note { margin-top: 19px; padding: 16px; border: 0; border-radius: 15px; background: #eff7f1; color: #53745d; font-size: 12px; }
.correction-note > strong { font-weight: 600; }
.correction-note p { margin: 7px 0; color: #607566; line-height: 1.7; }
.correction-note small { color: #728378; font-size: 11px; }
.action-buttons { gap: 8px; padding-top: 19px; margin-top: 22px; border-color: var(--line); }
.action-buttons .btn { flex: 1; min-height: 44px; font-size: 11px; }
.action-buttons .btn.secondary { background: #f5f5f7; border-color: transparent; }

/* People are individuals, presented with one visual language. */
.manager-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.manager-card { padding: 26px; border-radius: 24px; background: #fff; border-color: var(--line); box-shadow: 0 4px 18px rgb(0 0 0 / 2%); }
.manager-card-top { gap: 12px; margin-bottom: 20px; }
.manager-card-top .avatar { width: 48px; height: 48px; font-size: 16px; font-weight: 500; background: #edf3fc; color: var(--accent,#007aff); }
.manager-card .status-pill { font-size: 10px; padding: 6px 9px; }
.manager-card h2 { margin: 0 0 3px; color: var(--ink); font-size: 24px; line-height: 1.25; letter-spacing: -.6px; }
.manager-card > p { color: var(--muted); font-size: 12px; }
.manager-numbers { gap: 0; margin: 24px 0 19px; padding: 15px 0; border-radius: 16px; background: #f5f5f7; }
.manager-numbers > div { min-width: 0; padding: 0 16px; }
.manager-numbers > div + div { border-left: 1px solid #e2e2e7; }
.manager-numbers strong { font-size: 29px; font-weight: 500; line-height: 1.15; letter-spacing: -.8px; }
.manager-numbers small { max-width: 120px; margin-top: 7px; color: #85858d; font-size: 11px; line-height: 1.45; }
.manager-last { min-height: 43px; padding-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.manager-last .icon { width: 14px; height: 14px; flex-shrink: 0; }
.manager-card .btn { min-height: 44px; margin-top: 17px; background: #f5f5f7; color: var(--accent,#007aff); border-color: transparent; }
.manager-card .btn:hover { background: #ededf1; }
.manager-card .btn .icon { width: 14px; height: 14px; }

/* An activity log behaves like a grouped list in Settings. */
.activity-list { padding: 0 25px; border-radius: 24px; background: #fff; }
.activity-row { gap: 14px; padding: 21px 0; border-color: var(--line); }
.activity-symbol { width: 36px; height: 36px; margin-top: 1px; border-radius: 50%; background: #eef3fb; color: var(--accent,#007aff); }
.activity-symbol.green { background: #edf6f0; color: #4b865e; }
.activity-symbol.orange { background: #fff3e8; color: #bf7a37; }
.activity-symbol .icon { width: 16px; height: 16px; }
.activity-main strong { color: var(--ink); font-size: 13px; line-height: 1.5; font-weight: 550; }
.activity-main p { margin-top: 4px; color: #6c6c75; font-size: 12px; line-height: 1.6; }
.activity-main small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.65; white-space: pre-line; }
.activity-row time { margin-top: 5px; color: #86868b; font-size: 11px; line-height: 1.5; }
.activity-row > .icon-btn { width: 36px; height: 36px; min-width: 36px; margin-top: 0; border-radius: 50%; color: #96969e; background: #f5f5f7; border-color: transparent; }
.activity-row > .icon-btn:hover { color: var(--accent,#007aff); background: #edf3ff; }
.filter-bar .inline-field { min-height: 44px; color: #6f6f78; }
.filter-bar .inline-field input { min-height: 44px; border: 0; background: #ededf1; border-radius: 12px; }

/* Settings cards keep labels close to their controls. */
.settings-panel { max-width: 980px; padding: 29px; margin-bottom: 22px; border-radius: 24px; border-color: var(--line); background: #fff; box-shadow: 0 4px 18px rgb(0 0 0 / 2%); }
.settings-panel > h2 { margin-bottom: 23px; color: var(--ink); font-size: 20px; line-height: 1.3; letter-spacing: -.4px; }
.settings-panel > p { margin-bottom: 21px; color: #777780; font-size: 13px; line-height: 1.8; }
.settings-panel .form-grid { gap: 23px 22px; }
.settings-panel .field label { margin-bottom: 8px; color: #63636c; font-size: 12px; font-weight: 500; }
.settings-panel .field input, .settings-panel .field select, .settings-panel .field textarea { min-height: 46px; padding: 12px 14px; border: 1px solid transparent; border-radius: 13px; background: #f5f5f7; color: var(--ink); font-size: 14px; }
.settings-panel .field input:focus, .settings-panel .field select:focus, .settings-panel .field textarea:focus { border-color: #70a6f8; background: #fff; box-shadow: 0 0 0 3px #edf4ff; }
.settings-panel .field textarea { line-height: 1.8; }
.settings-panel .field small { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.settings-panel .reference-note { margin: 24px 0; padding: 15px 17px; border-radius: 14px; background: #f5f5f7; color: #85858d; font-size: 11px; line-height: 1.8; }
.settings-panel .button-row { gap: 9px; align-items: stretch; }
.settings-panel .button-row .btn { min-height: 44px; font-size: 12px; }
.reference-list { list-style: none; padding: 0; margin: 0 0 23px; color: #777780; font-size: 12px; line-height: 1.8; }
.reference-list li { position: relative; padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line); }
.reference-list li::before { content: ''; position: absolute; left: 1px; top: 24px; width: 4px; height: 4px; border-radius: 50%; background: #a8b5c7; }
.reference-list li + li { margin-top: 0; }
.reference-list li:last-child { border-bottom: 0; }
.reference-list strong { color: #50505a; font-weight: 500; }

 .reference-details { overflow: hidden; margin: 0 0 21px; border-radius: 15px; background: #f5f5f7; }
.reference-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 15px 17px; color: #5b5b65; list-style: none; font-size: 12px; cursor: pointer; }
.reference-details > summary::-webkit-details-marker { display: none; }
.reference-details > summary > .icon { width: 13px; height: 13px; color: #92929b; transition: transform .18s; }
.reference-details[open] > summary > .icon { transform: rotate(90deg); }
.reference-details .reference-list { margin: 0; padding: 0 17px 8px; }
.reference-details .reference-list li:first-child { border-top: 1px solid #e4e4e9; }
/* The same styling reaches the smaller export and correction dialogs. */
.modal:not(.control-modal) .modal-body > .muted { color: var(--muted); line-height: 1.75; }
#round-form .field, #correction-form .field { margin-bottom: 22px; }
#round-form .field:last-of-type, #correction-form .field:last-of-type { margin-bottom: 0; }
#round-form .field select, #correction-form .field select, #correction-form .field textarea { background: #f5f5f7; border-color: transparent; border-radius: 13px; font-size: 14px; }
#round-form .field select:focus, #correction-form .field select:focus, #correction-form .field textarea:focus { background: #fff; border-color: #70a6f8; box-shadow: 0 0 0 3px #edf4ff; }
#round-form .reference-note, #correction-form .reference-note { padding: 14px 16px; border-radius: 14px; background: #f5f5f7; font-size: 11px; color: var(--muted); }
.last-check { padding: 16px; border-radius: 15px; background: #f5f5f7; color: #72727a; }
.last-check.warning { background: #fff5ec; color: #a2784e; }
.last-check p { font-size: 12px; line-height: 1.75; }
.export-options { gap: 0; padding-top: 15px; padding-bottom: 24px; }
.export-option { min-height: 93px; padding: 20px 18px; border: 0; border-bottom: 1px solid #e6e6eb; border-radius: 0; background: #f5f5f7; transition: background .18s; }
.export-option:first-child { border-radius: 17px 17px 0 0; }
.export-option:last-child { border-bottom: 0; border-radius: 0 0 17px 17px; }
.export-option:hover { background: #ededf1; }
.export-option > .icon:first-child { width: 23px; height: 23px; color: var(--accent,#007aff); }
.export-option > .icon:last-child { width: 15px; height: 15px; color: #9898a1; }
.export-option strong { margin-bottom: 5px; color: var(--ink); font-size: 14px; font-weight: 500; }
.export-option small { color: #85858d; font-size: 12px; line-height: 1.6; }
.report-body > h3 { color: var(--ink); font-size: 22px; line-height: 1.3; letter-spacing: -.4px; }
.report-body > p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.report-grid { gap: 1px; margin: 24px 0; overflow: hidden; border-radius: 17px; background: #e4e4e9; }
.report-grid > div { padding: 19px 17px; background: #f5f5f7; border-radius: 0; }
.report-grid strong { color: var(--ink); font-size: 29px; font-weight: 500; line-height: 1.15; letter-spacing: -.8px; }
.report-grid span { margin-top: 7px; color: #85858d; font-size: 11px; line-height: 1.4; }
.report-table { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.report-table > div { padding: 15px 17px; border-color: var(--line); }
.report-table > div:last-child { border-bottom: 0; }
.report-table strong { color: var(--ink); font-size: 12px; font-weight: 550; line-height: 1.5; }
.report-table span, .report-table small { margin-top: 6px; color: #85858d; font-size: 11px; line-height: 1.6; }

/* Feedback uses color only when the state carries meaning. */
.alert-banner { margin: 15px 0 23px; padding: 16px 18px; border-color: #e3e7ed; border-radius: 16px; background: #eff3f8; color: #687788; font-size: 12px; line-height: 1.7; }
.alert-banner > .icon { width: 18px; height: 18px; flex-shrink: 0; }
.alert-banner p { margin-top: 4px; font-size: 11px; line-height: 1.65; }
.alert-banner.red { background: #fff0ee; border-color: #f4d6d2; color: #b4534b; }
.alert-banner.orange { background: #fff5e9; border-color: #f1e1c9; color: #aa783c; }
.alert-banner.green { background: #edf7f0; border-color: #d5e9db; color: #4e7b5b; }
.empty-state { gap: 14px; padding: 52px 28px; }
.empty-state > .icon { box-sizing: content-box; width: 28px; height: 28px; padding: 18px; margin-bottom: 3px; border-radius: 50%; background: #f1f4fa; color: var(--accent,#007aff); stroke-width: 1.4; }
.empty-state h2 { font-size: 23px; line-height: 1.35; letter-spacing: -.6px; }
.empty-state h3 { color: #595963; font-size: 18px; letter-spacing: -.3px; }
.empty-state p { color: #85858d; font-size: 13px; line-height: 1.75; }
.empty-state .btn { margin-top: 4px; }
.toast { background: #29292e; border-color: #45454c; border-radius: 16px; color: #fff; box-shadow: 0 14px 35px rgb(0 0 0 / 15%); }
.toast .icon { color: #88b4ff; }
.toast.error { background: #713d39; border-color: #85514b; }

@media (max-width: 1100px) {
 .manager-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .manager-card { padding: 24px; }
 .action-buttons .btn { flex-basis: 100%; }
}
@media (max-width: 900px) { .actions-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
 .action-summary { margin-bottom: 19px; padding: 6px; border-radius: 19px; }
 .action-summary > span { padding: 15px 10px; font-size: 10px; }
 .action-summary strong { font-size: 25px; }
 .actions-grid { gap: 16px; }
 .action-card { padding: 22px; }
 .action-card h2 { font-size: 20px; }
 .action-card .action-note { padding: 14px; font-size: 12px; }
 .action-buttons .btn { flex-basis: auto; min-height: 46px; font-size: 11px; }
 .manager-grid { grid-template-columns: 1fr; gap: 16px; }
 .manager-card { padding: 24px; }
 .manager-card h2 { font-size: 24px; }
 .manager-card .status-pill { font-size: 10px; }
 .manager-numbers small, .manager-last { font-size: 11px; }
 .activity-list { padding: 0 18px; }
 .activity-row { flex-wrap: wrap; gap: 10px; padding: 19px 0; }
 .activity-main { min-width: calc(100% - 50px); }
 .activity-main strong { font-size: 12px; }
 .activity-main p, .activity-main small { font-size: 11px; }
 .activity-row time { margin: 0 0 0 46px; font-size: 10px; }
 .activity-row > .icon-btn { width: 44px; min-width: 44px; height: 44px; margin-left: auto; }
 .settings-panel { padding: 23px 21px; border-radius: 22px; }
 .settings-panel > h2 { margin-bottom: 21px; font-size: 20px; }
 .settings-panel > p { font-size: 12px; }
 .settings-panel .form-grid { gap: 20px; }
 .settings-panel .field input, .settings-panel .field select, .settings-panel .field textarea, #round-form .field select, #correction-form .field select, #correction-form .field textarea { width: 100%; max-width: 100%; min-height: 46px; font-size: 16px; }
 .settings-panel .field small { font-size: 10px; }
 .settings-panel .reference-note { padding: 14px; font-size: 10px; }
 .reference-list { font-size: 11px; }
 .reference-list li { padding-top: 13px; padding-bottom: 13px; }
 .settings-panel .button-row .btn { min-height: 46px; flex: 1 1 145px; font-size: 11px; }
 .export-option { min-height: 95px; padding: 18px 15px; gap: 13px; }
 .export-option strong { font-size: 13px; }
 .export-option small { font-size: 11px; }
 .report-grid { margin: 21px 0; }
 .report-grid > div { padding: 15px 11px; }
 .report-grid strong { font-size: 24px; }
 .report-grid span { font-size: 10px; }
 .report-table > div { padding: 14px; }
 .report-table strong { font-size: 11px; }
 .report-table span, .report-table small { font-size: 10px; }
 .alert-banner { padding: 14px 15px; font-size: 11px; }
 .empty-state { padding: 44px 23px; }
 .empty-state h2 { font-size: 21px; }
 .empty-state p { font-size: 12px; }
 .toast { border-radius: 14px; }
}
@media print {
 .action-summary, .manager-numbers, .report-grid { background: #fff; }
 .action-summary > span, .manager-numbers > div, .report-grid > div { background: #fff; color: #222; }
 .manager-card, .action-card, .settings-panel { box-shadow: none; border-color: #ddd; }
 .report-table { overflow: visible; border-radius: 0; }
 .report-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #ddd; gap: 0; }
 .report-grid > div + div { border-left: 1px solid #ddd; }
 .report-table > div { break-inside: avoid; }
 .empty-state > .icon { background: #fff; color: #333; }
}

.activity-symbol.red { background: var(--red-soft); color: var(--red); }
