body.index3-page {
    --index3-ink: #22242a;
    --index3-muted: #69727f;
    --index3-teal: #169ba2;
    --index3-teal-dark: #087c84;
    --index3-teal-soft: #eaf9f8;
    --index3-purple: #5b3ce2;
    --index3-line: #deebef;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    color: var(--index3-ink);
    background: #f5faff;
}

.index3-shell,
.index3-shell * {
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: inherit;
    font-style: normal;
    font-weight: inherit;
}

.index3-shell .material-icons {
    font-family: "Material Icons";
    font-size: inherit;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.index3-shell span {
    text-align: inherit;
}

.index3-shell [hidden] {
    display: none !important;
}

.index3-page #qrcode,
.index3-page > #clinic-id {
    display: none;
}

.index3-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 16px 30px 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.98) 0, rgba(251, 253, 255, 0.97) 43%, rgba(239, 247, 255, 0.98) 100%);
}

.index3-brand {
    position: relative;
    z-index: 5;
    display: block;
    width: 205px;
    border-radius: 12px;
    outline-offset: 6px;
}

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

.index3-brand:focus-visible,
.index3-logout:focus-visible,
.index3-install-button:focus-visible,
.index3-release-button:focus-visible,
.index3-bell:focus-visible {
    outline: 3px solid rgba(91, 60, 226, 0.35);
}

.index3-brand-wrap {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: fit-content;
}

.index3-bell {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(217, 231, 238, 0.92);
    border-radius: 50%;
    color: var(--index3-teal-dark);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(72, 107, 135, 0.12);
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.index3-bell:hover {
    color: #086c72;
    background: #fff;
    box-shadow: 0 10px 24px rgba(72, 107, 135, 0.18);
    transform: translateY(-1px);
}

.index3-bell .material-icons {
    font-size: 23px;
}

.index3-bell-dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ec6068;
    box-shadow: 0 0 0 2px rgba(236, 96, 104, 0.18);
}

.index3-layout.content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-areas: "install welcome agenda";
    grid-template-columns: minmax(210px, 270px) minmax(480px, 660px) minmax(330px, 390px);
    align-items: flex-start;
    justify-content: center;
    gap: clamp(18px, 2vw, 32px);
    width: 100%;
    max-width: 1560px !important;
    margin: 4px auto 0 !important;
    padding: 0 0 260px !important;
}

.index3-layout.content.no-install-card,
.index3-layout.content:has(.index3-install-card[hidden]),
.index3-layout.content:has(.index3-install-card[style*="display: none"]) {
    grid-template-areas: "welcome agenda";
    grid-template-columns: minmax(480px, 660px) minmax(330px, 390px);
    max-width: 1100px !important;
}

.index3-welcome-card,
.index3-install-card,
.index3-agenda {
    border: 1px solid rgba(217, 231, 238, 0.92);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 48px rgba(72, 107, 135, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.index3-welcome-card {
    grid-area: welcome;
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 18px clamp(24px, 3vw, 48px) 16px;
    overflow: hidden;
    border-radius: 24px;
    text-align: center;
}

.index3-welcome-card::before {
    content: "";
    position: absolute;
    top: -92px;
    left: -76px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(73, 205, 190, 0.13), rgba(73, 205, 190, 0));
    pointer-events: none;
}

.index3-welcome-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
    border: 1px solid rgba(43, 171, 174, 0.08);
    border-radius: 50%;
    color: var(--index3-teal);
    background: linear-gradient(145deg, #f2fbfb, #e6f7f6);
}

.index3-welcome-icon .material-icons {
    font-size: 22px;
}

.index3-welcome-label {
    margin: 0;
    color: var(--index3-ink);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.index3-welcome-card h1 {
    max-width: 100%;
    margin: 3px auto 0;
    padding: 0;
    color: var(--index3-teal);
    background: none;
    font-size: clamp(20px, 1.4vw, 26px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-wrap: balance;
    -webkit-text-fill-color: currentColor;
}

.index3-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 10px 0 12px;
}

.index3-divider > span:not(.material-icons) {
    width: 64px;
    height: 2px;
    flex: 0 0 auto;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #8fd3d6);
}

.index3-divider > span:last-child {
    background: linear-gradient(90deg, #8fd3d6, transparent);
}

.index3-divider .material-icons {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #1aaab0, #0e8287);
    box-shadow: 0 4px 10px rgba(26, 170, 176, 0.28);
}

.index3-cpf-form {
    width: 100%;
    margin: 0;
    text-align: left;
}

.index3-cpf-form label {
    display: block;
    margin: 0 0 10px;
    color: var(--index3-ink);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 750;
}

.index3-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 60px;
    padding: 0 12px;
    border: 2px solid #35aeb2;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(29, 154, 160, 0.06);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.index3-input-wrap:focus-within {
    border-color: var(--index3-teal-dark);
    box-shadow: 0 0 0 5px rgba(22, 155, 162, 0.11), 0 12px 28px rgba(29, 154, 160, 0.09);
    transform: translateY(-1px);
}

.index3-input-icon {
    display: grid !important;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: var(--index3-teal);
    background: var(--index3-teal-soft);
    font-size: 24px !important;
}

.index3-input-wrap input[type="text"] {
    min-width: 0;
    max-width: none;
    flex: 1;
    height: 54px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    outline: 0;
    color: #333740;
    background: transparent;
    box-shadow: none;
    font-size: clamp(19px, 1.5vw, 24px);
    line-height: 1;
    font-weight: 550;
    letter-spacing: 0.015em;
}

.index3-input-wrap input[type="text"]::placeholder {
    color: #969ba4;
    opacity: 1;
}

.index3-shell .index3-input-wrap input[type="text"]:focus,
.index3-shell .index3-input-wrap input[type="text"]:focus-visible {
    outline: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none;
}

.index3-input-check {
    color: #10b981;
    font-size: 24px !important;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 180ms ease, transform 180ms ease;
}

.index3-input-wrap.is-valid .index3-input-check {
    opacity: 1;
    transform: scale(1);
}

.index3-error {
    display: block;
    min-height: 24px;
    margin-top: 10px;
    /* Sem !important: o home.js escreve estilo inline nessa span para as telas
       que nao carregam este CSS (qrcode). Com !important o inline perdia e a
       mensagem ficava em 13px, praticamente invisivel. */
    color: #ce3f4d;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

/* Campo em vermelho enquanto o CPF estiver invalido. */
.index3-input-wrap.is-invalid {
    border-color: #ce3f4d;
    box-shadow: 0 0 0 4px rgba(206, 63, 77, 0.12);
}

.index3-input-wrap.is-invalid .index3-input-icon {
    color: #ce3f4d;
    background: rgba(206, 63, 77, 0.1);
}

.index3-cpf-help {
    margin: 6px 0 0;
    color: var(--index3-muted);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.index3-install-card {
    grid-area: install;
    position: relative;
    align-self: center;
    width: 100%;
    min-height: 310px;
    padding: 30px 24px 24px;
    overflow: hidden;
    border-color: rgba(181, 226, 230, 0.82);
    border-radius: 22px;
    background: rgba(248, 253, 255, 0.76);
}

.index3-install-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(91, 60, 226, 0.06);
}

.index3-install-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
    border-radius: 50%;
    color: #28a6aa;
    background: linear-gradient(145deg, #edfafa, #e0f6f5);
}

.index3-install-icon .material-icons {
    font-size: 45px;
}

.index3-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--index3-teal-dark);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.index3-install-copy h2 {
    margin: 0;
    color: #4d34d1;
    font-size: clamp(19px, 1.45vw, 23px);
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.index3-install-copy p {
    margin: 14px 0 22px;
    color: #5f6671;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
}

.index3-install-button {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(105deg, #4b35d6, #6742ed);
    box-shadow: 0 9px 18px rgba(77, 52, 209, 0.23);
    font-size: 13px;
    line-height: 1;
    font-weight: 750;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.index3-install-button .material-icons {
    font-size: 20px;
}

.index3-install-button:hover {
    color: #fff;
    box-shadow: 0 12px 24px rgba(77, 52, 209, 0.3);
    transform: translateY(-2px);
}

.index3-agenda {
    grid-area: agenda;
    position: relative;
    align-self: flex-start;
    width: 100%;
    height: min(530px, calc(100vh - 290px));
    min-height: 420px;
    padding: 20px 18px 18px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.62);
    border-radius: 24px;
    background: rgba(248, 251, 255, 0.83);
    box-shadow: 0 22px 54px rgba(45, 45, 108, 0.18);
}

.index3-agenda-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 2px 5px 16px;
}

.index3-agenda-heading h2 {
    margin: 0;
    color: #242833;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.index3-agenda-count {
    display: grid;
    place-items: center;
    min-width: 35px;
    height: 35px;
    padding: 0 9px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #6144e6, #7658ef);
    box-shadow: 0 7px 14px rgba(91, 60, 226, 0.22);
    font-size: 13px;
    font-weight: 750;
}

.index3-search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin: 0 0 15px;
    padding: 0 13px;
    border: 1px solid #dce6ec;
    border-radius: 13px;
    color: #8b94a1;
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.index3-search:focus-within {
    border-color: rgba(22, 155, 162, 0.7);
    box-shadow: 0 0 0 4px rgba(22, 155, 162, 0.08);
}

.index3-search .material-icons {
    font-size: 21px;
}

.index3-search input[type="search"] {
    min-width: 0;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0 !important;
    color: #343943;
    background: transparent;
    font-size: 12px !important;
    font-weight: 550;
}

.index3-search input::placeholder {
    color: #98a1ac;
}

.index3-appointment-list {
    height: calc(100% - 116px);
    margin: 0;
    padding: 2px 3px 52px;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    scrollbar-color: rgba(91, 60, 226, 0.24) transparent;
    scrollbar-width: thin;
}

.index3-appointment-list::-webkit-scrollbar {
    width: 5px;
}

.index3-appointment-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(91, 60, 226, 0.24);
}

.index3-appointment-card {
    --status-color: #9aa3ad;
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    margin: 0 0 11px;
    padding: 14px;
    border: 1px solid #e2e9ee;
    border-left: 3px solid var(--status-color);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 18px rgba(72, 92, 109, 0.07);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.index3-appointment-card:hover {
    border-color: color-mix(in srgb, var(--status-color) 42%, #e2e9ee);
    box-shadow: 0 10px 24px rgba(72, 92, 109, 0.11);
    transform: translateY(-1px);
}

.index3-appointment-card.status-1 { --status-color: #ec6068; }
.index3-appointment-card.status-2 { --status-color: #f3a641; }
.index3-appointment-card.status-3 { --status-color: #929ba6; }
.index3-appointment-card.status-4 { --status-color: #3b9de2; }
.index3-appointment-card.status-5 { --status-color: #e67d35; }

.index3-appointment-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: start;
    min-height: 54px;
    border-radius: 12px;
    color: var(--index3-teal-dark);
    background: var(--index3-teal-soft);
}

.index3-appointment-time span {
    font-size: 15px;
    line-height: 1.15;
    font-weight: 800;
}

.index3-appointment-time small {
    margin-top: 2px;
    color: #729296;
    font-size: 8px;
    line-height: 1;
    font-weight: 650;
    text-transform: uppercase;
}

.index3-appointment-info {
    min-width: 0;
    padding-right: 2px;
}

.index3-appointment-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 6px;
    color: var(--status-color);
    font-size: 8px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.index3-status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}

.index3-appointment-info strong,
.index3-appointment-info > span,
.index3-appointment-info > small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.index3-appointment-info strong {
    color: #292e37;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
}

.index3-appointment-info > span {
    margin-top: 2px;
    color: #6e7782;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 550;
}

.index3-appointment-info > small {
    margin-top: 4px;
    color: #9aa2ac;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 550;
}

.index3-release-button {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    gap: 6px;
    min-height: 34px;
    margin-top: 9px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(105deg, #159ca3, #28b3ae);
    box-shadow: 0 6px 13px rgba(21, 156, 163, 0.2);
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.index3-release-button:hover {
    background: linear-gradient(105deg, #10868d, #20a39f);
    box-shadow: 0 8px 17px rgba(21, 156, 163, 0.27);
    transform: translateY(-1px);
}

.index3-release-button .material-icons {
    font-size: 15px;
}

.index3-agenda-empty {
    position: absolute;
    inset: 150px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8a94a0;
}

.index3-agenda-empty .material-icons {
    margin-bottom: 15px;
    color: #a5d8da;
    font-size: 45px;
}

.index3-agenda-empty strong {
    color: #4d5661;
    font-size: 13px;
    font-weight: 750;
}

.index3-agenda-empty p {
    max-width: 240px;
    margin: 7px 0 0;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 500;
}

.index3-logout {
    position: fixed;
    bottom: 28px;
    left: 36px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(217, 231, 238, 0.85);
    border-radius: 99px;
    color: #385d77;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(72, 107, 135, 0.1);
    transition: all 0.2s ease;
}

.index3-logout:hover {
    background: #ffffff;
    color: #0b6367;
    transform: translateX(-3px);
    box-shadow: 0 8px 22px rgba(72, 107, 135, 0.16);
}

.index3-logout .material-icons {
    font-size: 20px;
}

.index3-toast {
    position: fixed;
    z-index: 70;
    left: 50%;
    bottom: 30px;
    min-width: 240px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff;
    background: rgba(28, 31, 39, 0.93);
    box-shadow: 0 12px 28px rgba(19, 25, 32, 0.22);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    transform: translateX(-50%);
}

.index3-dots {
    position: absolute;
    z-index: 0;
    width: 155px;
    height: 98px;
    opacity: 0.55;
    background-image: radial-gradient(#ceddf6 2.5px, transparent 2.5px);
    background-size: 25px 26px;
    pointer-events: none;
}

.index3-dots-top {
    top: 8px;
    right: 30%;
}

.index3-dots-bottom {
    right: 20%;
    bottom: 20px;
    opacity: 0.38;
}

.index3-plus {
    position: absolute;
    z-index: 0;
    left: 34px;
    bottom: 150px;
    color: #d1e5fb;
    font-size: 42px;
    line-height: 1;
    font-weight: 300;
}

.index3-ribbon {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: min(460px, 32vw);
    max-width: calc(100vw - 24px);
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.index3-ribbon-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.index3-ribbon-purple,
.index3-ribbon-teal,
.index3-ribbon-line {
    position: absolute;
}

.index3-ribbon-purple {
    top: -135px;
    right: -190px;
    width: 520px;
    height: 980px;
    border-radius: 52% 0 0 45%;
    background: linear-gradient(160deg, #8a69f7 0%, #6841ea 76%);
    transform: rotate(-4deg);
}

.index3-ribbon-teal {
    top: 60px;
    right: 0px;
    width: 285px;
    height: 830px;
    border-radius: 55% 0 0 48%;
    background: linear-gradient(155deg, #1aaab0 10%, #4ccac5 64%, #73dbd0 100%);
}

.index3-ribbon-line {
    top: -105px;
    right: -75px;
    width: 315px;
    height: 840px;
    border: 1px solid rgba(214, 232, 255, 0.48);
    border-radius: 49%;
    transform: rotate(27deg);
}

.index3-ribbon-line-two {
    top: 60px;
    right: -125px;
    height: 780px;
    opacity: 0.58;
}

.index3-shell .simple-keyboard:empty {
    display: none;
}

.index3-agenda-fab {
    display: none;
    position: fixed;
    z-index: 80;
    right: 22px;
    bottom: 26px;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #6144e6, #7658ef);
    box-shadow: 0 8px 24px rgba(91, 60, 226, 0.35);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.index3-agenda-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(91, 60, 226, 0.45);
}

.index3-agenda-fab:active {
    transform: scale(0.95);
}

.index3-agenda-fab .material-icons {
    font-size: 26px;
}

.index3-agenda-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #159ca3, #28b3ae);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.index3-agenda-overlay {
    display: none;
    position: fixed;
    z-index: 89;
    inset: 0;
    background: rgba(22, 26, 34, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.index3-agenda-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e9ee;
    border-radius: 10px;
    color: #69727f;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease;
}

.index3-agenda-close:hover {
    color: #333;
    background: #f0f4f8;
}

.index3-agenda-close .material-icons {
    font-size: 20px;
}

.index3-agenda-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.index3-agenda.is-collapsed {
    position: fixed;
    z-index: 90;
    top: 0;
    right: 0;
    width: min(400px, 90vw);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    border-radius: 26px 0 0 26px;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -12px 0 40px rgba(45, 45, 108, 0.22);
}

.index3-agenda.is-collapsed.is-open {
    transform: translateX(0);
}

.index3-agenda-fab.is-visible {
    display: grid;
    place-items: center;
}

@media (max-width: 1320px) {
    .index3-shell {
        padding-inline: 24px;
    }

    .index3-layout.content {
        grid-template-columns: minmax(190px, 225px) minmax(440px, 1fr) 340px;
        gap: 20px;
    }

    .index3-welcome-card {
        padding-inline: 42px;
    }

    .index3-install-card {
        padding-inline: 20px;
    }
}

@media (max-width: 1080px) {
    body.index3-page {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .index3-shell {
        min-height: 100vh;
        overflow: hidden;
    }

    .index3-layout.content {
        grid-template-areas:
            "welcome agenda"
            "install agenda";
        grid-template-columns: minmax(430px, 1fr) 340px;
        align-items: start;
        max-width: 930px !important;
    }

    .index3-welcome-card {
        min-height: 550px;
    }

    .index3-install-card {
        display: grid;
        grid-template-columns: 72px 1fr auto;
        align-items: center;
        gap: 17px;
        min-height: 0;
        padding: 18px;
    }

    .index3-install-icon {
        width: 68px;
        height: 68px;
        margin: 0;
    }

    .index3-install-icon .material-icons {
        font-size: 36px;
    }

    .index3-install-copy p {
        margin: 5px 0 0;
    }

    .index3-install-button {
        width: auto;
        min-width: 142px;
    }

    .index3-agenda {
        height: 690px;
        max-height: calc(100vh - 130px);
    }

    .index3-ribbon {
        width: 260px;
        opacity: 0.72;
    }
}

@media (max-width: 840px) {
    .index3-shell {
        display: block;
        padding: 24px 18px 80px;
        overflow-y: auto;
    }

    .index3-brand {
        width: 220px;
    }

    .index3-brand-wrap {
        margin-bottom: 24px;
    }

    .index3-layout.content {
        grid-template-areas:
            "welcome"
            "install";
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        max-width: 680px !important;
        margin: 0 auto !important;
    }

    .index3-welcome-card {
        min-height: 0;
    }

    .index3-agenda-fab {
        display: grid;
        place-items: center;
    }

    .index3-agenda-close {
        display: grid;
    }

    .index3-agenda {
        position: fixed;
        z-index: 90;
        top: 0;
        right: 0;
        width: min(400px, 90vw);
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        max-height: none;
        border-radius: 26px 0 0 26px;
        transform: translateX(100%);
        transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -12px 0 40px rgba(45, 45, 108, 0.22);
    }

    .index3-agenda.is-open {
        transform: translateX(0);
    }

    .index3-agenda-overlay:not([hidden]) {
        display: block;
    }

    .index3-install-card {
        grid-template-columns: 64px 1fr;
    }

    .index3-install-icon {
        width: 60px;
        height: 60px;
    }

    .index3-install-copy p {
        display: none;
    }

    .index3-install-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .index3-logout {
        margin-top: 22px;
    }

    .index3-ribbon {
        width: 130px;
        opacity: 0.38;
    }

    .index3-dots-top {
        right: 80px;
    }

    .index3-plus {
        display: none;
    }
}

@media (max-width: 560px) {
    .index3-shell {
        padding-inline: 12px;
    }

    .index3-brand {
        width: 190px;
    }

    .index3-brand-wrap {
        margin-left: 7px;
    }

    .index3-bell {
        width: 40px;
        height: 40px;
    }

    .index3-bell .material-icons {
        font-size: 21px;
    }

    .index3-welcome-card,
    .index3-agenda,
    .index3-install-card {
        border-radius: 20px;
    }

    .index3-welcome-card {
        padding: 30px 21px 29px;
    }

    .index3-welcome-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 17px;
    }

    .index3-welcome-icon .material-icons {
        font-size: 34px;
    }

    .index3-welcome-label {
        font-size: 20px;
    }

    .index3-welcome-card h1 {
        font-size: 28px;
    }

    .index3-divider {
        margin: 30px 0 27px;
    }

    .index3-input-wrap {
        min-height: 66px;
        padding-inline: 10px;
        border-radius: 14px;
    }

    .index3-input-icon {
        flex-basis: 42px;
        width: 42px;
        height: 44px;
    }

    .index3-input-wrap input[type="text"] {
        height: 62px;
        padding-inline: 11px;
        font-size: 20px;
    }

    .index3-input-check {
        display: none !important;
    }

    .index3-cpf-help {
        font-size: 11px;
    }

    .index3-agenda {
        padding-inline: 13px;
    }

    .index3-appointment-card {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .index3-shell *,
    .index3-shell *::before,
    .index3-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Agenda: estados de carregamento e erro (lista carregada por fetch) */
.index3-agenda-loading,
.index3-agenda-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 16px;
    color: #55758d;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    list-style: none;
}

.index3-agenda-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #d6ebec;
    border-top-color: var(--index3-teal, #1aaab0);
    border-radius: 50%;
    animation: index3-agenda-spin 0.8s linear infinite;
}

@keyframes index3-agenda-spin {
    to {
        transform: rotate(360deg);
    }
}

.index3-agenda-error .material-icons {
    font-size: 32px;
    color: #94a3b8;
}

.index3-agenda-retry {
    padding: 10px 18px;
    border: 1px solid rgba(43, 171, 174, 0.4);
    border-radius: 10px;
    background: #ffffff;
    color: var(--index3-teal-dark, #0e8287);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .index3-agenda-spinner {
        animation-duration: 2s;
    }
}

/* Desktop: cards alinhados, mesma altura e conjunto centralizado na tela */
@media (min-width: 1081px) {
    .index3-layout.content {
        align-self: center;
        align-items: stretch;
        margin-top: 0 !important;
        padding-bottom: 40px !important;
    }

    .index3-welcome-card,
    .index3-install-card {
        align-self: stretch;
        border-radius: 24px;
    }

    .index3-welcome-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-block: 28px 24px;
    }

    .index3-install-card {
        display: flex;
        flex-direction: column;
    }

    .index3-install-copy {
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .index3-install-copy p {
        margin-bottom: 20px;
    }

    .index3-install-button {
        margin-top: auto;
    }
}

/* Desktop: card de boas-vindas sempre no centro da tela.
   Colunas laterais iguais (1fr) mantêm o centro; a extensão fica colada à
   esquerda do card e a agenda (gaveta fixa ou em fluxo) na lateral direita. */
@media (min-width: 1081px) {
    .index3-layout.content,
    .index3-layout.content.no-install-card,
    .index3-layout.content:has(.index3-install-card[hidden]),
    .index3-layout.content:has(.index3-install-card[style*="display: none"]) {
        grid-template-areas: "install welcome agenda";
        grid-template-columns: minmax(210px, 1fr) minmax(480px, 660px) minmax(210px, 1fr);
        max-width: 1560px !important;
    }

    .index3-install-card {
        justify-self: end;
        max-width: 270px;
    }

    .index3-agenda:not(.is-collapsed) {
        justify-self: start;
        max-width: 390px;
    }
}

/* Tablet e celular: sem card da extensão (ela só existe no Chrome desktop) */
@media (max-width: 1024px) {
    .index3-install-card {
        display: none !important;
    }

    .index3-layout.content {
        grid-template-areas: "welcome agenda";
    }
}

@media (max-width: 840px) {
    .index3-layout.content {
        grid-template-areas: "welcome";
    }

    /* Os pontos decorativos ficavam por cima da logo */
    .index3-dots-top {
        display: none;
    }
}

/* A escala por resolução (zoom) fica em kiosk-scale.css */
