:root {
  --strategy-teal: #14959b;
  --strategy-ink: #102a43;
  --strategy-muted: #607d8b;
  --strategy-line: #cfe0e8;
  --strategy-soft: #f4fafb;
  --strategy-danger: #c63c32;
}

.strategy-final-page,
.strategy-final-workspace { display: grid; gap: 16px; min-width: 0; color: var(--strategy-ink); }
.strategy-final-header,
.strategy-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--strategy-line); border-radius: 8px; }
.strategy-final-header h1,
.strategy-workspace-head h1 { margin: 0; font-size: 24px; }
.strategy-final-header p,
.strategy-workspace-head p { margin: 4px 0 0; color: var(--strategy-muted); }
.strategy-final-actions,
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.primary,
.secondary { min-height: 40px; padding: 8px 16px; border: 1px solid #b9ccd6; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }
.primary { color: #fff; background: var(--strategy-teal); border-color: var(--strategy-teal); }
.secondary { color: var(--strategy-ink); background: #fff; }
.compact { min-height: 34px; padding: 5px 10px; }

.strategy-final-toolbar { display: grid; grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(170px, 1fr)); gap: 10px; padding: 12px; background: #f8fcfd; border: 1px solid var(--strategy-line); border-radius: 8px; }
.strategy-final-toolbar label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.strategy-final-toolbar label span { white-space: nowrap; font-weight: 700; }
.strategy-final-toolbar input,
.strategy-final-toolbar select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #b9ccd6; border-radius: 6px; background: #fff; font: inherit; }
.strategy-final-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.strategy-final-summary:not(.strategy-final-fill-summary) { padding: 10px; border: 1px solid #c5e2e5; border-radius: 8px; background: #f0fbfb; }
.strategy-final-fill-summary { padding: 10px; border: 1px solid #ead9b8; border-radius: 8px; background: #fffaf1; }
.strategy-final-summary button { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--strategy-line); border-radius: 6px; color: var(--strategy-ink); background: #fff; cursor: pointer; }
.strategy-final-summary strong { color: var(--strategy-teal); font-size: 18px; }
.strategy-final-summary:not(.strategy-final-fill-summary) button[data-strategy-filter="待观察"] { border-color: #b7d7dd; background: #f7fcfd; }
.strategy-final-summary:not(.strategy-final-fill-summary) button[data-strategy-filter="可建策"] { border-color: #d9c9eb; background: #fbf8ff; }
.strategy-final-summary:not(.strategy-final-fill-summary) button[data-strategy-filter="执行中"] { border-color: #b7d9c7; background: #f5fcf7; }
.strategy-final-summary:not(.strategy-final-fill-summary) button[data-strategy-filter="待复盘"] { border-color: #efd39d; background: #fffaf1; }
.strategy-final-summary:not(.strategy-final-fill-summary) button[data-strategy-filter="需重点关注"] { border-color: #e8b4ae; background: #fff7f6; }
.strategy-final-summary:not(.strategy-final-fill-summary) button[data-strategy-filter="已稳定"] { border-color: #b9d8c8; background: #f3fbf5; }
.strategy-final-summary button:hover,
.strategy-final-summary button:focus-visible { border-color: var(--strategy-teal); outline: 2px solid rgba(20, 149, 155, .18); outline-offset: 1px; }
.strategy-final-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.strategy-final-card { display: grid; gap: 11px; min-width: 0; padding: 14px; border: 1px solid var(--strategy-line); border-left: 4px solid #87a9b5; border-radius: 8px; background: #fff; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.strategy-final-card:hover,
.strategy-final-card:focus-visible { transform: translateY(-2px); border-color: var(--strategy-teal); box-shadow: 0 8px 20px rgba(18, 82, 94, .1); outline: 0; }
.strategy-final-card.risk-red { border-left-color: #c63c32; }
.strategy-final-card.risk-orange { border-left-color: #e67e22; }
.strategy-final-card.risk-yellow { border-left-color: #d5a500; }
.strategy-final-card.risk-green { border-left-color: #2f8f62; }
.strategy-final-card header { display: flex; justify-content: space-between; gap: 12px; }
.strategy-final-card h3 { margin: 0; font-size: 19px; }
.strategy-final-card header p { margin: 2px 0 0; color: var(--strategy-muted); }
.status { align-self: flex-start; padding: 4px 8px; border-radius: 4px; color: #08757b; background: #ddf4f3; font-size: 13px; font-weight: 700; white-space: nowrap; }
.strategy-card-status { display: flex; gap: 8px; flex-wrap: wrap; }
.strategy-card-status span { padding: 3px 7px; border-radius: 4px; background: var(--strategy-soft); font-size: 13px; }
.strategy-card-cycle { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 8px 10px; border-radius: 5px; background: var(--strategy-soft); }
.strategy-card-cycle strong,
.strategy-card-cycle span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strategy-card-cycle span { color: var(--strategy-muted); font-size: 13px; }
.strategy-final-card dl { display: grid; gap: 5px; margin: 0; }
.strategy-final-card dl div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
.strategy-final-card dt { color: var(--strategy-muted); }
.strategy-final-card dd { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strategy-card-reason { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding-top: 8px; border-top: 1px dashed var(--strategy-line); font-size: 13px; }
.strategy-card-reason strong { color: var(--strategy-danger); }
.strategy-card-reason span { overflow-wrap: anywhere; }

.strategy-workspace-head { justify-content: flex-start; }
.strategy-workspace-head .back { border: 0; color: #087c8a; background: transparent; font: inherit; cursor: pointer; }
.workspace-metrics { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.workspace-metrics span { padding: 6px 9px; border-radius: 5px; background: var(--strategy-soft); }
.observation-start { display: grid; gap: 12px; padding: 16px; border: 1px solid #efd9a8; border-radius: 8px; background: #fffaf0; }
.observation-start h2 { margin: 0; }
.observation-start p { margin: 4px 0; }
.strategy-workspace-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--strategy-line); }
.strategy-workspace-tabs button { padding: 10px 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.strategy-workspace-tabs button.active { color: #087c8a; border-bottom-color: var(--strategy-teal); }
.strategy-workspace-content { min-width: 0; padding: 16px; border: 1px solid var(--strategy-line); border-radius: 8px; background: #fff; }
.workspace-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.workspace-section-head h2 { margin: 0; }
.workspace-section-head p { margin: 4px 0 0; color: var(--strategy-muted); }
.weekly-record-list { display: grid; gap: 10px; }
.weekly-record { display: grid; gap: 12px; padding: 13px; border: 1px solid var(--strategy-line); border-radius: 7px; }
.weekly-record header { display: flex; justify-content: space-between; gap: 12px; }
.weekly-record header div { display: flex; align-items: center; gap: 10px; }
.weekly-record header span { color: #087c8a; font-size: 13px; }
.weekly-record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.weekly-record-grid > div { min-width: 0; padding: 9px; border-radius: 5px; background: var(--strategy-soft); }
.weekly-record-grid span { color: var(--strategy-muted); font-size: 12px; }
.weekly-record-grid p { margin: 4px 0 0; overflow-wrap: anywhere; }
.cycle-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.cycle-overview div { display: grid; gap: 4px; padding: 12px; border-radius: 6px; background: var(--strategy-soft); }
.cycle-overview strong { color: #087c8a; font-size: 22px; }
.cycle-form,
.semester-form,
.strategy-review-form { display: grid; gap: 12px; }
.cycle-form label,
.semester-form label,
.strategy-review-form label { display: grid; gap: 6px; font-weight: 600; }
.cycle-form textarea,
.semester-form textarea,
.strategy-review-form textarea,
.strategy-review-form input,
.strategy-review-form select { box-sizing: border-box; width: 100%; min-height: 44px; padding: 9px; border: 1px solid #b9ccd6; border-radius: 6px; font: inherit; }
.cycle-form textarea,
.semester-form textarea,
.strategy-review-form textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.raw-version { padding: 12px; border-left: 4px solid #8aa8b5; background: var(--strategy-soft); }
.strategy-facts-panel { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--strategy-line); border-radius: 8px; background: #fff; }
.strategy-facts-panel h2,
.strategy-final-panel h2 { margin: 0; }
.strategy-facts-panel p { margin: 4px 0 0; color: var(--strategy-muted); }
.fact-count { color: #087c8a; font-weight: 700; }
.portrait-preview { padding: 12px; border: 1px solid var(--strategy-line); border-radius: 6px; background: var(--strategy-soft); }
.portrait-preview p { margin: 6px 0 0; overflow-wrap: anywhere; }
.strategy-final-management-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.strategy-final-panel { min-width: 0; padding: 14px; border: 1px solid var(--strategy-line); border-radius: 8px; background: #fff; }
.strategy-final-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.strategy-final-panel > header p { margin: 4px 0 0; color: var(--strategy-muted); }
.strategy-final-item-list { display: grid; gap: 8px; margin-top: 12px; }
.strategy-final-item { display: flex; justify-content: space-between; gap: 12px; min-width: 0; padding: 10px; border: 1px solid var(--strategy-line); border-radius: 6px; background: var(--strategy-soft); }
.strategy-final-item > div:first-child { min-width: 0; }
.strategy-final-item strong,
.strategy-final-item p { overflow-wrap: anywhere; }
.strategy-final-item p { margin: 4px 0 0; }
.strategy-final-item span { display: block; color: var(--strategy-muted); font-size: 13px; }
.strategy-final-form { display: grid; gap: 12px; }
.strategy-final-form label { display: grid; gap: 6px; }
.strategy-final-form input,
.strategy-final-form textarea,
.strategy-final-form select { box-sizing: border-box; width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #b9ccd6; border-radius: 6px; font: inherit; }
.strategy-final-form textarea { min-height: 76px; resize: vertical; }
.review-goal { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--strategy-line); border-radius: 6px; background: var(--strategy-soft); }
.review-goal legend { padding: 0 4px; font-weight: 700; }
.weekly-goal-summary { display: grid; gap: 6px; }
.weekly-goal-summary p { margin: 0; overflow-wrap: anywhere; }
.weekly-goal-summary small { display: block; color: var(--strategy-muted); }

.strategy-final-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(8, 28, 40, .48); }
.strategy-final-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.strategy-final-dialog.wide { width: min(980px, calc(100vw - 32px)); }
.strategy-final-dialog > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--strategy-line); background: #fff; }
.strategy-final-dialog h2 { margin: 0; font-size: 21px; }
.icon-close { width: 36px; height: 36px; border: 0; color: #087c8a; background: transparent; font-size: 28px; cursor: pointer; }
.strategy-final-dialog-body { padding: 16px; }
.strategy-manager-tabs { display: flex; gap: 5px; margin-bottom: 14px; border-bottom: 1px solid var(--strategy-line); }
.strategy-manager-tabs button { padding: 9px 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; font: inherit; cursor: pointer; }
.strategy-manager-tabs button.active { color: #087c8a; border-bottom-color: var(--strategy-teal); font-weight: 700; }
.strategy-manager-qr { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: center; }
.strategy-manager-qr img { display: block; width: 260px; max-width: 100%; }
.strategy-manager-qr label { display: grid; gap: 6px; margin-bottom: 10px; }
.strategy-manager-qr input:not([type="checkbox"]) { height: 40px; padding: 0 10px; border: 1px solid #b9ccd6; border-radius: 6px; }
.strategy-portal-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.strategy-manager-qr .switch { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.strategy-manager-qr .switch input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; padding: 0; border: 0; accent-color: var(--strategy-teal); }
.strategy-code-list,
.strategy-manager-students { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.strategy-code-list > div { display: grid; grid-template-columns: minmax(180px, 1fr) 130px auto; align-items: center; gap: 10px; padding: 9px; border-bottom: 1px solid var(--strategy-line); }
.strategy-code-list span:first-child { display: grid; }
.strategy-code-list small { color: var(--strategy-muted); }
.strategy-code-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; padding: 8px 9px; border: 1px solid #ead9b8; border-radius: 7px; background: #fffaf1; }
.strategy-code-toolbar label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.strategy-code-toolbar input,
.strategy-code-student input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--strategy-teal); }
.strategy-code-toolbar span { color: var(--strategy-muted); font-size: 12px; }
.strategy-code-student { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.strategy-code-student > span { display: grid; gap: 2px; min-width: 0; }
.strategy-code-student code { color: #765c24; font-size: 12px; overflow-wrap: anywhere; }
.strategy-manager-panel { padding: 12px; border: 1px solid var(--strategy-line); border-radius: 9px; }
.strategy-manager-period { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 12px; padding: 9px 12px; border: 1px solid #b9dfe1; border-radius: 8px; background: #eefafa; color: #155e63; }
.strategy-manager-period strong { font-size: 16px; }
.strategy-manager-period span { font-size: 13px; }
.strategy-manager-period small { width: 100%; color: #5b7478; }
.manager-panel-week { background: #f4fafb; }
.manager-panel-qr { background: #f7f4ff; }
.manager-panel-codes { background: #fff8ec; }
.strategy-week-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.strategy-week-status-card { display: grid; gap: 2px; min-width: 0; padding: 9px 11px; border: 1px solid transparent; border-radius: 7px; color: #173a4a; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.strategy-week-status-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(18, 82, 94, .1); }
.strategy-week-status-card.active { border-color: #087c8a; box-shadow: inset 0 0 0 2px rgba(8, 124, 138, .14); }
.strategy-week-status-card strong { font-size: 21px; line-height: 1; }
.strategy-week-status-card span { font-size: 13px; }
.strategy-week-status-card.status-missing { background: #fff2e8; }
.strategy-week-status-card.status-pending { background: #fff7db; }
.strategy-week-status-card.status-confirmed { background: #e7f7ed; }
.strategy-week-status-card.status-returned { background: #ffe9ed; }
.strategy-manager-filter-note { margin: 0 0 8px; color: var(--strategy-muted); font-size: 13px; }
.strategy-manager-students { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); max-height: 52vh; padding: 2px; }
.strategy-manager-student { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; min-width: 0; padding: 6px; border: 1px solid var(--strategy-line); border-left: 4px solid #b8cbd3; border-radius: 7px; background: #fff; }
.strategy-manager-student.status-card-missing { border-left-color: #e28a4b; }
.strategy-manager-student.status-card-pending { border-left-color: #d6a923; }
.strategy-manager-student.status-card-confirmed { border-left-color: #36a269; }
.strategy-manager-student.status-card-returned { border-left-color: #d45562; }
.strategy-manager-student-main { grid-column: 1; width: 100%; min-height: 35px; align-items: center; background: #fff; }
.strategy-manager-student-actions { display: flex; justify-content: flex-end; gap: 6px; }
.strategy-manager-student-actions { grid-column: 2; grid-row: 1; align-items: center; }
.strategy-manager-students button { display: flex; justify-content: space-between; gap: 8px; padding: 7px 8px; border: 1px solid var(--strategy-line); border-radius: 6px; background: #fff; cursor: pointer; }
.strategy-manager-student-actions button { display: inline-flex; width: auto; }
.strategy-final-toast { position: fixed; right: 18px; bottom: 18px; z-index: 11000; max-width: min(420px, calc(100vw - 36px)); padding: 11px 14px; border-radius: 6px; color: #fff; background: #173a4a; box-shadow: 0 8px 25px rgba(0, 0, 0, .2); }
.strategy-final-toast.error { background: #a8322c; }
.strategy-final-toast.success { background: #237147; }
.strategy-final-loading,
.strategy-final-empty,
.strategy-final-error { padding: 34px; border: 1px dashed var(--strategy-line); border-radius: 8px; color: var(--strategy-muted); background: #fff; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.strategy-final-mobile { min-height: 100vh; display: grid; place-items: start center; padding: 24px 12px; color: var(--strategy-ink); background: #eef6f7; }
.mobile-card { box-sizing: border-box; width: min(540px, 100%); padding: 20px; border: 1px solid var(--strategy-line); border-radius: 8px; background: #fff; box-shadow: 0 8px 30px rgba(18, 82, 94, .08); }
.mobile-card h1 { margin: 0 0 6px; }
.mobile-card > p { color: var(--strategy-muted); }
.mobile-card form { display: grid; gap: 14px; }
.mobile-card label { display: grid; gap: 6px; }
.mobile-card input,
.mobile-card select,
.mobile-card textarea { box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px; border: 1px solid #b9ccd6; border-radius: 6px; font: inherit; }
.mobile-card textarea { min-height: 76px; resize: vertical; }
.mobile-form-card > header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.mobile-form-card > header span { color: var(--strategy-muted); font-size: 13px; }
.mobile-deadline { margin: 12px 0; padding: 9px; border-radius: 5px; color: #83570a; background: #fff7e8; }
.mobile-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rating label { display: block; }
.rating input { position: absolute; opacity: 0; }
.rating span { display: grid; place-items: center; height: 42px; border: 1px solid #b9ccd6; border-radius: 6px; }
.rating input:checked + span { color: #fff; border-color: var(--strategy-teal); background: var(--strategy-teal); }
.mobile-card fieldset { margin: 0; padding: 10px; border: 1px solid var(--strategy-line); border-radius: 6px; }
.mobile-card fieldset small { color: var(--strategy-muted); }
.submit-mobile { position: sticky; bottom: 10px; width: 100%; min-height: 48px; }
.mobile-message { min-height: 24px; color: var(--strategy-danger); }
.readonly-summary { display: grid; gap: 8px; padding: 14px; border-radius: 6px; background: var(--strategy-soft); }

@media (max-width: 900px) { .strategy-final-toolbar { grid-template-columns: 1fr 1fr; } .strategy-final-toolbar .search { grid-column: 1 / -1; } .weekly-record-grid { grid-template-columns: 1fr 1fr; } .strategy-manager-qr { grid-template-columns: 1fr; } .strategy-manager-qr img { margin: auto; } .cycle-overview { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .strategy-final-header, .strategy-workspace-head { align-items: flex-start; flex-direction: column; } .workspace-metrics { margin-left: 0; } .strategy-final-toolbar { grid-template-columns: 1fr; } .strategy-final-toolbar .search { grid-column: auto; } .strategy-final-grid { grid-template-columns: 1fr; } .weekly-record-grid, .form-grid { grid-template-columns: 1fr; } .workspace-section-head { align-items: flex-start; flex-direction: column; } .strategy-workspace-tabs { overflow-x: auto; } .strategy-workspace-tabs button { white-space: nowrap; } .strategy-final-dialog { width: calc(100vw - 20px); } .strategy-week-status { grid-template-columns: 1fr 1fr; } .strategy-code-list > div { grid-template-columns: 1fr auto; } .strategy-code-list .code-state { grid-column: 1; } .strategy-final-management-grid { grid-template-columns: 1fr; } .strategy-final-item { display: grid; } .mobile-two { grid-template-columns: 1fr; } .mobile-form-card > header { display: grid; } .strategy-final-mobile { padding: 10px 8px; } .mobile-card { padding: 16px; } }

/* The student form is a separate mobile-first surface. Keep every control inside the viewport. */
.student-week-page { box-sizing: border-box; width: min(700px, 100%); min-width: 0; display: grid; gap: 12px; }
.student-week-header { display: grid; gap: 14px; min-width: 0; padding: 16px; border: 1px solid #b7d7dd; border-radius: 10px; background: #fff; }
.student-week-kicker { margin: 0 0 4px; color: #0d8a96; font-size: 13px; font-weight: 700; }
.student-week-header h1 { margin: 0; font-size: clamp(24px, 7vw, 32px); line-height: 1.2; }
.student-week-student { margin: 8px 0 0; color: var(--strategy-muted); overflow-wrap: anywhere; }
.student-week-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.student-week-meta > div { display: grid; gap: 4px; min-width: 0; padding: 10px; border-radius: 7px; background: #eef8f8; }
.student-week-meta > div:last-child { background: #f4f1fb; }
.student-week-meta strong { color: #087c8a; }
.student-week-meta span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.student-week-deadline { padding: 11px 13px; border: 1px solid #f1d18d; border-radius: 8px; color: #865d0c; background: #fff8e9; overflow-wrap: anywhere; }
.student-week-deadline.expired { border-color: #eba9a5; color: #a42f2b; background: #fff0ef; font-weight: 700; }
.student-week-deadline.confirmed { border-color: #a6d8bd; color: #226847; background: #effaf3; }
.student-previous-action { display: grid; gap: 5px; padding: 12px 14px; border-left: 4px solid #8f75c9; border-radius: 8px; background: #f5f2fb; }
.student-previous-action strong { color: #614b9c; }
.student-previous-action span { overflow-wrap: anywhere; }
.student-week-form { display: grid; gap: 12px; min-width: 0; }
.student-week-section { display: grid; gap: 11px; min-width: 0; padding: 14px; border: 1px solid #b9ccd6; border-left: 5px solid #1598a4; border-radius: 9px; background: #fff; }
.student-week-section.section-evidence { border-left-color: #e19a38; background: #fffdf8; }
.student-week-section.section-barrier { border-left-color: #d35a55; background: #fffafa; }
.student-week-section.section-state { border-left-color: #6f8bc5; background: #f9fbff; }
.student-week-section.section-career { border-left-color: #9973bc; background: #fcf9ff; }
.student-week-section.section-reflection { border-left-color: #4a9c73; background: #f8fdf9; }
.student-week-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.student-week-section-head h2 { margin: 0; font-size: 19px; }
.student-week-section-head span { min-width: 0; color: var(--strategy-muted); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.student-week-section label { display: grid; gap: 6px; min-width: 0; font-weight: 600; }
.student-week-section textarea,
.student-week-section input:not([type="checkbox"]),
.student-week-section select { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid #b9ccd6; border-radius: 7px; color: var(--strategy-ink); background: #fff; font: inherit; }
.student-week-section textarea { min-height: 84px; resize: vertical; }
.student-week-section textarea::placeholder { color: #94a2ad; opacity: 1; }
.student-week-two, .student-week-three { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.student-week-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.student-week-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; min-width: 0; }
.student-week-check { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 7px !important; min-width: 0; padding: 8px; border: 1px solid #e2d1d1; border-radius: 6px; background: #fff; font-weight: 500 !important; }
.student-week-check input { flex: 0 0 auto; width: 17px !important; min-height: 17px !important; margin: 2px 0 0; }
.student-week-check span { min-width: 0; overflow-wrap: anywhere; }
.student-week-support { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; }
.student-week-support input { width: 17px !important; min-height: 17px !important; }
.student-week-attachment-box { display: grid; gap: 9px; min-width: 0; padding: 10px; border: 1px dashed #d5b276; border-radius: 7px; background: rgba(255, 255, 255, .8); }
.student-week-attachment-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; flex-wrap: wrap; }
.student-week-attachments { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.student-week-attachment { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; min-width: 0; padding: 7px 8px; border-radius: 6px; background: #fff7e8; }
.student-week-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-week-attachment small { color: var(--strategy-muted); white-space: nowrap; }
.student-week-file-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.student-week-empty-attachments { padding: 8px; color: var(--strategy-muted); font-size: 13px; }
.student-week-attachment.pending { background: #eef8f8; }
.student-week-page button { max-width: 100%; }
.student-week-page button:disabled,
.student-week-page input:disabled,
.student-week-page select:disabled,
.student-week-page textarea:disabled { color: #98a2ad; border-color: #d9e0e4; background: #eef1f3; cursor: not-allowed; opacity: .86; }
.student-week-page .submit-mobile { width: 100%; min-height: 50px; margin-top: 2px; }
.student-week-page .mobile-message { min-height: 22px; color: var(--strategy-danger); overflow-wrap: anywhere; }
.student-week-page .readonly-summary p { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .student-week-header { padding: 13px; }
  .student-week-meta, .student-week-two, .student-week-three, .student-week-check-grid { grid-template-columns: 1fr; }
  .student-week-section { padding: 12px; }
  .student-week-section-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .student-week-section-head span { text-align: left; }
  .student-week-attachment { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Final student-strategy redesign: dense class workbench, spacious personal dashboard. */
.student-strategy-main-v2,
.strategy-workspace-v2 {
  min-width: 0;
  color: var(--strategy-ink);
}
.student-strategy-main-v2 *,
.strategy-workspace-v2 * {
  box-sizing: border-box;
  min-width: 0;
}
.strategy-final-header-v2 {
  color: #fff;
  background: #0f6570;
  border-color: #0f6570;
}
.strategy-final-header-v2 h1,
.strategy-final-header-v2 p { color: inherit; }
.strategy-final-header-v2 p { opacity: .86; }
.strategy-final-header-v2 .strategy-final-actions { align-items: end; }
.strategy-scope-control { display: grid; gap: 4px; color: #fff; font-size: 12px; font-weight: 700; }
.strategy-scope-control select { min-width: 170px; height: 40px; padding: 0 10px; border: 1px solid rgba(255,255,255,.6); border-radius: 6px; color: var(--strategy-ink); background: #fff; font: inherit; }
.strategy-final-toolbar-v2 {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(220px, .8fr);
  gap: 9px;
  align-items: end;
  padding: 11px;
  background: #f6fbfc;
  border: 1px solid #b9d7dd;
}
.strategy-final-toolbar-v2 label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--strategy-muted);
  font-size: 12px;
  font-weight: 700;
}
.strategy-final-toolbar-v2 label.search { align-self: end; }
.strategy-final-toolbar-v2 input,
.strategy-final-toolbar-v2 select {
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #abc8d1;
  border-radius: 6px;
  color: var(--strategy-ink);
  background: #fff;
  font: inherit;
}
.strategy-final-toolbar-v2 .sort-v2 {
  padding: 6px;
  border: 1px solid #d5b36a;
  border-radius: 7px;
  background: #fff8e8;
  color: #7a5a15;
}
.strategy-final-toolbar-v2 .sort-v2 select { border-color: #d5b36a; }
.strategy-status-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid #c9dde3;
  border-radius: 8px;
  background: #fff;
}
.strategy-status-chip {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #c9dde3;
  border-radius: 7px;
  color: var(--strategy-ink);
  background: #f8fcfd;
  text-align: left;
  cursor: pointer;
}
.strategy-status-chip strong { font-size: 21px; line-height: 1; }
.strategy-status-chip span { overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.strategy-status-chip.active { outline: 2px solid var(--strategy-teal); outline-offset: 1px; }
.strategy-status-chip.chip-待观察 { background: #f4fafb; border-color: #b6d9df; }
.strategy-status-chip.chip-可建策 { background: #f8f5ff; border-color: #d5c7ee; }
.strategy-status-chip.chip-执行中 { background: #f1fbf5; border-color: #b6ddc5; }
.strategy-status-chip.chip-待复盘 { background: #fff9ec; border-color: #eed49d; }
.strategy-status-chip.chip-需重点关注 { background: #fff4f2; border-color: #e6b2ad; }
.strategy-status-chip.chip-已稳定 { background: #f2faf5; border-color: #b8d8c5; }
.strategy-status-chip.chip-all { background: #eef8fb; border-color: #a9d5df; }
.strategy-week-chips { background: #fff; }
.strategy-week-chips .strategy-status-chip { background: #f8fcfd; }
.strategy-week-chips .strategy-status-chip:first-child { background: #eef8fb; border-color: #a9d5df; }
.strategy-work-reminders {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5d5b1;
  border-radius: 8px;
  background: #fffaf1;
}
.strategy-work-reminders > div,
.strategy-work-reminders > button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 12px;
  border-left: 3px solid #d49a37;
  background: rgba(255, 255, 255, .72);
}
.strategy-work-reminders > button {
  appearance: none;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.strategy-work-reminders > button:hover,
.strategy-work-reminders > button.active {
  background: #fff3d8;
  outline: 2px solid #d49a37;
  outline-offset: -2px;
}
.strategy-work-reminders strong { font-size: 21px; color: #9b691c; }
.strategy-work-reminders span { color: var(--strategy-muted); font-size: 13px; overflow-wrap: anywhere; }
.strategy-active-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #c9dde3;
  border-radius: 7px;
  background: #f8fcfd;
  color: var(--strategy-muted);
  font-size: 13px;
}
.strategy-active-filter span { min-width: 0; overflow-wrap: anywhere; }
.strategy-active-filter button {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid #9fc5ce;
  border-radius: 5px;
  color: var(--strategy-ink);
  background: #fff;
  cursor: pointer;
}
.strategy-final-grid-v2 { grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 12px; align-items: stretch; }
.strategy-final-main-tabs { display: flex; gap: 4px; padding: 0 8px; border: 1px solid #cbbfe2; border-radius: 8px 8px 0 0; background: #f8f5ff; }
.strategy-final-main-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 16px; border: 0; border-bottom: 3px solid transparent; color: var(--strategy-muted); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.strategy-final-main-tabs button.active { color: #634e9f; border-bottom-color: #8068b6; }
.strategy-final-main-tabs button span { padding: 2px 6px; border-radius: 999px; color: #8b6113; background: #fff1d3; font-size: 12px; }
.strategy-final-overview-panel,
.strategy-final-week-panel { min-width: 0; overflow: hidden; border: 1px solid #cbbfe2; border-radius: 0 0 9px 9px; background: #fff; }
.strategy-final-list-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 13px 15px; border-bottom: 1px solid #e1d9ef; background: #fbfaff; }
.strategy-final-list-header h2 { margin: 0; font-size: 18px; }
.strategy-final-list-header p { margin: 4px 0 0; color: var(--strategy-muted); font-size: 12px; }
.strategy-final-list-header > span { flex: 0 0 auto; color: #634e9f; font-size: 13px; font-weight: 700; }
.strategy-final-overview-list,
.strategy-final-week-list { display: grid; gap: 8px; min-width: 0; padding: 10px; background: #fdfcff; }
.strategy-final-overview-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(280px, 2fr) minmax(420px, 3.2fr) minmax(200px, 1.4fr); gap: 10px; align-items: center; min-width: 0; padding: 11px 12px; border: 1px solid #d8d0e9; border-left: 5px solid #8aa8b5; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.strategy-final-overview-row > * { min-width: 0; }
.strategy-final-overview-row:hover,
.strategy-final-overview-row:focus-visible { border-color: #8068b6; box-shadow: 0 5px 16px rgba(99, 78, 159, .11); outline: 0; transform: translateY(-1px); }
.strategy-final-overview-row.risk-green { border-color: #75b88b; border-left-color: #2f8f62; background: #dff3e4; }
.strategy-final-overview-row.risk-yellow { border-color: #d8bd58; border-left-color: #ae7e00; background: #fff2b8; }
.strategy-final-overview-row.risk-orange { border-color: #e0a15c; border-left-color: #d25f00; background: #ffd9a8; }
.strategy-final-overview-row.risk-red { border-color: #dc8d85; border-left-color: #c63c32; background: #ffd9d5; }
.strategy-final-overview-identity { display: block; min-width: 0; }
.strategy-final-overview-identity > div:first-child { min-width: 0; padding-right: 0; }
.strategy-final-overview-identity h3 { margin: 0; overflow-wrap: anywhere; font-size: 16px; }
.strategy-final-overview-identity p { margin: 3px 0 0; color: var(--strategy-muted); font-size: 12px; overflow-wrap: anywhere; }
.strategy-final-overview-metrics span,
.strategy-final-overview-highlights span { color: var(--strategy-muted); font-size: 11px; }
.strategy-final-overview-metrics span { font-size: 10px; white-space: nowrap; }
.strategy-final-overview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.strategy-final-overview-metrics > div { display: grid; gap: 4px; min-width: 0; padding: 7px 8px; border-radius: 6px; background: #f3f9fb; }
.strategy-final-overview-metrics strong { min-width: 0; overflow-wrap: anywhere; white-space: normal; font-size: 13px; }
.strategy-final-overview-highlights { display: grid; gap: 4px; min-width: 0; }
.strategy-final-overview-highlights > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px; min-width: 0; padding: 3px 0; border-bottom: 1px dashed #e6e0ef; }
.strategy-final-overview-highlights strong { min-width: 0; overflow-wrap: anywhere; display: block; font-size: 12px; }
.strategy-final-overview-footer { display: grid; gap: 8px; min-width: 0; padding-left: 12px; border-left: 3px solid #d49a37; font-size: 12px; }
.strategy-final-overview-status,
.strategy-final-overview-note { display: grid; gap: 3px; min-width: 0; }
.strategy-final-overview-footer span { min-width: 0; color: var(--strategy-muted); overflow-wrap: anywhere; }
.strategy-final-overview-footer strong { min-width: 0; overflow-wrap: anywhere; display: block; color: #7a5a15; }
.strategy-final-overview-note { padding: 5px 7px; border: 1px solid rgba(212, 154, 55, .35); border-radius: 5px; background: rgba(255, 250, 235, .72); }
.strategy-final-overview-note strong { color: var(--strategy-ink); font-weight: 600; }
.strategy-statistics-scope-note { display: block; margin-top: 5px; color: #5d4a8d; font-weight: 700; }
.strategy-final-week-header { background: #f4fafb; border-bottom-color: #c9dde3; }
.strategy-final-week-batch { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.strategy-final-week-batch label { display: inline-flex; align-items: center; gap: 6px; color: var(--strategy-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.strategy-final-week-batch input,
.strategy-final-week-select input { width: 16px; height: 16px; margin: 0; accent-color: var(--strategy-teal); }
.strategy-final-week-list { background: #f8fcfd; }
.strategy-final-week-row { min-width: 0; overflow: hidden; border: 1px solid #b9d9de; border-left: 5px solid #b8cbd3; border-radius: 8px; background: #fff; }
.strategy-final-week-row.is-pending { border-left-color: #d6a923; }
.strategy-final-week-row.is-selected { border-color: #14959b; box-shadow: 0 0 0 2px rgba(20, 149, 155, .13); }
.strategy-final-week-row-head { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 9px 11px; border-bottom: 1px solid #d6e9eb; background: #f1fafb; }
.strategy-final-week-select { display: inline-flex; align-items: center; justify-content: center; width: 26px; min-width: 26px; }
.strategy-final-week-student { display: grid; justify-items: start; gap: 2px; min-width: 0; padding: 0; border: 0; color: var(--strategy-ink); background: transparent; text-align: left; cursor: pointer; }
.strategy-final-week-student:hover strong { color: var(--strategy-teal); text-decoration: underline; text-underline-offset: 3px; }
.strategy-final-week-student strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.strategy-final-week-student span { overflow: hidden; color: var(--strategy-muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.strategy-final-week-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.strategy-final-week-actions .record-status { padding: 4px 7px; border-radius: 5px; background: #e8f4f6; font-size: 12px; font-weight: 700; white-space: nowrap; }
.strategy-final-week-actions .status-confirmed { color: #1d775d; background: #e5f6ed; }
.strategy-final-week-actions .status-returned { color: #a14b24; background: #fff0e3; }
.strategy-final-week-actions .status-pending { color: #a13e39; background: #fff0ef; }
.strategy-final-week-actions .status-missing { color: #9b3c35; background: #ffe6e3; }
.strategy-final-week-meta { display: flex; gap: 7px 14px; flex-wrap: wrap; padding: 7px 11px; color: var(--strategy-muted); font-size: 12px; }
.strategy-final-week-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; padding: 0 11px 10px; min-width: 0; }
.strategy-final-week-fields > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px; align-items: baseline; min-width: 0; padding: 4px 0; border-bottom: 1px solid #edf3f4; }
.strategy-final-week-fields > div.is-wide { grid-column: 1 / -1; }
.strategy-final-week-fields span { color: var(--strategy-muted); font-size: 11px; white-space: nowrap; }
.strategy-final-week-fields strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.strategy-final-week-empty { padding: 15px 11px; color: var(--strategy-muted); font-size: 13px; }
.strategy-final-week-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 9px 11px; border-bottom: 1px solid #cfe0e4; background: #f3fafb; }
.strategy-final-week-card-title { display: grid; grid-template-columns: auto max-content minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.strategy-final-week-card-title .strategy-final-week-student { display: grid; gap: 2px; min-width: 0; padding: 0; border: 0; color: var(--strategy-ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.strategy-final-week-card-title .strategy-final-week-student strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.strategy-final-week-card-title .strategy-final-week-student span { overflow: hidden; color: var(--strategy-muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.strategy-final-week-period { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 0; border: 0; color: var(--strategy-muted); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.strategy-final-week-period strong { flex: 0 0 auto; color: var(--strategy-ink); font-size: 15px; }
.strategy-final-week-period span { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.strategy-final-week-card-head .strategy-final-week-actions { flex: 0 0 auto; }
.strategy-final-week-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; background: #fff; }
.strategy-final-week-section { display: grid; align-content: start; gap: 7px; min-width: 0; min-height: 0; padding: 10px 11px; border-left: 4px solid #b9d9de; }
.strategy-final-week-section + .strategy-final-week-section { border-left-color: #a6d4da; }
.strategy-final-week-section.section-evidence { border-left-color: #8fc9d2; }
.strategy-final-week-section.section-state { border-left-color: #d5ae59; }
.strategy-final-week-section.section-plan { border-left-color: #b297d5; }
.strategy-final-week-section h3 { margin: 0; font-size: 13px; line-height: 1.3; }
.strategy-final-week-field { display: flex; grid-template-columns: max-content minmax(0, 1fr); gap: 5px; align-items: baseline; min-width: 0; padding: 3px 0; border-bottom: 1px solid #edf3f4; }
.strategy-final-week-field > span,
.strategy-final-week-score-grid span { flex: 0 0 auto; max-width: 7em; color: var(--strategy-muted); font-size: 11px; white-space: nowrap; }
.strategy-final-week-field > strong,
.strategy-final-week-score-grid strong { min-width: 0; overflow: hidden; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.strategy-final-week-field.is-tall { align-items: start; }
.strategy-final-week-field.is-tall > strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.strategy-final-week-field.is-tags { align-items: start; }
.strategy-final-week-field.is-tags > div { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.strategy-final-week-field.is-tags em,
.strategy-final-week-field.is-tags small { display: inline-flex; max-width: 100%; padding: 2px 5px; border-radius: 999px; color: #28767c; background: #e8f4f6; font-size: 11px; line-height: 1.3; font-style: normal; overflow-wrap: anywhere; }
.strategy-final-week-field.is-tags small { color: var(--strategy-muted); background: #f3f7f8; }
.strategy-final-week-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.strategy-final-week-field-pair .strategy-final-week-field { grid-template-columns: 1fr; gap: 3px; }
.strategy-final-week-score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 8px; min-width: 0; padding: 3px 0; border-bottom: 1px solid #edf3f4; }
.strategy-final-week-score-grid > div { display: grid; gap: 4px; min-width: 0; }
.strategy-final-week-score-grid strong { font-size: 12px; }
.strategy-final-week-teacher { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; min-width: 0; padding-top: 3px; color: #765c24; font-size: 12px; }
.strategy-final-week-teacher strong { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.strategy-final-card-v2 {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  border-left-width: 5px;
  overflow: hidden;
}
.strategy-final-card-v2.risk-green { background: #f3fbf6; border-color: #abd6b9; border-left-color: #2f8f62; }
.strategy-final-card-v2.risk-yellow { background: #fff8c2; border-color: #d9b83d; border-left-color: #ae7e00; }
.strategy-final-card-v2.risk-orange { background: #ffe0b5; border-color: #df9141; border-left-color: #d25f00; }
.strategy-final-card-v2.risk-red { background: #fff0ee; border-color: #dfaaa5; border-left-color: #c63c32; }
.strategy-final-card-v2 .v2-card-head,
.strategy-final-card-v2 .v2-card-flags,
.strategy-final-card-v2 .v2-card-primary,
.strategy-final-card-v2 .v2-card-footer { min-width: 0; }
.strategy-final-card-v2 .v2-card-head { display: flex; justify-content: space-between; gap: 10px; }
.strategy-final-card-v2 .v2-card-head h3 { margin: 0; font-size: 19px; }
.strategy-final-card-v2 .v2-card-head p { margin: 3px 0 0; color: var(--strategy-muted); font-size: 13px; overflow-wrap: anywhere; }
.strategy-final-card-v2 .v2-status,
.strategy-final-card-v2 .v2-fill-ok,
.strategy-final-card-v2 .v2-fill-pending,
.strategy-final-card-v2 .v2-fill-missing,
.strategy-final-card-v2 .v2-risk { display: inline-block; max-width: 100%; padding: 4px 7px; border-radius: 5px; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.strategy-final-card-v2 .v2-status { color: #08757b; background: #e1f4f4; }
.strategy-final-card-v2 .v2-fill-ok { color: #2d7653; background: #e4f5eb; }
.strategy-final-card-v2 .v2-fill-pending { color: #8b6113; background: #fff1d3; }
.strategy-final-card-v2 .v2-fill-missing { color: #9b3c35; background: #ffe6e3; }
.strategy-final-card-v2 .v2-risk { color: #587080; background: #eef3f6; }
.strategy-final-card-v2 .v2-risk-pill-red { color: #a9332d; background: #ffe4e1; }
.strategy-final-card-v2 .v2-risk-pill-orange { color: #853f00; background: #ffc170; }
.strategy-final-card-v2 .v2-risk-pill-yellow { color: #704f00; background: #ffea72; }
.strategy-final-card-v2 .v2-risk-pill-green { color: #286848; background: #e3f4e9; }
.strategy-final-card-v2 .v2-card-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.strategy-final-card-v2 .v2-card-primary { display: grid; gap: 3px; padding: 9px 10px; border-radius: 6px; background: #f3f9fb; }
.strategy-final-card-v2 .v2-card-primary strong,
.strategy-final-card-v2 .v2-card-primary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strategy-final-card-v2 .v2-card-primary span { color: var(--strategy-muted); font-size: 12px; }
.strategy-final-card-v2 .v2-card-goals { display: grid; gap: 5px; }
.strategy-final-card-v2 .v2-card-goals span { min-width: 0; padding: 6px 8px; border-left: 3px solid #8e73bf; border-radius: 4px; background: #f8f5ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strategy-final-card-v2 .v2-card-metrics { display: grid; gap: 5px; margin: 0; }
.strategy-final-card-v2 .v2-card-metrics > div { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 7px; }
.strategy-final-card-v2 .v2-card-metrics dt { color: var(--strategy-muted); font-size: 12px; }
.strategy-final-card-v2 .v2-card-metrics dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.strategy-final-card-v2 .v2-card-footer { display: grid; gap: 4px; padding-top: 8px; border-top: 1px dashed var(--strategy-line); font-size: 12px; }
.strategy-final-card-v2 .v2-card-footer span { color: var(--strategy-muted); }
.strategy-final-card-v2 .v2-card-footer strong { color: #a13e36; overflow-wrap: anywhere; }
.strategy-final-card-latest { gap: 8px; }
.strategy-final-card-latest { height: 340px; box-sizing: border-box; grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.strategy-final-card-latest .v2-card-head { align-items: start; }
.strategy-final-card-latest .v2-card-head > span { flex: 0 0 auto; }
.v2-week-summary { display: flex; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 6px; background: #f3f9fb; color: var(--strategy-muted); font-size: 12px; }
.v2-week-summary strong { color: var(--strategy-ink); font-size: 13px; }
.v2-week-summary span { text-align: right; }
.strategy-final-card-latest .v2-week-summary { min-height: 42px; box-sizing: border-box; align-items: center; overflow: hidden; }
.strategy-final-card-latest .v2-week-summary strong,
.strategy-final-card-latest .v2-week-summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-week-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px 10px; min-height: 0; align-content: stretch; }
.v2-week-preview-field { min-width: 0; min-height: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px; align-items: center; overflow: hidden; }
.v2-week-preview-field.wide { grid-column: 1 / -1; }
.v2-week-preview-field span { color: var(--strategy-muted); font-size: 12px; white-space: nowrap; }
.v2-week-preview-field strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.v2-week-preview-field.wide strong { display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.v2-week-teacher-preview { min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px; align-items: center; min-height: 31px; padding-top: 6px; border-top: 1px dashed var(--strategy-line); }
.v2-week-teacher-preview span { color: #856321; font-size: 12px; font-weight: 700; white-space: nowrap; }
.v2-week-teacher-preview strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.v2-week-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.v2-week-field { min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px; align-items: baseline; }
.v2-week-field.wide { grid-column: 1 / -1; }
.v2-week-field span { color: var(--strategy-muted); font-size: 12px; white-space: nowrap; }
.v2-week-field strong { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.v2-week-teacher { padding-top: 7px; border-top: 1px dashed var(--strategy-line); }
.v2-week-teacher > span { display: block; margin-bottom: 5px; color: #856321; font-size: 12px; font-weight: 700; }
.v2-week-empty { padding: 12px 0 4px; color: var(--strategy-muted); font-size: 13px; }
.v2-cycle-selectors { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 8px; min-width: min(470px, 48vw); }
.v2-cycle-current { display: grid; gap: 3px; margin-top: 7px; }
.v2-cycle-current span { color: var(--strategy-muted); font-size: 13px; }

.strategy-workspace-v2 { gap: 14px; }
.strategy-workspace-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; align-items: stretch; }
.strategy-workspace-head-v2 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; background: #0f6570; border-color: #0f6570; color: #fff; }
.strategy-workspace-head-v2 h1,
.strategy-workspace-head-v2 p,
.strategy-workspace-head-v2 .back { color: #fff; }
.strategy-workspace-head-v2 .back { padding: 8px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: rgba(255,255,255,.08); }
.workspace-head-period { display: grid; gap: 4px; min-width: 180px; padding: 9px 11px; border-left: 3px solid #f0c76d; color: #fff; background: rgba(255,255,255,.08); }
.workspace-head-period span { font-size: 12px; opacity: .9; }
.workspace-head-period small { font-size: 11px; opacity: .82; }
.strategy-workspace-dashboard,
.strategy-workspace-facts { font-family: var(--ui-font-family, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif); font-size: 14px; line-height: 1.5; }
.strategy-workspace-dashboard { display: grid; gap: 9px; min-width: 0; height: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #a9d5dc; border-radius: 9px; background: #eef9fa; }
.strategy-workspace-dashboard .workspace-dashboard-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.strategy-workspace-dashboard .workspace-dashboard-title h2,
.strategy-workspace-facts h2 { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 700; }
.workspace-state { padding: 6px 9px; border-radius: 5px; color: #0d6d76; background: #d8f0f2; font-weight: 700; }
.workspace-risk-note-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; order: 2; }
.workspace-risk-control,
.workspace-risk-note { display: grid; gap: 7px; min-width: 0; padding: 9px; border: 1px solid #a9d5dc; border-radius: 7px; background: #f4fbfc; }
.workspace-risk-control-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.workspace-risk-label { color: var(--strategy-muted); font-size: 12px; font-weight: 700; }
.workspace-risk-options { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 5px; }
.workspace-risk-option { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid #c9dde3; border-radius: 5px; background: #fff; font-size: 12px; cursor: pointer; white-space: nowrap; }
.workspace-risk-option input { margin: 0; accent-color: currentColor; }
.workspace-risk-option input[type="radio"] { appearance: auto; width: 13px; min-width: 13px; height: 13px; min-height: 13px; margin: 0; padding: 0; border: 0; border-radius: 50%; box-sizing: border-box; flex: 0 0 13px; }
.workspace-risk-option:has(input:checked) { font-weight: 700; outline: 2px solid currentColor; outline-offset: -1px; }
.workspace-risk-option.risk-green { color: #23724a; }
.workspace-risk-option.risk-yellow { color: #876300; }
.workspace-risk-option.risk-orange { color: #a44d00; }
.workspace-risk-option.risk-red { color: #a9332d; }
.workspace-risk-control small { min-height: 16px; color: var(--strategy-muted); font-size: 11px; }
.workspace-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.workspace-dashboard-grid > div { display: grid; gap: 4px; min-width: 0; padding: 7px; border: 1px solid #c8e0e4; border-radius: 7px; background: #fff; }
.workspace-dashboard-grid .workspace-dashboard-wide { grid-column: 1 / -1; }
.workspace-dashboard-grid span { color: var(--strategy-muted); font-size: 12px; }
.workspace-dashboard-grid strong { overflow-wrap: anywhere; }
.workspace-dashboard-grid select,
.workspace-dashboard-grid input,
.workspace-dashboard-grid textarea { width: 100%; min-width: 0; min-height: 32px; padding: 5px 7px; border: 1px solid #b9ccd6; border-radius: 5px; background: #fff; font: inherit; box-sizing: border-box; }
.workspace-risk-note textarea { width: 100%; min-width: 0; min-height: 108px; max-height: 320px; box-sizing: border-box; padding: 7px 9px; border: 1px solid #b9ccd6; border-radius: 5px; background: #fff; font: inherit; resize: none; overflow-y: hidden; }
.risk-bg-red .strategy-workspace-dashboard { border-color: #c96b62; background: #ffd7d3; }
.risk-bg-orange .strategy-workspace-dashboard { border-color: #d98732; background: #ffd39f; }
.risk-bg-yellow .strategy-workspace-dashboard { border-color: #c9a52a; background: #ffef9f; }
.risk-bg-green .strategy-workspace-dashboard { border-color: #75b88b; background: #d5f0dc; }
.risk-bg-red .workspace-risk-note-row > *, .risk-bg-red .workspace-risk-control { border-color: #c96b62; background: #ffe5e2; }
.risk-bg-orange .workspace-risk-note-row > *, .risk-bg-orange .workspace-risk-control { border-color: #d98732; background: #ffe3bf; }
.risk-bg-yellow .workspace-risk-note-row > *, .risk-bg-yellow .workspace-risk-control { border-color: #c9a52a; background: #fff5c4; }
.risk-bg-green .workspace-risk-note-row > *, .risk-bg-green .workspace-risk-control { border-color: #75b88b; background: #e4f6e8; }
.strategy-workspace-facts { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 9px; min-width: 0; min-height: 0; height: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #d4dde2; border-radius: 9px; background: #fff; overflow: hidden; }
.strategy-workspace-facts > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.v2-fact-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.v2-fact-head-actions .compact { min-height: 30px; padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.strategy-workspace-facts h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.strategy-workspace-dashboard .v2-section-kicker,
.strategy-workspace-facts .v2-section-kicker,
.strategy-workspace-facts header p { margin: 4px 0 0; color: var(--strategy-muted); font-size: 12px; line-height: 1.5; }
.fact-total { align-self: start; padding: 6px 9px; border-radius: 5px; color: #506a78; background: #eff3f5; white-space: nowrap; }
.v2-facts-layout { display: block; min-height: 0; height: 100%; }
.v2-fact-list { display: grid; gap: 5px; height: 100%; min-height: 0; max-height: 100%; overflow-y: auto; align-content: start; margin: 0; padding: 0 3px 0 0; list-style: none; }
.v2-fact-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 7px; align-items: center; height: 44px; min-height: 44px; max-height: 44px; box-sizing: border-box; padding: 6px; border-bottom: 1px dashed #d6e0e4; }
.fact-kind { padding: 3px 5px; border-radius: 4px; color: #27717b; background: #e2f4f5; font-size: 12px; text-align: center; }
.v2-fact-list li > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-fact-list .empty { display: block; color: var(--strategy-muted); }
.strategy-workspace-v2 .strategy-goal-slot { padding: 0; border: 0; background: transparent; }
.strategy-workspace-v2 .strategy-workspace-tabs { padding: 0 8px; border: 1px solid #cbbfe2; border-radius: 8px 8px 0 0; background: #f8f5ff; }
.strategy-workspace-v2 .strategy-workspace-tabs button.active { color: #634e9f; border-bottom-color: #8068b6; }
.strategy-workspace-tab-content { min-width: 0; }
.v2-week-records-layout { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.v2-week-records-layout > .strategy-workspace-section { min-width: 0; }
.v2-week-list-view { gap: 12px; }
.v2-week-list-view > .v2-section-weekly { gap: 14px; }
.v2-week-list-filters { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(150px, .7fr) auto; align-items: end; gap: 8px; min-width: min(100%, 560px); }
.v2-week-list-filters label { display: grid; gap: 4px; min-width: 0; color: var(--strategy-muted); font-size: 12px; font-weight: 700; }
.v2-week-list-filters select { width: 100%; min-width: 0; min-height: 36px; padding: 0 9px; border: 1px solid #b9ccd6; border-radius: 6px; background: #fff; color: var(--strategy-ink); font: inherit; font-size: 13px; }
.v2-week-list-filters > span { padding: 9px 0; color: var(--strategy-muted); font-size: 12px; white-space: nowrap; }
.v2-week-list { display: grid; gap: 10px; min-width: 0; }
.v2-week-list-item { min-width: 0; overflow: hidden; border: 1px solid #b9d9de; border-radius: 8px; background: #fff; }
.v2-week-list-item-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 9px 11px; border-bottom: 1px solid #d6e9eb; background: #f1fafb; }
.v2-week-list-open { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 8px; min-width: 0; padding: 0; border: 0; color: var(--strategy-ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.v2-week-list-open:hover strong { color: var(--strategy-teal); text-decoration: underline; text-underline-offset: 3px; }
.v2-week-list-open:focus-visible { outline: 2px solid rgba(20, 149, 155, .28); outline-offset: 2px; border-radius: 4px; }
.v2-week-list-open strong { white-space: nowrap; font-size: 15px; }
.v2-week-list-open span,
.v2-week-list-open small { min-width: 0; overflow: hidden; color: var(--strategy-muted); text-overflow: ellipsis; white-space: nowrap; }
.v2-week-list-open span { font-size: 12px; }
.v2-week-list-open small { font-size: 11px; }
.v2-week-list-item-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex: 0 0 auto; min-width: 0; }
.v2-week-list-item-header-actions .record-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; background: #e8f4f6; font-size: 12px; white-space: nowrap; }
.v2-week-list-item-header-actions .status-confirmed { color: #1d775d; background: #e5f6ed; }
.v2-week-list-item-header-actions .status-returned { color: #a14b24; background: #fff0e3; }
.v2-week-list-item-header-actions .status-pending { color: #a13e39; background: #fff0ef; }
.v2-week-list-item-header-actions .v2-week-list-confirm,
.v2-week-list-item-header-actions .v2-week-list-edit { min-height: 30px; padding: 4px 9px; }
.v2-week-list-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; }
.v2-week-list-group { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 10px 11px; }
.v2-week-list-group + .v2-week-list-group { border-left: 4px solid #b9d9de; }
.v2-week-list-group:nth-child(2) { border-left-color: #8fc9d2; }
.v2-week-list-group:nth-child(3) { border-left-color: #d9b668; }
.v2-week-list-group:nth-child(4) { border-left-color: #b79ad7; }
.v2-week-list-group:nth-child(5) { border-left-color: #e7d5ae; }
.v2-week-list-group h3 { margin: 0; color: var(--strategy-ink); font-size: 13px; line-height: 1.3; }
.v2-week-list-group-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; min-width: 0; }
.v2-week-list-state-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(128px, 1fr); grid-column: 1 / -1; gap: 8px; align-items: start; min-width: 0; }
.v2-week-list-state-row > .v2-week-list-checks { min-width: 0; }
.v2-week-list-score-triangle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; min-width: 0; padding: 0; border: 0; background: transparent; }
.v2-week-list-score-triangle > .v2-week-list-field:first-child { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 112px; }
.v2-week-list-score-triangle > .v2-week-list-field { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 4px 7px; border: 0; border-radius: 6px; }
.v2-week-list-score-triangle > .v2-week-list-field > span,
.v2-week-list-score-triangle > .v2-week-list-field > strong { color: inherit; }
.v2-week-list-score-triangle > .score-green { color: #246b47; background: #e4f5eb; }
.v2-week-list-score-triangle > .score-yellow { color: #765300; background: #fff1b5; }
.v2-week-list-score-triangle > .score-orange { color: #8b4800; background: #ffd9a8; }
.v2-week-list-score-triangle > .score-red { color: #9b322b; background: #ffe0dd; }
.v2-week-list-score-triangle > .score-none { color: var(--strategy-muted); background: #f4f7f8; }
.v2-week-list-state-row .v2-week-list-field { min-width: 0; }
.v2-week-list-field { display: flex; align-items: baseline; gap: 5px; min-width: 0; padding: 3px 0; border-bottom: 1px solid #edf3f4; }
.v2-week-list-field.is-wide { grid-column: 1 / -1; }
.v2-week-list-field > span { flex: 0 0 auto; max-width: 7em; color: var(--strategy-muted); font-size: 11px; white-space: nowrap; }
.v2-week-list-field > strong { min-width: 0; overflow: hidden; font-size: 12px; line-height: 1.4; }
.v2-week-list-field > strong.is-clamp { display: block; overflow: visible; overflow-wrap: anywhere; }
.v2-week-list-checks { align-items: flex-start; }
.v2-week-list-checks > div { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.v2-week-list-checks > div,
.v2-week-compact-checks > div {
  flex: 1 1 0;
  width: 0;
}
.v2-week-list-checks em,
.v2-week-list-checks small { padding: 2px 5px; border-radius: 999px; color: #28767c; background: #e8f4f6; font-size: 11px; font-style: normal; line-height: 1.3; white-space: nowrap; }
.v2-week-list-checks small { color: var(--strategy-muted); background: #f4f7f8; }
.v2-week-list-checks > div > em,
.v2-week-list-checks > div > small,
.v2-week-compact-checks > div > em,
.v2-week-compact-checks > div > small,
.weekly-readonly-checks > div > span,
.weekly-readonly-checks > div > em {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}
.v2-week-list-empty { padding: 22px 12px; }
.v2-week-detail-heading { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.v2-week-detail-heading > div { min-width: 0; }
.v2-week-detail-back { flex: 0 0 auto; margin-top: 1px; }
.strategy-workspace-section { display: grid; gap: 12px; min-width: 0; padding: 16px; border: 1px solid #cbbfe2; border-radius: 0 0 9px 9px; background: #fff; }
.v2-section-weekly { border-color: #a9d5dc; background: #f5fcfc; }
.v2-section-cycle { border-color: #cbbfe2; background: #fbf9ff; }
.v2-section-semester { border-color: #dfc38a; background: #fffaf0; }
.v2-tab-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.v2-tab-header h2 { margin: 0; font-size: 21px; }
.v2-tab-header p { margin: 4px 0 0; color: var(--strategy-muted); overflow-wrap: anywhere; }
.v2-tab-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2-tab-actions > button { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; min-height: 36px; padding: 0 12px; border: 1px solid #b9ccd6; border-radius: 6px; color: var(--strategy-ink); background: #fff; font: inherit; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; }
.v2-tab-actions > button:hover { border-color: var(--strategy-teal); }
.v2-tab-actions > button:focus-visible { outline: 2px solid rgba(20, 149, 155, .22); outline-offset: 1px; }
.v2-tab-actions > .primary { color: #fff; border-color: var(--strategy-teal); background: var(--strategy-teal); }
.v2-tab-actions > .danger { color: #fff; border-color: #c8453c; background: #c8453c; }
.v2-tab-actions label,
.v2-tab-header > label,
.v2-cycle-form label,
.v2-semester-form label { display: grid; gap: 5px; min-width: 150px; color: var(--strategy-muted); font-size: 12px; font-weight: 700; }
.v2-section-weekly .v2-tab-actions { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(112px, auto)); align-items: end; min-width: 0; flex: 1 1 760px; }
.v2-section-weekly .v2-week-selectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.v2-section-weekly .v2-tab-actions > button { width: 100%; min-width: 0; }
.v2-section-weekly .v2-tab-header { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); align-items: start; }
.v2-section-weekly .v2-tab-header > :first-child,
.v2-section-weekly .v2-week-selectors > label { min-width: 0; }
.v2-tab-actions select,
.v2-tab-header select,
.v2-cycle-form select,
.v2-semester-form select,
.v2-cycle-form textarea,
.v2-semester-form textarea,
.v2-teacher-week-panel select,
.v2-teacher-week-panel textarea { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #b9ccd6; border-radius: 6px; background: #fff; font: inherit; }
.v2-week-status-line { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.v2-week-status-line > span { padding: 5px 8px; border-radius: 5px; background: #e8f4f6; font-size: 13px; }
.record-status { font-weight: 700; }
.v2-week-layout { display: grid; grid-template-columns: 1fr; gap: 0; }
.v2-week-layout > div { min-width: 0; padding: 0; border: 0; background: transparent; }
.v2-week-student-panel { display: block; min-width: 0; }
.v2-week-student-panel > h3 { margin: 0 0 8px; font-size: 16px; }
.v2-week-student-panel .weekly-review-student-section { gap: 5px; padding: 7px 8px; border-radius: 7px; }
.v2-week-student-panel .weekly-review-student-section header h3 { font-size: 14px; }
.v2-week-student-panel .weekly-review-student-section header span { font-size: 11px; }
.v2-week-student-panel .weekly-review-fields,
.v2-week-student-panel .weekly-review-student-section label { gap: 4px; }
.v2-week-student-panel .weekly-review-student-section label { font-size: 12px; }
.v2-week-student-panel .weekly-review-student-section input,
.v2-week-student-panel .weekly-review-student-section select,
.v2-week-student-panel .weekly-review-student-section textarea { min-height: 31px; padding: 5px 7px; font-size: 13px; }
.v2-week-student-panel .weekly-review-student-section textarea { min-height: 50px; }
.v2-week-student-panel .form-grid { gap: 6px; }
.v2-week-student-panel .weekly-readonly-checks { gap: 4px; }
.v2-week-student-panel .weekly-readonly-checks span,
.v2-week-student-panel .weekly-readonly-checks em { padding: 4px 6px; font-size: 12px; }
.v2-week-layout h3,
.v2-teacher-week-panel h3 { margin: 0 0 9px; font-size: 17px; }
.v2-week-goals { display: grid; gap: 8px; }
.v2-week-goal { display: grid; gap: 5px; padding: 10px; border-left: 4px solid #1598a4; border-radius: 6px; background: #eef9fa; }
.v2-week-goal span,
.v2-week-goal p { color: var(--strategy-muted); overflow-wrap: anywhere; }
.v2-week-goal p { margin: 0; }
.v2-week-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.v2-week-details > div { display: grid; gap: 3px; padding: 8px; border-radius: 5px; background: #f5f8f9; }
.v2-week-details strong { font-size: 12px; color: var(--strategy-muted); }
.v2-week-details span { overflow-wrap: anywhere; }
.v2-teacher-week-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-color: #e5c98e; background: #fff9ec; }
.v2-section-weekly > .v2-teacher-week-panel { margin-top: 12px; padding: 12px 0 0; border: 0; border-top: 1px solid #e5c98e; border-radius: 0; background: transparent; }
.v2-teacher-week-panel h3,
.v2-teacher-week-panel .v2-teacher-note,
.v2-teacher-week-panel .v2-confirm-hint { grid-column: 1 / -1; }
.v2-teacher-week-panel label { display: grid; gap: 4px; color: #765c24; font-size: 13px; font-weight: 700; }
.v2-teacher-week-panel select { min-height: 32px; padding: 5px 7px; }
.v2-teacher-week-panel textarea { min-height: 60px; padding: 6px 7px; resize: vertical; }
.v2-confirm-hint { margin: 0; color: #7b682e; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.v2-teacher-week-panel.is-locked select:disabled,
.v2-teacher-week-panel.is-locked textarea[readonly] { color: var(--strategy-ink); background: #f3f8f9; cursor: not-allowed; }
.v2-teacher-week-panel.is-editing { border-top-color: var(--strategy-teal); }
.v2-teacher-week-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid #e5c98e; }
.v2-week-toolbar { display: grid; grid-template-columns: minmax(340px, 1fr) auto; align-items: end; gap: 10px; }
.v2-week-toolbar .v2-week-select { display: grid; gap: 4px; min-width: 0; color: var(--strategy-muted); font-size: 12px; font-weight: 700; }
.v2-week-toolbar .v2-week-select > span { line-height: 1.2; }
.v2-week-toolbar .v2-week-select select { box-sizing: border-box; width: 100%; min-height: 36px; padding: 0 10px; }
.v2-week-toolbar-actions { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.v2-week-toolbar-actions > button { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; min-height: 36px; padding: 0 12px; border: 1px solid #b9ccd6; border-radius: 6px; color: var(--strategy-ink); background: #fff; font: inherit; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; }
.v2-week-toolbar-actions > button:hover { border-color: var(--strategy-teal); }
.v2-week-toolbar-actions > button:focus-visible { outline: 2px solid rgba(20, 149, 155, .22); outline-offset: 1px; }
.v2-week-toolbar-actions > .primary { color: #fff; border-color: var(--strategy-teal); background: var(--strategy-teal); }
.v2-week-toolbar-actions > .danger { color: #fff; border-color: #c8453c; background: #c8453c; }
.v2-week-compact-fields,
.v2-week-compact-edit-fields { display: grid; gap: 7px; min-width: 0; }
.v2-week-compact-group { display: grid; gap: 5px; min-width: 0; padding: 7px 0 2px; border-top: 1px solid #cfe0e4; }
.v2-week-compact-group:first-child { padding-top: 0; border-top: 0; }
.v2-week-compact-group > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.v2-week-compact-group > header strong { font-size: 14px; }
.v2-week-compact-group > header span { min-width: 0; overflow: hidden; color: var(--strategy-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.v2-week-compact-group-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px 7px; align-items: start; min-width: 0; }
.v2-week-compact-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; min-width: 0; }
.v2-week-compact-field { display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 6px 8px; border-bottom: 1px solid #deebee; background: rgba(244, 250, 251, .72); }
.v2-week-compact-field > span { flex: 0 0 auto; color: var(--strategy-muted); font-size: 12px; white-space: nowrap; }
.v2-week-compact-field > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.v2-week-compact-field > strong.is-clamp { display: -webkit-box; white-space: normal; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.v2-week-compact-field.is-wide { grid-column: span 2; }
.v2-week-compact-attachment-line { display: flex; align-items: baseline; gap: 7px; padding-top: 2px; color: var(--strategy-muted); font-size: 12px; }
.v2-week-compact-attachment-line strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--strategy-ink); }
.v2-week-compact-checks { align-items: center; }
.v2-week-compact-checks > div { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; overflow: hidden; }
.v2-week-compact-checks em,
.v2-week-compact-checks small { padding: 3px 6px; border-radius: 999px; background: #e8f4f6; color: #28767c; font-size: 12px; font-style: normal; white-space: nowrap; }
.v2-week-compact-edit-field { display: grid; gap: 4px; min-width: 0; }
.v2-week-compact-edit-field > span,
.v2-week-compact-edit-field > legend { color: #456a74; font-size: 12px; font-weight: 700; }
.v2-week-compact-edit-field input:not([type="checkbox"]),
.v2-week-compact-edit-field select,
.v2-week-compact-edit-field textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 34px; padding: 5px 7px; border: 1px solid #b9ccd6; border-radius: 5px; background: #fff; font: inherit; font-size: 13px; }
.v2-week-compact-edit-field textarea { min-height: 72px; resize: vertical; }
.v2-week-compact-edit-field select { height: 36px; min-height: 36px; align-self: start; }
.v2-week-compact-edit-field.is-wide { grid-column: span 2; }
.v2-week-compact-edit-fields fieldset { min-width: 0; margin: 0; padding: 6px 8px 8px; border: 1px solid #d7e5e8; border-radius: 6px; }
.v2-week-compact-edit-fields fieldset > div { display: flex; flex-wrap: wrap; gap: 7px 10px; }
.v2-week-compact-edit-fields fieldset label { display: inline-flex; align-items: center; gap: 4px; color: var(--strategy-ink); font-size: 12px; }
.v2-week-compact-single-check { display: flex; align-items: center; grid-template-columns: auto 1fr; gap: 6px; padding: 25px 7px 0; }
.v2-week-compact-single-check input { margin: 0; }
.v2-week-edit-target-grid,
.v2-week-edit-plan-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: start; min-width: 0; }
.v2-week-edit-target-grid > div,
.v2-week-edit-plan-grid > div { display: grid; min-width: 0; }
.v2-week-edit-target-grid > .v2-week-edit-main-goal { grid-column: span 5; }
.v2-week-edit-target-grid > .v2-week-edit-goal-type { grid-column: span 2; }
.v2-week-edit-target-grid > .v2-week-edit-completion { grid-column: span 1; }
.v2-week-edit-target-grid > .v2-week-edit-key-task { grid-column: span 2; }
.v2-week-edit-target-grid > .v2-week-edit-evidence-type { grid-column: span 2; }
.v2-week-edit-target-grid > .v2-week-edit-evidence-text { grid-column: span 10; }
.v2-week-edit-state-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: start; min-width: 0; }
.v2-week-edit-barriers { grid-column: span 4; min-height: 100%; }
.v2-week-edit-state-main { grid-column: span 8; display: grid; gap: 8px; min-width: 0; }
.v2-week-edit-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.v2-week-edit-career { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: start; min-width: 0; }
.v2-week-edit-career-options { grid-column: span 8; }
.v2-week-edit-career-note { grid-column: span 4; }
.v2-week-edit-plan-grid > .v2-week-edit-next-action { grid-column: span 5; }
.v2-week-edit-plan-grid > .v2-week-edit-self-reflection { grid-column: span 3; }
.v2-week-edit-support { grid-column: span 4; display: grid; gap: 5px; min-width: 0; }
.v2-week-edit-support-request { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: #456a74; font-size: 12px; font-weight: 700; }
.v2-week-edit-support-request input { margin: 0; }
.v2-week-edit-long textarea { min-height: 72px; }
.v2-week-edit-attachments { margin-top: 2px; }
.v2-week-compact-edit-attachments { padding-top: 3px; color: var(--strategy-muted); font-size: 12px; }
.v2-week-compact-edit-attachments strong { display: block; margin-bottom: 4px; color: var(--strategy-ink); }
.v2-inline-week-form { display: grid; gap: 10px; min-width: 0; }
.v2-inline-week-fields { min-width: 0; }
.v2-inline-week-form .weekly-review-confirmed-section { gap: 8px; padding: 10px 11px; }
.v2-inline-week-form .weekly-review-confirmed-section textarea { min-height: 58px; }
.v2-inline-week-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.v2-empty { padding: 30px 16px; border: 1px dashed #b9ccd6; border-radius: 7px; color: var(--strategy-muted); background: rgba(255,255,255,.65); text-align: center; }
.v2-deleted-history-empty { padding: 9px 2px; border: 0; background: transparent; text-align: left; }
.v2-cycle-metrics,
.v2-semester-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.v2-cycle-metrics > div,
.v2-semester-metrics > div { display: grid; gap: 5px; min-width: 0; padding: 11px; border: 1px solid #ddd1ee; border-radius: 7px; background: #fff; }
.v2-cycle-metrics strong,
.v2-semester-metrics strong { overflow-wrap: anywhere; }
.v2-cycle-metrics span,
.v2-semester-metrics span { color: var(--strategy-muted); font-size: 12px; overflow-wrap: anywhere; }
.v2-cycle-form,
.v2-semester-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.v2-cycle-form label:first-child,
.v2-semester-form label:first-child { grid-column: 1 / -1; }
.v2-cycle-form textarea,
.v2-semester-form textarea { min-height: 96px; resize: vertical; }
.v2-cycle-form .button-row,
.v2-semester-form .button-row,
.v2-semester-form .v2-confirm-hint { grid-column: 1 / -1; }
.v2-deleted-history { align-self: start; padding: 12px; border-color: #e3caca; background: #fffafa; }
.v2-deleted-history > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.v2-deleted-history h2 { margin: 0; font-size: 19px; }
.v2-deleted-history p { margin: 4px 0 0; color: var(--strategy-muted); overflow-wrap: anywhere; }
.v2-deleted-history-list { display: grid; gap: 9px; max-height: 360px; overflow: auto; padding-right: 2px; }
.v2-week-sidebar .v2-deleted-history { min-height: 0; }
.v2-week-sidebar .v2-deleted-history-list { max-height: none; min-height: 0; }
.v2-week-sidebar .v2-deleted-history-empty { display: grid; align-content: center; min-height: 120px; }
.v2-deleted-record { min-width: 0; padding: 11px 13px; border: 1px solid #eadede; border-radius: 7px; background: #fff; }
.v2-deleted-record-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.v2-deleted-record-head span,
.v2-deleted-record small { color: var(--strategy-muted); }
.v2-deleted-record p { margin: 7px 0; color: #263542; overflow-wrap: anywhere; }
.v2-deleted-record small { display: block; overflow-wrap: anywhere; }
.v2-deleted-record-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.v2-deleted-record-actions button { min-height: 32px; }

.strategy-action-overlay {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 42, 67, 0.42);
}

.strategy-action-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--strategy-line);
  border-radius: 12px;
  background: #fff;
  color: var(--strategy-ink);
  box-shadow: 0 24px 60px rgba(16, 42, 67, 0.26);
}

.strategy-action-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
  border-bottom: 1px solid #e6eef2;
}

.strategy-action-dialog h2 { margin: 0; font-size: 20px; }
.strategy-action-dialog header p { margin: 6px 0 0; color: var(--strategy-muted); line-height: 1.55; }

.strategy-action-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--strategy-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.strategy-action-body { display: grid; gap: 14px; padding: 18px 22px; }
.strategy-action-details { padding: 12px 14px; border: 1px solid #dbe9ee; border-radius: 8px; background: #f5fafb; line-height: 1.55; }
.strategy-action-body label { display: grid; gap: 7px; color: var(--strategy-ink); font-weight: 600; }

.strategy-action-body input,
.strategy-action-body textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b7ced8;
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  color: var(--strategy-ink);
  background: #fff;
}

.strategy-action-body textarea { min-height: 100px; resize: vertical; }

.strategy-action-dialog > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px 20px;
}

.strategy-action-dialog > footer .danger {
  border-color: #c8453c;
  background: #c8453c;
  color: #fff;
}

@media (max-width: 560px) {
  .strategy-action-overlay { padding: 12px; }
  .strategy-action-dialog > header,
  .strategy-action-body { padding-left: 16px; padding-right: 16px; }
  .strategy-action-dialog > footer { padding-left: 16px; padding-right: 16px; }
  .strategy-action-dialog > footer button { flex: 1; }
}

@media (max-width: 1180px) {
  .strategy-final-toolbar-v2 { grid-template-columns: minmax(220px, 1.6fr) minmax(180px, .8fr); }
  .strategy-status-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strategy-final-week-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-section-weekly .v2-tab-header { grid-template-columns: 1fr; }
  .v2-section-weekly .v2-tab-actions { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-section-weekly .v2-week-selectors { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .strategy-final-header-v2,
  .strategy-workspace-head-v2,
  .v2-tab-header { align-items: stretch; flex-direction: column; }
  .strategy-final-toolbar-v2 { grid-template-columns: 1fr; }
  .strategy-final-toolbar-v2 .search { grid-column: auto; }
  .strategy-final-header-v2 .strategy-final-actions { width: 100%; }
  .strategy-scope-control { flex: 1 1 220px; }
  .strategy-scope-control select { width: 100%; }
  .strategy-status-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strategy-work-reminders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-final-overview-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .strategy-final-overview-identity { grid-column: 1 / -1; }
  .strategy-final-overview-metrics,
  .strategy-final-overview-highlights,
  .strategy-final-overview-footer { grid-column: 1 / -1; }
  .strategy-final-week-row-head { grid-template-columns: auto minmax(0, 1fr); }
  .strategy-final-week-actions { grid-column: 2; justify-content: flex-start; }
  .strategy-final-week-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-final-week-card-head { align-items: stretch; flex-direction: column; }
  .strategy-final-week-card-title { grid-template-columns: auto max-content minmax(0, 1fr); }
  .strategy-final-week-card-head .strategy-final-week-actions { justify-content: flex-start; }
  .strategy-final-week-card-grid { grid-template-columns: 1fr; }
  .strategy-final-week-section { min-height: 0; }
  .strategy-active-filter { align-items: stretch; flex-direction: column; }
  .workspace-head-period { min-width: 0; }
  .workspace-risk-note-row { grid-template-columns: 1fr; }
  .workspace-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-workspace-summary-row,
  .v2-week-records-layout { grid-template-columns: 1fr; }
  .v2-facts-layout,
  .v2-week-layout { grid-template-columns: 1fr; }
  .v2-week-toolbar { grid-template-columns: 1fr; }
  .v2-week-toolbar-actions { justify-content: flex-start; }
  .v2-week-compact-group-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v2-week-compact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-week-compact-field.is-wide,
  .v2-week-compact-edit-field.is-wide { grid-column: span 2; }
  .v2-week-edit-target-grid,
  .v2-week-edit-plan-grid,
  .v2-week-edit-state-layout { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .v2-week-edit-target-grid > .v2-week-edit-main-goal { grid-column: span 4; }
  .v2-week-edit-target-grid > .v2-week-edit-goal-type,
  .v2-week-edit-target-grid > .v2-week-edit-completion,
  .v2-week-edit-target-grid > .v2-week-edit-key-task { grid-column: span 2; }
  .v2-week-edit-target-grid > .v2-week-edit-evidence-type { grid-column: span 2; }
  .v2-week-edit-target-grid > .v2-week-edit-evidence-text { grid-column: span 4; }
  .v2-week-edit-barriers { grid-column: span 2; }
  .v2-week-edit-state-main { grid-column: span 4; }
  .v2-week-edit-career-options { grid-column: span 4; }
  .v2-week-edit-career-note { grid-column: span 2; }
  .v2-week-edit-plan-grid > .v2-week-edit-next-action,
  .v2-week-edit-plan-grid > .v2-week-edit-self-reflection { grid-column: span 3; }
  .v2-week-edit-support { grid-column: span 6; }
  .v2-teacher-week-panel { grid-template-columns: 1fr; }
  .v2-teacher-week-panel h3,
  .v2-teacher-week-panel .v2-teacher-note,
  .v2-teacher-week-panel .v2-confirm-hint { grid-column: auto; }
  .v2-cycle-metrics,
  .v2-semester-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-tab-actions { align-items: stretch; }
  .v2-section-weekly .v2-tab-actions { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-section-weekly .v2-week-selectors { grid-column: 1 / -1; }
  .v2-section-weekly .v2-tab-actions > button { min-width: 0; }
  .v2-deleted-history > header { flex-direction: column; }
}
@media (max-width: 560px) {
  .strategy-manager-panel { padding: 8px; }
  .v2-week-compact-group-grid { grid-template-columns: 1fr; }
  .v2-week-compact-group .v2-week-compact-field.is-wide,
  .v2-week-compact-group .v2-week-compact-edit-field.is-wide { grid-column: auto; }
  .v2-week-compact-row { grid-template-columns: 1fr; }
  .v2-week-compact-field.is-wide,
  .v2-week-compact-edit-field.is-wide { grid-column: auto; }
  .v2-week-edit-target-grid,
  .v2-week-edit-plan-grid,
  .v2-week-edit-state-layout,
  .v2-week-edit-career,
  .v2-week-edit-metrics { grid-template-columns: 1fr; }
  .v2-week-edit-target-grid > div,
  .v2-week-edit-plan-grid > div,
  .v2-week-edit-barriers,
  .v2-week-edit-state-main,
  .v2-week-edit-career-options,
  .v2-week-edit-career-note,
  .v2-week-edit-plan-grid > .v2-week-edit-next-action,
  .v2-week-edit-plan-grid > .v2-week-edit-self-reflection,
  .v2-week-edit-support { grid-column: auto; }
  .strategy-week-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-manager-qr { grid-template-columns: 1fr; gap: 12px; }
  .strategy-manager-qr img { width: 220px; }
  .strategy-code-list > div { grid-template-columns: minmax(0, 1fr) auto; }
  .strategy-code-list .code-state { grid-column: 1; }
  .strategy-code-list button { grid-column: 2; grid-row: 1 / span 2; }
  .strategy-code-toolbar { align-items: flex-start; flex-direction: column; }
  .strategy-final-toolbar-v2,
  .strategy-status-chips,
  .strategy-work-reminders,
  .workspace-dashboard-grid,
  .v2-cycle-metrics,
  .v2-semester-metrics,
  .v2-week-details,
  .v2-cycle-form,
  .v2-semester-form { grid-template-columns: 1fr; }
  .v2-week-field-grid,
  .v2-cycle-selectors { grid-template-columns: 1fr; min-width: 0; }
  .v2-week-field.wide { grid-column: auto; }
  .v2-section-weekly .v2-tab-actions { grid-template-columns: 1fr; }
  .v2-section-weekly .v2-week-selectors,
  .v2-section-weekly .v2-tab-actions > button { grid-column: 1 / -1; }
  .v2-section-weekly .v2-week-selectors { grid-template-columns: 1fr; }
  .v2-week-summary { display: grid; }
  .v2-week-summary span { text-align: left; }
  .strategy-final-toolbar-v2 .search,
  .v2-cycle-form label:first-child,
  .v2-semester-form label:first-child,
  .v2-cycle-form .button-row,
  .v2-semester-form .button-row,
  .v2-semester-form .v2-confirm-hint { grid-column: auto; }
  .strategy-final-card-v2 .v2-card-metrics > div { grid-template-columns: 90px minmax(0, 1fr); }
  .strategy-workspace-facts > header { flex-direction: column; }
  .strategy-final-main-tabs { overflow-x: auto; }
  .strategy-final-main-tabs button { flex: 0 0 auto; white-space: nowrap; }
  .strategy-final-list-header { align-items: flex-start; flex-direction: column; }
  .strategy-final-week-batch { width: 100%; justify-content: space-between; }
  .strategy-final-overview-row { grid-template-columns: 1fr; }
  .strategy-final-overview-identity,
  .strategy-final-overview-metrics,
  .strategy-final-overview-highlights,
  .strategy-final-overview-footer { grid-column: auto; }
  .strategy-final-overview-metrics { grid-template-columns: 1fr; }
  .strategy-final-overview-highlights > div { grid-template-columns: 108px minmax(0, 1fr); }
  .strategy-final-week-fields { grid-template-columns: 1fr; }
  .strategy-final-week-fields > div.is-wide { grid-column: auto; }
  .strategy-final-week-card-title { grid-template-columns: auto minmax(0, 1fr); }
  .strategy-final-week-period { grid-column: 2; display: grid; gap: 3px; }
  .strategy-final-week-period strong { font-size: 19px; }
  .strategy-final-week-card-head .strategy-final-week-actions { grid-column: 2; }
  .strategy-final-week-field-pair { grid-template-columns: 1fr; gap: 0; }
  .strategy-final-week-score-grid { gap: 6px; }
  .v2-fact-head-actions { align-items: flex-start; flex-direction: column; }
  .fact-total { align-self: start; }
}

@media (max-width: 400px) {
  .strategy-manager-students { grid-template-columns: 1fr; }
}

/* Weekly growth uses the same visual language in student, review and workspace views. */
.weekly-review-student-section,
.weekly-review-teacher-section {
  display: grid;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #d6e4e8;
  border-left: 4px solid #1597a0;
  border-radius: 10px;
  background: #f7fbfc;
}
.weekly-review-student-section.section-evidence { border-left-color: #4c8fd8; }
.weekly-review-student-section.section-barrier { border-left-color: #d28a36; }
.weekly-review-student-section.section-state { border-left-color: #7d67c7; }
.weekly-review-student-section.section-career { border-left-color: #2d9a69; }
.weekly-review-student-section.section-reflection { border-left-color: #bd628b; }
.weekly-review-teacher-section { border-left-color: #e56e3f; background: #fffaf5; }
.weekly-review-student-section header,
.weekly-review-teacher-section header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.weekly-review-student-section header h3,
.weekly-review-teacher-section header h3 { margin: 0; color: var(--strategy-ink); }
.weekly-review-student-section header span,
.weekly-review-teacher-section header span { color: var(--strategy-muted); font-size: 13px; }
.weekly-review-fields,
.weekly-review-student-section label,
.weekly-review-teacher-section label { display: grid; gap: 7px; }
.weekly-review-student-section label,
.weekly-review-teacher-section label { color: var(--strategy-ink); font-weight: 600; }
.weekly-review-student-section input,
.weekly-review-student-section select,
.weekly-review-student-section textarea,
.weekly-review-teacher-section input,
.weekly-review-teacher-section select,
.weekly-review-teacher-section textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b7ced8;
  border-radius: 7px;
  padding: 9px 11px;
  font: inherit;
  color: var(--strategy-ink);
  background: #fff;
}
.weekly-review-student-section input:disabled,
.weekly-review-student-section select:disabled,
.weekly-review-student-section textarea:disabled { color: #405c69; background: #eef6f8; opacity: 1; }
.weekly-review-student-section textarea,
.weekly-review-teacher-section textarea { min-height: 82px; resize: vertical; }
.weekly-review-student-section .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.weekly-review-confirmed-section {
  display: grid;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #8bb5c2;
  border-left: 4px solid #1599a6;
  border-radius: 10px;
  background: #f3fbfc;
}
.weekly-review-confirmed-section header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.weekly-review-confirmed-section header h3 { margin: 0; color: var(--strategy-ink); }
.weekly-review-confirmed-section header span { color: var(--strategy-muted); font-size: 13px; }
.weekly-review-confirmed-section label { display: grid; gap: 7px; color: var(--strategy-ink); font-weight: 600; }
.weekly-review-confirmed-section input,
.weekly-review-confirmed-section select,
.weekly-review-confirmed-section textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #8bb5c2;
  border-radius: 7px;
  padding: 9px 11px;
  font: inherit;
  color: var(--strategy-ink);
  background: #fff;
  opacity: 1;
}
.weekly-review-confirmed-section textarea { min-height: 82px; resize: vertical; }
.weekly-review-confirmed-section .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.weekly-review-confirmed-section fieldset { margin: 0; padding: 10px 12px; border: 1px solid #b7ced8; border-radius: 7px; }
.weekly-review-confirmed-section .weekly-review-confirmed-attachments { display: grid; gap: 7px; padding: 10px 12px; border: 1px dashed #a9c9d2; border-radius: 8px; background: #fff; }
.weekly-review-confirmed-section .weekly-review-confirmed-attachments h4 { margin: 0; color: var(--strategy-ink); }
.weekly-readonly-checks { display: grid; gap: 7px; color: var(--strategy-ink); }
.weekly-readonly-checks > div { display: flex; flex-wrap: wrap; gap: 7px; }
.weekly-readonly-checks span,
.weekly-readonly-checks em { padding: 6px 9px; border-radius: 999px; background: #e8f4f5; color: #176b73; font-style: normal; }
.weekly-review-attachment-field,
.v2-week-attachment-detail { display: grid; gap: 7px; padding: 10px 12px; border: 1px dashed #a9c9d2; border-radius: 8px; background: #fff; }
.weekly-review-attachment-field .student-week-attachments,
.v2-week-attachment-detail .student-week-attachments { margin: 0; }
.v2-week-details .v2-week-attachment-detail { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .weekly-review-student-section .form-grid,
  .weekly-review-confirmed-section .form-grid { grid-template-columns: 1fr; }
  .weekly-review-student-section,
  .weekly-review-teacher-section,
  .weekly-review-confirmed-section { padding: 12px; }
}

/* Active inline editor: each row has one job, so tall textareas never share a track with short selects. */
.v2-week-edit-form .v2-week-compact-edit-field.is-wide { grid-column: auto; }
.v2-week-edit-form .v2-week-compact-edit-field { width: 100%; min-width: 0; box-sizing: border-box; align-self: start; }
.v2-week-edit-target-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.v2-week-edit-target-meta,
.v2-week-edit-target-copy { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.v2-week-edit-target-meta > label:nth-child(1) { grid-column: span 2; }
.v2-week-edit-target-meta > label:nth-child(2) { grid-column: span 1; }
.v2-week-edit-target-meta > label:nth-child(3),
.v2-week-edit-target-meta > label:nth-child(4),
.v2-week-edit-target-meta > label:nth-child(5) { grid-column: span 3; }
.v2-week-edit-target-copy > div { display: grid; min-width: 0; }
.v2-week-edit-target-copy > .v2-week-edit-main-goal,
.v2-week-edit-target-copy > .v2-week-edit-evidence-text { grid-column: span 6; }
.v2-week-edit-state-layout { display: grid; grid-template-columns: 1fr; gap: 8px; min-width: 0; }
.v2-week-edit-state-top,
.v2-week-edit-career-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: start; min-width: 0; }
.v2-week-edit-state-top > .v2-week-edit-barriers { grid-column: span 4; }
.v2-week-edit-state-top > .v2-week-edit-metrics { grid-column: span 8; }
.v2-week-edit-career-row > .v2-week-edit-career-options { grid-column: span 8; }
.v2-week-edit-career-row > .v2-week-edit-career-note { grid-column: span 4; }
.v2-week-edit-plan-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.v2-week-edit-plan-grid > .v2-week-edit-next-action { grid-column: span 5; }
.v2-week-edit-plan-grid > .v2-week-edit-self-reflection { grid-column: span 3; }
.v2-week-edit-plan-grid > .v2-week-edit-support-row { grid-column: span 4; display: grid; grid-template-columns: 1fr; gap: 5px; align-self: start; }
.v2-week-edit-support-row .v2-week-compact-edit-field { width: 100%; }
.v2-week-edit-support-request { width: 100%; min-height: 34px; box-sizing: border-box; justify-content: flex-start; white-space: nowrap; }
.v2-week-edit-attachments { grid-column: 1 / -1; margin-top: 0; padding-top: 1px; }

@media (max-width: 820px) {
  .v2-week-edit-target-grid { grid-template-columns: 1fr; }
  .v2-week-edit-target-meta,
  .v2-week-edit-target-copy,
  .v2-week-edit-state-top,
  .v2-week-edit-career-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .v2-week-edit-target-meta,
  .v2-week-edit-target-copy { grid-column: auto; }
  .v2-week-edit-target-meta > label:nth-child(1),
  .v2-week-edit-target-meta > label:nth-child(2) { grid-column: span 1; }
  .v2-week-edit-target-meta > label:nth-child(3),
  .v2-week-edit-target-meta > label:nth-child(4),
  .v2-week-edit-target-meta > label:nth-child(5) { grid-column: span 2; }
  .v2-week-edit-target-copy > .v2-week-edit-main-goal,
  .v2-week-edit-target-copy > .v2-week-edit-evidence-text { grid-column: span 3; }
  .v2-week-edit-state-top > .v2-week-edit-barriers { grid-column: span 2; }
  .v2-week-edit-state-top > .v2-week-edit-metrics { grid-column: span 4; }
  .v2-week-edit-career-row > .v2-week-edit-career-options { grid-column: span 4; }
  .v2-week-edit-career-row > .v2-week-edit-career-note { grid-column: span 2; }
  .v2-week-edit-plan-grid > .v2-week-edit-next-action,
  .v2-week-edit-plan-grid > .v2-week-edit-self-reflection { grid-column: span 3; }
  .v2-week-edit-plan-grid > .v2-week-edit-support-row { grid-column: span 6; }
}

@media (max-width: 560px) {
  .v2-week-edit-target-meta,
  .v2-week-edit-target-copy,
  .v2-week-edit-state-top,
  .v2-week-edit-career-row,
  .v2-week-edit-metrics { grid-template-columns: 1fr; }
  .v2-week-edit-target-meta > label:nth-child(n),
  .v2-week-edit-target-copy > .v2-week-edit-main-goal,
  .v2-week-edit-target-copy > .v2-week-edit-evidence-text,
  .v2-week-edit-state-top > .v2-week-edit-barriers,
  .v2-week-edit-state-top > .v2-week-edit-metrics,
  .v2-week-edit-career-row > .v2-week-edit-career-options,
  .v2-week-edit-career-row > .v2-week-edit-career-note,
  .v2-week-edit-plan-grid > .v2-week-edit-next-action,
  .v2-week-edit-plan-grid > .v2-week-edit-self-reflection,
  .v2-week-edit-plan-grid > .v2-week-edit-support-row { grid-column: auto; }
}

/* Active weekly editor: keep the student form order and use dividers instead of nested cards. */
.v2-week-edit-form,
.v2-week-edit-form * { box-sizing: border-box; min-width: 0; }
.v2-week-edit-form { display: grid; gap: 0; min-width: 0; }
.v2-week-edit-form .v2-week-edit-student-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #cfe0e4;
  border-radius: 0;
  background: transparent;
}
.v2-week-edit-form .v2-week-edit-student-section:first-child { padding-top: 0; border-top: 0; }
.v2-week-edit-form .v2-week-edit-student-section > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.v2-week-edit-form .v2-week-edit-student-section > header strong { font-size: 14px; }
.v2-week-edit-form .v2-week-edit-student-section > header span {
  color: var(--strategy-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.v2-week-edit-form .v2-week-edit-student-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  min-width: 0;
}
.v2-week-edit-form .v2-week-edit-student-row > * + * {
  padding-left: 8px;
  border-left: 1px solid #d7e5e8;
}
.v2-week-edit-form .v2-week-edit-cell { grid-column: span 3; min-width: 0; }
.v2-week-edit-form .v2-week-edit-main-goal { grid-column: 1 / -1; }
.v2-week-edit-form .v2-week-edit-evidence-row > :first-child { grid-column: span 3; }
.v2-week-edit-form .v2-week-edit-evidence-row > :last-child { grid-column: span 9; }
.v2-week-edit-form .v2-week-edit-state-row > * { grid-column: span 4; }
.v2-week-edit-form .v2-week-edit-career-row > :first-child { grid-column: span 8; }
.v2-week-edit-form .v2-week-edit-career-row > :last-child { grid-column: span 4; }
.v2-week-edit-form .v2-week-edit-reflection-row > * { grid-column: span 6; }
.v2-week-edit-form .v2-week-edit-support-row > :first-child { grid-column: span 3; }
.v2-week-edit-form .v2-week-edit-support-row > :last-child { grid-column: span 9; }
.v2-week-edit-form .v2-week-compact-edit-field,
.v2-week-edit-form fieldset { width: 100%; min-width: 0; }
.v2-week-edit-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.v2-week-edit-form .v2-week-compact-edit-field > span,
.v2-week-edit-form .v2-week-compact-edit-field > legend,
.v2-week-edit-form .v2-week-edit-support-request,
.v2-week-edit-form .v2-week-compact-checks label {
  white-space: normal;
  overflow-wrap: anywhere;
}
.v2-week-edit-form .v2-week-compact-edit-field input:not([type="checkbox"]),
.v2-week-edit-form .v2-week-compact-edit-field select,
.v2-week-edit-form .v2-week-compact-edit-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.v2-week-edit-form .v2-week-compact-edit-field textarea { min-height: 72px; resize: vertical; }
.v2-week-edit-form .v2-week-edit-long textarea { min-height: 116px; line-height: 1.5; }
.v2-week-edit-form .v2-week-edit-main-goal textarea { min-height: 128px; }
.v2-week-edit-form .v2-week-edit-evidence-text textarea,
.v2-week-edit-form .v2-week-edit-career-note textarea,
.v2-week-edit-form .v2-week-edit-next-action textarea,
.v2-week-edit-form .v2-week-edit-self-reflection textarea,
.v2-week-edit-form .v2-week-edit-support-note textarea { min-height: 116px; }
.v2-week-edit-form .v2-week-compact-checks > div { overflow: visible; }
.v2-week-edit-form .v2-week-compact-edit-fields fieldset label { max-width: 100%; }
.v2-week-edit-form .v2-week-edit-support-request { display: flex; align-items: center; gap: 6px; min-height: 34px; }
.v2-week-edit-form .v2-week-edit-attachments { margin-top: 0; padding-top: 8px; border-top: 1px dashed #cfe0e4; }

/* Read-only weekly details use the same safe wrapping contract; preview cards keep their own ellipsis rules. */
.v2-week-student-panel .v2-week-compact-fields,
.v2-week-student-panel .v2-week-compact-fields * { min-width: 0; }
.v2-week-student-panel .v2-week-compact-field > span {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* One shared weekly-record renderer: read mode swaps controls for values, edit mode keeps the same grid. */
.v2-week-record-fields,
.v2-week-record-fields * { box-sizing: border-box; min-width: 0; }
.v2-week-record-fields { display: grid; gap: 0; width: 100%; min-width: 0; }
.v2-week-record-fields-readonly {
  --v2-week-record-label: #627980;
  --v2-week-record-control-border: #cbd8dc;
  --v2-week-record-control-background: #eef4f5;
  --v2-week-record-control-text: #60737b;
  background: #f4f8f9;
  color: #60737b;
}
.v2-week-record-fields-editable {
  --v2-week-record-label: #276d70;
  --v2-week-record-control-border: #8ccbc8;
  --v2-week-record-control-background: #fff;
  --v2-week-record-control-text: var(--strategy-ink);
  background: #f2fbfa;
  color: var(--strategy-ink);
}
.v2-week-record-fields .v2-week-record-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid #cfe0e4;
  background: transparent;
}
.v2-week-record-fields .v2-week-record-section:first-child { padding-top: 0; border-top: 0; }
.v2-week-record-fields .v2-week-record-section > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.v2-week-record-fields .v2-week-record-section > header strong { font-size: 14px; }
.v2-week-record-fields .v2-week-record-section > header span { color: var(--strategy-muted); font-size: 11px; overflow-wrap: anywhere; }
.v2-week-record-section-grid,
.v2-week-record-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: start; min-width: 0; }
.v2-week-record-section-grid > .v2-week-record-row,
.v2-week-record-section-grid > .v2-week-record-attachments { grid-column: 1 / -1; }
.v2-week-record-split-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-column: 1 / -1; align-items: start; min-width: 0; }
.v2-week-record-split-column { display: grid; gap: 8px; min-width: 0; align-content: start; }
.v2-week-record-goal-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-week-record-goal-meta > .v2-week-record-field { grid-column: auto; }
.v2-week-record-goal-meta > .v2-week-record-field:nth-child(odd) { padding-left: 8px; border-left: 1px solid #d7e5e8; }
.v2-week-record-goal-meta > .v2-week-record-field:nth-child(even) { padding-left: 0; border-left: 0; }
.v2-week-record-evidence-layout > .v2-week-record-evidence-text { grid-column: 2; }
.v2-week-record-evidence-main { min-width: 0; }
.v2-week-record-evidence-main > .v2-week-record-field { grid-column: auto; }
.v2-week-record-evidence-main > .v2-week-record-attachments { grid-column: auto; }
.v2-week-record-status-career-row,
.v2-week-record-plan-support-row { align-items: stretch; }
.v2-week-record-subsection { display: grid; gap: 7px; min-width: 0; }
.v2-week-record-subsection > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-width: 0; }
.v2-week-record-subsection > header strong { font-size: 13px; }
.v2-week-record-subsection > header span { color: var(--strategy-muted); font-size: 11px; overflow-wrap: anywhere; }
.v2-week-record-subsection > .v2-week-record-row { grid-column: 1 / -1; }
.v2-week-record-status-column > .v2-week-record-subsection + .v2-week-record-subsection,
.v2-week-record-career-column > .v2-week-record-subsection,
.v2-week-record-support-column > .v2-week-record-subsection { padding-top: 8px; border-top: 1px solid #d7e5e8; }
.v2-week-record-goal-layout > .v2-week-record-goal-main,
.v2-week-record-goal-layout > .v2-week-record-goal-meta,
.v2-week-record-evidence-layout > .v2-week-record-split-column,
.v2-week-record-evidence-layout > .v2-week-record-field { min-width: 0; }
.v2-week-record-goal-main > .v2-week-record-field,
.v2-week-record-evidence-layout > .v2-week-record-field { grid-column: auto; }
.v2-week-record-field { display: grid; gap: 4px; grid-column: span 3; min-width: 0; align-content: start; }
.v2-week-record-field > span,
.v2-week-record-field > legend { color: var(--v2-week-record-label, #456a74); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.v2-week-record-field > span { color: var(--v2-week-record-label, #456a74); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.v2-week-record-field-readonly { padding: 0; border: 0; background: transparent; }
.v2-week-record-value { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; font-weight: 600; }
.v2-week-record-value.is-long { min-height: 116px; white-space: pre-wrap; font-weight: 500; }
.v2-week-record-field > input:not([type="checkbox"]),
.v2-week-record-field > select,
.v2-week-record-field > textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 36px; padding: 6px 8px; border: 1px solid #b9ccd6; border-radius: 6px; background: #fff; color: var(--strategy-ink); font: inherit; }
.v2-week-record-field > textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.v2-week-record-field-long { grid-column: 1 / -1; }
.v2-week-record-goal .v2-week-record-main-goal { grid-column: 1 / -1; }
.v2-week-record-evidence-row > :first-child { grid-column: span 3; }
.v2-week-record-evidence-row > :last-child { grid-column: span 9; }
.v2-week-record-barrier .v2-week-record-checks { grid-column: 1 / -1; }
.v2-week-record-state-row > * { grid-column: span 4; }
.v2-week-record-career-row > :first-child { grid-column: span 8; }
.v2-week-record-career-row > :last-child { grid-column: span 4; }
.v2-week-record-reflection-row > * { grid-column: span 6; }
.v2-week-record-support-row > :first-child { grid-column: span 3; }
.v2-week-record-support-row > :last-child { grid-column: span 9; }
.v2-week-record-checks { margin: 0; padding: 0; border: 0; }
.v2-week-record-checks > div { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.v2-week-record-checks label { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 8px; border: 1px solid #d7e5e8; border-radius: 6px; color: var(--strategy-ink); font-size: 12px; }
.v2-week-record-checks label.is-selected { border-color: #7cc6ca; background: #e5f6f7; color: #0b7178; font-weight: 700; }
.v2-week-record-checks label.is-unselected { border-color: #e7eef0; background: #f8fbfb; color: #9aadb3; }
.v2-week-record-fields-readonly .v2-week-record-checks label.is-selected { border-color: #e4a39e; background: #fff2f1; color: #a63d35; }
.v2-week-record-fields-readonly .v2-week-record-checks label.is-unselected { border-color: #e4ecee; background: #f5f8f9; color: #98a8ad; }
.v2-week-record-fields-editable .v2-week-record-checks label { cursor: pointer; }
.v2-week-record-checks input[type="checkbox"] {
  width: 17px !important;
  height: 17px;
  min-height: 17px !important;
  flex: 0 0 17px;
  margin: 2px 0 0;
  padding: 0;
}
.v2-week-record-checks-editable input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: #c8453c;
  cursor: pointer;
}
.v2-week-record-checks-readonly input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 2px 0 0;
  border: 1.5px solid #aebdc2;
  border-radius: 3px;
  background: #fff;
  position: relative;
  opacity: 1;
}
.v2-week-record-checks-readonly label.is-selected input[type="checkbox"] { border-color: #c8453c; background: #c8453c; opacity: 1; }
.v2-week-record-checks-readonly label.is-selected input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.v2-week-record-checks-readonly label.is-unselected input[type="checkbox"] { border-color: #cbd8dc; background: #fff; opacity: 1; }
.v2-week-record-checks em,
.v2-week-record-checks small { padding: 4px 7px; border-radius: 999px; color: #28767c; background: #e8f4f6; font-size: 12px; font-style: normal; overflow-wrap: anywhere; }
.v2-week-record-field-readonly > input[disabled],
.v2-week-record-field-readonly > select[disabled],
.v2-week-record-field-readonly > textarea[disabled] {
  color: var(--v2-week-record-control-text, var(--strategy-ink));
  -webkit-text-fill-color: var(--v2-week-record-control-text, var(--strategy-ink));
  background: var(--v2-week-record-control-background, #fff);
  border-color: var(--v2-week-record-control-border, #b9ccd6);
  opacity: 1;
  cursor: not-allowed;
}
.v2-week-record-field-readonly > textarea[disabled] { resize: none; }
.v2-week-record-fields-editable .v2-week-record-field > input:not([type="checkbox"]),
.v2-week-record-fields-editable .v2-week-record-field > select,
.v2-week-record-fields-editable .v2-week-record-field > textarea {
  border-color: var(--v2-week-record-control-border);
  background: var(--v2-week-record-control-background);
  color: var(--v2-week-record-control-text);
}
.v2-week-record-fields-editable .v2-week-record-field > input:not([type="checkbox"]),
.v2-week-record-fields-editable .v2-week-record-field > textarea { cursor: text; }
.v2-week-record-fields-editable .v2-week-record-field > select:not([disabled]) { cursor: pointer; }
.v2-week-record-attachments { min-width: 0; padding-top: 8px; border-top: 1px dashed #cfe0e4; }
.v2-week-record-attachments > strong { display: block; margin-bottom: 4px; }
.v2-week-record-fields .v2-week-edit-student-row > * + * { padding-left: 8px; border-left: 1px solid #d7e5e8; }
.v2-week-record-fields .v2-week-edit-long textarea { min-height: 116px; line-height: 1.5; }
.v2-week-record-fields .v2-week-edit-main-goal textarea { min-height: 128px; }

@media (max-width: 1100px) {
  .v2-week-record-section-grid,
  .v2-week-record-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .v2-week-record-goal-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-week-record-field { grid-column: span 2; }
  .v2-week-record-goal .v2-week-record-main-goal { grid-column: 1 / -1; }
  .v2-week-record-evidence-row > :first-child { grid-column: span 2; }
  .v2-week-record-evidence-row > :last-child { grid-column: span 4; }
  .v2-week-record-state-row > * { grid-column: span 2; }
  .v2-week-record-career-row > :first-child { grid-column: span 3; }
  .v2-week-record-career-row > :last-child { grid-column: span 3; }
  .v2-week-record-reflection-row > * { grid-column: span 3; }
  .v2-week-record-support-row > :first-child { grid-column: span 2; }
  .v2-week-record-support-row > :last-child { grid-column: span 4; }
}
@media (max-width: 700px) {
  .v2-week-record-section-grid,
  .v2-week-record-row { grid-template-columns: 1fr; }
  .v2-week-record-goal-meta { grid-template-columns: 1fr; }
  .v2-week-record-fields .v2-week-record-field,
  .v2-week-record-goal .v2-week-record-main-goal,
  .v2-week-record-evidence-row > :first-child,
  .v2-week-record-evidence-row > :last-child,
  .v2-week-record-state-row > *,
  .v2-week-record-career-row > :first-child,
  .v2-week-record-career-row > :last-child,
  .v2-week-record-reflection-row > *,
  .v2-week-record-support-row > :first-child,
  .v2-week-record-support-row > :last-child { grid-column: auto !important; }
  .v2-week-record-fields .v2-week-edit-student-row > * + * { padding-left: 0; border-left: 0; }
  .v2-week-record-goal-meta > .v2-week-record-field:nth-child(odd),
  .v2-week-record-goal-meta > .v2-week-record-field:nth-child(even) { padding-left: 0; border-left: 0; }
  .v2-week-record-fields .v2-week-record-value.is-long { min-height: 0; }
}
@media (max-width: 820px) {
  .v2-week-record-split-row { grid-template-columns: 1fr; }
  .v2-week-record-evidence-layout > .v2-week-record-evidence-text { grid-column: auto; }
}
.v2-week-student-panel .v2-week-compact-field > strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.v2-week-student-panel .v2-week-compact-checks > div { overflow: visible; }
.v2-week-student-panel .v2-week-compact-checks em,
.v2-week-student-panel .v2-week-compact-checks small { white-space: normal; overflow-wrap: anywhere; }
.v2-week-toolbar { min-width: 0; }
.v2-week-toolbar .v2-week-selectors { display: grid; grid-template-columns: minmax(170px, .78fr) minmax(250px, 1.22fr); gap: 8px; min-width: 0; }
.v2-week-toolbar .v2-week-selectors > .v2-week-select { min-width: 0; }
.v2-section-weekly .v2-week-toolbar { display: grid; grid-template-columns: 1fr; width: 100%; min-width: 0; flex: 1 1 100%; }
.v2-section-weekly .v2-week-toolbar .v2-week-selectors { grid-column: 1; width: 100%; }
.v2-section-weekly .v2-week-toolbar-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; min-width: 0; }
.v2-section-weekly .v2-week-toolbar-actions > button { width: 100%; max-width: none; min-width: 0; }

@media (max-width: 1100px) {
  .v2-week-edit-form .v2-week-edit-student-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .v2-week-edit-form .v2-week-edit-goal-row > * { grid-column: span 2; }
  .v2-week-edit-form .v2-week-edit-evidence-row > :first-child { grid-column: span 2; }
  .v2-week-edit-form .v2-week-edit-evidence-row > :last-child { grid-column: span 4; }
  .v2-week-edit-form .v2-week-edit-state-row > * { grid-column: span 2; }
  .v2-week-edit-form .v2-week-edit-career-row > :first-child { grid-column: span 3; }
  .v2-week-edit-form .v2-week-edit-career-row > :last-child { grid-column: span 3; }
  .v2-week-edit-form .v2-week-edit-reflection-row > * { grid-column: span 3; }
  .v2-week-edit-form .v2-week-edit-support-row > :first-child { grid-column: span 2; }
  .v2-week-edit-form .v2-week-edit-support-row > :last-child { grid-column: span 4; }
  .v2-week-student-panel .v2-week-compact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .v2-week-edit-form .v2-week-edit-student-row { grid-template-columns: 1fr; }
  .v2-week-edit-form .v2-week-edit-student-row > * { grid-column: auto !important; }
  .v2-week-edit-form .v2-week-edit-student-row > * + * {
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid #d7e5e8;
    border-left: 0;
  }
  .v2-week-student-panel .v2-week-compact-row { grid-template-columns: 1fr; }
  .v2-week-toolbar { grid-template-columns: 1fr; }
  .v2-week-toolbar .v2-week-selectors { grid-template-columns: 1fr; }
  .v2-section-weekly .v2-week-toolbar-actions { grid-template-columns: 1fr; }
  .v2-section-weekly .v2-week-toolbar-actions > button { white-space: normal; line-height: 1.25; }
}

@media (max-width: 1120px) {
  .v2-week-list-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-week-list-group:nth-child(3) { border-left-color: #d9b668; }
  .v2-week-list-group:nth-child(odd) { border-left: 0; }
  .v2-week-list-group:nth-child(even) { border-left: 4px solid #b9d9de; }
}

@media (max-width: 720px) {
  .v2-week-list-filters { grid-template-columns: 1fr 1fr; min-width: 0; }
  .v2-week-list-filters > span { grid-column: 1 / -1; padding: 0; }
  .v2-week-list-item-header { align-items: flex-start; flex-direction: column; }
  .v2-week-list-open { grid-template-columns: auto minmax(0, 1fr); width: 100%; }
  .v2-week-list-open small { grid-column: 2; }
  .v2-week-list-item-header-actions { align-self: flex-end; }
  .v2-week-list-groups { grid-template-columns: 1fr; }
  .v2-week-list-group + .v2-week-list-group,
  .v2-week-list-group:nth-child(even),
  .v2-week-list-group:nth-child(odd) { border-top: 4px solid #b9d9de; border-left: 0; }
  .v2-week-list-group:nth-child(2) { border-top-color: #8fc9d2; }
  .v2-week-list-group:nth-child(3) { border-top-color: #d9b668; }
  .v2-week-list-group:nth-child(4) { border-top-color: #b79ad7; }
  .v2-week-list-group-fields { grid-template-columns: 1fr 1fr; }
  .v2-week-list-state-row { grid-template-columns: 1fr; }
  .v2-week-list-state-row > .v2-week-list-checks,
  .v2-week-list-score-triangle { grid-column: auto; }
  .v2-week-detail-heading { flex-direction: column; }
}

.v2-week-list-teacher-group {
  grid-column: auto;
  border-top: 0;
  border-left: 4px solid #e7d5ae;
  background: #fffdf7;
}
.v2-week-list-teacher-group .v2-week-list-group-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 720px) {
  .v2-week-list-teacher-group { border-top: 4px solid #e7d5ae; border-left: 0; }
}
.v2-cycle-card-list { display: grid; gap: 12px; min-width: 0; }
.v2-cycle-card,
.v2-semester-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c9dce6;
  border-radius: 9px;
  background: #fbfeff;
  box-shadow: 0 2px 8px rgba(43, 84, 103, .06);
}
.v2-cycle-card.is-selected { border-color: #75b7c3; box-shadow: 0 0 0 2px rgba(42, 155, 165, .12); }
.v2-cycle-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 6px 10px;
  border-bottom: 1px solid #d8e8ec;
  background: #eef9fa;
}
.v2-cycle-card-header > div { display: grid; gap: 3px; min-width: 0; }
.v2-cycle-card-header strong { color: var(--strategy-ink); font-size: 16px; }
.v2-cycle-card-header span { color: var(--strategy-muted); font-size: 12px; overflow-wrap: anywhere; }
.v2-cycle-card-header > span { flex: 0 0 auto; color: var(--strategy-muted); font-size: 12px; }
.v2-strategy-summary-sections { min-width: 0; padding: 6px 8px 0; }
.v2-strategy-summary-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; }
.v2-strategy-summary-field {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 5px 7px;
  border-bottom: 1px solid #e1edf0;
  border-left: 3px solid #b9d9de;
}
.v2-strategy-summary-field:nth-child(4n + 1) { border-left-color: #4caeb7; }
.v2-strategy-summary-field:nth-child(4n + 2) { border-left-color: #8ab6d9; }
.v2-strategy-summary-field:nth-child(4n + 3) { border-left-color: #d9b668; }
.v2-strategy-summary-field:nth-child(4n) { border-left-color: #ad8bd2; }
.v2-strategy-summary-field span,
.v2-strategy-warning-details > span { color: var(--strategy-muted); font-size: 12px; }
.v2-strategy-summary-field strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; }
.v2-strategy-warning-details { display: grid; gap: 4px; min-width: 0; padding: 5px 7px 6px; border-bottom: 1px solid #e1edf0; }
.v2-strategy-warning-details > div { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.v2-strategy-warning-details em { padding: 3px 7px; border-radius: 999px; font-size: 11px; font-style: normal; overflow-wrap: anywhere; }
.v2-strategy-warning-details .risk-yellow { color: #765300; background: #fff1b5; }
.v2-strategy-warning-details .risk-orange { color: #8b4800; background: #ffd9a8; }
.v2-strategy-warning-details .risk-red { color: #9b322b; background: #ffe0dd; }
.v2-strategy-warning-details small { color: var(--strategy-muted); }
.v2-cycle-card .v2-cycle-form,
.v2-semester-card .v2-semester-form { margin: 0; padding: 12px 14px 14px; }
.v2-semester-card-list { display: grid; gap: 12px; min-width: 0; }
.v2-semester-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-bottom: 1px solid #ddd1ee; background: #fbf9ff; }
.v2-semester-card-header > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
.v2-semester-card-header strong { color: var(--strategy-ink); font-size: 16px; }
.v2-semester-card-header span { color: var(--strategy-muted); font-size: 12px; }

.v2-cycle-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
  align-items: stretch;
  min-width: 0;
}
.v2-cycle-card-summary { min-width: 0; }
.v2-cycle-card-body > .v2-cycle-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(126px, 138px);
  grid-template-areas:
    "conclusion actions"
    "next-action ."
    "summary .";
  align-content: start;
  align-items: start;
  gap: 4px 10px;
  min-width: 0;
  margin: 0;
  padding: 6px 8px 8px;
  border-left: 1px solid #e1d7b7;
  background: #fffdf7;
}
.v2-cycle-card-body > .v2-cycle-form > label:first-child { grid-area: conclusion; }
.v2-cycle-card-body > .v2-cycle-form > label:nth-of-type(2) { grid-area: next-action; }
.v2-cycle-card-body > .v2-cycle-form > label:nth-of-type(3) { grid-area: summary; }
.v2-cycle-card-body > .v2-cycle-form textarea { min-height: 40px; }
.v2-cycle-card-body > .v2-cycle-form > .v2-cycle-actions { grid-column: auto; }
.v2-cycle-actions {
  display: grid;
  grid-template-columns: 1fr;
  grid-area: actions;
  grid-column: auto;
  grid-row: auto;
  align-content: start;
  align-self: start;
  gap: 6px;
  min-width: 0;
  padding-top: 20px;
  width: min(100%, 138px);
  justify-self: end;
}
.v2-cycle-actions button {
  box-sizing: border-box;
  width: 100%;
  max-width: 138px;
  min-width: 0;
  min-height: 32px;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.v2-cycle-selectors {
  grid-template-columns: minmax(220px, 360px);
  min-width: min(360px, 100%);
  justify-content: end;
}

@media (max-width: 820px) {
  .v2-cycle-card-body { grid-template-columns: 1fr; }
  .v2-cycle-card-body > .v2-cycle-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "conclusion"
      "next-action"
      "summary"
      "actions";
    border-top: 1px solid #e1d7b7;
    border-left: 0;
  }
  .v2-cycle-card-body > .v2-cycle-form > .v2-cycle-actions { grid-area: actions; }
  .v2-cycle-selectors { grid-template-columns: 1fr; min-width: 0; }
}

@media (max-width: 820px) {
  .v2-strategy-summary-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-week-list-teacher-group .v2-week-list-group-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .v2-strategy-summary-fields,
  .v2-week-list-teacher-group .v2-week-list-group-fields { grid-template-columns: 1fr; }
  .v2-cycle-card-header { align-items: flex-start; flex-direction: column; }
}
