:root{
  --rz-bg:#f4f5f7;
  --rz-card:#ffffff;
  --rz-text:#1f2937;
  --rz-muted:#6b7280;
  --rz-border:rgba(15,23,42,.08);
  --rz-shadow:0 2px 10px rgba(15,23,42,.06);
  --rz-radius:10px;
  --rz-control-radius:6px;
  --rz-sidebar:#050913;
  --rz-frame:640px;
  --rz-tabbar:4.5rem;
  --bs-body-font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --bs-primary:#0d6efd;
}

html{
  height:100%;
  background:#fff;
}
html,body,button,input,select,textarea{
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
body{
  background:#e7ebf0;
  color:var(--rz-text);
  margin:0;
  min-height:100%;
}
body.rz-app{
  height:100%;
  overflow:hidden;
}
img{max-width:100%}

.rz-frame{
  position:fixed;
  top:var(--app-top, 0px);
  left:0;
  right:0;
  width:min(100%, var(--rz-frame));
  height:100dvh;
  height:var(--app-height, 100dvh);
  margin-inline:auto;
  background:var(--rz-bg);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
@media (min-width: 700px){
  .rz-frame{box-shadow:0 0 0 1px rgba(15,23,42,.06)}
}

.rz-top{
  position:relative;
  flex:none;
  z-index:20;
  display:flex;
  align-items:center;
  gap:.75rem;
  min-height:3.5rem;
  padding:calc(.55rem + env(safe-area-inset-top)) .85rem .55rem;
  background:var(--rz-sidebar);
  color:#f9fafb;
}
.rz-top-brand{
  width:2.5rem;
  height:2.5rem;
  flex:0 0 2.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border-radius:8px;
  padding:4px;
}
.rz-top-brand img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.rz-top-title{
  min-width:0;
  flex:1;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rz-top-user{
  display:flex;
  align-items:center;
  gap:.45rem;
  min-width:0;
}
.rz-top-name{
  max-width:6.5rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(229,231,235,.72);
  font-size:.82rem;
  font-weight:500;
}
.rz-icon-btn{
  width:2.75rem;
  height:2.75rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  color:#fff;
  text-decoration:none;
}
.rz-icon-btn:hover,
.rz-icon-btn:focus-visible{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.rz-main{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:1rem .9rem 1.25rem;
}
.rz-card{
  border:none;
  border-radius:var(--rz-radius);
  background:var(--rz-card);
  box-shadow:var(--rz-shadow);
}
.rz-muted{color:var(--rz-muted)}
.btn,
.form-control,
.form-select,
.input-group-text{
  border-radius:var(--rz-control-radius);
}
.form-control,
.form-select,
textarea.form-control{
  font-size:1rem;
  min-height:3rem;
}
textarea.form-control{min-height:7rem}
.form-label{font-weight:600}
.rz-btn{
  border-radius:var(--rz-control-radius);
  font-weight:600;
  min-height:3rem;
  padding:.75rem 1rem;
}
button,
a,
.form-check-input,
.rz-shortcut{
  touch-action:manipulation;
}

.rz-hello{margin:0 0 1rem}
.rz-hello h1{
  margin:0;
  font-size:1.45rem;
  font-weight:700;
  letter-spacing:-.02em;
}
.rz-hello p{
  margin:.25rem 0 0;
  color:var(--rz-muted);
}
.rz-main h2{
  font-size:1.25rem;
  font-weight:700;
}

.rz-shortcuts{
  display:flex;
  flex-direction:column;
  gap:.65rem;
}
.rz-shortcut{
  display:flex;
  align-items:center;
  gap:.8rem;
  min-height:4.5rem;
  padding:.85rem .9rem;
  background:#fff;
  border-radius:var(--rz-radius);
  box-shadow:var(--rz-shadow);
  color:var(--rz-text);
  text-decoration:none;
}
.rz-shortcut:active{background:#f8fafc}
.rz-shortcut-icon{
  width:2.75rem;
  height:2.75rem;
  flex:0 0 2.75rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(13,110,253,.1);
  color:#0d6efd;
  font-size:1.15rem;
}
.rz-shortcut-copy{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:.1rem;
}
.rz-shortcut-copy strong{
  font-size:1rem;
  font-weight:650;
  line-height:1.25;
}
.rz-shortcut-copy small{
  color:var(--rz-muted);
  font-size:.82rem;
  line-height:1.3;
}
.rz-shortcut-go{
  color:#94a3b8;
  font-size:.8rem;
}

.rz-tabbar{
  position:relative;
  flex:none;
  z-index:30;
  width:100%;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  background:#fff;
  border-top:1px solid var(--rz-border);
  padding-bottom:max(env(safe-area-inset-bottom), var(--app-bottom, 0px));
  box-shadow:0 6rem 0 #fff;
}
.rz-tabbar a{
  min-height:3.4rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.15rem;
  padding:.4rem .15rem;
  color:#64748b;
  text-decoration:none;
  font-size:.68rem;
  font-weight:600;
}
.rz-tabbar a i{font-size:1.05rem}
.rz-tabbar a.active{
  color:#0d6efd;
}
.rz-tabbar a:focus-visible,
.rz-shortcut:focus-visible,
.rz-icon-btn:focus-visible,
.btn:focus-visible,
.form-control:focus-visible{
  outline:2px solid #0d6efd;
  outline-offset:2px;
}

.rz-search{
  margin-bottom:.9rem;
}
.rz-search-row{
  display:flex;
  gap:.5rem;
  align-items:stretch;
}
.rz-search-row .form-control{
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:700;
}
.rz-search-row .rz-btn{
  flex:0 0 auto;
  padding-left:1rem;
  padding-right:1rem;
}

.rz-ficha-head{margin:.25rem 0 .85rem}
.rz-ficha-head h1{
  margin:0;
  font-size:1.55rem;
  font-weight:700;
  letter-spacing:-.02em;
}
.rz-ficha-head p{
  margin:.15rem 0 0;
  color:var(--rz-muted);
  font-size:1rem;
}

.rz-fotos{
  position:relative;
  margin-bottom:.85rem;
  border-radius:var(--rz-radius);
  overflow:hidden;
  background:#0f172a;
}
.rz-fotos img{
  width:100%;
  height:min(68vw, 22rem);
  object-fit:cover;
  background:#0f172a;
}
.rz-fotos-count{
  position:absolute;
  right:.6rem;
  bottom:.6rem;
  background:rgba(5,9,19,.72);
  color:#fff;
  border-radius:999px;
  padding:.2rem .55rem;
  font-size:.75rem;
  font-weight:600;
}

.rz-ficha-card{
  padding:.95rem 1rem .35rem;
  margin-bottom:.75rem;
}
.rz-ficha-card h2{
  margin:0 0 .35rem;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
}
.rz-ficha-card dl{margin:0}
.rz-ficha-card dl > div{
  display:flex;
  justify-content:space-between;
  gap:.75rem;
  padding:.7rem 0;
  border-top:1px solid var(--rz-border);
}
.rz-ficha-card dt{
  margin:0;
  color:var(--rz-muted);
  font-weight:500;
  font-size:.92rem;
}
.rz-ficha-card dd{
  margin:0;
  text-align:right;
  font-weight:600;
  font-size:.98rem;
  min-width:0;
  overflow-wrap:anywhere;
}
.rz-pub-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.55rem;
  padding:.35rem 0 .7rem;
}
.rz-pub-thumb{
  display:block;
  width:100%;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:center;
  cursor:pointer;
}
.rz-pub-thumb img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:8px;
  background:#0f172a;
}
.rz-pub-thumb span{
  display:block;
  margin-top:.3rem;
  font-size:.78rem;
  font-weight:600;
  color:var(--rz-muted);
}
.rz-pub-thumb:focus-visible{
  outline:2px solid #0d6efd;
  outline-offset:3px;
  border-radius:8px;
}
.rz-pub-modal{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:70vh;
  background:#050913;
  color:#fff;
  border:0;
}
.rz-pub-modal-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:calc(.55rem + env(safe-area-inset-top)) .75rem .45rem;
}
.rz-pub-modal-bar p{
  margin:0;
  font-size:1rem;
  font-weight:700;
}
.rz-pub-close,
.rz-pub-nav{
  width:2.75rem;
  height:2.75rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
}
.rz-pub-stage{
  position:relative;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:0;
  padding:0 3.2rem calc(.8rem + env(safe-area-inset-bottom));
}
.rz-pub-stage img{
  width:100%;
  max-height:calc(100dvh - 6.5rem);
  object-fit:contain;
  background:#050913;
}
.rz-pub-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
}
.rz-pub-prev{left:.45rem}
.rz-pub-next{right:.45rem}
@media (min-width: 576px){
  .rz-pub-dialog{max-width:min(920px, 92vw)}
  .rz-pub-modal{border-radius:12px;overflow:hidden}
  .rz-pub-stage img{max-height:72vh}
}
@media (max-width: 575.98px){
  .rz-pub-modal{min-height:100%;border-radius:0}
}
.rz-pub-empty{
  margin:.35rem 0 .85rem;
  color:var(--rz-muted);
  font-weight:600;
}

.alert{border-radius:var(--rz-radius)}
