.rc-screen {
  --rc-ink: #203c32;
  --rc-muted: #54685f;
  --rc-green: #185440;
  --rc-line: #d6dfd6;
  --rc-paper: #fffefa;
  display: grid;
  gap: 20px;
  color: var(--rc-ink);
  min-width: 0;
}
.rc-screen * { box-sizing: border-box; }
.rc-screen [hidden] { display: none !important; }
.rc-screen h1, .rc-screen h2, .rc-screen p, .rc-screen dl { margin: 0; }
.rc-screen h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.rc-screen h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.rc-heading, .rc-countrow, .rc-searchrow, .rc-actions, .rc-status-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rc-heading, .rc-countrow { justify-content: space-between; flex-wrap: wrap; }
.rc-actions, .rc-status-buttons { flex-wrap: wrap; }
.rc-heading { padding-bottom: 5px; gap: 18px; }
.rc-screen .rc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--rc-line);
  border-radius: 7px;
  background: var(--rc-paper);
  color: var(--rc-green);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.rc-screen .rc-button:hover { background: #f0f4ee; border-color: #a2b7aa; }
.rc-screen .rc-button.rc-primary { background: var(--rc-green); border-color: var(--rc-green); color: white; }
.rc-screen .rc-button.rc-primary:hover { background: #113f30; }
.rc-screen .rc-danger { color: #9b3830; }
.rc-screen button:disabled, .rc-screen fieldset:disabled button { opacity: .55; cursor: default; }
.rc-screen a:focus-visible, .rc-screen button:focus-visible, .rc-screen input:focus-visible, .rc-screen select:focus-visible {
  outline: 3px solid #3e8169; outline-offset: 2px;
}
.rc-panel, .rc-list { background: var(--rc-paper); border: 1px solid var(--rc-line); border-radius: 12px; }
.rc-panel { padding: clamp(16px, 2.3vw, 26px); }
.rc-stack, .rc-form-set, .rc-library-controls { display: grid; gap: 16px; min-width: 0; align-content: start; }
.rc-form-set { margin: 0; border: 0; padding: 0; }
.rc-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; align-items: start; }
.rc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rc-span { grid-column: 1 / -1; }
.rc-fields label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.rc-fields input, .rc-fields select, .rc-search {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #bdcbbf;
  border-radius: 6px;
  background: white;
  color: var(--rc-ink);
  padding: 8px 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}
.rc-hint, .rc-countrow, .rc-identity small, .rc-empty p, .rc-feedback { color: var(--rc-muted); font-size: .9rem; line-height: 1.5; }
.rc-panel h2 + .rc-hint { margin-top: 6px; }
.rc-screen .rc-text-button { color: var(--rc-green); background: transparent; padding: 4px; border: 0; text-decoration: underline; font: inherit; cursor: pointer; }
.rc-screen .rc-chip { border-radius: 30px; min-height: 34px; padding: 5px 12px; font-size: .82rem; }
.rc-screen .rc-chip[aria-pressed=true] { background: #e2ede5; border-color: #88aa97; color: #194f37; }
.rc-status-buttons { gap: 7px; }
.rc-advanced { border-top: 1px solid var(--rc-line); padding: 16px 0 4px; }
.rc-countrow { font-size: .82rem; }
.rc-month-title { margin-top: 4px !important; }
.rc-list { overflow: hidden; }
.rc-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(75px,auto);
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  color: inherit;
  text-decoration: none;
}
.rc-row + .rc-row { border-top: 1px solid var(--rc-line); }
.rc-row:hover, .rc-row:focus { background: #f1f6ef; }
.rc-row:focus-visible { outline-offset: -4px !important; }
.rc-identity { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.rc-identity strong, .rc-money { font-size: .98rem; font-weight: 600; }
.rc-money { text-align: right; font-variant-numeric: tabular-nums; }
.rc-empty { padding: 42px 16px; text-align: center; }
.rc-empty p { margin: 8px 0 15px; }
.rc-pill {
  justify-self: start;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.25;
}
.rc-pending { color: #76501b; background: #f5e9ce; }
.rc-approved { color: #225d3b; background: #e0efe1; }
.rc-declined { color: #903d36; background: #f8e5dd; }
.rc-photo-frame { position: relative; margin: 0 auto; max-width: 100%; overflow: hidden; background: #eff2e9; }
.rc-photo-frame img { display: block; position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; }
.rc-preview { background: #eff2e9; border-radius: 8px; overflow: hidden; padding: 8px; }
.rc-ledger { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: .94rem; }
.rc-ledger dt { color: var(--rc-muted); }
.rc-ledger dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rc-check { display: flex; align-items: flex-start; gap: 9px; font-size: .94rem; }
.rc-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--rc-green); margin: 1px 0; }
.rc-error, .rc-notice { padding: 12px; border-radius: 6px; line-height: 1.45; overflow-wrap: anywhere; }
.rc-error { background: #f9e8e4; color: #8c3126; }
.rc-notice, .rc-screen [data-warning]:not(:empty) { background: #f5eedb; color: #6f4d1b; }
.rc-screen [data-warning]:not(:empty) { padding: 11px; border-radius: 6px; }
.rc-feedback:empty, .rc-screen [data-warning]:empty { display: none; }
@media(max-width: 480px) {
  .rc-row { gap: 5px 10px; grid-template-columns: minmax(0,1fr) auto; padding: 12px; }
  .rc-row .rc-pill { grid-column: 1; }
  .rc-row .rc-money { grid-column: 2; grid-row: 1 / 3; }
  .rc-searchrow { flex-wrap: wrap; }
  .rc-search { flex: 1 1 120px; }
  .rc-fields { gap: 10px; }
}
