.rest-records {background:var(--night-panel, #fff);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.main:has(.rest-records) .heading-actions {display:flex}
.rest-records-heading {display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-bottom:1px solid var(--line)}
.rest-records-heading h2 {font-size:17px;font-weight:600}
.rest-records-heading>span {font-size:12px;color:var(--muted)}
.rest-columns,.rest-record-main {display:grid;grid-template-columns:minmax(0,1fr) 140px 100px 140px;gap:20px;align-items:center}
.rest-columns {background:var(--night-layer, #f5f9fb);color:var(--muted);font-size:12px;padding:14px 24px}
.rest-record {padding:22px 24px;border-bottom:1px solid var(--line)}
.rest-record:last-child {border-bottom:0}
.rest-record-copy {min-width:0}
.rest-record-copy h3 {font-size:15px;line-height:1.7;font-weight:600}
.rest-record-copy p {font-size:12px;line-height:1.8;color:var(--muted);margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}
.rest-record-scope {font-size:13px;color:var(--ink)}
.rest-record-scope small {display:block;font-size:11px;color:var(--muted);margin-top:7px}
.rest-record-actions {display:flex;align-items:center}
.rest-record-details {margin-top:16px}
.rest-record-details summary {display:flex;align-items:center;gap:8px;width:fit-content;list-style:none;min-height:36px;font-size:12px;color:var(--primary);cursor:pointer}
.rest-record-details summary::-webkit-details-marker {display:none}
.rest-record-details[open] summary .icon {transform:rotate(180deg)}
.rest-record-details .table-wrap {margin:8px 0 12px}
.rest-page-note {font-size:12px;line-height:1.8;color:var(--muted);margin:18px 0 0;max-width:65em}
.rest-empty {padding:64px 24px;text-align:center}
.rest-empty-icon {display:grid;place-items:center;width:64px;height:64px;margin:0 auto 22px;border-radius:22px;background:linear-gradient(135deg,var(--night-layer-tint, #e7f3fa),var(--night-success-bg, #f2f7e8));color:var(--primary)}
.rest-empty-icon .icon {width:30px;height:30px}
.rest-empty h2 {font-size:20px;font-weight:500;margin:0 0 14px}
.rest-empty p {font-size:13px;line-height:1.9;color:var(--muted);margin:0 0 24px}
@media (min-width:600px) and (max-width:1199px) {
 .rest-columns,.rest-record-main {grid-template-columns:minmax(0,1fr) 100px 70px 120px;gap:12px}
}
@media (max-width:759px) {
 .main:has(.rest-records) .page-heading {gap:10px}
 .main:has(.rest-records) .page-heading h1 {font-size:22px}
 .main:has(.rest-records) .heading-actions md-filled-button {--md-filled-button-leading-space:12px;--md-filled-button-trailing-space:12px}
 .rest-columns {display:none}
 .rest-records-heading {padding:18px}
 .rest-record {padding:18px}
 .rest-record-main {grid-template-columns:minmax(0,1fr) auto;gap:14px}
 .rest-record-copy {grid-column:1/-1}
 .rest-record-copy h3 {font-size:14px}
 .rest-record-scope {grid-column:1;grid-row:2;font-size:12px}
 .rest-record-status {grid-column:2;grid-row:2}
 .rest-record-actions {grid-column:1/-1}
 .rest-record-details {margin-top:8px}
 .rest-empty {padding:40px 20px}
 .rest-empty h2 {font-size:18px}
 .rest-page-note {font-size:11px}
}

/* Rest preview and applied-state deadline feedback use the shared notice. */
.rest-deadline-notice{margin:16px 0}.rest-deadline-notice .caption{margin:8px 0}.rest-deadline-notice strong{overflow-wrap:anywhere}

/* Metadata stays beside each other when space permits, then wraps on phones. */
.change-meta{display:flex;flex-wrap:wrap;gap:12px 24px;margin:16px 0}.change-meta>div{min-width:0;max-width:100%}.change-meta dt{font-size:12px;color:var(--muted);margin-bottom:4px}.change-meta dd{margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.notification-schedule{line-height:1.7}
