
/* rb9: one layout per person, bottom tab bar */
body.rb9 #app > nav[role="tablist"], body.rb9 #role-wrap, body.rb9 .topbar header > p, body.rb9 .whobar { display: none !important; }
body.rb9 .topbar { padding-top: 6px; padding-bottom: 6px; align-items: center; }
body.rb9 .topbar h1 { font-size: 20px; margin: 0; }
body.rb9 { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
#rb9-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; background: #fff; border-top: 1px solid #d9dee7; padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
#rb9-bar button { flex: 1; position: relative; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; font: 600 12px/1.1 "Public Sans", system-ui, sans-serif; color: #5a6475; min-height: 52px; }
#rb9-bar button[aria-current="page"] { color: #1d5fd1; }
#rb9-bar button[aria-current="page"]::before { content: ""; position: absolute; top: -4px; left: 22%; right: 22%; height: 3px; border-radius: 3px; background: #1d5fd1; }
#rb9-bar .r9-i { font-size: 21px; line-height: 1; }
#rb9-bar .r9-b { position: absolute; top: 2px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d93025; color: #fff; font-size: 11px; line-height: 18px; }
.r9-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; align-items: center; -webkit-overflow-scrolling: touch; }
.r9-chips button { flex: none; border: 1px solid #c9d1de; background: #fff; border-radius: 999px; padding: 9px 15px; font: 600 15px/1 "Public Sans", system-ui, sans-serif; color: #2b3445; min-height: 40px; }
.r9-chips button[aria-selected="true"] { background: #1d5fd1; border-color: #1d5fd1; color: #fff; }
.r9-chips .r9-cb { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #d93025; color: #fff; font-size: 11px; line-height: 18px; margin-left: 4px; }
.r9-chips .r9-back { border: 0; padding-left: 0; color: #1d5fd1; }
.r9-chips .r9-title { font: 700 18px/1.1 "Barlow Semi Condensed", system-ui, sans-serif; }
.r9-more .r9-group { background: #fff; border: 1px solid #dfe4ec; border-radius: 12px; margin: 0 0 14px; overflow: hidden; }
.r9-more .r9-gh { padding: 10px 14px 4px; font: 600 13px/1.2 "Public Sans", system-ui, sans-serif; color: #6b7588; text-transform: none; }
.r9-row { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; border-top: 1px solid #eef1f5; padding: 15px 14px; font: 500 17px/1.2 "Public Sans", system-ui, sans-serif; color: #1f2633; text-align: left; min-height: 52px; }
.r9-group > .r9-row:first-child { border-top: 0; }
.r9-sel { margin: 6px 14px 14px; width: calc(100% - 28px); font-size: 16px; padding: 10px; border-radius: 8px; border: 1px solid #c9d1de; }
.r9-clear { margin: 6px 0; padding: 12px 14px; border-radius: 12px; background: #e8f5ec; color: #1d6b38; font-weight: 600; }
.r9-clear summary { cursor: pointer; }
.r9-clear .s-sub { margin: 8px 0; font-weight: 400; }
.r9-codes summary, .r9-set summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.r9-set { background: #fff; border: 1px solid #dfe4ec; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.r9-set > summary { font-size: 17px; }
.r9-set[open] > summary { margin-bottom: 10px; }
.r9-find { align-self: flex-end; margin: 0 0 8px auto; display: block; border: 1px solid #c9d1de; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.r9-gal { opacity: .95; }

body.rb9 .topbar{display:flex!important;flex-direction:row;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:8px}
body.rb9 #b-new{display:inline-block!important}
.r9-search{display:none}
body.rb9 .r9-search{display:inline-block;border:1px solid #c9d1de;background:#fff;border-radius:8px;padding:8px 11px;font-size:17px;line-height:1}
body.rb9 .topbar header h1{font-size:15px!important;font-weight:600;color:var(--muted);letter-spacing:.02em;text-transform:uppercase;margin:0}
.r9-chips .r9-back{background:none!important;border:0!important}
.r9-set .card,.r9-set section,.r9-set .s-card{border:0;box-shadow:none;margin:0;padding:0}
.r9-set{padding:4px 14px}
.r9-set>summary{padding:12px 0}
