.rg{display:grid;gap:18px;min-width:0}.rg-panel{overflow:hidden;padding:0!important;min-width:0}.rg-bar,.rg-inline,.rg-actions,.rg-subhead{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rg-bar{padding:20px 22px;justify-content:space-between}.rg-bar h2{margin:0;font-size:1.12rem}.rg-tabs,.rg-subnav{display:flex;gap:6px;align-items:center;overflow-x:auto;max-width:100%;padding:3px 0}.rg-tabs button,.rg-subnav button{font:inherit;font-size:.92rem;white-space:nowrap;cursor:pointer;color:#4c6370;background:transparent;border:0;padding:9px 12px;border-radius:6px}.rg-tabs button.active,.rg-subnav button.active{background:#e2f2ee;color:#0f665e;font-weight:660}.rg-subnav{border-top:1px solid #e5ebee;border-bottom:1px solid #e5ebee;padding:8px 18px}.rg-subhead:empty{display:none}.rg-subhead,.rg-inline,.rg-pad{padding:10px 22px}.rg-pad{line-height:1.5}.rg-search{border:1px solid #cfd9dd;border-radius:6px;min-height:36px;padding:8px 12px;font:inherit;font-size:.89rem;max-width:100%}.rg-tag{display:inline-flex;border-radius:5px;background:#edf1f4;color:#475b68;padding:3px 7px;font-size:.82rem;white-space:nowrap}.rg-tag.good{background:#e2f2e9;color:#266344}.rg-tag.warn{background:#fff0d6;color:#815313}.rg-link{cursor:pointer;border:0;background:none;font:inherit;color:#186d67;font-weight:600;text-align:left;padding:3px 0}.rg-link:hover{text-decoration:underline}.rg-table{width:100%;overflow:auto}.rg-table table,.rg-worksheet table{border-collapse:collapse;width:100%;font-size:.91rem}.rg-table th,.rg-table td,.rg-worksheet th,.rg-worksheet td{text-align:left;padding:12px 14px;line-height:1.45;border-bottom:1px solid #e6ecee}.rg-table th,.rg-worksheet th{font-size:.84rem;color:#4d606a;background:#f4f7f8;white-space:nowrap}.rg-table th:first-child,.rg-table td:first-child{padding-left:22px}.rg-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:18px;margin:0;padding:18px 22px}.rg-detail dt{font-size:.84rem;color:#5c6e78}.rg-detail dd{margin:4px 0 0;font-weight:600}.rg-empty{padding:24px!important;color:#627682}.rg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rg-fields .field{display:grid;align-content:start;gap:6px;margin:0;font-size:.91rem}.rg-fields input:not([type=checkbox]),.rg-fields select{min-width:0;width:100%;padding:9px 10px;min-height:39px;border:1px solid #c6d2d8;border-radius:6px;background:white;color:#18303b;font:inherit}.rg-fields .rg-check,.rg-fields .rg-full,.rg-fields .rg-detail,.rg-fields .rg-help{grid-column:1/-1}.rg-fields .rg-detail{padding:0}.rg-check{display:flex;gap:8px;align-items:center}.rg-worksheet{max-width:100%;overflow:auto}.rg-worksheet input:not([type=checkbox]){min-width:72px}.rg-help{font-size:.9rem;color:#526770}.rg :focus-visible,.rg-fields :focus-visible{outline:2px solid #167e74;outline-offset:2px}@media(max-width:650px){.rg-bar{padding:16px}.rg-fields{grid-template-columns:1fr}.rg-actions{width:100%}.rg-tabs{padding:3px 0}.rg-tabs button{padding:9px}.rg-search{flex:1 1 130px}}

.rg-subnav a {
  border-radius: 6px;
  color: #4c6370;
  font-size: .875rem;
  padding: 8px 11px;
  text-decoration: none;
  white-space: nowrap;
}
.rg-subnav a.active {
  background: #e2f2ee;
  color: #0f665e;
  font-weight: 650;
}
.rg-bar { padding: 15px 20px; }
.rg-table th, .rg-table td, .rg-worksheet th, .rg-worksheet td { padding-block: 9px; }
.rg-table .rg-numeric { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rg-fields, .rg-fields > *, .rg-module-editor { min-width: 0; }
.rg-fields .rg-full, .rg-fields .rg-detail { max-width: 100%; }
.rg-fields textarea {
  background: #fff;
  border: 1px solid #c6d2d8;
  border-radius: 6px;
  color: #18303b;
  font: inherit;
  min-width: 0;
  padding: 8px 10px;
  resize: vertical;
  width: 100%;
}
.rg-fields .rg-full .rg-bar { padding: 6px 0 10px; }
.rg-module-editor { max-width: 100%; overflow-x: auto; }
.rg-module-editor table { border-collapse: collapse; min-width: 680px; width: 100%; }
.rg-module-editor th, .rg-module-editor td { padding: 6px; text-align: left; }
.rg-module-editor th { white-space: nowrap; }
.rg-module-editor input:not([type=checkbox]) { padding: 5px 6px; }
.rg-module-editor th:nth-child(3) { min-width: 145px; }
.rg-module-editor th:first-child, .rg-module-editor th:nth-child(5), .rg-module-editor th:nth-child(6) { min-width: 63px; }
.rg-measures {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
  padding: 16px 20px 0;
}
.rg-counter { background: #f1f6f7; border-radius: 6px; display: grid; gap: 4px; padding: 10px 12px; }
.rg-counter span { color: #4c6370; font-size: .82rem; }
.rg-counter strong { color: #18303b; font-size: 1rem; }
.rg-link { text-decoration: none; }
@media (max-width: 650px) {
  .rg-fields { grid-template-columns: minmax(0, 1fr); }
  .rg-fields .rg-detail { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
  .rg-bar { padding: 13px 14px; }
  .rg-actions { max-width: 100%; }
}

.hedge .rg { gap: 1rem; }
.hedge .rg-panel, .hedge .ops-portlet, .hedge .ops-kpis {
  border: 1px solid var(--border);
  border-radius: var(--radius, .375rem);
  background: var(--card);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}
.hedge .rg-bar, .hedge .rg-toolbar, .hedge .ops-portlet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .875rem;
  border-bottom: 1px solid var(--border);
}
.hedge .rg-bar, .hedge .ops-portlet > header {
  background: color-mix(in oklch, var(--muted) 60%, var(--card));
}
.hedge .rg-bar h2, .hedge .rg-bar h3, .hedge .ops-portlet h2 {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.hedge .rg-toolbar { flex-wrap: wrap; justify-content: flex-start; padding-inline: .75rem; }
.hedge .rg-toolbar-count {
  margin-left: auto;
  color: var(--muted-foreground);
  font-size: .75rem;
}
.hedge .rg-actions { gap: .5rem; width: auto; align-items: center; }
.hedge .rg-search-wrap { position: relative; width: min(100%, 20rem); }
.hedge .rg-search-wrap svg { position: absolute; left: .5rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); }
.hedge .rg-search {
  box-sizing: border-box;
  min-height: 2rem;
  width: 100%;
  padding: .25rem .5rem .25rem 1.75rem;
  border-radius: .375rem;
  border: 1px solid var(--input);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: .8125rem;
}
.hedge .rg-toolbar :is(.btn, .button) { min-height: 2rem; font-size: .8125rem; }
.hedge .rg-tabs, .hedge .rg-subnav { display: flex; justify-content: flex-start; gap: .125rem; padding: 0 .75rem; }
.hedge .rg-subnav { border-top: 0; border-bottom: 1px solid var(--border); }
.hedge .rg-subnav a, .hedge .rg-subnav button, .hedge .rg-tabs button {
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: .5rem .75rem;
  background: transparent;
  color: var(--muted-foreground);
  font-size: .8125rem;
  font-weight: 500;
}
.hedge .rg-subnav a:hover, .hedge .rg-subnav button:hover, .hedge .rg-tabs button:hover { color: var(--foreground); }
.hedge .rg-subnav a.active, .hedge .rg-subnav button.active, .hedge .rg-tabs button.active { border-bottom-color: var(--primary); color: var(--primary); }
.hedge .rg-table, .hedge .ops-table { max-width: 100%; width: 100%; overflow: auto; }
.hedge .rg-table table, .hedge .rg-worksheet table, .hedge .ops-table table { border-collapse: collapse; width: 100%; font-size: .8125rem; }
.hedge .rg-table :is(th, td), .hedge .rg-worksheet :is(th, td), .hedge .ops-table :is(th, td) {
  padding: .375rem .75rem;
  line-height: 1.25rem;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
}
.hedge .rg-table th, .hedge .rg-worksheet th, .hedge .ops-table th {
  color: var(--muted-foreground);
  background: var(--muted);
  text-align: left;
  font-weight: 500;
  font-size: .75rem;
  white-space: nowrap;
}
.hedge .rg-table tbody tr:nth-child(even), .hedge .ops-table tbody tr:nth-child(even) { background: color-mix(in oklch, var(--muted) 30%, transparent); }
.hedge .rg-table tbody tr:hover, .hedge .ops-table tbody tr:hover { background: color-mix(in oklch, var(--accent) 60%, transparent); }
.hedge .rg-table tr:last-child td, .hedge .ops-table tr:last-child td { border-bottom: 0; }
.hedge .rg-table .rg-numeric { text-align: right; font-family: var(--font-mono, monospace); font-variant-numeric: tabular-nums; }
.hedge .rg-record-number, .hedge .rg-table .rg-numeric { font-family: var(--font-mono, monospace); font-variant-numeric: tabular-nums; }
.hedge .rg-record-number { font-size: .75rem; }
.hedge .rg-tag {
  background: var(--muted);
  color: var(--muted-foreground);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: .125rem;
  padding: .125rem .375rem;
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1rem;
  white-space: nowrap;
}
.hedge .rg-tag.good { background: #ecfdf5; color: #065f46; box-shadow: inset 0 0 0 1px #05966933; }
.hedge .rg-tag.warn { background: #fffbeb; color: #92400e; box-shadow: inset 0 0 0 1px #d9770633; }
.hedge .rg-tag.info { background: #f0f9ff; color: #075985; box-shadow: inset 0 0 0 1px #0284c733; }
.hedge .rg-tag.bad { background: #fef2f2; color: #b91c1c; box-shadow: inset 0 0 0 1px #dc262633; }
.hedge.dark .rg-tag.good, .dark .hedge .rg-tag.good { background: #10b9811a; color: #6ee7b7; box-shadow: inset 0 0 0 1px #34d39940; }
.hedge.dark .rg-tag.warn, .dark .hedge .rg-tag.warn { background: #f59e0b1a; color: #fcd34d; box-shadow: inset 0 0 0 1px #fbbf2440; }
.hedge.dark .rg-tag.info, .dark .hedge .rg-tag.info { background: #0ea5e91a; color: #7dd3fc; box-shadow: inset 0 0 0 1px #38bdf840; }
.hedge.dark .rg-tag.bad, .dark .hedge .rg-tag.bad { background: #ef44441a; color: #fca5a5; box-shadow: inset 0 0 0 1px #f8717140; }
.hedge .rg-link, .hedge .ops-panel-link { color: var(--primary); font-weight: 500; }
.hedge .rg-link { padding-block: 0; }
.hedge .rg-person-name { font-weight: 500; }
.hedge [data-registry-row] { cursor: pointer; }
.hedge .rg-seat-meter { width: 5rem; }
.hedge .rg-price { font-family: var(--font-mono, monospace); white-space: nowrap; }
.hedge .rg-detail { gap: .75rem 2rem; padding: 1rem; }
.hedge .rg-detail dt, .hedge .rg-fields .field { font-size: .75rem; color: var(--muted-foreground); }
.hedge .rg-detail dd { margin-top: .125rem; font-size: .8125rem; font-weight: 500; overflow-wrap: anywhere; }
.hedge :is(.rg-pad, .rg-inline, .rg-subhead, .rg-measures) { padding-inline: .875rem; }
.hedge .rg-fields { gap: .75rem; }
.hedge .rg-fields :is(input:not([type=checkbox]), select, textarea) {
  border-radius: .375rem;
  min-height: 2.25rem;
  padding: .375rem .625rem;
  border-color: var(--input);
  background: var(--card);
  color: var(--foreground);
  font-size: .875rem;
}
.hedge .rg-fields .rg-full .rg-bar { padding: .5rem .75rem; }
.hedge .rg-fields .rg-module-editor { border: 1px solid var(--border); border-top: 0; }
.hedge .rg-counter { border-radius: .375rem; background: var(--muted); }
.hedge .rg-counter span, .hedge .rg-help { color: var(--muted-foreground); }
.hedge .rg-counter strong { color: var(--foreground); font-family: var(--font-mono, monospace); }
.hedge .rg-empty { color: var(--muted-foreground); }
.hedge .rg :focus-visible, .hedge .rg-fields :focus-visible { outline-color: var(--ring); }
.hedge .rg-curriculum-data { padding: .75rem; }
.hedge .rg-form-section { display: grid; gap: .75rem; padding: .25rem 0 1rem; min-width: 0; }
.hedge .rg-form-section:not(:last-child) { border-bottom: 1px solid var(--border); }
.hedge .rg-form-section > h3 { font-size: .6875rem; font-weight: 600; letter-spacing: .065em; text-transform: uppercase; color: var(--muted-foreground); }
.hedge .rg-form-section > .rg-fields { display: grid; }
.hedge .he-record-drawer:has(.rg-form-section) { width: min(100%, 48rem); max-width: 48rem; }

.rg-workspace-stack { display: grid; gap: 1rem; min-width: 0; }
.rg-student-identity { margin: .75rem .875rem 0; color: var(--muted-foreground, #526770); }
.rg-roster-filter { display: inline-flex; align-items: center; gap: .375rem; color: var(--muted-foreground, #526770); font-size: .8125rem; }
.rg-roster-filter select {
  border: 1px solid var(--input, #cfd9dd);
  border-radius: .375rem;
  background: var(--card, #fff);
  color: var(--foreground, #18303b);
  font: inherit;
  min-height: 2rem;
  padding: .25rem .5rem;
}
.rg-quantity { font-family: var(--font-mono, monospace); font-variant-numeric: tabular-nums; white-space: nowrap; }

.ops-landing, .ops-land-columns, .ops-land-columns > div, .ops-land-columns > aside { display: grid; min-width: 0; align-content: start; gap: 1rem; }
.ops-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.ops-kpi {
  display: flex;
  min-width: 0;
  flex-direction: column;
  position: relative;
  gap: .25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .75rem;
}
.ops-kpi:nth-child(2n) { border-right: 0; }
.ops-kpi:nth-child(n+3) { border-bottom: 0; }
.ops-kpi::before { position: absolute; content: ""; width: 3px; inset: 0 auto 0 0; background: var(--kpi-accent); }
.ops-kpi > span { display: flex; align-items: center; gap: .375rem; }
.ops-kpi > :is(span, small) { font-size: .75rem; color: var(--muted-foreground); }
.ops-kpi > span { font-weight: 500; }
.ops-kpi strong { font-family: var(--font-mono, monospace); font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.ops-kpi:hover { background: color-mix(in oklch, var(--accent) 40%, transparent); }
.ops-kpi:hover small { color: var(--primary); }
.ops-portlet { overflow: hidden; }
.ops-portlet h2 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.ops-portlet h2 svg { color: var(--muted-foreground); }
.ops-panel-link { font-size: .75rem; white-space: nowrap; }
.ops-panel-link:hover, .ops-row-link:hover { text-decoration: underline; }
.ops-areas { display: grid; }
.ops-group { min-width: 0; padding: .5rem; }
.ops-group + .ops-group { border-top: 1px solid var(--border); }
.ops-group > h3 {
  margin: 0;
  padding: .25rem .5rem .375rem;
  color: var(--muted-foreground);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.ops-area { display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: .125rem; }
.ops-area > span { min-width: 0; flex: 1; }
.ops-area strong, .ops-area small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ops-area strong { color: var(--primary); font-size: .8125rem; font-weight: 500; }
.ops-area small { color: var(--muted-foreground); font-size: .75rem; }
.ops-area b {
  min-width: 2.25rem;
  padding: .125rem .375rem;
  border-radius: .125rem;
  text-align: center;
  background: var(--muted);
  font-family: var(--font-mono, monospace);
  font-size: .75rem;
  font-weight: 600;
}
.ops-area b.urgent { color: var(--destructive); background: color-mix(in oklch, var(--destructive) 10%, transparent); }
.ops-area:hover { background: color-mix(in oklch, var(--accent) 50%, transparent); }
.ops-area:hover strong { text-decoration: underline; }
.ops-list { padding: 0; margin: 0; list-style: none; }
.ops-list li, .ops-ident > div {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .625rem .875rem;
  font-size: .8125rem;
}
.ops-list li + li, .ops-ident > div + div { border-top: 1px solid var(--border); }
.ops-list li > span:first-child { flex: 1; min-width: 0; }
.ops-list li > span:first-child small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-foreground); font-size: .75rem; }
.ops-list li code { width: 2rem; text-align: right; }
.ops-empty { padding: 1rem .875rem; color: var(--muted-foreground); font-size: .8125rem; }
.ops-row-link { color: var(--foreground); font-weight: 500; }
.ops-ident { margin: 0; }
.ops-ident dt { color: var(--muted-foreground); }
.ops-ident dd { text-align: right; margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.ops-meter-pair { display: flex; width: max-content; align-items: center; gap: .5rem; }
.ops-meter { display: inline-block; width: 7rem; height: .375rem; border-radius: 1rem; background: var(--muted); overflow: hidden; }
.ops-meter.long { width: min(8rem, 33%); }
.ops-meter i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.ops-landing code, .ops-meter-pair code { font-family: var(--font-mono, monospace); font-size: .75rem; }
@media (min-width: 640px) { .ops-kpi { padding: 1rem; } .ops-kpi strong { font-size: 1.25rem; } }
@media (min-width: 1024px) {
  .ops-kpis, .ops-areas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ops-kpi { border-bottom: 0; }
  .ops-kpi:nth-child(2n) { border-right: 1px solid var(--border); }
  .ops-kpi:last-child { border-right: 0; }
  .ops-kpi strong { font-size: 1.5rem; }
  .ops-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-group:nth-child(-n+2) { border-top: 0; }
  .ops-group:nth-child(even) { border-left: 1px solid var(--border); }
}
@media (min-width: 1280px) { .ops-land-columns { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 400px) { .hedge .rg-toolbar .rg-search-wrap { flex: 1 1 11rem; } }

.hedge .rg-student-timeline {
  margin-top: .75rem;
}
.hedge .rg-timeline-tools {
  display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:.65rem;
  padding:0 0 .75rem;
}
.hedge .rg-timeline-tools .field {
  display:grid; gap:.25rem;
  color:var(--muted-foreground); font-size:.8125rem;
}
.hedge .rg-timeline-list {
  list-style:none; padding:0; margin:0; display:grid;
}
.hedge .rg-timeline-list li {
  display:grid; grid-template-columns:6rem minmax(0,1fr) auto;
  align-items:start; gap:.55rem; padding:.65rem .15rem;
  border-top:1px solid var(--border);
}
.hedge .rg-timeline-list time,
.hedge .rg-timeline-meta strong {
  color:var(--muted-foreground); font-family:var(--font-mono); font-size:.75rem;
}
.hedge .rg-timeline-copy > strong { font-size:.875rem; }
.hedge .rg-timeline-copy p,
.hedge .rg-timeline-copy small {
  display:block; margin:.2rem 0 0; color:var(--muted-foreground);
  overflow-wrap:anywhere; white-space:pre-wrap; font-size:.8125rem;
}
.hedge .rg-timeline-copy small { font-size:.75rem; }
.hedge .rg-timeline-meta { display:grid; justify-items:end; gap:.25rem; text-align:right; }
.hedge .rg-timeline-meta span {
  border-radius:.35rem; padding:.14rem .36rem; color:var(--muted-foreground);
  background:var(--muted); font-size:.6875rem;
}
.hedge .rg-timeline-retry { margin:.25rem 0 .75rem; }
.hedge .rg-history-note-context { margin:0; color:var(--muted-foreground); font-size:.875rem; }
@media (max-width:36rem) {
  .hedge .rg-timeline-list li { grid-template-columns:1fr auto; }
  .hedge .rg-timeline-list time { grid-column:1 / -1; }
}
