/* CRM > Student feedback list (teacher feedback step 3). One quiet table on the panel background, no nested cards. */
.sf-root { max-width: 1360px; color: var(--crm-text-main, #1e293b); }
.sf-muted { color: var(--crm-text-muted, #5b6b73); }
.sf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 4px 0 14px; }
.sf-head h1 { font-size: 22px; margin: 0; }
.sf-tally { font-size: 13px; color: var(--crm-text-muted, #5b6b73); }
.sf-tally b { color: var(--crm-text-main, #1e293b); font-variant-numeric: tabular-nums; }
.sf-off { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--crm-warning-bg, #fff8e7); color: var(--crm-warning-text, #92400e); }
.sf-refresh { margin-left: auto; font: inherit; font-size: 13px; border: 1px solid var(--crm-border, #e2e8f0); background: var(--crm-surface, #fff); border-radius: var(--crm-radius, 8px); padding: 6px 12px; cursor: pointer; }
.sf-refresh:hover:not(:disabled) { background: var(--crm-surface-dim, #f8f9fa); }
.sf-refresh:disabled { opacity: .6; cursor: default; }

.sf-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
.sf-filters input, .sf-filters select { font: inherit; font-size: 13px; color: inherit; background: var(--crm-surface, #fff); border: 1px solid var(--crm-border, #e2e8f0); border-radius: var(--crm-radius, 8px); padding: 6px 10px; }
.sf-filters input { width: 220px; }
.sf-seg { display: flex; border: 1px solid var(--crm-border, #e2e8f0); border-radius: var(--crm-radius, 8px); overflow: hidden; }
.sf-seg button { font: inherit; font-size: 13px; border: 0; background: var(--crm-surface, #fff); padding: 6px 14px; cursor: pointer; color: inherit; }
.sf-seg button + button { border-left: 1px solid var(--crm-border, #e2e8f0); }
.sf-seg button[aria-pressed="true"] { background: var(--crm-primary, #177a44); color: #fff; }

.sf-tablewrap { overflow-x: auto; border-top: 1px solid var(--crm-border, #e2e8f0); }
.sf-table { width: 100%; border-collapse: collapse; min-width: 960px; font-size: 14px; }
.sf-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--crm-text-muted, #5b6b73); background: var(--crm-surface-dim, #f8f9fa); padding: 10px 16px; white-space: nowrap; }
.sf-table td { padding: 12px 16px; border-top: 1px solid var(--crm-border, #e2e8f0); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sf-table th.sf-num, .sf-table td.sf-num { text-align: right; }
.sf-table td b { font-weight: 600; }
.sf-table tr[data-request] { cursor: pointer; }
.sf-table tr[data-request]:hover, .sf-table tr[data-request]:focus-visible { background: var(--crm-surface-dim, #f8f9fa); }
.sf-target { display: inline-flex; align-items: baseline; gap: 6px; }
.sf-target b { font-size: 15px; }
.sf-qid { font: 500 12px ui-monospace, 'JetBrains Mono', monospace; background: var(--crm-surface-dim, #f1f5f9); padding: 2px 7px; border-radius: 5px; }
.sf-gap { font: 600 12px ui-monospace, 'JetBrains Mono', monospace; margin-left: 6px; }
.sf-gap.is-below { color: var(--crm-danger, #dc2626); }
.sf-gap.is-above { color: var(--crm-success-text, #166534); }
.sf-late { color: var(--crm-danger, #dc2626); font-weight: 600; }
.sf-note { font-size: 11px; color: var(--crm-text-muted, #5b6b73); border: 1px solid var(--crm-border, #e2e8f0); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.sf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.sf-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sf-chip.is-wait { background: var(--crm-warning-bg, #fff8e7); color: var(--crm-warning-text, #92400e); }
.sf-chip.is-draft { background: #e8f0fe; color: #1d4ed8; }
.sf-chip.is-done { background: var(--crm-success-bg, #f0fdf4); color: var(--crm-success-text, #166534); }
.sf-understood { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--crm-success-text, #166534); white-space: nowrap; }
.sf-empty { padding: 36px 0; color: var(--crm-text-muted, #5b6b73); border-top: 1px solid var(--crm-border, #e2e8f0); margin: 0; }
.sf-link { font: inherit; border: 0; background: none; color: var(--crm-primary, #177a44); text-decoration: underline; cursor: pointer; padding: 0; }
.sf-foot { font-size: 12px; color: var(--crm-text-muted, #5b6b73); margin: 12px 0 0; }
.crm-nav-item .sf-nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--crm-danger, #dc2626); color: #fff; font-size: 11px; font-weight: 600; }

/* Review screen (teacher feedback step 4): bar on top, the canvas below, Summary drawer on the right. */
.sfr-root [hidden] { display: none !important; }
.sfr-root { max-width: 1360px; color: var(--crm-text-main, #1e293b); }
.sfr { border: 1px solid var(--crm-border, #e2e8f0); border-radius: 14px; overflow: hidden; background: var(--crm-surface, #fff); }
.sfr-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; border-bottom: 1px solid var(--crm-border, #e2e8f0); }
.sfr-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sfr-who b { font-size: 15px; }
.sfr-facts { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--crm-text-muted, #5b6b73); }
.sfr-facts b { color: var(--crm-text-main, #1e293b); font-variant-numeric: tabular-nums; }
.sfr-spacer { flex: 1; }
.sfr-pager { display: flex; align-items: center; gap: 2px; font: 12px ui-monospace, 'JetBrains Mono', monospace; color: var(--crm-text-muted, #5b6b73); }
.sfr-pager button, .sfr-ghost { border: 0; background: transparent; min-width: 28px; height: 28px; border-radius: 6px; color: var(--crm-text-muted, #5b6b73); cursor: pointer; font: inherit; font-size: 16px; }
.sfr-pager button:hover:not(:disabled), .sfr-ghost:hover { background: var(--crm-surface-dim, #f1f5f9); color: var(--crm-text-main, #1e293b); }
.sfr-pager button:disabled { opacity: .35; cursor: default; }
.sfr-saved { font-size: 12px; color: var(--crm-text-muted, #5b6b73); }
.sfr-saved[data-tone="error"] { color: var(--crm-danger, #dc2626); font-weight: 600; }
.sfr-btn { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--crm-border, #e2e8f0); background: var(--crm-surface, #fff); color: inherit; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.sfr-btn:hover:not(:disabled) { background: var(--crm-surface-dim, #f1f5f9); }
.sfr-btn.is-primary { background: var(--crm-primary, #177a44); border-color: var(--crm-primary, #177a44); color: #fff; }
.sfr-btn.is-primary:hover:not(:disabled) { filter: brightness(1.06); background: var(--crm-primary, #177a44); }
.sfr-btn:disabled { opacity: .6; cursor: default; }
.sfr-banner { margin: 0; padding: 10px 16px; font-size: 13px; background: var(--crm-warning-bg, #fff8e7); color: var(--crm-warning-text, #92400e); border-bottom: 1px solid var(--crm-border, #e2e8f0); }

.sfr-canvas { position: relative; }
.sfr-snote { margin: 0 0 24px; font-size: 14px; color: var(--crm-text-muted, #5b6b73); display: flex; gap: 8px; align-items: baseline; max-width: 70ch; }
.sfr-snote b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; flex: none; }
.sfr-snote q { font-style: italic; color: var(--crm-text-main, #1e293b); }
.sfr-gone { margin: 0 0 20px; font-size: 13px; color: var(--crm-warning-text, #92400e); }
.sfr-prompt { margin: 0 0 28px; font-size: 13px; color: var(--crm-text-muted, #5b6b73); }
.sfr-prompt summary { cursor: pointer; list-style: none; display: inline; }
.sfr-prompt summary::-webkit-details-marker { display: none; }
.sfr-prompt summary::before { content: '▸ '; }
.sfr-prompt[open] summary::before { content: '▾ '; }
.sfr-prompt p { margin: 8px 0 0; max-width: 70ch; color: var(--crm-text-main, #1e293b); font-size: 14px; white-space: pre-wrap; }
.sfr-wave { --sfr-wave: #CDD6E2; --sfr-played: #3B82F6; position: relative; height: 112px; margin-bottom: 40px; cursor: pointer; }
.sfr-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sfr-playhead { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--crm-text-main, #1e293b); border-radius: 1px; pointer-events: none; }
.sfr-ticks { position: absolute; left: 0; right: 0; bottom: -22px; display: flex; justify-content: space-between; font: 11px ui-monospace, 'JetBrains Mono', monospace; color: var(--crm-text-muted, #5b6b73); pointer-events: none; }

.sfr-dock { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; background: var(--crm-surface, #fff); border: 1px solid var(--crm-border, #e2e8f0); border-radius: 999px; box-shadow: 0 1px 2px rgba(19,26,38,.06), 0 6px 20px -6px rgba(19,26,38,.14); }
.sfr-play { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #3B82F6; color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 14px; }
.sfr-play:disabled { background: var(--crm-border, #e2e8f0); cursor: default; }
.sfr-clock { font: 12px ui-monospace, 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.sfr-rate { display: flex; gap: 2px; }
.sfr-rate button { border: 0; background: transparent; font: 12px ui-monospace, 'JetBrains Mono', monospace; padding: 4px 7px; border-radius: 6px; color: var(--crm-text-muted, #5b6b73); cursor: pointer; }
.sfr-rate button[aria-pressed="true"] { background: var(--crm-surface-dim, #f1f5f9); color: var(--crm-text-main, #1e293b); }

.sfr-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 360px; max-width: 100%; z-index: 9; background: var(--crm-surface, #fff); border-left: 1px solid var(--crm-border, #e2e8f0); box-shadow: -8px 0 24px -12px rgba(19,26,38,.2); display: flex; flex-direction: column; }
.sfr-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--crm-border, #e2e8f0); }
.sfr-drawer-head h2 { font-size: 15px; margin: 0; }
.sfr-drawer-body { padding: 16px; display: grid; gap: 22px; align-content: start; overflow: auto; flex: 1; }
.sfr-lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--crm-text-muted, #5b6b73); font-weight: 600; display: block; margin-bottom: 6px; }
.sfr-drawer textarea { font-size: 14px; line-height: 1.55; font-family: inherit; color: inherit; background: var(--crm-surface-dim, #f1f5f9); border: 0; border-radius: 10px; padding: 10px 12px; resize: vertical; min-height: 110px; width: 100%; box-sizing: border-box; }
.sfr-tally, .sfr-hint { font-size: 13px; color: var(--crm-text-muted, #5b6b73); margin: 0; }
.sfr-scores { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 16px; align-items: center; font-size: 13px; }
.sfr-h { font-size: 11px; color: var(--crm-text-muted, #5b6b73); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; text-align: right; }
.sfr-h:first-child { text-align: left; }
.sfr-ai { color: var(--crm-text-muted, #5b6b73); text-align: right; font-variant-numeric: tabular-nums; }
.sfr-scores input { width: 64px; font: inherit; font-variant-numeric: tabular-nums; text-align: right; color: inherit; background: var(--crm-surface-dim, #f1f5f9); border: 0; border-radius: 6px; padding: 5px 8px; }
.sfr-scores input:invalid { outline: 2px solid var(--crm-danger, #dc2626); }

.sfr-modal-shade { position: fixed; inset: 0; z-index: 10000; background: rgba(15,23,42,.38); display: grid; place-items: center; }
.sfr-modal { width: min(420px, calc(100vw - 32px)); background: var(--crm-surface, #fff); border-radius: 14px; padding: 20px; box-shadow: 0 20px 50px -12px rgba(15,23,42,.35); font-size: 14px; }
.sfr-modal p { margin: 0 0 18px; line-height: 1.5; }
.sfr-modal-row { display: flex; justify-content: flex-end; gap: 8px; }
