:root{
  --rn-brand:#00766c;
  --rn-brand-dark:#005f57;

  --rn-accent:#c2410c;

  --rn-bg:#f7fafc;
  --rn-soft:#f8fafc;
  --rn-card:#ffffff;
  --rn-wash-teal:#edfdfa;
  --rn-wash-amber:#fff7ed;
  --rn-wash-blue:#eff6ff;
  --rn-line-teal:#b8e8e1;
  --rn-line-amber:#fed7aa;

  --rn-border:#e5e7eb;
  --rn-border-strong:#d1d5db;

  --rn-text:#111827;
  --rn-navy:#08233f;
  --rn-muted:#6b7280;

  --rn-danger:#dc2626;
  --rn-danger-dark:#b91c1c;

  --rn-success:#15803d;
  --rn-success-dark:#166534;

  --rn-tenant-blue:#1d4ed8;
  --rn-user-green:#15803d;

  --rn-radius:14px;
  --rn-shadow:0 10px 24px rgba(0,0,0,.06);
}

/* Daily Summaries module */
.rn-ds-stage { width:min(1320px,calc(100% - 40px)); margin:30px auto 70px; display:grid; gap:18px; }
.rn-ds-hero { margin:0; }
.rn-ds-hero-actions,.rn-ds-view-head>div:last-child { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.rn-ds-nav { display:flex; flex-wrap:wrap; gap:9px; }
.rn-ds-nav a { min-height:42px; display:inline-flex; align-items:center; padding:0 18px; border:1px solid #a8deda; border-radius:22px; background:#fff; color:#004f4b; font-weight:800; text-decoration:none; }
.rn-ds-nav a.active { background:#087f7d; border-color:#087f7d; color:#fff; }
.rn-ds-date-bar { display:grid; grid-template-columns:auto minmax(320px,1fr) auto; gap:12px; align-items:end; padding:16px; border:1px solid #c8dfdd; border-top:4px solid #6ed8dc; background:#fff; border-radius:7px; }
.rn-ds-date-bar>a,.rn-ds-date-bar button { min-height:46px; padding:0 18px; border:0; border-radius:22px; background:#087f7d; color:#fff; font-weight:800; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.rn-ds-date-bar form { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:end; }
.rn-ds-date-bar label,.rn-ds-section-form label,.rn-ds-review-grid label,.rn-ds-recall-form label { display:grid; gap:6px; color:#455a73; font-weight:800; }
.rn-ds-date-bar input,.rn-ds-section-form input,.rn-ds-section-form select,.rn-ds-section-form textarea,.rn-ds-review-grid textarea,.rn-ds-recall-form input,.rn-ds-recall-form select,.rn-ds-day-review input,.rn-ds-amend-form textarea,.rn-ds-admin-home-control select,.rn-ds-add-note textarea { width:100%; min-height:46px; padding:10px 13px; border:1px solid #c8dfdd; border-radius:7px; background:#fff; color:#07182e; font:inherit; font-weight:400; }
.rn-ds-section-form input::placeholder,.rn-ds-section-form textarea::placeholder,.rn-ds-review-grid textarea::placeholder,.rn-ds-add-note textarea::placeholder { color:#64748b; font-weight:400; opacity:1; }
.rn-ds-section-form textarea,.rn-ds-review-grid textarea,.rn-ds-amend-form textarea { resize:vertical; }
.rn-ds-section-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.rn-ds-section-card { margin:0; padding:20px; border-top:4px solid #65cbc9; }
.rn-ds-section-evening { border-top-color:#d9a14a; }
.rn-ds-section-waking_night { border-top-color:#56758f; }
.rn-ds-card-head,.rn-ds-view-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.rn-ds-card-head h2,.rn-ds-view-head h2 { margin:0 0 5px; }
.rn-ds-card-head span { display:inline-flex; padding:4px 10px; border-radius:14px; background:#eef9f7; color:#006c68; font-weight:800; font-size:.78rem; }
.rn-ds-card-head small { color:#66758a; text-align:right; }
.rn-ds-section-form { display:grid; gap:14px; }
.rn-ds-period-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.rn-ds-period-checks label { min-height:44px; display:flex; align-items:center; gap:9px; padding:9px 11px; border:1px solid #cfe2df; border-radius:7px; background:#f8fcfb; color:#26445a; font-weight:750; }
.rn-ds-period-checks label.is-alert { border-color:#edc6b7; background:#fff8f3; color:#7f331f; }
.rn-ds-period-checks input { width:18px; min-height:18px; margin:0; flex:0 0 auto; }
.rn-ds-child-centred-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.rn-ds-core-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:end; }
.rn-ds-toggle,.rn-ds-declaration { min-height:46px; grid-template-columns:auto 1fr!important; align-items:center; padding:10px 13px; border:1px solid #efc788; border-radius:7px; background:#fff8ee; }
.rn-ds-toggle input,.rn-ds-declaration input,.rn-ds-flag-grid input { width:18px; min-height:18px; margin:0; }
.rn-ds-advanced { border:1px solid #c8dfdd; border-radius:7px; background:#f8fcfb; }
.rn-ds-advanced summary { padding:12px 14px; cursor:pointer; font-weight:800; color:#006c68; }
.rn-ds-advanced[open] { padding:0 14px 14px; display:grid; gap:12px; }
.rn-ds-flag-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.rn-ds-flag-grid label { display:flex; gap:8px; align-items:center; padding:9px; background:#fff; border:1px solid #dbe8e7; border-radius:6px; }
.rn-ds-section-form button,.rn-ds-review-actions button,.rn-ds-recall-form button,.rn-ds-day-review button,.rn-ds-amend-form button,.rn-ds-add-note button { min-height:46px; padding:0 18px; border:0; border-radius:22px; background:#087f7d; color:#fff; font-weight:800; }
.rn-ds-readonly { padding:15px; border:1px solid #d5e5e3; background:#fbfdfc; border-radius:7px; line-height:1.6; }
.rn-ds-readonly p { font-weight:400; }
.rn-ds-record-markers { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0; }
.rn-ds-record-markers span { display:inline-flex; align-items:center; min-height:30px; padding:5px 9px; border:1px solid #c9e1de; border-radius:15px; background:#f2fbf9; color:#15564f; font-size:12px; font-weight:750; }
.rn-ds-legacy-record { border-top:4px solid #a8b3c2; }
.rn-ds-additional-notes { display:grid; gap:9px; margin-top:14px; padding-top:14px; border-top:1px solid #d6e7e4; }
.rn-ds-additional-notes h3 { margin:0; color:#0b4550; font-size:15px; }
.rn-ds-additional-notes article { display:grid; gap:6px; padding:11px 12px; border-left:3px solid #d99032; border-radius:6px; background:#fffaf3; }
.rn-ds-additional-notes p { margin:0; color:#17263b; font-weight:400; line-height:1.5; }
.rn-ds-additional-notes small { color:#5d6f84; font-size:12px; font-weight:700; }
.rn-ds-add-note { margin-top:14px; border:1px solid #cfe2df; border-radius:7px; background:#f8fcfb; }
.rn-ds-add-note summary { padding:11px 13px; color:#087f7d; cursor:pointer; font-weight:800; }
.rn-ds-add-note form { display:grid; gap:10px; padding:0 13px 13px; }
.rn-ds-add-note label { display:grid; gap:6px; color:#455a73; font-weight:800; }
.rn-ds-locked-banner { display:flex; gap:12px; align-items:center; padding:14px 16px; border-left:4px solid #d46a35; border-radius:6px; background:#fff6ed; color:#79380e; }
.rn-ds-day-review,.rn-ds-admin-home-control { display:grid; grid-template-columns:1fr auto; gap:14px; align-items:end; padding:18px; border:1px solid #c8dfdd; border-top:4px solid #e7aa56; border-radius:7px; background:#fff; }
.rn-ds-week-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; }
.rn-ds-week-grid a { min-height:128px; display:flex; flex-direction:column; gap:9px; padding:14px; border:1px solid #c8dfdd; border-top:4px solid #65cbc9; border-radius:7px; background:#fff; color:#07182e; text-decoration:none; }
.rn-ds-week-grid span,.rn-ds-week-grid small { color:#596b83; }
.rn-ds-month-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.rn-ds-month-list a { display:grid; grid-template-columns:90px 130px 44px 1fr; gap:10px; align-items:center; padding:12px 14px; border:1px solid #d4e4e2; border-radius:6px; background:#fff; color:#07182e; text-decoration:none; }
.rn-ds-month-list em { width:38px; padding:3px; border-radius:12px; background:#edf8f7; color:#006c68; text-align:center; font-style:normal; font-weight:800; }
.rn-ds-review-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.rn-ds-review-actions { display:grid; grid-template-columns:auto minmax(260px,1fr); gap:12px; align-items:end; margin-top:18px; }
.rn-ds-review-actions .rn-ds-declaration { grid-column:1 / -1; }
.rn-ds-finalise { background:#8f351f!important; }
.rn-ds-recall-form { display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:12px; align-items:end; margin:16px 0 20px; }
.rn-ds-recall-results,.rn-ds-audit-list { display:grid; gap:8px; }
.rn-ds-recall-results a,.rn-ds-audit-list article { display:grid; grid-template-columns:180px 150px 1fr; gap:12px; padding:13px 15px; border:1px solid #d4e4e2; border-radius:6px; background:#fff; color:#07182e; text-decoration:none; }
.rn-ds-audit-list article { grid-template-columns:1fr 220px 260px; }
.rn-ds-amend-form { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; align-items:end; margin-top:16px; padding-top:16px; border-top:1px solid #e7c899; }
.rn-ds-admin-home-control { margin-top:18px; }
.rn-ds-admin-home-control>div { display:grid; gap:5px; }
.rn-ds-admin-home-control form { display:flex; gap:8px; align-items:center; }
.rn-ds-amendment-list { display:grid; gap:12px; }
.rn-ds-amendment-list>article { display:grid; grid-template-columns:1fr auto; gap:18px; padding:16px; border:1px solid #d4e4e2; border-left:4px solid #e7aa56; border-radius:7px; background:#fff; }
.rn-ds-amendment-list article>div { display:grid; gap:8px; }
.rn-ds-amendment-list article>div>span { color:#8b4a18; font-weight:800; }
.rn-ds-amendment-list form { display:grid; gap:8px; align-content:start; }
.rn-ds-amendment-list input { min-height:42px; padding:9px 12px; border:1px solid #c8dfdd; border-radius:7px; }
.rn-ds-amendment-list button { min-height:42px; padding:0 14px; border:0; border-radius:21px; background:#087f7d; color:#fff; font-weight:800; }
.rn-ds-amendment-compare { display:grid!important; grid-template-columns:1fr 1fr; gap:12px!important; margin-top:10px; }
.rn-ds-amendment-compare>div { padding:12px; border:1px solid #dce8e6; border-radius:6px; background:#f9fcfb; }
@media (max-width:1100px){.rn-ds-week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.rn-ds-flag-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rn-ds-month-list{grid-template-columns:1fr}}
@media (max-width:760px){.rn-ds-stage{width:min(100% - 20px,1320px);margin-top:16px}.rn-ds-section-grid,.rn-ds-review-grid,.rn-ds-amendment-compare{grid-template-columns:1fr}.rn-ds-date-bar{grid-template-columns:1fr 1fr}.rn-ds-date-bar form{grid-column:1 / -1;grid-row:1}.rn-ds-core-fields,.rn-ds-child-centred-fields,.rn-ds-review-actions,.rn-ds-recall-form,.rn-ds-day-review,.rn-ds-amend-form,.rn-ds-admin-home-control,.rn-ds-amendment-list>article{grid-template-columns:1fr}.rn-ds-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rn-ds-month-list a{grid-template-columns:72px 1fr 42px}.rn-ds-month-list small{grid-column:1 / -1}.rn-ds-recall-results a,.rn-ds-audit-list article{grid-template-columns:1fr}.rn-ds-card-head,.rn-ds-view-head{display:grid}.rn-ds-card-head small{text-align:left}.rn-ds-flag-grid{grid-template-columns:1fr}.rn-ds-admin-home-control form{display:grid}.rn-ds-hero-actions{justify-content:flex-start}}
@media (max-width:480px){.rn-ds-period-checks{grid-template-columns:1fr}}

.rn-episode-jump-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.rn-episode-jump-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(4, 128, 123, 0.22);
  border-radius: 12px;
  background: #fff;
  color: #004c4a;
  font-weight: 800;
  text-decoration: none;
}

.rn-episode-jump-list a::after {
  content: ">";
  font-size: 0.88rem;
  opacity: 0.58;
}

.rn-episode-jump-list a:hover,
.rn-episode-jump-list a:focus-visible {
  border-color: rgba(4, 128, 123, 0.46);
  background: rgba(238, 252, 250, 0.9);
}

.rn-rota-evidence-upload small {
  display: block;
  margin-top: 6px;
  color: #5b6f89;
  font-size: 0.82rem;
  line-height: 1.35;
}

.rn-rota-request-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.rn-rota-request-evidence a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid rgba(4, 128, 123, 0.22);
  border-radius: 999px;
  background: rgba(238, 252, 250, 0.86);
  color: #004c4a;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.rn-notification-list-first {
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .rn-episode-jump-list {
    margin-top: 10px;
  }

  .rn-episode-jump-list a {
    width: 100%;
  }
}

/* =========================================================
   ADMIN / SUPPORT EXPANSION
========================================================= */

.rn-topbar{gap:12px}
.rn-notification-bell{position:relative;width:42px;height:42px;margin-left:auto;border:1px solid var(--rn-border);border-radius:14px;background:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(15,23,42,.04)}
.rn-notification-bell-icon{position:relative;width:15px;height:17px;border:2px solid var(--rn-brand);border-bottom:0;border-radius:9px 9px 4px 4px}
.rn-notification-bell-icon::before{content:"";position:absolute;left:50%;top:-5px;width:7px;height:7px;border-radius:50%;border:2px solid var(--rn-brand);transform:translateX(-50%);background:#fff}
.rn-notification-bell-icon::after{content:"";position:absolute;left:50%;bottom:-5px;width:8px;height:4px;border-radius:0 0 8px 8px;background:var(--rn-brand);transform:translateX(-50%)}
.rn-notification-bell strong{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px;background:var(--rn-accent);color:#fff;font-size:11px;line-height:1}

.rn-log-attachments{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.rn-log-attachment-thumb{width:104px;height:78px;border-radius:12px;overflow:hidden;border:1px solid #b8e8e1;background:#fff;display:block;box-shadow:0 8px 18px rgba(0,118,108,.08)}
.rn-log-attachment-thumb img{width:100%;height:100%;object-fit:cover;image-orientation:from-image;display:block}
.rn-log-attachment-file{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid var(--rn-border);border-radius:12px;background:#fff;color:#0f172a;font-size:13px;font-weight:850}
.rn-log-attachment-file span{width:16px;height:20px;border:2px solid var(--rn-brand);border-radius:4px;position:relative;flex:0 0 auto}
.rn-log-attachment-file span::after{content:"";position:absolute;right:-2px;top:-2px;width:7px;height:7px;border-left:2px solid var(--rn-brand);border-bottom:2px solid var(--rn-brand);background:#fff}

.rn-staff-invite-grid{display:grid;gap:8px;max-height:480px;overflow:auto;padding-right:4px}
.rn-staff-invite-row{display:grid;grid-template-columns:28px minmax(0,1.2fr) minmax(0,1fr);gap:8px;align-items:center}
.rn-staff-invite-row>span{color:var(--rn-muted);font-size:12px;font-weight:900;text-align:center}
.rn-admin-person-compact-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.rn-admin-person-compact-meta span{display:inline-flex;align-items:center;min-height:24px;border:1px solid var(--rn-border);border-radius:999px;padding:3px 8px;background:#f8fafc;color:#475569;font-size:12px;font-weight:800}

.rn-admin-section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.rn-admin-section-title-row h2{margin-bottom:4px}
.rn-admin-home-row-rich{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.rn-home-mini-photo{width:52px;height:44px;border-radius:12px;overflow:hidden;border:1px solid var(--rn-border);background:#eefcf9;display:flex;align-items:center;justify-content:center;color:var(--rn-brand);font-weight:950}
.rn-home-mini-photo img{width:100%;height:100%;object-fit:cover;display:block}
.rn-admin-home-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.rn-profile-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}

.rn-archived-photo-panel{margin-top:22px;padding-top:18px;border-top:1px solid var(--rn-border)}
.rn-archived-photo-panel h3{margin:0 0 10px;font-size:16px}
.rn-archived-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.rn-archived-photo-grid a{border:1px solid var(--rn-border);border-radius:12px;overflow:hidden;background:#fff;color:#475569;font-size:12px;font-weight:800}
.rn-archived-photo-grid img{width:100%;aspect-ratio:1/1;object-fit:cover;image-orientation:from-image;display:block}
.rn-archived-photo-grid span{display:block;padding:7px}

.rn-notification-pref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rn-notification-pref{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;border:1px solid #d7e9e6;border-radius:14px;padding:13px 15px;background:#fff;color:#334155}
.rn-notification-pref span{order:1;font-size:13px;line-height:1.25}
.rn-notification-pref input{order:2;width:18px;height:18px;accent-color:var(--rn-brand)}
.rn-notification-list,.rn-support-ticket-list{display:grid;gap:10px;margin-top:16px}
.rn-notification-row,.rn-support-ticket-list article,.rn-support-ticket-item{display:grid;gap:5px;border:1px solid #d7e9e6;border-radius:12px;background:#fff;padding:12px;color:inherit;text-decoration:none}
.rn-support-ticket-item.active{border-color:#b8e8e1;background:#f5fffd}
.rn-notification-row strong,.rn-support-ticket-list strong{display:block;font-size:14px}
.rn-notification-row span,.rn-support-ticket-list span,.rn-support-ticket-item span{display:block;color:#475569;font-size:13px}
.rn-notification-row small,.rn-support-ticket-list small,.rn-support-ticket-item small{color:var(--rn-muted);font-weight:800}
.rn-notification-unread{border-color:#b8e8e1;background:#f5fffd}

.rn-property-hero{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:18px;align-items:center;margin-bottom:18px;padding:18px;border:1px solid #d7e9e6;border-radius:20px;background:linear-gradient(135deg,#ffffff 0%,#f3fffc 62%,#fff7ed 100%);box-shadow:0 12px 30px rgba(15,23,42,.055)}
.rn-property-photo{width:140px;aspect-ratio:4/3;border:1px solid #b8e8e1;border-radius:16px;overflow:hidden;background:#eefcf9;display:flex;align-items:center;justify-content:center;color:var(--rn-brand);font-size:36px;font-weight:950;box-shadow:0 10px 22px rgba(0,118,108,.08)}
.rn-property-photo img{width:100%;height:100%;object-fit:cover;display:block}
.rn-property-hero h1{margin:8px 0 6px;color:var(--rn-brand);font-size:32px;line-height:1.1}
.rn-property-hero p{margin:0;color:var(--rn-muted);font-weight:700}
.rn-property-summary-list{display:grid;gap:12px}
.rn-property-summary-list p,.rn-property-section-grid article{margin:0;border:1px solid #d7e9e6;border-left:4px solid #b8e8e1;border-radius:12px;background:#fff;padding:12px}
.rn-property-summary-list strong,.rn-property-section-grid strong{display:block;margin-bottom:5px;color:#0f172a}
.rn-property-summary-list span,.rn-property-section-grid span{color:#475569;font-size:14px;line-height:1.45}
.rn-property-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rn-property-help{margin:-4px 0 18px;border:1px solid #b8e8e1;border-radius:14px;background:#f5fffd;padding:12px 14px}
.rn-property-help summary{cursor:pointer;color:var(--rn-brand-dark);font-weight:900}
.rn-property-help p{margin:8px 0 0;color:#475569;font-size:14px;font-weight:700;line-height:1.45}
.rn-support-detail{margin-top:16px}
.rn-support-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.rn-support-detail-grid article,.rn-support-replies article{border:1px solid var(--rn-border);border-radius:12px;background:#fff;padding:12px;display:grid;gap:5px}
.rn-support-detail-grid strong,.rn-support-replies strong{color:#0f172a}
.rn-support-detail-grid span,.rn-support-replies span{color:#475569;font-size:14px;line-height:1.45}
.rn-support-replies{display:grid;gap:10px}
.rn-support-replies h3{margin:0;color:var(--rn-brand-dark)}
.rn-support-replies small{color:var(--rn-muted);font-weight:800}

.rn-help-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}

.rn-help-hero h2,
.rn-help-section h2,
.rn-help-faq h2{
  margin:0;
  color:var(--rn-brand-dark);
}

.rn-help-hero p,
.rn-help-section-head p{
  margin:6px 0 0;
  color:#52677f;
  font-weight:750;
  line-height:1.45;
}

.rn-help-mini-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(120px,1fr));
  gap:8px;
}

.rn-help-mini-grid a{
  align-items:center;
  background:#f5fffd;
  border:1px solid #bfece6;
  border-radius:14px;
  color:var(--rn-brand-dark);
  display:flex;
  font-weight:950;
  justify-content:center;
  min-height:42px;
  padding:9px 14px;
  text-decoration:none;
}

.rn-help-mini-grid a:hover{
  background:#e6fbf7;
}

.rn-help-section-grid{
  display:grid;
  gap:16px;
}

.rn-help-section{
  display:grid;
  gap:16px;
}

.rn-help-section-head{
  border-bottom:1px solid #d7e9e6;
  padding-bottom:12px;
}

.rn-help-card-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.rn-help-card{
  background:#fbfffe;
  border:1px solid #d7e9e6;
  border-radius:14px;
  display:grid;
  gap:12px;
  grid-template-columns:minmax(0,1fr) auto;
  min-height:112px;
  padding:14px;
}

.rn-help-card h3{
  color:#061f3a;
  font-size:16px;
  margin:0 0 6px;
}

.rn-help-card p{
  color:#52677f;
  font-size:13px;
  font-weight:750;
  line-height:1.45;
  margin:0;
}

.rn-help-card a{
  align-self:end;
  background:#ffffff;
  border:1px solid #9ee5dd;
  border-radius:999px;
  color:var(--rn-brand-dark);
  font-size:12px;
  font-weight:950;
  padding:9px 14px;
  text-decoration:none;
}

.rn-help-card a:hover{
  background:#e6fbf7;
}

.rn-help-faq{
  margin:18px 0;
}

.rn-help-faq-list{
  display:grid;
  gap:10px;
  margin-top:12px;
}

.rn-help-faq details{
  background:#ffffff;
  border:1px solid #d7e9e6;
  border-radius:14px;
  padding:12px 14px;
}

.rn-help-faq summary{
  color:#061f3a;
  cursor:pointer;
  font-weight:950;
}

.rn-help-faq p{
  color:#52677f;
  font-size:14px;
  font-weight:750;
  line-height:1.45;
  margin:10px 0 0;
}
.rn-media-open{overflow:hidden}
.rn-media-modal[hidden]{display:none}
.rn-media-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}
.rn-media-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58)}
.rn-media-modal-panel{position:relative;width:min(980px,96vw);max-height:92vh;background:#fff;border-radius:16px;border:1px solid var(--rn-border);box-shadow:0 22px 80px rgba(15,23,42,.35);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
.rn-media-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--rn-border);background:#f8fafc}
.rn-media-modal-head strong{color:#0f172a}
.rn-media-modal-head div{display:flex;gap:8px;flex-wrap:wrap}
.rn-media-modal-head button,.rn-media-modal-head a{border:1px solid var(--rn-border);border-radius:12px;background:#fff;min-height:38px;padding:8px 12px;font-weight:900;color:#0f172a}
.rn-media-modal-body{min-height:0;background:#0f172a;display:flex;align-items:center;justify-content:center;padding:12px}
.rn-media-modal-body img{max-width:100%;max-height:76vh;object-fit:contain;image-orientation:from-image;border-radius:10px;background:#fff}

@media (max-width:900px){
  .rn-notification-pref-grid,.rn-property-section-grid,.rn-staff-invite-row,.rn-support-detail-grid{grid-template-columns:1fr}
  .rn-help-hero,
  .rn-help-card,
  .rn-help-card-grid{grid-template-columns:1fr}
  .rn-help-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rn-help-card{min-height:0}
  .rn-help-card a{justify-self:start}
  .rn-staff-invite-row>span{text-align:left}
  .rn-admin-section-title-row,.rn-notification-row,.rn-support-ticket-list article{display:block}
  .rn-admin-home-row-rich{grid-template-columns:1fr}
  .rn-admin-home-actions{justify-content:flex-start}
  .rn-property-hero{grid-template-columns:1fr}
  .rn-property-photo{width:100%;max-width:260px}
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  min-height:100%;
}

body{
  background:linear-gradient(180deg,#f4fbfa 0,#f7fafc 260px);
  color:var(--rn-text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* =========================================================
   AUTH / HOME SELECT PAGES
========================================================= */

body:not(.rn-app){
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.rn-wrap{
  width:100%;
  max-width:520px;
  padding:22px 16px;
}

.rn-card{
  background:var(--rn-card);
  border:1px solid var(--rn-border);
  border-radius:20px;
  box-shadow:var(--rn-shadow);
  padding:20px;
}

.rn-title{
  margin:0 0 6px;
  font-size:28px;
  font-weight:900;
  color:var(--rn-brand);
  line-height:1.1;
}

.rn-sub{
  margin:0 0 18px;
  color:var(--rn-muted);
  font-size:14px;
  line-height:1.5;
}

.rn-form{
  display:grid;
  gap:14px;
}

.rn-label{
  display:block;
  margin:0 0 6px;
  font-size:13px;
  font-weight:800;
  color:#0f172a;
}

.rn-select-wrap{
  position:relative;
}

.rn-select-wrap::after{
  content:"\25BE";
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:var(--rn-muted);
  pointer-events:none;
}

.rn-select{
  width:100%;
  appearance:none;
  background:#fff;
  border:1px solid var(--rn-border);
  border-radius:14px;
  padding:13px 44px 13px 14px;
  font-size:15px;
  outline:none;
}

.rn-select:focus{
  border-color:rgba(0,118,108,.45);
  box-shadow:0 0 0 4px rgba(0,118,108,.10);
}

.rn-input{
  width:100%;
  background:#fff;
  border:1px solid var(--rn-border);
  border-radius:14px;
  padding:13px 14px;
  font-size:15px;
  outline:none;
}

.rn-input:focus{
  border-color:rgba(0,118,108,.45);
  box-shadow:0 0 0 4px rgba(0,118,108,.10);
}

.rn-alert{
  border-radius:14px;
  padding:12px 14px;
  margin:0 0 14px;
  font-size:14px;
  font-weight:700;
}

.rn-alert--error{
  color:#991b1b;
  background:#fef2f2;
  border:1px solid #fecaca;
}

.rn-btn{
  width:100%;
  border:0;
  border-radius:14px;
  padding:14px;
  background:var(--rn-brand);
  color:#fff;
  font-size:15px;
  font-weight:900;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transition:all .15s ease;
}

.rn-btn:hover{
  background:var(--rn-brand-dark);
}

.rn-btn:active{
  transform:translateY(1px);
}

.rn-btn-link{
  display:block;
  margin-top:10px;
}

.rn-btn-danger{
  background:var(--rn-danger);
}

.rn-btn-danger:hover{
  background:var(--rn-danger-dark);
}

.rn-btn-danger-soft{
  background:#fff7f7;
  border-color:#ffc7c7;
  color:#9b1c1c;
}

.rn-btn-danger-soft:hover{
  background:#ffecec;
  color:#7f1d1d;
}

/* Footer meta */
.rn-meta{
  margin-top:18px;
  display:grid;
  gap:3px;
  text-align:left;
  font-size:11px;
  line-height:1.35;
}

.rn-meta-row{
  display:flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
}

.rn-meta-label{
  color:var(--rn-muted);
  font-weight:600;
}

.rn-meta-value{
  font-weight:700;
}

.rn-meta-row.tenant .rn-meta-value{
  color:var(--rn-tenant-blue);
}

.rn-meta-row.user .rn-meta-value{
  color:var(--rn-user-green);
}

.rn-footer{
  margin-top:18px;
  padding:10px 18px 12px;
  border-top:0;
  text-align:right;
  font-size:9px;
  color:#000;
  opacity:.55;
}

/* =========================================================
   APP LAYOUT
========================================================= */

body.rn-app{
  display:block;
  min-height:100vh;
  background:#edf7f6;
}

.rn-shell{
  min-height:100vh;
  display:flex;
}

/* =========================================================
   SIDEBAR
========================================================= */

.rn-sidebar{
  width:260px;
  min-height:100vh;
  background:linear-gradient(180deg,#ffffff 0%,#f1fbf8 58%,#fff7ed 100%);
  border-right:1px solid #cfe3df;
  padding:18px;
  display:flex;
  flex-direction:column;
  flex-shrink:0;
}

.rn-sidebar-logo{
  display:grid;
  justify-items:center;
  gap:10px;
  padding:14px 10px 18px;
  margin-bottom:18px;
  border:1px solid #d7f0ec;
  border-radius:18px;
  background:#fbfffe;
  box-shadow:0 8px 18px rgba(0,118,108,.04);
}

.rn-sidebar-brand-image{
  width:135px;
  height:auto;
  display:block;
  object-fit:contain;
}

.rn-logo-sub{
  font-size:12px;
  font-weight:800;
  color:#4d6871;
  text-align:center;
}

.rn-sidebar-session{
  border-top:1px solid #d7f0ec;
  color:#52677f;
  font-size:10px;
  font-weight:800;
  line-height:1.35;
  margin-top:2px;
  max-width:180px;
  padding-top:9px;
  text-align:center;
}

.rn-sidebar-session strong{
  color:#061f3a;
  font-weight:950;
}

.rn-sidebar-nav{
  display:grid;
  gap:9px;
  margin-bottom:14px;
}

.rn-sidebar-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:12px 14px 12px 13px;
  border-radius:15px;
  text-decoration:none;
  color:var(--rn-text);
  font-size:15px;
  font-weight:800;
  line-height:1.2;
  background:#ffffff;
  border:1px solid #dbe4ea;
  box-shadow:0 4px 12px rgba(15,23,42,.035);
  position:relative;
  transition:all .15s ease;
}

.rn-sidebar-nav a::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:#cbd5e1;
  flex:0 0 auto;
}

.rn-sidebar-nav a:hover{
  background:#eefcf9;
  border-color:#bfece6;
  color:var(--rn-brand-dark);
  box-shadow:0 7px 16px rgba(0,118,108,.08);
  transform:translateY(-1px);
}

.rn-sidebar-nav a.active{
  background:#dff7f2;
  border-color:#bfece6;
  color:var(--rn-brand-dark);
  box-shadow:0 8px 18px rgba(0,118,108,.10);
}

.rn-sidebar-nav a.active::before,
.rn-sidebar-nav a:hover::before{
  background:var(--rn-brand);
}

/* =========================================================
   SIDEBAR ACTIONS
========================================================= */

.rn-sidebar-bottom{
  margin-top:auto;
  padding-top:12px;
}

.rn-sidebar-form{
  margin:0;
  width:100%;
}

.rn-sidebar-utility-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  margin:8px 0 12px;
}

.rn-sidebar-utility-form{
  display:block;
  min-width:0;
}

.rn-sidebar-utility-tile{
  align-items:center;
  appearance:none;
  background:#f8fffd;
  border:1px solid rgba(0,126,118,.24);
  border-radius:12px;
  box-shadow:none;
  box-sizing:border-box;
  color:#005b55;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  font-family:inherit;
  font-size:10px;
  font-weight:900;
  gap:4px;
  justify-content:center;
  line-height:1.1;
  min-height:52px;
  padding:6px 3px;
  text-align:center;
  text-decoration:none;
  transition:all .15s ease;
  width:100%;
}

.rn-sidebar-utility-tile:hover,
.rn-sidebar-utility-tile.active{
  background:#e9faf6;
  border-color:#78d8cf;
  color:var(--rn-brand-dark);
  box-shadow:0 6px 16px rgba(0,118,108,.08);
}

.rn-sidebar-utility-icon{
  align-items:center;
  background:#e6f8f5;
  border:1px solid rgba(0,126,118,.20);
  border-radius:999px;
  color:var(--rn-brand-dark);
  display:flex;
  font-size:14px;
  height:24px;
  justify-content:center;
  justify-self:center;
  line-height:1;
  width:24px;
}

.rn-sidebar-utility-help .rn-sidebar-utility-icon::before{
  content:"?";
}

.rn-sidebar-utility-switch .rn-sidebar-utility-icon::before{
  content:"\21C4";
}

.rn-sidebar-utility-admin{
  background:#f8fffd;
  border-color:rgba(0,126,118,.24);
  color:#005b55;
}

.rn-sidebar-utility-admin .rn-sidebar-utility-icon{
  background:#e6f8f5;
  border-color:rgba(0,126,118,.20);
  color:var(--rn-brand-dark);
}

.rn-sidebar-utility-admin .rn-sidebar-utility-icon::before{
  content:"\2699";
}

.rn-sidebar-utility-exit{
  background:#f8fffd;
  border-color:rgba(0,126,118,.24);
  color:#005b55;
}

.rn-sidebar-utility-exit .rn-sidebar-utility-icon{
  background:#e6f8f5;
  border-color:rgba(0,126,118,.20);
  color:var(--rn-brand-dark);
}

.rn-sidebar-utility-exit .rn-sidebar-utility-icon::before{
  content:"";
  width:16px;
  height:16px;
  background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075f61' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M14 3h5a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5'/%3E%3C/svg%3E");
}

.rn-sidebar-utility-exit:hover{
  background:#e9faf6;
  border-color:#78d8cf;
  color:var(--rn-brand-dark);
}

.rn-sidebar-context-footer{
  border-top:1px solid rgba(0,126,118,.14);
  color:#64748b;
  display:grid;
  gap:8px;
  font-size:10.5px;
  font-weight:850;
  line-height:1.25;
  margin-top:auto;
  padding-top:14px;
}

.rn-sidebar-context-footer div{
  display:grid;
  gap:2px;
}

.rn-sidebar-context-footer span{
  color:#8aa0b3;
  text-transform:uppercase;
}

.rn-sidebar-context-footer strong{
  color:#061f3a;
  font-size:11px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rn-sidebar-switch,
.rn-sidebar-logout{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  appearance:none;

  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;

  padding:13px 14px;

  border-radius:15px;

  font-family:inherit;
  font-size:14px;
  font-weight:800;
  text-align:left;
  line-height:1.2;

  cursor:pointer;
  transition:all .16s ease;
}

/* Switch home */
.rn-sidebar-switch{
  background:#ffffff;
  border:1px solid #dbe4ea;
  color:#334155;
  box-shadow:0 4px 12px rgba(15,23,42,.035);
}

.rn-sidebar-switch:hover{
  background:#eefcf9;
  border-color:#bfece6;
  color:var(--rn-brand-dark);
  box-shadow:0 7px 16px rgba(0,118,108,.08);
}

/* Logout */
.rn-sidebar-logout{
  background:linear-gradient(
    180deg,
    var(--rn-success) 0%,
    var(--rn-success-dark) 100%
  );

  border:1px solid var(--rn-success-dark);
  color:#fff;

  box-shadow:0 6px 14px rgba(22,101,52,.16);
}

.rn-sidebar-logout:hover{
  background:linear-gradient(
    180deg,
    #16a34a 0%,
    var(--rn-success-dark) 100%
  );
}

.rn-sidebar-switch:active,
.rn-sidebar-logout:active{
  transform:translateY(1px);
}

/* Icons */
.rn-sidebar-btn-icon{
  width:28px;
  height:28px;
  min-width:28px;

  border-radius:10px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:15px;
  line-height:1;
}

.rn-sidebar-btn-icon::before{
  display:block;
  font-size:16px;
  line-height:1;
}

.rn-sidebar-btn-icon-switch::before{
  content:"\21C4";
}

.rn-sidebar-btn-icon-logout::before{
  content:"\23FB";
}

.rn-sidebar-switch .rn-sidebar-btn-icon{
  background:#eefcf9;
  border:1px solid #dbe4ea;
  color:var(--rn-brand);
}

.rn-sidebar-logout .rn-sidebar-btn-icon{
  background:rgba(255,255,255,.16);
  color:#fff;
}

/* =========================================================
   MAIN
========================================================= */

.rn-main{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,#f7fffd 0%,#f4f8fb 46%,#fff8f0 100%);
}

.rn-topbar{
  height:64px;
  background:#fffefa;
  border-bottom:1px solid #d9ebe8;
  box-shadow:0 8px 20px rgba(0,118,108,.045);
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 18px;
}

.rn-menu-btn{
  display:none;

  border:1px solid var(--rn-border);
  background:#fff;

  border-radius:10px;

  padding:8px 10px;

  font-size:18px;
  cursor:pointer;
}

.rn-topbar-title{
  display:grid;
  gap:2px;
}

.rn-topbar-title strong{
  font-size:15px;
  color:var(--rn-text);
}

.rn-topbar-title span{
  font-size:12px;
  color:var(--rn-brand);
}

.rn-support-banner{
  margin:14px 28px 0;
  border:1px solid #fed7aa;
  border-radius:14px;
  background:#fff7ed;
  color:#7c2d12;
  padding:11px 13px;
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  align-items:center;
  font-size:13px;
  font-weight:800;
}

.rn-support-banner strong{
  color:#9a3412;
}

.rn-support-banner span{
  color:#7c2d12;
}

/* =========================================================
   DASHBOARD COMPOSER
========================================================= */

.rn-dashboard-stage{
  flex:1;
  padding:26px 18px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}

.rn-log-composer{
  width:100%;
  max-width:760px;

  background:#fff;
  border:1px solid #d7e9e6;
  border-top:4px solid var(--rn-line-teal);

  border-radius:22px;

  box-shadow:0 14px 34px rgba(15,23,42,.06);

  padding:22px;
}

.rn-composer-form{
  display:grid;
  gap:14px;
}

.rn-log-heading-row{
  display:grid;
  gap:4px;
}

.rn-log-title{
  margin:0;
  font-size:24px;
  font-weight:900;
  color:var(--rn-brand);
}

.rn-log-greeting{
  margin:0;
  font-size:14px;
  font-weight:700;
  color:var(--rn-muted);
}

.rn-form-alert{
  border-radius:14px;
  padding:11px 13px;
  font-size:14px;
  font-weight:850;
  line-height:1.35;
}

.rn-form-alert-success{
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  color:#166534;
}

.rn-form-alert-error{
  border:1px solid #fecaca;
  background:#fff5f5;
  color:#991b1b;
}

.rn-log-textarea{
  width:100%;
  min-height:220px;

  resize:vertical;

  border:1px solid var(--rn-border);
  border-radius:18px;

  padding:14px;

  font-size:16px;
  font-family:inherit;

  outline:none;
}

.rn-log-textarea:focus{
  border-color:rgba(0,118,108,.55);
  box-shadow:0 0 0 4px rgba(0,118,108,.10);
}

/* Upload tools */
.rn-composer-tools{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.rn-upload-btn{
  display:flex;
  align-items:center;
  gap:12px;

  min-height:58px;

  padding:10px 12px;

  border:1px solid var(--rn-border);
  border-radius:16px;

  background:#fff;

  cursor:pointer;
  transition:all .15s ease;
}

.rn-upload-btn:hover{
  background:#eefcf9;
  border-color:#bfece6;
}

.rn-upload-btn input{
  display:none;
}

.rn-upload-icon{
  width:34px;
  height:34px;

  border-radius:12px;

  background:var(--rn-soft);

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:17px;

  flex-shrink:0;
}

.rn-upload-icon::before{
  display:block;
  font-size:18px;
  line-height:1;
}

.rn-upload-icon-photo::before{
  content:"\1F4F7";
}

.rn-upload-icon-file::before{
  content:"\1F4CE";
}

.rn-upload-title{
  display:block;
  font-size:14px;
  font-weight:800;
  color:var(--rn-text);
}

.rn-upload-sub{
  display:block;
  margin-top:3px;
  font-size:12px;
  color:var(--rn-muted);
  font-weight:600;
}

/* Sensitive option */
.rn-discreet-option{
  display:flex;
  gap:10px;
  align-items:flex-start;

  padding:13px;

  border:1px solid #fed7aa;
  border-radius:14px;

  background:#fff7ed;

  color:#9a3412;

  font-weight:800;
}

.rn-discreet-option small{
  display:block;
  margin-top:3px;
  font-size:12px;
  font-weight:600;
  color:#9a3412;
}

.rn-compact-check{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  max-width:100%;
  min-height:38px;
  padding:8px 11px;
  border:1px solid #fed7aa;
  border-radius:12px;
  background:#fff7ed;
  color:#9a3412;
  font-size:13px;
  font-weight:900;
}

.rn-compact-check input{
  width:16px;
  height:16px;
  flex:0 0 auto;
}

.rn-late-entry-option{
  display:flex;
  gap:10px;
  align-items:flex-start;

  padding:13px;

  border:1px solid #bfece6;
  border-radius:14px;

  background:#eefcf9;

  color:var(--rn-brand-dark);

  font-weight:800;
}

.rn-late-entry-option small{
  display:block;
  margin-top:3px;
  font-size:12px;
  font-weight:600;
  color:#0f766e;
}

.rn-late-entry-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:13px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#ffffff;
}

.rn-late-entry-fields[hidden]{
  display:none;
}

.rn-late-entry-fields label{
  display:grid;
  gap:6px;
  font-size:12px;
  font-weight:800;
  color:#475569;
}

.rn-late-entry-fields input{
  width:100%;
  min-height:44px;
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:9px 10px;
  font:inherit;
  color:var(--rn-text);
  background:#fff;
}

.rn-late-entry-fields input:focus{
  outline:none;
  border-color:rgba(0,118,108,.55);
  box-shadow:0 0 0 4px rgba(0,118,108,.10);
}

/* Send button */
.rn-send-btn{
  width:100%;

  border:0;
  border-radius:16px;

  background:var(--rn-brand);
  color:#fff;

  padding:15px;

  font-size:16px;
  font-weight:900;

  cursor:pointer;
  transition:all .15s ease;
}

.rn-send-btn:hover{
  background:var(--rn-brand-dark);
}

.rn-send-btn:disabled{
  opacity:.72;
  cursor:wait;
}

.rn-send-btn:active{
  transform:translateY(1px);
}

/* =========================================================
   APP FOOTER
========================================================= */

.rn-app-footer{
  margin-top:auto;
  padding:8px 22px 18px;
  display:flex;
  justify-content:flex-end;
  background:transparent;
}

.rn-footer-inner{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  border-top:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:0;
  background:transparent;
  box-shadow:none;
}

.rn-footer-line{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  font-size:11.5px;
  color:#64748b;
  line-height:1.3;
}

.rn-footer-line > span:first-child{
  color:#94a3b8;
  font-weight:700;
}

.rn-tenant{
  color:var(--rn-brand-dark);
  font-weight:800;
}

.rn-user{
  color:#334155;
  font-weight:800;
}

.rn-footer-copy{
  margin-left:auto;
  font-size:10px;
  color:#94a3b8;
  line-height:1.3;
  font-weight:600;
}

@media (max-width:760px){
  .rn-app-footer{
    padding:8px 16px 18px;
  }

  .rn-footer-inner{
    align-items:center;
    justify-content:flex-end;
  }

  .rn-footer-copy{
    margin-left:0;
  }
}
/* =========================================================
   DASHBOARD CODING HELP
========================================================= */

.rn-helper-row{
  display:flex;
  justify-content:flex-end;
  margin-top:-4px;
}

.rn-help-btn{
  border:1px solid #bfece6;
  background:#eefcf9;
  color:var(--rn-brand-dark);
  border-radius:999px;
  padding:8px 12px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.rn-help-btn span{
  width:20px;
  height:20px;
  border-radius:999px;
  background:var(--rn-brand);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  line-height:1;
}

.rn-help-panel{
  border:1px solid var(--rn-border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  padding:14px;
}

.rn-help-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.rn-help-head h2{
  margin:0;
  font-size:16px;
  color:var(--rn-brand);
}

.rn-help-head button{
  width:30px;
  height:30px;
  border:0;
  border-radius:10px;
  background:#f3f4f6;
  font-size:20px;
  cursor:pointer;
}

.rn-help-note{
  margin:0 0 12px;
  font-size:12px;
  color:var(--rn-muted);
}

.rn-code-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  max-height:280px;
  overflow:auto;
  padding-right:4px;
}

.rn-code-grid div{
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:9px;
  background:var(--rn-soft);
}

.rn-code-grid strong{
  display:block;
  font-size:12px;
  color:var(--rn-brand-dark);
}

.rn-code-grid span{
  display:block;
  margin-top:3px;
  font-size:11px;
  color:var(--rn-muted);
  line-height:1.3;
}

@media (max-width:760px){
  .rn-helper-row{
    justify-content:flex-start;
  }

  .rn-code-grid{
    grid-template-columns:1fr;
    max-height:360px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

.rn-mobile-overlay{
  display:none;
}

@media (max-width:760px){

  .rn-menu-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .rn-sidebar{
    position:fixed;
    top:0;
    left:0;

    width:86vw;
    max-width:320px;

    height:100dvh;
    min-height:100dvh;
    padding:16px;

    z-index:1000;

    transform:translateX(-105%);
    transition:transform .2s ease;

    box-shadow:0 20px 40px rgba(0,0,0,.22);

    overflow-y:auto;
    overscroll-behavior:contain;
  }

  body.rn-nav-open .rn-sidebar{
    transform:translateX(0);
  }

  body.rn-nav-open .rn-mobile-overlay{
    display:block;

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.28);

    z-index:900;
  }

  .rn-sidebar-nav{
    gap:8px;
    margin-bottom:16px;
  }

  .rn-sidebar-nav a{
    min-height:46px;
    padding:11px 13px;
    border-radius:14px;
    font-size:14px;
  }

  .rn-sidebar-bottom{
    margin-top:auto;
    padding:8px 0 2px;
  }

  .rn-sidebar-switch,
  .rn-sidebar-logout{
    min-height:46px;
    padding:12px 13px;
    border-radius:14px;
    font-size:14px;
  }

  .rn-sidebar-btn-icon{
    width:26px;
    height:26px;
    min-width:26px;
    border-radius:9px;
  }

  .rn-sidebar-switch span:last-child,
  .rn-sidebar-logout span:last-child{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .rn-dashboard-stage{
    padding:16px 12px;
  }

  .rn-log-composer{
    padding:16px;
    border-radius:18px;
  }

  .rn-composer-tools{
    grid-template-columns:1fr;
  }

  .rn-late-entry-fields{
    grid-template-columns:1fr;
  }

  .rn-log-textarea{
    min-height:190px;
  }
}

/* =========================================================
   DAILY LOG FEED
========================================================= */

.rn-feed-stage{
  padding:24px 18px 32px;
}

.rn-feed-shell{
  width:100%;
  max-width:980px;
  margin:0 auto;
}

.rn-feed-banner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;

  margin-bottom:18px;
}

.rn-feed-banner-left h1{
  margin:10px 0 6px;
  font-size:28px;
  line-height:1.1;
  color:var(--rn-brand);
}

.rn-feed-banner-left p{
  margin:0;
  color:var(--rn-muted);
  font-size:14px;
  line-height:1.5;
}

.rn-feed-banner-right{
  align-items:center;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.rn-feed-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:30px;

  padding:6px 12px;

  border-radius:999px;

  background:#e6fffa;
  border:1px solid #bfece6;

  color:var(--rn-brand-dark);

  font-size:12px;
  font-weight:900;
}

.rn-feed-back-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:42px;

  padding:10px 14px;

  border-radius:14px;

  text-decoration:none;

  background:#ffffff;
  border:1px solid var(--rn-border);

  color:var(--rn-text);

  font-size:14px;
  font-weight:800;

  transition:all .15s ease;
}

.rn-feed-back-btn:hover{
  background:#eefcf9;
  border-color:#bfece6;
  color:var(--rn-brand-dark);
}

.rn-feed-list{
  display:grid;
  gap:14px;
}

.rn-feed-entry{
  background:#ffffff;

  border:1px solid var(--rn-border);

  border-radius:18px;

  padding:16px 18px;

  box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.rn-feed-entry-head{
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
  gap:12px;

  margin-bottom:12px;
}

.rn-feed-user-block{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.rn-feed-avatar{
  position:relative;
  width:38px;
  height:38px;

  border-radius:13px;

  background:#e6fffa;

  color:var(--rn-brand-dark);

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:15px;
  font-weight:900;

  flex-shrink:0;
  overflow:hidden;
}

.rn-feed-avatar img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 35%;
  image-orientation:from-image;
  display:block;
}

.rn-feed-author{
  font-size:14px;
  font-weight:900;
  color:#334155;
}

.rn-feed-datetime{
  margin-top:4px;
  font-size:10.5px;
  color:var(--rn-muted);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px 0;
  line-height:1.25;
}

.rn-feed-meta-sep{
  color:#cbd5e1;
  padding:0 3px;
}

.rn-feed-meta-item{
  color:#64748b;
  font-size:10.5px;
  font-weight:720;
}

.rn-feed-late-tag,
.rn-feed-status-tag{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:2px 8px;
  border:1px solid #fed7aa;
  border-radius:999px;
  background:#fff7ed;
  color:#9a3412;
  font-size:11px;
  font-weight:900;
}

.rn-feed-status-sensitive{
  border-color:#fecaca;
  background:#fff5f5;
  color:#991b1b;
}

.rn-feed-status-disclosure{
  border-color:#c7d2fe;
  background:#eef2ff;
  color:#3730a3;
}

.rn-feed-inline-link{
  color:var(--rn-brand-dark);
  text-decoration:none;
  font-weight:800;
}

.rn-feed-inline-link:hover{
  text-decoration:underline;
}

.rn-feed-content{
  font-size:16px;
  line-height:1.62;
  color:#0f172a;
  font-weight:650;
  padding:11px 13px;
  border-left:3px solid var(--rn-brand);
  border-radius:0 12px 12px 0;
  background:#f8fafc;

  white-space:normal;
  word-break:break-word;
}

.rn-feed-empty{
  background:#ffffff;

  border:1px dashed var(--rn-border);

  border-radius:22px;

  padding:40px 24px;

  text-align:center;
}

.rn-feed-empty-icon{
  font-size:34px;
  margin-bottom:10px;
}

.rn-feed-empty h2{
  margin:0 0 6px;
  color:var(--rn-brand);
}

.rn-feed-empty p{
  margin:0;
  color:var(--rn-muted);
}

/* =========================================================
   RECALL LOGS
========================================================= */

.rn-recall-stage{
  padding:24px 18px 32px;
}

.rn-recall-shell{
  width:100%;
  max-width:1080px;
  margin:0 auto;
  display:grid;
  gap:16px;
}

.rn-recall-filter{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr)) auto;
  gap:10px;
  align-items:end;
  padding:14px;
  border:1px solid var(--rn-border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.035);
}

.rn-recall-filter label{
  display:grid;
  gap:6px;
  min-width:0;
  font-size:12px;
  font-weight:850;
  color:#475569;
}

.rn-recall-filter input,
.rn-recall-filter select{
  width:100%;
  min-height:42px;
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:9px 10px;
  background:#fff;
  color:var(--rn-text);
  font:inherit;
  font-size:14px;
}

.rn-recall-filter input:focus,
.rn-recall-filter select:focus{
  outline:none;
  border-color:rgba(0,118,108,.55);
  box-shadow:0 0 0 4px rgba(0,118,108,.10);
}

.rn-recall-filter-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

.rn-recall-filter-actions button,
.rn-recall-filter-actions a,
.rn-recall-declassify button{
  min-height:42px;
  border-radius:12px;
  padding:9px 13px;
  border:1px solid transparent;
  font:inherit;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

.rn-recall-filter-actions button,
.rn-recall-declassify button{
  background:var(--rn-brand);
  color:#fff;
}

.rn-recall-filter-actions a{
  background:#fff;
  color:#334155;
  border-color:var(--rn-border);
}

.rn-recall-summary{
  font-size:12px;
  font-weight:800;
  color:#64748b;
}

.rn-recall-export{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:end;
  padding:14px;
  border:1px solid #bfece6;
  border-radius:16px;
  background:#f3fffc;
}

.rn-recall-export label{
  display:grid;
  gap:6px;
  min-width:0;
  font-size:12px;
  font-weight:850;
  color:#475569;
}

.rn-recall-export input{
  width:100%;
  min-height:42px;
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:9px 10px;
  background:#fff;
  color:var(--rn-text);
  font:inherit;
  font-size:14px;
}

.rn-recall-export input:focus{
  outline:none;
  border-color:rgba(0,118,108,.55);
  box-shadow:0 0 0 4px rgba(0,118,108,.10);
}

.rn-recall-export button{
  min-height:42px;
  border:0;
  border-radius:12px;
  padding:9px 14px;
  background:var(--rn-brand);
  color:#fff;
  font:inherit;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}

.rn-recall-list{
  display:grid;
  gap:12px;
}

.rn-recall-entry{
  background:#fff;
  border:1px solid var(--rn-border);
  border-radius:18px;
  padding:15px 16px;
  box-shadow:0 6px 18px rgba(0,0,0,.035);
}

.rn-recall-entry-confidential{
  border-color:#fed7aa;
  background:#fffaf5;
}

.rn-recall-entry-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:11px;
}

.rn-recall-tags{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:5px;
}

.rn-recall-confidential-box{
  padding:12px 13px;
  border:1px solid #fed7aa;
  border-radius:14px;
  background:#fff7ed;
  color:#9a3412;
  font-size:15px;
  font-weight:900;
}

.rn-recall-hashtags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}

.rn-recall-hashtags a{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  background:#eefcf9;
  border:1px solid #bfece6;
  color:var(--rn-brand-dark);
  font-size:12px;
  font-weight:850;
  text-decoration:none;
}

.rn-recall-declassify{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--rn-border);
  display:flex;
  gap:8px;
}

.rn-recall-declassify input{
  flex:1;
  min-width:0;
  min-height:42px;
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:9px 10px;
  font:inherit;
  font-size:14px;
}

.rn-recall-declassified{
  margin-top:10px;
  color:#166534;
  font-size:12px;
  font-weight:850;
}

/* =========================================================
   PROFILES
========================================================= */

.rn-profile-stage{
  padding:24px 18px 32px;
}

.rn-profile-shell{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  display:grid;
  gap:16px;
}

.rn-profile-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr);
  gap:14px;
}

.rn-profile-panel{
  background:#fff;
  border:1px solid #d7e9e6;
  border-top:4px solid var(--rn-line-teal);
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}

.rn-profile-panel:nth-of-type(even){
  border-top-color:var(--rn-line-amber);
}

.rn-profile-wide{
  overflow:hidden;
}

.rn-profile-panel h2{
  margin:0 0 12px;
  color:var(--rn-brand);
  font-size:18px;
  line-height:1.2;
}

.rn-profile-form{
  display:grid;
  gap:11px;
}

.rn-profile-form label{
  display:grid;
  gap:6px;
  font-size:12px;
  font-weight:850;
  color:#475569;
}

.rn-profile-form input,
.rn-profile-form select,
.rn-profile-form textarea,
.rn-profile-inline-form select{
  width:100%;
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:9px 10px;
  min-height:42px;
  font:inherit;
  font-size:14px;
  color:var(--rn-text);
  background:#fff;
}

.rn-profile-form textarea{
  resize:vertical;
}

.rn-profile-form input:focus,
.rn-profile-form select:focus,
.rn-profile-form textarea:focus,
.rn-profile-inline-form select:focus{
  outline:none;
  border-color:rgba(0,118,108,.55);
  box-shadow:0 0 0 4px rgba(0,118,108,.10);
}

.rn-profile-form .rn-compact-check{
  display:inline-flex;
  width:max-content;
}

.rn-profile-form .rn-compact-check input{
  width:16px;
  min-height:16px;
  padding:0;
  border-radius:4px;
}

.rn-profile-form .rn-notification-pref{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  min-height:62px;
  gap:14px;
  align-items:center;
  border-color:#d7e9e6;
  background:#fff;
}

.rn-profile-form .rn-notification-pref input[type="checkbox"]{
  order:2;
  justify-self:end;
  width:20px;
  min-width:20px;
  max-width:20px;
  height:20px;
  min-height:20px;
  margin:0;
  padding:0;
  border-radius:5px;
  accent-color:var(--rn-brand);
}

.rn-profile-form .rn-notification-pref span{
  order:1;
  color:#334155;
  font-size:13px;
  font-weight:900;
  line-height:1.25;
}

.rn-profile-form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.rn-profile-form-row[hidden]{
  display:none;
}

.rn-profile-form-subtitle{
  margin-top:4px;
  padding-top:12px;
  border-top:1px solid var(--rn-border);
  color:var(--rn-brand-dark);
  font-size:13px;
  font-weight:900;
}

.rn-profile-form button,
.rn-profile-actions button,
.rn-profile-inline-form button{
  min-height:40px;
  border:0;
  border-radius:12px;
  padding:9px 12px;
  background:var(--rn-brand);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.rn-profile-actions button{
  background:#fff;
  border:1px solid var(--rn-border);
  color:#334155;
}

.rn-profile-actions form:first-child button[value="register"]{
  background:#eefcf9;
  border-color:#bfece6;
  color:var(--rn-brand-dark);
}

.rn-profile-actions form:first-child button[value="reset_mfa"]{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}

.rn-profile-home-list{
  display:grid;
  gap:7px;
  margin-top:14px;
  max-height:230px;
  overflow:auto;
  padding-right:4px;
}

.rn-profile-home-list span{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 9px;
  border-radius:10px;
  background:#f8fafc;
  color:#475569;
  font-size:12px;
  font-weight:750;
}

.rn-profile-table{
  display:grid;
  gap:10px;
}

.rn-profile-staff-card{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:13px;
  border:1px solid var(--rn-border);
  border-radius:15px;
  background:#fff;
}

.rn-profile-staff-card strong,
.rn-profile-staff-card span,
.rn-profile-staff-card small{
  display:block;
}

.rn-profile-staff-card strong{
  font-size:14px;
  color:#0f172a;
}

.rn-profile-staff-card span{
  margin-top:2px;
  color:#475569;
  font-size:13px;
  font-weight:700;
  word-break:break-word;
}

.rn-profile-staff-card small{
  margin-top:5px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}

.rn-profile-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-end;
}

.rn-profile-actions form{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
  margin:0;
}

.rn-profile-inline-form{
  align-items:center;
}

.rn-profile-inline-form select{
  min-width:150px;
}

.rn-profile-muted{
  margin:0;
  color:#64748b;
  font-weight:700;
  font-size:14px;
}

.rn-feed-author-link{
  color:inherit;
  text-decoration:none;
}

.rn-feed-author-link:hover{
  color:var(--rn-brand);
  text-decoration:underline;
  text-underline-offset:3px;
}

.rn-person-hero{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px;
  border:1px solid #d7e9e6;
  border-top:4px solid var(--rn-line-teal);
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff 0%,#f5fffd 66%,#fff7ed 100%);
  box-shadow:0 12px 30px rgba(15,23,42,.055);
}

.rn-person-photo,
.rn-person-mini-photo{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:var(--rn-brand);
  color:#fff;
  font-weight:900;
}

.rn-person-photo{
  width:92px;
  height:92px;
  border-radius:22px;
  font-size:34px;
  box-shadow:0 10px 22px rgba(0,118,108,.10);
}

.rn-person-mini-photo{
  width:48px;
  height:48px;
  border-radius:14px;
  font-size:18px;
}

.rn-person-photo img,
.rn-person-mini-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 35%;
  image-orientation:from-image;
  display:block;
}

.rn-person-title{
  min-width:0;
  flex:1;
}

.rn-person-title h1{
  margin:8px 0 4px;
  color:var(--rn-brand);
  font-size:30px;
  line-height:1.1;
}

.rn-person-title p{
  margin:0;
  color:#64748b;
  font-weight:750;
}

.rn-profile-facts{
  display:grid;
  gap:9px;
}

.rn-profile-facts div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 11px;
  border-radius:12px;
  background:#f7fffd;
  border:1px solid #d7e9e6;
}

.rn-profile-facts span{
  color:#64748b;
  font-size:12px;
  font-weight:850;
}

.rn-profile-facts strong{
  color:#0f172a;
  font-size:13px;
  font-weight:900;
  text-align:right;
}

.rn-private-fact strong{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.rn-reveal-btn{
  min-height:28px;
  border:1px solid #bfece6;
  border-radius:999px;
  padding:4px 9px;
  background:#eefcf9;
  color:var(--rn-brand-dark);
  font:inherit;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}

.rn-profile-home-list-open{
  max-height:none;
  overflow:visible;
}

.rn-profile-actions-inline{
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
}

.rn-admin-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.rn-admin-tabs a,
.rn-admin-soft-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 13px;
  border-radius:12px;
  border:1px solid #d7e9e6;
  background:#fff;
  color:#334155;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
}

.rn-admin-tabs a.active{
  background:#dff7f2;
  border-color:#8ddbd0;
  color:var(--rn-brand-dark);
}

.rn-admin-dashboard-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.rn-admin-dashboard-card{
  display:grid;
  gap:8px;
  padding:16px;
  border:1px solid var(--rn-border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.035);
  text-decoration:none;
}

.rn-admin-dashboard-card span{
  color:#64748b;
  font-size:12px;
  font-weight:900;
}

.rn-admin-dashboard-card strong{
  color:var(--rn-brand);
  font-size:30px;
  line-height:1;
}

.rn-admin-dashboard-card small{
  color:#475569;
  font-size:13px;
  font-weight:750;
}

.rn-oversight-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.rn-admin-oversight-split{
  margin-top:14px;
}

.rn-module-catalog{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

.rn-module-card{
  display:grid;
  gap:7px;
  padding:13px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#f8fafc;
}

.rn-module-card strong{
  color:var(--rn-brand);
  font-size:14px;
  font-weight:900;
}

.rn-module-card span{
  color:#475569;
  font-size:12px;
  font-weight:700;
  line-height:1.45;
}

.rn-module-card small{
  color:#64748b;
  font-size:12px;
  font-weight:900;
}

.rn-module-event-card{
  align-items:stretch;
}

.rn-module-event-actions{
  min-width:230px;
}

.rn-module-update-form{
  display:grid;
  gap:6px;
  width:100%;
  margin:0;
}

.rn-module-update-form select,
.rn-module-update-form input{
  width:100%;
  min-height:36px;
  border:1px solid var(--rn-border);
  border-radius:10px;
  padding:7px 9px;
  font:inherit;
  font-size:12px;
  background:#fff;
}

.rn-module-update-form button{
  min-height:36px;
  border:0;
  border-radius:10px;
  padding:7px 10px;
  background:var(--rn-brand);
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.rn-module-severity-high,
.rn-status-danger{
  border-color:#fecaca !important;
  background:#fff5f5 !important;
  color:#b91c1c !important;
}

.rn-module-severity-attention,
.rn-status-warning{
  border-color:#fed7aa !important;
  background:#fff7ed !important;
  color:#9a3412 !important;
}

.rn-module-severity-info,
.rn-status-neutral{
  border-color:#bfece6 !important;
  background:#eefcf9 !important;
  color:var(--rn-brand-dark) !important;
}

.rn-admin-person-card{
  align-items:stretch;
}

.rn-admin-person-card-compact{
  align-items:center;
}

.rn-admin-people-filter{
  grid-template-columns:minmax(220px,1.4fr) minmax(170px,1fr) minmax(170px,1fr) auto;
  margin-bottom:12px;
}

.rn-admin-people-directory{
  margin-top:12px;
}

.rn-admin-person-main{
  display:flex;
  gap:12px;
  min-width:0;
}

.rn-admin-person-main strong a{
  color:#0f172a;
  text-decoration:none;
}

.rn-admin-person-main strong a:hover{
  color:var(--rn-brand);
  text-decoration:underline;
  text-underline-offset:3px;
}

.rn-admin-allocation-pills{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:8px;
}

.rn-admin-allocation-pills span,
.rn-admin-allocation-pills em{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--rn-border);
  color:#475569;
  font-size:11px;
  font-style:normal;
  font-weight:850;
}

.rn-admin-status{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:24px;
  margin-top:7px;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-style:normal;
  font-weight:900;
}

.rn-admin-status-danger{
  border:1px solid #fecaca;
  background:#fff5f5;
  color:#b91c1c;
}

.rn-profile-section-tabs{
  margin-top:2px;
}

.rn-profile-section-form{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--rn-border);
}

.rn-profile-photo-tools{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  padding:12px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#f8fafc;
}

.rn-profile-photo-tools strong,
.rn-profile-photo-tools span{
  display:block;
}

.rn-profile-photo-tools strong{
  color:#0f172a;
  font-size:14px;
}

.rn-profile-photo-tools span{
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  font-weight:750;
}

.rn-profile-photo-remove{
  margin:10px 0 0;
}

.rn-profile-photo-remove button{
  min-height:40px;
  border:1px solid #fecaca;
  border-radius:12px;
  padding:9px 12px;
  background:#fff5f5;
  color:#b91c1c;
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.rn-admin-activity-filter{
  margin-bottom:14px;
}

.rn-training-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.rn-training-item{
  display:grid;
  gap:7px;
  padding:11px;
  border:1px solid var(--rn-border);
  border-radius:13px;
  background:#f8fafc;
}

.rn-training-item span{
  display:flex;
  align-items:center;
  gap:8px;
  color:#0f172a;
  font-size:13px;
  font-weight:900;
}

.rn-training-check{
  display:flex;
  align-items:center;
  gap:8px;
  color:#0f172a;
  font-size:13px;
  font-weight:900;
}

.rn-profile-form .rn-training-check{
  display:flex;
}

.rn-training-item input[type="checkbox"]{
  width:17px;
  height:17px;
}

.rn-training-date-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.rn-training-date-row label{
  display:grid;
  gap:5px;
  color:#64748b;
  font-size:11px;
  font-weight:850;
}

.rn-training-item input[type="text"],
.rn-training-item input[type="date"]{
  width:100%;
  min-height:38px;
  border:1px solid var(--rn-border);
  border-radius:10px;
  padding:8px 9px;
  font:inherit;
  font-size:13px;
  background:#fff;
}

.rn-training-item small{
  color:#64748b;
  font-size:12px;
  font-weight:750;
}

.rn-training-overdue{
  color:#b91c1c !important;
}

.rn-profile-actions-wide{
  max-width:520px;
}

.rn-admin-allocate-form{
  display:grid;
  grid-template-columns:minmax(140px,1fr) minmax(120px,.8fr) minmax(120px,.75fr) auto;
  width:100%;
}

.rn-admin-remove-form{
  display:grid;
  grid-template-columns:minmax(140px,1fr) auto;
  width:100%;
}

.rn-admin-home-list{
  display:grid;
  gap:8px;
}

.rn-admin-home-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px;
  border-radius:12px;
  background:#f8fafc;
}

.rn-admin-home-row span{
  margin:0;
  padding:0;
  background:transparent;
}

.rn-admin-home-row form{
  margin:0;
}

.rn-admin-home-row button{
  min-height:34px;
  border:1px solid var(--rn-border);
  border-radius:10px;
  padding:6px 10px;
  background:#fff;
  color:#334155;
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.rn-admin-audit-card{
  align-items:center;
}

.rn-admin-audit-meta{
  display:grid;
  gap:5px;
  justify-items:end;
  color:#64748b;
  font-size:12px;
  font-weight:850;
  white-space:nowrap;
}

.rn-admin-audit-meta span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1e3a8a;
}

.rn-admin-audit-meta small{
  color:#94a3b8;
  font-size:11px;
}

.rn-admin-audit-meta .rn-admin-soft-button{
  min-height:34px;
  padding:7px 10px;
  font-size:12px;
}

@media (max-width:760px){

  .rn-feed-stage{
    padding:16px 12px 24px;
  }

  .rn-feed-banner{
    flex-direction:column;
  }

  .rn-feed-banner-left h1{
    font-size:24px;
  }

  .rn-feed-entry{
    padding:14px;
    border-radius:16px;
  }

  .rn-feed-entry-head{
    gap:9px;
  }

  .rn-feed-datetime{
    display:grid;
    gap:3px;
  }

  .rn-feed-meta-sep{
    display:none;
  }

  .rn-feed-content{
    font-size:15px;
    line-height:1.6;
    padding:10px 12px;
  }

  .rn-recall-stage{
    padding:16px 12px 24px;
  }

  .rn-recall-filter{
    grid-template-columns:1fr;
    padding:12px;
  }

  .rn-recall-export{
    grid-template-columns:1fr;
    padding:12px;
  }

  .rn-recall-export button{
    width:100%;
  }

  .rn-recall-filter-actions,
  .rn-recall-declassify{
    flex-direction:column;
    align-items:stretch;
  }

  .rn-recall-filter-actions button,
  .rn-recall-filter-actions a,
  .rn-recall-declassify button{
    width:100%;
  }

  .rn-recall-entry{
    padding:14px;
    border-radius:16px;
  }

  .rn-recall-entry-head{
    flex-direction:column;
  }

  .rn-recall-tags{
    justify-content:flex-start;
  }

  .rn-profile-stage{
    padding:16px 12px 24px;
  }

  .rn-profile-grid,
  .rn-profile-form-row{
    grid-template-columns:1fr;
  }

  .rn-profile-panel{
    padding:14px;
    border-radius:16px;
  }

  .rn-profile-staff-card{
    flex-direction:column;
  }

  .rn-profile-actions,
  .rn-profile-actions form,
  .rn-profile-inline-form{
    width:100%;
    align-items:stretch;
    justify-content:stretch;
  }

  .rn-profile-actions button,
  .rn-profile-inline-form button{
    width:100%;
  }

  .rn-person-hero{
    align-items:flex-start;
    flex-direction:column;
  }

  .rn-person-title h1{
    font-size:24px;
  }

  .rn-profile-facts div{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
  }

  .rn-profile-facts strong{
    text-align:left;
  }

  .rn-private-fact strong{
    justify-content:flex-start;
  }

  .rn-admin-dashboard-grid{
    grid-template-columns:1fr;
  }

  .rn-oversight-grid,
  .rn-module-catalog{
    grid-template-columns:1fr;
  }

  .rn-admin-people-filter{
    grid-template-columns:1fr;
  }

  .rn-admin-person-main{
    width:100%;
  }

  .rn-admin-allocate-form{
    grid-template-columns:1fr;
  }

  .rn-training-grid{
    grid-template-columns:1fr;
  }

  .rn-training-date-row{
    grid-template-columns:1fr;
  }

  .rn-admin-remove-form{
    grid-template-columns:1fr;
  }

  .rn-admin-home-row{
    align-items:stretch;
    flex-direction:column;
  }

  .rn-admin-home-row button{
    width:100%;
  }

  .rn-admin-soft-button{
    width:100%;
  }

  .rn-admin-audit-meta{
    justify-items:start;
    white-space:normal;
  }

  .rn-module-event-actions{
    min-width:0;
    width:100%;
  }
}

/* Later overrides for new admin surfaces */
.rn-topbar-title a{color:inherit;text-decoration:none}
.rn-topbar-title a:hover{color:var(--rn-brand)}
.rn-admin-home-row-rich > span{display:block;margin:0;padding:0;border-radius:0;background:transparent;color:var(--rn-text);font-size:14px}
.rn-admin-home-row-rich > span strong{display:block;margin-top:3px;color:var(--rn-muted);font-size:12px}
.rn-admin-activity-list .rn-admin-audit-card{padding:10px 12px;border-radius:12px}
.rn-admin-activity-list .rn-admin-audit-card strong{font-size:13px}
.rn-admin-activity-list .rn-admin-audit-card span,.rn-admin-activity-list .rn-admin-audit-card small{font-size:12px}

.rn-permission-search-form{
  display:flex;
  gap:12px;
  align-items:end;
  margin-top:18px;
}

.rn-permission-search-form label{
  flex:1 1 360px;
}

.rn-permission-workspace{
  display:grid;
  grid-template-columns:minmax(260px,360px) minmax(0,1fr);
  gap:16px;
  align-items:start;
}

.rn-permission-results,
.rn-permission-detail{
  min-width:0;
}

.rn-permission-person-list,
.rn-permission-access-list{
  display:grid;
  gap:8px;
}

.rn-permission-person-card,
.rn-permission-access-row{
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid var(--rn-border);
  border-radius:8px;
  background:#fff;
  text-decoration:none;
  color:inherit;
}

.rn-permission-person-card:hover,
.rn-permission-person-card.active{
  border-color:#008a7a;
  background:#e9fbf7;
}

.rn-permission-person-card span,
.rn-permission-person-card small,
.rn-permission-access-row span,
.rn-permission-access-row small{
  color:var(--rn-muted);
  overflow-wrap:anywhere;
}

.rn-permission-detail .rn-permission-access-list article{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px 12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--rn-border);
  border-radius:8px;
  background:#fff;
}

.rn-permission-detail .rn-permission-access-list article strong,
.rn-permission-detail .rn-permission-access-list article span,
.rn-permission-detail .rn-permission-access-list article small{
  min-width:0;
  overflow-wrap:anywhere;
}

.rn-permission-detail .rn-permission-access-list article span,
.rn-permission-detail .rn-permission-access-list article small{
  color:var(--rn-muted);
}

.rn-inline-form{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin:0;
}

.rn-permission-detail .rn-permission-check-card{
  grid-template-columns:1fr;
}

.rn-permission-detail .rn-permission-check-card label{
  display:inline-flex;
  gap:8px;
  align-items:center;
  margin:0;
  color:#042143;
  font-weight:800;
}

.rn-permission-selected-header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:start;
}

.rn-permission-add-person{
  margin-top:18px;
}

.rn-permission-add-person summary{
  cursor:pointer;
  font-weight:800;
  color:#006b61;
}

@media (max-width: 900px){
  .rn-permission-search-form,
  .rn-permission-workspace,
  .rn-permission-selected-header{
    display:grid;
    grid-template-columns:1fr;
  }
}

.rn-permission-search-form label{
  display:grid;
  gap:6px;
  min-width:0;
}

.rn-permission-search-form input[type="search"]{
  width:100%;
  min-height:40px;
  padding:10px 12px;
  border:1px solid var(--rn-border);
  border-radius:8px;
  background:#fff;
  font:inherit;
  color:var(--rn-ink);
}

.rn-permission-search-form button{
  min-height:40px;
  padding:0 18px;
  border:1px solid #007f70;
  border-radius:8px;
  background:#008a7a;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.rn-permission-search-form button:hover{
  background:#006f62;
}

/* Admin tablet controls */
.rn-admin-tabs{
  gap:10px;
  align-items:center;
}

.rn-admin-tabs a,
.rn-admin-soft-button,
.rn-recall-filter-actions a,
.rn-recall-filter-actions button,
.rn-module-update-form button,
.rn-admin-home-actions button,
.rn-profile-form button,
.rn-permission-search-form button{
  appearance:none;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 16px;
  border:1px solid #9bded5;
  border-radius:999px;
  background:#ffffff;
  color:#005f57;
  font:inherit;
  font-size:13px;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 7px 18px rgba(0,118,108,.08);
  cursor:pointer;
}

.rn-admin-tabs a:hover,
.rn-admin-soft-button:hover,
.rn-recall-filter-actions a:hover,
.rn-recall-filter-actions button:hover,
.rn-module-update-form button:hover,
.rn-admin-home-actions button:hover,
.rn-profile-form button:hover,
.rn-permission-search-form button:hover{
  border-color:#00766c;
  background:#ecfffb;
  color:#004d47;
}

.rn-admin-tabs a.active,
.rn-permission-search-form button,
.rn-profile-form button[type="submit"],
.rn-recall-filter-actions button,
.rn-module-update-form button{
  border-color:#00766c;
  background:#00766c;
  color:#ffffff;
  box-shadow:0 10px 22px rgba(0,118,108,.18);
}

.rn-admin-tabs a.active:hover,
.rn-permission-search-form button:hover,
.rn-profile-form button[type="submit"]:hover,
.rn-recall-filter-actions button:hover,
.rn-module-update-form button:hover{
  background:#005f57;
  border-color:#005f57;
  color:#ffffff;
}

.rn-admin-dashboard-card{
  border-color:#b8e8e1;
  background:linear-gradient(180deg,#ffffff 0%,#f3fffc 100%);
  box-shadow:0 12px 26px rgba(0,118,108,.08);
}

.rn-admin-dashboard-card:hover{
  border-color:#00766c;
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(0,118,108,.13);
}

.rn-admin-dashboard-card span,
.rn-admin-dashboard-card strong{
  color:#005f57;
}

.rn-permission-search-form{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
}

.rn-permission-search-form input,
.rn-permission-search-form input[type="search"]{
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border:1px solid #b8e8e1;
  border-radius:12px;
  background:#ffffff;
  color:#111827;
  font:inherit;
  font-size:14px;
  box-shadow:0 6px 16px rgba(15,23,42,.04);
}

.rn-permission-search-form input:focus{
  outline:none;
  border-color:#00766c;
  box-shadow:0 0 0 4px rgba(0,118,108,.12);
}

@media (max-width: 700px){
  .rn-admin-tabs a,
  .rn-admin-soft-button,
  .rn-recall-filter-actions a,
  .rn-recall-filter-actions button,
  .rn-module-update-form button,
  .rn-admin-home-actions button,
  .rn-profile-form button,
  .rn-permission-search-form button{
    width:100%;
  }

  .rn-permission-search-form{
    grid-template-columns:1fr;
  }
}


/* Stronger Admin tablet button pass */
.rn-admin-tabs,
.rn-profile-section-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.rn-admin-tabs a,
.rn-profile-section-tabs a,
.rn-feed-back-btn,
.rn-admin-soft-button,
.rn-recall-filter-actions a,
.rn-recall-filter-actions button,
.rn-module-update-form button,
.rn-admin-home-actions button,
.rn-profile-form button,
.rn-permission-search-form button{
  appearance:none !important;
  min-height:42px;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 17px !important;
  border:1px solid #83d8ce !important;
  border-radius:999px !important;
  background:#ffffff !important;
  color:#005f57 !important;
  font:inherit;
  font-size:13px !important;
  font-weight:900 !important;
  line-height:1;
  text-decoration:none !important;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(0,118,108,.09);
  cursor:pointer;
}

.rn-admin-tabs a.active,
.rn-profile-section-tabs a.active,
.rn-permission-search-form button,
.rn-profile-form button[type="submit"],
.rn-recall-filter-actions button,
.rn-module-update-form button{
  border-color:#00766c !important;
  background:#00766c !important;
  color:#ffffff !important;
  box-shadow:0 10px 24px rgba(0,118,108,.2);
}

.rn-admin-tabs a:hover,
.rn-profile-section-tabs a:hover,
.rn-feed-back-btn:hover,
.rn-admin-soft-button:hover,
.rn-recall-filter-actions a:hover,
.rn-recall-filter-actions button:hover,
.rn-module-update-form button:hover,
.rn-admin-home-actions button:hover,
.rn-profile-form button:hover,
.rn-permission-search-form button:hover{
  border-color:#005f57 !important;
  background:#e9fffb !important;
  color:#004d47 !important;
}

.rn-admin-tabs a.active:hover,
.rn-profile-section-tabs a.active:hover,
.rn-permission-search-form button:hover,
.rn-profile-form button[type="submit"]:hover,
.rn-recall-filter-actions button:hover,
.rn-module-update-form button:hover{
  background:#005f57 !important;
  color:#ffffff !important;
}

.rn-profile-permissions-panel .rn-permission-access-list{
  margin-top:12px;
  margin-bottom:16px;
}

.rn-profile-permission-form{
  border-top:1px solid #b8e8e1;
  padding-top:16px;
}


.rn-property-edit-panel{
  border-color:#8ddbd0 !important;
  box-shadow:0 14px 34px rgba(0,118,108,.12) !important;
}

.rn-property-edit-panel h2{
  color:#005f57;
}

.rn-property-edit-locked{
  background:#fffdf8;
  border-color:#fed7aa !important;
}

/* Admin permission tablet buttons and role tick-box matrix */
.rn-admin-tabs a,
.rn-admin-soft-button,
.rn-permission-search-form button {
    border-radius: 999px;
    border: 1px solid #9ee2d7;
    background: #ffffff;
    color: #006f64;
    box-shadow: 0 8px 20px rgba(0, 111, 100, 0.08);
}
.rn-admin-tabs a.active,
.rn-admin-soft-button.rn-admin-primary-button,
.rn-permission-search-form button:hover {
    background: #d8fbf3;
    color: #005f56;
    border-color: #48cbbb;
}
.rn-role-matrix-panel {
    border-top: 3px solid #00a38f;
}
.rn-role-matrix-scroll {
    overflow-x: auto;
    border: 1px solid #d7eee9;
    border-radius: 8px;
    background: #fff;
}
.rn-role-matrix-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
}
.rn-role-matrix-table th,
.rn-role-matrix-table td {
    border-bottom: 1px solid #e5f3ef;
    border-right: 1px solid #e5f3ef;
    padding: 0.55rem;
    text-align: center;
    vertical-align: middle;
}
.rn-role-matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f4fffc;
    color: #005f56;
    white-space: nowrap;
}
.rn-role-matrix-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 230px;
    background: #ffffff;
    text-align: left;
}
.rn-role-matrix-table tbody th strong,
.rn-role-matrix-table tbody th span,
.rn-role-matrix-table tbody th small {
    display: block;
}
.rn-role-matrix-table tbody th span,
.rn-role-matrix-table tbody th small {
    color: #5f718c;
    font-size: 0.76rem;
}
.rn-tick-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
}
.rn-tick-cell input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.rn-tick-cell span {
    width: 22px;
    height: 22px;
    border: 2px solid #a9dcd4;
    border-radius: 6px;
    background: #fff;
}
.rn-tick-cell input:checked + span {
    background: #007f72;
    border-color: #007f72;
    box-shadow: inset 0 0 0 4px #fff;
}
.rn-tick-cell input:disabled + span {
    opacity: 0.35;
    cursor: not-allowed;
}
.rn-role-matrix-readonly {
    opacity: 0.72;
}
/* Permission role selector */
.rn-permission-role-editor {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.rn-permission-role-list,
.rn-permission-role-detail {
    min-width: 0;
}

.rn-permission-role-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.rn-role-select-btn {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d6e5e2;
    border-radius: 8px;
    background: #fff;
    color: #061b2e;
    font-weight: 800;
    text-decoration: none;
}

.rn-role-select-btn span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rn-role-select-btn small {
    color: #52667d;
    font-weight: 800;
    white-space: nowrap;
}

.rn-role-select-btn.locked {
    opacity: 0.62;
}

.rn-role-select-btn.is-active,
.rn-role-select-btn.active {
    border-color: #20b9a6;
    background: #dffaf4;
    color: #006b5d;
    box-shadow: 0 8px 20px rgba(0, 121, 107, 0.12);
}

.rn-permission-check-group {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #d8ece8;
}

.rn-permission-check-group h3 {
    margin: 0 0 10px;
    color: #00796b;
    font-size: 1rem;
}

.rn-permission-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.rn-permission-check-card {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 64px;
    padding: 12px;
    border: 1px solid #d6e5e2;
    border-radius: 8px;
    background: #fff;
}

.rn-permission-check-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #00796b;
}

.rn-permission-check-card strong,
.rn-permission-check-card small {
    display: block;
    overflow-wrap: anywhere;
}

.rn-permission-check-card small {
    margin-top: 3px;
    color: #52667d;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .rn-permission-role-editor {
        grid-template-columns: 1fr;
    }

    .rn-role-select-btn {
        grid-template-columns: 1fr;
    }
}
/* ResiNotes brand refresh - subtle navy, teal and warm accents */
:root {
  --rn-brand:#16b9c2;
  --rn-brand-dark:#061b35;
  --rn-brand-navy:#071d38;
  --rn-brand-teal:#16b9c2;
  --rn-brand-teal-dark:#0d8f98;
  --rn-brand-mint:#e9fbfb;
  --rn-brand-sky:#eef8ff;
  --rn-accent:#f0a04b;
  --rn-accent-soft:#fff3e4;
  --rn-bg:#f5fbfc;
  --rn-soft:#f8fcfd;
  --rn-card:#ffffff;
  --rn-wash-teal:#e9fbfb;
  --rn-wash-amber:#fff3e4;
  --rn-wash-blue:#eef8ff;
  --rn-line-teal:#a9edf0;
  --rn-line-amber:#ffd9ad;
  --rn-border:#dcebed;
  --rn-border-strong:#b9dfe3;
  --rn-text:#071d38;
  --rn-muted:#5e7187;
  --rn-shadow:0 14px 34px rgba(7,29,56,.075);
}

body,
body.rn-app {
  background:
    linear-gradient(180deg, #f4fcfd 0%, #f8fbfc 320px),
    #f8fbfc;
  color:var(--rn-text);
}

.rn-sidebar {
  background:linear-gradient(180deg, #ffffff 0%, #f1fcfc 54%, #fff7ec 100%);
  border-right:1px solid #cde7ea;
}

.rn-sidebar-logo {
  background:linear-gradient(180deg, #ffffff 0%, #f4fdfd 100%);
  border-color:#c9eef0;
  box-shadow:0 12px 28px rgba(7,29,56,.06);
}

.rn-sidebar-brand-image {
  width:150px;
}

.rn-sidebar-nav a,
.rn-sidebar-switch,
.rn-profile-panel,
.rn-card,
.rn-login-card,
.rn-property-section-grid article,
.rn-property-summary-list p,
.rn-support-ticket-item,
.rn-notification-row {
  border-color:var(--rn-border);
  box-shadow:0 8px 20px rgba(7,29,56,.045);
}

.rn-sidebar-nav a::before {
  background:#cad9e4;
}

.rn-sidebar-nav a:hover,
.rn-sidebar-switch:hover {
  background:var(--rn-brand-sky);
  border-color:#b8e8f0;
  color:var(--rn-brand-navy);
}

.rn-sidebar-nav a.active {
  background:linear-gradient(90deg, #e9fbfb 0%, #eef8ff 100%);
  border-color:#9de7ed;
  color:var(--rn-brand-navy);
  box-shadow:0 12px 28px rgba(22,185,194,.16);
}

.rn-sidebar-nav a.active::before,
.rn-sidebar-nav a:hover::before,
.rn-feed-pill,
.rn-status-dot,
.rn-role-select-btn.active small {
  background:var(--rn-brand-teal);
}

.rn-topbar,
.rn-property-hero,
.rn-profile-hero,
.rn-admin-hero,
.rn-dashboard-hero {
  background:linear-gradient(135deg, #ffffff 0%, #effcfc 58%, #fff6eb 100%);
  border-color:#c7ecef;
  box-shadow:0 16px 36px rgba(7,29,56,.07);
}

.rn-profile-panel,
.rn-property-edit-panel,
.rn-permission-find-panel {
  background:linear-gradient(180deg, #ffffff 0%, #fbfefe 100%);
  border-top-color:#85dde3;
}

.rn-profile-panel h2,
.rn-profile-panel h3,
.rn-property-hero h1,
.rn-admin-section-title-row h2,
.rn-page-title,
.rn-page h1 {
  color:var(--rn-brand-navy);
}

.rn-profile-panel h2::after,
.rn-admin-section-title-row h2::after,
.rn-permission-check-group h3::after {
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin-top:7px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--rn-brand-teal), var(--rn-accent));
}

.rn-profile-muted,
.rn-muted,
.rn-property-summary-list span,
.rn-property-section-grid span {
  color:var(--rn-muted);
}

button,
.rn-admin-soft-button,
.rn-admin-primary-button,
.rn-profile-action,
.rn-form-button,
.rn-button,
.rn-role-select-btn,
.rn-tab-nav a,
.rn-admin-tabs a {
  border-radius:12px;
}

.rn-admin-primary-button,
.rn-form-button,
.rn-sidebar-logout,
button[type="submit"] {
  background:linear-gradient(180deg, var(--rn-brand-teal) 0%, var(--rn-brand-teal-dark) 100%);
  border-color:var(--rn-brand-teal-dark);
  color:#ffffff;
  box-shadow:0 10px 24px rgba(22,185,194,.20);
}

.rn-admin-primary-button:hover,
.rn-form-button:hover,
button[type="submit"]:hover {
  background:linear-gradient(180deg, #28c6ce 0%, #0a7f88 100%);
}

.rn-admin-soft-button,
.rn-tab-nav a,
.rn-admin-tabs a,
.rn-profile-action,
.rn-role-select-btn {
  background:#ffffff;
  border-color:#d6e9ec;
  color:var(--rn-brand-navy);
}

.rn-tab-nav a.active,
.rn-admin-tabs a.active,
.rn-role-select-btn.active,
.rn-role-select-btn.is-active {
  background:linear-gradient(90deg, #e9fbfb 0%, #eef8ff 100%);
  border-color:#8bdfe6;
  color:var(--rn-brand-navy);
}

.rn-feed-pill,
.rn-profile-badge,
.rn-status-badge,
.rn-notification-bell strong {
  background:linear-gradient(90deg, var(--rn-brand-teal), #23c7b9);
  color:#ffffff;
}

.rn-form-alert-success,
.rn-notification-unread,
.rn-support-ticket-item.active,
.rn-property-help {
  background:#f0fdfd;
  border-color:#a9edf0;
}

.rn-form-alert-error,
.rn-property-edit-locked {
  background:#fff7ec;
  border-color:#ffd9ad;
}

input:focus,
select:focus,
textarea:focus {
  border-color:var(--rn-brand-teal);
  box-shadow:0 0 0 4px rgba(22,185,194,.14);
}

.rn-property-summary-list p,
.rn-property-section-grid article,
.rn-permission-check-card {
  border-left-color:#9de7ed;
}

.rn-property-summary-list p:nth-child(3n),
.rn-property-section-grid article:nth-child(3n),
.rn-permission-check-card:nth-child(4n) {
  border-left-color:#ffd09a;
}

.rn-property-summary-list p:nth-child(3n + 1),
.rn-property-section-grid article:nth-child(3n + 1),
.rn-permission-check-card:nth-child(4n + 1) {
  border-left-color:#b9d7ff;
}
.rn-admin-dashboard-card,
.rn-module-card,
.rn-admin-person-card,
.rn-permission-person-card,
.rn-profile-staff-card {
  border-left:4px solid #9de7ed;
}

.rn-admin-dashboard-card:nth-child(3n),
.rn-module-card:nth-child(3n),
.rn-admin-person-card:nth-child(3n),
.rn-permission-person-card:nth-child(3n),
.rn-profile-staff-card:nth-child(3n) {
  border-left-color:#ffd09a;
}

.rn-admin-dashboard-card:nth-child(3n + 1),
.rn-module-card:nth-child(3n + 1),
.rn-admin-person-card:nth-child(3n + 1),
.rn-permission-person-card:nth-child(3n + 1),
.rn-profile-staff-card:nth-child(3n + 1) {
  border-left-color:#b9d7ff;
}

.rn-danger,
.rn-admin-status-danger,
button.rn-danger,
.rn-form-button-danger,
button[name="delete"],
button[name="archive"] {
  background:#dc2626;
  border-color:#b91c1c;
  color:#ffffff;
  box-shadow:0 10px 22px rgba(220,38,38,.16);
}
/* Property compliance profile */
.rn-property-form-section,
.rn-property-compliance-section {
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--rn-border);
}

.rn-property-form-section h3,
.rn-property-compliance-section h3 {
  margin:0 0 12px;
  color:var(--rn-brand-navy, #071d38);
  font-size:1rem;
}

.rn-property-form-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}

.rn-property-form-full {
  grid-column:1 / -1;
}

.rn-property-form-grid textarea {
  min-height:112px;
}

.rn-property-compliance-sections {
  display:grid;
  gap:16px;
}

.rn-property-compliance-section {
  padding:14px;
  border:1px solid var(--rn-border);
  border-left:4px solid var(--rn-brand-teal, #16b9c2);
  border-radius:12px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfefe 100%);
}

.rn-property-compliance-section:nth-child(2n) {
  border-left-color:#ffd09a;
}

.rn-property-compliance-section:nth-child(3n) {
  border-left-color:#b9d7ff;
}
/* ResiNotes calm brand override - reduce bright/glittery blue */
:root {
  --rn-brand:#0b7b7f;
  --rn-brand-dark:#061b35;
  --rn-brand-navy:#061b35;
  --rn-brand-teal:#0b7b7f;
  --rn-brand-teal-dark:#075f64;
  --rn-brand-mint:#eef8f7;
  --rn-brand-sky:#f3f8fa;
  --rn-accent:#d99545;
  --rn-accent-soft:#fff6ec;
  --rn-line-teal:#c3e2e1;
  --rn-border:#d8e7e8;
  --rn-border-strong:#b8d2d4;
  --rn-shadow:0 10px 24px rgba(6,27,53,.065);
}

body,
body.rn-app {
  background:linear-gradient(180deg,#f8fbfb 0%,#fbfaf7 340px), #fbfaf7;
}

.rn-admin-primary-button,
.rn-form-button,
.rn-sidebar-logout,
.rn-sidebar-switch,
button[type="submit"] {
  background:linear-gradient(180deg,#0c8589 0%,#076268 100%) !important;
  border-color:#075f64 !important;
  color:#ffffff !important;
  box-shadow:0 8px 18px rgba(7,95,100,.16) !important;
}

.rn-admin-primary-button:hover,
.rn-form-button:hover,
.rn-sidebar-logout:hover,
.rn-sidebar-switch:hover,
button[type="submit"]:hover {
  background:linear-gradient(180deg,#0b777b 0%,#064f55 100%) !important;
}

.rn-sidebar-switch {
  background:#ffffff !important;
  color:#061b35 !important;
  border-color:#d8e7e8 !important;
  box-shadow:0 5px 12px rgba(6,27,53,.055) !important;
}

.rn-sidebar-switch:hover {
  background:#f3f8fa !important;
  color:#061b35 !important;
}

/* Compact sidebar utility grid: keep these out of the global submit-button styling. */
.rn-sidebar-utility-grid .rn-sidebar-utility-tile,
.rn-sidebar-utility-grid button[type="submit"].rn-sidebar-utility-tile,
.rn-sidebar-utility-grid .rn-sidebar-utility-admin,
.rn-sidebar-utility-grid .rn-sidebar-utility-exit {
  background:#f8fffd !important;
  border:1px solid rgba(0,126,118,.24) !important;
  box-shadow:none !important;
  color:#005b55 !important;
  min-height:48px;
}

.rn-sidebar-utility-grid .rn-sidebar-utility-tile:hover,
.rn-sidebar-utility-grid .rn-sidebar-utility-tile.active,
.rn-sidebar-utility-grid button[type="submit"].rn-sidebar-utility-tile:hover {
  background:#e9faf6 !important;
  border-color:#78d8cf !important;
  box-shadow:0 6px 16px rgba(0,118,108,.08) !important;
  color:var(--rn-brand-dark) !important;
}

.rn-sidebar-utility-grid .rn-sidebar-utility-icon {
  background:#e6f8f5 !important;
  border-color:rgba(0,126,118,.20) !important;
  color:var(--rn-brand-dark) !important;
  height:22px;
  width:22px;
}

.rn-feed-pill,
.rn-profile-badge,
.rn-status-badge,
.rn-notification-bell strong {
  background:#0b7b7f !important;
  color:#ffffff !important;
}

.rn-profile-panel h2::after,
.rn-admin-section-title-row h2::after,
.rn-permission-check-group h3::after {
  background:linear-gradient(90deg,#0b7b7f,#d99545) !important;
}

.rn-permission-role-buttons {
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
}

.rn-role-select-btn {
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  width:auto !important;
  min-height:36px !important;
  padding:8px 11px !important;
  border-radius:999px !important;
  background:#ffffff !important;
  border:1px solid #cfe1e3 !important;
  color:#061b35 !important;
  text-decoration:none !important;
  box-shadow:0 5px 12px rgba(6,27,53,.04) !important;
}

.rn-role-select-btn strong,
.rn-role-select-btn span {
  display:inline !important;
  color:inherit !important;
  font-size:12px !important;
  line-height:1.15 !important;
}

.rn-role-select-btn span {
  color:#607386 !important;
  font-weight:800 !important;
}

.rn-role-select-btn.active,
.rn-role-select-btn.is-active {
  background:#eef8f7 !important;
  border-color:#91cacc !important;
  color:#061b35 !important;
  box-shadow:0 8px 18px rgba(7,95,100,.11) !important;
}

.rn-permission-check-card,
.rn-property-compliance-section,
.rn-admin-dashboard-card,
.rn-module-card,
.rn-admin-person-card,
.rn-permission-person-card,
.rn-profile-staff-card {
  border-left-color:#9bcfd1 !important;
}

.rn-property-summary-list p:nth-child(3n),
.rn-property-section-grid article:nth-child(3n),
.rn-permission-check-card:nth-child(4n),
.rn-admin-dashboard-card:nth-child(3n),
.rn-module-card:nth-child(3n),
.rn-admin-person-card:nth-child(3n),
.rn-permission-person-card:nth-child(3n),
.rn-profile-staff-card:nth-child(3n) {
  border-left-color:#e3bd8f !important;
}

.rn-property-summary-list p:nth-child(3n + 1),
.rn-property-section-grid article:nth-child(3n + 1),
.rn-permission-check-card:nth-child(4n + 1),
.rn-admin-dashboard-card:nth-child(3n + 1),
.rn-module-card:nth-child(3n + 1),
.rn-admin-person-card:nth-child(3n + 1),
.rn-permission-person-card:nth-child(3n + 1),
.rn-profile-staff-card:nth-child(3n + 1) {
  border-left-color:#c8d7dc !important;
}

/* Young People primary module */
.rn-young-stage{max-width:1220px;margin:0 auto;padding:28px 20px 70px}.rn-young-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding:20px;border:1px solid var(--rn-border);border-radius:16px;background:linear-gradient(135deg,#f5fffd,#fffaf5);box-shadow:var(--rn-shadow)}.rn-young-hero h1{margin:8px 0 6px;color:var(--rn-brand-dark);font-size:32px}.rn-young-hero p{margin:0;color:var(--rn-muted);font-weight:750;line-height:1.45}.rn-young-grid{display:grid;grid-template-columns:310px minmax(0,1fr);gap:16px;align-items:start}.rn-young-list{display:grid;gap:10px}.rn-young-list-item{display:grid;gap:3px;padding:12px;border:1px solid var(--rn-border);border-radius:14px;background:#fff;color:inherit;text-decoration:none}.rn-young-list-item.active{border-color:#73d8cf;background:var(--rn-soft)}.rn-young-list-item strong{font-size:20px;color:var(--rn-brand-dark)}.rn-young-list-item span{font-weight:900}.rn-young-list-item small{color:var(--rn-muted);font-weight:750}.rn-young-profile-head{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:16px;align-items:center;margin-bottom:16px}.rn-young-avatar{width:96px;height:96px;border-radius:18px;border:1px solid var(--rn-border);background:var(--rn-soft);display:grid;place-items:center;overflow:hidden}.rn-young-avatar img{width:100%;height:100%;object-fit:cover}.rn-young-avatar span{font-size:28px;font-weight:950;color:var(--rn-brand-dark)}.rn-young-profile-head h2{margin:8px 0 3px;color:var(--rn-brand-dark);font-size:30px}.rn-young-profile-head h2 small{font-size:16px;color:var(--rn-brand);font-weight:900}.rn-young-profile-head p{margin:0;color:var(--rn-muted);font-weight:800}.rn-young-summary-grid{margin-bottom:14px}.rn-young-form button{width:100%;min-height:46px;border:0;border-radius:14px;background:var(--rn-brand-dark);color:#fff;font-weight:950}.rn-young-feed-list{display:grid;gap:10px}.rn-young-feed-entry{border:1px solid var(--rn-border);border-radius:14px;background:#fff;padding:12px}.rn-young-feed-entry strong{display:block;color:var(--rn-brand-dark)}.rn-young-feed-entry span{display:block;color:var(--rn-muted);font-size:12px;font-weight:800;margin-top:2px}.rn-young-feed-entry p{margin:8px 0 0;line-height:1.5}@media(max-width:1000px){.rn-young-grid{grid-template-columns:1fr}.rn-young-profile-head{grid-template-columns:72px 1fr}.rn-young-avatar{width:72px;height:72px}.rn-young-profile-head .rn-row-actions{grid-column:1/-1}.rn-young-hero{display:grid}.rn-young-hero h1{font-size:26px}}
/* Young People module form polish */
.rn-young-form-panel {
  border-top-color:#ffd09a;
}

.rn-young-form {
  display:grid;
  gap:18px;
}

.rn-young-form .rn-property-form-section {
  margin-top:0;
  padding:16px;
  border:1px solid var(--rn-border);
  border-left:4px solid var(--rn-line-teal);
  border-radius:14px;
  background:#ffffff;
}

.rn-young-form .rn-property-form-section:nth-of-type(2n) {
  border-left-color:var(--rn-line-amber);
  background:linear-gradient(180deg,#ffffff 0%,#fffdf8 100%);
}

.rn-young-form .rn-property-form-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px 16px;
}

.rn-young-form label {
  display:grid;
  gap:7px;
  min-width:0;
  color:var(--rn-text);
  font-weight:850;
}

.rn-young-form label span {
  color:#415672;
  font-size:12px;
  line-height:1.2;
}

.rn-young-form input,
.rn-young-form select,
.rn-young-form textarea {
  width:100%;
  min-height:42px;
  border:1px solid #cfe4e1;
  border-radius:12px;
  background:#ffffff;
  color:var(--rn-text);
  font:inherit;
  font-size:14px;
  font-weight:760;
  padding:10px 12px;
  box-shadow:0 1px 0 rgba(15,23,42,.02);
}

.rn-young-form select {
  appearance:auto;
}

.rn-young-form input[type="file"] {
  padding:8px 10px;
  background:#fbfffe;
}

.rn-young-form textarea {
  min-height:118px;
  resize:vertical;
  line-height:1.45;
}

.rn-young-form input:focus,
.rn-young-form select:focus,
.rn-young-form textarea:focus {
  outline:0;
  border-color:var(--rn-brand);
  box-shadow:0 0 0 3px rgba(0,118,108,.12);
}

.rn-young-form button[type="submit"] {
  margin-top:2px;
  min-height:50px;
  border:1px solid var(--rn-brand-dark);
  border-radius:14px;
  background:var(--rn-brand);
  color:#ffffff;
  font-weight:950;
  box-shadow:0 12px 22px rgba(0,118,108,.16);
}

.rn-young-form button[type="submit"]:hover {
  background:var(--rn-brand-dark);
  transform:translateY(-1px);
}

@media(max-width:1150px) {
  .rn-young-form .rn-property-form-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px) {
  .rn-young-form .rn-property-form-grid {
    grid-template-columns:1fr;
  }
}

/* Young People dashboard and profile layout */
.rn-young-hub-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.rn-young-hub-card,
.rn-young-directory-card {
  display:grid;
  gap:8px;
  border:1px solid var(--rn-border);
  border-left:5px solid var(--rn-line-teal);
  border-radius:16px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:var(--rn-shadow);
}

.rn-young-hub-card {
  min-height:170px;
  padding:22px;
  align-content:center;
}

.rn-young-hub-card-archive {
  border-left-color:var(--rn-line-amber);
  background:linear-gradient(180deg,#ffffff 0%,#fffdf8 100%);
}

.rn-young-hub-card span,
.rn-young-directory-card span {
  color:var(--rn-brand-dark);
  font-weight:950;
}

.rn-young-hub-card strong {
  color:var(--rn-brand-dark);
  font-size:42px;
  line-height:1;
}

.rn-young-hub-card small,
.rn-young-directory-card small,
.rn-young-directory-card em {
  color:var(--rn-muted);
  font-style:normal;
  font-weight:800;
}

.rn-young-section-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.rn-young-section-head h2 {
  margin:0 0 5px;
}

.rn-young-directory-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:12px;
}

.rn-young-directory-card {
  padding:14px;
}

.rn-young-directory-card strong {
  color:var(--rn-brand-dark);
  font-size:24px;
  line-height:1;
}

.rn-young-reference-strip {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}

.rn-young-reference-strip div {
  border:1px solid #cfe4e1;
  border-radius:14px;
  background:#fbfffe;
  padding:12px;
  min-width:0;
}

.rn-young-reference-strip span {
  display:block;
  color:#415672;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.rn-young-reference-strip strong {
  display:block;
  margin-top:4px;
  color:var(--rn-brand-dark);
  font-size:15px;
  word-break:break-word;
}

.rn-young-profile-head-rich {
  border-bottom:1px solid var(--rn-border);
  padding-bottom:16px;
}

.rn-young-profile-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);
  gap:16px;
  margin:16px 0;
}

.rn-young-core-card {
  border:1px solid var(--rn-border);
  border-left:4px solid var(--rn-line-teal);
  border-radius:16px;
  background:#fff;
  padding:16px;
}

.rn-young-core-card:nth-child(2) {
  border-left-color:var(--rn-line-amber);
}

.rn-young-core-card h3 {
  margin:0 0 12px;
  color:var(--rn-brand-dark);
}

.rn-young-record-sections {
  margin-top:16px;
}

.rn-young-status-grid {
  margin-bottom:2px;
}

@media(max-width:1000px) {
  .rn-young-hub-grid,
  .rn-young-profile-layout,
  .rn-young-reference-strip {
    grid-template-columns:1fr;
  }

  .rn-young-section-head {
    display:grid;
  }
}

/* Young People snapshots, communication and add-only contacts */
.rn-young-directory-grid {
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
}

.rn-young-snapshot-card {
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  align-items:center;
  gap:12px;
}

.rn-young-snapshot-photo {
  width:76px;
  height:76px;
  border:1px solid #cfe4e1;
  border-radius:16px;
  background:#f4fbfa;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.rn-young-snapshot-photo img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.rn-young-snapshot-photo span {
  color:var(--rn-brand-dark);
  font-size:22px;
  font-weight:950;
}

.rn-young-snapshot-body {
  display:grid;
  gap:4px;
  min-width:0;
}

.rn-young-snapshot-body strong {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:baseline;
  color:var(--rn-brand-dark);
  font-size:20px;
}

.rn-young-snapshot-body strong span {
  color:var(--rn-text);
  font-size:15px;
}

.rn-young-history-list,
.rn-young-family-list {
  display:grid;
  gap:10px;
}

.rn-young-history-list article,
.rn-young-family-list article {
  border:1px solid #dbe8e6;
  border-radius:14px;
  background:#fff;
  padding:12px;
  display:grid;
  gap:4px;
}

.rn-young-history-list strong,
.rn-young-family-list strong {
  color:var(--rn-brand-dark);
  font-size:16px;
}

.rn-young-history-list span,
.rn-young-family-list span,
.rn-young-history-list small,
.rn-young-family-list small,
.rn-young-family-list em {
  color:var(--rn-muted);
  font-style:normal;
  font-weight:800;
}

.rn-young-family-list em {
  color:var(--rn-brand-dark);
}

.rn-young-family-list p {
  margin:6px 0 0;
  line-height:1.45;
}

.rn-young-family-add .rn-compact-check {
  align-self:end;
  min-height:42px;
  border:1px solid #cfe4e1;
  border-radius:12px;
  padding:10px 12px;
  background:#fbfffe;
}

@media(max-width:700px) {
  .rn-young-snapshot-card {
    grid-template-columns:64px minmax(0,1fr);
  }

  .rn-young-snapshot-photo {
    width:64px;
    height:64px;
  }
}

/* Young People snapshot wording refinement */
.rn-young-snapshot-body strong {
  display:block;
  color:var(--rn-text);
  font-size:17px;
  line-height:1.25;
}

.rn-young-snapshot-body strong span {
  color:var(--rn-muted);
  font-size:14px;
  font-weight:850;
}

.rn-young-snapshot-body em {
  color:var(--rn-brand-dark);
  font-style:normal;
  font-weight:900;
}

.rn-young-snapshot-body small {
  color:var(--rn-muted);
  font-weight:800;
}

/* Young People structured records */
.rn-young-add-panels {
  display:grid;
  gap:14px;
  margin:18px 0;
}

.rn-young-repeat-list {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
}

.rn-young-repeat-list article {
  border:1px solid #dbe8e6;
  border-radius:14px;
  background:#fff;
  padding:13px 14px;
  display:grid;
  gap:5px;
}

.rn-young-repeat-list strong {
  color:var(--rn-brand-dark);
  font-size:16px;
}

.rn-young-repeat-list span,
.rn-young-repeat-list small {
  color:var(--rn-muted);
  font-weight:800;
}

.rn-young-repeat-list p {
  margin:4px 0 0;
  color:var(--rn-text);
  line-height:1.45;
}

.rn-young-family-add .rn-compact-check {
  display:inline-flex;
  width:max-content;
  max-width:100%;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:8px 12px;
}

.rn-young-family-add .rn-compact-check input {
  width:16px;
  height:16px;
  flex:0 0 auto;
  margin:0;
}

/* Young People priority contacts and inline save */
.rn-young-contact-priority {
  border:1px solid #bfe6e1;
  border-top:4px solid var(--rn-brand);
  border-radius:18px;
  background:#fbfffe;
  padding:18px;
  margin:18px 0;
  box-shadow:0 16px 34px rgba(0,59,73,.08);
}

.rn-young-contact-head {
  align-items:flex-start;
  margin-bottom:14px;
}

.rn-young-add-panels-priority {
  grid-template-columns:1fr;
}

.rn-section-save-row {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin-top:12px;
}

.rn-section-save-button:disabled {
  opacity:.65;
  cursor:wait;
}

.rn-section-save-status {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  color:#087568;
  background:#e9fbf7;
  border:1px solid #b9ece4;
  font-weight:900;
  opacity:0;
  transform:translateY(2px);
  transition:opacity .18s ease, transform .18s ease;
}

.rn-section-save-status.is-visible {
  opacity:1;
  transform:translateY(0);
}

.rn-section-save-status.is-error {
  color:#8b1e1e;
  background:#fff1f1;
  border-color:#f1b9b9;
}

/* Young People profile depth refresh */
.rn-young-form-panel .rn-property-form-section,
.rn-young-detail-panel .rn-property-compliance-section {
  border-top-width: 4px;
  border-top-color: color-mix(in srgb, var(--rn-brand) 72%, white);
}
.rn-young-form-panel .rn-property-form-section > h3,
.rn-young-detail-panel .rn-property-compliance-section > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  color: var(--rn-text);
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--rn-brand) 28%, transparent);
}
.rn-young-form-panel .rn-property-form-section > h3::before,
.rn-young-detail-panel .rn-property-compliance-section > h3::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: var(--rn-accent);
  flex: 0 0 auto;
}
.rn-young-reference-strip-operational strong {
  color: var(--rn-text);
  font-size: 1.02rem;
}
.rn-add-another-button,
.rn-map-link {
  margin-top: 12px;
  width: fit-content;
}
.rn-inline-status-form {
  display: inline-flex;
  margin: 0;
}
.rn-danger-soft-button {
  border-color: #efb4a5;
  background: #fff7f3;
  color: #8b2f20;
}
.rn-module-link-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--rn-brand) 10%, white);
  border: 1px solid color-mix(in srgb, var(--rn-brand) 28%, white);
}
.rn-risk-grade {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  border-radius: 8px;
  border: 1px solid #d8e5e7;
  background: #f8fbfb;
  padding: 10px 12px 12px;
}
.rn-risk-grade span,
.rn-risk-grade strong {
  position: relative;
  z-index: 1;
}
.rn-risk-grade i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: #c9d5d8;
}
.rn-risk-grade-low i { background: #4fb477; }
.rn-risk-grade-medium i { background: #d7a63a; }
.rn-risk-grade-high i { background: #df744a; }
.rn-risk-grade-critical i { background: #b83232; }
.rn-risk-grade-low { background: #f3fbf6; }
.rn-risk-grade-medium { background: #fffaf0; }
.rn-risk-grade-high { background: #fff6f1; }
.rn-risk-grade-critical { background: #fff1f1; }

/* Young People ordered profile/edit layout */
.rn-young-profile-head-rich .rn-row-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  max-width:360px;
}
.rn-young-profile-head-rich .rn-row-actions .rn-admin-soft-button,
.rn-young-profile-head-rich .rn-inline-status-form button {
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  white-space:nowrap;
  width:auto;
}
.rn-young-profile-head-rich .rn-inline-status-form {
  width:auto;
  flex:0 0 auto;
}
.rn-young-edit-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 16px;
  padding:10px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#f8fffd;
}
.rn-young-edit-tabs a {
  display:inline-flex;
  min-height:36px;
  align-items:center;
  justify-content:center;
  padding:0 13px;
  border:1px solid #9bded5;
  border-radius:999px;
  background:#fff;
  color:var(--rn-brand-dark);
  text-decoration:none;
  font-weight:900;
  font-size:13px;
}
.rn-young-form .rn-property-form-section {
  scroll-margin-top:18px;
}
.rn-young-contact-priority {
  margin:18px 0;
}
.rn-young-add-panels-priority {
  align-items:start;
}
.rn-young-family-add .rn-property-form-grid {
  align-items:start;
}
.rn-young-family-add .rn-compact-check {
  min-height:44px;
  display:flex !important;
  flex-direction:row;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid #d7e9e6;
  border-radius:10px;
  background:#fff;
}
.rn-young-family-add .rn-compact-check input {
  flex:0 0 auto;
  width:17px;
  height:17px;
  margin:0;
}
.rn-add-another-button {
  margin-top:16px;
  width:auto !important;
}
.rn-section-save-row {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:14px;
}
.rn-section-save-row .rn-admin-soft-button,
.rn-section-save-row .rn-section-save-button {
  width:auto;
}
.rn-final-save-row {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--rn-border);
}
.rn-final-save-row button {
  width:auto;
  min-width:220px;
}
.rn-young-view-section {
  order:20;
}
.rn-young-section-risk-and-safety-summary { order:2; }
.rn-young-key-worker-list-panel { order:3; }
.rn-young-family-list-panel { order:4; }
.rn-young-section-placement-details { order:5; }
.rn-young-section-identity-and-personal-details { order:6; }
.rn-young-section-communication { order:7; }
.rn-young-social-list-panel { order:8; }
.rn-young-section-family-and-important-people { order:9; }
.rn-young-section-professional-contacts-summary { order:10; }
.rn-young-professional-list-panel { order:11; }
.rn-young-section-health-wellbeing { order:12; }
.rn-young-health-list-panel { order:13; }
.rn-young-section-education-summary { order:14; }
.rn-young-section-behaviour-and-support { order:15; }
.rn-young-section-documents-and-chronology-placeholders { order:16; }
.rn-young-section-identity-support-notes { order:17; }
.rn-young-phone-history-panel { order:18; }
#young-person-audit { order:19; }
.rn-young-view-section summary {
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.rn-young-view-section summary::-webkit-details-marker { display:none; }
.rn-young-view-section summary::after {
  content:'Open';
  font-size:12px;
  font-weight:900;
  color:var(--rn-brand-dark);
  border:1px solid #9bded5;
  border-radius:999px;
  padding:5px 10px;
  background:#fff;
}
.rn-young-view-section[open] summary::after { content:'Close'; }

/* Young People contact/action polish */
.rn-young-contact-head .rn-section-save-button,
.rn-young-contact-head .rn-section-save-status {
  display:none !important;
}
.rn-contact-card-actions,
.rn-young-social-entry-section .rn-section-save-row,
.rn-young-health-entry-section .rn-section-save-row {
  justify-content:flex-start;
  align-items:center;
  gap:10px;
  margin-top:18px;
}
.rn-contact-card-actions .rn-admin-soft-button,
.rn-young-social-entry-section .rn-section-save-row .rn-admin-soft-button,
.rn-young-health-entry-section .rn-section-save-row .rn-admin-soft-button {
  width:auto !important;
  min-width:132px;
}
.rn-section-save-status.is-visible::before {
  content:'?';
  margin-right:6px;
}
.rn-placement-map-row {
  margin-top:14px;
}
/* Young People CSP-safe save and mobile polish */
.rn-young-stage,
.rn-young-stage * {
  box-sizing: border-box;
}
.rn-young-stage {
  width: 100%;
  max-width: 1220px;
  overflow-x: hidden;
}
.rn-young-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.rn-young-help-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--rn-border);
  border-left: 4px solid var(--rn-line-amber);
  border-radius: 14px;
  background: #fffdfa;
  box-shadow: var(--rn-shadow);
}
.rn-young-help-panel[hidden] {
  display: none;
}
.rn-young-help-panel h2 {
  margin: 0 0 6px;
  color: var(--rn-brand-dark);
  font-size: 18px;
}
.rn-young-help-panel p {
  margin: 0;
  color: var(--rn-muted);
  font-weight: 750;
  line-height: 1.45;
}
.rn-young-edit-tabs-tablet {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0 16px;
}
.rn-young-edit-tabs-tablet a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--rn-border);
  border-radius: 999px;
  background: #fff;
  color: var(--rn-brand-dark);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(2, 48, 71, .05);
}
.rn-young-edit-tabs-tablet a:hover,
.rn-young-edit-tabs-tablet a:focus {
  border-color: var(--rn-brand);
  background: var(--rn-soft);
}
.rn-young-feed-panel h3 {
  margin-bottom: 8px;
}
.rn-young-feed-entry {
  padding: 10px 12px;
}
.rn-young-feed-entry strong {
  font-size: 13px;
  line-height: 1.35;
}
.rn-young-feed-entry p {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
}
.rn-section-save-status {
  opacity: 0;
  transition: opacity .16s ease;
}
.rn-section-save-status.is-visible {
  opacity: 1;
}
.rn-section-save-status.is-error {
  color: #9f1239;
}
@media (max-width: 760px) {
  .rn-profile-stage.rn-young-stage {
    padding-left: 10px;
    padding-right: 10px;
  }
  .rn-young-hero,
  .rn-profile-panel,
  .rn-property-form-section,
  .rn-young-contact-priority,
  .rn-young-core-card {
    width: 100%;
    max-width: 100%;
  }
  .rn-young-hero-actions,
  .rn-young-section-head,
  .rn-section-save-row,
  .rn-contact-card-actions {
    justify-content: stretch;
  }
  .rn-young-hero-actions > *,
  .rn-section-save-row > *,
  .rn-contact-card-actions > * {
    width: 100%;
  }
  .rn-young-profile-head-rich {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .rn-young-profile-head-rich .rn-row-actions {
    grid-column: 1 / -1;
  }
  .rn-young-reference-strip,
  .rn-young-form .rn-property-form-grid,
  .rn-young-directory-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Daily Summaries controlled weekly sharing */
.rn-ds-share-panel {
    border-top-color: #f0b461;
    display: grid;
    gap: 18px;
}

.rn-ds-share-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(112, 215, 211, .38);
}

.rn-ds-share-head h2 {
    margin: 8px 0 5px;
}

.rn-ds-share-head p {
    margin: 0;
    max-width: 760px;
    color: #536984;
}

.rn-ds-share-form {
    display: grid;
    gap: 16px;
}

.rn-ds-share-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.rn-ds-share-form legend {
    padding: 0;
    color: #002247;
    font-size: 1rem;
    font-weight: 950;
}

.rn-ds-recipient-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.rn-ds-recipient-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(112, 215, 211, .48);
    border-radius: 8px;
    background: #fff;
    color: #002247;
    cursor: pointer;
}

.rn-ds-recipient-card:has(input:checked) {
    border-color: #007e7a;
    background: #f1fcfa;
    box-shadow: inset 4px 0 0 #007e7a;
}

.rn-ds-recipient-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.rn-ds-recipient-card span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.rn-ds-recipient-card strong,
.rn-ds-recipient-card b,
.rn-ds-recipient-card small,
.rn-ds-recipient-card em {
    overflow-wrap: anywhere;
}

.rn-ds-recipient-card strong {
    font-size: .94rem;
}

.rn-ds-recipient-card b {
    color: #007e7a;
    font-size: .82rem;
}

.rn-ds-recipient-card small {
    color: #536984;
}

.rn-ds-recipient-card em {
    color: #334155;
    font-size: .8rem;
    font-style: normal;
    font-weight: 700;
}

.rn-ds-share-reason {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 900;
}

.rn-ds-share-reason textarea {
    width: 100%;
    min-height: 92px;
    padding: 12px;
    border: 1px solid rgba(112, 215, 211, .52);
    border-radius: 8px;
    background: #fff;
    color: #002247;
    font: inherit;
    font-weight: 500;
    resize: vertical;
}

.rn-ds-share-confirm {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 13px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff9f0;
    color: #713f12;
    font-size: .86rem;
    font-weight: 800;
}

.rn-ds-share-confirm input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.rn-ds-share-form > button {
    justify-self: start;
    min-width: 220px;
}

.rn-ds-share-empty {
    padding: 16px;
    border: 1px dashed rgba(112, 215, 211, .62);
    border-radius: 8px;
    background: #fbfffe;
}

.rn-ds-share-empty p {
    margin: 5px 0 12px;
    color: #536984;
}

.rn-ds-share-history {
    border-top: 1px solid rgba(112, 215, 211, .38);
    padding-top: 14px;
}

.rn-ds-share-history summary {
    color: #007e7a;
    font-weight: 950;
    cursor: pointer;
}

.rn-ds-share-history > div {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.rn-ds-share-history article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(112, 215, 211, .34);
    border-radius: 8px;
    background: #fff;
}

.rn-ds-share-history article > span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.rn-ds-share-history article > span:last-child {
    text-align: right;
}

.rn-ds-share-history small {
    color: #536984;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .rn-ds-share-head {
        display: grid;
    }

    .rn-ds-recipient-grid {
        grid-template-columns: 1fr;
    }

    .rn-ds-share-form > button,
    .rn-ds-share-head .rn-admin-soft-button {
        width: 100%;
    }

    .rn-ds-share-history article {
        grid-template-columns: 1fr;
    }

    .rn-ds-share-history article > span:last-child {
        text-align: left;
    }
}
/* Young People locator, expected moves and contact polish */
.rn-young-hub-card-expected {
  border-left-color: #0f766e;
}
.rn-young-hub-card-locator {
  border-left-color: #d18b35;
}
.rn-young-locator-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.rn-young-locator-form label {
  display: grid;
  gap: 6px;
  color: var(--rn-muted);
  font-weight: 900;
}
.rn-young-locator-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--rn-border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.rn-young-expected-card {
  grid-template-columns: 76px minmax(0, 1fr);
}
.rn-young-card-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rn-young-card-actions form,
.rn-young-card-actions button,
.rn-young-card-actions a {
  width: 100%;
}
.rn-young-contact-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0;
}
.rn-young-contact-flags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #cfe4e1;
  border-radius: 999px;
  background: #f7fffd;
  color: var(--rn-brand-dark);
  font-size: 12px;
  font-weight: 900;
}
.rn-young-family-list article {
  display: grid;
  gap: 6px;
  align-content: start;
}
.rn-young-family-list article > strong {
  font-size: 17px;
}
.rn-contact-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}
.rn-contact-card-actions .rn-section-save-status {
  grid-column: 1 / -1;
}
.rn-contact-card-actions button {
  width: 100%;
}
@media (max-width: 760px) {
  .rn-young-locator-form,
  .rn-young-card-actions,
  .rn-contact-card-actions {
    grid-template-columns: 1fr;
  }
}

/* Daily log location map action */
.rn-feed-geo-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.rn-feed-map-link {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(16, 129, 124, 0.32);
  border-radius: 999px;
  background: rgba(245, 255, 253, 0.92);
  color: #08736f;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
}

.rn-feed-map-link:hover {
  background: #ffffff;
  border-color: rgba(16, 129, 124, 0.58);
}

/* Young People section action rows - compact tablet buttons */
.rn-young-form .rn-section-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid rgba(16, 129, 124, 0.12);
}

.rn-young-form .rn-section-save-row .rn-admin-soft-button,
.rn-young-form .rn-section-save-row button {
  width: auto;
  min-width: 180px;
  max-width: 260px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.rn-young-form .rn-contact-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.rn-young-form .rn-contact-card-actions .rn-section-save-status {
  flex: 1 1 100%;
  order: 3;
  text-align: right;
}

.rn-young-form .rn-add-another-button {
  background: #ffffff;
}

@media (max-width: 760px) {
  .rn-young-form .rn-section-save-row,
  .rn-young-form .rn-contact-card-actions {
    justify-content: stretch;
  }

  .rn-young-form .rn-section-save-row .rn-admin-soft-button,
  .rn-young-form .rn-section-save-row button {
    width: 100%;
    max-width: none;
  }

  .rn-young-form .rn-contact-card-actions .rn-section-save-status {
    text-align: left;
  }
}

/* Young People profile dashboard refinement */
.rn-young-hub-grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.rn-young-hub-card {
  min-height:118px;
  padding:16px;
  border-radius:14px;
  align-content:start;
}

.rn-young-hub-card strong {
  font-size:30px;
}

.rn-young-module-groups {
  display:grid;
  gap:20px;
  margin-top:18px;
}

.rn-young-module-group {
  padding:14px;
  border:1px solid var(--rn-border);
  border-top:3px solid var(--rn-line-teal);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  box-shadow:0 14px 30px rgba(9, 38, 64, .05);
}

.rn-young-module-group:nth-of-type(2n) {
  border-top-color:var(--rn-line-amber);
}

.rn-young-module-group-head {
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 2px 12px;
}

.rn-young-module-group-head span {
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--rn-border-strong);
  border-radius:10px;
  background:#effdfb;
  color:var(--rn-brand-dark);
  font-weight:950;
}

.rn-young-module-group-head h3 {
  margin:0;
  color:var(--rn-text);
  font-size:18px;
}

.rn-young-module-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.rn-young-module-group .rn-young-module-grid {
  margin-top:0;
}

.rn-young-module-tile {
  min-height:154px;
  padding:15px;
  border:1px solid var(--rn-border);
  border-left:4px solid var(--rn-line-teal);
  border-radius:14px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:var(--rn-shadow);
  display:grid;
  align-content:stretch;
  gap:8px;
  grid-template-rows:auto 1fr auto auto;
}

.rn-young-module-tile:nth-child(4n+2) {
  border-left-color:var(--rn-line-amber);
}

.rn-young-module-tile strong {
  color:var(--rn-text);
  font-size:17px;
  line-height:1.25;
}

.rn-young-module-tile small {
  color:var(--rn-muted);
  font-weight:780;
  line-height:1.35;
}

.rn-young-module-tile em {
  color:var(--rn-muted);
  font-size:11px;
  font-style:normal;
  font-weight:950;
  text-transform:uppercase;
}

.rn-young-module-tile span {
  align-self:end;
  justify-self:end;
  min-width:74px;
  padding:8px 14px;
  border:1px solid var(--rn-brand);
  border-radius:999px;
  background:var(--rn-brand);
  color:#fff;
  font-size:12px;
  font-weight:950;
  text-align:center;
  box-shadow:0 10px 22px rgba(0, 118, 108, .18);
}

.rn-young-module-tile:hover span,
.rn-young-module-tile:focus span {
  background:var(--rn-brand-dark);
}

.rn-young-module-tile.is-disabled {
  opacity:.72;
  background:#fbfcfc;
}

.rn-young-module-tile.is-disabled span {
  border-color:#cbd5e1;
  background:#e5edf1;
  color:#334155;
  box-shadow:none;
}

.rn-young-module-tile.is-planned {
  border-left-color:var(--rn-line-amber);
  background:linear-gradient(180deg,#fffdf9 0%,#ffffff 60%);
}

.rn-young-planned-module-body {
  display:grid;
  gap:12px;
  border:1px solid var(--rn-border);
  border-left:4px solid var(--rn-line-amber);
  border-radius:14px;
  background:#fffdf9;
  padding:18px;
}

.rn-young-planned-module-body strong {
  color:var(--rn-text);
  font-size:20px;
}

.rn-young-planned-module-body p {
  margin:0;
  color:var(--rn-muted);
  font-weight:760;
  line-height:1.55;
}

.rn-young-avatar a {
  display:block;
  width:100%;
  height:100%;
  color:inherit;
  text-decoration:none;
}

.rn-young-avatar a:focus {
  outline:3px solid rgba(15,118,110,.22);
  outline-offset:3px;
}

.rn-young-photo-modal .rn-media-modal-head a {
  display:none;
}

.rn-young-profile-dashboard .rn-row-actions {
  align-items:center;
}

.rn-young-family-list article {
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
}

.rn-young-family-list article > p,
.rn-young-family-list article > .rn-young-contact-flags,
.rn-young-family-list article > .rn-map-link {
  grid-column:1 / -1;
}

.rn-young-family-list article > strong {
  font-size:17px;
}

.rn-young-contact-flags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.rn-young-contact-flags span {
  display:inline-flex;
  padding:4px 8px;
  border:1px solid #cfe4e1;
  border-radius:999px;
  background:#f7fcfb;
  color:var(--rn-brand-dark);
  font-size:12px;
  font-weight:900;
}

@media (max-width:1100px) {
  .rn-young-hub-grid,
  .rn-young-module-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:650px) {
  .rn-young-hub-grid,
  .rn-young-module-grid,
  .rn-young-profile-layout,
  .rn-young-reference-strip {
    grid-template-columns:1fr;
  }

  .rn-young-hub-card,
  .rn-young-module-tile {
    min-height:auto;
  }
}

/* Young People module tile and activity refinements */
.rn-young-profile-head-rich {
  grid-template-columns:124px minmax(0,1fr) auto;
}

.rn-young-avatar {
  width:124px;
  height:124px;
  border-radius:20px;
}

.rn-young-module-tile {
  position:relative;
  padding-bottom:52px;
}

.rn-young-module-tile span {
  position:absolute;
  right:14px;
  bottom:14px;
  width:auto;
}

.rn-young-module-tile em {
  display:block;
  padding-right:92px;
}

.rn-young-module-tile span {
  min-width:78px;
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.rn-young-module-tile.is-planned span {
  border-color:var(--rn-brand);
  background:#ffffff;
  color:var(--rn-brand-dark);
}

.rn-young-activity-page .rn-young-feed-entry,
.rn-young-activity-page .rn-young-history-list article {
  padding:9px 10px;
}

.rn-young-activity-page .rn-young-feed-entry strong,
.rn-young-activity-page .rn-young-history-list strong {
  font-size:12px;
  line-height:1.3;
}

.rn-young-activity-page .rn-young-feed-entry span,
.rn-young-activity-page .rn-young-feed-entry p,
.rn-young-activity-page .rn-young-history-list span,
.rn-young-activity-page .rn-young-history-list small {
  font-size:12px;
  line-height:1.35;
}

.rn-young-activity-search {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:end;
  margin:0 0 16px;
}

.rn-young-activity-search label {
  display:grid;
  gap:6px;
  color:var(--rn-muted);
  font-weight:850;
}

.rn-young-activity-search input {
  width:100%;
  min-height:42px;
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:9px 11px;
}

.rn-young-panel-search-link {
  margin-top:12px;
  width:max-content;
}

.rn-young-module-detail-page .rn-row-actions {
  align-items:center;
}

@media(max-width:700px) {
  .rn-young-profile-head-rich {
    grid-template-columns:96px minmax(0,1fr);
  }
  .rn-young-avatar {
    width:96px;
    height:96px;
  }
  .rn-young-activity-search {
    grid-template-columns:1fr;
  }
}

/* Young People section view header fix */
.rn-young-module-detail-page {
  padding-top:22px;
}

.rn-young-module-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:start;
  padding-bottom:16px;
  margin-bottom:18px;
  border-bottom:1px solid var(--rn-border);
}

.rn-young-module-title {
  display:grid;
  gap:7px;
  min-width:0;
}

.rn-young-module-title .rn-feed-pill {
  width:max-content;
  max-width:100%;
}

.rn-young-module-title h2 {
  margin:0;
  color:var(--rn-brand-dark);
  font-size:26px;
  line-height:1.15;
}

.rn-young-module-title h2::after {
  content:'';
  display:block;
  width:38px;
  height:2px;
  margin-top:8px;
  background:var(--rn-line-amber);
  border-radius:999px;
}

.rn-young-module-title p {
  margin:0;
  color:var(--rn-muted);
  font-weight:900;
}

.rn-young-module-actions {
  justify-content:flex-end;
  align-items:center;
  padding-top:2px;
}

.rn-young-module-detail-grid {
  margin-top:0;
}

@media(max-width:760px) {
  .rn-young-module-head {
    grid-template-columns:1fr;
  }
  .rn-young-module-actions {
    justify-content:flex-start;
  }
}

/* =========================================================
   INCIDENT CENTRE
========================================================= */

.rn-incident-stage {
  max-width:1280px;
  margin:0 auto;
  padding:28px 20px 70px;
}

.rn-incident-hero,
.rn-incident-child-head {
  border-top:4px solid var(--rn-line-teal);
}

.rn-incident-disabled {
  border-top:4px solid var(--rn-line-amber);
}

.rn-incident-open-card {
  max-width:none;
}

.rn-incident-form {
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

.rn-incident-form .rn-property-form-full,
.rn-incident-form button {
  grid-column:1 / -1;
}

.rn-incident-layout {
  margin-top:16px;
}

.rn-incident-left-panel,
.rn-incident-detail-panel {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.rn-incident-summary-card {
  border-top:4px solid var(--rn-line-amber);
}

.rn-incident-meta {
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:0 0 16px;
}

.rn-incident-meta div {
  min-height:80px;
}

.rn-incident-summary-text {
  background:#fbfffe;
  border:1px solid var(--rn-border);
  border-radius:14px;
  color:var(--rn-text);
  font-weight:760;
  line-height:1.55;
  margin:0;
  padding:14px 16px;
}

.rn-incident-section {
  margin-top:0;
  padding-top:24px;
}

.rn-incident-live-tools {
  align-items:flex-start;
  gap:14px;
  margin-bottom:20px;
  padding:4px 0 16px;
}

.rn-incident-update-section {
  background:#fff;
  border-top:4px solid var(--rn-line-teal);
  padding-top:34px;
}

.rn-incident-live-tools .rn-feed-pill{
  display:inline-flex;
  margin-bottom:10px;
}

.rn-incident-live-tools h3{
  line-height:1.18;
  margin:0;
}

.rn-incident-update-section textarea {
  min-height:96px;
}

.rn-incident-update-section .rn-missing-compact-form {
  background:#fbfffe;
  border-color:#c8e5e1;
  gap:14px;
}

.rn-incident-participant-grid {
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
}

.rn-incident-participant-grid article {
  align-items:center;
  background:#fff;
  border:1px solid var(--rn-border);
  border-radius:14px;
  display:grid;
  gap:3px 12px;
  grid-template-columns:64px minmax(0,1fr);
  padding:12px;
}

.rn-incident-participant-grid .rn-young-snapshot-photo {
  grid-row:1 / span 3;
  height:64px;
  width:64px;
}

.rn-incident-participant-grid strong {
  color:var(--rn-brand-dark);
  font-size:16px;
  line-height:1.2;
}

.rn-incident-participant-grid small {
  color:var(--rn-muted);
  font-weight:850;
  white-space:normal;
}

.rn-incident-participant-grid em {
  background:#f1fbf9;
  border:1px solid var(--rn-line-teal);
  border-radius:999px;
  color:var(--rn-brand-dark);
  font-size:11px;
  font-style:normal;
  font-weight:950;
  grid-column:2;
  justify-self:start;
  padding:4px 8px;
}

.rn-incident-participant-form {
  margin-top:12px;
}

.rn-incident-manager-section {
  border-top:4px solid var(--rn-line-amber);
  background:linear-gradient(180deg,#ffffff 0%,#fffdf8 100%);
  padding-top:34px;
}

.rn-incident-detail-panel .rn-missing-timeline-section {
  order:90;
}

.rn-incident-manager-head {
  align-items:start;
  display:grid;
  gap:12px;
  grid-template-columns:minmax(0,1fr);
  margin-bottom:14px;
}

.rn-incident-manager-head h3 {
  margin:8px 0 0;
}

.rn-incident-manager-head .rn-profile-muted {
  margin:0;
  max-width:820px;
  font-size:13px;
  line-height:1.45;
}

.rn-incident-manager-section .rn-missing-review-form {
  background:#fbfffe;
  border-color:#c8e5e1;
  gap:14px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.rn-incident-manager-section .rn-property-form-full {
  grid-column:1 / -1;
}

.rn-incident-manager-section .rn-property-form-full textarea {
  min-height:92px;
}

.rn-incident-manager-section button[type="submit"] {
  grid-column:1 / -1;
  justify-self:end;
  max-width:320px;
  width:100%;
}

.rn-incident-timeline article small {
  display:block;
  margin-top:4px;
}

@media(max-width:980px) {
  .rn-incident-meta {
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:760px) {
  .rn-incident-layout,
  .rn-incident-meta {
    grid-template-columns:1fr;
  }

  .rn-incident-manager-section .rn-missing-review-form {
    grid-template-columns:1fr;
  }

  .rn-incident-participant-grid article {
    grid-template-columns:56px minmax(0,1fr);
  }

  .rn-incident-participant-grid em {
    width:max-content;
  }
}

/* Admin tablet dashboard and hashtag management */
.rn-admin-tablet-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  align-items:stretch;
}

.rn-admin-tablet-card {
  position:relative;
  display:flex;
  min-height:168px;
  flex-direction:column;
  gap:10px;
  padding:18px;
  border:1px solid var(--rn-border);
  border-top:4px solid var(--rn-brand);
  border-radius:18px;
  background:linear-gradient(145deg, #ffffff 0%, #f8fffe 100%);
  color:var(--rn-brand-dark);
  text-decoration:none;
  box-shadow:0 18px 36px rgba(6, 63, 73, .08);
}

.rn-admin-tablet-card:hover {
  transform:translateY(-1px);
  box-shadow:0 22px 40px rgba(6, 63, 73, .11);
}

.rn-admin-tablet-card strong {
  display:block;
  font-size:28px;
  line-height:1.05;
  color:var(--rn-brand-dark);
}

.rn-admin-tablet-card small {
  display:block;
  color:var(--rn-muted);
  font-weight:800;
  line-height:1.35;
  padding-right:8px;
}

.rn-admin-tablet-card em {
  align-self:flex-end;
  margin-top:auto;
  padding:9px 18px;
  border:1px solid var(--rn-border-strong);
  border-radius:999px;
  color:var(--rn-brand-ink);
  background:#fff;
  font-style:normal;
  font-weight:900;
}

.rn-admin-tablet-kicker {
  width:max-content;
  max-width:100%;
  padding:5px 12px;
  border-radius:999px;
  background:var(--rn-brand-soft);
  color:var(--rn-brand-ink);
  font-size:12px;
  font-weight:1000;
}

.rn-admin-tablet-card-warm {
  border-top-color:var(--rn-line-amber);
  background:linear-gradient(145deg, #ffffff 0%, #fffaf2 100%);
}

.rn-admin-tablet-card-foundation {
  border-top-color:var(--rn-brand-dark);
  background:linear-gradient(145deg, #ffffff 0%, #f5fbfa 100%);
}

.rn-admin-module-switch-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin:18px 0 24px;
}

.rn-admin-module-switch-card {
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid var(--rn-border);
  border-left:4px solid #cbdde1;
  border-radius:16px;
  background:#fff;
}

.rn-admin-module-switch-card.is-on {
  border-left-color:var(--rn-brand);
  background:#fbfffe;
}

.rn-admin-module-switch-card strong,
.rn-admin-module-switch-card small {
  display:block;
}

.rn-admin-module-switch-card small {
  margin-top:5px;
  color:var(--rn-muted);
  font-weight:800;
  line-height:1.35;
}

.rn-admin-module-switch-card form {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:10px;
  align-items:center;
}

.rn-admin-module-switch-card select {
  min-height:42px;
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:0 12px;
  font-weight:900;
  color:var(--rn-brand-dark);
  background:#fff;
}

.rn-hashtag-admin-panel .rn-status {
  align-self:start;
}

.rn-status-on,
.rn-status-off {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  font-weight:1000;
}

.rn-status-on {
  border:1px solid var(--rn-border-strong);
  color:var(--rn-brand-ink);
  background:var(--rn-brand-soft);
}

.rn-status-off {
  border:1px solid #ffd39b;
  color:#8a4b00;
  background:#fff7eb;
}

.rn-hashtag-admin-note {
  margin-top:18px;
  padding:14px 16px;
  border:1px solid #ffd39b;
  border-radius:14px;
  background:#fffaf2;
}

.rn-hashtag-lifecycle-panel {
  margin-top:20px;
  padding:18px;
  border:1px solid var(--rn-border);
  border-radius:16px;
  background:#fff;
}

.rn-hashtag-lifecycle-panel h3 {
  margin:0 0 8px;
  color:var(--rn-brand-dark);
}

.rn-hashtag-trigger-list {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.rn-hashtag-trigger-list span {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border:1px solid var(--rn-border);
  border-radius:999px;
  background:#f8fffe;
  color:var(--rn-brand-dark);
  font-weight:900;
}

.rn-hashtag-trigger-list small {
  color:var(--rn-muted);
  font-weight:800;
}

@media(max-width:1180px) {
  .rn-admin-tablet-grid,
  .rn-admin-module-switch-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:720px) {
  .rn-admin-tablet-grid,
  .rn-admin-module-switch-grid {
    grid-template-columns:1fr;
  }
  .rn-admin-tablet-card {
    min-height:145px;
  }
  .rn-admin-module-switch-card form {
    grid-template-columns:1fr;
  }
}

.rn-hashtag-admin-form {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin:16px 0 18px;
  padding:16px;
  border:1px solid var(--rn-border);
  border-radius:16px;
  background:#fff;
}

.rn-hashtag-admin-form label,
.rn-hashtag-inline-form label {
  display:grid;
  gap:7px;
  color:var(--rn-muted);
  font-weight:900;
  font-size:13px;
}

.rn-hashtag-admin-form input,
.rn-hashtag-admin-form select,
.rn-hashtag-admin-form textarea {
  width:100%;
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:11px 12px;
  font:inherit;
  color:var(--rn-brand-dark);
  background:#fff;
}

.rn-hashtag-form-wide {
  grid-column:1 / -1;
}

.rn-hashtag-admin-form .rn-checkbox-row {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  color:var(--rn-brand-dark);
}

.rn-hashtag-admin-list {
  display:grid;
  gap:12px;
  margin-top:16px;
}

.rn-hashtag-admin-row {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:16px;
  align-items:center;
  padding:14px 16px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#fff;
}

.rn-hashtag-admin-row strong,
.rn-hashtag-admin-row span,
.rn-hashtag-admin-row small {
  display:block;
}

.rn-hashtag-admin-row strong {
  color:var(--rn-brand-dark);
  font-size:17px;
}

.rn-hashtag-admin-row span,
.rn-hashtag-admin-row small {
  color:var(--rn-muted);
  font-weight:800;
  line-height:1.35;
}

.rn-hashtag-inline-form {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.rn-admin-soft-button-primary {
  background:var(--rn-brand-dark);
  color:#fff;
}

@media (max-width: 900px) {
  .rn-hashtag-admin-form,
  .rn-hashtag-admin-row {
    grid-template-columns:1fr;
  }
  .rn-hashtag-inline-form {
    justify-content:stretch;
  }
  .rn-hashtag-inline-form .rn-admin-soft-button,
  .rn-hashtag-admin-row .rn-admin-soft-button {
    width:100%;
  }
}

.rn-hashtag-lifecycle-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:16px;
}

.rn-hashtag-lifecycle-card {
  padding:14px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#fff;
}

.rn-hashtag-lifecycle-card h4 {
  margin:0 0 10px;
  color:var(--rn-brand-dark);
  font-size:16px;
}

.rn-hashtag-lifecycle-rows {
  display:grid;
  gap:8px;
}

.rn-hashtag-lifecycle-rows div {
  display:grid;
  grid-template-columns:150px 70px minmax(0, 1fr);
  gap:10px;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--rn-border);
  border-radius:10px;
  background:#fbfefe;
}

.rn-hashtag-lifecycle-rows strong {
  color:var(--rn-brand-dark);
  font-size:14px;
}

.rn-hashtag-lifecycle-rows span {
  width:max-content;
  padding:4px 8px;
  border-radius:999px;
  background:#eaf8f6;
  color:var(--rn-teal-deep);
  font-size:12px;
  font-weight:900;
}

.rn-hashtag-lifecycle-rows small {
  color:var(--rn-muted);
  font-weight:800;
  line-height:1.3;
}

@media (max-width: 900px) {
  .rn-hashtag-lifecycle-grid,
  .rn-hashtag-lifecycle-rows div {
    grid-template-columns:1fr;
  }
}

.rn-hashtag-function-nav {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 4px;
}

.rn-hashtag-function-nav a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border:1px solid var(--rn-border-strong);
  border-radius:999px;
  background:#fff;
  color:var(--rn-brand-dark);
  font-weight:900;
  text-decoration:none;
}

.rn-hashtag-function-nav a.active,
.rn-hashtag-function-nav a:hover {
  background:var(--rn-brand-dark);
  color:#fff;
  border-color:var(--rn-brand-dark);
}

.rn-hashtag-overview-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-top:16px;
}

.rn-hashtag-overview-grid article {
  min-height:118px;
  padding:14px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#fff;
}

.rn-hashtag-overview-grid strong,
.rn-hashtag-overview-grid span {
  display:block;
}

.rn-hashtag-overview-grid strong {
  color:var(--rn-brand-dark);
  font-size:16px;
  margin-bottom:8px;
}

.rn-hashtag-overview-grid span {
  color:var(--rn-muted);
  font-weight:800;
  line-height:1.35;
}

@media (max-width: 1000px) {
  .rn-hashtag-overview-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rn-hashtag-function-nav a,
  .rn-hashtag-overview-grid {
    width:100%;
  }
  .rn-hashtag-overview-grid {
    grid-template-columns:1fr;
  }
}

.rn-sidebar-client-logo {
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid color-mix(in srgb, var(--rn-border) 70%, transparent);
  display:grid;
  place-items:center;
  max-width:100%;
  overflow:hidden;
}

.rn-sidebar-client-logo img {
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:124px!important;
  max-height:52px!important;
  object-fit:contain!important;
  margin:0 auto!important;
}
/* Admin sidebar attention colour */
.rn-sidebar-nav a.rn-sidebar-admin-link {
  border-color:#f2c4c4!important;
  background:#fff7f7!important;
  color:#7f1d1d!important;
}

.rn-sidebar-nav a.rn-sidebar-admin-link::before {
  background:#dc2626!important;
}

.rn-sidebar-nav a.rn-sidebar-admin-link:hover,
.rn-sidebar-nav a.rn-sidebar-admin-link.active {
  border-color:#ef9f9f!important;
  background:#feecec!important;
  color:#7f1d1d!important;
}

.rn-sidebar-message-link {
  display:flex!important;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}

.rn-sidebar-message-link .rn-sidebar-badge {
  margin-left:auto;
}

.rn-sidebar-badge {
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--rn-brand-dark);
  color:#fff;
  font-size:12px;
  font-weight:900;
}

.rn-topbar-message {
  position:relative;
  width:42px;
  height:42px;
  margin-left:auto;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}

.rn-topbar-message + .rn-notification-bell {
  margin-left:0;
}

.rn-topbar-message-icon {
  position:relative;
  width:19px;
  height:14px;
  border:2px solid var(--rn-brand);
  border-radius:4px;
}

.rn-topbar-message-icon::before,
.rn-topbar-message-icon::after {
  content:"";
  position:absolute;
  top:1px;
  width:11px;
  height:2px;
  background:var(--rn-brand);
}

.rn-topbar-message-icon::before {
  left:1px;
  transform:rotate(34deg);
  transform-origin:left center;
}

.rn-topbar-message-icon::after {
  right:1px;
  transform:rotate(-34deg);
  transform-origin:right center;
}

.rn-topbar-message strong {
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:20px;
  height:20px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  background:var(--rn-brand-dark);
  color:#fff;
  font-size:11px;
  line-height:1;
}

.rn-topbar-message.is-unread::after {
  content:"";
  position:absolute;
  top:7px;
  right:7px;
  width:9px;
  height:9px;
  border:2px solid #fff;
  border-radius:999px;
  background:#dc2626;
}

.rn-message-card-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.rn-message-body{margin-top:.75rem;line-height:1.55}.rn-message-action-wrap{display:block;margin:1rem 0 .35rem}.rn-message-action-link{display:inline-flex;align-items:center;justify-content:center;white-space:normal;text-align:center}.rn-message-hero{min-height:auto;margin-bottom:14px}.rn-message-nav{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 22px}.rn-message-nav>a{min-height:104px}.rn-message-nav>a.active{box-shadow:0 0 0 2px #087d78,0 12px 24px rgba(0,64,76,.09);transform:translateY(-1px)}@media(max-width:900px){.rn-message-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.rn-message-nav{grid-template-columns:1fr}.rn-message-nav>a{min-height:88px}}
.rn-message-directory-grid{gap:14px}.rn-message-directory-card{min-height:118px;padding:16px;border:1px solid #d2e5e3;border-left:4px solid #278ba8;border-radius:14px;background:linear-gradient(145deg,#fff,#f8fcfc);box-shadow:0 8px 20px rgba(0,54,67,.045)}.rn-message-directory-main{min-width:0}.rn-message-directory-main strong{color:#062c3f;font-size:1rem}.rn-message-directory-main span{color:#587094}.rn-message-directory-actions .rn-btn,.rn-message-card-actions .rn-btn{min-height:40px;padding:8px 13px;border:1px solid #087d78;border-radius:10px;background:#fff;color:#075e62;box-shadow:none}.rn-message-directory-actions .rn-btn:hover,.rn-message-card-actions .rn-btn:hover{background:#eaf7f6}.rn-message-compose-form{gap:16px}.rn-message-compose-form input[type=file]{min-height:54px;padding:7px;border:1px solid #bfd9d7;border-radius:11px;background:#f8fcfc;color:#587094}.rn-message-compose-form input[type=file]::file-selector-button{min-height:38px;margin-right:12px;padding:8px 14px;border:1px solid #087d78;border-radius:9px;background:#fff;color:#075e62;font:inherit;font-weight:850;cursor:pointer}.rn-message-submit-row{display:flex;justify-content:flex-end;padding-top:4px}.rn-message-submit-row button{width:auto!important;min-width:170px!important;min-height:44px!important;padding:10px 20px!important;border-radius:10px!important}.rn-message-section-head{padding-bottom:12px;border-bottom:1px solid #dcebea}.rn-message-card{border-left:4px solid #278ba8;border-radius:14px;background:linear-gradient(145deg,#fff,#fbfdfd);box-shadow:0 8px 20px rgba(0,54,67,.045)}@media(max-width:700px){.rn-message-directory-card{grid-template-columns:auto minmax(0,1fr)}.rn-message-directory-actions{grid-column:2;justify-content:flex-start}.rn-message-submit-row button{width:100%!important}.rn-message-compose-form input[type=file]{width:100%;box-sizing:border-box}}

.rn-message-section-head,
.rn-section-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.rn-message-section-head h2,
.rn-section-heading h2 {
  margin:0;
}

.rn-message-section-head .rn-btn,
.rn-section-heading .rn-btn {
  width:auto;
  min-width:96px;
  flex:0 0 auto;
}

.rn-message-section-head + .rn-profile-muted,
.rn-section-heading + .rn-profile-muted {
  margin-top:8px;
}

.rn-message-card {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:14px;
  min-height:112px;
  padding:16px 18px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#fff;
  color:var(--rn-text);
  text-decoration:none;
  box-shadow:0 16px 32px rgba(15, 23, 42, .06);
}

.rn-message-card.unread {
  border-color:var(--rn-teal);
  background:#f3fbfa;
}

.rn-message-archive-card {
  border-color:#f1c27d;
  background:#fffaf2;
}

.rn-message-card h3 {
  margin:10px 0 8px;
  color:var(--rn-brand-dark);
  font-size:18px;
}

.rn-message-card-actions,
.rn-message-thread-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.rn-message-card-actions form,
.rn-message-thread-actions form {
  margin:0;
}

.rn-message-thread-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid var(--rn-border);
}

.rn-message-thread-head h2 {
  margin:10px 0 0;
}

.rn-message-archive-notice {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px 0 16px;
  padding:12px 14px;
  border:1px solid #f1c27d;
  border-radius:14px;
  background:#fffaf2;
  color:var(--rn-brand-dark);
  font-weight:900;
}

.rn-message-archive-notice span {
  color:var(--rn-muted);
  font-size:13px;
  font-weight:850;
}

.rn-message-card p,
.rn-message-card small {
  color:var(--rn-muted);
  font-weight:800;
}

.rn-message-directory-grid {
  display:grid;
  gap:14px;
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.rn-message-directory-card {
  align-items:center;
  background:#ffffff;
  border:1px solid var(--rn-border);
  border-radius:14px;
  display:grid;
  gap:12px;
  grid-template-columns:58px 1fr auto;
  min-width:0;
  padding:12px;
}

.rn-message-directory-card img {
  max-width:180px;
  object-fit:cover;
}

.rn-message-directory-photo-wrap {
  position:relative;
}

.rn-message-directory-photo-wrap[open] {
  z-index:20;
}

.rn-message-directory-photo {
  align-items:center;
  background:#eefbf8;
  border:1px solid #bde4df;
  border-radius:14px;
  box-sizing:border-box;
  cursor:pointer;
  display:flex;
  height:58px;
  justify-content:center;
  list-style:none;
  max-height:58px;
  max-width:58px;
  overflow:hidden;
  width:58px;
}

.rn-message-directory-photo::-webkit-details-marker {
  display:none;
}

.rn-message-directory-photo img {
  display:block;
  height:58px !important;
  max-height:58px !important;
  max-width:58px !important;
  object-fit:cover;
  width:58px !important;
}

.rn-message-directory-photo span {
  color:var(--rn-brand);
  font-size:22px;
  font-weight:950;
}

.rn-message-directory-main {
  display:grid;
  gap:3px;
  min-width:0;
}

.rn-message-directory-main strong {
  color:var(--rn-navy);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rn-message-directory-main span,
.rn-message-directory-main small {
  color:var(--rn-muted);
  font-weight:850;
}

.rn-message-directory-actions {
  display:flex;
  justify-content:flex-end;
}

.rn-message-directory-photo-pop {
  background:#ffffff;
  border:1px solid var(--rn-border);
  border-radius:16px;
  box-shadow:0 22px 50px rgba(7,31,58,.18);
  display:grid;
  gap:8px;
  left:0;
  padding:10px;
  position:absolute;
  top:66px;
  width:180px;
}

.rn-message-directory-photo-pop img {
  border-radius:12px;
  display:block;
  height:180px !important;
  object-fit:cover;
  width:180px !important;
}

.rn-message-directory-photo-pop small {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:900;
  line-height:1.25;
}

.rn-message-list {
  display:grid;
  gap:12px;
  margin:18px 0;
}

.rn-message-bubble {
  max-width:76%;
  padding:14px 16px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#fff;
}

.rn-message-bubble.mine {
  margin-left:auto;
  background:#f0faf8;
  border-color:var(--rn-teal);
}

.rn-message-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  color:var(--rn-muted);
  font-size:12px;
  font-weight:900;
}

.rn-message-locked {
  padding:18px;
  border:1px solid #fed7aa;
  border-radius:14px;
  background:#fff7ed;
}

.rn-message-reply {
  margin-top:18px;
}

.rn-message-attachments {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.rn-message-attachments a {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--rn-border);
  border-radius:999px;
  background:#fff;
  color:var(--rn-brand-dark);
  font-size:13px;
  font-weight:900;
  text-decoration:none;
}

.rn-message-attachments span {
  color:var(--rn-muted);
  font-size:11px;
}

@media (max-width: 800px) {
  .rn-message-card-grid {
    grid-template-columns:1fr;
  }

  .rn-message-directory-grid {
    grid-template-columns:1fr;
  }

  .rn-message-directory-card {
    grid-template-columns:54px 1fr;
  }

  .rn-message-directory-actions {
    grid-column:1 / -1;
    justify-content:stretch;
  }

  .rn-message-directory-actions .rn-btn,
  .rn-message-directory-actions form,
  .rn-message-directory-actions button {
    width:100%;
  }

  .rn-message-bubble {
    max-width:100%;
  }

  .rn-message-card,
  .rn-message-thread-head {
    grid-template-columns:1fr;
    display:grid;
  }

  .rn-message-card-actions,
  .rn-message-thread-actions {
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .rn-message-section-head,
  .rn-section-heading {
    align-items:stretch;
    flex-direction:column;
  }

  .rn-message-section-head .rn-btn,
  .rn-section-heading .rn-btn {
    width:100%;
  }
}

.rn-page.rn-rota-page {
  box-sizing:border-box;
  width:min(1240px, calc(100% - 36px));
  margin:28px auto 40px;
  padding:0;
}

.rn-rota-hero {
  align-items:center;
  min-height:108px;
  margin-bottom:18px;
  padding:22px 26px;
}

.rn-rota-hero h1 {
  margin:0 0 8px;
}

.rn-rota-hero p {
  max-width:680px;
}

.rn-dashboard-module-strip {
  display:grid;
  gap:14px;
  grid-template-columns:minmax(0, 1fr);
  margin:0 auto 18px;
  max-width:720px;
  width:100%;
}

.rn-dashboard-module-tile {
  background:#fff;
  border:1px solid var(--rn-border);
  border-left:5px solid var(--rn-brand-dark);
  border-radius:14px;
  box-shadow:0 14px 34px rgba(12, 44, 60, .07);
  color:var(--rn-navy);
  display:grid;
  gap:6px;
  padding:16px 18px;
  text-decoration:none;
}

.rn-dashboard-module-tile span {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.rn-dashboard-module-tile strong {
  color:var(--rn-brand-dark);
  font-size:22px;
}

.rn-dashboard-module-tile small {
  color:var(--rn-muted);
  font-weight:800;
}

.rn-rota-datebar {
  align-items:end;
  display:flex;
  gap:12px;
  margin:0 0 18px;
  width:100%;
}

.rn-rota-datebar label {
  display:grid;
  gap:6px;
  flex:0 0 220px;
  min-width:0;
}

.rn-rota-datebar .rn-btn {
  flex:1 1 auto;
  min-width:180px;
}

.rn-rota-datebar span,
.rn-rota-form span,
.rn-rota-period-form span {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:900;
}

.rn-rota-walkthrough {
  background:rgba(255,255,255,.82);
  border:1px solid #d6ebe7;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(12,44,60,.045);
  margin:0 0 18px;
  overflow:hidden;
}

.rn-rota-walkthrough summary {
  align-items:center;
  cursor:pointer;
  display:flex;
  gap:12px;
  justify-content:space-between;
  list-style:none;
  padding:13px 16px;
}

.rn-rota-walkthrough summary::-webkit-details-marker {
  display:none;
}

.rn-rota-walkthrough summary::after {
  background:#eefbf8;
  border:1px solid #bde4df;
  border-radius:999px;
  color:var(--rn-brand-dark);
  content:"+";
  display:grid;
  flex:0 0 28px;
  font-weight:950;
  height:28px;
  place-items:center;
  width:28px;
}

.rn-rota-walkthrough[open] summary::after {
  content:"-";
}

.rn-rota-walkthrough summary span {
  color:var(--rn-brand-dark);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-rota-walkthrough summary strong {
  color:#071f3a;
  flex:1 1 auto;
  font-size:15px;
  min-width:0;
}

.rn-rota-walkthrough-body {
  border-top:1px solid #d6ebe7;
  display:grid;
  gap:12px;
  padding:14px 16px 16px;
}

.rn-rota-walkthrough-body p {
  color:var(--rn-muted);
  font-weight:850;
  line-height:1.45;
  margin:0;
}

.rn-rota-walkthrough-grid {
  display:grid;
  gap:10px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.rn-rota-walkthrough-grid article {
  background:#f8fffd;
  border:1px solid #d6ebe7;
  border-left:4px solid #72d6cf;
  border-radius:12px;
  display:grid;
  gap:4px;
  padding:11px 12px;
}

.rn-rota-walkthrough-grid strong {
  color:#071f3a;
  font-size:14px;
}

.rn-rota-walkthrough-grid span {
  color:var(--rn-muted);
  font-size:13px;
  font-weight:850;
  line-height:1.4;
}

.rn-rota-command-centre {
  background:linear-gradient(135deg,#ffffff 0%,#f5fffc 100%);
  border:1px solid var(--rn-border);
  border-radius:18px;
  box-shadow:0 18px 44px rgba(12,44,60,.08);
  display:grid;
  gap:18px;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  margin:0 0 18px;
  padding:20px;
}

.rn-rota-command-centre-xl {
  border-top:4px solid #72d6cf;
  grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);
  padding:18px;
}

.rn-rota-command-status {
  align-content:start;
  display:grid;
  gap:10px;
  min-width:0;
}

.rn-rota-command-status > span {
  color:var(--rn-brand-dark);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-rota-command-status h2 {
  color:#071f3a;
  font-size:28px;
  line-height:1.12;
  margin:0;
}

.rn-rota-command-status p {
  color:var(--rn-muted);
  font-weight:850;
  line-height:1.5;
  margin:0;
  max-width:78ch;
}

.rn-rota-status-strip {
  display:grid;
  gap:8px;
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.rn-rota-status-strip strong {
  background:#eefbf8;
  border:1px solid #bde4df;
  border-radius:12px;
  color:#075b57;
  font-size:12px;
  line-height:1.25;
  min-width:0;
  padding:9px 10px;
  text-align:left;
}

.rn-rota-radar-grid {
  display:grid;
  gap:10px;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:4px;
}

.rn-rota-radar-card {
  background:#fff;
  border:1px solid #d6ebe7;
  border-top:4px solid #15803d;
  border-radius:14px;
  box-shadow:0 12px 28px rgba(12,44,60,.05);
  display:grid;
  gap:5px;
  min-width:0;
  padding:12px;
}

.rn-rota-radar-card.rn-rota-rag-amber {
  border-top-color:#d99a3d;
}

.rn-rota-radar-card.rn-rota-rag-red {
  border-top-color:#dc2626;
}

.rn-rota-radar-card span {
  color:var(--rn-muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-rota-radar-card strong {
  color:#071f3a;
  font-size:24px;
  line-height:1;
}

.rn-rota-radar-card small {
  color:var(--rn-muted);
  font-weight:850;
  line-height:1.35;
}

.rn-rota-action-panel {
  background:#fff;
  border:1px solid #d6ebe7;
  border-radius:16px;
  align-content:start;
  display:grid;
  gap:10px;
  max-height:520px;
  overflow:auto;
  padding:14px;
}

.rn-section-heading-tight {
  align-items:start;
  gap:12px;
  grid-template-columns:minmax(0,1fr) auto;
  margin-bottom:2px;
}

.rn-section-heading-tight p {
  max-width:34ch;
}

.rn-section-heading-tight .rn-btn {
  min-height:44px;
  padding:10px 15px;
  white-space:nowrap;
}

.rn-section-heading-tight h3 {
  color:#071f3a;
  font-size:18px;
  margin:0;
}

.rn-rota-action {
  border:1px solid #dce9e7;
  border-left:4px solid #15803d;
  border-radius:10px;
  color:#071f3a;
  display:grid;
  gap:3px;
  padding:9px 11px;
  text-decoration:none;
}

.rn-rota-action strong {
  font-size:12px;
  text-transform:uppercase;
}

.rn-rota-action span {
  color:var(--rn-muted);
  font-size:13px;
  font-weight:850;
  line-height:1.35;
}

.rn-rota-action-amber {
  border-left-color:#d97706;
}

.rn-rota-action-red {
  border-left-color:#dc2626;
}

.rn-rota-action-green {
  border-left-color:#15803d;
}

.rn-rota-intel-grid {
  display:grid;
  gap:18px;
  grid-template-columns:1fr 1fr;
  margin:0 0 18px;
}

.rn-rota-whatif-card {
  border-top:4px solid #72d6cf;
}

.rn-rota-whatif-list {
  display:grid;
  gap:10px;
}

.rn-rota-whatif-item {
  background:#f8fffd;
  border:1px solid #d6ebe7;
  border-left:5px solid #15803d;
  border-radius:14px;
  display:grid;
  gap:4px;
  padding:12px 14px;
}

.rn-rota-whatif-item.rn-rota-rag-amber {
  border-left-color:#d99a3d;
}

.rn-rota-whatif-item.rn-rota-rag-red {
  border-left-color:#dc2626;
}

.rn-rota-whatif-item strong {
  color:#071f3a;
  font-size:15px;
}

.rn-rota-whatif-item span {
  color:var(--rn-muted);
  font-weight:850;
}

.rn-rota-evidence-pulse {
  display:grid;
  gap:10px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.rn-rota-evidence-pulse article {
  background:#fff;
  border:1px solid #d6ebe7;
  border-radius:14px;
  display:grid;
  gap:5px;
  min-height:118px;
  padding:13px;
}

.rn-rota-evidence-pulse span {
  color:var(--rn-muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-rota-evidence-pulse strong {
  color:#071f3a;
  font-size:24px;
}

.rn-rota-evidence-pulse small {
  color:var(--rn-muted);
  font-weight:850;
  line-height:1.35;
}

.rn-rota-brief-card {
  background:#fff;
}

.rn-rota-dashboard-board {
  border-top:4px solid #72d6cf;
  margin-bottom:18px;
}

.rn-rota-dashboard-board .rn-section-heading {
  margin-bottom:14px;
}

.rn-rota-dashboard-days {
  grid-template-columns:repeat(7,minmax(145px,1fr));
}

.rn-rota-dashboard-days .rn-rota-day {
  min-height:210px;
}

.rn-rota-offer-response {
  border-top:4px solid #72d6cf;
  margin-bottom:18px;
}

.rn-rota-offer-summary {
  display:grid;
  gap:10px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:0 0 14px;
}

.rn-rota-offer-summary article {
  background:#f8fffd;
  border:1px solid #d6ebe7;
  border-radius:14px;
  display:grid;
  gap:5px;
  min-width:0;
  padding:12px 14px;
}

.rn-rota-offer-summary span {
  color:var(--rn-muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-rota-offer-summary strong {
  color:#071f3a;
  font-size:16px;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rn-rota-offer-note {
  background:#fffaf2;
  border:1px solid #f6cf96;
  border-radius:14px;
  color:#7c3c00;
  font-weight:850;
  line-height:1.45;
  margin:0 0 14px;
  padding:12px 14px;
}

.rn-rota-offer-form {
  grid-template-columns:1fr;
}

.rn-rota-offer-actions {
  display:grid;
  gap:10px;
  grid-template-columns:minmax(180px,260px) minmax(150px,220px);
  justify-content:end;
}

.rn-rota-brief-grid,
.rn-rota-evidence-grid {
  display:grid;
  gap:12px;
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.rn-rota-brief-grid article,
.rn-rota-evidence-grid article {
  background:#f8fffd;
  border:1px solid #d6ebe7;
  border-radius:14px;
  display:grid;
  gap:6px;
  padding:14px;
}

.rn-rota-brief-grid span,
.rn-rota-evidence-grid span,
.rn-rota-evidence-grid small {
  color:var(--rn-muted);
  font-weight:850;
}

.rn-rota-brief-grid strong {
  color:#071f3a;
  font-size:24px;
}

.rn-rota-grid {
  display:grid;
  gap:14px;
  margin-bottom:18px;
  width:100%;
}

.rn-rota-grid-four {
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.rn-rota-command-grid {
  display:grid;
  gap:14px;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:0 0 18px;
}

.rn-rota-command-grid a {
  text-decoration:none;
}

.rn-rota-command-card {
  align-content:start;
  background:#ffffff;
  border:1px solid var(--rn-border);
  border-left:5px solid #d99a3d;
  border-radius:14px;
  box-shadow:0 14px 34px rgba(12,44,60,.06);
  color:var(--rn-navy);
  display:grid;
  gap:8px;
  min-height:132px;
  padding:16px;
  text-decoration:none;
}

.rn-rota-command-card:hover,
.rn-rota-command-card.is-active {
  border-color:#78d7d0;
  border-left-color:var(--rn-brand-dark);
  box-shadow:0 18px 42px rgba(8,127,120,.12);
  transform:translateY(-1px);
}

.rn-rota-command-card span {
  align-items:center;
  background:#eefbf8;
  border:1px solid #bde4df;
  border-radius:999px;
  color:var(--rn-brand-dark);
  display:inline-flex;
  font-size:12px;
  font-weight:950;
  height:28px;
  justify-content:center;
  width:42px;
}

.rn-rota-command-card strong {
  color:#071f3a;
  font-size:19px;
  line-height:1.15;
}

.rn-rota-command-card small {
  color:var(--rn-muted);
  font-weight:850;
  line-height:1.35;
}

.rn-rota-tile {
  background:#fff;
  border:1px solid var(--rn-border);
  border-radius:14px;
  box-shadow:0 14px 34px rgba(12, 44, 60, .07);
  display:grid;
  gap:8px;
  min-height:132px;
  min-width:0;
  padding:18px;
}

.rn-rota-tile span {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.rn-rota-tile strong {
  color:var(--rn-navy);
  font-size:28px;
  line-height:1;
}

.rn-rota-tile small {
  color:var(--rn-muted);
  font-weight:800;
  line-height:1.35;
}

.rn-rota-rag-green {
  border-top:4px solid #15803d;
}

.rn-rota-rag-amber {
  border-top:4px solid #d97706;
}

.rn-rota-rag-red {
  border-top:4px solid #dc2626;
}

.rn-rota-card {
  margin-bottom:18px;
}

.rn-rota-board-card {
  overflow:hidden;
}

.rn-rota-shift-list {
  display:grid;
  gap:10px;
}

.rn-rota-shift {
  align-items:center;
  border:1px solid var(--rn-border);
  border-radius:14px;
  display:grid;
  gap:14px;
  grid-template-columns:1.2fr 1.2fr 1fr;
  padding:14px;
}

.rn-rota-shift strong,
.rn-rota-shift span {
  display:block;
}

.rn-rota-shift span {
  color:var(--rn-muted);
  font-weight:800;
}

.rn-rota-chip {
  background:#f0fdfa;
  border:1px solid var(--rn-border);
  border-radius:999px;
  color:var(--rn-brand-dark) !important;
  display:inline-flex !important;
  font-size:12px;
  font-weight:900;
  margin:2px 4px 2px 0;
  padding:5px 9px;
}

.rn-rota-chip-warn {
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412 !important;
}

.rn-rota-chip-soft {
  background:#eefbf8;
  border-color:#bde4df;
  color:#075b57 !important;
}

.rn-rota-days {
  display:grid;
  gap:10px;
  grid-template-columns:repeat(7, minmax(0, 1fr));
}

.rn-rota-day {
  background:#fff;
  border:1px solid var(--rn-border);
  border-radius:12px;
  color:var(--rn-navy);
  display:grid;
  gap:8px;
  min-height:178px;
  padding:10px;
  text-decoration:none;
}

.rn-rota-day:hover {
  border-color:#6bd1ca;
  box-shadow:0 14px 30px rgba(8,127,120,.11);
  transform:translateY(-1px);
}

.rn-rota-day-head {
  align-items:center;
  display:flex;
  gap:8px;
  justify-content:space-between;
}

.rn-rota-day-head em {
  border-radius:999px;
  color:#fff;
  font-size:10px;
  font-style:normal;
  font-weight:950;
  line-height:1;
  padding:5px 7px;
}

.rn-rota-rag-green .rn-rota-day-head em {
  background:#15803d;
}

.rn-rota-rag-amber .rn-rota-day-head em {
  background:#d97706;
}

.rn-rota-rag-red .rn-rota-day-head em {
  background:#dc2626;
}

.rn-rota-day span {
  font-size:12px;
  font-weight:900;
}

.rn-rota-day small {
  color:var(--rn-muted);
  font-weight:800;
}

.rn-rota-day-counts {
  border-bottom:1px solid #d9ece9;
  display:block;
  padding-bottom:6px;
}

.rn-rota-mini-list {
  display:grid;
  gap:5px;
}

.rn-rota-mini-shift,
.rn-rota-mini-absence,
.rn-rota-empty-line,
.rn-rota-more-line {
  align-items:center;
  background:#f8fffd;
  border:1px solid #d6ebe7;
  border-radius:9px;
  display:grid;
  gap:4px;
  grid-template-columns:auto minmax(0,1fr) auto;
  min-width:0;
  padding:6px;
}

.rn-rota-mini-shift {
  grid-template-columns:auto minmax(0,1fr) auto;
}

.rn-rota-empty-line,
.rn-rota-more-line {
  color:var(--rn-muted);
  display:block;
  font-size:12px;
  font-weight:850;
  text-align:center;
}

.rn-rota-mini-shift.is-cancelled {
  background:#fff1f2;
  border-color:#fecdd3;
  opacity:.82;
}

.rn-rota-mini-time {
  color:#51657a;
  font-size:11px !important;
  font-weight:950;
  white-space:nowrap;
}

.rn-rota-mini-name {
  color:#071f3a;
  font-size:12px !important;
  font-weight:950;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rn-rota-mini-role {
  color:#62748b;
  font-size:10px !important;
  font-weight:900;
  grid-column:1 / -1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rn-rota-code-row {
  display:flex;
  flex-wrap:wrap;
  gap:3px;
  justify-content:flex-start;
}

.rn-rota-code {
  align-items:center;
  background:#e8f7f4;
  border:1px solid #bde4df;
  border-radius:6px;
  color:#087f78;
  display:inline-flex;
  font-size:10px;
  font-weight:950;
  height:20px;
  justify-content:center;
  min-width:20px;
  padding:0 5px;
}

.rn-rota-code-lead {
  background:#ecfdf5;
  border-color:#86efac;
  color:#166534;
}

.rn-rota-code-sleep,
.rn-rota-code-night {
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
}

.rn-rota-code-agency,
.rn-rota-code-overtime,
.rn-rota-code-emergency {
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}

.rn-rota-code-cancelled {
  background:#fff1f2;
  border-color:#fecdd3;
  color:#be123c;
}

.rn-rota-mini-absence {
  background:#fff7ed;
  border-color:#fed7aa;
  grid-template-columns:auto minmax(0,1fr);
}

.rn-rota-mini-absence b {
  background:#b45309;
  border-radius:6px;
  color:#fff;
  font-size:10px;
  padding:3px 5px;
}

.rn-rota-mini-absence span {
  color:#7c2d12;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rn-rota-mini-absence small {
  grid-column:1 / -1;
}

.rn-rota-pressure-grid,
.rn-rota-rag-review {
  display:grid;
  gap:12px;
}

.rn-rota-pressure-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.rn-rota-pressure-card,
.rn-rota-rag-review-row {
  background:#fff;
  border:1px solid var(--rn-border);
  border-radius:14px;
  box-shadow:0 12px 26px rgba(12,44,60,.055);
  display:grid;
  gap:12px;
  padding:14px;
}

.rn-rota-pressure-card > div:first-child,
.rn-rota-rag-review-row > div:first-child {
  align-items:center;
  display:flex;
  gap:10px;
  justify-content:space-between;
}

.rn-rota-pressure-card span,
.rn-rota-rag-review-row span {
  background:#eefbf8;
  border:1px solid #bde4df;
  border-radius:999px;
  color:#075b57;
  font-size:11px;
  font-weight:950;
  padding:6px 8px;
}

.rn-rota-pressure-card strong,
.rn-rota-rag-review-row strong,
.rn-rota-evidence-grid strong {
  color:#071f3a;
  font-size:17px;
}

.rn-rota-pressure-card dl {
  display:grid;
  gap:8px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:0;
}

.rn-rota-pressure-card dl div {
  background:#f8fffd;
  border:1px solid #d6ebe7;
  border-radius:10px;
  padding:8px;
}

.rn-rota-pressure-card dt {
  color:var(--rn-muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-rota-pressure-card dd {
  color:#071f3a;
  font-weight:950;
  margin:2px 0 0;
}

.rn-rota-pressure-card ul {
  color:var(--rn-muted);
  display:grid;
  font-weight:850;
  gap:6px;
  margin:0;
  padding-left:18px;
}

.rn-rota-rag-review-row {
  align-items:center;
  grid-template-columns:minmax(180px,.8fr) minmax(0,1.6fr) auto;
}

.rn-rota-rag-review-row p {
  color:var(--rn-muted);
  font-weight:850;
  margin:0;
}

.rn-rota-workspace {
  display:grid;
  gap:18px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  width:100%;
}

.rn-rota-form {
  display:grid;
  gap:12px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.rn-rota-form label,
.rn-rota-period-form label {
  display:grid;
  gap:6px;
}

.rn-rota-form input,
.rn-rota-form select,
.rn-rota-form textarea,
.rn-rota-datebar input,
.rn-rota-period-form input,
.rn-rota-period-form select {
  appearance:none;
  background:#fff;
  border:1px solid #c9dfdc;
  border-radius:12px;
  box-sizing:border-box;
  color:#071f3a;
  font-family:inherit;
  font-size:14px;
  font-weight:850;
  min-height:44px;
  padding:10px 12px;
  width:100%;
}

.rn-rota-form select,
.rn-rota-period-form select {
  background-image:linear-gradient(45deg, transparent 50%, var(--rn-brand) 50%),linear-gradient(135deg, var(--rn-brand) 50%, transparent 50%);
  background-position:calc(100% - 18px) 18px, calc(100% - 12px) 18px;
  background-repeat:no-repeat;
  background-size:6px 6px, 6px 6px;
  padding-right:34px;
}

.rn-rota-form input:focus,
.rn-rota-form select:focus,
.rn-rota-form textarea:focus,
.rn-rota-datebar input:focus,
.rn-rota-period-form input:focus,
.rn-rota-period-form select:focus {
  border-color:var(--rn-brand);
  box-shadow:0 0 0 3px rgba(0,118,108,.12);
  outline:0;
}

.rn-rota-form textarea,
.rn-rota-form .rn-rota-check {
  grid-column:auto / span 2;
}

.rn-rota-check {
  align-items:center;
  border:1px solid var(--rn-border);
  border-radius:12px;
  color:var(--rn-navy);
  display:flex !important;
  flex-direction:row;
  font-weight:900;
  gap:8px;
  padding:12px;
}

.rn-rota-check-danger {
  background:#fff5f3;
  border-color:#f2aaa3;
  color:#9f261c;
}

.rn-rota-cover-summary {
  display:grid;
  gap:12px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:12px 0 16px;
}

.rn-rota-cover-summary article {
  background:linear-gradient(135deg,#ffffff 0%,#f8fffd 100%);
  border:1px solid var(--rn-border);
  border-left:5px solid var(--rn-brand);
  border-radius:14px;
  box-shadow:0 12px 24px rgba(12,44,60,.055);
  display:grid;
  gap:6px;
  padding:14px;
}

.rn-rota-cover-summary article.rn-rota-rag-red {
  border-left-color:#e0302b;
}

.rn-rota-cover-summary article.rn-rota-rag-green {
  border-left-color:#16815f;
}

.rn-rota-cover-summary span {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-rota-cover-summary strong {
  color:var(--rn-navy);
  font-size:24px;
  font-weight:950;
}

.rn-rota-cover-summary small {
  color:var(--rn-muted);
  font-weight:850;
  line-height:1.35;
}

.rn-rota-planner-form .rn-btn {
  grid-column:auto / span 2;
}

.rn-rota-period-form {
  align-items:end;
  display:grid;
  gap:12px;
  grid-template-columns:minmax(220px, 320px) auto;
  margin-bottom:14px;
}

.rn-rota-shift-list-polished {
  gap:12px;
}

.rn-rota-shift-card {
  align-items:center;
  background:linear-gradient(135deg,#ffffff 0%,#f8fffd 100%);
  border:1px solid #c9dfdc;
  border-left:5px solid var(--rn-brand);
  border-radius:14px;
  box-shadow:0 12px 26px rgba(12,44,60,.055);
  display:grid;
  gap:14px;
  grid-template-columns:96px minmax(0,1fr) 170px;
  padding:14px;
}

.rn-rota-time-block {
  align-items:center;
  background:#eefcf9;
  border:1px solid #b8e8e1;
  border-radius:14px;
  display:grid;
  gap:2px;
  justify-items:center;
  min-height:92px;
  padding:10px;
}

.rn-rota-time-block strong {
  color:var(--rn-brand-dark);
  font-size:24px;
  line-height:1;
}

.rn-rota-time-block span,
.rn-rota-time-block small,
.rn-rota-hours-meter span,
.rn-rota-hours-meter small {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:900;
}

.rn-rota-shift-main {
  display:grid;
  gap:5px;
  min-width:0;
}

.rn-rota-shift-main strong {
  color:#071f3a;
  font-size:18px;
}

.rn-rota-shift-main span {
  color:#51657a;
  font-weight:850;
}

.rn-rota-chip-row {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

.rn-rota-hours-meter {
  background:#fff;
  border:1px solid #dce9e7;
  border-radius:14px;
  display:grid;
  gap:4px;
  padding:12px;
}

.rn-rota-hours-meter strong {
  color:#071f3a;
  font-size:20px;
}

.rn-rota-shift-manager {
  background:#fbfffe;
  border:1px solid #d7e9e6;
  border-radius:14px;
  grid-column:1 / -1;
  padding:10px 12px;
}

.rn-rota-shift-manager summary {
  color:var(--rn-brand-dark);
  cursor:pointer;
  font-weight:950;
}

.rn-rota-inline-action-form {
  align-items:end;
  display:grid;
  gap:10px;
  grid-template-columns:repeat(2,minmax(180px,1fr)) minmax(240px,2fr) auto;
  margin-top:10px;
}

.rn-rota-inline-action-form-wide {
  align-items:stretch;
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.rn-rota-inline-action-form label {
  display:grid;
  gap:5px;
}

.rn-rota-inline-action-form label span {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:950;
}

.rn-rota-inline-action-form input,
.rn-rota-inline-action-form select,
.rn-rota-inline-action-form textarea {
  border:1px solid #bed8d4;
  border-radius:10px;
  font:inherit;
  font-weight:850;
  min-height:40px;
  padding:10px;
}

.rn-rota-inline-action-form-wide .rn-rota-check,
.rn-rota-inline-action-form-wide .rn-btn {
  grid-column:1 / -1;
}

.rn-rota-training-strip,
.rn-rota-template-grid {
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.rn-rota-training-strip {
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  margin-top:14px;
}

.rn-rota-training-strip article {
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:14px;
  display:grid;
  gap:4px;
  padding:12px;
}

.rn-rota-training-strip strong {
  color:#7c2d12;
}

.rn-rota-template-panel {
  margin-bottom:18px;
}

.rn-rota-pattern-builder {
  background:linear-gradient(135deg,#f8fffd 0%,#fffaf3 100%);
  border:1px solid #d5ebe8;
  border-radius:16px;
  display:grid;
  gap:14px;
  margin-bottom:16px;
  padding:14px;
}

.rn-rota-pattern-head {
  align-items:end;
  display:grid;
  gap:12px;
  grid-template-columns:minmax(220px,1.2fr) minmax(180px,.7fr) minmax(260px,1fr);
}

.rn-rota-pattern-head p {
  color:var(--rn-muted);
  font-size:13px;
  font-weight:850;
  line-height:1.35;
  margin:0;
}

.rn-rota-pattern-head label,
.rn-rota-pattern-row label {
  display:grid;
  gap:6px;
}

.rn-rota-pattern-rows {
  display:grid;
  gap:10px;
}

.rn-rota-pattern-row {
  align-items:end;
  background:#ffffff;
  border:1px solid #cce4e1;
  border-radius:14px;
  display:grid;
  gap:10px;
  grid-template-columns:72px minmax(180px,1.2fr) 100px 110px 110px minmax(150px,.8fr) minmax(180px,1fr) minmax(170px,1fr) minmax(190px,1.1fr) 130px;
  padding:12px;
}

.rn-rota-pattern-enable {
  align-self:stretch;
  justify-content:center;
  min-height:46px;
}

.rn-rota-pattern-builder > .rn-btn {
  justify-self:end;
  min-width:240px;
}

.rn-rota-leave-intel {
  margin-bottom:18px;
}

.rn-rota-intel-grid {
  display:grid;
  gap:12px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:12px 0 16px;
}

.rn-rota-intel-grid article {
  background:#ffffff;
  border:1px solid var(--rn-border);
  border-left:5px solid var(--rn-brand);
  border-radius:14px;
  box-shadow:0 12px 24px rgba(12,44,60,.055);
  display:grid;
  gap:5px;
  padding:14px;
}

.rn-rota-intel-grid article.rn-rota-rag-amber {
  border-left-color:#d99a3d;
}

.rn-rota-intel-grid article.rn-rota-rag-red {
  border-left-color:#e0302b;
}

.rn-rota-intel-grid span {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-rota-intel-grid strong {
  color:var(--rn-navy);
  font-size:24px;
  font-weight:950;
}

.rn-rota-intel-grid small {
  color:var(--rn-muted);
  font-weight:850;
  line-height:1.35;
}

.rn-rota-planning-split {
  display:grid;
  gap:14px;
  grid-template-columns:1fr 1fr;
}

.rn-rota-planning-split > article {
  background:#ffffff;
  border:1px solid #d5ebe8;
  border-radius:14px;
  display:grid;
  gap:10px;
  padding:14px;
}

.rn-rota-planning-split h3 {
  color:var(--rn-navy);
  font-size:18px;
  margin:0;
}

.rn-rota-planning-split p {
  color:var(--rn-muted);
  font-size:13px;
  font-weight:850;
  line-height:1.35;
  margin:0;
}

.rn-rota-bankholiday-grid,
.rn-rota-sickness-list {
  display:grid;
  gap:10px;
}

.rn-rota-bankholiday-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.rn-rota-bankholiday-grid div,
.rn-rota-sickness-row {
  border:1px solid var(--rn-border);
  border-radius:12px;
  display:grid;
  gap:5px;
  padding:11px;
}

.rn-rota-bankholiday-grid strong,
.rn-rota-sickness-row strong {
  color:var(--rn-navy);
}

.rn-rota-bankholiday-grid span,
.rn-rota-sickness-row span {
  color:var(--rn-muted);
  font-weight:850;
}

.rn-rota-sickness-row {
  align-items:center;
  grid-template-columns:minmax(0,1fr) auto 64px;
}

.rn-rota-sickness-row b {
  background:#eefcf9;
  border:1px solid #b8e8e1;
  border-radius:999px;
  color:var(--rn-brand-dark);
  font-weight:950;
  padding:6px 10px;
  text-align:center;
}

.rn-rota-sickness-row.rn-rota-rag-amber b {
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a5b12;
}

.rn-rota-sickness-row.rn-rota-rag-red b {
  background:#fff4f3;
  border-color:#f2aaa3;
  color:#9f261c;
}

.rn-rota-request-list {
  background:#ffffff;
  border:1px solid #d5ebe8;
  border-radius:14px;
  display:grid;
  gap:10px;
  padding:14px;
}

.rn-rota-request-list h3 {
  color:var(--rn-navy);
  font-size:18px;
  margin:0;
}

.rn-rota-request-list article {
  border:1px solid var(--rn-border);
  border-radius:12px;
  display:grid;
  gap:3px;
  padding:11px;
}

.rn-rota-request-list strong {
  color:var(--rn-navy);
}

.rn-rota-request-list span,
.rn-rota-request-list small {
  color:var(--rn-muted);
  font-weight:850;
}

.rn-rota-periods {
  display:grid;
  gap:10px;
}

.rn-rota-periods article,
.rn-rota-audit-list article {
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:12px;
}

.rn-rota-periods span,
.rn-rota-audit-list span,
.rn-rota-audit-list small {
  color:var(--rn-muted);
  display:block;
  font-weight:800;
  margin-top:4px;
}

.rn-rota-page input,
.rn-rota-page select,
.rn-rota-page textarea {
  appearance:none;
  -webkit-appearance:none;
  background-color:#fff;
  border:1px solid #c6dfdc;
  border-radius:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
  color:#061f3a;
  font-family:inherit;
  font-size:14px;
  font-weight:850;
  line-height:1.25;
  min-height:46px;
  padding:11px 13px;
  width:100%;
}

.rn-rota-page select {
  background-image:linear-gradient(45deg, transparent 50%, #087f78 50%),linear-gradient(135deg, #087f78 50%, transparent 50%);
  background-position:calc(100% - 18px) 19px, calc(100% - 12px) 19px;
  background-repeat:no-repeat;
  background-size:6px 6px,6px 6px;
  padding-right:38px;
}

.rn-rota-page input[type="date"],
.rn-rota-page input[type="time"],
.rn-rota-page input[type="datetime-local"] {
  color-scheme:light;
}

.rn-rota-page input[type="checkbox"] {
  appearance:auto;
  -webkit-appearance:auto;
  accent-color:var(--rn-brand);
  min-height:auto;
  width:auto;
}

.rn-rota-page input:focus,
.rn-rota-page select:focus,
.rn-rota-page textarea:focus {
  border-color:var(--rn-brand);
  box-shadow:0 0 0 3px rgba(8,127,120,.13);
  outline:0;
}

.rn-rota-template-grid .rn-rota-period-form {
  align-items:stretch;
  background:#f9fffd;
  border:1px solid #d5ebe8;
  border-radius:14px;
  display:grid;
  gap:12px;
  grid-template-columns:1fr;
  margin:0;
  padding:14px;
}

.rn-rota-form-wide {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.rn-rota-form-wide .rn-property-form-full,
.rn-rota-form-wide .rn-btn {
  grid-column:1 / -1;
}

.rn-rota-overtime-panel {
  border-top-color:#f4b35f;
}

.rn-rota-trust-grid {
  display:grid;
  gap:12px;
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.rn-rota-trust-card {
  background:#ffffff;
  border:1px solid #d6e9e6;
  border-left:5px solid #d99a3d;
  border-radius:14px;
  display:grid;
  gap:5px;
  padding:14px;
}

.rn-rota-trust-card span {
  color:var(--rn-navy);
  font-weight:900;
}

.rn-rota-trust-card strong {
  color:#087f78;
  font-size:26px;
  line-height:1;
}

.rn-rota-trust-card small {
  color:var(--rn-muted);
  font-weight:850;
}

.rn-rota-audit-list strong {
  color:var(--rn-navy);
  font-size:15px;
}

@media (max-width: 1100px) {
  .rn-rota-grid-four,
  .rn-rota-workspace,
  .rn-rota-command-grid,
  .rn-rota-brief-grid,
  .rn-rota-evidence-grid,
  .rn-rota-walkthrough-grid,
  .rn-rota-radar-grid,
  .rn-rota-intel-grid,
  .rn-rota-pattern-head,
  .rn-rota-pattern-row,
  .rn-rota-planning-split,
  .rn-rota-bankholiday-grid,
  .rn-rota-evidence-pulse,
  .rn-rota-offer-summary,
  .rn-rota-pressure-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .rn-rota-command-centre {
    grid-template-columns:1fr;
  }

  .rn-rota-status-strip {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .rn-rota-action-panel {
    max-height:none;
  }

  .rn-rota-days {
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }

  .rn-rota-rag-review-row {
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px) {
  .rn-page.rn-rota-page {
    width:calc(100% - 24px);
    margin:18px auto 28px;
  }

  .rn-rota-datebar,
  .rn-rota-period-form {
    align-items:stretch;
    grid-template-columns:1fr;
  }

  .rn-rota-datebar,
  .rn-rota-shift {
    display:grid;
    grid-template-columns:1fr;
  }

  .rn-rota-datebar label,
  .rn-rota-datebar .rn-btn {
    width:100%;
    min-width:0;
  }

  .rn-rota-grid-four,
  .rn-rota-command-grid,
  .rn-rota-workspace,
  .rn-rota-command-centre,
  .rn-rota-brief-grid,
  .rn-rota-evidence-grid,
  .rn-rota-walkthrough-grid,
  .rn-rota-radar-grid,
  .rn-rota-intel-grid,
  .rn-rota-evidence-pulse,
  .rn-rota-offer-summary,
  .rn-rota-pressure-grid,
  .rn-rota-cover-summary,
  .rn-rota-form,
  .rn-rota-days,
  .rn-rota-template-grid,
  .rn-rota-training-strip,
  .rn-rota-shift-card,
  .rn-rota-inline-action-form,
  .rn-rota-form-wide,
  .rn-rota-pattern-head,
  .rn-rota-pattern-row,
  .rn-rota-planning-split,
  .rn-rota-bankholiday-grid,
  .rn-rota-sickness-row,
  .rn-rota-trust-grid {
    grid-template-columns:1fr;
  }

  .rn-rota-command-status h2 {
    font-size:24px;
  }

  .rn-rota-status-strip,
  .rn-section-heading-tight,
  .rn-rota-offer-actions {
    grid-template-columns:1fr;
  }

  .rn-section-heading-tight .rn-btn {
    justify-self:start;
    width:auto;
  }

  .rn-rota-form textarea,
  .rn-rota-form .rn-rota-check,
  .rn-rota-planner-form .rn-btn,
  .rn-rota-pattern-builder > .rn-btn {
    grid-column:auto;
    justify-self:stretch;
    min-width:0;
  }
}

/* =========================================================
   MISSING MODULE
========================================================= */

.rn-missing-stage {
  max-width:1280px;
  margin:0 auto;
  padding:28px 20px 70px;
}

.rn-missing-hero {
  border-top:3px solid #75d8d2;
}

.rn-missing-home-dashboard {
  border-top:4px solid #75d8d2;
}

.rn-missing-alert-list {
  display:grid;
  gap:10px;
  margin:12px 0 18px;
}

.rn-missing-alert-card {
  align-items:center;
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-left:5px solid #dc2626;
  border-radius:14px;
  color:inherit;
  display:grid;
  gap:4px;
  padding:13px 15px;
  text-decoration:none;
}

.rn-missing-alert-card strong {
  color:#7f1d1d;
  font-size:18px;
}

.rn-missing-alert-card span,
.rn-missing-alert-card small {
  color:#64748b;
  font-weight:850;
}

.rn-missing-child-card .rn-young-snapshot-photo {
  width:76px;
  height:76px;
}

.rn-missing-child-head {
  border-top:4px solid #75d8d2;
}

.rn-missing-strip {
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.rn-missing-layout {
  align-items:start;
  display:grid;
  gap:16px;
  grid-template-columns:300px minmax(0,1fr);
  margin-top:22px;
}

.rn-missing-left-panel,
.rn-missing-detail-panel {
  display:flex;
  flex-direction:column;
  min-width:0;
}

.rn-missing-detail-panel{
  gap:14px;
  padding-top:12px;
}

.rn-missing-detail-panel > .rn-young-section-head:first-child{
  border-bottom:1px solid var(--rn-border);
  margin-bottom:0;
  padding:0 4px 14px;
}

.rn-missing-detail-panel > .rn-young-section-head:first-child h2{
  line-height:1.2;
  margin-top:0;
}

.rn-missing-filter {
  display:grid;
  gap:8px;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:10px 0 14px;
}

.rn-missing-filter a {
  align-items:center;
  background:#fff;
  border:1px solid var(--rn-line-teal);
  border-radius:999px;
  color:var(--rn-brand-dark);
  display:flex;
  font-size:13px;
  font-weight:950;
  justify-content:center;
  min-height:38px;
  padding:8px 10px;
  text-decoration:none;
}

.rn-missing-filter a.active {
  background:var(--rn-brand);
  border-color:var(--rn-brand);
  color:#fff;
}

.rn-missing-left-start-link {
  align-items:center;
  background:linear-gradient(180deg,var(--rn-teal),var(--rn-teal-deep));
  border-radius:16px;
  box-shadow:0 14px 22px rgba(8,104,105,.18);
  color:#fff;
  display:flex;
  font-size:14px;
  font-weight:950;
  justify-content:center;
  margin:12px 0;
  min-height:48px;
  padding:12px 14px;
  text-align:center;
  text-decoration:none;
}

.rn-missing-episode-list {
  display:grid;
  gap:10px;
}

.rn-missing-episode-card {
  background:#fff;
  border:1px solid #d7e9e6;
  border-radius:14px;
  color:inherit;
  display:grid;
  gap:4px;
  padding:13px;
  text-decoration:none;
}

.rn-missing-episode-card.active {
  background:#f2fffd;
  border-color:#75d8d2;
  box-shadow:0 12px 22px rgba(0,118,108,.08);
}

.rn-missing-episode-card strong {
  color:var(--rn-brand-dark);
  font-size:16px;
}

.rn-missing-episode-card span,
.rn-missing-episode-card small,
.rn-missing-episode-card em {
  color:#64748b;
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.rn-missing-episode-meta {
  gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(225px,1fr));
  margin-bottom:18px;
  order:1;
}

.rn-missing-episode-meta div {
  min-height:78px;
  padding:16px 18px;
}

.rn-missing-status-card {
  border-left:6px solid var(--rn-brand);
  padding-left:20px !important;
}

.rn-missing-status-card strong {
  display:block;
  line-height:1.25;
  padding-top:3px;
}

.rn-missing-status-card.is-open {
  border-left-color:#dc2626;
}

.rn-missing-status-card.is-closed,
.rn-missing-status-card.is-returned {
  border-left-color:#d99a3d;
}

.rn-missing-status-card.is-cancelled,
.rn-missing-status-card.is-reassigned,
.rn-missing-status-card.is-void {
  border-left-color:#64748b;
}

.rn-missing-action-grid {
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:16px 0;
}

.rn-missing-live-board {
  display:contents;
}

.rn-missing-update-card {
  background:linear-gradient(180deg,#ffffff 0%,#fbfffe 100%);
  border-left:5px solid var(--rn-brand);
  grid-template-columns:1fr;
  margin-top:16px;
  order:1;
}

.rn-missing-form-grid {
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
}

.rn-missing-professional-plan {
  background:#fff;
  border:1px solid #d7e9e6;
  border-top:5px solid #d99a3d;
  border-radius:16px;
  box-shadow:0 18px 32px rgba(6,42,62,.06);
  margin-top:14px;
  order:4;
  padding:15px;
}

.rn-missing-notification-stage-grid {
  display:grid;
  gap:12px;
}

.rn-missing-notification-stage {
  background:#fbfffe;
  border:1px solid #d7e9e6;
  border-radius:14px;
  display:grid;
  gap:8px;
  padding:12px;
}

.rn-missing-notification-stage h4 {
  color:var(--rn-navy);
  font-size:15px;
  margin:0;
}

.rn-missing-notification-stage article {
  background:#fff;
  border:1px solid #d7e9e6;
  border-left:4px solid #d99a3d;
  border-radius:12px;
  display:grid;
  gap:3px;
  padding:10px;
}

.rn-missing-notification-stage article.is-complete {
  background:#f2fffd;
  border-left-color:var(--rn-brand);
}

.rn-missing-notification-stage article.is-due {
  background:#fffaf3;
}

.rn-missing-notification-stage article strong {
  color:var(--rn-navy);
}

.rn-missing-notification-stage article span,
.rn-missing-notification-stage article small {
  color:#64748b;
  font-size:12px;
  font-weight:850;
}

.rn-missing-classification-section .rn-missing-action-card {
  margin-top:12px;
}

.rn-missing-secondary-grid {
  align-items:start;
  grid-template-columns:1fr;
  margin-top:8px;
  order:3;
}

.rn-missing-meeting-card {
  border-top:4px solid #d99a3d;
}

.rn-missing-action-card,
.rn-missing-protocol-form,
.rn-missing-compact-form,
.rn-missing-review-form {
  background:#fff;
  border:1px solid #d7e9e6;
  border-radius:16px;
  display:grid;
  gap:12px;
  padding:15px;
}

.rn-missing-primary-start-card {
  background:linear-gradient(180deg,#ffffff 0%,#fbfffe 100%);
  border:1px solid var(--rn-border);
  border-left:6px solid #d99a3d;
  border-radius:18px;
  box-shadow:0 18px 32px rgba(6,42,62,.08);
  margin-bottom:16px;
  padding:18px;
}

.rn-missing-primary-start-card .rn-missing-compact-form {
  background:transparent;
  border:0;
  box-shadow:none;
  margin-top:10px;
  padding:0;
}

.rn-missing-classification-card {
  border-top:4px solid #d99a3d;
}

.rn-missing-action-card h3,
.rn-missing-section h3 {
  color:var(--rn-navy);
  font-size:19px;
  margin:0;
}

.rn-missing-action-card label,
.rn-missing-protocol-form label,
.rn-missing-compact-form label,
.rn-missing-review-form label,
.rn-missing-form-grid label {
  color:#475569;
  display:grid;
  gap:6px;
  font-weight:850;
}

.rn-missing-action-card label span,
.rn-missing-protocol-form label span,
.rn-missing-compact-form label span,
.rn-missing-review-form label span,
.rn-missing-form-grid label span {
  color:#52677f;
  font-size:12px;
  font-weight:950;
}

.rn-missing-action-card input,
.rn-missing-action-card select,
.rn-missing-action-card textarea,
.rn-missing-form-grid input,
.rn-missing-form-grid select,
.rn-missing-form-grid textarea,
.rn-missing-protocol-form input,
.rn-missing-protocol-form select,
.rn-missing-protocol-form textarea,
.rn-missing-compact-form input,
.rn-missing-compact-form select,
.rn-missing-compact-form textarea,
.rn-missing-review-form input,
.rn-missing-review-form select,
.rn-missing-review-form textarea {
  appearance:none;
  -webkit-appearance:none;
  background:#fff;
  border:1px solid #c6dfdc;
  border-radius:12px;
  color:#061f3a;
  font:inherit;
  font-weight:850;
  min-height:44px;
  padding:10px 12px;
  width:100%;
}

.rn-missing-action-card select,
.rn-missing-form-grid select,
.rn-missing-protocol-form select,
.rn-missing-compact-form select,
.rn-missing-review-form select {
  background-image:linear-gradient(45deg, transparent 50%, #087f78 50%),linear-gradient(135deg, #087f78 50%, transparent 50%);
  background-position:calc(100% - 18px) 19px,calc(100% - 12px) 19px;
  background-repeat:no-repeat;
  background-size:6px 6px,6px 6px;
  padding-right:38px;
}

.rn-missing-action-card textarea,
.rn-missing-form-grid textarea,
.rn-missing-protocol-form textarea,
.rn-missing-compact-form textarea,
.rn-missing-review-form textarea {
  min-height:96px;
  resize:vertical;
}

.rn-missing-action-card .rn-compact-check,
.rn-missing-protocol-form .rn-compact-check,
.rn-missing-compact-form .rn-compact-check,
.rn-missing-review-form .rn-compact-check {
  align-items:center;
  display:inline-flex;
  gap:9px;
  justify-self:start;
  min-height:38px;
  width:auto;
}

.rn-missing-action-card .rn-compact-check input[type="checkbox"],
.rn-missing-protocol-form .rn-compact-check input[type="checkbox"],
.rn-missing-compact-form .rn-compact-check input[type="checkbox"],
.rn-missing-review-form .rn-compact-check input[type="checkbox"] {
  accent-color:var(--rn-brand);
  appearance:auto;
  -webkit-appearance:checkbox;
  background:transparent;
  border:0;
  border-radius:0;
  flex:0 0 auto;
  height:17px;
  min-height:0;
  padding:0;
  width:17px;
}

.rn-missing-action-card input:focus,
.rn-missing-action-card select:focus,
.rn-missing-action-card textarea:focus,
.rn-missing-form-grid input:focus,
.rn-missing-form-grid select:focus,
.rn-missing-form-grid textarea:focus,
.rn-missing-protocol-form input:focus,
.rn-missing-protocol-form select:focus,
.rn-missing-protocol-form textarea:focus,
.rn-missing-compact-form input:focus,
.rn-missing-compact-form select:focus,
.rn-missing-compact-form textarea:focus,
.rn-missing-review-form input:focus,
.rn-missing-review-form select:focus,
.rn-missing-review-form textarea:focus {
  border-color:var(--rn-brand);
  box-shadow:0 0 0 3px rgba(0,118,108,.12);
  outline:0;
}

.rn-missing-action-card button,
.rn-missing-protocol-form button,
.rn-missing-compact-form button,
.rn-missing-review-form button {
  background:var(--rn-brand);
  border:0;
  border-radius:14px;
  color:#fff;
  cursor:pointer;
  font-weight:950;
  min-height:46px;
  padding:11px 16px;
}

.rn-missing-action-card button:hover,
.rn-missing-protocol-form button:hover,
.rn-missing-compact-form button:hover,
.rn-missing-review-form button:hover {
  background:var(--rn-brand-dark);
}

.rn-missing-section {
  margin-top:22px;
  order:8;
}

.rn-missing-classification-section {
  order:5;
}

.rn-missing-snapshot-section {
  order:6;
}

.rn-missing-timeline-section {
  order:2;
}

.rn-missing-section summary {
  cursor:pointer;
}

.rn-missing-section summary .rn-profile-muted {
  font-size:12px;
  margin:4px 0 0;
}

.rn-missing-protocol-section {
  border-top-color:#d99a3d;
  order:7;
}

.rn-missing-count-card {
  order:20;
}

.rn-missing-close-card {
  order:21;
}

#missing-manager-options {
  order:22;
}

.rn-missing-timeline,
.rn-missing-contact-list {
  display:grid;
  gap:10px;
  margin-top:12px;
}

.rn-missing-timeline article,
.rn-missing-contact-list article {
  background:#fff;
  border:1px solid #d7e9e6;
  border-radius:14px;
  display:grid;
  gap:5px;
  padding:12px 14px;
}

.rn-missing-timeline article {
  border-left:4px solid var(--rn-brand);
}

.rn-missing-timeline strong,
.rn-missing-contact-list strong {
  color:var(--rn-navy);
  font-weight:950;
}

.rn-missing-timeline span,
.rn-missing-contact-list span,
.rn-missing-contact-list small {
  color:#64748b;
  font-size:12px;
  font-weight:850;
}

.rn-missing-timeline p {
  margin:3px 0 0;
}

.rn-missing-compact-form {
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:12px;
}

.rn-missing-compact-form button,
.rn-missing-protocol-form button,
.rn-missing-review-form button,
.rn-missing-action-card .rn-property-form-full,
.rn-missing-action-card button,
.rn-missing-form-grid .rn-property-form-full {
  grid-column:1 / -1;
}

.rn-missing-protocol-form {
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:12px;
}

.rn-missing-protocol-form label:nth-child(n+3) {
  grid-column:span 1;
}

.rn-young-module-action-tile {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.rn-young-module-tile-link {
  color:inherit;
  text-decoration:none;
  display:grid;
  gap:8px;
}

.rn-young-module-inline-form {
  margin-top:auto;
}

.rn-young-module-inline-form button,
.rn-missing-start-link,
.rn-missing-current-link {
  border:0;
  border-radius:16px;
  padding:10px 14px;
  background:linear-gradient(180deg,var(--rn-teal),var(--rn-teal-deep));
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 22px rgba(8,104,105,.18);
}

.rn-missing-start-link {
  border:1px solid #e7b36e;
  background:linear-gradient(180deg,#fff4e4 0%,#ffffff 100%);
  color:#7a3a10;
  box-shadow:0 12px 22px rgba(166,92,25,.12);
}

.rn-missing-start-panel,
.rn-missing-open-note,
.rn-description-card,
.rn-missing-protocol-subpanel,
.rn-missing-snapshot-section {
  border:1px solid var(--rn-border);
  border-top:4px solid var(--rn-teal-soft);
  border-radius:16px;
  padding:18px;
  background:rgba(255,255,255,.94);
  box-shadow:0 16px 26px rgba(6,42,62,.06);
}

.rn-missing-open-note {
  display:grid;
  gap:5px;
  margin:14px 0;
}

.rn-missing-start-form {
  margin-top:12px;
}

.rn-description-centre-page,
.rn-description-form {
  display:grid;
  gap:18px;
}

.rn-description-card h3,
.rn-missing-protocol-subpanel h4 {
  margin:0 0 14px;
  color:var(--rn-ink);
}

.rn-description-form-grid,
.rn-missing-description-mini-grid,
.rn-description-readonly-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.rn-missing-description-mini-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.rn-description-form-grid label,
.rn-missing-description-mini-grid label {
  display:grid;
  gap:7px;
  color:var(--rn-muted);
  font-weight:900;
}

.rn-description-form-grid input,
.rn-description-form-grid select,
.rn-description-form-grid textarea,
.rn-missing-description-mini-grid input,
.rn-missing-description-mini-grid select,
.rn-missing-description-mini-grid textarea {
  width:100%;
  border:1px solid var(--rn-border);
  border-radius:12px;
  padding:11px 12px;
  background:#fff;
  color:var(--rn-ink);
  font:inherit;
  font-weight:800;
}

.rn-description-form-grid textarea,
.rn-missing-description-mini-grid textarea {
  min-height:70px;
  resize:vertical;
}

.rn-description-form-grid .rn-compact-check.rn-description-wide {
  display:inline-flex;
  grid-column:1 / -1;
  justify-self:start;
  align-items:center;
  gap:10px;
  width:auto;
  min-height:44px;
  padding:10px 14px;
  border-color:#bfe7e2;
  background:#f7fcfb;
  color:var(--rn-brand-dark);
}

.rn-description-form-grid .rn-compact-check.rn-description-wide input[type="checkbox"] {
  appearance:auto;
  -webkit-appearance:auto;
  width:18px;
  height:18px;
  margin:0;
  flex:0 0 auto;
}

.rn-description-form-grid .rn-compact-check.rn-description-wide span {
  line-height:1.25;
}

.rn-description-form .rn-final-save-row {
  justify-content:flex-end;
  margin-top:6px;
}

.rn-description-form .rn-final-save-row button {
  appearance:none;
  -webkit-appearance:none;
  min-width:240px;
  min-height:48px;
  padding:0 24px;
  border:0;
  border-radius:999px;
  background:var(--rn-brand);
  color:#fff;
  font:inherit;
  font-weight:950;
  box-shadow:0 14px 24px rgba(0, 118, 108, .18);
  cursor:pointer;
}

.rn-description-form .rn-final-save-row button:hover,
.rn-description-form .rn-final-save-row button:focus {
  background:var(--rn-brand-dark);
}

.rn-missing-protocol-form textarea {
  min-height:76px;
}

.rn-description-wide,
.rn-missing-protocol-subpanel,
.rn-missing-protocol-subpanel > label {
  grid-column:1 / -1;
}

.rn-description-history-card {
  border-top-color:var(--rn-warm);
}

.rn-missing-snapshot-grid div:nth-child(n+5) {
  grid-column:span 2;
}

.rn-missing-review-form {
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.rn-missing-review-form .rn-compact-check input {
  appearance:auto;
  -webkit-appearance:auto;
  width:auto;
}

/* Working documents and management snapshot */
.rn-management-stage,
.rn-work-stage {
  flex:1;
  padding:28px 18px 42px;
}

.rn-management-shell,
.rn-work-shell {
  width:min(1280px, 100%);
  margin:0 auto;
  display:grid;
  gap:20px;
}

.rn-management-hero {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  border:1px solid var(--rn-border);
  border-top:4px solid #78d7d4;
  border-radius:16px;
  background:linear-gradient(135deg, #fff 0%, #fbf8f1 100%);
  box-shadow:0 18px 36px rgba(5, 46, 61, .08);
  padding:24px;
}

.rn-management-hero h1 {
  margin:8px 0 6px;
  color:#061f3a;
  font-size:clamp(28px, 4vw, 40px);
  line-height:1.05;
}

.rn-management-hero p {
  margin:0;
  color:#58708a;
  font-weight:800;
  max-width:740px;
}

.rn-management-hero-actions,
.rn-work-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.rn-management-filter,
.rn-work-home-filter {
  display:grid;
  grid-template-columns:minmax(220px, 1fr) auto;
  gap:12px;
  align-items:end;
  border:1px solid #cfe4e1;
  border-radius:14px;
  background:#fff;
  padding:14px;
}

.rn-management-filter label,
.rn-work-home-filter label,
.rn-work-form label,
.rn-work-manager-box label {
  display:grid;
  gap:6px;
  color:#53677e;
  font-size:12px;
  font-weight:900;
}

.rn-management-filter select,
.rn-work-home-filter select,
.rn-work-form input,
.rn-work-form select,
.rn-work-form textarea,
.rn-work-manager-box textarea {
  width:100%;
  min-height:44px;
  border:1px solid #c6dfdc;
  border-radius:12px;
  background:#fff;
  color:#061f3a;
  font:inherit;
  font-weight:850;
  padding:10px 12px;
}

.rn-work-form textarea,
.rn-work-manager-box textarea {
  resize:vertical;
  line-height:1.45;
}

.rn-work-form input:focus,
.rn-work-form select:focus,
.rn-work-form textarea:focus,
.rn-management-filter select:focus,
.rn-work-home-filter select:focus,
.rn-work-manager-box textarea:focus {
  outline:0;
  border-color:var(--rn-brand);
  box-shadow:0 0 0 3px rgba(8,127,120,.12);
}

.rn-management-overview {
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:12px;
}

.rn-management-overview article,
.rn-management-home-grid article,
.rn-management-tile,
.rn-work-list-panel,
.rn-work-editor-panel,
.rn-work-side-panels section {
  border:1px solid #cfe4e1;
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 26px rgba(5, 46, 61, .06);
}

.rn-management-overview article {
  display:grid;
  gap:5px;
  min-height:112px;
  padding:16px;
}

.rn-management-overview span,
.rn-management-overview small,
.rn-management-home-grid span,
.rn-management-home-grid dt,
.rn-work-list span,
.rn-work-list small,
.rn-work-form-header p,
.rn-work-side-panels span {
  color:#58708a;
  font-size:12px;
  font-weight:850;
}

.rn-management-overview strong {
  color:#061f3a;
  font-size:24px;
  line-height:1.1;
}

.rn-management-overview article.is-alert {
  border-left:5px solid #dc2626;
}

.rn-management-overview article.is-warn {
  border-left:5px solid #d99b3d;
}

.rn-management-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.rn-management-tile {
  position:relative;
  min-height:180px;
  display:grid;
  grid-template-rows:auto auto 1fr auto;
  gap:10px;
  padding:18px;
  color:#061f3a;
  text-decoration:none;
}

.rn-management-tile:hover {
  border-color:#78d7d4;
  transform:translateY(-1px);
}

.rn-management-tile strong {
  font-size:18px;
}

.rn-management-tile small {
  color:#58708a;
  font-weight:800;
  line-height:1.35;
}

.rn-management-tile em {
  justify-self:end;
  align-self:end;
  min-width:74px;
  text-align:center;
  border:1px solid #83d8d2;
  border-radius:999px;
  padding:8px 14px;
  color:#006f69;
  font-style:normal;
  font-weight:950;
}

.rn-management-icon {
  width:42px;
  height:42px;
  border-radius:14px;
  background:#e8fbf8;
  border:1px solid #b8e8e1;
  position:relative;
}

.rn-management-icon::before,
.rn-management-icon::after {
  content:"";
  position:absolute;
  background:#087f78;
}

.rn-management-icon-docs::before {
  width:18px;
  height:22px;
  left:12px;
  top:9px;
  border:2px solid #087f78;
  border-radius:3px;
  background:transparent;
}

.rn-management-icon-docs::after {
  width:14px;
  height:2px;
  left:14px;
  top:17px;
  box-shadow:0 6px 0 #087f78;
}

.rn-management-icon-missing::before {
  width:18px;
  height:18px;
  left:12px;
  top:8px;
  border:3px solid #087f78;
  border-radius:999px;
  background:transparent;
}

.rn-management-icon-missing::after {
  width:14px;
  height:3px;
  left:25px;
  top:26px;
  transform:rotate(45deg);
}

.rn-management-icon-children::before {
  width:12px;
  height:12px;
  left:15px;
  top:8px;
  border-radius:999px;
}

.rn-management-icon-children::after {
  width:22px;
  height:12px;
  left:10px;
  top:23px;
  border-radius:12px 12px 4px 4px;
}

.rn-management-icon-rota::before {
  width:22px;
  height:22px;
  left:10px;
  top:10px;
  border:2px solid #087f78;
  border-radius:6px;
  background:transparent;
}

.rn-management-icon-rota::after {
  width:16px;
  height:2px;
  left:13px;
  top:18px;
  box-shadow:0 6px 0 #087f78;
}

.rn-management-home-list {
  border:1px solid #cfe4e1;
  border-radius:16px;
  background:#fff;
  padding:18px;
}

.rn-management-home-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}

.rn-management-home-grid article {
  display:grid;
  gap:12px;
  padding:14px;
}

.rn-management-home-grid article.is-active {
  border-color:#78d7d4;
  background:#f4fffd;
}

.rn-management-home-grid strong {
  display:block;
  color:#061f3a;
  font-size:16px;
}

.rn-management-home-grid dl {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  margin:0;
}

.rn-management-home-grid div {
  min-width:0;
}

.rn-management-home-grid dd {
  margin:3px 0 0;
  color:#061f3a;
  font-weight:950;
}

.rn-management-home-grid a {
  justify-self:end;
  border:1px solid #83d8d2;
  border-radius:999px;
  padding:7px 13px;
  color:#006f69;
  font-weight:950;
  text-decoration:none;
}

.rn-work-layout {
  display:grid;
  grid-template-columns:minmax(260px, 340px) minmax(0, 1fr);
  gap:16px;
  align-items:start;
}

.rn-work-list-panel,
.rn-work-editor-panel {
  padding:18px;
}

.rn-work-list-panel {
  position:sticky;
  top:18px;
}

.rn-work-list {
  display:grid;
  gap:10px;
  margin-top:14px;
}

.rn-work-list a {
  display:grid;
  gap:4px;
  border:1px solid #d8e9e6;
  border-radius:12px;
  padding:12px;
  color:#061f3a;
  text-decoration:none;
}

.rn-work-list a.is-active,
.rn-work-list a:hover {
  border-color:#78d7d4;
  background:#f4fffd;
}

.rn-work-home-filter {
  grid-template-columns:1fr;
}

.rn-work-empty {
  display:grid;
  justify-items:start;
  gap:10px;
  min-height:320px;
  align-content:center;
}

.rn-work-empty h2,
.rn-work-form-header h2 {
  margin:0;
  color:#061f3a;
}

.rn-work-form {
  display:grid;
  gap:18px;
}

.rn-work-form-header {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:start;
  border-bottom:1px solid #d8e9e6;
  padding-bottom:14px;
}

.rn-work-autosave {
  border:1px solid #b8e8e1;
  border-radius:999px;
  background:#f0fffc;
  color:#006f69;
  padding:8px 12px;
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}

.rn-work-manager-box {
  display:grid;
  gap:12px;
  border:1px solid #ffd8a8;
  border-radius:14px;
  background:#fffaf1;
  padding:14px;
}

.rn-work-side-panels {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:18px;
}

.rn-work-side-panels section {
  padding:14px;
}

.rn-work-side-panels h3 {
  margin:0 0 10px;
  color:#061f3a;
}

.rn-work-side-panels article {
  display:grid;
  gap:3px;
  border-top:1px solid #e0eeeb;
  padding:10px 0;
}

.rn-work-takeover-form {
  margin-bottom:14px;
}

@media (max-width:1100px) {
  .rn-management-overview,
  .rn-management-grid,
  .rn-management-home-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .rn-work-layout {
    grid-template-columns:1fr;
  }

  .rn-work-list-panel {
    position:static;
  }
}

@media (max-width:720px) {
  .rn-management-stage,
  .rn-work-stage {
    padding:16px 12px 30px;
  }

  .rn-management-hero,
  .rn-work-form-header {
    display:grid;
  }

  .rn-management-hero-actions,
  .rn-work-actions {
    justify-content:start;
  }

  .rn-management-filter {
    grid-template-columns:1fr;
  }

  .rn-management-overview,
  .rn-management-grid,
  .rn-management-home-grid,
  .rn-work-side-panels {
    grid-template-columns:1fr;
  }
}

@media (max-width: 1120px) {
  .rn-missing-layout,
  .rn-missing-action-grid,
  .rn-missing-live-board,
  .rn-missing-secondary-grid {
    grid-template-columns:1fr;
  }

  .rn-missing-left-panel {
    order:1;
  }

  .rn-missing-detail-panel {
    order:2;
  }
}

@media (max-width: 760px) {
  .rn-missing-stage {
    padding:18px 12px 46px;
  }

  .rn-missing-strip,
  .rn-missing-episode-meta,
  .rn-missing-compact-form,
  .rn-missing-protocol-form,
  .rn-missing-review-form,
  .rn-missing-form-grid,
  .rn-description-form-grid,
  .rn-missing-description-mini-grid,
  .rn-description-readonly-grid {
    grid-template-columns:1fr;
  }

  .rn-missing-snapshot-grid div:nth-child(n+5) {
    grid-column:auto;
  }

  .rn-missing-filter {
    grid-template-columns:1fr;
  }
}

/* ResiRota dashboard layout repair */
.rn-page.rn-rota-page {
  width:min(1540px, calc(100% - 44px));
}

.rn-rota-dashboard-board {
  overflow:hidden;
}

.rn-rota-dashboard-board .rn-section-heading,
.rn-rota-dashboard-intel-grid .rn-section-heading,
.rn-rota-brief-card .rn-section-heading {
  align-items:flex-start;
}

.rn-rota-dashboard-days {
  gap:12px;
  grid-template-columns:repeat(7,minmax(150px,1fr));
}

.rn-rota-dashboard-days .rn-rota-day {
  align-content:start;
  gap:7px;
  min-height:172px;
  padding:12px;
}

.rn-rota-dashboard-days .rn-rota-day-head strong {
  font-size:14px;
}

.rn-rota-dashboard-days .rn-rota-day-counts {
  font-size:11px;
  padding-bottom:5px;
}

.rn-rota-dashboard-days .rn-rota-empty-line {
  align-items:center;
  display:flex;
  justify-content:center;
  min-height:36px;
}

.rn-rota-dashboard-intel-grid {
  align-items:stretch;
  grid-template-columns:repeat(2,minmax(320px,1fr));
}

.rn-rota-dashboard-intel-grid .rn-rota-card {
  margin-bottom:0;
}

.rn-rota-dashboard-intel-grid .rn-section-heading {
  margin-bottom:12px;
}

.rn-rota-dashboard-intel-grid .rn-btn {
  min-height:40px;
  padding:9px 14px;
  white-space:nowrap;
}

.rn-rota-whatif-list {
  gap:12px;
}

.rn-rota-whatif-item {
  min-height:78px;
}

.rn-rota-evidence-pulse {
  grid-template-columns:repeat(2,minmax(150px,1fr));
}

.rn-rota-brief-card {
  clear:both;
}

.rn-rota-brief-grid {
  grid-template-columns:repeat(4,minmax(180px,1fr));
}

.rn-rota-command-grid {
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
}

@media (max-width: 1200px) {
  .rn-page.rn-rota-page {
    width:calc(100% - 32px);
  }

  .rn-rota-dashboard-days {
    grid-template-columns:repeat(4,minmax(150px,1fr));
  }

  .rn-rota-dashboard-intel-grid {
    grid-template-columns:1fr;
  }

  .rn-rota-brief-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .rn-page.rn-rota-page {
    width:calc(100% - 22px);
  }

  .rn-rota-dashboard-days,
  .rn-rota-brief-grid,
  .rn-rota-evidence-pulse {
    grid-template-columns:1fr;
  }

  .rn-rota-dashboard-board .rn-section-heading,
  .rn-rota-dashboard-intel-grid .rn-section-heading,
  .rn-rota-brief-card .rn-section-heading {
    gap:10px;
  }
}

/* ResiRota staff-facing view */
.rn-rota-staff-landing {
  display:grid;
  gap:18px;
}

.rn-rota-staff-strip {
  display:grid;
  gap:12px;
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.rn-rota-staff-strip article,
.rn-rota-staff-shift-list article {
  background:#f8fffd;
  border:1px solid var(--rn-border);
  border-radius:14px;
  display:grid;
  gap:4px;
  padding:12px;
}

.rn-rota-staff-strip span,
.rn-rota-staff-shift-list span {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:900;
}

.rn-rota-staff-strip strong,
.rn-rota-staff-next h3,
.rn-rota-staff-shift-list strong {
  color:var(--rn-navy);
}

.rn-rota-staff-strip small,
.rn-rota-staff-shift-list small {
  color:var(--rn-muted);
  font-weight:800;
}

.rn-rota-staff-next {
  display:grid;
  gap:10px;
}

.rn-rota-staff-next h3 {
  font-size:20px;
  margin:0;
}

.rn-rota-staff-shift-list {
  display:grid;
  gap:10px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.rn-rota-staff-day {
  border-color:#cfe4e1;
}

.rn-rota-staff-day .rn-rota-day-head {
  margin-bottom:6px;
}

@media (max-width:760px) {
  .rn-rota-staff-strip,
  .rn-rota-staff-shift-list {
    grid-template-columns:1fr;
  }
}

/* Public demo front page. Kept in the shared stylesheet so DEMO styling is not lost
   when tenant CSS is refreshed from DEV. */
.demo-shell {
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(300px,380px) minmax(0,1fr);
  background:#f6faf9;
  color:var(--rn-text);
}

.demo-login {
  min-height:100vh;
  padding:clamp(24px,4vw,48px);
  background:#ffffff;
  border-right:1px solid var(--rn-border);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:22px;
}

.demo-brand img {
  width:min(190px,72vw);
  max-height:90px;
  object-fit:contain;
  display:block;
}

.demo-copy {
  margin:0;
  color:var(--rn-muted);
  line-height:1.5;
  font-size:15px;
}

.demo-form {
  display:grid;
  gap:14px;
}

.demo-form label {
  display:grid;
  gap:7px;
  font-size:13px;
  font-weight:800;
  color:#334155;
}

.demo-form input {
  width:100%;
  min-height:46px;
  border:1px solid var(--rn-border);
  border-radius:8px;
  padding:0 13px;
  font-size:15px;
  color:var(--rn-text);
  background:#ffffff;
}

.demo-form input:focus {
  outline:3px solid rgba(0,118,108,.16);
  border-color:var(--rn-brand);
}

.demo-submit {
  min-height:46px;
  border:0;
  border-radius:8px;
  background:var(--rn-brand);
  color:#ffffff;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}

.demo-submit:hover {
  background:var(--rn-brand-dark);
}

.demo-alert {
  border:1px solid #fecaca;
  border-radius:8px;
  background:#fff1f2;
  color:#991b1b;
  padding:11px 12px;
  font-size:13px;
  font-weight:800;
}

.demo-stage {
  min-height:100vh;
  padding:clamp(24px,3vw,42px);
  display:flex;
  align-items:center;
}

.demo-stage-inner {
  width:100%;
  max-width:1100px;
  display:grid;
  gap:18px;
}

.demo-banner {
  border:1px solid #fed7aa;
  background:#fff7ed;
  color:#9a3412;
  border-radius:8px;
  padding:13px 15px;
  font-size:14px;
  font-weight:850;
}

.demo-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
}

.demo-account {
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#ffffff;
  padding:17px;
  display:grid;
  gap:10px;
  min-width:0;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}

.demo-account h2 {
  margin:0;
  font-size:16px;
  line-height:1.2;
  letter-spacing:0;
}

.demo-account p {
  margin:0;
  color:var(--rn-muted);
  font-size:13px;
  line-height:1.4;
}

.demo-credential {
  display:grid;
  gap:4px;
  min-width:0;
}

.demo-credential span {
  color:var(--rn-muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.demo-credential code {
  display:block;
  overflow-wrap:anywhere;
  border:1px solid #cce7e2;
  border-radius:7px;
  background:var(--rn-soft);
  color:#0f3f39;
  padding:7px 8px;
  font-size:12px;
  line-height:1.35;
}

.demo-use {
  min-height:38px;
  border:1px solid var(--rn-brand);
  border-radius:8px;
  background:#ffffff;
  color:var(--rn-brand-dark);
  font-weight:900;
  cursor:pointer;
}

.demo-use:hover {
  background:var(--rn-soft);
}

@media (max-width:1040px) {
  .demo-shell {
    grid-template-columns:1fr;
  }

  .demo-login {
    min-height:auto;
    border-right:0;
    border-bottom:1px solid var(--rn-border);
  }

  .demo-stage {
    min-height:auto;
    align-items:stretch;
  }

  .demo-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px) {
  .demo-login,
  .demo-stage {
    padding:20px;
  }

  .demo-grid {
    grid-template-columns:1fr;
  }
}

/* Mobile Chrome shell and message action polish */
.rn-feed-banner-actions {
  align-items:center;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  min-width:0;
}

.rn-feed-banner-actions .rn-btn {
  align-items:center;
  display:inline-flex;
  flex:0 1 auto;
  justify-content:center;
  min-height:48px;
  min-width:128px;
  padding:12px 16px;
  white-space:normal;
  width:auto;
}

@media (max-width: 860px) {
  body.rn-nav-open {
    overflow:hidden;
  }

  .rn-topbar {
    align-items:center;
    gap:10px;
    min-width:0;
    position:sticky;
    top:0;
    z-index:1200;
  }

  .rn-menu-btn {
    align-items:center;
    display:inline-flex !important;
    flex:0 0 48px;
    font-size:24px;
    height:48px;
    justify-content:center;
    line-height:1;
    width:48px;
  }

  .rn-topbar-title {
    flex:1 1 auto;
    min-width:0;
  }

  .rn-topbar-title strong,
  .rn-topbar-title a {
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .rn-topbar-message,
  .rn-notification-bell {
    flex:0 0 48px;
    height:48px;
    margin-left:0;
    width:48px;
  }

  .rn-sidebar {
    bottom:0 !important;
    display:flex !important;
    height:100dvh !important;
    left:0 !important;
    max-width:320px !important;
    overflow-y:auto !important;
    position:fixed !important;
    top:0 !important;
    transform:translateX(-110%) !important;
    transition:transform .2s ease !important;
    width:min(86vw, 320px) !important;
    z-index:5000 !important;
  }

  body.rn-nav-open .rn-sidebar {
    transform:translateX(0) !important;
  }

  .rn-mobile-overlay {
    display:none;
  }

  body.rn-nav-open .rn-mobile-overlay {
    background:rgba(7, 29, 56, .34);
    display:block !important;
    inset:0;
    position:fixed;
    z-index:4900;
  }
}

@media (max-width: 760px) {
  .rn-profile-stage,
  .rn-feed-stage {
    padding-left:12px;
    padding-right:12px;
  }

  .rn-feed-banner {
    align-items:stretch;
    display:grid;
    gap:14px;
  }

  .rn-feed-banner-actions {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    justify-content:stretch;
  }

  .rn-feed-banner-actions .rn-btn {
    min-width:0;
    padding:11px 10px;
    width:100%;
  }
}

@media (max-width: 420px) {
  .rn-feed-banner-actions {
    grid-template-columns:1fr;
  }
}

/* Diary module */
.rn-diary-stage {
    gap: 24px;
}

.rn-diary-child-mode .rn-diary-hero,
.rn-diary-home-mode .rn-diary-hero {
    align-items: center;
}

.rn-diary-home-mode .rn-diary-hero {
    border-left: 5px solid #d99032;
}

.rn-diary-child-mode .rn-diary-hero {
    border-left: 5px solid #70d7d3;
}

.rn-diary-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rn-diary-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.rn-diary-summary-grid article,
.rn-diary-event-card {
    border: 1px solid rgba(0, 126, 122, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 32px rgba(4, 47, 46, .06);
}

.rn-diary-summary-grid article {
    padding: 16px 18px;
}

.rn-diary-summary-grid span,
.rn-diary-date,
.rn-diary-event-card small {
    display: block;
    color: #536984;
    font-size: .84rem;
    font-weight: 800;
}

.rn-diary-summary-grid strong {
    display: block;
    margin-top: 7px;
    color: #002247;
    font-size: 1.25rem;
}

.rn-diary-panel {
    margin-top: 22px;
    border-top: 4px solid #70d7d3;
    padding-top: 22px;
}

.rn-diary-home-mode .rn-diary-panel {
    border-top-color: #d99032;
}

.rn-diary-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.rn-diary-form,
.rn-diary-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.rn-diary-form label,
.rn-diary-filters label {
    display: grid;
    gap: 6px;
    color: #536984;
    font-weight: 800;
}

.rn-diary-form input,
.rn-diary-form select,
.rn-diary-form textarea,
.rn-diary-filters input,
.rn-diary-filters select,
.rn-diary-event-actions input {
    width: 100%;
    border: 1px solid rgba(0, 126, 122, .25);
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    color: #002247;
    font: inherit;
    font-weight: 750;
}

.rn-diary-span,
.rn-diary-child-select,
.rn-diary-home-only {
    grid-column: 1 / -1;
}

.rn-diary-child-select {
    border: 1px solid rgba(0, 126, 122, .22);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.rn-diary-child-select legend {
    padding: 0 8px;
    color: #007e7a;
    font-weight: 900;
}

.rn-diary-child-select label,
.rn-diary-check {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(112, 215, 211, .08);
}

.rn-diary-home-only {
    background: rgba(217, 144, 50, .1);
    border: 1px solid rgba(217, 144, 50, .22);
}

.rn-diary-check input,
.rn-diary-child-select input {
    width: 18px !important;
    height: 18px;
    min-height: 0;
    margin: 0;
    flex: 0 0 auto;
}

.rn-diary-check span,
.rn-diary-child-select span {
    min-width: 0;
}

.rn-diary-submit {
    grid-column: 1 / -1;
}

.rn-diary-event-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.rn-diary-event-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 16px;
    padding: 16px;
}

.rn-diary-event-card h3 {
    margin: 4px 0;
    color: #002247;
}

.rn-diary-note {
    margin: 10px 0 0;
    color: #002247;
}

.rn-diary-child-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.rn-diary-child-chips a,
.rn-diary-home-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(0, 126, 122, .2);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(112, 215, 211, .08);
    color: #002247;
    text-decoration: none;
    font-weight: 850;
}

.rn-diary-home-chip {
    border-color: rgba(217, 144, 50, .3);
    background: rgba(217, 144, 50, .1);
    color: #8a4f10;
}

.rn-diary-child-chips em,
.rn-diary-child-chips b {
    font-size: .75rem;
    color: #536984;
}

.rn-diary-child-chips b {
    color: #9a4b00;
}

.rn-diary-event-actions {
    display: grid;
    gap: 10px;
}

.rn-diary-event-actions form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.rn-diary-event-actions form:has(input[type="datetime-local"]) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.rn-diary-event-actions button,
.rn-diary-submit {
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    background: #007e7a;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 126, 122, .16);
}

.rn-diary-status-cancelled {
    opacity: .72;
}

.rn-diary-status-completed {
    border-left: 4px solid #15803d;
}

.rn-diary-status-rearranged {
    border-left: 4px solid #d99032;
}

.rn-young-hub-tools {
    margin-top: 20px;
}

.rn-young-hub-card.is-disabled {
    pointer-events: none;
    opacity: .7;
}

@media (max-width: 900px) {
    .rn-diary-summary-grid,
    .rn-diary-form,
    .rn-diary-filters,
    .rn-diary-child-select,
    .rn-diary-event-card {
        grid-template-columns: 1fr;
    }

    .rn-diary-section-head,
    .rn-diary-hero-actions {
        justify-content: flex-start;
    }

    .rn-diary-event-actions form,
    .rn-diary-event-actions form:has(input[type="datetime-local"]) {
        grid-template-columns: 1fr;
    }
}

/* Diary module calendar workboard */
.rn-diary-home-mode .rn-diary-section-head h2::after {
    content: none !important;
    display: none !important;
}

.rn-diary-workspace {
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(380px, 1.1fr);
    gap: 20px;
    align-items: start;
}

.rn-diary-create-panel,
.rn-diary-day-panel {
    min-width: 0;
}

.rn-diary-create-panel .rn-diary-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rn-diary-create-panel .rn-diary-check {
    min-height: auto;
    padding: 12px 14px;
    align-items: center;
}

.rn-diary-create-panel .rn-diary-check input {
    width: 18px;
    height: 18px;
}

.rn-diary-create-panel .rn-diary-submit {
    grid-column: 1 / -1;
}

.rn-diary-day-panel .rn-diary-event-card,
.rn-diary-recall-panel .rn-diary-event-card {
    grid-template-columns: 1fr;
}

.rn-diary-month-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.rn-diary-calendar-weekdays,
.rn-diary-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.rn-diary-calendar-weekdays {
    margin-top: 14px;
    color: #536984;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rn-diary-calendar-weekdays span {
    padding: 0 4px;
}

.rn-diary-calendar-grid {
    margin-top: 8px;
}

.rn-diary-calendar-day {
    min-height: 74px;
    border: 1px solid rgba(112, 215, 211, .42);
    border-radius: 8px;
    padding: 9px;
    background: rgba(255, 255, 255, .86);
    color: #002247;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 18px rgba(0, 34, 71, .05);
}

.rn-diary-calendar-day:hover,
.rn-diary-calendar-day.is-selected {
    border-color: rgba(0, 126, 122, .82);
    background: rgba(112, 215, 211, .16);
}

.rn-diary-calendar-day.is-outside {
    opacity: .45;
}

.rn-diary-calendar-day span {
    font-weight: 900;
}

.rn-diary-calendar-day strong {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #007e7a;
    color: #fff;
    font-size: .82rem;
    align-self: flex-end;
}

.rn-diary-recall-list .rn-diary-event-card {
    padding: 14px;
}

@media (max-width: 1100px) {
    .rn-diary-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .rn-diary-create-panel .rn-diary-form {
        grid-template-columns: 1fr;
    }

    .rn-diary-month-actions {
        justify-content: flex-start;
    }

    .rn-diary-calendar-weekdays,
    .rn-diary-calendar-grid {
        gap: 5px;
    }

    .rn-diary-calendar-day {
        min-height: 52px;
        padding: 7px;
    }

    .rn-diary-calendar-day strong {
        width: 22px;
        height: 22px;
        font-size: .72rem;
    }
}

/* Controlled child data exports */
.rn-data-export-panel {
    border-top-color: #fed7aa;
}

.rn-data-export-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rn-data-export-form label,
.rn-data-export-form fieldset {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #334155;
    font-size: .86rem;
    font-weight: 850;
}

.rn-data-export-form input,
.rn-data-export-form select,
.rn-data-export-form textarea {
    width: 100%;
    border: 1px solid rgba(112, 215, 211, .44);
    border-radius: 12px;
    background: #fff;
    color: #002247;
    padding: 11px 12px;
    font: inherit;
}

.rn-data-export-form textarea {
    min-height: 96px;
    resize: vertical;
}

.rn-data-export-wide {
    grid-column: 1 / -1;
}

.rn-data-export-checks {
    border: 1px solid rgba(112, 215, 211, .42);
    border-radius: 14px;
    background: rgba(245, 255, 253, .78);
    padding: 12px;
}

.rn-data-export-checks legend {
    padding: 0 6px;
    color: #007e7a;
    font-weight: 950;
}

.rn-data-export-checks label {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid rgba(112, 215, 211, .32);
    border-radius: 12px;
    background: #fff;
}

.rn-data-export-checks input {
    width: auto !important;
}

.rn-data-export-form > label,
.rn-data-export-form fieldset {
    min-width: 0;
    border: 1px solid rgba(112, 215, 211, .34);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfffe);
    padding: 13px;
    box-shadow: 0 8px 20px rgba(0, 34, 71, .035);
}

.rn-data-export-form > label > span:first-child,
.rn-data-export-checks legend {
    color: #516783;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.rn-data-export-form input,
.rn-data-export-form select,
.rn-data-export-form textarea {
    min-height: 46px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.rn-data-export-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rn-data-export-checks legend {
    grid-column: 1 / -1;
    padding: 0;
}

.rn-data-export-checks label {
    margin: 0;
    box-shadow: none;
}

.rn-data-export-email-option {
    display: flex !important;
    align-items: center;
    gap: 12px;
    border-color: rgba(250, 178, 89, .55) !important;
    background: linear-gradient(180deg, #fffaf3, #fffefd) !important;
}

.rn-data-export-email-option input {
    width: 18px !important;
    min-width: 18px;
    min-height: 18px;
}

.rn-data-export-email-option span {
    color: #002247;
    font-weight: 950;
    text-transform: none !important;
}

@media (max-width: 760px) {
    .rn-data-export-form {
        grid-template-columns: 1fr;
    }

    .rn-data-export-checks {
        grid-template-columns: 1fr;
    }
}

/* Young Person profile consolidation */
.rn-young-care-snapshot {
  display:grid;
  gap:12px;
  margin-top:16px;
  padding:14px;
  border:1px solid var(--rn-border);
  border-left:4px solid var(--rn-line-amber);
  border-radius:14px;
  background:linear-gradient(90deg,rgba(255,250,242,.92),rgba(248,255,253,.92));
}

.rn-young-care-snapshot-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.rn-young-care-snapshot-head h3 {
  margin:0;
  color:var(--rn-text);
  font-size:17px;
}

.rn-young-care-snapshot-head span {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:850;
}

.rn-young-care-snapshot-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.rn-young-care-snapshot-grid article {
  min-width:0;
  display:grid;
  gap:4px;
  padding:12px;
  border:1px solid rgba(112,215,211,.42);
  border-radius:8px;
  background:#fff;
}

.rn-young-care-snapshot-grid article.has-alert,
.rn-young-care-snapshot-grid article.risk-high,
.rn-young-care-snapshot-grid article.risk-critical {
  border-color:rgba(220,38,38,.45);
  box-shadow:inset 4px 0 0 #dc2626;
}

.rn-young-care-snapshot-grid span {
  color:var(--rn-muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-young-care-snapshot-grid strong {
  color:var(--rn-text);
  font-size:15px;
  overflow-wrap:anywhere;
}

.rn-young-care-snapshot-grid small {
  color:var(--rn-muted);
  font-weight:720;
  line-height:1.35;
}

.rn-young-rapid-actions {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

.rn-young-rapid-action-form {
  display:block;
  margin:0;
}

.rn-young-rapid-action {
  width:100%;
  min-height:76px;
  display:grid;
  align-content:center;
  gap:4px;
  padding:13px 15px;
  border:1px solid #a9d9d4;
  border-left:5px solid var(--rn-brand);
  border-radius:12px;
  background:linear-gradient(180deg,#f7fffd 0%,#ffffff 100%);
  color:var(--rn-brand-dark);
  text-align:left;
  text-decoration:none;
  box-shadow:0 12px 24px rgba(15,23,42,.085);
}

button.rn-young-rapid-action {
  font:inherit;
  cursor:pointer;
}

.rn-young-rapid-action strong {
  color:#061a31;
  font-size:15px;
  font-weight:950;
  line-height:1.15;
}

.rn-young-rapid-action small {
  color:#455a73;
  font-size:12px;
  font-weight:780;
  line-height:1.25;
}

.rn-young-rapid-action.is-missing {
  border-left-color:#d04437;
  border-color:#efb5ad;
  background:linear-gradient(180deg,#fff6f4 0%,#ffffff 100%);
}

.rn-young-rapid-action.is-incident {
  border-left-color:#c47b1b;
  border-color:#edc886;
  background:linear-gradient(180deg,#fff8ea 0%,#ffffff 100%);
}

.rn-young-rapid-action.is-safeguarding {
  border-left-color:#a04f8f;
  border-color:#dec2d8;
  background:linear-gradient(180deg,#fff6fd 0%,#ffffff 100%);
}

.rn-young-rapid-action.is-live {
  border-color:#f0b5aa;
  box-shadow:0 14px 28px rgba(180,35,24,.12);
}

.rn-young-rapid-action.is-planned {
  border-style:solid;
}

.rn-young-rapid-action.is-disabled {
  opacity:.72;
  border-left-color:#94a3b8;
  background:#f8fafc;
}

.rn-young-rapid-action:hover,
.rn-young-rapid-action:focus {
  transform:translateY(-1px);
  border-color:var(--rn-brand);
  box-shadow:0 16px 30px rgba(0,118,108,.12);
}

.rn-young-module-record-block {
  display:grid;
  gap:12px;
  padding-top:16px;
  border-top:1px solid var(--rn-border);
}

.rn-young-module-record-block:first-of-type {
  padding-top:0;
  border-top:0;
}

.rn-young-module-record-block > h3 {
  margin:0;
  color:var(--rn-text);
  font-size:17px;
}

.rn-young-contact-dashboard {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.rn-young-contact-dashboard .rn-young-module-record-block {
  padding:14px;
  border:1px solid var(--rn-border);
  border-top:3px solid var(--rn-line-teal);
  border-radius:10px;
  background:#fbfffe;
}

.rn-young-contact-dashboard .rn-young-module-record-block:nth-child(even) {
  border-top-color:var(--rn-line-amber);
}

.rn-young-contact-wide {
  grid-column:1 / -1;
}

.rn-young-compact-record-list {
  display:grid;
  gap:8px;
}

.rn-young-compact-record-list article {
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);
  gap:12px;
  padding:10px 11px;
  border:1px solid rgba(112,215,211,.34);
  border-radius:8px;
  background:#fff;
}

.rn-young-compact-record-list article > div {
  min-width:0;
  display:grid;
  gap:3px;
}

.rn-young-compact-record-list article > div:last-child {
  text-align:right;
}

.rn-young-compact-record-list strong,
.rn-young-compact-record-list span,
.rn-young-compact-record-list small,
.rn-young-compact-record-list em {
  overflow-wrap:anywhere;
}

.rn-young-compact-record-list strong { color:var(--rn-text); }
.rn-young-compact-record-list span,
.rn-young-compact-record-list small { color:var(--rn-muted); }
.rn-young-compact-record-list em {
  color:var(--rn-brand-dark);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}

.rn-young-related-records,
.rn-young-module-map-action { margin-top:2px; }

@media (max-width:1000px) {
  .rn-young-care-snapshot-grid,
  .rn-young-rapid-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:700px) {
  .rn-young-care-snapshot-head {
    align-items:flex-start;
    flex-direction:column;
  }

  .rn-young-care-snapshot-grid,
  .rn-young-rapid-actions,
  .rn-young-contact-dashboard,
  .rn-young-compact-record-list article { grid-template-columns:1fr; }
  .rn-young-contact-wide { grid-column:auto; }
  .rn-young-compact-record-list article > div:last-child { text-align:left; }
}

/* Young Person professional contact lifecycle */
.rn-professional-lifecycle-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

.rn-professional-lifecycle-head h3,
.rn-young-family-add h4 {
  margin:0 0 6px;
}

.rn-young-family-add h4 {
  margin-top:22px;
  font-size:17px;
}

.rn-professional-current-list {
  display:grid;
  gap:8px;
  margin:12px 0 4px;
}

.rn-professional-current-list article {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border:1px solid var(--rn-line);
  border-left:4px solid var(--rn-brand);
  border-radius:8px;
  background:#fff;
}

.rn-professional-current-list article > div {
  display:grid;
  min-width:0;
  gap:3px;
}

.rn-professional-current-list article > div:last-child {
  justify-items:end;
}

.rn-professional-current-list strong,
.rn-professional-current-list span,
.rn-professional-current-list small {
  overflow-wrap:anywhere;
}

.rn-professional-current-list span,
.rn-professional-current-list small {
  color:var(--rn-muted);
}

.rn-professional-status {
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:4px 8px;
  border:1px solid #99d9d2;
  border-radius:999px;
  background:#edf9f7;
  color:var(--rn-brand-dark);
  font-size:11px;
  font-style:normal;
  font-weight:850;
}

.rn-professional-status.is-transition {
  border-color:#efc17b;
  background:#fff7ea;
  color:#7b4c0d;
}

.rn-professional-history {
  margin-top:12px;
  padding:0;
  border:1px solid var(--rn-line);
  border-radius:8px;
  background:#fbfdfd;
}

.rn-professional-history > summary {
  cursor:pointer;
  padding:12px 14px;
  color:var(--rn-brand-dark);
  font-weight:850;
}

.rn-professional-history[open] > summary {
  border-bottom:1px solid var(--rn-line);
}

.rn-professional-history .rn-young-compact-record-list {
  padding:10px;
}

.rn-professional-transition-check {
  grid-column:span 2;
}

.rn-property-form-grid label small {
  display:block;
  margin-top:5px;
  color:var(--rn-muted);
  font-size:11px;
  font-weight:650;
}

@media (max-width:700px) {
  .rn-professional-current-list article {
    grid-template-columns:1fr;
  }

  .rn-professional-current-list article > div:last-child {
    justify-items:start;
  }

  .rn-professional-transition-check {
    grid-column:auto;
  }
}

/* Clear child section cards and Restrictions & Permissions */
.rn-young-module-detail-page > .rn-young-module-record-block {
  padding:16px;
  border:1px solid var(--rn-border);
  border-top:4px solid var(--rn-line-teal);
  border-radius:8px;
  background:#fff;
}

.rn-young-module-detail-page > .rn-young-module-record-block + .rn-young-module-record-block,
.rn-young-module-detail-page > .rn-young-module-record-block + .rn-young-contact-dashboard,
.rn-young-contact-dashboard {
  margin-top:14px;
}

.rn-young-module-detail-page > .rn-young-module-record-block:nth-of-type(even) {
  border-top-color:var(--rn-line-amber);
}

.rn-young-profile-status-line {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}

.rn-child-critical-pill {
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:5px 9px;
  border:1px solid #e3473f;
  border-radius:999px;
  background:#b42318;
  color:#fff;
  font-size:11px;
  font-style:normal;
  font-weight:900;
  line-height:1.2;
  overflow-wrap:anywhere;
}

.rn-young-snapshot-body .rn-child-critical-pill {
  margin-top:3px;
}

.rn-young-care-snapshot-grid article.has-critical-alert {
  border-color:#e3473f;
  border-left:5px solid #b42318;
  background:#fff5f4;
}

.rn-restrictions-page {
  display:grid;
  gap:18px;
}

.rn-restriction-current-section,
.rn-restriction-create-section,
.rn-restriction-history {
  padding:18px;
  border:1px solid var(--rn-border);
  border-top:4px solid var(--rn-line-teal);
  border-radius:8px;
  background:#fff;
}

.rn-restriction-create-section {
  border-top-color:var(--rn-line-amber);
}

.rn-restriction-section-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.rn-restriction-section-head h3,
.rn-restriction-section-head p {
  margin:0;
}

.rn-restriction-section-head p {
  margin-top:5px;
  color:var(--rn-muted);
}

.rn-restriction-section-head > span {
  flex:0 0 auto;
  padding:5px 9px;
  border:1px solid var(--rn-line);
  border-radius:999px;
  color:var(--rn-brand-dark);
  font-size:11px;
  font-weight:850;
}

.rn-restriction-list {
  display:grid;
  gap:12px;
}

.rn-restriction-card {
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid var(--rn-line);
  border-left:5px solid var(--rn-brand);
  border-radius:8px;
  background:#fbfefd;
}

.rn-restriction-card.is-critical {
  border-color:#e6aaa5;
  border-left-color:#b42318;
  background:#fff8f7;
}

.rn-restriction-card > header {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}

.rn-restriction-card header div {
  display:grid;
  gap:3px;
}

.rn-restriction-card header span,
.rn-restriction-facts span,
.rn-restriction-narrative span {
  color:var(--rn-muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}

.rn-restriction-card h4 {
  margin:0;
  font-size:19px;
}

.rn-restriction-status {
  padding:5px 9px;
  border:1px solid #9fd7d2;
  border-radius:999px;
  background:#edf9f7;
  color:var(--rn-brand-dark);
  font-size:11px;
  font-style:normal;
  font-weight:900;
}

.rn-restriction-status.is-scheduled {
  border-color:#efc17b;
  background:#fff7ea;
  color:#7b4c0d;
}

.rn-restriction-facts {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.rn-restriction-facts > div,
.rn-restriction-narrative > div {
  display:grid;
  gap:4px;
  min-width:0;
  padding:10px 12px;
  border:1px solid var(--rn-line);
  border-radius:7px;
  background:#fff;
}

.rn-restriction-facts strong,
.rn-restriction-narrative p {
  margin:0;
  overflow-wrap:anywhere;
}

.rn-restriction-narrative {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.rn-restriction-meta {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.rn-restriction-meta span {
  padding:4px 8px;
  border:1px solid var(--rn-line);
  border-radius:999px;
  background:#fff;
  color:var(--rn-muted);
  font-size:11px;
  font-weight:750;
}

.rn-restriction-manager-actions {
  display:grid;
  gap:10px;
  padding-top:12px;
  border-top:1px solid var(--rn-line);
}

.rn-restriction-manager-actions form {
  display:grid;
  grid-template-columns:minmax(180px,.8fr) minmax(240px,1.5fr) auto;
  gap:10px;
  align-items:end;
}

.rn-restriction-manager-actions label,
.rn-restriction-form label {
  display:grid;
  gap:5px;
  min-width:0;
}

.rn-restriction-manager-actions label > span,
.rn-restriction-form label > span {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:820;
}

.rn-restriction-manager-actions input,
.rn-restriction-manager-actions select,
.rn-restriction-form input,
.rn-restriction-form select,
.rn-restriction-form textarea {
  width:100%;
  min-height:48px;
  padding:11px 13px;
  border:1px solid #77bdb6;
  border-radius:10px;
  background:#f4fbfa;
  color:var(--rn-text);
  font:inherit;
  font-weight:720;
  line-height:1.35;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 18px rgba(15,23,42,.07);
}

.rn-restriction-manager-actions select,
.rn-restriction-form select {
  appearance:none;
  padding-right:42px;
  background:
    linear-gradient(45deg,transparent 50%,var(--rn-brand-dark) 50%) calc(100% - 19px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg,var(--rn-brand-dark) 50%,transparent 50%) calc(100% - 14px) 50% / 7px 7px no-repeat,
    #f4fbfa;
}

.rn-restriction-manager-actions textarea,
.rn-restriction-form textarea {
  min-height:86px;
  resize:vertical;
}

.rn-restriction-manager-actions input::placeholder,
.rn-restriction-form input::placeholder,
.rn-restriction-form textarea::placeholder {
  color:#52677f;
  font-weight:620;
  opacity:1;
}

.rn-restriction-manager-actions input:focus,
.rn-restriction-manager-actions select:focus,
.rn-restriction-form input:focus,
.rn-restriction-form select:focus,
.rn-restriction-form textarea:focus {
  outline:none;
  border-color:rgba(0,118,108,.55);
  box-shadow:0 0 0 4px rgba(0,118,108,.10);
}

.rn-restriction-form small {
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

.rn-restriction-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.rn-restriction-wide,
.rn-restriction-checks {
  grid-column:1 / -1;
}

.rn-restriction-checks {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.rn-restriction-checks label {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:50px;
  padding:12px 13px;
  border:1px solid #8ccbc4;
  border-radius:10px;
  background:#e8f7f5;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}

.rn-restriction-checks input {
  width:18px;
  min-height:18px;
  height:18px;
  flex:0 0 auto;
  margin:0;
  accent-color:var(--rn-brand);
  box-shadow:none;
}

.rn-restriction-checks span {
  color:#334155;
  font-weight:850;
  line-height:1.25;
}

.rn-restriction-form button,
.rn-restriction-manager-actions button {
  min-height:50px;
  border:0;
  border-radius:999px;
  background:linear-gradient(180deg,var(--rn-brand),var(--rn-brand-dark));
  color:#fff;
  font:inherit;
  font-weight:900;
  box-shadow:0 16px 30px rgba(0,118,108,.18);
  cursor:pointer;
}

.rn-restriction-form button:hover,
.rn-restriction-manager-actions button:hover {
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(0,118,108,.24);
}

.rn-restriction-form button.rn-restriction-wide {
  width:100%;
  margin-top:2px;
}

.rn-restriction-history {
  border-top-color:var(--rn-line-amber);
}

.rn-restriction-history > summary {
  cursor:pointer;
  color:var(--rn-brand-dark);
  font-weight:900;
}

.rn-restriction-history[open] > summary {
  margin-bottom:12px;
  padding-bottom:12px;
  border-bottom:1px solid var(--rn-line);
}

@media (max-width:900px) {
  .rn-restriction-facts,
  .rn-restriction-checks {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .rn-restriction-manager-actions form {
    grid-template-columns:1fr 1fr;
  }

  .rn-restriction-manager-actions button {
    grid-column:1 / -1;
  }
}

@media (max-width:700px) {
  .rn-restriction-section-head,
  .rn-restriction-card > header {
    flex-direction:column;
  }

  .rn-restriction-facts,
  .rn-restriction-narrative,
  .rn-restriction-form,
  .rn-restriction-checks,
  .rn-restriction-manager-actions form {
    grid-template-columns:1fr;
  }

  .rn-restriction-manager-actions button,
  .rn-restriction-wide,
  .rn-restriction-checks {
    grid-column:auto;
  }
}

/* Final rapid-action guard: keeps child profile action cards visually consistent. */
.rn-young-rapid-actions .rn-young-rapid-action,
.rn-young-rapid-actions button.rn-young-rapid-action {
  border:1px solid #a9d9d4 !important;
  border-left:5px solid var(--rn-brand) !important;
  background:linear-gradient(180deg,#f7fffd 0%,#ffffff 100%) !important;
  color:var(--rn-brand-dark) !important;
  box-shadow:0 12px 24px rgba(15,23,42,.085) !important;
}

.rn-young-rapid-actions .rn-young-rapid-action strong,
.rn-young-rapid-actions button.rn-young-rapid-action strong {
  color:#061a31 !important;
}

.rn-young-rapid-actions .rn-young-rapid-action small,
.rn-young-rapid-actions button.rn-young-rapid-action small {
  color:#455a73 !important;
}

.rn-young-rapid-actions .rn-young-rapid-action.is-missing,
.rn-young-rapid-actions button.rn-young-rapid-action.is-missing {
  border:1px solid #efb5ad !important;
  border-left:5px solid #d04437 !important;
  background:linear-gradient(180deg,#fff6f4 0%,#ffffff 100%) !important;
}

.rn-young-rapid-actions .rn-young-rapid-action.is-incident,
.rn-young-rapid-actions button.rn-young-rapid-action.is-incident {
  border:1px solid #edc886 !important;
  border-left:5px solid #c47b1b !important;
  background:linear-gradient(180deg,#fff8ea 0%,#ffffff 100%) !important;
}

.rn-young-rapid-actions .rn-young-rapid-action.is-safeguarding,
.rn-young-rapid-actions button.rn-young-rapid-action.is-safeguarding {
  border:1px solid #dec2d8 !important;
  border-left:5px solid #a04f8f !important;
  background:linear-gradient(180deg,#fff6fd 0%,#ffffff 100%) !important;
}

.rn-young-rapid-actions .rn-young-rapid-action.is-planned {
  border-style:solid !important;
}

/* My Home foundation */
.rn-my-home-stage {
  width:min(1220px,calc(100% - 40px));
  margin:30px auto 70px;
  display:grid;
  gap:18px;
}

.rn-my-home-hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.rn-my-home-hero h1 {
  margin:8px 0 6px;
  color:var(--rn-brand-dark);
}

.rn-my-home-hero p {
  margin:0;
  color:var(--rn-muted);
  font-weight:800;
}

.rn-my-home-panel {
  display:grid;
  gap:16px;
  border-top:4px solid #74d6d2;
}

.rn-my-home-panel h2 {
  margin:0;
  color:var(--rn-brand-dark);
}

.rn-my-home-card-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.rn-my-home-card {
  min-height:126px;
  display:grid;
  align-content:start;
  gap:8px;
  padding:16px;
  border:1px solid #c8e6e2;
  border-radius:14px;
  background:linear-gradient(180deg,#fbfffd 0%,#ffffff 100%);
  box-shadow:0 10px 20px rgba(15,23,42,.045);
}

.rn-my-home-card strong {
  color:#061a31;
  font-size:16px;
}

.rn-my-home-card span {
  color:#52657f;
  font-weight:750;
  line-height:1.45;
}

.rn-my-home-module-groups {
  display:grid;
  gap:20px;
  margin-top:18px;
}

.rn-my-home-module-group {
  padding:16px;
  border:1px solid #cfe5e2;
  border-top:4px solid #087d78;
  border-radius:18px;
  background:rgba(255,255,255,.88);
  box-shadow:0 14px 30px rgba(9,38,64,.055);
}

.rn-my-home-module-group-modules {
  border-top-color:#d9a14a;
}

.rn-my-home-module-group-evidence {
  border-top-color:#7aa0b2;
}

.rn-my-home-module-group-head {
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 2px 14px;
}

.rn-my-home-module-group-head > span {
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #9adfdc;
  border-radius:12px;
  background:#e7fbf8;
  color:#005f57;
  font-weight:950;
}

.rn-my-home-module-group-modules .rn-my-home-module-group-head > span {
  border-color:#f1c789;
  background:#fff2dc;
  color:#8a4b10;
}

.rn-my-home-module-group-evidence .rn-my-home-module-group-head > span {
  border-color:#b8d3df;
  background:#eef5f9;
  color:#31566d;
}

.rn-my-home-module-group-head h3 {
  margin:0;
  color:#061a31;
  font-size:19px;
}

.rn-my-home-module-group-head p {
  max-width:920px;
  margin:4px 0 0;
  color:#52657f;
  font-weight:760;
  line-height:1.45;
}

.rn-my-home-module-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.rn-my-home-module-tile {
  min-height:152px;
  display:grid;
  grid-template-rows:auto auto 1fr auto;
  gap:8px;
  padding:15px;
  border:1px solid #cfe5e2;
  border-left:4px solid #087d78;
  border-radius:14px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 12px 24px rgba(9,38,64,.055);
}

.rn-my-home-module-tile-modules {
  border-left-color:#d9a14a;
}

.rn-my-home-module-tile-evidence {
  border-left-color:#7aa0b2;
}

.rn-my-home-module-tile:hover {
  border-color:#74d6d2;
  box-shadow:0 16px 30px rgba(9,38,64,.085);
  transform:translateY(-1px);
}

.rn-my-home-module-tile em {
  color:#52657f;
  font-size:11px;
  font-style:normal;
  font-weight:950;
  text-transform:uppercase;
}

.rn-my-home-module-tile strong {
  color:#061a31;
  font-size:17px;
  line-height:1.25;
}

.rn-my-home-module-tile small {
  color:#52657f;
  font-size:13px;
  font-weight:760;
  line-height:1.38;
}

.rn-my-home-module-tile-status {
  align-self:end;
  padding-top:4px;
  border-top:1px solid #e2f1ef;
  font-size:12px !important;
  font-weight:900 !important;
}

.rn-my-home-module-tile span {
  align-self:end;
  justify-self:stretch;
  width:100%;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border:1px solid #b9d8d5;
  border-radius:12px;
  background:#e8f3f2;
  color:#174b48;
  font-size:13px;
  font-weight:950;
  box-shadow:none;
  box-sizing:border-box;
}

.rn-my-home-module-tile-modules span {
  border-color:#b9d8d5;
  background:#e8f3f2;
  color:#174b48;
}

.rn-my-home-module-tile-evidence span {
  border-color:#b9d8d5;
  background:#e8f3f2;
  color:#174b48;
}

.rn-my-home-module-tile:hover span {
  background:#061a31;
  border-color:#061a31;
  color:#fff;
}
.rn-my-home-module-tile.is-planned {background:#fffaf2;border-color:#ead8bb;border-left-color:#d9a14a;cursor:default;}
.rn-my-home-module-tile.is-planned:hover {border-color:#ead8bb;box-shadow:0 12px 24px rgba(9,38,64,.055);transform:none;}
.rn-my-home-module-tile.is-planned span,.rn-my-home-module-tile.is-planned:hover span {background:#fff1d8;border-color:#e5c58e;color:#7a4d08;}

.rn-my-home-card-button {
  justify-self:stretch;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  width:100%;
  padding:10px 16px;
  border:1px solid #b9d8d5;
  border-radius:12px;
  background:#e8f3f2;
  color:#174b48;
  font-weight:950;
  text-decoration:none;
  box-shadow:none;
}

.rn-my-home-card-button:hover {
  background:#087d78;
  border-color:#087d78;
  color:#fff;
}

.rn-my-home-action-grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.rn-my-home-action-card {
  grid-template-rows:auto 1fr auto;
}

.rn-my-home-action-card.is-planned {
  background:#fffaf2;
  border-color:#ead8bb;
}

.rn-my-home-action-card.is-planned .rn-my-home-card-button,
.rn-my-home-action-card.is-planned .rn-my-home-card-button:hover {
  background:#fff1d8;
  border-color:#e5c58e;
  color:#7a4d08;
  cursor:default;
}

@media (max-width:1000px) {
  .rn-my-home-module-grid,
  .rn-my-home-card-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:700px) {
  .rn-my-home-stage {
    width:min(100% - 24px,1220px);
    margin-top:18px;
  }

  .rn-my-home-hero {
    display:grid;
  }

  .rn-my-home-module-grid,
  .rn-my-home-card-grid {
    grid-template-columns:1fr;
  }

  .rn-my-home-module-group-head {
    align-items:flex-start;
  }
}

.rn-my-home-nav {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.rn-my-home-nav a,
.rn-my-home-section-link,
.rn-my-home-pod-open {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border:1px solid #74d6d2;
  border-radius:999px;
  background:#fff;
  color:#006a62;
  font-weight:950;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}

.rn-my-home-nav a.active,
.rn-my-home-section-link:hover,
.rn-my-home-pod-open:hover {
  background:#087d78;
  border-color:#087d78;
  color:#fff;
}

.rn-my-home-section-link {
  width:max-content;
  margin-top:2px;
}

.rn-my-home-notice {
  padding:13px 16px;
  border:1px solid #bde8e3;
  border-radius:14px;
  background:#f4fffd;
  color:#005f57;
  font-weight:900;
}

.rn-my-home-notice.is-success {
  border-color:#83d7a6;
  background:#f3fff8;
  color:#0f6840;
}

.rn-my-home-notice.is-warning {
  border-color:#f0b085;
  background:#fff7f1;
  color:#8a3d0e;
}

.rn-my-home-notice.is-info {
  border-color:#d7cba6;
  background:#fffdf3;
  color:#65510b;
}

.rn-my-home-pod-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.rn-my-home-pod-card {
  display:grid;
  grid-template-rows:auto auto auto 1fr auto;
  gap:13px;
  min-height:235px;
  padding:16px;
  border:1px solid #cfe5e2;
  border-top:4px solid #d9a14a;
  border-radius:16px;
  background:linear-gradient(180deg,#fffdfa 0%,#ffffff 100%);
  box-shadow:0 12px 26px rgba(15,23,42,.045);
}

.rn-my-home-pod-card-head {
  display:grid;
  gap:6px;
}

.rn-my-home-pod-card-head span {
  width:max-content;
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 9px;
  border-radius:999px;
  background:#fff2dc;
  color:#8a4b10;
  font-size:12px;
  font-weight:950;
}

.rn-my-home-pod-card h3 {
  margin:0;
  color:#061a31;
  font-size:20px;
}

.rn-my-home-pod-card p {
  margin:0;
  color:#52657f;
  font-weight:780;
  line-height:1.45;
}

.rn-my-home-pod-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.rn-my-home-pod-list span {
  min-height:34px;
  display:flex;
  align-items:center;
  padding:7px 9px;
  border:1px solid #d7ece9;
  border-radius:11px;
  background:#fbfffd;
  color:#23415a;
  font-size:13px;
  font-weight:850;
}

.rn-my-home-pod-meta {
  display:grid;
  gap:2px;
  padding:10px 12px;
  border:1px solid #d7ece9;
  border-radius:12px;
  background:#f7fffd;
}

.rn-my-home-pod-meta strong {
  color:#061a31;
}

.rn-my-home-pod-meta small {
  color:#52657f;
  font-weight:800;
}

.rn-my-home-pod-open {
  justify-self:end;
}

.rn-my-home-pod-detail {
  border-top-color:#d9a14a;
}

.rn-my-home-pod-overview {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.rn-my-home-pod-overview article {
  display:grid;
  gap:6px;
  padding:14px;
  border:1px solid #d7ece9;
  border-radius:14px;
  background:#fbfffd;
}

.rn-my-home-pod-overview strong {
  color:#061a31;
}

.rn-my-home-pod-overview span {
  color:#52657f;
  font-weight:760;
  line-height:1.45;
}

.rn-my-home-pod-form {
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid #d7ece9;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfffd 100%);
}

.rn-my-home-pod-form .rn-form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.rn-my-home-pod-form label {
  display:grid;
  gap:7px;
  color:#52657f;
  font-weight:900;
}

.rn-my-home-pod-form input,
.rn-my-home-pod-form select,
.rn-my-home-pod-form textarea {
  width:100%;
  border:1px solid #bfe0dd;
  border-radius:13px;
  background:#fff;
  color:#061a31;
  font:inherit;
  font-weight:750;
  padding:12px 14px;
}

.rn-my-home-pod-form textarea {
  min-height:110px;
  resize:vertical;
}

.rn-my-home-check-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.rn-my-home-check-options label {
  min-height:52px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid #d7ece9;
  border-radius:13px;
  background:#f7fffd;
  color:#23415a;
}

.rn-my-home-check-options input {
  width:auto;
}

.rn-my-home-pod-form .rn-feed-submit {
  width:100%;
  min-height:48px;
  border:0;
  border-radius:14px;
  background:#087d78;
  color:#fff;
  font-weight:950;
  box-shadow:0 14px 26px rgba(8,125,120,.18);
}

.rn-my-home-check-list {
  display:grid;
  gap:10px;
}

.rn-my-home-check-row {
  display:grid;
  gap:8px;
  padding:14px;
  border:1px solid #d7ece9;
  border-left:5px solid #74d6d2;
  border-radius:14px;
  background:#fff;
}

.rn-my-home-check-row-failed,
.rn-my-home-check-row-urgent_issue {
  border-left-color:#d04437;
}

.rn-my-home-check-row-manager_review {
  border-left-color:#d9a14a;
}

.rn-my-home-check-row strong {
  display:block;
  color:#061a31;
}

.rn-my-home-check-row small {
  display:block;
  color:#52657f;
  font-weight:820;
}

.rn-my-home-check-row p {
  margin:0;
  color:#061a31;
  line-height:1.5;
}

.rn-my-home-evidence-note {
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:6px 10px;
  border-radius:999px;
  background:#eefafa;
  color:#006a62;
  font-weight:900;
}

.rn-my-home-check-flags {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.rn-my-home-check-flags span {
  display:inline-flex;
  padding:5px 9px;
  border:1px solid #f0c189;
  border-radius:999px;
  background:#fff8ea;
  color:#8a4b10;
  font-size:12px;
  font-weight:950;
}

@media (max-width:1000px) {
  .rn-my-home-pod-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .rn-my-home-pod-overview {
    grid-template-columns:1fr;
  }
}

@media (max-width:700px) {
  .rn-my-home-nav a,
  .rn-my-home-section-link,
  .rn-my-home-pod-open {
    width:100%;
  }

  .rn-my-home-pod-form .rn-form-grid,
  .rn-my-home-check-options,
  .rn-my-home-pod-grid,
  .rn-my-home-pod-list {
    grid-template-columns:1fr;
  }

  .rn-my-home-pod-open {
    justify-self:stretch;
  }
}

.rn-vc-stage {
  max-width:1280px;
  margin:0 auto;
  padding:30px 18px 56px;
}

.rn-vc-hero {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:28px;
  border:1px solid #bfe9e8;
  border-top:4px solid #6fd8d8;
  border-radius:8px;
  background:linear-gradient(135deg,#ffffff 0%,#f5ffff 62%,#fff9ee 100%);
  box-shadow:0 22px 42px rgba(0,53,70,.08);
}

.rn-vc-hero-actions,
.rn-vc-entry-actions,
.rn-vc-action-row {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}

.rn-vc-notice {
  margin-top:16px;
  padding:14px 16px;
  border:1px solid #ffd2a0;
  border-radius:8px;
  background:#fff8ee;
  color:#834711;
  font-weight:850;
}

.rn-vc-summary-grid,
.rn-vc-board-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}

.rn-vc-summary-card,
.rn-vc-panel,
.rn-vc-entry-card {
  border:1px solid #c9e6e5;
  border-radius:8px;
  background:#fff;
  box-shadow:0 16px 32px rgba(0,35,50,.06);
}

.rn-vc-summary-card {
  padding:16px;
}

.rn-vc-summary-card span,
.rn-vc-mini-label {
  display:block;
  color:#566d88;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-vc-summary-card strong {
  display:block;
  margin-top:6px;
  color:#00224a;
  font-size:28px;
  line-height:1;
}

.rn-vc-panel {
  margin-top:18px;
  padding:18px;
}

.rn-vc-panel h2,
.rn-vc-panel h3 {
  margin-top:0;
}

.rn-vc-panel h2::after,
.rn-vc-panel h3::after {
  content:"";
  display:block;
  width:44px;
  height:3px;
  margin-top:8px;
  border-radius:999px;
  background:linear-gradient(90deg,#007f7a 0 55%,#d39237 55% 100%);
}

.rn-vc-date-row,
.rn-vc-action-panels {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}

.rn-vc-date-row {
  grid-template-columns:minmax(0,1fr) auto;
  margin-bottom:18px;
}

.rn-vc-action-panels {
  grid-template-columns:1fr;
  gap:18px;
}

.rn-vc-create-panel {
  border:1px solid #c9e6e5;
  border-radius:8px;
  background:#fff;
  padding:14px;
  box-shadow:0 12px 26px rgba(0,35,50,.05);
}

.rn-vc-create-panel-primary {
  border-top:4px solid #007f7a;
}

.rn-vc-create-panel-planned {
  border-top:4px solid #fed7aa;
}

.rn-vc-create-panel + .rn-vc-create-panel {
  margin-top:0;
}

.rn-vc-create-panel summary {
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 16px;
  border:1px solid #7fd7d2;
  border-radius:999px;
  background:#f5ffff;
  color:#006b68;
  font-weight:950;
  cursor:pointer;
}

.rn-vc-create-panel[open] summary {
  margin-bottom:14px;
  background:#007f7a;
  color:#fff;
}

.rn-vc-date-form,
.rn-vc-inline-form,
.rn-vc-checkout-form {
  display:flex;
  gap:10px;
  align-items:center;
}

.rn-vc-date-form {
  display:grid;
  grid-template-columns:minmax(180px,220px) auto;
  align-items:end;
  justify-content:end;
  gap:12px;
  min-width:360px;
  padding-top:0;
}

.rn-vc-date-form label {
  display:grid;
  gap:7px;
  min-width:0;
}

.rn-vc-date-form button {
  min-height:44px;
  padding:10px 16px;
  border:1px solid #007f7a;
  border-radius:999px;
  background:#007f7a;
  color:#fff;
  font:inherit;
  font-weight:950;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:0 12px 20px rgba(0,127,122,.16);
}

.rn-vc-form-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.rn-vc-full {
  grid-column:1 / -1;
}

.rn-vc-form-grid label,
.rn-vc-check-row label {
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#566d88;
  font-size:13px;
  font-weight:950;
}

.rn-vc-form-grid input,
.rn-vc-form-grid select,
.rn-vc-form-grid textarea,
.rn-vc-date-form input,
.rn-vc-inline-form input,
.rn-vc-checkout-form input {
  min-height:44px;
  width:100%;
  border:1px solid #c7e4e3;
  border-radius:8px;
  background:#fff;
  color:#00224a;
  font:inherit;
  font-weight:750;
  padding:10px 12px;
}

.rn-vc-form-grid textarea {
  min-height:88px;
  resize:vertical;
}

.rn-vc-check-row {
  display:grid;
  grid-column:1 / -1;
  grid-template-columns:repeat(4,minmax(155px,1fr));
  gap:12px;
  align-items:stretch;
}

.rn-vc-check-row-compact {
  grid-template-columns:repeat(3,minmax(170px,1fr));
}

.rn-vc-check-row label {
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  min-height:48px;
  padding:12px 14px;
  border:1px solid #c7e4e3;
  border-radius:8px;
  background:#f8fffd;
  color:#425a76;
  line-height:1.25;
  white-space:normal;
  word-break:normal;
}

.rn-vc-check {
  flex-direction:row !important;
  align-items:center;
  gap:10px !important;
  min-height:52px;
  padding:12px;
  border:1px solid #d9eded;
  border-radius:8px;
  background:#f7ffff;
}

.rn-vc-check input[type="checkbox"],
.rn-vc-check-row input[type="checkbox"] {
  width:18px;
  min-height:18px;
  height:18px;
  flex:0 0 18px;
  margin:0;
}

.rn-vc-checkout-form {
  align-items:flex-end;
  flex-wrap:wrap;
  gap:12px;
}

.rn-vc-checkout-form .rn-vc-check {
  flex:0 1 170px;
  min-width:150px;
  justify-content:flex-start;
  line-height:1.25;
}

.rn-vc-checkout-form input[type="text"] {
  min-width:220px;
  max-width:320px;
}

.rn-vc-file-inline {
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:220px;
  color:#566d88;
  font-size:13px;
  font-weight:950;
}

.rn-vc-photo-link {
  display:inline-flex;
  width:max-content;
  margin-top:8px;
  padding:7px 10px;
  border:1px solid #7fd7d2;
  border-radius:999px;
  background:#f5ffff;
  color:#006b68;
  font-size:12px;
  font-weight:950;
  text-decoration:none;
}

.rn-vc-submit,
.rn-vc-entry-actions button {
  min-height:46px;
  border:1px solid #007f7a;
  border-radius:8px;
  background:#007f7a;
  color:#fff;
  font:inherit;
  font-weight:950;
  padding:10px 18px;
  cursor:pointer;
  box-shadow:0 14px 24px rgba(0,127,122,.16);
}

.rn-vc-submit.secondary,
.rn-vc-inline-form button,
.rn-vc-checkout-form button {
  background:#fff;
  color:#007f7a;
}

.rn-vc-board-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.rn-vc-entry-card {
  padding:14px;
  display:grid;
  gap:12px;
  border-top-width:4px;
}

.rn-vc-status-active {
  border-top-color:#007f7a;
}

.rn-vc-status-planned {
  border-top-color:#6fd8d8;
}

.rn-vc-status-done {
  border-top-color:#8fb3cc;
}

.rn-vc-status-warning {
  border-top-color:#d39237;
}

.rn-vc-entry-main {
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}

.rn-vc-entry-main h3 {
  margin:0 0 4px;
}

.rn-vc-entry-times {
  text-align:right;
  color:#566d88;
  font-weight:900;
  white-space:nowrap;
}

.rn-vc-muted {
  color:#566d88;
  font-weight:800;
}

.rn-vc-pills {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.rn-vc-pills span {
  display:inline-flex;
  padding:6px 9px;
  border:1px solid #c9e6e5;
  border-radius:999px;
  background:#f5ffff;
  color:#006b68;
  font-size:12px;
  font-weight:950;
}

.rn-vc-reason-box,
.rn-vc-history-list {
  display:grid;
  gap:10px;
}

.rn-vc-reason-box {
  grid-template-columns:1fr auto;
}

@media (max-width:1000px) {
  .rn-vc-summary-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .rn-vc-date-row,
  .rn-vc-action-panels,
  .rn-vc-board-grid,
  .rn-vc-form-grid,
  .rn-vc-check-row {
    grid-template-columns:1fr;
  }

  .rn-vc-date-form {
    justify-content:stretch;
    min-width:0;
  }
}

@media (max-width:640px) {
  .rn-vc-stage {
    padding:18px 12px 44px;
  }

  .rn-vc-hero,
  .rn-vc-entry-main,
  .rn-vc-reason-box {
    grid-template-columns:1fr;
    display:grid;
  }

  .rn-vc-hero-actions,
  .rn-vc-entry-actions,
  .rn-vc-action-row,
  .rn-vc-date-form,
  .rn-vc-inline-form,
  .rn-vc-checkout-form {
    justify-content:stretch;
    align-items:stretch;
  }

  .rn-vc-date-form {
    grid-template-columns:1fr;
  }

  .rn-vc-hero-actions a,
  .rn-vc-action-row button,
  .rn-vc-date-form button,
  .rn-vc-inline-form button,
  .rn-vc-checkout-form button,
  .rn-vc-submit {
    width:100%;
  }

  .rn-vc-summary-grid {
    grid-template-columns:1fr;
  }

  .rn-vc-entry-times {
    text-align:left;
    white-space:normal;
  }
}

/* Medication / eMAR */
.rn-med-stage {
  width:min(1220px, calc(100% - 40px));
  margin:30px auto 70px;
  display:grid;
  gap:18px;
}

.rn-med-stage .rn-profile-hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:30px 34px;
  border:1px solid var(--rn-border);
  border-radius:18px;
  border-top:4px solid #85dde3;
  background:linear-gradient(120deg, #ffffff 0%, #fbfffd 62%, #fff9ef 100%);
  box-shadow:0 18px 44px rgba(6, 26, 49, .08);
}

.rn-med-stage .rn-profile-hero h1 {
  margin:8px 0 8px;
  color:var(--rn-brand-navy);
  font-size:clamp(30px, 3vw, 44px);
  line-height:1.05;
  letter-spacing:0;
}

.rn-med-stage .rn-profile-hero p,
.rn-med-stage .rn-profile-muted {
  margin:0;
  color:var(--rn-muted);
  font-weight:760;
  line-height:1.45;
}

.rn-med-stage .rn-profile-actions,
.rn-med-stage .rn-profile-card-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.rn-med-stage .rn-btn-primary,
.rn-med-stage .rn-btn-ghost {
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:12px 22px;
  font-weight:950;
  text-decoration:none;
  line-height:1;
}

.rn-med-stage .rn-btn-primary {
  border:1px solid #087a78;
  background:linear-gradient(180deg, #0e8f8d, #087674);
  color:#fff;
  box-shadow:0 15px 28px rgba(8, 118, 116, .18);
}

.rn-med-stage .rn-btn-ghost {
  border:1px solid #6fd5d2;
  background:#fff;
  color:#006b68;
}

.rn-med-stage .rn-profile-grid {
  display:grid;
  gap:14px;
}

.rn-med-stage .rn-profile-grid-2 {
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.rn-med-stage .rn-profile-grid-3 {
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.rn-med-stage .rn-profile-grid-4 {
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.rn-med-stage .rn-profile-card,
.rn-med-stage .rn-profile-stat,
.rn-med-stage .rn-profile-summary-row {
  border:1px solid var(--rn-border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 16px 34px rgba(6, 26, 49, .06);
}

.rn-med-stage .rn-profile-card {
  display:grid;
  gap:16px;
  padding:20px;
  border-top:4px solid #85dde3;
}

.rn-med-stage .rn-profile-card-top {
  border-top-color:#0b8885;
}

.rn-med-stage .rn-profile-card-warning {
  border-top-color:#ffca86;
  background:linear-gradient(180deg, #fffaf2 0%, #fff 58%);
}

.rn-med-stage .rn-profile-card h2 {
  margin:0;
  color:var(--rn-brand-navy);
  font-size:22px;
  line-height:1.2;
}

.rn-med-stage .rn-profile-card h2::after {
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin-top:8px;
  border-radius:999px;
  background:linear-gradient(90deg, #0b8885, #d9a14a);
}

.rn-med-stage .rn-profile-stat,
.rn-med-stage .rn-profile-summary-row {
  display:grid;
  gap:8px;
  padding:16px;
  background:#fbfffe;
}

.rn-med-stage .rn-profile-stat span,
.rn-med-stage .rn-profile-summary-row span {
  color:var(--rn-muted);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}

.rn-med-stage .rn-profile-stat strong,
.rn-med-stage .rn-profile-summary-row strong {
  color:var(--rn-brand-navy);
  font-size:22px;
  line-height:1.15;
}

.rn-med-stage .rn-stack {
  display:grid;
  gap:10px;
}

.rn-med-stage .rn-list-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#fbfffe;
}

.rn-med-stage .rn-list-row > div {
  display:grid;
  gap:5px;
}

.rn-med-stage .rn-list-row strong {
  color:var(--rn-brand-navy);
}

.rn-med-stage .rn-list-row span,
.rn-med-stage .rn-list-row small {
  color:var(--rn-muted);
  font-weight:760;
  line-height:1.35;
}

.rn-med-stage .rn-form-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.rn-med-stage .rn-form-grid label,
.rn-med-stage .rn-check-grid {
  display:grid;
  gap:7px;
  color:var(--rn-muted);
  font-size:13px;
  font-weight:900;
}

.rn-med-stage .rn-form-grid input,
.rn-med-stage .rn-form-grid select,
.rn-med-stage .rn-form-grid textarea {
  width:100%;
  min-height:46px;
  border:1px solid #bfe2df;
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  color:var(--rn-brand-navy);
  font:inherit;
  font-weight:780;
  box-shadow:none;
}

.rn-med-stage .rn-form-grid textarea {
  min-height:96px;
  resize:vertical;
}

.rn-med-stage .rn-form-span-2,
.rn-med-stage .rn-check-grid {
  grid-column:1 / -1;
}

.rn-med-stage .rn-check-grid {
  grid-template-columns:repeat(4, minmax(0, 1fr));
  padding:14px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:#f8fdfc;
}

.rn-med-stage .rn-check-grid legend {
  padding:0 6px;
  color:var(--rn-brand-navy);
  font-weight:950;
}

.rn-med-stage .rn-check-grid label,
.rn-med-stage .rn-check-tile {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  min-height:48px;
  padding:10px 12px;
  border:1px solid var(--rn-border);
  border-radius:12px;
  background:#f9fffd;
  color:var(--rn-brand-navy);
  font-weight:900;
}

.rn-med-stage .rn-form-grid label.rn-check-tile,
.rn-med-stage .rn-form-grid .rn-check-grid label {
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  min-height:42px;
  padding:9px 12px;
  line-height:1.2;
}

.rn-med-stage .rn-check-grid input[type="checkbox"],
.rn-med-stage .rn-check-grid input[type="radio"],
.rn-med-stage .rn-check-tile input[type="checkbox"],
.rn-med-stage .rn-check-tile input[type="radio"] {
  width:18px;
  min-width:18px;
  max-width:18px;
  height:18px;
  min-height:18px;
  margin:0;
  padding:0;
  flex:0 0 18px;
  border-radius:5px;
  box-shadow:none;
  accent-color:#0b8885;
}

.rn-med-stage .rn-feed-pill {
  display:inline-flex;
  min-width:92px;
  justify-content:center;
  align-items:center;
  white-space:nowrap;
}

.rn-med-stage .rn-profile-grid-1 {
  grid-template-columns:1fr;
}

.rn-med-stock-banner {
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid var(--rn-border);
  border-radius:14px;
  background:linear-gradient(180deg, #f8fffd 0%, #fff 100%);
}

.rn-med-stock-banner strong {
  color:var(--rn-brand-navy);
  font-weight:950;
}

.rn-med-stock-banner small {
  display:block;
  margin-top:3px;
  color:var(--rn-muted);
  font-weight:800;
}

.rn-med-stock-banner-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.rn-med-stock-chip {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 11px;
  border:1px solid var(--rn-border);
  border-radius:12px;
  background:#fff;
  color:var(--rn-brand-navy);
  font-weight:900;
}

.rn-med-stock-chip strong {
  white-space:nowrap;
}

.rn-med-compact-checks {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}

.rn-med-stage .rn-med-compact-checks .rn-check-tile {
  min-height:38px;
  padding:8px 10px;
  background:#f8fffd;
}

.rn-med-stage .rn-med-compact-checks input[type="checkbox"],
.rn-med-stage .rn-med-compact-checks input[type="radio"] {
  width:16px;
  min-width:16px;
  max-width:16px;
  height:16px;
  min-height:16px;
  flex:0 0 16px;
}

.rn-med-stage .rn-stock-correction {
  border-top-color:#f5c97a;
  background:linear-gradient(180deg, #fffaf2 0%, #fff 64%);
}

.rn-med-meta {
  display:block;
  color:#536987;
  font-size:.82rem;
  font-weight:800;
}

.rn-med-stage .rn-my-home-module-tile {
  min-height:126px;
}

@media (max-width:1000px) {
  .rn-med-stage .rn-profile-hero {
    align-items:flex-start;
    flex-direction:column;
  }

  .rn-med-stage .rn-profile-grid-3,
  .rn-med-stage .rn-profile-grid-4,
  .rn-med-stage .rn-check-grid,
  .rn-med-stage .rn-med-stock-banner-grid,
  .rn-med-stage .rn-med-compact-checks {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:640px) {
  .rn-med-stage {
    width:calc(100% - 24px);
    margin:18px auto 48px;
  }

  .rn-med-stage .rn-profile-hero,
  .rn-med-stage .rn-profile-card {
    padding:18px;
  }

  .rn-med-stage .rn-profile-grid-2,
  .rn-med-stage .rn-profile-grid-3,
  .rn-med-stage .rn-profile-grid-4,
  .rn-med-stage .rn-form-grid,
  .rn-med-stage .rn-check-grid,
  .rn-med-stage .rn-med-stock-banner-grid,
  .rn-med-stage .rn-med-compact-checks {
    grid-template-columns:1fr;
  }

  .rn-med-stage .rn-profile-actions,
  .rn-med-stage .rn-profile-card-header,
  .rn-med-stage .rn-list-row {
    flex-direction:column;
    align-items:stretch;
  }

  .rn-med-stage .rn-btn-primary,
  .rn-med-stage .rn-btn-ghost {
    width:100%;
  }
}

.rn-witness-body {
  min-height:100vh;
  margin:0;
  background:
    linear-gradient(135deg, rgba(234, 250, 249, .86), rgba(255, 250, 244, .92)),
    #f7fbfb;
  color:#001f3f;
  font-family:inherit;
}

.rn-witness-shell {
  width:min(760px, calc(100% - 32px));
  margin:48px auto;
}

.rn-witness-card {
  background:rgba(255,255,255,.96);
  border:1px solid #bee8e7;
  border-top:4px solid #22bfc3;
  border-radius:14px;
  box-shadow:0 22px 55px rgba(0, 31, 63, .10);
  padding:28px;
}

.rn-witness-brand {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid #cfe9e8;
  padding-bottom:18px;
  margin-bottom:18px;
}

.rn-witness-logo {
  font-size:30px;
  line-height:1;
  font-weight:900;
  letter-spacing:0;
  color:#001f3f;
}

.rn-witness-logo span {
  color:#22bfc3;
}

.rn-witness-brand p,
.rn-witness-muted {
  margin:8px 0 0;
  color:#526982;
  font-size:14px;
  line-height:1.45;
  font-weight:700;
}

.rn-witness-pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:#e8fbf8;
  border:1px solid #8de1df;
  color:#007a78;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.rn-witness-alert {
  margin:0 0 16px;
  padding:13px 15px;
  border-radius:10px;
  font-weight:900;
  line-height:1.35;
}

.rn-witness-alert-ok {
  background:#edfdf8;
  border:1px solid #8de1df;
  color:#007a35;
}

.rn-witness-alert-bad {
  background:#fff5ef;
  border:1px solid #f5bb8a;
  color:#a33b00;
}

.rn-witness-summary {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin:18px 0;
}

.rn-witness-summary div {
  min-height:72px;
  border:1px solid #c6e7e6;
  background:#faffff;
  border-radius:10px;
  padding:12px;
}

.rn-witness-summary span {
  display:block;
  color:#526982;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.rn-witness-summary strong {
  display:block;
  margin-top:6px;
  color:#001f3f;
  font-size:17px;
  line-height:1.25;
}

.rn-witness-form {
  display:grid;
  gap:14px;
  border-top:1px solid #cfe9e8;
  padding-top:18px;
}

.rn-witness-form label {
  color:#526982;
  font-size:13px;
  font-weight:900;
}

.rn-witness-form input,
.rn-witness-form textarea {
  display:block;
  width:100%;
  box-sizing:border-box;
  margin-top:7px;
  border:1px solid #bde4e3;
  border-radius:10px;
  background:#fff;
  color:#001f3f;
  font:inherit;
  font-weight:800;
  padding:13px 14px;
  outline:none;
}

.rn-witness-form input:focus,
.rn-witness-form textarea:focus {
  border-color:#22bfc3;
  box-shadow:0 0 0 4px rgba(34,191,195,.18);
}

.rn-witness-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:4px;
}

.rn-witness-button {
  min-height:50px;
  border-radius:12px;
  border:1px solid #0b8885;
  cursor:pointer;
  font-weight:900;
  font-size:15px;
}

.rn-witness-button-primary {
  background:#0b8885;
  color:#fff;
  box-shadow:0 14px 28px rgba(11,136,133,.18);
}

.rn-witness-button-ghost {
  background:#fff;
  color:#0b6867;
}

.rn-witness-complete {
  border:1px solid #c6e7e6;
  border-radius:10px;
  background:#f8ffff;
  padding:14px;
  color:#001f3f;
  font-weight:800;
}

@media (max-width:640px) {
  .rn-witness-shell {
    width:calc(100% - 24px);
    margin:20px auto;
  }

  .rn-witness-card {
    padding:20px;
  }

  .rn-witness-brand,
  .rn-witness-actions {
    grid-template-columns:1fr;
    flex-direction:column;
    align-items:stretch;
  }

  .rn-witness-summary {
    grid-template-columns:1fr;
  }
}

/* First Aid Kits module */
.rn-fa-stage {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  display: grid;
  gap: 18px;
}

.rn-fa-hero {
  align-items: center;
}

.rn-fa-notice {
  border: 1px solid #bde4e3;
  border-radius: 12px;
  background: #f4ffff;
  color: #006b68;
  font-weight: 900;
  padding: 13px 16px;
  margin-bottom: 4px;
}

.rn-fa-notice-error {
  border-color: #ffbeb8;
  background: #fff6f4;
  color: #9a2a1d;
}

.rn-fa-notice-success {
  border-color: #9be3d7;
  background: #effffd;
  color: #006b68;
}

.rn-fa-summary-grid,
.rn-fa-board-grid,
.rn-fa-form-grid {
  display: grid;
  gap: 14px;
}

.rn-fa-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.rn-fa-command-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rn-fa-summary-card {
  border: 1px solid #c6e7e6;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fffe 100%);
  box-shadow: 0 12px 26px rgba(0, 31, 63, .055);
  min-height: 112px;
  padding: 16px;
}

.rn-fa-summary-card small {
  display: block;
  margin-top: 8px;
  color: #587094;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.rn-fa-summary-card span,
.rn-fa-mini-label,
.rn-fa-form-grid label > span,
.rn-fa-stock-table small,
.rn-fa-history-list small {
  display: block;
  color: #587094;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.rn-fa-summary-card strong {
  display: block;
  margin-top: 8px;
  color: #001f3f;
  font-size: 26px;
  font-weight: 900;
}

.rn-fa-board-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.rn-fa-panel {
  margin: 0;
}

.rn-fa-priority {
  border-top-color: #ffc982;
  background: linear-gradient(135deg, #ffffff 0%, #f8fffe 68%, #fffaf2 100%);
}

.rn-fa-check-panel {
  border-top-color: #22bfc3;
}

.rn-fa-register-panel {
  border-top-color: #ffc982;
}

.rn-fa-section-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #9be3d7;
  border-radius: 999px;
  background: #f2fffd;
  color: #006b68;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  padding: 6px 12px;
}

.rn-fa-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rn-fa-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.rn-fa-form-tight {
  gap: 12px;
}

.rn-fa-span-2 {
  grid-column: 1 / -1;
}

.rn-fa-form-grid input,
.rn-fa-form-grid select,
.rn-fa-form-grid textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bde4e3;
  border-radius: 10px;
  background: #ffffff;
  color: #001f3f;
  font: inherit;
  font-weight: 800;
  margin-top: 6px;
  min-height: 46px;
  padding: 11px 13px;
  outline: none;
}

.rn-fa-form-grid textarea {
  min-height: 92px;
  resize: vertical;
}

.rn-fa-form-grid input:focus,
.rn-fa-form-grid select:focus,
.rn-fa-form-grid textarea:focus {
  border-color: #22bfc3;
  box-shadow: 0 0 0 4px rgba(34, 191, 195, .16);
}

.rn-fa-check-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rn-fa-check-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid #c6e7e6;
  border-radius: 10px;
  background: #f7ffff;
  color: #001f3f;
  font-weight: 900;
  padding: 10px 12px;
}

.rn-fa-warning-checks label {
  background: #fffaf2;
  border-color: #ffd7a5;
}

.rn-fa-check-row input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
}

.rn-fa-submit,
.rn-fa-button-ghost {
  border-radius: 12px;
  border: 1px solid #0b8885;
  cursor: pointer;
  font-weight: 900;
  min-height: 48px;
  padding: 12px 16px;
}

.rn-fa-submit {
  background: #0b8885;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(11, 136, 133, .16);
}

.rn-fa-button-ghost {
  background: #ffffff;
  color: #006b68;
}

.rn-fa-kit-list,
.rn-fa-history-list,
.rn-fa-stock-table {
  display: grid;
  gap: 10px;
}

.rn-fa-kit-card,
.rn-fa-history-list article,
.rn-fa-stock-table div {
  border: 1px solid #c6e7e6;
  border-radius: 12px;
  background: #ffffff;
  padding: 13px 14px;
}

.rn-fa-kit-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.rn-fa-kit-card h3 {
  margin: 4px 0 2px;
}

.rn-fa-status-archived {
  opacity: .68;
}

.rn-fa-stock-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
}

.rn-fa-stock-table small {
  grid-column: 1 / -1;
}

.rn-fa-source-badge {
  justify-self: start;
  display: inline-flex !important;
  width: fit-content;
  border: 1px solid #bde4e3;
  border-radius: 999px;
  background: #f2fffd;
  color: #006b68 !important;
  padding: 4px 9px;
}

.rn-fa-stock-table strong {
  color: #001f3f;
  font-weight: 900;
}

.rn-fa-stock-low {
  border-color: #ffbeb8 !important;
  background: #fff6f4 !important;
}

.rn-fa-history-list article strong,
.rn-fa-history-list article span {
  display: block;
}

.rn-fa-history-list article {
  display: grid;
  gap: 5px;
}

.rn-fa-history-list article span {
  color: #587094;
  font-weight: 800;
  margin-top: 4px;
}

.rn-fa-incident-open,
.rn-fa-incident-closed {
  display: inline-flex !important;
  width: fit-content;
  border-radius: 999px;
  margin-top: 4px;
  padding: 4px 9px;
}

.rn-fa-incident-open {
  border: 1px solid #ffbeb8;
  background: #fff6f4;
  color: #9a2a1d !important;
}

.rn-fa-incident-closed {
  border: 1px solid #9be3d7;
  background: #effffd;
  color: #006b68 !important;
}

.rn-fa-muted {
  color: #587094;
  font-weight: 800;
}

@media (max-width: 980px) {
  .rn-fa-summary-grid,
  .rn-fa-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rn-fa-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rn-fa-check-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rn-fa-summary-grid,
  .rn-fa-board-grid,
  .rn-fa-form-grid,
  .rn-fa-check-row {
    grid-template-columns: 1fr;
  }

  .rn-fa-panel-head,
  .rn-fa-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .rn-fa-kit-card {
    display: grid;
  }
}

/* Semi-Independence Skills page */
/* Fire Safety dashboard */
.rn-fs-jump-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.rn-fs-jump-grid a {
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:3px 11px;
  align-items:center;
  border:1px solid #bde4e3;
  border-radius:14px;
  background:linear-gradient(145deg,#fff 0%,#f2fffd 100%);
  color:#001f3f;
  padding:14px;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(0,31,63,.05);
}
.rn-fs-jump-grid a:hover { border-color:#22bfc3; transform:translateY(-1px); }
.rn-fs-jump-grid .rn-fs-jump-alert { border:2px solid #dc2626; background:linear-gradient(145deg,#fff 0%,#fff1f1 100%); }
.rn-fs-jump-grid .rn-fs-jump-alert span { background:#c81e1e; }
.rn-fs-jump-grid .rn-fs-jump-alert strong { color:#a31111; }
.rn-fs-jump-grid .rn-fs-jump-alert:hover { border-color:#991b1b; box-shadow:0 12px 28px rgba(185,28,28,.16); }
.rn-fs-jump-grid .rn-fs-jump-review { border-color:#f2b45b; background:linear-gradient(145deg,#fff 0%,#fff9ee 100%); }
.rn-fs-jump-grid .rn-fs-jump-review span { background:#b76500; }
.rn-fs-jump-grid .rn-fs-jump-review strong { color:#7a4100; }
.rn-fs-jump-grid span {
  grid-row:1/3;
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background:#0b8885;
  color:#fff;
  font-weight:900;
}
.rn-fs-jump-grid strong { font-size:14px; }
.rn-fs-jump-grid small { color:#587094; font-size:11px; line-height:1.3; }
.rn-fs-section { scroll-margin-top:90px; }
.rn-fs-activation-panel { border:2px solid #dc2626; border-top:7px solid #b91c1c; background:linear-gradient(145deg,#fff 0%,#fff7f7 100%); box-shadow:0 16px 34px rgba(185,28,28,.12); }
.rn-fs-activation-head { border-bottom:1px solid #fecaca; margin-bottom:16px; padding-bottom:12px; }
.rn-fs-activation-head span { display:inline-flex; border-radius:999px; background:#b91c1c; color:#fff; font-size:12px; font-weight:900; letter-spacing:.04em; padding:6px 11px; text-transform:uppercase; }
.rn-fs-activation-head h2 { color:#991b1b; margin:9px 0 4px; }
.rn-fs-activation-head p { color:#7f1d1d; margin:0; font-weight:800; }
.rn-fs-activation-submit { background:#b91c1c; border-color:#991b1b; box-shadow:0 14px 26px rgba(185,28,28,.2); }
.rn-fs-review-panel { border-top:5px solid #d98a20; background:linear-gradient(145deg,#fff 0%,#fffaf1 100%); }
.rn-fs-review-count { display:inline-flex; align-items:center; border-radius:999px; background:#fff0d3; color:#7a4100; padding:8px 12px; }
.rn-fs-review-list { display:grid; gap:14px; margin-top:14px; }
.rn-fs-review-results-summary { display:block; clear:both; margin:18px 0 4px; padding:0; line-height:1.4; }
.rn-fs-review-list > article { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:18px; border:1px solid #f2cf99; border-radius:13px; background:#fff; padding:15px; }
.rn-fs-review-list small { display:block; color:#587094; font-weight:800; margin-top:5px; }
@media (max-width:800px) { .rn-fs-review-list > article { grid-template-columns:1fr; } }
.rn-fs-full-panel { grid-column:1/-1; }
.rn-fs-attendance {
  border:1px solid #c6e7e6;
  border-radius:12px;
  background:#f9ffff;
  margin:0;
  padding:12px 14px 14px;
}
.rn-fs-attendance legend { color:#001f3f; font-weight:900; padding:0 6px; }
.rn-fs-tick-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:9px; }
.rn-fs-tick-grid label,.rn-fs-options label {
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #c6e7e6;
  border-radius:10px;
  background:#fff;
  color:#001f3f;
  font-weight:800;
  padding:10px 12px;
}
.rn-fs-tick-grid input[type="checkbox"],.rn-fs-options input[type="checkbox"] {
  width:18px;
  min-width:18px;
  height:18px;
  min-height:18px;
  margin:0;
  padding:0;
}
.rn-fs-options { display:flex; flex-wrap:wrap; gap:10px; }
.rn-fs-options label { background:#f7ffff; }
.rn-fs-due-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px; margin-top:14px; }
.rn-fs-due-list article { display:grid; gap:4px; border:1px solid #ffd7a5; border-radius:11px; background:#fffaf2; padding:12px 14px; }
.rn-fs-due-list strong { color:#001f3f; }
.rn-fs-due-list span,.rn-fs-due-list small { color:#587094; font-size:12px; font-weight:800; }
@media (max-width:980px) { .rn-fs-jump-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .rn-fs-jump-grid { grid-template-columns:1fr; } .rn-fs-options { display:grid; } }

/* Semi-Independence Skills page */
.rn-sil-stage {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) clamp(16px, 3vw, 28px) 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rn-sil-hero {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  border: 1px solid #bfe6e4;
  border-top: 4px solid #63d7d3;
  border-radius: 18px;
  background: linear-gradient(115deg, #ffffff 0%, #f7fffe 62%, #fff7ed 100%);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 18px 45px rgba(4, 77, 89, 0.09);
}

.rn-sil-hero h1 {
  margin: 0.55rem 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.03;
}

.rn-sil-hero p {
  margin: 0;
  color: #506580;
  font-weight: 750;
}

.rn-sil-hero .rn-profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.rn-sil-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 22px;
  white-space: nowrap;
}

.rn-sil-gate-card {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #bfe6e4;
  border-top: 4px solid #f0b35e;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfffe 100%);
  box-shadow: 0 16px 38px rgba(7, 74, 85, 0.08);
}

.rn-sil-gate-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.rn-sil-gate-head .rn-feed-pill {
  white-space: nowrap;
  align-self: start;
}

.rn-sil-gate-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.rn-sil-gate-head p {
  margin: 0;
  max-width: 720px;
  color: #526681;
  font-weight: 750;
  line-height: 1.55;
}

.rn-sil-early-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.rn-sil-early-form label {
  display: grid;
  gap: 8px;
  color: #536783;
  font-weight: 850;
}

.rn-sil-early-form textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #bfe0df;
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  color: #00224a;
  font: inherit;
  font-weight: 650;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rn-sil-early-form textarea:focus {
  outline: 2px solid rgba(26, 166, 166, 0.2);
  border-color: #52c6c3;
}

.rn-sil-submit {
  justify-self: start;
  width: auto;
  min-width: 280px;
  min-height: 50px;
  padding-inline: 24px;
}

@media (max-width: 760px) {
  .rn-sil-stage {
    padding: 20px 14px 42px;
  }

  .rn-sil-hero {
    align-items: start;
    flex-direction: column;
  }

  .rn-sil-gate-head {
    grid-template-columns: 1fr;
  }

  .rn-sil-hero .rn-profile-actions,
  .rn-sil-submit,
  .rn-sil-back-link {
    width: 100%;
    justify-content: center;
  }

  .rn-sil-submit {
    min-width: 0;
  }
}

/* Semi-Independence Skills contour repair */
.rn-sil-stage {
  width: min(100% - 32px, 1180px);
  max-width: 1180px;
  padding: 32px 0 56px;
  gap: 20px;
}

.rn-sil-hero,
.rn-sil-gate-card {
  border-radius: 8px;
  border-color: #bfe6e4;
  box-shadow: 0 18px 40px rgba(14, 55, 64, 0.08);
}

.rn-sil-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 24px;
  background: linear-gradient(135deg, #f7ffff 0%, #fffaf2 100%);
}

.rn-sil-hero h1 {
  margin: 10px 0 8px;
  color: #062249;
  letter-spacing: 0;
}

.rn-sil-hero p {
  margin: 0;
  color: #5e708f;
}

.rn-sil-hero .rn-profile-actions {
  margin-left: 0;
  gap: 10px;
  flex-wrap: wrap;
}

.rn-sil-gate-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
}

.rn-sil-gate-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
}

.rn-sil-early-form textarea {
  min-height: 108px;
  border-radius: 8px;
  box-shadow: none;
}

@media (max-width: 900px) {
  .rn-sil-stage {
    width: min(100% - 20px, 1180px);
    padding: 20px 0 40px;
  }

  .rn-sil-hero {
    display: block;
    padding: 20px;
  }

  .rn-sil-hero .rn-profile-actions {
    margin-top: 16px;
  }

  .rn-sil-gate-head {
    grid-template-columns: 1fr;
  }

  .rn-sil-submit,
  .rn-sil-back-link {
    width: 100%;
    justify-content: center;
  }
}

/* Semi-Independence Skills active form layout repair */
.rn-sil-stage > .rn-profile-grid,
.rn-sil-stage > .rn-profile-card {
  width: 100%;
}

.rn-sil-stage .rn-profile-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rn-sil-stage .rn-profile-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rn-sil-stage .rn-profile-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rn-sil-stage .rn-profile-card,
.rn-sil-stage .rn-profile-stat {
  background: #ffffff;
  border: 1px solid #cfe8e5;
  border-top: 4px solid var(--rn-line-teal);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 38px rgba(14, 55, 64, 0.06);
}

.rn-sil-stage .rn-profile-card:nth-of-type(even),
.rn-sil-stage .rn-profile-grid > .rn-profile-card:nth-child(even),
.rn-sil-stage .rn-profile-grid > .rn-profile-stat:nth-child(even) {
  border-top-color: var(--rn-line-amber);
}

.rn-sil-stage .rn-profile-card h2,
.rn-sil-stage .rn-profile-card h3 {
  margin: 0 0 12px;
  color: #062249;
  letter-spacing: 0;
  line-height: 1.18;
}

.rn-sil-stage .rn-profile-card h2 {
  font-size: clamp(20px, 2vw, 26px);
}

.rn-sil-stage .rn-profile-card h3 {
  font-size: 18px;
}

.rn-sil-stage .rn-profile-card h2::after,
.rn-sil-stage .rn-profile-card h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--rn-line-teal), var(--rn-line-amber));
  border-radius: 999px;
}

.rn-sil-stage .rn-profile-muted {
  margin: 0 0 14px;
  color: #5e708f;
  font-weight: 750;
  line-height: 1.45;
}

.rn-sil-stage .rn-profile-stat {
  display: grid;
  gap: 8px;
  min-height: 92px;
}

.rn-sil-stage .rn-profile-stat span {
  color: #5e708f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rn-sil-stage .rn-profile-stat strong {
  color: #061d3c;
  font-size: 20px;
  line-height: 1.2;
}

.rn-sil-stage .rn-profile-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.rn-sil-stage .rn-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.rn-sil-stage .rn-profile-grid-3 .rn-form-grid,
.rn-sil-stage .rn-profile-card-compact .rn-form-grid {
  grid-template-columns: 1fr;
}

.rn-sil-stage .rn-form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #526887;
  font-size: 12px;
  font-weight: 900;
}

.rn-sil-stage .rn-form-grid input,
.rn-sil-stage .rn-form-grid select,
.rn-sil-stage .rn-form-grid textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bfe2df;
  border-radius: 8px;
  background: #fbffff;
  padding: 12px 14px;
  color: #061d3c;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  box-shadow: none;
}

.rn-sil-stage .rn-form-grid textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

.rn-sil-stage .rn-form-grid input:focus,
.rn-sil-stage .rn-form-grid select:focus,
.rn-sil-stage .rn-form-grid textarea:focus {
  border-color: #42bcb8;
  outline: 3px solid rgba(66, 188, 184, 0.16);
}

.rn-sil-stage .rn-form-span-2 {
  grid-column: 1 / -1;
}

.rn-sil-stage .rn-form-grid .rn-btn,
.rn-sil-stage .rn-btn {
  min-height: 52px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(180deg, #0b8f8b, #08736f);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(8, 115, 111, 0.18);
}

.rn-sil-stage .rn-checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d4ece9;
  border-radius: 8px;
  background: #f7ffff;
}

.rn-sil-stage .rn-checkline input {
  width: 18px;
  min-height: 18px;
}

.rn-sil-stage .rn-stack {
  display: grid;
  gap: 10px;
}

.rn-sil-stage .rn-list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #d6ece9;
  border-radius: 8px;
  background: #fbffff;
}

.rn-sil-stage .rn-list-row div {
  display: grid;
  gap: 4px;
}

.rn-sil-stage .rn-list-row strong {
  color: #061d3c;
}

.rn-sil-stage .rn-list-row span,
.rn-sil-stage .rn-list-row small {
  color: #5e708f;
  font-weight: 750;
  line-height: 1.35;
}

.rn-sil-stage .rn-profile-card-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rn-sil-stage .rn-profile-card-compact .rn-feed-pill {
  width: max-content;
}

@media (max-width: 1100px) {
  .rn-sil-stage .rn-profile-grid-4,
  .rn-sil-stage .rn-profile-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rn-sil-stage .rn-profile-grid-2,
  .rn-sil-stage .rn-profile-grid-3,
  .rn-sil-stage .rn-profile-grid-4,
  .rn-sil-stage .rn-form-grid {
    grid-template-columns: 1fr;
  }

  .rn-sil-stage .rn-profile-card,
  .rn-sil-stage .rn-profile-stat {
    padding: 16px;
  }

  .rn-sil-stage .rn-profile-card-header,
  .rn-sil-stage .rn-list-row {
    display: grid;
  }
}

/* Semi-Independence Skills 104-task pathway */
.rn-sil-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.rn-sil-progress-card {
  border: 1px solid var(--rn-border, #b8e1df);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 70, 70, .06);
}

.rn-sil-progress-card span {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rn-muted, #5f728c);
}

.rn-sil-progress-card strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 6px;
  color: var(--rn-navy, #062044);
}

.rn-sil-progress-card small {
  display: block;
  margin-top: 4px;
  color: var(--rn-muted, #5f728c);
  font-weight: 700;
}

.rn-sil-pathway {
  display: grid;
  grid-template-columns: minmax(230px, 300px) 1fr;
  gap: 16px;
  align-items: start;
}

.rn-sil-section-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rn-sil-section-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--rn-border, #b8e1df);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.rn-sil-section-link:hover,
.rn-sil-section-link.is-active {
  border-color: var(--rn-teal, #007f7a);
  background: #eafbf9;
  box-shadow: 0 10px 22px rgba(0, 127, 122, .12);
}

.rn-sil-section-link strong,
.rn-sil-section-link small {
  display: block;
}

.rn-sil-section-link small {
  margin-top: 3px;
  color: var(--rn-muted, #5f728c);
  line-height: 1.35;
}

.rn-sil-section-link em {
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 900;
  color: var(--rn-teal, #007f7a);
}

.rn-sil-section-panel {
  min-width: 0;
}

.rn-sil-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.rn-sil-tab {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--rn-border, #b8e1df);
  border-left: 4px solid var(--rn-border, #b8e1df);
  border-radius: 16px;
  background: #fff;
  color: var(--rn-navy, #062044);
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(7, 47, 79, .06);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.rn-sil-tab:hover,
.rn-sil-tab:focus-visible {
  border-color: var(--rn-teal, #007f7a);
  box-shadow: 0 18px 38px rgba(7, 47, 79, .11);
  transform: translateY(-1px);
  outline: none;
}

.rn-sil-tab.is-active {
  border-color: var(--rn-teal, #007f7a);
  border-left-color: var(--rn-teal, #007f7a);
  background: linear-gradient(135deg, #f2fffd 0%, #ffffff 100%);
}

.rn-sil-tab span {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.rn-sil-tab small {
  display: block;
  color: var(--rn-muted, #5f728c);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}

.rn-sil-task-list {
  display: grid;
  gap: 12px;
}

.rn-sil-task-card {
  border: 1px solid var(--rn-border, #b8e1df);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.rn-sil-task-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.rn-sil-task-head h4 {
  margin: 4px 0;
  font-size: 1.05rem;
}

.rn-sil-task-head p {
  margin: 0;
  color: var(--rn-muted, #5f728c);
  font-weight: 700;
}

.rn-sil-task-type {
  display: inline-flex;
  border-radius: 999px;
  background: #f6fbfb;
  border: 1px solid var(--rn-border, #b8e1df);
  padding: 4px 9px;
  font-size: .75rem;
  font-weight: 900;
  color: var(--rn-teal, #007f7a);
}

.rn-sil-auto-evidence {
  border: 1px solid #b8e1df;
  border-left: 4px solid var(--rn-teal, #007f7a);
  border-radius: 12px;
  background: #f4fffd;
  padding: 10px 12px;
  margin: 8px 0 12px;
  font-weight: 800;
  color: var(--rn-navy, #062044);
}

@media (max-width: 900px) {
  .rn-sil-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rn-sil-pathway {
    grid-template-columns: 1fr;
  }

  .rn-sil-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rn-sil-tabs {
    grid-template-columns: 1fr;
  }

  .rn-sil-tab {
    min-height: 72px;
  }

  .rn-sil-progress-grid {
    grid-template-columns: 1fr;
  }

  .rn-sil-task-head {
    flex-direction: column;
  }
}
.rn-property-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.rn-property-status-card,.rn-property-jump-card{background:#fff;border:1px solid #d8e9e8;border-radius:18px;padding:18px;box-shadow:0 10px 30px rgba(16,74,78,.06)}
.rn-property-status-card span,.rn-property-jump-card span{display:block;color:#5d7476;font-size:.82rem;font-weight:700}
.rn-property-status-card strong{display:block;color:#056f70;font-size:1.65rem;margin-top:7px}
.rn-property-status-card.is-warning{border-color:#edc779;background:#fffaf0}
.rn-property-status-card.is-alert{border-color:#e7a8a8;background:#fff5f5}
.rn-property-jump-panel{margin:18px 0 24px}
.rn-property-jump-panel h2{margin-bottom:4px}
.rn-property-jump-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.rn-property-jump-card{text-decoration:none;color:inherit;transition:transform .15s ease,border-color .15s ease}
.rn-property-jump-card:hover,.rn-property-jump-card:focus{transform:translateY(-2px);border-color:#079a98}
.rn-property-jump-card strong{display:block;color:#075c60;margin-bottom:6px}
.rn-property-section-save{display:flex;justify-content:flex-end;margin-top:14px}
.rn-property-section-save button{width:auto;margin:0;padding:10px 16px}
.rn-property-back-top{position:fixed;right:24px;bottom:24px;z-index:40;background:#057f7e;color:#fff;text-decoration:none;border-radius:999px;padding:11px 16px;font-weight:800;box-shadow:0 10px 25px rgba(0,70,72,.25)}
.rn-property-back-top:hover,.rn-property-back-top:focus{background:#045f60}
[id^="property-section-"]{scroll-margin-top:24px}
@media(max-width:900px){.rn-property-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.rn-property-jump-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.rn-property-dashboard,.rn-property-jump-grid{grid-template-columns:1fr}.rn-property-back-top{right:14px;bottom:14px}}
.rn-water-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#e9fbf8,#fff7ea);border:1px solid #cce7e3;border-radius:22px;padding:24px;margin-bottom:18px}
.rn-water-hero h1{margin:7px 0;color:#075f61}
.rn-water-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.rn-water-tabs a{display:inline-flex;padding:10px 14px;border:1px solid #b9dcda;border-radius:999px;background:#fff;color:#075f61;text-decoration:none;font-weight:800}
.rn-water-tabs a:hover,.rn-water-tabs a:focus{background:#e9f9f7;border-color:#078e8c}
.rn-water-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}
.rn-water-stat{display:block;background:#fff;border:1px solid #d6e9e7;border-radius:18px;padding:17px;text-decoration:none;box-shadow:0 8px 25px rgba(13,80,81,.06)}
.rn-water-stat span{display:block;color:#5b7375;font-weight:750;font-size:.84rem}
.rn-water-stat strong{display:block;color:#087778;font-size:1.8rem;margin-top:6px}
.rn-water-stat.warn{background:#fffaf0;border-color:#ecd18d}.rn-water-stat.alert{background:#fff4f4;border-color:#e5aaaa}.rn-water-stat.alert strong{color:#a12e35}
.rn-water-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rn-water-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 22px;padding:18px;background:#f5fbfa;border:1px solid #d5e9e7;border-radius:18px}
.rn-water-form label{display:flex;flex-direction:column;gap:6px;font-weight:750;color:#344f51}.rn-water-form label.wide{grid-column:1/-1}
.rn-water-form input,.rn-water-form select,.rn-water-form textarea{width:100%;border:1px solid #c9dddd;border-radius:12px;padding:11px;background:#fff}.rn-water-form textarea{min-height:90px}
.rn-water-form button{grid-column:1/-1;justify-self:start;border:0;border-radius:999px;background:#087d7c;color:#fff;font-weight:850;padding:11px 18px}
.rn-water-list{display:grid;gap:10px}.rn-water-list article{border:1px solid #d9e8e7;border-left:5px solid #72c9c3;border-radius:14px;padding:14px;background:#fff}.rn-water-list article strong,.rn-water-list article span{display:block}.rn-water-list article span{color:#607678;margin-top:4px}.rn-water-list article.is-overdue,.rn-water-list article.result-failed,.rn-water-list article.risk-high,.rn-water-list article.risk-critical{border-left-color:#c53f48;background:#fff8f8}.rn-water-list article.result-concern,.rn-water-list article.risk-medium{border-left-color:#d99b2b;background:#fffaf0}
@media(max-width:900px){.rn-water-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rn-water-grid{grid-template-columns:1fr}}
@media(max-width:620px){.rn-water-hero{align-items:flex-start;flex-direction:column}.rn-water-stat-grid,.rn-water-form{grid-template-columns:1fr}.rn-water-form label.wide,.rn-water-form button{grid-column:1}}
.rn-water-form .rn-water-check{flex-direction:row;align-items:center;align-self:end;min-height:44px;gap:10px}
.rn-water-form .rn-water-check input[type="checkbox"]{width:20px;height:20px;margin:0;flex:0 0 auto}
.rn-water-form .rn-water-check span{display:inline}
.rn-fire-action-close{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:12px}.rn-fire-action-close label{display:grid;gap:6px;font-weight:700}.rn-fire-action-close input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #bdd7d6;border-radius:10px}.rn-fire-action-close .rn-feed-back-btn{margin:0;white-space:nowrap}@media(max-width:600px){.rn-fire-action-close{grid-template-columns:1fr}.rn-fire-action-close .rn-feed-back-btn{width:100%}}

/* Keep every My Home dashboard module on one consistent centred content rail. */
.rn-my-home-stage,.rn-diary-stage,.rn-med-stage,.rn-vc-stage,.rn-sil-stage,.rn-incident-stage{width:100%;max-width:1156px;margin-left:auto;margin-right:auto;box-sizing:border-box}
.rn-fa-stage{width:100%;max-width:980px;margin-left:auto;margin-right:auto;box-sizing:border-box}

/* Diary workboard: use the centred rail instead of squeezing the form into half. */
.rn-diary-workspace{grid-template-columns:minmax(0,1fr)}
.rn-diary-create-panel .rn-diary-form{grid-template-columns:repeat(3,minmax(0,1fr))}
.rn-diary-create-panel .rn-diary-child-select{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.rn-diary-create-panel .rn-diary-form,.rn-diary-create-panel .rn-diary-child-select{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.rn-diary-create-panel .rn-diary-form,.rn-diary-create-panel .rn-diary-child-select{grid-template-columns:1fr}}

/* Kitchen and Food Safety */
.kfs-stage{width:100%;max-width:1156px;margin-left:auto;margin-right:auto;box-sizing:border-box}.kfs-hero{background:linear-gradient(135deg,#0f766e,#0b4f4a);color:#fff}.kfs-notice{padding:14px 18px;border-radius:12px;margin-bottom:16px;background:#e8fff9;border:1px solid #85d7c8}.kfs-notice.error{background:#fff1f1;border-color:#f4aaaa}.kfs-metrics,.kfs-grid{display:grid;gap:14px}.kfs-metrics{grid-template-columns:repeat(5,minmax(0,1fr));margin:18px 0}.kfs-metric,.kfs-card,.kfs-panel{background:#fff;border:1px solid #d9e5e3;border-radius:16px;padding:18px;box-shadow:0 4px 14px rgba(15,76,70,.06)}.kfs-metric strong{display:block;font-size:2rem;color:#0f6159}.kfs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kfs-card{border-top:5px solid #2e9d86}.kfs-card.red{border-top-color:#d64545}.kfs-card.amber{border-top-color:#d99614}.kfs-card.grey{border-top-color:#8a9996}.kfs-card h3{margin:0 0 6px}.kfs-meta{color:#647773;font-size:.9rem}.kfs-badge{display:inline-block;padding:4px 9px;border-radius:999px;background:#def5ee;color:#075a4e;font-size:.78rem;font-weight:700}.kfs-badge.red{background:#ffe3e3;color:#a11717}.kfs-badge.amber{background:#fff0c9;color:#7b5100}.kfs-badge.grey{background:#e8eceb;color:#4d5957}.kfs-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.kfs-tabs a{padding:10px 14px;background:#fff;border:1px solid #cbdedb;border-radius:10px;text-decoration:none;color:#165d55;font-weight:700}.kfs-tabs a.active{background:#0f766e;color:#fff}.kfs-two{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.kfs-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kfs-form label{display:grid;gap:5px;font-weight:600}.kfs-form .wide{grid-column:1/-1}.kfs-form input,.kfs-form select,.kfs-form textarea{width:100%;padding:10px;border:1px solid #b8ceca;border-radius:9px}.kfs-form button,.kfs-btn{background:#0f766e;color:#fff;border:0;border-radius:9px;padding:11px 16px;font-weight:700;text-decoration:none;cursor:pointer}.kfs-list{display:grid;gap:10px}.kfs-row{border:1px solid #dce7e5;border-radius:12px;padding:13px}.kfs-row.red{background:#fff5f5;border-color:#f0b2b2}.kfs-row.amber{background:#fffbef;border-color:#edd292}.kfs-row header{display:flex;justify-content:space-between;gap:10px}.kfs-table{width:100%;border-collapse:collapse}.kfs-table th,.kfs-table td{text-align:left;padding:10px;border-bottom:1px solid #dce7e5;vertical-align:top}.kfs-empty{color:#647773;padding:20px;text-align:center}.kfs-filter{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:14px}.kfs-filter label{display:grid;gap:4px}.kfs-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}@media(max-width:1000px){.kfs-metrics{grid-template-columns:repeat(2,1fr)}.kfs-grid{grid-template-columns:repeat(2,1fr)}.kfs-two{grid-template-columns:1fr}}@media(max-width:650px){.kfs-metrics,.kfs-grid,.kfs-form{grid-template-columns:1fr}.kfs-form .wide{grid-column:auto}.kfs-table{display:block;overflow-x:auto}}
.kfs-options{min-width:0;margin:0;padding:0;border:0;display:flex;flex-direction:column;justify-content:flex-end;gap:9px}.kfs-options legend{margin:0 0 6px;padding:0;font-weight:700}.kfs-form .kfs-options label{display:flex;align-items:center;gap:9px;min-height:24px;font-weight:600;cursor:pointer}.kfs-form .kfs-options input[type="checkbox"]{width:20px;height:20px;min-width:20px;margin:0;padding:0;accent-color:#0f766e}.kfs-form .kfs-options span{line-height:1.25}

/* Kitchen module theme alignment: follow My Home and established ResiNotes module styling. */
.kfs-stage{display:grid;gap:18px;margin-top:30px;margin-bottom:70px}.kfs-hero{background:linear-gradient(135deg,#fff 0%,#f5ffff 100%);color:var(--rn-brand-dark);border:1px solid #c7e6e4;border-top:4px solid #67cfca;border-radius:20px;padding:22px 24px;box-shadow:0 12px 28px rgba(0,31,63,.055)}.kfs-hero h1{margin:8px 0 6px;color:var(--rn-brand-dark)}.kfs-hero p{margin:0;color:var(--rn-muted);font-weight:800}.kfs-metrics{gap:12px;margin:0}.kfs-metric{min-height:96px;padding:15px 16px;border-color:#cbe6e4;border-radius:14px;background:linear-gradient(135deg,#fff 0%,#f8fffe 100%);box-shadow:0 8px 22px rgba(0,31,63,.045)}.kfs-metric span{display:block;color:#587094;font-size:.82rem;font-weight:800;line-height:1.3}.kfs-metric strong{margin-top:6px;font-size:1.75rem;color:#087778}.kfs-tabs{margin:0}.kfs-tabs a{display:inline-flex;align-items:center;min-height:42px;border-radius:999px;border-color:#b9dcda;color:#075f61;font-weight:800}.kfs-tabs a:hover,.kfs-tabs a:focus{background:#e9f9f7;border-color:#078e8c}.kfs-tabs a.active{background:#087d7c;border-color:#087d7c;color:#fff}.kfs-grid{gap:16px}.kfs-card{display:flex;flex-direction:column;min-height:270px;border-color:#d1e6e4;border-top-width:4px;border-radius:18px;padding:19px;background:#fff;box-shadow:0 10px 26px rgba(0,31,63,.05)}.kfs-card h3{margin:8px 0 5px;color:var(--rn-brand-dark)}.kfs-card p{margin:9px 0;line-height:1.45}.kfs-card .kfs-meta{margin-top:4px;color:#587094}.kfs-links{margin-top:auto;align-items:center}.kfs-btn,.kfs-history-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border-radius:999px;font-weight:850;text-decoration:none}.kfs-btn{background:#087d7c;color:#fff}.kfs-btn:hover,.kfs-btn:focus{background:#056b6a}.kfs-history-btn{border:1px solid #b9dcda;background:#fff;color:#075f61}.kfs-history-btn:hover,.kfs-history-btn:focus{background:#e9f9f7;border-color:#078e8c}.kfs-panel{border-color:#d1e6e4;border-radius:18px;box-shadow:0 10px 26px rgba(0,31,63,.045)}@media(max-width:650px){.kfs-stage{margin-top:18px}.kfs-hero{align-items:flex-start;padding:18px;flex-direction:column}.kfs-hero .rn-row-actions{width:100%}.kfs-hero .rn-feed-back-btn{width:100%;justify-content:center}.kfs-card{min-height:0}.kfs-links{margin-top:12px}.kfs-btn,.kfs-history-btn{flex:1}}

/* Kitchen section chooser: dashboard-style 4 by 2 tile grid. */
.kfs-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kfs-tabs a{display:flex;align-items:center;justify-content:center;min-height:72px;padding:14px 12px;border:1px solid #c6e4e2;border-radius:14px;background:linear-gradient(135deg,#fff 0%,#f7fffe 100%);box-shadow:0 7px 18px rgba(0,31,63,.04);text-align:center;line-height:1.25;color:#075f61;font-weight:850}.kfs-tabs a:hover,.kfs-tabs a:focus{transform:translateY(-1px);background:#edfbfa;border-color:#69c9c4;box-shadow:0 10px 22px rgba(0,83,82,.08)}.kfs-tabs a.active{background:linear-gradient(135deg,#087d7c 0%,#056765 100%);border-color:#087d7c;color:#fff;box-shadow:0 10px 22px rgba(0,83,82,.16)}@media(max-width:850px){.kfs-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.kfs-tabs{grid-template-columns:1fr}.kfs-tabs a{min-height:54px}}

/* ResiRota final layout: use the established site rail and My Home tile system. */
.rn-page.rn-rota-page{width:100%!important;max-width:1156px!important;margin:30px auto 70px!important;box-sizing:border-box!important}
.rn-rota-page .rn-rota-hero{width:100%!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:14px 18px!important;margin:0 0 12px!important;border:1px solid #c9e2e0!important;border-radius:16px!important;background:#fff!important}
.rn-rota-page .rn-rota-hero h1{margin:0!important}
.rn-rota-page .rn-hero-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important}
.rn-rota-page .rn-rota-header-tile{display:grid!important;gap:3px!important;min-width:168px!important;padding:11px 14px!important;border:1px solid #cfe5e2!important;border-left:4px solid #087d78!important;border-radius:12px!important;background:#fff!important;color:#061a31!important;box-shadow:0 8px 18px rgba(9,38,64,.055)!important;text-decoration:none!important}
.rn-rota-page .rn-rota-header-tile strong{color:#075f61!important;font-size:14px!important}.rn-rota-page .rn-rota-header-tile small{color:#52657f!important;font-size:12px!important;font-weight:750!important}
.rn-rota-page .rn-rota-datebar{display:grid!important;grid-template-columns:minmax(190px,260px) auto!important;justify-content:start!important;align-items:end!important;gap:10px!important;width:100%!important;margin:0 0 14px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.rn-rota-page .rn-rota-datebar .rn-btn{width:auto!important;min-width:150px!important}
.rn-rota-page .rn-rota-day-links{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:12px 0 18px!important;padding-bottom:18px!important;border-bottom:1px solid #dcebea!important}
.rn-rota-page .rn-rota-day-links .rn-my-home-module-tile{width:auto!important;min-width:0!important;min-height:138px!important;box-sizing:border-box!important}
@media(max-width:700px){.rn-page.rn-rota-page{margin-top:18px!important}.rn-rota-page .rn-rota-hero{align-items:flex-start!important;flex-direction:column!important}.rn-rota-page .rn-hero-actions,.rn-rota-page .rn-rota-header-tile{width:100%!important;box-sizing:border-box!important}.rn-rota-page .rn-rota-datebar{grid-template-columns:1fr!important}.rn-rota-page .rn-rota-datebar .rn-btn{width:100%!important}.rn-rota-page .rn-rota-day-links{grid-template-columns:1fr!important}}

/* Young People home tools: distinct colours while retaining the established dashboard cards. */
.rn-young-hub-grid-tools .rn-young-hub-card{transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.rn-young-hub-grid-tools .rn-young-hub-card:hover{transform:translateY(-2px);box-shadow:0 17px 34px rgba(9,38,64,.11)}
.rn-young-hub-card-summaries{border-left-color:#7656b5!important;background:linear-gradient(135deg,#fff 0%,#f5f0ff 100%)!important}.rn-young-hub-card-summaries span,.rn-young-hub-card-summaries strong{color:#56368f!important}
.rn-young-hub-card-diary{border-left-color:#278ba8!important;background:linear-gradient(135deg,#fff 0%,#ecfaff 100%)!important}.rn-young-hub-card-diary span,.rn-young-hub-card-diary strong{color:#14647b!important}
.rn-young-hub-card-registers{border-left-color:#d2912f!important;background:linear-gradient(135deg,#fff 0%,#fff7e8 100%)!important}.rn-young-hub-card-registers span,.rn-young-hub-card-registers strong{color:#80500d!important}

/* ResiRota simplified operating structure. Keep the board primary and disclose management tools on demand. */
.rn-rota-command-grid-legacy{display:none!important}.rn-rota-primary-nav{position:relative;z-index:4;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 20px;padding:8px;border:1px solid #c9e2e0;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(0,50,68,.05)}.rn-rota-primary-nav>a,.rn-rota-tools-menu>summary{display:flex;align-items:center;gap:7px;min-height:42px;padding:9px 14px;border-radius:10px;color:#075f61;font-weight:850;text-decoration:none;cursor:pointer;list-style:none}.rn-rota-primary-nav>a:hover,.rn-rota-primary-nav>a:focus,.rn-rota-tools-menu>summary:hover{background:#eaf8f7}.rn-rota-primary-nav>a.is-active{background:#087d7c;color:#fff}.rn-rota-primary-nav>a span{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#fff;color:#8d2f38;font-size:.75rem}.rn-rota-tools-menu{position:relative;margin-left:auto}.rn-rota-tools-menu>summary::-webkit-details-marker{display:none}.rn-rota-tools-menu>summary::after{content:'\25BE';font-size:.75rem}.rn-rota-tools-menu>div{position:absolute;right:0;top:calc(100% + 7px);display:grid;min-width:250px;padding:8px;border:1px solid #c9e2e0;border-radius:13px;background:#fff;box-shadow:0 16px 34px rgba(0,31,63,.16)}.rn-rota-tools-menu>div a{padding:10px 12px;border-radius:8px;color:#164f58;font-weight:750;text-decoration:none}.rn-rota-tools-menu>div a:hover,.rn-rota-tools-menu>div a:focus{background:#eaf8f7}.rn-rota-board-card{box-shadow:0 12px 30px rgba(0,50,68,.07)}
@media(max-width:700px){.rn-rota-primary-nav{display:grid;grid-template-columns:1fr 1fr}.rn-rota-primary-nav>a,.rn-rota-tools-menu>summary{justify-content:center;text-align:center}.rn-rota-tools-menu{position:static;margin:0}.rn-rota-tools-menu>div{position:absolute;left:8px;right:8px;top:calc(100% + 5px);min-width:0}.rn-rota-days{grid-template-columns:repeat(14,minmax(210px,1fr));overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:8px}.rn-rota-day{scroll-snap-align:start}.rn-rota-board-card .rn-section-heading{align-items:flex-start;flex-direction:column}.rn-rota-board-card .rn-row-actions{width:100%}.rn-rota-board-card .rn-row-actions .rn-btn{flex:1}}

/* My Home section navigation: dashboard tiles rather than pill tabs. */
.rn-my-home-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:18px 0!important}
.rn-my-home-nav a{display:grid!important;grid-template-rows:auto auto 1fr!important;align-content:start!important;justify-content:stretch!important;min-width:0!important;min-height:112px!important;padding:15px 16px!important;border:1px solid #c8e3e1!important;border-left:4px solid #087d78!important;border-radius:14px!important;background:linear-gradient(135deg,#fff 0%,#f4fffe 100%)!important;box-shadow:0 8px 20px rgba(0,31,63,.05)!important;color:#061a31!important;text-align:left!important;text-decoration:none!important;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease!important}
.rn-my-home-nav a span{display:block;color:#08736f;font-size:.7rem;font-weight:900;letter-spacing:.06em;line-height:1.2;text-transform:uppercase}
.rn-my-home-nav a strong{display:block;margin-top:7px;color:#061a31;font-size:1rem;font-weight:900;line-height:1.2}
.rn-my-home-nav a small{display:block;margin-top:7px;color:#587094;font-size:.78rem;font-weight:750;line-height:1.35}
.rn-my-home-nav a:nth-child(2){border-left-color:#278ba8!important;background:linear-gradient(135deg,#fff 0%,#eefaff 100%)!important}.rn-my-home-nav a:nth-child(2) span{color:#14647b}
.rn-my-home-nav a:nth-child(3){border-left-color:#d2912f!important;background:linear-gradient(135deg,#fff 0%,#fff8ea 100%)!important}.rn-my-home-nav a:nth-child(3) span{color:#80500d}
.rn-my-home-nav a:nth-child(4){border-left-color:#7656b5!important;background:linear-gradient(135deg,#fff 0%,#f6f1ff 100%)!important}.rn-my-home-nav a:nth-child(4) span{color:#56368f}
.rn-my-home-nav a:hover,.rn-my-home-nav a:focus{transform:translateY(-2px)!important;border-color:#69c9c4!important;box-shadow:0 13px 27px rgba(0,64,76,.1)!important}
.rn-my-home-nav a.active{color:#061a31!important;box-shadow:0 0 0 2px #087d78,0 13px 27px rgba(0,64,76,.11)!important}
@media(max-width:900px){.rn-my-home-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.rn-my-home-nav{grid-template-columns:1fr!important}.rn-my-home-nav a{min-height:92px!important}}

/* Property workspace: one focused home-record area at a time. */
.rn-property-hero .rn-feed-banner-right{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.rn-property-jump-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.rn-property-jump-card{min-height:112px;border-left:5px solid #087d78;border-radius:14px;display:flex;flex-direction:column;justify-content:center}.rn-property-jump-card.is-blue{border-left-color:#278ba8;background:linear-gradient(135deg,#fff,#effaff)}.rn-property-jump-card.is-amber{border-left-color:#d2912f;background:linear-gradient(135deg,#fff,#fff8e9)}.rn-property-jump-card.is-purple{border-left-color:#7656b5;background:linear-gradient(135deg,#fff,#f6f1ff)}.rn-property-jump-card.is-red{border-left-color:#c95151;background:linear-gradient(135deg,#fff,#fff2f2)}.rn-property-jump-card.is-green{border-left-color:#35875d;background:linear-gradient(135deg,#fff,#effaf4)}.rn-property-jump-card.is-edit{border-left-color:#061a31;background:linear-gradient(135deg,#fff,#f1f5f8)}.rn-property-jump-card.is-active{box-shadow:0 0 0 2px #087d78,0 14px 28px rgba(0,64,76,.11);transform:translateY(-2px)}.rn-property-area-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.rn-property-area-heading span{display:block;color:#08736f;font-size:.72rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.rn-property-area-heading h2{margin:5px 0}.rn-property-area-heading p{margin:0}.rn-property-compliance-sections{margin-top:0}.rn-property-compliance-section{margin:0}.rn-property-edit-panel{margin-top:0}@media(max-width:1050px){.rn-property-jump-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.rn-property-jump-grid{grid-template-columns:1fr}.rn-property-area-heading{flex-direction:column}.rn-property-area-heading .rn-feed-back-btn{width:100%;justify-content:center}.rn-property-hero .rn-feed-banner-right{justify-content:flex-start}}
.rn-young-hub-tools-separated{margin-top:34px;padding-top:28px;border-top:1px solid #cfe1e2}
/* Messages workspace refresh: keep legacy rules above, then apply the current ResiNotes surface. */
.rn-message-directory-card{min-height:118px!important;padding:16px!important;border:1px solid #d2e5e3!important;border-left:4px solid #278ba8!important;border-radius:14px!important;background:linear-gradient(145deg,#fff,#f8fcfc)!important;box-shadow:0 8px 20px rgba(0,54,67,.045)!important}.rn-message-directory-actions .rn-btn,.rn-message-card-actions .rn-btn{min-height:40px!important;padding:8px 13px!important;border:1px solid #087d78!important;border-radius:10px!important;background:#fff!important;color:#075e62!important;box-shadow:none!important}.rn-message-compose-form input[type=file]{min-height:54px!important;padding:7px!important;border:1px solid #bfd9d7!important;border-radius:11px!important;background:#f8fcfc!important;color:#587094!important}.rn-message-compose-form input[type=file]::file-selector-button{min-height:38px;margin-right:12px;padding:8px 14px;border:1px solid #087d78;border-radius:9px;background:#fff;color:#075e62;font:inherit;font-weight:850;cursor:pointer}.rn-message-submit-row{display:flex;justify-content:flex-end;padding-top:4px}.rn-message-submit-row button{width:auto!important;min-width:170px!important;min-height:44px!important;padding:10px 20px!important;border-radius:10px!important}.rn-message-card{border-left:4px solid #278ba8!important;background:linear-gradient(145deg,#fff,#fbfdfd)!important;box-shadow:0 8px 20px rgba(0,54,67,.045)!important}@media(max-width:700px){.rn-message-directory-card{grid-template-columns:auto minmax(0,1fr)!important}.rn-message-directory-actions{grid-column:2;justify-content:flex-start}.rn-message-submit-row button{width:100%!important}}
.rn-cd-nav{border-left:4px solid #d71920!important;color:#8b1015!important}.rn-cd-main{max-width:1500px}.rn-cd-banner{background:#b20d17;color:#fff;padding:20px 26px;border:5px solid #79040b;margin-bottom:18px}.rn-cd-banner strong,.rn-cd-banner span{display:block}.rn-cd-banner span{font-size:1.8rem;font-weight:900}.rn-cd-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rn-cd-form label{display:flex;flex-direction:column;gap:6px}.rn-cd-wide,.rn-cd-confirm{grid-column:1/-1}.rn-cd-confirm{background:#fff1f2;border:2px solid #b20d17;padding:14px}.rn-cd-danger,.rn-cd-hold{background:#b20d17!important;color:#fff!important}.rn-cd-head{display:flex;justify-content:space-between;gap:20px}.rn-cd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:20px 0}.rn-cd-grid a,.rn-cd-panel{background:#fff;padding:14px}.rn-cd-panel{border-top:5px solid #b20d17;margin-top:24px}.rn-cd-entry{border-left:4px solid #b20d17;background:#fafafa;padding:14px;margin:12px 0}@media(max-width:760px){.rn-cd-form{grid-template-columns:1fr}.rn-cd-head{flex-direction:column}}
/* Description Centre readability refresh */
.rn-description-centre-page{max-width:1180px!important;padding:24px!important;border:1px solid #e2d8ea!important;border-radius:20px!important;background:linear-gradient(180deg,#fff 0,#fdfbff 100%)!important;box-shadow:0 12px 34px rgba(43,31,58,.09)!important}
.rn-description-centre-page .rn-young-module-head{padding-bottom:18px;border-bottom:1px solid #eee6f2}.rn-description-centre-page .rn-feed-pill{background:#f3e8ff!important;color:#63398a!important;border:1px solid #d8bce9!important}.rn-description-centre-page .rn-young-module-title h2{margin:8px 0 2px;font-size:1.65rem}.rn-description-centre-page .rn-young-module-title p{margin:0;color:#727586}.rn-description-dashboard-button{background:#70489b!important;border-color:#70489b!important;color:#fff!important}
.rn-description-centre-page .rn-description-status-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 22px}.rn-description-centre-page .rn-description-status-strip>div{min-height:76px;padding:14px 15px;border-radius:14px;border:1px solid #e1d4eb;background:#f9f4ff}.rn-description-centre-page .rn-description-status-strip>div:nth-child(2){background:#fff8e9;border-color:#edd59f}.rn-description-centre-page .rn-description-status-strip>div:nth-child(3){background:#eef5ff;border-color:#c5d8f1}.rn-description-centre-page .rn-description-status-strip>div:nth-child(4){background:#fff1f5;border-color:#e9c2cf}.rn-description-centre-page .rn-description-status-strip span{display:block;margin-bottom:6px;color:#696677;font-size:.7rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.rn-description-centre-page .rn-description-status-strip strong{font-size:.9rem;line-height:1.3}
.rn-description-readonly-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rn-description-readonly-card{padding:19px;border:1px solid #ead9c1;border-radius:16px;background:#fff9ef}.rn-description-readonly-card:nth-child(2){background:#f8f3ff;border-color:#dac6ec}.rn-description-readonly-card:nth-child(3){background:#f0f6ff;border-color:#c8daf3}.rn-description-readonly-card:nth-child(4){background:#fff2f5;border-color:#ebc5d0}.rn-description-readonly-card h3{margin:0 0 10px!important;color:#38224d;font-size:1.05rem!important}.rn-description-readonly-card .rn-description-readonly-grid{display:block!important}.rn-description-readonly-card .rn-description-readonly-grid>div{display:grid!important;grid-template-columns:minmax(135px,.85fr) 1.35fr!important;gap:14px!important;padding:9px 0!important;border-bottom:1px solid rgba(85,66,99,.11)!important}.rn-description-readonly-card .rn-description-readonly-grid>div:last-child{border-bottom:0!important}.rn-description-readonly-card span{color:#696777!important;font-size:.78rem!important;line-height:1.35}.rn-description-readonly-card strong{color:#182033!important;font-size:.86rem!important;line-height:1.4;overflow-wrap:anywhere}.rn-description-history-card{margin-top:18px!important;border-color:#dfd3e8!important;background:#fff!important}.rn-description-history-list article{border-radius:12px!important;background:#faf7fd!important}
@media(max-width:900px){.rn-description-readonly-groups{grid-template-columns:1fr}.rn-description-centre-page .rn-description-status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.rn-description-centre-page{padding:15px!important}.rn-description-centre-page .rn-description-status-strip{grid-template-columns:1fr}.rn-description-readonly-card .rn-description-readonly-grid>div{grid-template-columns:1fr!important;gap:3px!important}}
.rn-profile-print-control{position:relative}.rn-profile-print-control>summary{list-style:none;cursor:pointer;background:#70489b!important;border-color:#70489b!important;color:#fff!important}.rn-profile-print-control>summary::-webkit-details-marker{display:none}.rn-profile-print-control[open]>form{position:absolute;right:0;top:46px;z-index:30;width:min(390px,calc(100vw - 36px));box-sizing:border-box;padding:18px;border:1px solid #d9c8e6;border-radius:16px;background:#fff;box-shadow:0 18px 45px rgba(33,24,43,.2);text-align:left}.rn-profile-print-control form p{margin:4px 0 14px;color:#666a78;font-size:.83rem}.rn-profile-print-control form label{display:flex;flex-direction:column;gap:6px;margin:11px 0}.rn-profile-print-control form label>span{font-size:.8rem;font-weight:800}.rn-profile-print-control form textarea{min-height:78px;padding:10px;border:1px solid #cfc5d7;border-radius:10px;font:inherit;resize:vertical}.rn-profile-print-control form .rn-compact-check{flex-direction:row;align-items:flex-start;padding:10px;border-radius:10px;background:#fff6e9}.rn-profile-print-control form .rn-compact-check input{margin-top:3px}.rn-profile-print-control form button{width:100%;padding:11px;border:0;border-radius:10px;background:#70489b;color:#fff;font-weight:800}
/* ResiRota mobile board: show one complete day per swipe with a small preview. */
@media(max-width:700px){.rn-rota-board-card{overflow:hidden!important}.rn-rota-days{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:calc(100% - 30px)!important;gap:10px!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory!important;scroll-padding-inline:0;padding:2px 0 12px!important;-webkit-overflow-scrolling:touch}.rn-rota-day{box-sizing:border-box!important;width:100%!important;min-width:0!important;scroll-snap-align:start!important;scroll-snap-stop:always;overflow:hidden}.rn-rota-day-head,.rn-rota-day-counts{min-width:0}.rn-rota-day strong,.rn-rota-day span,.rn-rota-day small{overflow-wrap:anywhere}.rn-rota-days::-webkit-scrollbar{height:7px}.rn-rota-days::-webkit-scrollbar-track{border-radius:999px;background:#e7f2f1}.rn-rota-days::-webkit-scrollbar-thumb{border-radius:999px;background:#6aa5a0}.rn-rota-board-card .rn-row-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}.rn-rota-board-card .rn-row-actions .rn-btn{width:100%!important;min-width:0!important}}

/* Statement of Purpose: existing ResiNotes shell, surfaces and compact navigation. */
.sop{width:100%;max-width:1160px;margin:0 auto;box-sizing:border-box}.sop-hero{margin-bottom:14px;padding:0;background:transparent;box-shadow:none;color:inherit}.sop-hero .rn-feed-banner-left h1{margin:8px 0 5px;color:var(--rn-brand);font-size:28px}.sop-hero .rn-feed-banner-left p{margin:0;color:var(--rn-muted)}.sop-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0 32px}.sop-nav a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:7px 9px;border:1px solid #c8e3e1;border-left:4px solid #087d78;border-radius:10px;background:#f2fbfa;color:#075f61;font-size:.78rem;font-weight:800;line-height:1.2;text-align:center;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}.sop-nav a:nth-child(6n+2){border-color:#c8dfeb;border-left-color:#278ba8;background:#eefaff;color:#14647b}.sop-nav a:nth-child(6n+3){border-color:#ead7aa;border-left-color:#d2912f;background:#fff8ea;color:#80500d}.sop-nav a:nth-child(6n+4){border-color:#dac9e9;border-left-color:#7656b5;background:#f6f1ff;color:#56368f}.sop-nav a:nth-child(6n+5){border-color:#c9e1d4;border-left-color:#35875d;background:#effaf4;color:#246944}.sop-nav a:nth-child(6n+6){border-color:#ebcaca;border-left-color:#c95151;background:#fff2f2;color:#913535}.sop-nav a:hover,.sop-nav a:focus{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,54,67,.08)}.sop-nav a.active{border-color:#087d7c;background:#087d7c;color:#fff;box-shadow:0 7px 16px rgba(0,89,91,.14)}.sop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:30px}.sop-grid+.sop-two{margin-top:0!important}.sop-card,.sop-panel{box-sizing:border-box;padding:18px;border:1px solid #d2e5e3;border-radius:15px;background:#fff;box-shadow:0 8px 20px rgba(0,54,67,.045)}.sop-panel{margin-bottom:16px}.sop-card{min-height:126px}.sop-card small,.sop-muted{display:block;color:#587094}.sop-card strong{display:block;margin:7px 0;color:#061a31;font-size:1.2rem}.sop-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.sop-list{display:grid;gap:12px}.sop-item{display:grid;gap:7px;padding:15px;border:1px solid #d2e5e3;border-left:4px solid #087d78;border-radius:12px;background:#fff}.sop-item p,.sop-item small{margin:0}.sop-badge{display:inline-flex;width:max-content;padding:4px 9px;border-radius:999px;background:#eaf8f7;color:#075f61;font-size:.75rem;font-weight:800}.sop-danger{background:#fff0ee;color:#9c3025}.sop form label{display:grid;gap:6px;margin:12px 0;color:#263f49;font-weight:750}.sop input,.sop textarea,.sop select{width:100%;box-sizing:border-box;min-height:42px;padding:10px 12px;border:1px solid #bfd9d7;border-radius:10px;background:#fff;color:#061a31;font:inherit}.sop textarea{resize:vertical}.sop button{min-height:42px;padding:9px 14px;border:1px solid #087d78;border-radius:10px;background:#087d78;color:#fff;font:inherit;font-weight:850;cursor:pointer}.sop button:hover,.sop button:focus{background:#075f61}.sop details>summary{padding:6px 0;color:#063f52;font-weight:800;cursor:pointer}.sop-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sop-alert{margin-bottom:14px;padding:13px 15px;border:1px solid #eed8a0;border-left:4px solid #d2912f;border-radius:10px;background:#fff8e9;color:#63440e}.sop-check{width:auto!important;min-height:0!important}.sop-progress{height:9px;overflow:hidden;border-radius:8px;background:#e6edef}.sop-progress span{display:block;height:100%;background:#087d78}
@media(max-width:900px){.sop-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.sop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sop-two{grid-template-columns:1fr}}
@media(max-width:560px),(max-height:450px) and (orientation:landscape){.sop{max-width:none}.sop-hero{align-items:flex-start;flex-direction:column}.sop-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.sop-grid{grid-template-columns:1fr}.sop-row{display:block}.sop-card{min-height:0}}
.sop-grid+.sop-two{align-items:start}
.sop-action-link{display:inline-flex;margin-top:8px;gap:8px;text-decoration:none}.sop-panel>h2:first-child{margin-top:0}.sop-panel>p+.sop-action-link{margin-top:6px}
.sop-preview-tools{margin-bottom:18px}.sop-export-form{display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid #dcebea}.sop-export-form label{margin:0}.sop-export-form button{min-width:230px}.sop-document{max-width:900px;margin:0 auto 30px;padding:48px 54px;border:1px solid #d7e3e5;border-radius:6px;background:#fff;box-shadow:0 14px 35px rgba(0,31,63,.09)}.sop-document>header{padding-bottom:24px;border-bottom:3px solid #087d78}.sop-document>header>span{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eaf8f7;color:#075f61;font-size:.72rem;font-weight:900;text-transform:uppercase}.sop-document>header h1{margin:14px 0 5px;color:#061a31;font-size:2rem}.sop-document>header p{margin:0;color:#587094}.sop-document dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0 0}.sop-document dl div{padding:10px;border-radius:9px;background:#f5f9f9}.sop-document dt{color:#587094;font-size:.72rem;font-weight:800;text-transform:uppercase}.sop-document dd{margin:4px 0 0;color:#061a31;font-weight:800}.sop-document>section{padding:26px 0;border-bottom:1px solid #dcebea}.sop-document>section:last-child{border-bottom:0}.sop-document>section h2{margin:0 0 14px;color:#075f61;font-size:1.25rem}.sop-document-narrative{color:#1d3440;line-height:1.65}.sop-document aside{margin-top:16px;padding:13px 15px;border-left:4px solid #278ba8;border-radius:8px;background:#eefaff}.sop-document aside p{margin:5px 0 0;line-height:1.55}.sop-document details{margin-top:14px;padding:10px 13px;border-radius:8px;background:#fff8ea}.sop-document details p{line-height:1.5}
@media(max-width:760px){.sop-export-form{grid-template-columns:1fr}.sop-export-form button{width:100%;min-width:0}.sop-document{padding:28px 22px}.sop-document dl{grid-template-columns:1fr}}


/* Vehicles, Drivers & Transport Safety — scoped ResiNotes form and disclosure polish. */
.rn-transport-stage{width:min(100%,1220px);margin-inline:auto}
.rn-transport-stage .rn-profile-panel>details{margin:18px 0;border:1px solid #cfe4e2;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(0,54,67,.045);overflow:hidden}
.rn-transport-stage .rn-profile-panel>details>summary{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 17px;list-style:none;background:linear-gradient(135deg,#f5fbfa,#edf8f7);color:#075f61;font-weight:900;cursor:pointer}
.rn-transport-stage .rn-profile-panel>details>summary::-webkit-details-marker{display:none}
.rn-transport-stage .rn-profile-panel>details>summary::before{content:'›';display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:50%;background:#087d78;color:#fff;font-size:1.2rem;line-height:1;transition:transform .16s ease}
.rn-transport-stage .rn-profile-panel>details[open]>summary{border-bottom:1px solid #cfe4e2}
.rn-transport-stage .rn-profile-panel>details[open]>summary::before{transform:rotate(90deg)}
.rn-transport-stage .rn-profile-panel form{display:grid;grid-template-columns:1fr;gap:14px;box-sizing:border-box;width:100%;margin:0;padding:18px;background:#fff}
.rn-transport-stage .rn-my-home-check-row form{margin-top:8px;padding:14px;border:1px solid #d7ece9;border-radius:13px;background:#f8fcfb}
.rn-transport-stage .rn-form-grid,.rn-transport-stage .rn-form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.rn-transport-stage form label{display:grid;gap:7px;min-width:0;color:#263f49;font-size:.87rem;font-weight:850}
.rn-transport-stage form input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.rn-transport-stage form select,.rn-transport-stage form textarea{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:11px 13px;border:1px solid #bcdad7;border-radius:11px;background:#fbfdfd;color:#061a31;font:inherit;font-weight:650;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.rn-transport-stage form textarea{min-height:104px;resize:vertical;line-height:1.5}
.rn-transport-stage form input:hover,.rn-transport-stage form select:hover,.rn-transport-stage form textarea:hover{border-color:#7fc5bf;background:#fff}
.rn-transport-stage form input:focus,.rn-transport-stage form select:focus,.rn-transport-stage form textarea:focus{outline:0;border-color:#087d78;background:#fff;box-shadow:0 0 0 3px rgba(8,125,120,.13)}
.rn-transport-stage form label:has(>input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border:1px solid #d2e6e4;border-radius:11px;background:#f4fbfa;color:#23415a;cursor:pointer}
.rn-transport-stage form input[type=checkbox],.rn-transport-stage form input[type=radio]{width:19px;height:19px;min-width:19px;margin:1px 0 0;accent-color:#087d78}
.rn-transport-stage form button,.rn-transport-stage .rn-profile-panel>form>button{justify-self:start;min-height:44px;padding:10px 18px;border:1px solid #087d78;border-radius:11px;background:#087d78;color:#fff;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(8,125,120,.15);transition:background .15s ease,transform .15s ease}
.rn-transport-stage form button:hover,.rn-transport-stage form button:focus{background:#066965;transform:translateY(-1px)}
.rn-transport-stage .rn-my-home-check-list{margin-top:16px}
.rn-transport-stage .rn-my-home-check-row{gap:11px;padding:16px 17px}
.rn-transport-stage .rn-my-home-check-row p{margin:0;color:#334d5c;line-height:1.5}
@media(max-width:760px){.rn-transport-stage{max-width:none}.rn-transport-stage .rn-form-grid,.rn-transport-stage .rn-form-grid-2{grid-template-columns:1fr}.rn-transport-stage .rn-profile-panel form{padding:14px}.rn-transport-stage form button{width:100%;justify-self:stretch}}


/* Statement capability editor polish: keep native form behaviour with a modern, scoped presentation. */
.sop details.sop-item{overflow:hidden;padding:0;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.sop details.sop-item>summary{display:flex;align-items:center;gap:9px;min-height:54px;padding:12px 15px;list-style:none;background:linear-gradient(135deg,#fff,#fbfefe)}.sop details.sop-item>summary::-webkit-details-marker{display:none}.sop details.sop-item>summary::before{content:'\203A';display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:#eaf8f7;color:#075f61;font-size:1.15rem;font-weight:900;line-height:1;transition:transform .15s ease}.sop details.sop-item[open]{border-color:#94cfca;background:#fff;box-shadow:0 12px 28px rgba(0,54,67,.08)}.sop details.sop-item[open]>summary{border-bottom:1px solid #dcebea;background:#f5fbfa}.sop details.sop-item[open]>summary::before{transform:rotate(90deg)}.sop details.sop-item>summary .sop-badge{margin-left:auto}.sop details.sop-item>form,.sop details.sop-item>p,.sop details.sop-item>div{margin-left:18px;margin-right:18px}.sop details.sop-item>form{padding:6px 0 20px}.sop input,.sop textarea,.sop select{background:#fbfdfd;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.sop input:hover,.sop textarea:hover,.sop select:hover{border-color:#86c7c2;background:#fff}.sop input:focus,.sop textarea:focus,.sop select:focus{outline:0;border-color:#087d78;background:#fff;box-shadow:0 0 0 3px rgba(8,125,120,.12)}.sop form label:has(>.sop-check){display:flex;align-items:center;gap:11px;width:max-content;max-width:100%;margin:15px 0;padding:10px 13px;border:1px solid #c8e3e1;border-radius:12px;background:#f4fbfa;cursor:pointer}.sop .sop-check{position:relative;width:42px!important;height:24px!important;min-height:24px!important;flex:0 0 42px;margin:0;padding:0;border:0!important;border-radius:999px;background:#b7c9cb;appearance:none;-webkit-appearance:none;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}.sop .sop-check::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,31,63,.22);transition:transform .16s ease}.sop .sop-check:checked{background:#087d78}.sop .sop-check:checked::after{transform:translateX(18px)}.sop .sop-check:focus-visible{box-shadow:0 0 0 3px rgba(8,125,120,.18)}
/* Young People selector: keep the Open action clear at mobile widths. */
.rn-young-hub-card{position:relative;padding-right:88px!important}
.rn-young-mobile-open{display:inline-flex;position:absolute;right:14px;bottom:14px;align-items:center;justify-content:center;min-width:52px;min-height:34px;padding:7px 11px;border:1px solid #076765;border-radius:9px;background:#087d78;color:#fff!important;box-shadow:0 4px 10px rgba(0,74,76,.18);font-size:.76rem;font-style:normal;font-weight:900;line-height:1;text-decoration:none}
@media(max-width:520px){.rn-young-hub-card{padding-right:82px!important}.rn-young-mobile-open{right:12px;bottom:12px;min-width:50px}}
/* Current young-person selector: clear hierarchy and action button. */
.rn-young-snapshot-card{position:relative;grid-template-columns:76px minmax(0,1fr);min-height:118px;padding:16px 84px 16px 16px!important}.rn-young-snapshot-body{gap:5px}.rn-young-snapshot-body>strong{font-size:1rem!important;line-height:1.25}.rn-young-age{color:#66758b;font-size:.78rem;font-weight:800}.rn-young-list-cues{position:absolute;right:14px;bottom:14px}.rn-young-open-profile{display:inline-flex!important;align-items:center;justify-content:center;min-width:54px;min-height:34px;padding:7px 11px;border:1px solid #076765;border-radius:9px;background:#087d78;color:#fff!important;box-shadow:0 4px 10px rgba(0,74,76,.18);font-size:.76rem;font-weight:900;text-decoration:none}@media(max-width:520px){.rn-young-snapshot-card{grid-template-columns:58px minmax(0,1fr);min-height:108px;padding:14px 76px 14px 13px!important}.rn-young-snapshot-photo{width:58px;height:58px}.rn-young-list-cues{right:12px;bottom:12px}.rn-young-open-profile{min-width:50px}}
/* Child profile dashboard: consistent teal Open actions on mobile. */
@media(max-width:700px){.rn-young-module-tile{position:relative;box-sizing:border-box;padding-right:82px!important}.rn-young-module-tile>a{color:inherit}.rn-young-module-tile>span:last-child{position:absolute!important;right:12px!important;bottom:12px!important;display:inline-flex!important;align-items:center;justify-content:center;min-width:52px;min-height:34px;padding:7px 10px!important;border:1px solid #076765!important;border-radius:9px!important;background:#087d78!important;color:#fff!important;box-shadow:0 4px 10px rgba(0,74,76,.18)!important;font-size:.74rem!important;font-style:normal!important;font-weight:900!important;line-height:1!important;text-decoration:none!important}.rn-young-module-tile.is-planned>span:last-child,.rn-young-module-tile.is-disabled>span:last-child{border-color:#cbd5dc!important;background:#eef2f4!important;color:#61707c!important;box-shadow:none!important}}
/* Diary month calendar: purpose-built touch layout instead of a squeezed desktop grid. */
@media(max-width:700px){.rn-diary-stage{box-sizing:border-box;width:100%!important;max-width:none!important;padding:12px 10px!important}.rn-diary-month-panel{box-sizing:border-box;width:100%;min-width:0;padding:14px 11px!important;overflow:hidden}.rn-diary-month-panel .rn-diary-section-head{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}.rn-diary-month-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important;width:100%}.rn-diary-month-actions .rn-admin-soft-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;min-height:40px;padding:8px 6px!important;font-size:.75rem!important}.rn-diary-calendar-weekdays,.rn-diary-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:3px!important;width:100%;min-width:0}.rn-diary-calendar-weekdays{margin-top:13px!important}.rn-diary-calendar-weekdays span{padding:0!important;text-align:center;font-size:0!important}.rn-diary-calendar-weekdays span:after{font-size:.64rem;font-weight:900}.rn-diary-calendar-weekdays span:nth-child(1):after{content:'M'}.rn-diary-calendar-weekdays span:nth-child(2):after{content:'T'}.rn-diary-calendar-weekdays span:nth-child(3):after{content:'W'}.rn-diary-calendar-weekdays span:nth-child(4):after{content:'T'}.rn-diary-calendar-weekdays span:nth-child(5):after{content:'F'}.rn-diary-calendar-weekdays span:nth-child(6):after{content:'S'}.rn-diary-calendar-weekdays span:nth-child(7):after{content:'S'}.rn-diary-calendar-day{position:relative;box-sizing:border-box;aspect-ratio:1/1;min-width:0!important;min-height:0!important;padding:5px!important;border-radius:8px!important;align-items:flex-start;justify-content:flex-start!important;box-shadow:none!important}.rn-diary-calendar-day span{font-size:.75rem;line-height:1}.rn-diary-calendar-day strong{position:absolute;right:3px;bottom:3px;width:17px!important;height:17px!important;font-size:.61rem!important}.rn-diary-calendar-day.is-selected{border:2px solid #087d78!important;background:#e7f6f4!important;box-shadow:inset 0 0 0 1px #fff!important}.rn-diary-calendar-day.is-selected span{color:#065f5b}.rn-diary-calendar-day.is-outside{opacity:.24}.rn-diary-day-panel,.rn-diary-recall-panel,.rn-diary-create-panel{box-sizing:border-box;min-width:0;padding:15px 12px!important}.rn-diary-event-card{min-width:0!important}.rn-diary-event-actions form,.rn-diary-event-actions form:has(input[type='datetime-local']){grid-template-columns:1fr!important}}
@media(max-width:700px){.rn-diary-stage{display:flex!important;flex-direction:column!important;gap:14px!important}.rn-diary-stage>.rn-diary-hero{order:1}.rn-diary-stage>.rn-diary-month-panel{order:2}.rn-diary-stage>.rn-diary-summary-grid{order:3}.rn-diary-stage>.rn-diary-workspace{order:4}.rn-diary-stage>.rn-diary-recall-panel{order:5}.rn-diary-stage>.rn-diary-month-panel,.rn-diary-stage>.rn-diary-summary-grid,.rn-diary-stage>.rn-diary-workspace,.rn-diary-stage>.rn-diary-recall-panel{margin-top:0!important;margin-bottom:0!important}}
/* Diary is split into focused work areas instead of one long page. */
.rn-diary-view-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%;margin:0}.rn-diary-view-tiles a{position:relative;display:grid;min-width:0;min-height:116px;padding:15px 54px 15px 16px;border:1px solid #d6e5e4;border-radius:14px;background:#fff;color:#183f3d;text-decoration:none;box-shadow:0 7px 20px rgba(16,65,62,.05)}.rn-diary-view-tiles a>span{color:#087d78;font-size:.69rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.rn-diary-view-tiles a>strong{margin:5px 0 3px;font-size:.98rem;line-height:1.25}.rn-diary-view-tiles a>small{color:#637876;font-size:.73rem;line-height:1.35}.rn-diary-view-tiles a>b{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:29px;padding:4px 8px;border-radius:8px;background:#e5f4f2;color:#08736f;font-size:.68rem}.rn-diary-view-tiles a.is-active{border:2px solid #168f87;background:#edf8f6}.rn-diary-view-tiles a.is-active>b{background:#087d78;color:#fff}.rn-diary-workspace{grid-template-columns:minmax(0,1fr)!important}.rn-diary-workspace>.rn-diary-panel{width:100%;box-sizing:border-box}
@media(max-width:850px){.rn-diary-view-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.rn-diary-stage>.rn-diary-hero{order:1}.rn-diary-stage>.rn-diary-view-tiles{order:2}.rn-diary-stage>.rn-diary-workspace,.rn-diary-stage>.rn-diary-month-panel,.rn-diary-stage>.rn-diary-recall-panel{order:3}.rn-diary-stage>.rn-diary-summary-grid{display:none!important}.rn-diary-view-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rn-diary-view-tiles a{min-height:102px;padding:12px 46px 12px 12px}.rn-diary-view-tiles a>strong{font-size:.86rem}.rn-diary-view-tiles a>small{font-size:.67rem}.rn-diary-view-tiles a>b{right:9px;bottom:9px;min-width:38px;min-height:27px}}
@media(max-width:430px){.rn-diary-view-tiles{grid-template-columns:1fr}.rn-diary-view-tiles a{min-height:88px}}
/* Child Diary mobile: compact controls so the working record appears immediately. */
@media(max-width:700px){.rn-diary-child-mode>.rn-diary-hero{padding:15px 13px!important;gap:11px!important}.rn-diary-child-mode>.rn-diary-hero h1{font-size:1.35rem!important;line-height:1.15}.rn-diary-child-mode>.rn-diary-hero p{margin:5px 0 0!important;font-size:.77rem!important;line-height:1.4}.rn-diary-child-mode .rn-diary-hero-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;width:100%}.rn-diary-child-mode .rn-diary-hero-actions .rn-admin-soft-button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:38px;padding:7px 5px!important;font-size:.72rem!important}.rn-diary-child-mode .rn-diary-view-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.rn-diary-child-mode .rn-diary-view-tiles a{display:flex;align-items:center;min-height:66px!important;padding:10px 28px 10px 10px!important;border-radius:11px!important}.rn-diary-child-mode .rn-diary-view-tiles a>span{display:none!important}.rn-diary-child-mode .rn-diary-view-tiles a>strong{margin:0!important;font-size:.78rem!important;line-height:1.2}.rn-diary-child-mode .rn-diary-view-tiles a>small,.rn-diary-child-mode .rn-diary-view-tiles a>b{display:none!important}.rn-diary-child-mode .rn-diary-view-tiles a:after{content:'›';position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#087d78;font-size:1.15rem;font-weight:900}.rn-diary-child-mode .rn-diary-view-tiles a.is-active{background:#e8f6f4!important}.rn-diary-child-mode .rn-diary-view-tiles a.is-active:before{content:'Current';position:absolute;left:9px;top:5px;color:#087d78;font-size:.5rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.rn-diary-child-mode .rn-diary-view-tiles a.is-active>strong{padding-top:10px}.rn-diary-child-mode>.rn-diary-workspace>.rn-diary-day-panel{padding:14px 12px!important}.rn-diary-child-mode .rn-diary-day-panel .rn-diary-section-head h2{font-size:1.12rem!important}}
/* Diary progressive disclosure: summaries stay calm until a change is required. */
.rn-diary-manage{margin-top:13px;padding-top:11px;border-top:1px solid #dbe8e7}.rn-diary-manage>summary{display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;border:1px solid #bcdedb;border-radius:9px;background:#edf8f6;color:#08736f;cursor:pointer;font-size:.76rem;font-weight:900;list-style:none}.rn-diary-manage>summary::-webkit-details-marker{display:none}.rn-diary-manage>summary:before{content:'+';display:grid;place-items:center;width:18px;height:18px;margin-right:7px;border-radius:50%;background:#087d78;color:#fff;font-size:.78rem}.rn-diary-manage[open]>summary:before{content:'−'}.rn-diary-manage .rn-diary-event-actions{margin-top:12px;padding:13px;border:1px solid #dbe8e7;border-radius:11px;background:#f8fbfb}.rn-diary-child-mode>.rn-diary-hero{padding:20px 22px}.rn-diary-child-mode .rn-diary-summary-grid article{min-height:82px;padding:14px 16px}.rn-diary-child-mode .rn-diary-view-tiles a{min-height:96px}.rn-diary-child-mode .rn-diary-day-panel .rn-diary-event-card{padding:16px!important}
@media(max-width:700px){.rn-diary-manage>summary{width:100%;box-sizing:border-box;justify-content:center}.rn-diary-manage .rn-diary-event-actions{padding:10px}.rn-diary-child-mode>.rn-diary-hero{padding:15px 13px}}
/* Five-part Diary journey and focused entry search. */
.rn-diary-view-tiles-five,.rn-diary-jump-tiles{grid-template-columns:repeat(5,minmax(0,1fr))!important}.rn-diary-find-panel{box-sizing:border-box;width:100%;min-width:0}.rn-diary-find-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:14px}.rn-diary-find-form label{display:grid;gap:6px;color:#244b49;font-weight:800}.rn-diary-find-form input{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #b8d2d0;border-radius:9px;font:inherit}.rn-diary-find-form button{min-height:44px;padding:10px 18px;border:0;border-radius:9px;background:#087d78;color:#fff;font-weight:900}.rn-diary-find-empty{margin-top:16px;padding:22px;border:1px dashed #bdd7d5;border-radius:12px;background:#f8fbfb;text-align:center}.rn-diary-find-empty p{margin:5px 0 0;color:#607775}.rn-diary-find-results{display:grid;gap:10px;margin-top:16px}.rn-diary-find-results article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 15px;border:1px solid #d8e5e4;border-left:4px solid #168f87;border-radius:11px;background:#fff}.rn-diary-find-results h3,.rn-diary-find-results p{margin:3px 0}.rn-diary-find-results span{color:#087d78;font-size:.7rem;font-weight:900;text-transform:uppercase}.rn-diary-find-results p{color:#607775;font-size:.78rem}.rn-diary-find-results a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 11px;border-radius:8px;background:#e6f5f3;color:#08736f;font-size:.74rem;font-weight:900;text-decoration:none}
@media(max-width:900px){.rn-diary-view-tiles-five,.rn-diary-jump-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.rn-diary-find-form{grid-template-columns:1fr}.rn-diary-find-form button{width:100%}.rn-diary-find-results article{grid-template-columns:1fr}.rn-diary-find-results a{justify-self:stretch}.rn-diary-child-mode .rn-diary-view-tiles-five{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rn-diary-child-mode .rn-diary-view-tiles-five a:last-child{grid-column:1/-1}}
/* Warm empty-day state for the modern Diary theme. */
.rn-diary-empty-day{position:relative;overflow:hidden;display:grid;grid-template-columns:54px minmax(0,1fr);gap:15px;align-items:start;padding:22px;border:1px solid #eadcc5;border-left:5px solid #d89a35;border-radius:15px;background:linear-gradient(135deg,#fffaf2 0%,#fff 68%);box-shadow:0 8px 22px rgba(91,64,25,.055)}.rn-diary-empty-day:after{content:'';position:absolute;right:-34px;bottom:-42px;width:120px;height:120px;border-radius:50%;background:rgba(232,181,91,.13)}.rn-diary-empty-mark{position:relative;z-index:1;display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#f3dfba;color:#8d5a10;font-size:1.25rem;font-weight:950}.rn-diary-empty-day>div:nth-child(2){position:relative;z-index:1}.rn-diary-empty-day span{color:#9a681d;font-size:.7rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.rn-diary-empty-day h3{margin:4px 0 5px;color:#3d3327;font-size:1.08rem}.rn-diary-empty-day p{max-width:720px;margin:0;color:#6d6255;font-size:.84rem;line-height:1.5}.rn-diary-empty-actions{position:relative;z-index:1;grid-column:1/-1;display:flex;flex-wrap:wrap;gap:9px;margin-top:3px}.rn-diary-empty-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 13px;border:1px solid #d8c4a1;border-radius:9px;background:#fff;color:#75521d;font-size:.76rem;font-weight:900;text-decoration:none}.rn-diary-empty-actions a.is-primary{border-color:#087d78;background:#087d78;color:#fff}.rn-diary-day-panel>.rn-diary-section-head{padding-bottom:11px;border-bottom:1px solid #e4eceb}.rn-diary-day-panel>.rn-diary-section-head h2{color:#173f3d}
@media(max-width:700px){.rn-diary-empty-day{grid-template-columns:42px minmax(0,1fr);gap:11px;padding:15px 13px}.rn-diary-empty-mark{width:40px;height:40px;border-radius:12px}.rn-diary-empty-day h3{font-size:.94rem}.rn-diary-empty-actions{display:grid;grid-template-columns:1fr}.rn-diary-empty-actions a{width:100%;box-sizing:border-box}}
.rn-diary-form-guide{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 4px}.rn-diary-form-guide span{display:flex;align-items:center;gap:9px;min-height:42px;padding:9px 11px;border:1px solid #d8e7e5;border-radius:12px;background:#f4faf9;color:#315b58;font-size:.78rem;font-weight:800}.rn-diary-form-guide b{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:#087d78;color:#fff;font-size:.72rem}.rn-diary-form-section{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;box-sizing:border-box;min-width:0;margin:4px 0 0;padding:16px 17px 18px;border:1px solid #dce8e6;border-left:4px solid #087d78;border-radius:14px;background:#fff}.rn-diary-form-section legend{padding:0 8px;color:#163f3c;font-size:.95rem;font-weight:900}.rn-diary-form-section>p{grid-column:1/-1;margin:-2px 0 2px;color:#667874;font-size:.78rem;line-height:1.45}.rn-diary-form-section .rn-diary-span{grid-column:1/-1}.rn-diary-form-section label{min-width:0}.rn-diary-form-section input,.rn-diary-form-section select,.rn-diary-form-section textarea{box-sizing:border-box;width:100%}.rn-diary-form-section.is-arrangements{border-left-color:#d99a2b;background:#fffdf8}.rn-diary-form-section.is-arrangements legend{color:#7b5519}.rn-diary-form-section.is-context{border-left-color:#527bbb;background:#fbfcff}.rn-diary-form-section.is-context legend{color:#345b91}.rn-diary-form-section.is-preparation{border-left-color:#58a06c;background:#fbfefb}.rn-diary-form-section.is-preparation legend{color:#326c42}.rn-diary-create-panel .rn-diary-submit{grid-column:1/-1;justify-self:stretch;min-height:48px;border-radius:12px;background:#087d78;box-shadow:0 8px 18px rgba(8,125,120,.16);font-weight:900}.rn-diary-create-panel .rn-diary-submit:hover{background:#066a66}@media(max-width:900px){.rn-diary-form-guide{grid-template-columns:repeat(2,minmax(0,1fr))}.rn-diary-form-section{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.rn-diary-form-guide,.rn-diary-form-section{grid-template-columns:1fr}.rn-diary-form-guide{gap:7px}.rn-diary-form-guide span{min-height:36px;padding:7px 9px}.rn-diary-form-section{padding:14px 12px 16px;gap:12px}.rn-diary-form-section>*{grid-column:1!important}.rn-diary-form-section legend{font-size:.88rem}}
.rn-diary-eyebrow{display:block;margin-bottom:4px;color:#a46816;font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.rn-diary-archive-head{align-items:end;padding-bottom:15px;border-bottom:1px solid #e5eceb}.rn-diary-archive-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.rn-diary-archive-summary>div{padding:12px 14px;border:1px solid #e2e9e8;border-radius:12px;background:#f8fbfa}.rn-diary-archive-summary span{display:block;margin-bottom:4px;color:#788783;font-size:.67rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.rn-diary-archive-summary strong{color:#263f3d;font-size:.86rem}.rn-diary-recall-list{gap:12px}.rn-diary-archive-card{display:grid!important;grid-template-columns:86px minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 16px!important;border-left:4px solid #7aa9a5!important;background:linear-gradient(100deg,#f9fcfb 0,#fff 42%)}.rn-diary-archive-date{display:grid;place-items:center;align-content:center;min-height:76px;padding:7px;border-radius:12px;background:#e9f4f2;color:#28635f;text-align:center}.rn-diary-archive-date strong{font-size:1.45rem;line-height:1}.rn-diary-archive-date span{margin-top:3px;font-size:.68rem;font-weight:900;text-transform:uppercase}.rn-diary-archive-date small{margin-top:5px;color:#587572;font-size:.68rem}.rn-diary-status-pill{display:inline-flex;float:right;padding:4px 8px;border-radius:999px;background:#eaf1f0;color:#496562;font-size:.65rem;font-weight:900;text-transform:uppercase}.rn-diary-archive-card h3{margin:3px 0 4px!important;font-size:1rem!important}.rn-diary-archive-card .rn-diary-event-main>p{margin:0 0 6px;color:#586b68;font-size:.78rem}.rn-diary-archive-card .rn-diary-created-by{font-size:.7rem!important}.rn-diary-archive-card .rn-diary-child-chips{margin-top:8px}.rn-diary-archive-open{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 11px;border:1px solid #b8d4d1;border-radius:9px;background:#fff;color:#176f69;font-size:.72rem;font-weight:900;text-decoration:none}.rn-diary-status-cancelled.rn-diary-archive-card{border-left-color:#c47878!important}.rn-diary-status-cancelled .rn-diary-archive-date{background:#faeeee;color:#8a4444}.rn-diary-status-completed.rn-diary-archive-card{border-left-color:#58a06c!important}.rn-diary-status-completed .rn-diary-archive-date{background:#edf7ef;color:#3c7148}@media(max-width:700px){.rn-diary-archive-head{display:grid!important;grid-template-columns:1fr!important;gap:12px}.rn-diary-archive-summary{grid-template-columns:1fr 1fr}.rn-diary-archive-summary>div:last-child{grid-column:1/-1}.rn-diary-archive-card{grid-template-columns:68px minmax(0,1fr)!important;gap:11px;padding:12px!important}.rn-diary-archive-date{min-height:66px}.rn-diary-archive-open{grid-column:1/-1;width:100%;box-sizing:border-box}.rn-diary-status-pill{float:none;margin-bottom:4px}.rn-diary-archive-card .rn-diary-created-by{display:block;line-height:1.35}}
.rn-diary-recall-panel .rn-diary-archive-card{grid-template-columns:86px minmax(0,1fr) auto!important}@media(max-width:700px){.rn-diary-recall-panel .rn-diary-archive-card{grid-template-columns:68px minmax(0,1fr)!important}}
.rn-diary-status-pill.is-attended{background:#dff3e5;color:#25663a}.rn-diary-status-pill.is-cancelled-us{background:#fde5e5;color:#9a3434}.rn-diary-status-pill.is-cancelled-them{background:#fff0d7;color:#8b5a12}.rn-diary-status-pill.is-refused{background:#eee5fa;color:#674198}.rn-diary-status-pill.is-pending{background:#e9eff2;color:#53646d}
.rn-diary-day-list{gap:12px}.rn-diary-day-panel .rn-diary-event-card{display:block!important;padding:15px 17px!important;border:1px solid #dce8e6!important;border-left:4px solid #6aa7a2!important;border-radius:13px!important;background:linear-gradient(110deg,#f8fcfb 0,#fff 48%)!important;box-shadow:0 5px 14px rgba(31,73,69,.045)!important}.rn-diary-event-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}.rn-diary-event-top .rn-diary-date{color:#3f6865;font-size:.74rem;font-weight:900}.rn-diary-day-panel .rn-diary-event-card h3{margin:0 0 5px!important;color:#173f3d;font-size:1rem!important}.rn-diary-day-panel .rn-diary-event-main>p:not(.rn-diary-note){margin:0 0 7px;color:#627471;font-size:.78rem}.rn-diary-day-panel .rn-diary-created-by{display:block;margin-bottom:3px;font-size:.7rem!important}.rn-diary-day-panel .rn-diary-created-by+small{display:block;color:#526966;font-size:.73rem;font-weight:800}.rn-diary-day-panel .rn-diary-note{margin:10px 0 0!important;padding:10px 12px;border:1px solid #e3e9e8;border-radius:9px;background:#fff;color:#52625f;font-size:.76rem;line-height:1.45}.rn-diary-day-panel .rn-diary-child-chips{margin-top:10px}.rn-diary-day-panel .rn-diary-child-chips a,.rn-diary-day-panel .rn-diary-home-chip{min-height:30px;padding:5px 9px;font-size:.72rem}.rn-diary-day-panel .rn-diary-manage{margin-top:11px}.rn-diary-status-completed.rn-diary-event-card{border-left-color:#58a06c!important}.rn-diary-status-cancelled.rn-diary-event-card{border-left-color:#c47878!important}@media(max-width:600px){.rn-diary-event-top{align-items:flex-start;flex-direction:column;gap:6px}.rn-diary-day-panel .rn-diary-event-card{padding:13px 12px!important}.rn-diary-day-panel .rn-diary-event-card h3{font-size:.92rem!important}}
