/* Uses the dashboard palette and existing modal/native-Back behavior. */
.resource-sheet.sheet { width: min(920px, calc(100vw - 40px)); max-height: calc(var(--support-app-height, 100dvh) - 48px); padding: 24px; }
.resource-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.resource-heading h2 { font-size: 22px; }
.resource-heading p { margin-top: 5px; font-size: 14px; }
.resource-heading .icon-button { flex: none; }
.resource-toolbar, .resource-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.resource-toolbar { margin: 22px 0 10px; align-items: flex-end; }
.resource-toolbar .compact-field { flex: 1; }
.resource-sheet .compact-field { margin: 0; min-width: 0; font-size: 12px; color: var(--muted); }
.resource-sheet .compact-field :is(input, select) { margin-top: 5px; color: var(--ink); }
.resource-status { margin-top: 12px; font-size: 14px; overflow-wrap: anywhere; }
.resource-status:empty { display: none; }
.resource-status.error { color: var(--danger); }
.resource-summary { margin: 12px 0; font-size: 13px; }
.resource-list { display: grid; gap: 10px; }
.resource-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.resource-card h3 { margin: 0; font-size: 16px; }
.resource-card p { margin-top: 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
.resource-card .resource-actions { margin-top: 14px; }
.resource-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.resource-card-head .chip { flex: none; }
.resource-card[data-status="active"] { border-left: 3px solid var(--success); }
.resource-card[data-status="expired"] { border-left: 3px solid var(--amber); }
.notice-state-active { background: var(--accent-soft); color: var(--accent); }
.notice-state-expired { background: var(--amber-soft); color: var(--amber); }
.resource-empty { padding: 40px 16px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); text-align: center; }
.notice-edit-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.notice-preview { align-self: start; margin-top: 18px; padding: 20px; border-radius: var(--radius); background: var(--soft); overflow-wrap: anywhere; }
.resource-eyebrow { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.notice-preview h3 { margin-top: 10px; }
.notice-preview p { margin-top: 12px; white-space: pre-wrap; font-size: 14px; }
.notice-save-actions { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.resource-history { margin-top: 20px; color: var(--muted); font-size: 13px; }
.resource-history article { margin-top: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.resource-history p { margin-top: 4px; }
.resource-meta { color: var(--muted); font-size: 13px; }
.quick-instruction-form { margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.quick-instruction-form .resource-actions { margin-top: 4px; }
.resource-card .resource-card-head .resource-meta { margin-top: 0; }
.resource-card[data-status="stale"] { border-left: 3px solid var(--amber); }
.resource-card[data-status="retired"] { opacity: .75; }
.notice-state-retired { background: var(--soft); color: var(--muted); }
@media (min-width: 768px) and (min-height: 501px), (min-width: 981px) {
  .top-actions { min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
  .top-actions > * { flex-shrink: 0; }
}
@media (max-width: 767px) {
  .resource-sheet.sheet { width: 100%; max-width: 100%; height: calc(var(--support-app-height, 100dvh) - 20px - var(--page-safe-top)); max-height: calc(var(--support-app-height, 100dvh) - 20px - var(--page-safe-top)); padding: 24px max(16px, var(--page-safe-right)) calc(20px + var(--page-safe-bottom)) max(16px, var(--page-safe-left)); }
  .resource-heading h2 { font-size: 20px; }
  .notice-edit-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .notice-preview { padding: 14px; }
  .resource-card { padding: 14px; }
  .resource-card-head { flex-wrap: wrap; gap: 8px; }
  .resource-toolbar .compact-field { flex-basis: 130px; }
  .resource-actions .button { white-space: normal; }
}
