  /* Inter servida pelo próprio site, como no FiscView (OFL em marca/inter-OFL.txt). */
  @font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./marca/inter-latin.woff2") format("woff2"); }
  html { color-scheme: light; }
  html[data-rf-theme="dark"] { color-scheme: dark; }
  body { margin: 0; background: light-dark(#f8fafc, #091220); }
  #rf-prototype {
    color-scheme: light;
    /* Paleta do FiscView: azul institucional #2673B8 sobre branco; no escuro, azul-marinho em vez de preto. */
    --rf-bg: light-dark(#f8fafc, #091220);
    --rf-subtle: light-dark(#f1f5f9, #0e1a2c);
    --rf-paper: light-dark(#fff, #12203a);
    --rf-ink: light-dark(#0f1729, #f3f6fc);
    --rf-muted: light-dark(#5a687c, #a9bad2);
    --rf-line: light-dark(#d7dfea, #2a3c58);
    --rf-green: light-dark(#2673b8, #5aa2ff);
    --rf-green-fill: light-dark(#2673b8, #3886fa);
    --rf-on-green: #fff;
    --rf-soft: light-dark(#e8f1fa, #1a3050);
    --rf-ok: light-dark(#157a3a, #2ac663);
    --rf-ok-soft: light-dark(#e6f4eb, #143524);
    --rf-amber: light-dark(#854b19, #ffd19a);
    --rf-amber-soft: light-dark(#fff1df, #483424);
    --rf-blue: light-dark(#1d5a91, #b8d2ff);
    --rf-blue-soft: light-dark(#dbe8f6, #22395a);
    --rf-red: light-dark(#b42318, #ff8a8f);
    --rf-red-soft: light-dark(#fdecec, #4a1f24);
    /* Barra lateral e gradiente institucionais do FiscView: iguais nos dois temas. */
    --rf-side: #092f4c;
    --rf-side-fg: #f8fafc;
    --rf-side-muted: #c9d4e3;
    --rf-side-active: #3ebaf4;
    --rf-side-active-fg: #092f4c;
    --rf-gradient-start: #092f4c;
    --rf-gradient-middle: #145d91;
    --rf-gradient-end: #2673b8;
    --rf-shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .06);
    font: 400 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--rf-ink);
    text-align: left;
  }
  #rf-prototype *, #rf-prototype *::before, #rf-prototype *::after { box-sizing: border-box; }
  #rf-prototype [hidden] { display: none !important; }
  #rf-prototype :is(h1,h2,h3,p,dl,dd,ul) { margin: 0; }
  #rf-prototype :is(button,input,select,textarea) { font: inherit; color: inherit; }
  #rf-prototype :is(h1,h2,h3) { letter-spacing: -.025em; color: var(--rf-ink); }
  #rf-prototype h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.15; font-weight: 700; }
  #rf-prototype h2 { font-size: 1.05rem; line-height: 1.3; font-weight: 650; }
  #rf-prototype h3 { font-size: .975rem; line-height: 1.35; font-weight: 650; }
  #rf-prototype :focus-visible { outline: 2px solid var(--rf-green); outline-offset: 2px; }

  /* Aplicativo em tela cheia: barra lateral fixa à esquerda e área de trabalho com rolagem própria da página. */
  #rf-prototype .rf-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100dvh; background: var(--rf-bg); }
  #rf-prototype .rf-side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 18px; padding: 18px 12px 14px; background: var(--rf-side); color: var(--rf-side-fg); overflow-y: auto; }
  #rf-prototype .rf-brand, #rf-prototype .rf-inline { display: flex; align-items: center; gap: 9px; }
  #rf-prototype .rf-brand { padding: 2px 6px 0; font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; color: var(--rf-side-fg); }
  #rf-prototype .rf-brand small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--rf-side-muted); }
  #rf-prototype .rf-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #2673b8; }
  #rf-prototype .rf-mark .rf-icon { width: 19px; height: 19px; }
  #rf-prototype .rf-nav { display: grid; align-content: start; gap: 4px; }
  #rf-prototype .rf-nav button { display: flex; align-items: center; text-align: left; gap: 10px; padding: 9px 10px; background: transparent; border: 0; border-radius: 8px; min-height: 40px; font-size: .88rem; font-weight: 560; color: var(--rf-side-muted); cursor: pointer; }
  #rf-prototype .rf-nav button:hover { color: var(--rf-side-fg); background: rgb(255 255 255 / .1); }
  #rf-prototype .rf-nav button[aria-current="page"] { background: var(--rf-side-active); color: var(--rf-side-active-fg); font-weight: 680; }
  #rf-prototype .rf-side-foot { margin-top: auto; display: grid; gap: 10px; }
  #rf-prototype .rf-theme { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border: 1px solid rgb(255 255 255 / .15); border-radius: 8px; background: rgb(255 255 255 / .06); }
  #rf-prototype .rf-theme button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--rf-side-muted); font-size: .78rem; font-weight: 600; cursor: pointer; }
  #rf-prototype .rf-theme button:hover { color: var(--rf-side-fg); }
  #rf-prototype .rf-theme button[aria-pressed="true"] { background: #2673b8; color: #fff; }
  #rf-prototype .rf-user { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px; border-radius: 10px; background: rgb(255 255 255 / .07); }
  #rf-prototype .rf-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--rf-side-active); color: var(--rf-side-active-fg); font-size: .78rem; font-weight: 700; }
  #rf-prototype .rf-user-text { display: grid; min-width: 0; line-height: 1.25; }
  #rf-prototype .rf-user-text strong { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #rf-prototype .rf-user-text span { font-size: .72rem; line-height: 1.3; color: var(--rf-side-muted); }
  #rf-prototype .rf-logout { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--rf-side-muted); cursor: pointer; }
  #rf-prototype .rf-logout:hover { background: rgb(255 255 255 / .12); color: var(--rf-side-fg); }
  :root[data-rf-theme="dark"] #rf-prototype { color-scheme: dark; --rf-shadow: 0 1px 2px rgb(0 0 0 / .32), 0 14px 36px rgb(0 0 0 / .3); }
  #rf-prototype .rf-main { min-width: 0; width: 100%; padding: 26px clamp(14px, 3vw, 40px) 40px; display: grid; align-content: start; gap: 16px; }
  #rf-prototype :is(.rf-nav button,.rf-button,.rf-tabs button,.rf-item-button,.rf-upload,.rf-link) { cursor: pointer; }
  #rf-prototype .rf-tabs button:hover { color: var(--rf-green); }
  #rf-prototype .rf-temporary { display: grid; gap: 8px; padding: 13px; border-left: 3px solid var(--rf-green); }
  #rf-prototype .rf-block { display: block; }
  #rf-prototype .rf-secret { padding: 6px 12px; border-radius: 7px; background: var(--rf-subtle); border: 1px dashed var(--rf-line); font: 600 1.05rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; user-select: all; }

  /* Login no padrão do FiscView: painel da marca à esquerda e cartão claro sobre o gradiente institucional. */
  #rf-prototype .rf-login { position: relative; display: grid; min-height: 100dvh; overflow: hidden; background: var(--rf-bg); }
  #rf-prototype .rf-login-theme { position: absolute; top: 16px; right: 16px; z-index: 3; width: min(13rem, calc(100% - 32px)); background: rgb(255 255 255 / .12); animation: rf-fade-down .75s .18s cubic-bezier(.2,.8,.2,1) both; }
  #rf-prototype .rf-login-theme button { color: #e6eef8; }
  #rf-prototype .rf-login-brand { position: relative; display: none; flex-direction: column; overflow: hidden; padding: 40px 48px; background: light-dark(#f8fafc, linear-gradient(145deg, var(--rf-gradient-middle), var(--rf-gradient-end))); color: light-dark(var(--rf-gradient-start), #f8fafc); }
  html[data-rf-theme="dark"] #rf-prototype .rf-login-brand { background: linear-gradient(145deg, var(--rf-gradient-middle), var(--rf-gradient-end)); }
  #rf-prototype .rf-login-product { position: relative; animation: rf-fade-down .75s .08s cubic-bezier(.2,.8,.2,1) both; }
  #rf-prototype .rf-wordmark { font-size: 1.5rem; line-height: 1; letter-spacing: -.02em; display: flex; gap: 6px; }
  #rf-prototype .rf-login-caption { margin-top: 6px; font-size: .65rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; opacity: .75; }
  #rf-prototype .rf-login-hero { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0; text-align: center; }
  #rf-prototype .rf-hero-logo { width: 100%; max-width: 36rem; height: auto; animation: rf-hero-in .95s .22s cubic-bezier(.16,1,.3,1) both; }
  #rf-prototype .rf-tagline { margin-top: 40px; max-width: 32rem; font-size: 1.5rem; font-weight: 600; line-height: 1.35; animation: rf-fade-up .78s .46s cubic-bezier(.2,.8,.2,1) both; }
  #rf-prototype .rf-support { margin-top: 12px; max-width: 28rem; font-size: .875rem; line-height: 1.6; opacity: .78; animation: rf-fade-up .78s .58s cubic-bezier(.2,.8,.2,1) both; }
  #rf-prototype .rf-partners { margin-top: 40px; display: flex; align-items: center; gap: 24px; animation: rf-fade-up .8s .72s cubic-bezier(.2,.8,.2,1) both; }
  #rf-prototype .rf-partners img { height: 36px; width: auto; transition: transform .28s ease; }
  #rf-prototype .rf-partners img.rf-partner-tall { height: 56px; }
  #rf-prototype .rf-partners img:hover { transform: translateY(-4px) scale(1.015); }
  #rf-prototype .rf-partners span { height: 48px; border-left: 1px solid light-dark(var(--rf-line), rgb(255 255 255 / .3)); }
  html[data-rf-theme="dark"] #rf-prototype .rf-brand-logo { filter: brightness(0) invert(1); }
  #rf-prototype .rf-restricted { position: relative; display: flex; align-items: center; gap: 8px; font-size: .75rem; opacity: .78; animation: rf-fade-up .8s .9s ease both; }
  #rf-prototype .rf-login-access { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 88px 16px 32px; background: linear-gradient(150deg, var(--rf-gradient-start) 0%, var(--rf-gradient-middle) 45%, var(--rf-gradient-end) 100%); background-size: 125% 125%; animation: rf-bg-shift 14s ease-in-out infinite alternate; }
  #rf-prototype .rf-ring { position: absolute; border-radius: 50%; pointer-events: none; --ring-x: 14px; --ring-y: -9px; animation: rf-ring 12s ease-in-out infinite; }
  #rf-prototype .rf-ring-a { left: -10rem; top: -7rem; width: 24rem; height: 24rem; border: 1px solid light-dark(rgb(38 115 184 / .15), rgb(255 255 255 / .15)); }
  #rf-prototype .rf-ring-b { left: -6rem; top: 2rem; width: 18rem; height: 18rem; border: 1px solid light-dark(rgb(38 115 184 / .1), rgb(255 255 255 / .1)); }
  #rf-prototype .rf-ring-c { right: -8rem; top: 4rem; width: 20rem; height: 20rem; border: 1px solid rgb(255 255 255 / .1); --ring-x: -16px; --ring-y: 14px; animation-duration: 11s; }
  #rf-prototype .rf-ring-d { right: -4rem; top: 8rem; width: 16rem; height: 16rem; border: 1px solid rgb(255 255 255 / .05); --ring-x: -16px; --ring-y: 14px; animation-duration: 11s; }
  #rf-prototype .rf-ring-seam { right: -12rem; bottom: -12rem; width: 24rem; height: 24rem; border: 40px solid light-dark(rgb(38 115 184 / .06), rgb(255 255 255 / .05)); --ring-x: 0px; --ring-y: -10px; animation: rf-ring 14s ease-in-out infinite reverse; }
  #rf-prototype .rf-ring-seam-right { right: auto; left: -12rem; border-color: rgb(255 255 255 / .05); }
  #rf-prototype .rf-orb { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #3ebaf4; box-shadow: 0 0 28px 8px rgb(62 186 244 / .28); pointer-events: none; animation: rf-orb 9s ease-in-out infinite; }
  #rf-prototype .rf-orb-a { left: 78%; bottom: 8%; }
  #rf-prototype .rf-orb-b { left: 18%; top: 17%; animation-delay: -4s; }
  /* O cartão fica claro nos dois temas, como no FiscView. */
  #rf-prototype .rf-login-card { position: relative; width: 100%; max-width: 28rem; color-scheme: light; color: #0f1729; background: #fff; border: 1px solid rgb(226 232 240 / .8); border-radius: 12px; box-shadow: 0 24px 60px rgb(15 23 42 / .28); animation: rf-card-in .95s .25s cubic-bezier(.16,1,.3,1) both; }
  #rf-prototype .rf-login-card-head { display: grid; gap: 6px; padding: 24px 24px 8px; }
  #rf-prototype .rf-login-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
  #rf-prototype .rf-login-card-top img { height: 40px; width: auto; }
  #rf-prototype .rf-lock { display: grid; place-items: center; padding: 8px; border-radius: 50%; background: rgb(38 115 184 / .1); color: #2673b8; animation: rf-lock-pop .65s .85s both, rf-card-float 8s 1.3s ease-in-out infinite; }
  #rf-prototype .rf-login-card h1 { color: #0f1729; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
  #rf-prototype .rf-login-card-head p { color: #5a687c; font-size: .875rem; }
  #rf-prototype .rf-login-form { display: flex; flex-direction: column; gap: 16px; padding: 16px 24px 24px; }
  #rf-prototype .rf-login-field { display: grid; gap: 6px; font-size: .875rem; font-weight: 500; color: #0f1729; }
  #rf-prototype .rf-login-field input { min-height: 40px; padding: 8px 12px; border: 1px solid #d7dfea; border-radius: 8px; background: #fff; color: #0f1729; font-size: .9rem; }
  #rf-prototype .rf-login-field input:focus-visible { outline: 2px solid #2673b8; outline-offset: 1px; border-color: #2673b8; }
  #rf-prototype .rf-login-hint { margin-top: -6px; color: #5a687c; font-size: .78rem; }
  #rf-prototype .rf-login-message { padding: 12px; border-radius: 6px; font-size: .875rem; }
  #rf-prototype .rf-login-message[data-kind="alert"] { background: rgb(220 38 38 / .12); color: #b91c1c; }
  #rf-prototype .rf-login-message[data-kind="status"] { background: rgb(21 128 61 / .12); color: #15803d; }
  #rf-prototype .rf-login-submit { position: relative; overflow: hidden; margin-top: 4px; min-height: 40px; border: 0; border-radius: 8px; background: #2673b8; color: #fff; font-size: .9rem; font-weight: 600; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
  #rf-prototype .rf-login-submit::after { content: ""; position: absolute; top: -15px; bottom: -15px; left: -45%; width: 28%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent); transform: skewX(-18deg); transition: left .58s ease; }
  #rf-prototype .rf-login-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px rgb(38 115 184 / .25); }
  #rf-prototype .rf-login-submit:hover:not(:disabled)::after { left: 118%; }
  #rf-prototype .rf-login-submit:disabled { opacity: .7; cursor: progress; }
  #rf-prototype .rf-login-link { align-self: center; border: 0; background: none; color: #5a687c; font-size: .875rem; text-underline-offset: 2px; cursor: pointer; }
  #rf-prototype .rf-login-link:hover { text-decoration: underline; }
  #rf-prototype .rf-login-demo { margin: 0 24px 18px; padding: 10px 12px; border-radius: 8px; background: #fff7e6; color: #7a4a12; font-size: .78rem; line-height: 1.45; }
  #rf-prototype .rf-login-card-foot { padding: 16px 24px; border-top: 1px solid #e2e8f0; text-align: center; color: #5a687c; font-size: .75rem; }
  #rf-prototype .rf-login-card-foot div { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 16px; }
  #rf-prototype .rf-login-card-foot img { height: 20px; width: auto; }
  #rf-prototype .rf-login-card-foot img + span + img { height: 32px; }
  #rf-prototype .rf-login-card-foot span { height: 24px; border-left: 1px solid #e2e8f0; }
  @media (min-width: 1024px) {
    #rf-prototype .rf-login { grid-template-columns: minmax(0, 1.25fr) minmax(28rem, .75fr); }
    #rf-prototype .rf-login-brand { display: flex; }
    #rf-prototype .rf-login-access { padding: 48px; }
  }
  @keyframes rf-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes rf-fade-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
  @keyframes rf-hero-in { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes rf-card-in { from { opacity: 0; transform: translateX(28px) translateY(4px) scale(.99); } to { opacity: 1; transform: none; } }
  @keyframes rf-card-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
  @keyframes rf-lock-pop { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
  @keyframes rf-bg-shift { 0% { background-position: 0% 15%; } 100% { background-position: 100% 85%; } }
  @keyframes rf-ring { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(var(--ring-x), var(--ring-y), 0) scale(1.035); } }
  @keyframes rf-orb { 0%, 100% { transform: translate(0, 0); opacity: .25; } 50% { transform: translate(-18px, -28px); opacity: .75; } }
  @media (prefers-reduced-motion: reduce) {
    #rf-prototype :is(.rf-login-theme, .rf-login-product, .rf-hero-logo, .rf-tagline, .rf-support, .rf-partners, .rf-restricted, .rf-login-access, .rf-ring, .rf-orb, .rf-login-card, .rf-lock) { animation: none; }
    #rf-prototype :is(.rf-partners img, .rf-login-submit, .rf-login-submit::after) { transition: none; }
    #rf-prototype :is(.rf-partners img:hover, .rf-login-submit:hover:not(:disabled)) { transform: none; }
  }
  #rf-prototype .rf-head, #rf-prototype .rf-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 13px; }
  #rf-prototype .rf-head p { margin-top: 5px; color: var(--rf-muted); }
  #rf-prototype .rf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
  #rf-prototype .rf-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--rf-paper); color: var(--rf-ink); min-height: 36px; padding: 6px 10px; border: 1px solid var(--rf-line); border-radius: 7px; font-size: .82rem; font-weight: 630; text-align: center; }
  #rf-prototype .rf-button:hover { border-color: var(--rf-green); }
  #rf-prototype .rf-primary { background: var(--rf-green-fill); color: var(--rf-on-green); border-color: var(--rf-green-fill); }
  #rf-prototype .rf-button:disabled { opacity: .55; cursor: default; }
  #rf-prototype .rf-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 16px; height: 16px; }
  #rf-prototype .rf-mark .rf-icon { width: 19px; height: 19px; }
  #rf-prototype .rf-muted { color: var(--rf-muted); }
  #rf-prototype .rf-small { font-size: .79rem; }
  #rf-prototype .rf-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
  #rf-prototype .rf-metrics { background: var(--rf-paper); border: 1px solid var(--rf-line); border-radius: 10px; box-shadow: var(--rf-shadow); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #rf-prototype .rf-metrics > div { padding: 10px 13px; display: grid; gap: 2px; }
  #rf-prototype .rf-metrics > div + div { border-left: 1px solid var(--rf-line); }
  #rf-prototype .rf-metrics dt { color: var(--rf-muted); font-size: .79rem; }
  #rf-prototype .rf-metrics dd { font-size: clamp(.95rem, 2.2vw, 1.36rem); font-weight: 690; line-height: 1.25; letter-spacing: -.045em; }
  #rf-prototype .rf-split { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); align-items: start; gap: 12px; }
  #rf-prototype .rf-box { min-width: 0; background: var(--rf-paper); border: 1px solid var(--rf-line); border-radius: 10px; box-shadow: var(--rf-shadow); }
  #rf-prototype .rf-box-title { padding: 12px 12px 8px; }
  #rf-prototype .rf-tabs { display: flex; flex-wrap: wrap; gap: 2px 7px; border-bottom: 1px solid var(--rf-line); padding: 0 10px; }
  #rf-prototype .rf-tabs button { background: transparent; color: var(--rf-muted); border: 0; border-bottom: 2px solid transparent; padding: 6px 2px; font-size: .76rem; }
  #rf-prototype .rf-tabs button[aria-pressed="true"] { color: var(--rf-green); border-color: var(--rf-green); font-weight: 690; }
  #rf-prototype .rf-items { list-style: none; padding: 0; }
  #rf-prototype .rf-items > li + li { border-top: 1px solid var(--rf-line); }
  #rf-prototype .rf-item-button { text-align: left; width: 100%; background: transparent; border: 0; border-radius: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; }
  #rf-prototype .rf-item-button[aria-pressed="true"], #rf-prototype .rf-item-button:hover { background: var(--rf-soft); }
  #rf-prototype .rf-item-button:last-child { border-radius: 0; }
  #rf-prototype .rf-items > li:last-child .rf-item-button { border-radius: 0 0 9px 9px; }
  #rf-prototype .rf-item-name { font-size: .87rem; font-weight: 650; overflow-wrap: anywhere; display: block; }
  #rf-prototype .rf-item-meta { display: block; color: var(--rf-muted); font-size: .75rem; margin-top: 1px; }
  #rf-prototype .rf-item-info { display: grid; justify-items: end; gap: 3px; font-size: .83rem; }
  #rf-prototype .rf-state { display: inline-flex; align-items: center; width: max-content; max-width: 100%; border-radius: 99px; padding: 2px 7px; font-size: .75rem; font-weight: 640; background: var(--rf-ok-soft); color: var(--rf-ok); white-space: nowrap; }
  #rf-prototype .rf-state[data-state="pending"] { background: var(--rf-amber-soft); color: var(--rf-amber); }
  #rf-prototype .rf-state[data-state="posted"] { background: var(--rf-blue-soft); color: var(--rf-blue); }
  #rf-prototype .rf-state[data-state="adjust"] { background: var(--rf-red-soft); color: var(--rf-red); }
  #rf-prototype .rf-detail { display: grid; gap: 9px; padding: 11px; }
  #rf-prototype .rf-detail h3, #rf-prototype .rf-detail p { overflow-wrap: anywhere; }
  #rf-prototype .rf-proof { min-width: 0; display: grid; gap: 7px; }
  #rf-prototype .rf-proof-stage { display: grid; place-items: center; min-height: 142px; background: var(--rf-bg); border: 1px solid var(--rf-line); border-radius: 8px; padding: 9px; }
  #rf-prototype .rf-proof-stage img { max-width: 100%; max-height: 250px; object-fit: contain; }
  #rf-prototype .rf-ticket { border: 1px solid var(--rf-line); border-radius: 3px; background: var(--rf-paper); padding: 9px; width: 142px; max-width: 100%; font-size: .74rem; display: grid; gap: 4px; }
  #rf-prototype .rf-ticket-mark { color: var(--rf-green); font-size: .67rem; font-weight: 700; letter-spacing: .09em; }
  #rf-prototype .rf-ticket hr { border: 0; border-top: 1px dashed var(--rf-line); margin: 2px 0; }
  #rf-prototype .rf-proof-file { color: var(--rf-muted); font-size: .75rem; overflow-wrap: anywhere; }
  #rf-prototype .rf-detail-form, #rf-prototype .rf-form-box { padding: 13px; display: grid; gap: 12px; }
  #rf-prototype .rf-detail-form { padding: 0; }
  #rf-prototype .rf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
  #rf-prototype .rf-field { min-width: 0; display: grid; align-content: start; gap: 4px; color: var(--rf-muted); font-size: .83rem; font-weight: 570; }
  #rf-prototype .rf-span { grid-column: 1 / -1; }
  #rf-prototype :is(input:not([type="file"]),select,textarea) { min-width: 0; width: 100%; border: 1px solid var(--rf-line); border-radius: 7px; background: var(--rf-paper); padding: 6px 8px; min-height: 36px; }
  #rf-prototype textarea { resize: vertical; }
  #rf-prototype .rf-upload { display: inline-flex; position: relative; }
  #rf-prototype .rf-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
  #rf-prototype .rf-upload:focus-within { outline: 2px solid var(--rf-green); outline-offset: 2px; }
  #rf-prototype .rf-error { color: var(--rf-red); font-weight: 590; }
  #rf-prototype .rf-notice { border-radius: 7px; background: var(--rf-soft); color: var(--rf-green); padding: 8px 11px; }
  #rf-prototype .rf-excel { overflow: clip; }
  #rf-prototype .rf-excel-head { padding: 10px 13px; }
  #rf-prototype .rf-excel-head .rf-inline { font-weight: 640; min-width: 0; overflow-wrap: anywhere; }
  #rf-prototype .rf-excel-head .rf-icon { color: var(--rf-green); }
  #rf-prototype .rf-excel-tabs { padding-inline: 12px; column-gap: 14px; }
  #rf-prototype .rf-excel-tabs button { font-size: .84rem; padding-block: 9px; }
  #rf-prototype .rf-excel-scroll { max-height: min(72vh, 860px); overflow: auto; background: #e9ecef; }
  /* A prévia reproduz o papel do Excel: fundo branco e cores do arquivo nos dois temas. */
  #rf-prototype .rf-excel-paper { position: relative; width: max-content; margin: 14px; background: #fff; color: #000; box-shadow: 0 1px 4px rgb(0 0 0 / .18); color-scheme: light; }
  #rf-prototype .rf-excel-grid { border-collapse: collapse; table-layout: fixed; background: #fff; }
  #rf-prototype .rf-excel-grid td { padding: 0 2px; overflow: hidden; line-height: 1.12; font-variant-numeric: tabular-nums; }
  #rf-prototype .rf-excel-grid th { background: #f3f3f3; color: #5f6368; border: 1px solid #d4d4d4; font: 500 11px/1 Arial, sans-serif; text-align: center; padding: 0; }
  #rf-prototype .rf-excel-grid thead th { position: sticky; top: 0; z-index: 2; }
  #rf-prototype .rf-excel-image { position: absolute; pointer-events: none; z-index: 1; }
  #rf-prototype .rf-blank { padding: 12px; }
  #rf-prototype .rf-decision { display: grid; gap: 8px; padding: 10px 12px; }
  #rf-prototype .rf-directory { display: grid; gap: 8px; }
  #rf-prototype .rf-directory article { display: grid; gap: 2px; padding: 10px 12px; overflow-wrap: anywhere; }
  #rf-prototype .rf-red { color: var(--rf-red); font-weight: 650; }
  #rf-prototype .rf-alert { display: grid; gap: 3px; padding: 9px 11px; border-radius: 8px; background: var(--rf-red-soft); color: var(--rf-red); border-left: 3px solid var(--rf-red); }
  #rf-prototype .rf-alert strong { gap: 6px; font-size: .84rem; }
  #rf-prototype .rf-alert p { color: var(--rf-ink); font-size: .84rem; overflow-wrap: anywhere; }
  #rf-prototype .rf-item-button[data-state="adjust"] { box-shadow: inset 3px 0 0 var(--rf-red); }
  #rf-prototype .rf-item-alert { margin-top: 3px; gap: 5px; align-items: flex-start; color: var(--rf-red); font-size: .75rem; font-weight: 600; overflow-wrap: anywhere; }
  #rf-prototype .rf-item-alert .rf-icon { width: 14px; height: 14px; margin-top: 2px; }
  #rf-prototype .rf-tabs-sub { background: var(--rf-subtle); }
  #rf-prototype .rf-region-filter { max-width: 26rem; padding: 0 12px 10px; }
  #rf-prototype .rf-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
  #rf-prototype .rf-region { display: grid; gap: 3px; text-align: left; padding: 12px 13px; background: var(--rf-paper); color: var(--rf-ink); border: 1px solid var(--rf-line); border-radius: 10px; box-shadow: var(--rf-shadow); cursor: pointer; }
  #rf-prototype .rf-region:hover { border-color: var(--rf-green); }
  #rf-prototype .rf-region-name { gap: 6px; font-weight: 680; color: var(--rf-green); }
  #rf-prototype .rf-region > strong { font-size: 1.2rem; letter-spacing: -.03em; }
  #rf-prototype .rf-region-link { gap: 5px; margin-top: 3px; font-size: .78rem; font-weight: 650; color: var(--rf-green); }
  #rf-prototype .rf-history { border-top: 1px solid var(--rf-line); padding-top: 8px; }
  #rf-prototype .rf-history summary { cursor: pointer; font-size: .82rem; font-weight: 650; }
  #rf-prototype .rf-history ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
  #rf-prototype .rf-history li { display: grid; gap: 1px; padding-left: 10px; border-left: 2px solid var(--rf-line); font-size: .78rem; overflow-wrap: anywhere; }
  #rf-prototype .rf-history-when { color: var(--rf-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
  #rf-prototype .rf-contractor { gap: 6px; color: var(--rf-muted); }
  #rf-prototype .rf-contractor strong { color: var(--rf-ink); }
  #rf-prototype .rf-choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #rf-prototype .rf-choice legend { padding: 0; margin-bottom: 5px; color: var(--rf-muted); font-size: .83rem; font-weight: 570; }
  #rf-prototype .rf-choice-option { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border: 1px solid var(--rf-line); border-radius: 8px; cursor: pointer; }
  #rf-prototype .rf-choice-option:has(input:checked) { border-color: var(--rf-green); background: var(--rf-soft); }
  #rf-prototype .rf-choice-option input[type="radio"] { width: auto; min-height: 0; flex: none; margin: 3px 0 0; accent-color: var(--rf-green); }
  #rf-prototype .rf-choice-option > span { display: grid; gap: 1px; }
  #rf-prototype .rf-required { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--rf-red-soft); color: var(--rf-red); font-size: .7rem; font-weight: 650; letter-spacing: 0; vertical-align: middle; }
  #rf-prototype a.rf-button { text-decoration: none; }
  #rf-prototype .rf-button[data-compact] { min-height: 28px; padding: 3px 8px; font-size: .76rem; margin-left: 4px; }
  #rf-prototype .rf-proof .rf-between .rf-button { min-height: 30px; padding: 4px 9px; font-size: .78rem; }
  #rf-prototype .rf-viewer { width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--rf-line); border-radius: 12px; background: var(--rf-paper); color: var(--rf-ink); box-shadow: 0 24px 60px rgb(9 18 32 / .35); }
  #rf-prototype .rf-viewer::backdrop { background: rgb(9 18 32 / .6); }
  #rf-prototype .rf-viewer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rf-line); }
  #rf-prototype .rf-viewer-head h2 { overflow-wrap: anywhere; }
  #rf-prototype .rf-viewer-body { display: grid; place-items: center; min-height: 320px; padding: 12px; background: var(--rf-subtle); }
  #rf-prototype .rf-viewer-body img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
  #rf-prototype .rf-viewer-body iframe { width: 100%; height: calc(100vh - 160px); border: 0; background: #fff; }
  #rf-prototype .rf-viewer-example { display: grid; justify-items: center; gap: 12px; text-align: center; }
  #rf-prototype .rf-viewer-example .rf-ticket { width: 240px; font-size: .88rem; }
  /* Tela de usuários portada do FiscView (src/components/usuarios/usuarios-v4.module.css), com as variáveis deste site. */
  #rf-prototype .rf-users { --u-primary: var(--rf-green); --u-soft: color-mix(in srgb, var(--rf-green) 14%, transparent); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
  #rf-prototype .rf-uheader { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-inline: 12px; }
  #rf-prototype .rf-ueyebrow { color: var(--u-primary); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  #rf-prototype .rf-uheader h1 { font-size: 2.25rem; font-weight: 750; letter-spacing: -.01em; }
  #rf-prototype .rf-udescription { margin-top: 4px; color: var(--rf-muted); font-size: .95rem; }
  #rf-prototype .rf-unew { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding-inline: 26px; border: 0; border-radius: 12px; background: var(--rf-green-fill); color: var(--rf-on-green); font-size: 1rem; font-weight: 600; box-shadow: 0 8px 22px color-mix(in srgb, var(--rf-green-fill) 28%, transparent); cursor: pointer; }
  #rf-prototype .rf-unew .rf-icon { width: 20px; height: 20px; }
  #rf-prototype .rf-unew:hover { filter: brightness(1.06); }
  #rf-prototype .rf-ustats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rf-line); border-radius: 14px; background: var(--rf-paper); box-shadow: var(--rf-shadow); }
  #rf-prototype .rf-ustat { display: flex; min-height: 80px; align-items: center; justify-content: center; gap: 18px; padding: 14px 18px; }
  #rf-prototype .rf-ustat + .rf-ustat { border-left: 1px solid var(--rf-line); }
  #rf-prototype .rf-ustat p { font-size: 1.2rem; }
  #rf-prototype .rf-ustat strong { margin-right: 6px; font-size: 1.6rem; font-weight: 750; }
  #rf-prototype .rf-ustat .rf-icon { width: 34px; height: 34px; }
  #rf-prototype .rf-ustat .rf-icon svg { width: 34px; height: 34px; stroke-width: 1.6; }
  #rf-prototype .rf-ustat[data-tone="primary"] .rf-icon { color: var(--u-primary); }
  #rf-prototype .rf-ustat[data-tone="success"] .rf-icon { color: var(--rf-ok); }
  #rf-prototype .rf-ustat[data-tone="muted"] .rf-icon { color: var(--rf-muted); }
  #rf-prototype .rf-ucardbox { overflow: hidden; border: 1px solid var(--rf-line); border-radius: 14px; background: var(--rf-paper); box-shadow: var(--rf-shadow); }
  #rf-prototype .rf-ucontrols { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; padding: 22px 22px 18px; border-bottom: 1px solid var(--rf-line); }
  #rf-prototype .rf-ucontrols label, #rf-prototype .rf-ubulk label > span { color: var(--rf-ink); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  #rf-prototype .rf-usearch { display: flex; min-width: min(100%, 20rem); flex: 1 1 22rem; flex-direction: column; gap: 8px; }
  #rf-prototype .rf-ufilter { display: flex; min-width: 12rem; flex: 0 1 14.5rem; flex-direction: column; gap: 8px; }
  #rf-prototype .rf-usearch-box { display: flex; height: 54px; align-items: center; gap: 10px; padding: 5px 5px 5px 7px; border: 1.5px solid color-mix(in srgb, var(--u-primary) 75%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--rf-bg) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-primary) 12%, transparent); }
  #rf-prototype .rf-usearch-box:focus-within { border-color: var(--u-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--u-primary) 22%, transparent); }
  #rf-prototype .rf-usearch-icon, #rf-prototype .rf-uselect-chevron, #rf-prototype .rf-ucontrol-trailing { display: inline-flex; width: 38px; height: 38px; flex: none; align-items: center; justify-content: center; border-radius: 999px; background: var(--u-soft); color: var(--rf-ink); }
  #rf-prototype .rf-usearch-icon .rf-icon, #rf-prototype .rf-usearch-icon svg { width: 20px; height: 20px; }
  #rf-prototype .rf-usearch .rf-usearch-box input { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; font-size: 1rem; outline: none; }
  #rf-prototype .rf-usearch-box input::placeholder { color: var(--rf-muted); }
  #rf-prototype .rf-usearch-button { height: 100%; flex: none; padding-inline: 24px; border: 0; border-radius: 999px; background: var(--rf-green-fill); color: var(--rf-on-green); font-size: 1rem; font-weight: 600; cursor: pointer; }
  #rf-prototype .rf-usearch-button:hover { opacity: .92; }
  #rf-prototype .rf-uselect { position: relative; }
  #rf-prototype .rf-ufilter .rf-uselect select { width: 100%; height: 54px; min-height: 54px; padding: 0 50px 0 48px; border: 1.5px solid color-mix(in srgb, var(--u-primary) 75%, transparent); border-radius: 14px; appearance: none; background: color-mix(in srgb, var(--rf-bg) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-primary) 12%, transparent); font-size: .95rem; text-overflow: ellipsis; cursor: pointer; }
  #rf-prototype .rf-uselect select:focus-visible { outline: none; border-color: var(--u-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--u-primary) 22%, transparent); }
  #rf-prototype .rf-uselect select option { background: var(--rf-paper); color: var(--rf-ink); }
  #rf-prototype .rf-uselect-icon { position: absolute; top: 50%; left: 16px; display: inline-flex; align-items: center; color: var(--u-primary); pointer-events: none; transform: translateY(-50%); }
  #rf-prototype .rf-uselect-icon .rf-icon, #rf-prototype .rf-uselect-icon svg { width: 22px; height: 22px; stroke-width: 1.7; }
  #rf-prototype .rf-uselect-chevron { position: absolute; top: 50%; right: 7px; pointer-events: none; transform: translateY(-50%); }
  #rf-prototype .rf-uselect-chevron svg, #rf-prototype .rf-ucontrol-trailing svg { width: 18px; height: 18px; }
  #rf-prototype .rf-udot { display: inline-block; width: 12px; height: 12px; border-radius: 999px; background: currentColor; }
  #rf-prototype .rf-uselect-icon .rf-udot { margin-left: 4px; }
  #rf-prototype .rf-uselect-icon .rf-udot[data-status="true"] { background: var(--rf-ok); }
  #rf-prototype .rf-uselect-icon .rf-udot[data-status="false"] { background: var(--rf-muted); }
  #rf-prototype .rf-ualpha-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 14px 22px; border-bottom: 1px solid var(--rf-line); background: color-mix(in srgb, var(--rf-subtle) 60%, transparent); }
  #rf-prototype .rf-ualpha { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
  #rf-prototype .rf-ualpha button { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border: 1px solid var(--rf-line); border-radius: 9px; background: var(--rf-paper); font-size: .88rem; font-weight: 700; cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease; }
  #rf-prototype .rf-ualpha .rf-ualpha-all { padding: 0 14px; }
  #rf-prototype .rf-ualpha button:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--u-primary); color: var(--u-primary); }
  #rf-prototype .rf-ualpha button[aria-pressed="true"] { border-color: var(--rf-green-fill); background: var(--rf-green-fill); color: var(--rf-on-green); box-shadow: 0 4px 10px color-mix(in srgb, var(--rf-green-fill) 25%, transparent); }
  #rf-prototype .rf-ualpha button:disabled { border-color: transparent; background: transparent; color: color-mix(in srgb, var(--rf-muted) 45%, transparent); cursor: default; }
  #rf-prototype .rf-uorder { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--rf-line); border-radius: 11px; background: var(--rf-paper); }
  #rf-prototype .rf-uorder > .rf-icon { width: 17px; height: 17px; margin: 0 6px 0 7px; color: var(--u-primary); }
  #rf-prototype .rf-uorder button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--rf-muted); font-size: .85rem; font-weight: 700; cursor: pointer; }
  #rf-prototype .rf-uorder button:hover:not([aria-pressed="true"]) { color: var(--u-primary); }
  #rf-prototype .rf-uorder button[aria-pressed="true"] { background: var(--rf-green-fill); color: var(--rf-on-green); }
  #rf-prototype .rf-ulist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--rf-line); }
  #rf-prototype .rf-ulist-head h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
  #rf-prototype .rf-ulist-head .rf-inline { gap: 14px; }
  #rf-prototype .rf-ucount { color: var(--rf-muted); font-size: .95rem; }
  #rf-prototype .rf-ulink { border: 0; background: none; color: var(--u-primary); font-size: .9rem; font-weight: 600; cursor: pointer; }
  #rf-prototype .rf-ulink:hover { text-decoration: underline; }
  #rf-prototype .rf-ubulk { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--rf-line); background: color-mix(in srgb, var(--u-primary) 6%, transparent); }
  #rf-prototype .rf-ubulk label { display: grid; gap: 6px; min-width: 14rem; }
  #rf-prototype .rf-users input.rf-ucheck, #rf-prototype .rf-ucheck-cell input.rf-ucheck { display: block; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; border: 1.5px solid color-mix(in srgb, var(--rf-ink) 45%, transparent); border-radius: 5px; appearance: none; background: transparent; cursor: pointer; }
  #rf-prototype input.rf-ucheck:hover { border-color: color-mix(in srgb, var(--rf-ink) 70%, transparent); }
  #rf-prototype .rf-users input.rf-ucheck:checked { border-color: var(--rf-green-fill); background: var(--rf-green-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
  #rf-prototype .rf-utable { overflow-x: auto; }
  #rf-prototype .rf-utable table { width: 100%; min-width: 900px; border-collapse: collapse; text-align: left; }
  #rf-prototype .rf-utable thead { background: color-mix(in srgb, var(--rf-ink) 2.5%, transparent); }
  #rf-prototype .rf-utable th { padding: 18px 16px; border-bottom: 1px solid var(--rf-line); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
  #rf-prototype .rf-utable td { padding: 13px 16px; border-bottom: 1px solid var(--rf-line); font-size: 1rem; vertical-align: middle; }
  #rf-prototype .rf-utable tbody tr:last-child td { border-bottom: 0; }
  #rf-prototype .rf-utable tbody tr:hover { background: color-mix(in srgb, var(--rf-ink) 2.5%, transparent); }
  #rf-prototype .rf-ucheck-cell { width: 64px; padding-left: 28px !important; }
  #rf-prototype .rf-uempty { padding: 36px 16px !important; color: var(--rf-muted); text-align: center; }
  #rf-prototype .rf-uidentity { display: flex; min-width: 0; align-items: center; gap: 22px; }
  #rf-prototype .rf-uidentity > div { min-width: 0; }
  #rf-prototype .rf-uname { font-size: 1rem; font-weight: 600; }
  #rf-prototype .rf-uself { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--u-soft); color: var(--u-primary); font-size: .72rem; font-weight: 700; vertical-align: middle; }
  #rf-prototype .rf-uemail { display: block; margin-top: 2px; overflow: hidden; color: var(--rf-muted); font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
  /* Tom por perfil, como no FiscView: avatar sólido e selo translúcido. */
  #rf-prototype [data-role] { --tone: 215 16% 47%; }
  #rf-prototype [data-role="admin"] { --tone: 221 83% 48%; }
  #rf-prototype [data-role="reviewer"] { --tone: 188 86% 36%; }
  #rf-prototype [data-role="coordinator"] { --tone: 152 60% 38%; }
  #rf-prototype .rf-uavatar { display: inline-flex; width: 48px; height: 48px; flex: none; align-items: center; justify-content: center; border-radius: 999px; background: hsl(var(--tone)); color: #fff; font-size: 1.1rem; font-weight: 700; }
  #rf-prototype .rf-urole { display: inline-flex; align-items: center; padding: 6px 15px; border: 1px solid hsl(var(--tone) / .4); border-radius: 9px; background: hsl(var(--tone) / .13); color: color-mix(in srgb, hsl(var(--tone)) 72%, black); font-size: .95rem; font-weight: 600; white-space: nowrap; }
  html[data-rf-theme="dark"] #rf-prototype .rf-urole { color: color-mix(in srgb, hsl(var(--tone)) 55%, white); }
  #rf-prototype .rf-ustatus-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  #rf-prototype .rf-upill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 13px; border-radius: 999px; background: color-mix(in srgb, var(--rf-ok) 14%, transparent); color: var(--rf-ok); font-size: .95rem; font-weight: 600; }
  #rf-prototype .rf-upill[data-status="inativo"] { background: var(--rf-subtle); color: var(--rf-muted); }
  #rf-prototype .rf-ulogin { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--rf-line); border-radius: 999px; background: color-mix(in srgb, var(--rf-bg) 35%, transparent); color: var(--rf-muted); font-size: .85rem; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
  #rf-prototype .rf-ulogin .rf-icon, #rf-prototype .rf-ulogin svg { width: 14px; height: 14px; }
  #rf-prototype .rf-ulogin[data-level="alert"], #rf-prototype .rf-ulogin[data-level="pending"] { border-color: color-mix(in srgb, var(--rf-amber) 55%, transparent); background: var(--rf-amber-soft); color: var(--rf-amber); }
  #rf-prototype .rf-ulogin[data-locked="true"] { border-color: color-mix(in srgb, var(--rf-red) 60%, transparent); background: var(--rf-red-soft); color: var(--rf-red); }
  #rf-prototype .rf-uactions { position: relative; display: inline-flex; align-items: center; gap: 16px; }
  #rf-prototype .rf-uicon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--rf-line); border-radius: 9px; background: color-mix(in srgb, var(--rf-bg) 35%, transparent); cursor: pointer; transition: background-color .15s; }
  #rf-prototype .rf-uicon:hover { background: var(--rf-subtle); }
  #rf-prototype .rf-uicon .rf-icon, #rf-prototype .rf-uicon svg { width: 20px; height: 20px; }
  #rf-prototype .rf-umenu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; display: flex; min-width: 210px; flex-direction: column; padding: 6px; border: 1px solid var(--rf-line); border-radius: 10px; background: var(--rf-paper); box-shadow: 0 12px 32px rgb(15 23 42 / .18); }
  #rf-prototype .rf-umenu button { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 0; border-radius: 7px; background: transparent; font-size: .9rem; text-align: left; cursor: pointer; }
  #rf-prototype .rf-umenu button:hover, #rf-prototype .rf-umenu button:focus-visible { background: var(--rf-subtle); outline: none; }
  #rf-prototype .rf-umenu .rf-umenu-danger { color: var(--rf-red); }
  #rf-prototype .rf-upagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-top: 1px solid var(--rf-line); color: var(--rf-muted); font-size: .95rem; }
  #rf-prototype .rf-upages { display: flex; align-items: center; gap: 10px; }
  #rf-prototype .rf-upage { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; gap: 10px; padding-inline: 10px; border: 1px solid var(--rf-line); border-radius: 9px; background: color-mix(in srgb, var(--rf-bg) 35%, transparent); color: var(--rf-ink); font-size: .95rem; cursor: pointer; }
  #rf-prototype .rf-upage-nav { padding-inline: 14px; }
  #rf-prototype .rf-upage:not(:disabled):hover { background: var(--rf-subtle); }
  #rf-prototype .rf-upage:disabled { color: var(--rf-muted); cursor: not-allowed; opacity: .7; }
  #rf-prototype .rf-upage[aria-current="page"] { border-color: var(--rf-green-fill); background: var(--rf-green-fill); color: var(--rf-on-green); }
  #rf-prototype .rf-ucards { display: none; gap: 10px; padding: 12px; }
  #rf-prototype .rf-ucard { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--rf-line); border-radius: 12px; }
  #rf-prototype .rf-ucard-top { display: flex; align-items: center; gap: 12px; }
  #rf-prototype .rf-ucard-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: .9rem; }
  #rf-prototype .rf-ucard-meta dt { margin-bottom: 4px; color: var(--rf-muted); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  #rf-prototype .rf-ucard-meta > div:last-child { grid-column: 1 / -1; }
  /* Meses fechados: mesma lista do FiscView, com o mês no lugar do avatar e o envio no lugar do status. */
  #rf-prototype .rf-umonth { background: var(--rf-green-fill); color: var(--rf-on-green); }
  #rf-prototype .rf-umonth .rf-icon, #rf-prototype .rf-umonth svg { width: 22px; height: 22px; }
  #rf-prototype .rf-upill[data-status="pendente"] { background: var(--rf-amber-soft); color: var(--rf-amber); }
  #rf-prototype .rf-closed .rf-utable table { min-width: 860px; }
  #rf-prototype .rf-closed .rf-ustatus-cell { flex-direction: column; align-items: flex-start; gap: 4px; }
  #rf-prototype .rf-closed .rf-ustatus-cell .rf-uemail { margin: 0; font-size: .85rem; }
  #rf-prototype .rf-uregions summary { color: var(--rf-ink); font-size: .9rem; font-weight: 650; cursor: pointer; }
  #rf-prototype .rf-uregions[open] summary { margin-bottom: 6px; }
  #rf-prototype .rf-uregions .rf-uregion { display: block; padding: 2px 0; white-space: normal; }
  #rf-prototype .rf-closed .rf-uregions { width: 11rem; }
  #rf-prototype .rf-closed .rf-utable :is(th, td) { padding-inline: 12px; }
  #rf-prototype .rf-closed-filters .rf-ufilter { flex: 0 1 26rem; }
  #rf-prototype .rf-uregion { color: var(--rf-muted); font-size: .9rem; }
  #rf-prototype .rf-uregion[data-current] { color: var(--rf-ink); font-weight: 700; }
  /* Gaveta lateral (cadastro e edição) e diálogo de exclusão. */
  /* A gaveta também abre na tela de Coordenadores, fora de .rf-users: repete as variáveis de cor. */
  #rf-prototype :is(.rf-drawer, .rf-uconfirm) { --u-primary: var(--rf-green); --u-soft: color-mix(in srgb, var(--rf-green) 14%, transparent); }
  #rf-prototype .rf-uaccess { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--rf-line); }
  #rf-prototype .rf-uaccess h3 { font-size: 1rem; font-weight: 700; }
  #rf-prototype .rf-directory .rf-inline { flex-wrap: wrap; gap: 6px; }
  #rf-prototype .rf-drawer { width: 100%; max-width: 36rem; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--rf-line); background: var(--rf-paper); color: var(--rf-ink); box-shadow: -24px 0 60px rgb(9 18 32 / .25); }
  #rf-prototype .rf-drawer::backdrop, #rf-prototype .rf-uconfirm::backdrop { background: rgb(9 18 32 / .55); }
  #rf-prototype .rf-drawer[open] { animation: rf-drawer-in .28s cubic-bezier(.16,1,.3,1); }
  #rf-prototype .rf-drawer-inner { display: flex; height: 100%; flex-direction: column; }
  #rf-prototype .rf-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--rf-line); }
  #rf-prototype .rf-drawer-head h2 { font-size: 1.15rem; font-weight: 650; }
  #rf-prototype .rf-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px; }
  #rf-prototype .rf-ugrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
  #rf-prototype .rf-ufield { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
  #rf-prototype .rf-ufield-label { font-size: .95rem; font-weight: 700; }
  #rf-prototype .rf-ucontrol { position: relative; display: flex; align-items: center; }
  #rf-prototype .rf-ucontrol-icon { position: absolute; left: 18px; display: inline-flex; color: var(--u-primary); pointer-events: none; }
  #rf-prototype .rf-ucontrol-icon .rf-icon, #rf-prototype .rf-ucontrol-icon svg { width: 22px; height: 22px; stroke-width: 1.7; }
  #rf-prototype .rf-ucontrol .rf-ucontrol-input { width: 100%; height: 54px; min-height: 54px; padding: 0 18px 0 62px; border: 1px solid var(--rf-line); border-radius: 12px; appearance: none; background: color-mix(in srgb, var(--rf-bg) 35%, transparent); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
  #rf-prototype .rf-ucontrol .rf-ucontrol-input.rf-uplain { padding-left: 18px; }
  #rf-prototype .rf-ucontrol .rf-ucontrol-input:focus { border-color: var(--u-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-primary) 20%, transparent); }
  #rf-prototype .rf-ucontrol .rf-ucontrol-input:disabled { color: var(--rf-muted); cursor: not-allowed; }
  #rf-prototype .rf-ucontrol select.rf-ucontrol-input { padding-right: 60px; cursor: pointer; }
  #rf-prototype .rf-ucontrol-trailing { position: absolute; right: 9px; color: var(--u-primary); pointer-events: none; }
  #rf-prototype .rf-uhint { color: var(--rf-muted); font-size: .85rem; }
  #rf-prototype .rf-uinfo { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--u-primary) 8%, transparent); color: var(--rf-ink); font-size: .9rem; }
  #rf-prototype .rf-uinfo .rf-icon { color: var(--u-primary); margin-top: 2px; }
  #rf-prototype .rf-ualert { padding: 12px; border-radius: 10px; background: var(--rf-red-soft); color: var(--rf-red); font-size: .875rem; }
  #rf-prototype .rf-drawer .rf-primary { height: 48px; padding-inline: 22px; border-radius: 10px; font-size: .95rem; }
  #rf-prototype .rf-uconfirm { width: min(30rem, calc(100vw - 32px)); padding: 26px; border: 1px solid var(--rf-line); border-radius: 16px; background: var(--rf-paper); color: var(--rf-ink); box-shadow: 0 24px 60px rgb(9 18 32 / .35); }
  #rf-prototype .rf-uconfirm form { display: grid; gap: 14px; }
  #rf-prototype .rf-uconfirm-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 999px; background: var(--rf-red-soft); color: var(--rf-red); }
  #rf-prototype .rf-uconfirm-icon .rf-icon, #rf-prototype .rf-uconfirm-icon svg { width: 24px; height: 24px; }
  #rf-prototype .rf-uconfirm h2 { font-size: 1.25rem; }
  #rf-prototype .rf-uconfirm p { color: var(--rf-muted); }
  #rf-prototype .rf-uconfirm-actions { justify-content: flex-end; }
  #rf-prototype .rf-uconfirm .rf-primary { background: var(--rf-red); border-color: var(--rf-red); color: #fff; }
  @keyframes rf-drawer-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
  @media (max-width: 900px) {
    #rf-prototype .rf-utable { display: none; }
    #rf-prototype .rf-ucards { display: grid; }
    #rf-prototype .rf-ustats { grid-template-columns: 1fr; }
    #rf-prototype .rf-ustat { justify-content: flex-start; min-height: 64px; }
    #rf-prototype .rf-ustat + .rf-ustat { border-left: 0; border-top: 1px solid var(--rf-line); }
    #rf-prototype .rf-uheader h1 { font-size: 1.8rem; }
    #rf-prototype .rf-ugrid { grid-template-columns: 1fr; }
    #rf-prototype .rf-ufilter { flex: 1 1 12rem; }
  }
  @media (max-width: 640px) {
    #rf-prototype .rf-ucontrols, #rf-prototype .rf-ualpha-bar, #rf-prototype .rf-ulist-head, #rf-prototype .rf-upagination { padding-inline: 14px; }
    #rf-prototype .rf-ualpha button { min-width: 30px; height: 30px; }
    #rf-prototype .rf-unew { width: 100%; justify-content: center; }
  }
  @media (prefers-reduced-motion: reduce) { #rf-prototype .rf-drawer[open] { animation: none; } }
  @media (max-width: 860px) {
    #rf-prototype .rf-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    /* Em telas estreitas a barra lateral vira faixa no topo: marca e usuário na primeira linha, menu rolável na segunda. */
    #rf-prototype .rf-side { position: sticky; z-index: 5; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; overflow: visible; }
    #rf-prototype .rf-brand small { display: none; }
    #rf-prototype .rf-side-foot { order: 2; margin: 0 0 0 auto; display: flex; align-items: center; gap: 6px; }
    #rf-prototype .rf-nav { order: 3; flex: 1 1 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
    #rf-prototype .rf-nav button { flex: none; min-height: 36px; padding: 7px 10px; }
    #rf-prototype .rf-theme button { min-height: 30px; padding: 4px 8px; }
    #rf-prototype .rf-user { padding: 0; gap: 4px; background: transparent; }
    #rf-prototype .rf-user-text { display: none; }
  }
  @media (max-width: 480px) {
    #rf-prototype .rf-side .rf-theme button { font-size: 0; gap: 0; padding: 4px 9px; }
  }
  @media (max-width: 560px) {
    #rf-prototype .rf-main { gap: 11px; }
    #rf-prototype :is(.rf-split, .rf-form-grid) { grid-template-columns: 1fr; }
    #rf-prototype .rf-metrics > div { padding: 7px; }
    #rf-prototype .rf-metrics dt { font-size: .73rem; }
    #rf-prototype .rf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #rf-prototype .rf-metrics > div:nth-child(3) { border-left: 0; }
    #rf-prototype .rf-metrics > div:nth-child(n+3) { border-top: 1px solid var(--rf-line); }
    #rf-prototype .rf-choice { grid-template-columns: 1fr; }
  }
  @media (pointer: coarse) {
    #rf-prototype :is(.rf-button,.rf-nav button,.rf-theme button,.rf-tabs button) { min-height: 44px; }
    #rf-prototype :is(input:not([type="file"]),select,textarea) { min-height: 44px; font-size: 1rem; }
  }
