/* Refinder design system, 2026-11-12. Adapted from the archived page palette.
   The demo HTML is NOT served. Real forms, data and routes remain untouched. */
:root {
  --rf-ink:#21131d;--rf-paper:#f8f6f3;--rf-white:#fffdfa;
  --rf-muted:#756b70;--rf-line:#e8e0df;--rf-lav:#f0e2fa;
  --rf-plum:#92719f;--rf-coral:#ff795f;--rf-mint:#dcefe6;
  --rf-shadow:0 18px 45px rgba(48,25,38,.075);
  --rf-radius:17px;--rf-focus:#735a95;
  color-scheme:light;
}
body.rf-design {background:var(--rf-paper)!important;color:var(--rf-ink)!important;
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  line-height:1.58;-webkit-font-smoothing:antialiased;}
body.rf-design *{box-sizing:border-box;}
body.rf-design main,body.rf-design .content{min-width:0;}
body.rf-design h1,body.rf-design h2,body.rf-design h3{color:var(--rf-ink);letter-spacing:-.037em;line-height:1.23;}
body.rf-design h1{font-size:clamp(1.8rem,3vw,2.8rem);}
body.rf-design h2{font-size:clamp(1.2rem,2.1vw,1.65rem);}
body.rf-design .muted,body.rf-design .hint,body.rf-design .sub{color:var(--rf-muted);}
body.rf-design .panel,body.rf-design .card,body.rf-design .stat-card,
body.rf-design .metric,body.rf-design .feature-card,body.rf-design .box,
body.rf-design .notice,body.rf-design .pricing-card{
  border:1px solid var(--rf-line);border-radius:var(--rf-radius);
  box-shadow:var(--rf-shadow);}
body.rf-design .panel,body.rf-design .card,body.rf-design .stat-card,body.rf-design .metric{
  background:var(--rf-white);}
body.rf-design .panel,body.rf-design .card{padding:clamp(14px,2vw,25px);}
body.rf-design a{color:#694b7b;text-underline-offset:3px;}
body.rf-design .button,body.rf-design button:not(.menu):not(.tab-button),
body.rf-design .btn-primary,body.rf-design a.btn-primary{
  border-radius:11px;min-height:42px;background:var(--rf-ink);color:#fff;
  border:1px solid var(--rf-ink);font-weight:650;}
body.rf-design .button:hover,body.rf-design button:hover:not(.menu):not(.tab-button),
body.rf-design .btn-primary:hover{background:#443046;color:#fff;}
body.rf-design .secondary,body.rf-design .btn-ghost,body.rf-design .button.secondary{
  color:var(--rf-ink);background:#f0eaf0;border-color:var(--rf-line);}
body.rf-design .danger{background:#fff0eb;color:#ad4436;border-color:#ffd1c8;}
body.rf-design .pill,body.rf-design .badge,body.rf-design .status{
  border-radius:999px;background:#f0e2fa;color:#61436b;padding:.3rem .6rem;}
body.rf-design input:not([type=checkbox]):not([type=radio]),
body.rf-design select,body.rf-design textarea{
  border:1px solid #d6cdd1;border-radius:10px;background:white;color:var(--rf-ink);
  font:inherit;padding:11px 12px;max-width:100%;min-width:0;}
body.rf-design input:focus-visible,body.rf-design select:focus-visible,
body.rf-design textarea:focus-visible,body.rf-design button:focus-visible,
body.rf-design a:focus-visible,body.rf-design summary:focus-visible{
  outline:3px solid var(--rf-focus);outline-offset:2px;}
body.rf-design table{background:var(--rf-white);max-width:100%;}
body.rf-design thead th,body.rf-design th{background:#f7f1f3;color:#655b61;}
body.rf-design tr:hover td{background:#faf7f8;}
body.rf-design .table-wrap,body.rf-design .table-scroll{overflow-x:auto;max-width:100%;}
body.rf-design footer{color:var(--rf-muted);}
body.rf-design .sidebar{border-color:var(--rf-line);background:var(--rf-white);}
body.rf-design .sidebar a.active{background:var(--rf-lav);color:var(--rf-ink);}
body.rf-design .topbar{background:var(--rf-white);border-bottom:1px solid var(--rf-line);}
/* Shared role-aware navigation, intentionally separate from legacy CSS selectors. */
body.rf-design .rf-shell-bar{position:relative;isolation:isolate;z-index:1200;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
  padding:12px max(18px,calc((100% - 1340px)/2));min-height:68px;
  background:var(--rf-white);border-bottom:1px solid var(--rf-line);
  box-shadow:0 3px 16px rgba(48,25,38,.055);}
body.rf-design .rf-logo{flex:0 0 auto;display:flex;align-items:center;
  text-decoration:none;color:var(--rf-ink);}
body.rf-design .rf-logo img{width:auto;height:36px;max-width:170px;max-height:44px;object-fit:contain;}
body.rf-design .rf-shell-right{display:flex;gap:14px;align-items:center;max-width:100%;}
body.rf-design .rf-locale{display:flex;align-items:center;gap:7px;color:var(--rf-muted);
  font-size:13px;font-weight:600;margin:0;white-space:nowrap;}
body.rf-design .rf-locale select{width:auto;min-width:76px;max-width:130px;
  background:white;padding:7px 10px;min-height:40px;}
body.rf-design .rf-menu{position:relative;min-width:0;}
body.rf-design .rf-menu>summary{min-height:44px;display:flex;align-items:center;
  justify-content:center;gap:8px;padding:9px 16px;list-style:none;
  border-radius:10px;background:var(--rf-ink);border:1px solid var(--rf-ink);
  color:#fff;cursor:pointer;font-size:14px;font-weight:700;white-space:nowrap;}
body.rf-design .rf-menu>summary::-webkit-details-marker{display:none;}
body.rf-design .rf-menu[open]>summary{background:#553b59;}
body.rf-design .rf-menu-panel{position:absolute;top:calc(100% + 8px);right:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;
  width:min(800px,calc(100vw - 34px));max-height:75vh;overflow:auto;
  padding:20px;background:var(--rf-white);border:1px solid var(--rf-line);
  border-radius:16px;box-shadow:0 22px 65px #26152526;}
body.rf-design .rf-link-group{min-width:0;border:1px solid var(--rf-line);
  border-radius:12px;padding:10px;background:#fdfaf9;}
body.rf-design .rf-link-group h2{font-weight:700;font-size:12px;line-height:1.4;letter-spacing:.04em;
  margin:4px 9px 9px;text-transform:uppercase;color:var(--rf-muted);}
body.rf-design .rf-link{display:block;min-height:42px;padding:9px 11px;
  border-radius:8px;color:var(--rf-ink);text-decoration:none;
  font-size:14px;line-height:1.45;overflow-wrap:anywhere;}
body.rf-design .rf-link:hover,body.rf-design .rf-current{background:var(--rf-lav);color:#47304f;}
body.rf-design .rf-current{font-weight:700;}
/* Historical owner drawer is visually replaced; its route actions remain
   represented in the full, dynamically enumerated role navigation above. */
body.rf-design .owner-nav-drawer{display:none!important;}
body.rf-design>header{position:relative;top:auto;z-index:10;
  background:var(--rf-white);border-color:var(--rf-line);box-shadow:none;}
body.rf-design .hero{background:transparent;}
body.rf-design .stat .value,body.rf-design .metric .value{color:var(--rf-ink);}
body.rf-design .empty-icon{background:var(--rf-lav);color:var(--rf-plum);}
@media(max-width:800px){
  body.rf-design .rf-menu-panel{grid-template-columns:1fr;max-height:70dvh;}
  body.rf-design .rf-shell-bar{padding:10px 16px;}
  body.rf-design .panel,body.rf-design .card{padding:16px;}
  body.rf-design .grid,body.rf-design .stats{min-width:0;}
}
@media(max-width:420px){
  body.rf-design .rf-shell-bar{gap:8px;}
  body.rf-design .rf-logo img{height:29px;max-width:120px;}
  body.rf-design .rf-shell-right{gap:6px;}
  body.rf-design .rf-menu>summary{font-size:12px;padding:8px 9px;}
  body.rf-design .rf-locale{font-size:11px;gap:4px;}
  body.rf-design .rf-locale select{min-width:60px;padding:6px;}
  body.rf-design table{min-width:600px;}
}
@media(prefers-reduced-motion:reduce){
  body.rf-design *,body.rf-design *::before,body.rf-design *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}
