:root {
    --ux-red: #e82027;
    --ux-ink: #17211b;
    --ux-green: #2f8a4b;
    --ux-green-dark: #206838;
    --ux-green-soft: #ebf8df;
    --ux-green-border: #b9e99a;
    --ux-canvas: #f3f6f2;
    --ux-surface: #ffffff;
    --ux-surface-muted: #f3f5f2;
    --ux-border: #dfe5de;
    --ux-text: #1d2922;
    --ux-muted: #68736c;
    --ux-shadow: 0 1.1rem 3rem rgba(28, 48, 36, 0.08);
}

body.ux-app-page {
    display: block;
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    background: var(--ux-canvas);
    color: var(--ux-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    text-align: left;
}

body.ux-app-page.ux-nav-open {
    overflow: hidden;
}

.ux-app-page *,
.ux-app-page *::before,
.ux-app-page *::after {
    box-sizing: border-box;
}

.ux-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
}

.ux-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.45rem;
    padding: 1.1rem 0.85rem;
    overflow-y: auto;
    border-right: 1px solid var(--ux-border);
    background: rgba(255, 255, 255, 0.97);
}

.ux-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.4rem;
    color: var(--ux-text);
    text-decoration: none;
}

.ux-brand-mark {
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0.38rem;
    border-radius: 0.78rem;
    background: #171b19;
}

.ux-brand-mark img {
    display: block;
    width: 100%;
    height: auto;
}

.ux-brand-copy {
    min-width: 0;
    display: grid;
    gap: 0.08rem;
}

.ux-brand-copy strong {
    overflow: hidden;
    font-size: 0.93rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ux-brand-copy small {
    color: var(--ux-muted);
    font-size: 0.72rem;
}

.ux-nav {
    display: grid;
    gap: 0.42rem;
}

.ux-nav-item {
    min-height: 3rem;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    color: #667269;
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ux-nav-item:hover {
    background: #f5f7f4;
    color: var(--ux-text);
    transform: translateX(0.12rem);
}

.ux-nav-item.active {
    border-color: var(--ux-green-border);
    background: var(--ux-green-soft);
    color: var(--ux-green-dark);
}

.ux-nav-icon {
    width: 1.95rem;
    height: 1.95rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1.5px solid currentColor;
    border-radius: 0.62rem;
    font-size: 0.96rem;
    font-weight: 900;
}

.ux-nav-group {
    display: grid;
    gap: 0.2rem;
}

.ux-equipment-subnav {
    display: grid;
    gap: 0.18rem;
    margin: 0 0.35rem 0.18rem 1.55rem;
    padding: 0.38rem 0 0.3rem 0.72rem;
    border-left: 1px solid #dce3dc;
}

.ux-equipment-subnav-title {
    margin: 0 0 0.18rem 0.42rem;
    color: #98a19a;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ux-equipment-subitem {
    min-width: 0;
    min-height: 2.15rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.48rem;
    padding: 0.4rem 0.48rem;
    border-radius: 0.58rem;
    color: #6d7870;
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease;
}

.ux-equipment-subitem:hover {
    background: #f3f6f2;
    color: var(--ux-text);
}

.ux-equipment-subitem.active {
    background: var(--ux-green-soft);
    color: var(--ux-green-dark);
    font-weight: 900;
}

.ux-equipment-subitem:focus-visible {
    outline: 2px solid rgba(47, 138, 75, 0.26);
    outline-offset: 1px;
}

.ux-equipment-subitem-dot {
    width: 0.42rem;
    height: 0.42rem;
    border: 1px solid #aeb8b0;
    border-radius: 50%;
    background: #fff;
}

.ux-equipment-subitem.active .ux-equipment-subitem-dot {
    border-color: var(--ux-green);
    background: var(--ux-green);
    box-shadow: 0 0 0 0.16rem rgba(47, 138, 75, 0.13);
}

.ux-equipment-subitem-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ux-equipment-subitem-count {
    min-width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #e8ece7;
    color: #68736b;
    font-size: 0.58rem;
    font-weight: 900;
}

.ux-equipment-subitem.active .ux-equipment-subitem-count {
    background: var(--ux-green);
    color: #fff;
}

.ux-flow {
    padding-top: 1rem;
    border-top: 1px solid #edf0ec;
}

.ux-flow-title {
    margin: 0 0 0.65rem;
    color: #89938c;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-align: left;
    text-transform: uppercase;
}

.ux-flow-list {
    display: grid;
    gap: 0.12rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ux-flow-list li {
    min-height: 2rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #89928b;
    font-size: 0.72rem;
    font-weight: 700;
}

.ux-flow-list li.active {
    color: var(--ux-green-dark);
    font-weight: 900;
}

.ux-flow-number {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid #d6ddd6;
    border-radius: 50%;
    background: #fff;
    font-size: 0.62rem;
}

.ux-flow-list li.active .ux-flow-number {
    border-color: var(--ux-green);
    background: var(--ux-green);
    color: #fff;
}

.ux-sidebar-footer {
    display: flex;
    align-items: flex-start;
    gap: 0.58rem;
    margin-top: auto;
    padding: 0.78rem;
    border-radius: 0.82rem;
    background: var(--ux-surface-muted);
}

.ux-sidebar-footer > span:last-child {
    display: grid;
    gap: 0.08rem;
}

.ux-sidebar-footer strong {
    font-size: 0.73rem;
}

.ux-sidebar-footer small {
    color: var(--ux-muted);
    font-size: 0.64rem;
}

.ux-status-dot {
    width: 0.52rem;
    height: 0.52rem;
    flex: 0 0 auto;
    margin-top: 0.22rem;
    border-radius: 50%;
    background: #37a75d;
    box-shadow: 0 0 0 0.2rem rgba(55, 167, 93, 0.14);
}

.ux-app-main {
    min-width: 0;
    min-height: 100vh;
    padding: 1.8rem clamp(1rem, 3vw, 3rem) 3rem;
}

.ux-page-content {
    width: min(100%, 72rem);
    margin: 0 auto;
}

.ux-mobile-topbar,
.ux-sidebar-overlay {
    display: none;
}

.ux-work-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.ux-eyebrow {
    margin: 0 0 0.3rem;
    color: var(--ux-red);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.ux-work-header h1 {
    margin: 0;
    color: var(--ux-ink);
    font-family: inherit;
    font-size: clamp(1.85rem, 3.5vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.ux-work-description {
    max-width: 42rem;
    margin: 0.58rem 0 0;
    color: var(--ux-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.ux-draft-badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid #d8e4d8;
    border-radius: 0.82rem;
    background: #f6fbf4;
    color: var(--ux-green-dark);
}

.ux-draft-badge > span:first-child {
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ux-green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.ux-draft-badge > span:last-child {
    display: grid;
    gap: 0.08rem;
}

.ux-draft-badge strong {
    font-size: 0.72rem;
}

.ux-draft-badge small {
    color: #738078;
    font-size: 0.62rem;
}

.ux-original-title,
.ux-original-description {
    display: none !important;
}

.ux-app-page .ux-page-content > [id^="area"] {
    width: 100%;
    padding: 0 0 5.5rem;
}

.ux-app-page .bloco,
.ux-app-page .bloco-rele {
    width: min(100%, 62rem);
    max-width: 100%;
    margin: 0.75rem auto;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    scroll-margin-top: 1rem;
    border: 1px solid var(--ux-border);
    border-radius: 1.15rem;
    background: var(--ux-surface);
    box-shadow: var(--ux-shadow);
}

.ux-app-page .bloco > h2,
.ux-app-page .bloco-rele > h2,
.ux-app-page .cabecalho-equipamento h2 {
    margin: 0 0 1rem;
    color: var(--ux-ink);
    font-family: inherit;
    font-size: 1.22rem;
    letter-spacing: -0.02em;
}

.ux-app-page .cabecalho-equipamento {
    margin-bottom: 0.5rem;
}

.ux-section-title,
.ux-app-page .bloco > h3.ux-section-title,
.ux-app-page .bloco-rele > h3.ux-section-title {
    position: relative;
    min-height: 3.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.72rem 0 0;
    padding: 0.72rem 0.82rem;
    border: 1px solid #e2e8e1;
    border-left: 3px solid var(--ux-green);
    border-radius: 0.72rem;
    background: #f8faf7;
    color: #2b392f;
    font-size: 0.92rem;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}

.ux-section-title:focus-visible {
    outline: 3px solid rgba(47, 138, 75, 0.2);
    outline-offset: 2px;
}

.ux-section-chevron {
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9eee8;
    color: #657168;
    font-size: 0.95rem;
    transition: transform 160ms ease;
}

.ux-section-title.collapsed .ux-section-chevron {
    transform: rotate(-90deg);
}

.ux-section-content {
    padding: 1rem 0.25rem 0.2rem;
}

.ux-section-content[hidden] {
    display: none !important;
}

.ux-app-page .linha {
    gap: 0.72rem;
    margin-bottom: 0.75rem;
}

.ux-app-page .linha > label,
.ux-app-page .linha-tabela-interna label,
.ux-app-page .linha-teste-rele label {
    color: #4c5950;
    font-size: 0.84rem;
    font-weight: 800;
}

.ux-app-page input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.ux-app-page select,
.ux-app-page textarea,
.ux-app-page .linha input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.ux-app-page .linha-tabela-interna input,
.ux-app-page .linha-teste-rele input,
.ux-app-page .tabela-rele input {
    min-height: 2.65rem;
    padding: 0.58rem 0.72rem;
    border: 1px solid #cdd5cd;
    border-radius: 0.68rem;
    background: #fbfcfa;
    color: var(--ux-text);
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ux-app-page input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):focus,
.ux-app-page select:focus,
.ux-app-page textarea:focus,
.ux-app-page .linha-tabela-interna input:focus,
.ux-app-page .linha-teste-rele input:focus,
.ux-app-page .tabela-rele input:focus {
    border-color: var(--ux-green);
    background: #fff;
    box-shadow: 0 0 0 0.22rem rgba(47, 138, 75, 0.13);
}

.ux-app-page input[readonly],
.ux-app-page input:disabled {
    background: #f0f3ef !important;
    color: #6e7870 !important;
}

.ux-app-page .radio-group label,
.ux-app-page .tabela-inspecao-rele .radio-group label {
    min-height: 2.3rem;
    border-color: #d5dcd5;
    border-radius: 0.62rem;
    background: #fafbfa;
    color: #566159;
    font-size: 0.8rem;
}

.ux-app-page .radio-group label:has(input:checked),
.ux-app-page .tabela-inspecao-rele .radio-group label:has(input:checked) {
    border-color: var(--ux-green);
    background: var(--ux-green-soft);
    color: var(--ux-green-dark);
}

.ux-app-page .radio-group input {
    accent-color: var(--ux-green);
}

.ux-app-page .radio-group label.opcao-ruim-selecionada,
.ux-app-page .radio-group label.opcao-ruim-selecionada:has(input:checked) {
    border-color: #dc5b5f;
    background: #fff0f0;
    color: #a1282d;
}

.ux-app-page .botao-sem-medicao,
.ux-app-page .botao-complemento-nome {
    min-height: 2.65rem;
    margin: 0;
    padding: 0.58rem 0.82rem;
    border: 1px solid #d0d7d0;
    border-radius: 0.68rem;
    background: #f7f9f6;
    color: #536057;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: none;
}

.ux-app-page .botao-sem-medicao:hover,
.ux-app-page .botao-complemento-nome:hover {
    border-color: #b8c1b8;
    background: #f0f3ef;
    transform: none;
}

.ux-app-page .botao-sem-medicao.ativo {
    border-color: #df9a42;
    background: #fff7e8;
    color: #99561a;
}

.ux-app-page .alerta-margem,
.ux-app-page .alerta-isolacao {
    border-color: #e7b76f;
    border-radius: 0.72rem;
    background: #fff9ee;
}

.ux-app-page .tabela-isolacao-ajustada td,
.ux-app-page .tabela-transformacao-ajustada td,
.ux-app-page .tabela-rele th,
.ux-app-page .tabela-rele td {
    border-color: #d7ddd7;
}

.ux-jumpbar {
    width: min(100%, 62rem);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin: 0 auto 0.45rem;
    padding: 0.65rem;
    border: 1px solid var(--ux-border);
    border-radius: 0.82rem;
    background: rgba(255, 255, 255, 0.9);
}

.ux-jumpbar > span {
    margin-right: 0.15rem;
    color: var(--ux-muted);
    font-size: 0.7rem;
    font-weight: 800;
}

.ux-jumpbar button {
    min-height: 2rem;
    margin: 0;
    padding: 0.35rem 0.62rem;
    border: 1px solid #d4dbd4;
    border-radius: 999px;
    background: #f7f9f6;
    color: #536057;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: none;
}

.ux-jumpbar button:hover {
    border-color: var(--ux-green-border);
    background: var(--ux-green-soft);
    color: var(--ux-green-dark);
    transform: none;
}

.ux-app-page .botoes,
.ux-app-page .botoes-rele {
    position: sticky;
    bottom: 0.65rem;
    z-index: 12;
    width: min(calc(100% - 1rem), 62rem);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin: 1rem auto 0;
    padding: 0.65rem;
    border: 1px solid rgba(213, 221, 214, 0.92);
    border-radius: 0.92rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.8rem 2rem rgba(22, 38, 28, 0.13);
    backdrop-filter: blur(0.8rem);
}

.ux-app-page .botoes a {
    display: contents;
}

.ux-app-page .botoes button,
.ux-app-page .botoes-rele button {
    min-width: 8.5rem;
    min-height: 2.85rem;
    margin: 0;
    padding: 0.65rem 0.95rem;
    border: 1px solid #d3dad3;
    border-radius: 0.72rem;
    background: #fff;
    color: #515c54;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    box-shadow: none;
}

.ux-app-page .botoes > button:last-child,
.ux-app-page .botoes-rele > button:last-child {
    min-width: 11rem;
    border-color: var(--ux-ink);
    background: var(--ux-ink);
    color: #fff;
}

.ux-app-page .botoes button:hover,
.ux-app-page .botoes-rele button:hover {
    background: #f3f5f2;
    transform: translateY(-0.06rem);
}

.ux-app-page .botoes > button:last-child:hover,
.ux-app-page .botoes-rele > button:last-child:hover {
    background: #2a372f;
}

.ux-scroll-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 18;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid #d3dad3;
    border-radius: 50%;
    background: #fff;
    color: var(--ux-ink);
    font-size: 1.15rem;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0.6rem 1.5rem rgba(19, 33, 24, 0.14);
    transform: translateY(0.5rem);
    transition: opacity 160ms ease, transform 160ms ease;
}

.ux-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ux-scroll-top:hover {
    background: var(--ux-green-soft);
    transform: translateY(-0.08rem);
}

/* Início */
.ux-page-inicio .ux-app-main {
    padding: 0;
}

.ux-page-inicio .ux-page-content {
    width: 100%;
    max-width: none;
}

.ux-page-inicio .landing-hero {
    min-height: 100vh;
    background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.95), transparent 32%), #e4f7eb;
}

.ux-page-inicio .landing-conteudo {
    min-height: min(38rem, calc(100vh - 3rem));
}

.ux-page-inicio .texto-principal h1 {
    color: var(--ux-ink);
    font-family: inherit;
}

.ux-page-inicio .botao-laudos {
    border-color: var(--ux-ink);
    border-radius: 0.82rem;
    background: var(--ux-ink);
    box-shadow: 0 0.8rem 1.7rem rgba(23, 33, 27, 0.2);
}

.ux-page-inicio .botao-laudos:hover {
    background: #2a372f;
}

/* Menu principal */
.ux-page-menu .ux-page-content {
    width: min(100%, 62rem);
}

.menu-hub {
    min-height: calc(100vh - 4rem);
    display: grid;
    align-content: center;
    gap: 1.5rem;
}

.menu-hub-header .ux-eyebrow {
    margin-bottom: 0.35rem;
}

.menu-hub-header h1 {
    margin: 0;
    color: var(--ux-ink);
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.045em;
}

.menu-hub-header p:last-child {
    max-width: 38rem;
    margin: 0.65rem 0 0;
    color: var(--ux-muted);
    line-height: 1.55;
    text-align: left;
}

.menu-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.menu-action-card {
    min-height: 12rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 1rem;
    margin: 0;
    padding: 1.3rem;
    border: 1px solid var(--ux-border);
    border-radius: 1.1rem;
    background: #fff;
    color: var(--ux-text);
    text-align: left;
    box-shadow: var(--ux-shadow);
}

.menu-action-card:hover {
    border-color: var(--ux-green-border);
    background: #fbfef9;
    transform: translateY(-0.16rem);
}

.menu-action-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 0.85rem;
    background: var(--ux-green-soft);
    color: var(--ux-green-dark);
    font-size: 1.25rem;
    font-weight: 900;
}

.menu-action-copy {
    display: grid;
    gap: 0.38rem;
}

.menu-action-copy strong {
    font-size: 1.05rem;
}

.menu-action-copy small {
    color: var(--ux-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.menu-action-arrow {
    color: #89938c;
    font-size: 1.25rem;
}

/* Laudos armazenados */
.ux-page-laudos .pagina-laudos {
    width: 100%;
    max-width: none;
    margin: 0;
}

.ux-page-laudos .cabecalho-laudos {
    margin-bottom: 1.1rem;
}

.ux-page-laudos .cabecalho-laudos .voltar {
    display: none;
}

.ux-page-laudos .cabecalho-laudos .logo-titulo {
    justify-content: flex-start;
    margin: 0;
}

.ux-page-laudos .cabecalho-laudos .logo-titulo img {
    width: 3.4rem;
    padding: 0.42rem;
    border-radius: 0.78rem;
    background: #171b19;
}

.ux-page-laudos .cabecalho-laudos h1 {
    color: var(--ux-ink);
    font-family: inherit;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -0.04em;
}

.ux-page-laudos .cabecalho-laudos > p {
    margin-top: 0.55rem;
    color: var(--ux-muted);
    text-align: left;
}

.ux-page-laudos .painel-laudos {
    border: 1px solid var(--ux-border);
    border-radius: 1.1rem;
    box-shadow: var(--ux-shadow);
}

@media (max-width: 860px) {
    .ux-app-shell {
        display: block;
    }

    .ux-sidebar {
        position: fixed;
        left: 0;
        width: min(84vw, 17.5rem);
        height: 100svh;
        transform: translateX(-105%);
        box-shadow: 1rem 0 3rem rgba(16, 29, 21, 0.18);
        transition: transform 220ms ease;
    }

    body.ux-nav-open .ux-sidebar {
        transform: translateX(0);
    }

    .ux-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(15, 25, 19, 0.42);
        opacity: 0;
        pointer-events: none;
        transform: none;
        transition: opacity 180ms ease;
    }

    .ux-sidebar-overlay:hover,
    .ux-sidebar-overlay:active {
        background: rgba(15, 25, 19, 0.42);
        transform: none;
    }

    body.ux-nav-open .ux-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .ux-app-main,
    .ux-page-inicio .ux-app-main {
        width: 100%;
        min-width: 0;
        padding: 5.05rem 0.75rem 2rem;
    }

    .ux-mobile-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 20;
        min-height: 4.2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.68rem 0.9rem;
        border-bottom: 1px solid rgba(215, 222, 216, 0.92);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(0.8rem);
    }

    .ux-mobile-brand {
        color: var(--ux-red);
        font-size: 0.96rem;
        font-weight: 950;
        letter-spacing: 0.09em;
        text-decoration: none;
    }

    .ux-menu-toggle {
        width: 2.75rem;
        height: 2.75rem;
        display: grid;
        place-content: center;
        gap: 0.24rem;
        margin: 0;
        padding: 0;
        border: 1px solid var(--ux-border);
        border-radius: 0.74rem;
        background: #fff;
        box-shadow: none;
    }

    .ux-menu-toggle:hover,
    .ux-menu-toggle:active {
        background: var(--ux-surface-muted);
        transform: none;
    }

    .ux-menu-toggle span {
        width: 1.15rem;
        height: 2px;
        display: block;
        border-radius: 999px;
        background: var(--ux-ink);
    }

    .ux-page-inicio .landing-hero {
        min-height: calc(100svh - 5rem);
    }

    .ux-scroll-top {
        right: 0.85rem;
        bottom: 4.8rem;
    }
}

@media (max-width: 680px) {
    .ux-work-header {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .ux-draft-badge {
        width: 100%;
    }

    .ux-app-page .bloco,
    .ux-app-page .bloco-rele {
        width: 100%;
        max-width: 100%;
        margin-block: 0.6rem;
        border-radius: 0.95rem;
    }

    .ux-app-page .linha {
        grid-template-columns: 1fr;
    }

    .ux-app-page .linha > label {
        text-align: left;
    }

    .menu-hub {
        min-height: calc(100svh - 6rem);
        align-content: start;
    }

    .menu-hub-grid {
        grid-template-columns: 1fr;
    }

    .menu-action-card {
        min-height: 9rem;
    }
}

@media (max-width: 460px) {
    .ux-app-main,
    .ux-page-inicio .ux-app-main {
        padding-inline: 0.55rem;
    }

    .ux-work-header {
        padding-inline: 0.25rem;
    }

    .ux-app-page .bloco,
    .ux-app-page .bloco-rele {
        padding: 0.85rem;
    }

    .ux-section-title,
    .ux-app-page .bloco > h3.ux-section-title,
    .ux-app-page .bloco-rele > h3.ux-section-title {
        padding: 0.65rem;
        font-size: 0.84rem;
    }

    .ux-app-page .botoes,
    .ux-app-page .botoes-rele {
        width: 100%;
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 0.45rem;
        bottom: 0.4rem;
    }

    .ux-app-page .botoes button,
    .ux-app-page .botoes-rele button {
        width: 100%;
    }

    .ux-jumpbar {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ux-sidebar,
    .ux-sidebar-overlay,
    .ux-nav-item,
    .ux-section-chevron,
    .ux-scroll-top {
        transition: none;
    }
}
