/* Portal do paciente (protótipo). Usa os tokens de auth.css. */
body.portal { display: block; background: var(--bg); }
.p-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(1rem, .5rem + 2vw, 2rem); background: #fff; border-bottom: 1px solid var(--line); }
.p-top .logo img { width: 128px; height: auto; }
.p-top__right { display: flex; align-items: center; gap: .5rem; }
.p-top__bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.p-top__bell:hover { background: var(--sky); }
.p-top__bell .icon { width: 1.3rem; height: 1.3rem; }
.dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.p-user { position: relative; }
.p-user summary { list-style: none; display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .5rem; border-radius: 999px; cursor: pointer; color: var(--ink); font-weight: 600; }
.p-user summary::-webkit-details-marker { display: none; }
.p-user summary:hover { background: var(--sky); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--blue-700); font-size: 13px; font-weight: 800; }
.p-user__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 12rem; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); display: grid; }
.p-user__menu a { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.p-user__menu a:hover { background: var(--sky-2); }
@media (max-width: 479px) { .p-user__name { display: none; } }

.p-shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: calc(100vh - 100px); }
.p-nav { border-right: 1px solid var(--line); background: #fff; padding: 1rem .75rem; }
.p-nav ul { position: sticky; top: 76px; display: grid; gap: .15rem; }
.p-nav a { display: flex; align-items: center; gap: .75rem; min-height: 46px; padding: 0 .85rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.p-nav a .icon { width: 1.2rem; height: 1.2rem; color: var(--muted); }
.p-nav a:hover { background: var(--sky-2); color: var(--ink); }
.p-nav a[aria-current="page"] { background: var(--sky); color: var(--blue-700); }
.p-nav a[aria-current="page"] .icon { color: var(--blue-700); }
.p-nav em { margin-left: auto; padding: .05rem .45rem; border-radius: 999px; background: var(--blue); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.p-main { padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem) clamp(1rem, .5rem + 2.5vw, 3rem) 6rem; min-width: 0; outline: none; }
.view { max-width: 70rem; }

/* Navegação no celular: barra inferior com os 5 principais */
@media (max-width: 899px) {
  .p-shell { grid-template-columns: minmax(0, 1fr); }
  .p-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; border-right: 0; border-top: 1px solid var(--line); padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom, 0px)); }
  .p-nav ul { position: static; display: flex; overflow-x: auto; gap: 0; scrollbar-width: none; }
  .p-nav ul::-webkit-scrollbar { display: none; }
  .p-nav li { flex: 1 0 auto; }
  .p-nav a { flex-direction: column; justify-content: center; gap: .15rem; min-height: 56px; min-width: 4.6rem; padding: .2rem .4rem; font-size: 12px; text-align: center; }
  .p-nav em { display: none; }
  .p-nav__new a span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 3px; border-radius: 50%; background: var(--blue); vertical-align: top; }
  .p-main { padding-bottom: 8rem; }
}

.v-title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 800; letter-spacing: -.025em; color: var(--ink); outline: none; }
.v-lead { margin-top: .4rem; color: var(--text); font-size: 16px; max-width: 46rem; }
.v-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.sub { margin: 1.75rem 0 .75rem; font-size: 16px; font-weight: 800; color: var(--ink); }
.muted { color: var(--muted); font-size: 14px; }
.big { font-size: 20px; font-weight: 800; color: var(--ink); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.25rem; }
.card__title { display: flex; align-items: center; gap: .55rem; font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: .8rem; }
.card__title .icon { color: var(--blue); width: 1.2rem; height: 1.2rem; }
.view > .card, .view > section.card { margin-top: 1.25rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.grid2--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.stack-1 { display: grid; gap: 1.25rem; }
@media (max-width: 1023px) { .grid2, .grid2--wide { grid-template-columns: minmax(0, 1fr); } }
.row-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 599px) { .row-inline { grid-template-columns: minmax(0, 1fr); } }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; font-weight: 600; font-size: 15px; text-decoration: none; }

.notice { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: var(--r-sm); background: #fff7e6; border: 1px solid #f3dfb5; color: #5c3d00; font-size: 15px; }
.notice .icon { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .1rem; }
.notice a { color: #5c3d00; font-weight: 700; }

.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.quick__card { display: grid; gap: .3rem; height: 100%; padding: 1.15rem 1.2rem; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.quick__card .icon { width: 1.6rem; height: 1.6rem; color: var(--blue); margin-bottom: .3rem; }
.quick__card strong { font-size: 16px; }
.quick__card span { font-size: 14px; color: var(--muted); }
.quick__card:hover { border-color: var(--blue); }
.quick__card--main { background: var(--blue); border-color: var(--blue); color: #fff; }
.quick__card--main .icon, .quick__card--main span { color: #fff; }
.quick__card--main:hover { background: var(--blue-700); color: #fff; }
@media (max-width: 767px) { .quick { grid-template-columns: minmax(0, 1fr); } }

.mini-tl { display: grid; gap: .65rem; }
.mini-tl li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .6rem; font-size: 15px; }
.mini-tl time { font-weight: 700; color: var(--blue-700); font-size: 14px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: .25rem 0 0; font-weight: 800; color: var(--ink); }
.facts .alert-v { color: var(--red); }
@media (max-width: 899px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc { margin: .5rem 0 1rem; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { min-height: 50px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); }
.acc details[open] summary::after { content: "–"; }
.acc p { padding-bottom: .9rem; color: var(--text); }

.list { display: grid; gap: .6rem; }
.list__item { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.list--plain .list__item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding-inline: 0; }
.list__body { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.list__body strong { color: var(--ink); }
.list__body span { font-size: 14px; color: var(--text); }
.date { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 12px; background: var(--sky); color: var(--blue-700); line-height: 1.05; flex: none; }
.date strong { font-size: 18px; }
.date span { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.tag { padding: .2rem .6rem; border-radius: 999px; font-size: 13px; font-weight: 700; background: #eef1f6; color: var(--ink-2); white-space: nowrap; }
.tag--blue { background: var(--sky); color: var(--blue-700); }
.tag--green { background: var(--green-bg); color: var(--green); }
.seen { display: inline-flex; align-items: center; gap: .3rem; color: #7a4b00 !important; font-weight: 600; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.code--big { font-size: 24px; text-align: center; margin: .5rem 0; }

.cards3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-top: 1.25rem; }
.rx { display: grid; gap: .3rem; }
.rx__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.rx strong { font-size: 17px; color: var(--ink); }
.rx__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.btn-s { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; color: var(--blue-700); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-s:hover { border-color: var(--blue); background: var(--sky-2); }
.btn-s--danger { color: var(--red); }
.btn-s--danger:hover { border-color: var(--red); background: var(--red-bg); }
.btn--sm-p { min-height: 46px; font-size: 15px; padding: .6em 1.3em; }
.btn--danger { background: var(--red); border-color: var(--red); }
.btn--danger:hover { background: #9f2808; border-color: #9f2808; }

.tabs { display: flex; gap: .25rem; margin-top: 1.25rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { min-height: 46px; padding: 0 1rem; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--blue-700); border-bottom-color: var(--blue); }
.tabpanel { margin-top: 1rem; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15px; }
.tbl th, .tbl td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
.tbl thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.tbl tbody th { color: var(--ink); }
.ok { color: var(--green); font-weight: 700; }
@media (max-width: 599px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody { display: block; }
  .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
  .tbl th, .tbl td { border: 0; padding: .1rem 0; }
  .tbl tbody th { grid-column: 1; }
  .tbl td:nth-child(2) { grid-column: 1; font-size: 14px; color: var(--muted); }
  .tbl td:nth-child(3) { grid-column: 2; grid-row: 1; font-weight: 700; }
  .tbl td:nth-child(4) { grid-column: 1 / -1; }
}
.upload { margin-top: 1.5rem; border: 2px solid var(--blue); }

.scopes { display: grid; gap: .55rem; }
.scopes strong { color: var(--ink); margin-right: .25rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; color: var(--ink-2); }
.chip input:checked + span { background: var(--sky); border-color: var(--blue); color: var(--blue-700); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(56, 116, 173, .3); }
.share-out { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.share-out__qr { padding: .6rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.share-out__qr .qr { width: 100%; height: auto; display: block; }
.share-out__info { display: grid; gap: .5rem; }
.ok-line { display: flex; align-items: center; gap: .4rem; color: var(--green); }
.ok-line .icon { width: 1.3rem; height: 1.3rem; }
.linkbox { padding: .6rem .8rem; border-radius: 10px; background: var(--sky-2); border: 1px dashed var(--blue-300); font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 479px) { .share-out { grid-template-columns: minmax(0, 1fr); } .share-out__qr { max-width: 12rem; } }

.toggles { display: grid; gap: .25rem; margin-top: .75rem; }
.tgl { display: flex; align-items: center; gap: .9rem; min-height: 60px; padding: .4rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl__ui { position: relative; flex: none; width: 46px; height: 26px; border-radius: 99px; background: #c5cfdd; transition: background-color .15s; }
.tgl__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.tgl input:checked + .tgl__ui { background: var(--blue); }
.tgl input:checked + .tgl__ui::after { transform: translateX(20px); }
.tgl input:focus-visible + .tgl__ui { box-shadow: 0 0 0 3px rgba(56, 116, 173, .35); }
.tgl > span:last-child { display: grid; font-size: 14px; color: var(--muted); }
.tgl strong { font-size: 15px; color: var(--ink); }
.done-inline { display: flex; gap: .6rem; align-items: flex-start; padding: 1rem; border-radius: var(--r-sm); background: var(--green-bg); color: var(--ink); }
.done-inline .icon { color: var(--green); width: 1.4rem; height: 1.4rem; flex: none; }

.modal { width: min(92vw, 24rem); border: 0; border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(11, 21, 80, .45); }
.modal h2 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: .75rem; }
.modal .share-out__qr { max-width: 12rem; margin: 0 auto; }
.modal .muted { margin: .5rem 0 1rem; }
.modal .actions { margin-top: 1rem; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 92px; translate: -50% 20px; max-width: min(92vw, 30rem); padding: .8rem 1.1rem; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.toast.is-on { opacity: 1; translate: -50% 0; }
@media (min-width: 900px) { .prev-fab { bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; } .toast { bottom: 24px; } }
[hidden] { display: none !important; }
@media (max-width: 899px) {
  .p-nav li { order: 2; }
  .p-nav li:first-child { order: 0; }
  .p-nav li.p-nav__new { order: 1; }
}

/* ---------- Ambiente da farmácia ---------- */
.p-brand { display: flex; align-items: center; gap: .6rem; }
.p-brand__tag { padding: .15rem .6rem; border-radius: 999px; background: var(--sky); color: var(--blue-700); font-size: 13px; font-weight: 800; }
.rx-search { margin-top: 1.25rem; border: 2px solid var(--blue); }
.tabpanel > .rx-search, .tabpanel > .card { margin-top: 0; }
.rx-search__row { display: flex; gap: .6rem; }
.rx-search__row .input { flex: 1; min-width: 0; }
.rx-search__row .btn { display: inline-flex; align-items: center; gap: .45rem; }
.rx-search__alt { display: flex; flex-wrap: wrap; gap: .5rem; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.code-input::placeholder { font-size: 16px; letter-spacing: .04em; text-transform: none; font-family: var(--font); font-weight: 400; }
@media (max-width: 479px) { .rx-search__row { flex-direction: column; } .rx-search__alt .btn-s { white-space: normal; text-align: left; min-height: 48px; } }
.mini-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem .3rem .35rem; border-radius: 999px; background: #eef1f6; color: var(--muted); font-size: 14px; font-weight: 700; }
.mini-steps li::before { content: counter(ms); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; color: var(--ink-2); font-size: 13px; }
.mini-steps li[aria-current="step"] { background: var(--sky); color: var(--blue-700); }
.mini-steps li[aria-current="step"]::before { background: var(--blue); color: #fff; }
.mini-steps li.is-done { background: var(--green-bg); color: var(--green); }
.notice--ok { background: var(--green-bg); border-color: #bfe6cf; color: var(--ink); margin-top: 0; margin-bottom: 1rem; }
.notice--ok .icon { color: var(--green); }
.kv { display: grid; gap: .55rem; margin-top: .6rem; }
.kv > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .75rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { font-size: 14px; color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 479px) { .kv > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; } }
.tag--big { font-size: 15px; padding: .35rem .9rem; }
.dispense { border: 2px solid var(--blue); }
.view .back-link { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .75rem; font-weight: 700; font-size: 15px; text-decoration: none; min-height: 44px; }
.leads { display: grid; gap: .9rem; }
.lead { display: grid; gap: .55rem; }
.lead__head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.lead__who { display: grid; gap: .15rem; }
.lead__name { font-size: 18px; font-weight: 800; color: var(--ink); }
.lead__ok { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); font-weight: 600; }
.lead__rx { display: flex; gap: .55rem; align-items: flex-start; }
.lead__rx > .icon { color: var(--blue); width: 1.2rem; height: 1.2rem; margin-top: .15rem; }
.lead__rx > span { display: grid; }
.lead__rx strong { color: var(--ink); }
.lead__det { font-size: 14px; color: var(--text); }
.lead__note { font-size: 14px; color: #7a4b00; font-weight: 600; }
.lead .rx__actions { margin-top: .25rem; align-items: center; }
.tabs .count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; margin-left: .3rem; padding: 0 .4rem; border-radius: 999px; background: #eef1f6; color: var(--ink-2); font-size: 13px; }
.tabs [aria-selected="true"] .count { background: var(--sky); color: var(--blue-700); }
@media (max-width: 479px) { .lead .rx__actions .btn-s { flex: 1 1 100%; justify-content: center; } }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.at-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
#at-ficha > .card { margin-top: 0; }
.vital-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 767px) { .vital-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 419px) { .vital-grid { grid-template-columns: minmax(0, 1fr); } }
.tbl--vitals { margin-top: 1rem; }
#at-ficha { margin-top: 1.25rem; }
.p-main--solo { max-width: 72rem; margin: 0 auto; padding-bottom: 6rem; }
#at-start { max-width: 40rem; }

/* ---------- Gestão da clínica ---------- */
.textarea { min-height: 7rem; resize: vertical; font: inherit; padding: .75rem .9rem; }
.logo-prev { display: grid; place-items: center; height: 7rem; border-radius: var(--r-sm); border: 1px dashed var(--line-2); background: var(--sky-2); }
.logo-prev span { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--sky); color: var(--blue-700); font-weight: 800; font-size: 20px; }
.logo-prev img { max-height: 5.5rem; width: auto; }
.save-bar { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
.roles { display: grid; gap: .55rem; }
.roles strong { color: var(--ink); margin-right: .25rem; }
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; border-bottom: 1px solid var(--line); }
.team-head .tabs { margin-top: 0; border-bottom: 0; }
.team-search { width: min(100%, 18rem); padding-bottom: .5rem; }
.person { flex-wrap: wrap; }
.person .avatar { flex: none; }
.person__acts { display: flex; gap: .5rem; }
.tgl--sm { min-height: 44px; border-bottom: 0; padding: 0; gap: .6rem; font-size: 14px; color: var(--ink-2); }
.tgl--sm > span:last-child { display: inline; color: var(--ink-2); font-weight: 600; }
@media (max-width: 599px) { .person .list__body { flex-basis: calc(100% - 4rem); } .person__acts { width: 100%; } .person__acts .btn-s { flex: 1; justify-content: center; } }
.hours { display: grid; gap: .25rem; }
.hours__row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: .75rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.hours__day { min-width: 4.5rem; }
.hours__times { display: flex; align-items: center; gap: .5rem; }
.hours__times .input { min-width: 0; width: 9rem; }
.hours__closed { display: none; }
.hours__row.is-closed .hours__times { display: none; }
.hours__row.is-closed .hours__closed { display: block; }
@media (max-width: 479px) { .hours__row { grid-template-columns: minmax(0, 1fr); gap: .2rem; } .hours__times .input { width: auto; flex: 1; } }
.tags-edit { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0; }
.tag-edit { display: inline-flex; align-items: center; gap: .2rem; min-height: 40px; padding: 0 .35rem 0 .9rem; border-radius: 999px; background: var(--sky); color: var(--blue-700); font-weight: 700; font-size: 14px; }
.tag-edit:first-child { padding-right: .9rem; }
.tag-edit__x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--blue-700); cursor: pointer; }
.tag-edit__x:hover { background: #fff; }
.conv-add { display: flex; gap: .5rem; }
.conv-add .input { flex: 1; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.stat { display: grid; gap: .2rem; }
.stat__n { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat__l { font-size: 14px; color: var(--muted); }
@media (max-width: 767px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Hilab no circuito ---------- */
.hilab-box { border-left: 4px solid var(--green); }
.tag--hl { background: var(--green-bg); color: var(--green); }
.tag--red { background: var(--red-bg); color: var(--red); }
.origin { display: block; font-size: 13px; font-weight: 600; color: var(--green); }
.ped { flex-wrap: wrap; }
.ped__acts { display: flex; flex-wrap: wrap; gap: .5rem; }
#near { margin-top: 1rem; }
