/* FluxUI Workspace v1.9.12 — Portal do Cliente */
:root {
    --portal-bg: #101214;
    --portal-panel: #171a1e;
    --portal-panel-soft: #1c2025;
    --portal-border: #2b3037;
    --portal-muted: #8d97a5;
    --portal-text: #f2f5f9;
    --portal-blue: #4d8ff7;
}

body.client-portal-page {
    min-height: 100dvh;
    margin: 0;
    color: var(--portal-text);
    background:
        radial-gradient(circle at 90% 0%, rgb(77 143 247 / 7%), transparent 28%),
        var(--portal-bg);
}

.client-portal-topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 72px;
    padding: 0 clamp(18px, 3vw, 44px);
    border-bottom: 1px solid var(--portal-border);
    background: rgb(16 18 20 / 93%);
    backdrop-filter: blur(18px);
}

.client-portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.client-portal-brand strong {
    font-size: 25px;
    letter-spacing: -.05em;
}

.client-portal-brand span {
    padding: 3px 7px;
    border: 1px solid rgb(77 143 247 / 30%);
    border-radius: 6px;
    color: #9fc2ff;
    background: rgb(77 143 247 / 10%);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.client-portal-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.client-portal-nav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: #9ca6b4;
    font-size: 12px;
    font-weight: 650;
}

.client-portal-nav a:hover {
    color: #fff;
    background: rgb(255 255 255 / 4%);
}

.client-portal-user {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.client-portal-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgb(77 143 247 / 25%);
    border-radius: 10px;
    color: #a8c8ff;
    background: rgb(77 143 247 / 11%);
    font-size: 9px;
    font-weight: 800;
}

.client-portal-user > span:nth-child(2) {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.client-portal-user strong,
.client-portal-user small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-portal-user strong { font-size: 11px; }
.client-portal-user small { color: var(--portal-muted); font-size: 9px; }
.client-portal-user form { margin: 0; }

.client-portal-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--portal-border);
    border-radius: 9px;
    color: #9ea8b5;
    background: #1a1d21;
    cursor: pointer;
}

.client-portal-main {
    width: min(100%, 1520px);
    margin: 0 auto;
    padding: 28px clamp(18px, 3vw, 42px) 52px;
}

.client-portal-main.is-auth {
    width: 100%;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.client-portal-footer {
    padding: 18px 28px 30px;
    color: #6f7884;
    font-size: 10px;
    text-align: center;
}

.client-portal-footer a { color: #8fb8ff; }

.portal-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0 24px;
    border-bottom: 1px solid var(--portal-border);
}

.portal-hero h1 {
    margin: 5px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.portal-hero p {
    max-width: 760px;
    margin: 0;
    color: #9aa5b3;
    font-size: 13px;
    line-height: 1.6;
}

.portal-hero-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.portal-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin-top: 18px;
}

.portal-summary-grid article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: linear-gradient(145deg, #1a1d21, #16191d);
}

.portal-summary-grid article.needs-attention {
    border-color: rgb(77 143 247 / 36%);
    box-shadow: inset 0 0 0 1px rgb(77 143 247 / 5%);
}

.portal-summary-grid article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #8fb8ff;
    background: rgb(77 143 247 / 10%);
}

.portal-summary-grid article > div { display: grid; gap: 2px; }
.portal-summary-grid small { color: #9ba5b3; font-size: 10px; font-weight: 700; }
.portal-summary-grid strong { margin-top: 3px; font-size: 28px; line-height: 1; }
.portal-summary-grid em { margin-top: 4px; color: #747e8b; font-size: 9px; font-style: normal; }

.portal-action-center,
.portal-section {
    margin-top: 24px;
}

.portal-action-center {
    padding: 18px;
    border: 1px solid rgb(77 143 247 / 22%);
    border-radius: 15px;
    background: linear-gradient(145deg, rgb(77 143 247 / 7%), rgb(24 27 31 / 98%));
}

.portal-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.portal-section-heading h2 {
    margin: 3px 0 0;
    font-size: 20px;
    line-height: 1.2;
}

.portal-section-heading p {
    margin: 4px 0 0;
    color: #858f9d;
    font-size: 10px;
}

.portal-count {
    padding: 5px 8px;
    border: 1px solid var(--portal-border);
    border-radius: 999px;
    color: #9ba6b4;
    background: #181b1f;
    font-size: 9px;
    white-space: nowrap;
}

.portal-action-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.portal-action-list a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #303640;
    border-radius: 12px;
    color: #e9edf3;
    background: #191c20;
}

.portal-action-list a:hover { border-color: #435067; background: #1d2126; }
.portal-action-list a > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.portal-action-list strong, .portal-action-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-action-list strong { font-size: 11px; }
.portal-action-list small { color: #7f8997; font-size: 9px; }
.portal-action-list em { color: #8fb8ff; font-size: 9px; font-style: normal; }

.portal-action-icon,
.portal-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #9bc1ff;
    background: rgb(77 143 247 / 10%);
}

.portal-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.portal-project-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: linear-gradient(145deg, #1a1d21, #16191d);
}

.portal-project-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.portal-project-card header > div { display: grid; gap: 7px; min-width: 0; }
.portal-project-card h3 { margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.portal-project-card header > strong { color: #8fb8ff; font-size: 18px; }

.portal-progress {
    height: 5px;
    margin: 14px 0;
    overflow: hidden;
    border-radius: 999px;
    background: #292d33;
}
.portal-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4d8ff7, #72a8ff); }

.portal-project-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    margin: 0;
}

.portal-project-card dl > div {
    min-width: 0;
    padding: 9px;
    border: 1px solid rgb(255 255 255 / 5%);
    border-radius: 9px;
    background: rgb(255 255 255 / 2%);
}
.portal-project-card dt { color: #788290; font-size: 8px; text-transform: uppercase; }
.portal-project-card dd { margin: 4px 0 0; overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.portal-approval-list { display: grid; gap: 10px; }
.portal-approval-card {
    padding: 16px;
    border: 1px solid var(--portal-border);
    border-radius: 13px;
    background: #181b1f;
}
.portal-approval-card.is-waiting { border-color: rgb(77 143 247 / 30%); }
.portal-approval-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.portal-approval-top > span:first-child { display: grid; gap: 3px; }
.portal-approval-top small { color: #8190a4; font-size: 9px; }
.portal-approval-top strong { font-size: 13px; }
.portal-approval-card > p { margin: 10px 0 0; color: #9ca5b2; font-size: 11px; line-height: 1.55; }
.portal-deliverable { display: grid; gap: 4px; margin-top: 10px; padding: 10px; border-radius: 9px; background: #15181b; }
.portal-deliverable small { color: #7e8a9b; font-size: 8px; text-transform: uppercase; }
.portal-deliverable span { color: #c9d0da; font-size: 10px; line-height: 1.5; }
.portal-approval-form { display: grid; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #292e35; }
.portal-approval-form label { display: grid; gap: 5px; }
.portal-approval-form label > span { color: #9ca6b4; font-size: 9px; font-weight: 700; }
.portal-approval-form textarea { min-height: 64px; }
.portal-approval-form > div { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.portal-decision-history { display: block; margin-top: 10px; color: #778393; }

.portal-document-columns,
.portal-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.portal-document-panel,
.portal-section-contained {
    min-width: 0;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: #181b1f;
}

.portal-document-panel > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px 12px;
    border-bottom: 1px solid var(--portal-border);
}
.portal-document-panel > header h3 { margin: 0; font-size: 13px; }
.portal-document-panel > header p { margin: 3px 0 0; color: #7e8997; font-size: 9px; }
.portal-document-panel > header > span { min-width: 24px; padding: 3px 6px; border-radius: 999px; color: #9ec3ff; background: rgb(77 143 247 / 10%); font-size: 9px; text-align: center; }
.portal-document-list { display: grid; }
.portal-document-list > article { padding: 13px 15px; border-bottom: 1px solid rgb(255 255 255 / 5%); }
.portal-document-list > article:last-child { border-bottom: 0; }
.portal-document-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.portal-document-row > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.portal-document-row strong, .portal-document-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-document-row strong { font-size: 11px; }
.portal-document-row small { color: #7d8795; font-size: 9px; }
.portal-document-list p { margin: 9px 0 0 46px; color: #949eab; font-size: 10px; line-height: 1.5; }
.portal-upload-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 7px; margin: 10px 0 0 46px; }
.portal-upload-form input { min-height: 36px; }
.portal-document-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.portal-document-actions small { color: #7d8794; font-size: 9px; }
.portal-document-state { display: block; margin: 8px 0 0 46px; color: #8da4c8; }

.portal-ticket-list { overflow: hidden; border: 1px solid var(--portal-border); border-radius: 14px; background: #181b1f; }
.portal-ticket-list > a { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto auto 82px; align-items: center; gap: 12px; min-height: 64px; padding: 11px 14px; border-bottom: 1px solid rgb(255 255 255 / 5%); color: #dce2ea; }
.portal-ticket-list > a:last-child { border-bottom: 0; }
.portal-ticket-list > a:hover { background: rgb(255 255 255 / 2.5%); }
.portal-ticket-number { color: #8fb8ff; font-size: 10px; font-weight: 800; }
.portal-ticket-list > a > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.portal-ticket-list strong, .portal-ticket-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-ticket-list strong { font-size: 11px; }
.portal-ticket-list small { color: #7e8996; font-size: 9px; }
.portal-ticket-list time { color: #77808d; font-size: 9px; text-align: right; }

.portal-section-contained { padding: 16px; }
.portal-section-contained .portal-section-heading { margin-bottom: 10px; }
.portal-finance-list, .portal-event-list { display: grid; gap: 6px; }
.portal-finance-list article { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 9px; background: #15181b; }
.portal-finance-list article > span:first-child { display: grid; min-width: 0; gap: 2px; }
.portal-finance-list strong { font-size: 10px; }
.portal-finance-list small { color: #77828f; font-size: 8px; }
.portal-event-list article { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 9px; background: #15181b; }
.portal-event-list time { display: grid; place-items: center; min-height: 42px; border-radius: 8px; color: #9ec3ff; background: rgb(77 143 247 / 9%); }
.portal-event-list time strong { font-size: 15px; line-height: 1; }
.portal-event-list time span { font-size: 7px; }
.portal-event-list article > span { display: grid; min-width: 0; gap: 3px; }
.portal-event-list article > span strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.portal-event-list article > span small { overflow: hidden; color: #778391; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.portal-empty { padding: 28px; color: #77818e; font-size: 10px; text-align: center; }
.portal-empty.compact { padding: 18px; }

.portal-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 460px);
    gap: clamp(32px, 7vw, 110px);
    align-items: center;
    width: min(1120px, 100%);
}
.portal-auth-copy { max-width: 620px; }
.portal-auth-badge { display: inline-flex; padding: 5px 9px; border: 1px solid rgb(77 143 247 / 28%); border-radius: 999px; color: #9ec3ff; background: rgb(77 143 247 / 8%); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.portal-auth-copy h1 { margin: 16px 0 12px; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.04em; }
.portal-auth-copy > p { max-width: 580px; margin: 0; color: #97a2b0; font-size: 14px; line-height: 1.65; }
.portal-auth-features { display: grid; gap: 8px; margin-top: 24px; color: #adb7c4; font-size: 11px; }
.portal-auth-features span { display: flex; align-items: center; gap: 8px; }
.portal-auth-features svg { color: #6ba6ff; }
.portal-auth-card { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--portal-border); border-radius: 18px; background: linear-gradient(145deg, #1b1e22, #16191d); box-shadow: 0 28px 80px rgb(0 0 0 / 25%); }
.portal-auth-card h2 { margin: 4px 0 0; font-size: 22px; }
.portal-auth-card p { margin: 4px 0 0; color: #8994a3; font-size: 10px; }
.portal-auth-card label { display: grid; gap: 6px; }
.portal-auth-card label > span { color: #abb4c1; font-size: 10px; font-weight: 700; }
.portal-auth-card > small { color: #77818e; font-size: 9px; line-height: 1.5; text-align: center; }

.portal-modal .modal-card { border-color: #343a44; background: #1a1d21; }
.portal-sign-summary { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #303640; border-radius: 10px; background: #15181b; }
.portal-sign-summary > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; color: #9ec3ff; background: rgb(77 143 247 / 10%); }
.portal-sign-summary > div { display: grid; min-width: 0; gap: 2px; }
.portal-sign-summary strong, .portal-sign-summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-sign-summary strong { font-size: 10px; }
.portal-sign-summary small { color: #7f8996; font-size: 8px; }
.portal-sign-accept { margin-top: 5px; padding: 11px; border: 1px solid #303640; border-radius: 10px; background: #16191d; }

.portal-ticket-page { width: min(100%, 980px); margin: 0 auto; }
.portal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: #94a3b8; font-size: 10px; }
.portal-ticket-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--portal-border); }
.portal-ticket-header h1 { margin: 4px 0 6px; font-size: 25px; }
.portal-ticket-header p { margin: 0; color: #8993a0; font-size: 10px; }
.portal-ticket-header > div:last-child { display: flex; gap: 6px; }
.portal-ticket-thread { display: grid; gap: 12px; margin-top: 18px; }
.portal-ticket-message { max-width: min(78%, 720px); padding: 12px 14px; border: 1px solid #323840; border-radius: 5px 13px 13px 13px; background: #1d2024; }
.portal-ticket-message.is-client { justify-self: end; border-color: rgb(77 143 247 / 28%); border-radius: 13px 5px 13px 13px; background: rgb(40 83 148 / 24%); }
.portal-ticket-message header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.portal-ticket-message header strong { font-size: 10px; }
.portal-ticket-message header time { color: #77818e; font-size: 8px; }
.portal-ticket-message > div { color: #d6dce4; font-size: 11px; line-height: 1.6; }
.portal-ticket-attachment { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 5px 8px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 7px; color: #9ec3ff; background: rgb(0 0 0 / 10%); font-size: 9px; }
.portal-ticket-reply { display: grid; gap: 8px; margin-top: 18px; padding: 14px; border: 1px solid var(--portal-border); border-radius: 13px; background: #181b1f; }
.portal-ticket-reply label { display: grid; gap: 5px; }
.portal-ticket-reply label > span { color: #9ca6b4; font-size: 9px; font-weight: 700; }
.portal-ticket-reply > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.portal-ticket-reply input[type="file"] { max-width: 520px; }

@media (max-width: 1180px) {
    .client-portal-topbar { grid-template-columns: auto 1fr; }
    .client-portal-nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 9px; overflow-x: auto; }
    .client-portal-user { justify-self: end; }
    .portal-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .portal-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .portal-action-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
    .client-portal-topbar { gap: 12px; padding-inline: 14px; }
    .client-portal-user > span:nth-child(2) { display: none; }
    .client-portal-main { padding: 18px 14px 38px; }
    .portal-hero, .portal-section-heading { align-items: flex-start; flex-direction: column; }
    .portal-summary-grid, .portal-project-grid, .portal-action-list, .portal-document-columns, .portal-two-columns, .portal-auth-shell { grid-template-columns: 1fr; }
    .portal-auth-shell { max-width: 620px; }
    .portal-auth-copy { text-align: center; }
    .portal-auth-features { justify-items: center; }
    .portal-ticket-list > a { grid-template-columns: 58px minmax(0,1fr) auto; }
    .portal-ticket-list > a > .badge:nth-of-type(2), .portal-ticket-list > a > time { display: none; }
    .portal-upload-form { grid-template-columns: 1fr; margin-left: 0; }
    .portal-document-list p, .portal-document-state { margin-left: 0; }
}

@media (max-width: 560px) {
    .client-portal-main.is-auth { padding: 18px; }
    .portal-summary-grid { grid-template-columns: 1fr; }
    .portal-project-card dl { grid-template-columns: 1fr; }
    .portal-document-row { grid-template-columns: 34px minmax(0,1fr); }
    .portal-document-row > .badge { grid-column: 2; justify-self: start; }
    .portal-document-actions { align-items: stretch; flex-direction: column; }
    .portal-ticket-list > a { grid-template-columns: 1fr auto; gap: 6px; }
    .portal-ticket-number { grid-column: 1; }
    .portal-ticket-list > a > span:nth-child(2) { grid-column: 1 / -1; }
    .portal-ticket-message { max-width: 92%; }
    .portal-ticket-reply > div { align-items: stretch; flex-direction: column; }
    .portal-ticket-reply .button { width: 100%; }
}

.portal-error-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(620px, 100%);
    margin: 12vh auto 0;
    padding: 34px;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #181b1f;
    text-align: center;
}
.portal-error-state > span { color: #6ea6ff; font-size: 42px; font-weight: 900; }
.portal-error-state h1 { margin: 0; font-size: 22px; }
.portal-error-state p { max-width: 480px; margin: 0 0 8px; color: #909aa8; font-size: 11px; line-height: 1.55; }

/* FluxUI Workspace v1.9.13 — visualização interna do Portal do Cliente */
.client-portal-preview-banner {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 9px max(18px, calc((100vw - 1440px) / 2));
    border-bottom: 1px solid rgb(77 143 247 / 28%);
    color: #c9d8ef;
    background: linear-gradient(90deg, rgb(24 65 124 / 96%), rgb(28 50 83 / 96%));
    box-shadow: 0 8px 26px rgb(0 0 0 / 14%);
    font-size: 11px;
}

.client-portal-preview-banner > span {
    min-width: 0;
    line-height: 1.45;
}

.client-portal-preview-banner strong {
    margin-right: 7px;
    color: #fff;
}

.client-portal-preview-banner form {
    flex: 0 0 auto;
}

.client-portal-topbar.is-preview {
    border-bottom-color: rgb(77 143 247 / 16%);
}

.portal-preview-readonly-note,
.portal-preview-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid rgb(77 143 247 / 20%);
    border-radius: 8px;
    color: #9dbce9;
    background: rgb(77 143 247 / 7%);
    font-size: 9px;
    line-height: 1.35;
}

.portal-preview-chip {
    border-radius: 999px;
    white-space: nowrap;
}

.portal-ticket-preview-note {
    margin-top: 18px;
}

@media (max-width: 820px) {
    .client-portal-preview-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px 14px;
    }

    .client-portal-preview-banner form,
    .client-portal-preview-banner .button {
        width: 100%;
    }
}

/* FluxUI Workspace v1.9.15 — recuperação de senha do Portal do Cliente */
.portal-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.portal-auth-label-row > a,
.portal-auth-back {
    color: #82b4ff;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}
.portal-auth-label-row > a:hover,
.portal-auth-back:hover { color: #b7d3ff; }
.portal-auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
}
.portal-password-field { position: relative; }
.portal-password-field > input { width: 100%; padding-right: 42px; }
.portal-password-field > button {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    color: #8390a0;
    background: transparent;
    cursor: pointer;
}
.portal-password-field > button:hover { color: #b9c7d8; }
.portal-password-strength { margin-top: -2px; }

/* FluxUI Workspace v1.9.16 — refinamento de autenticação e recuperação */
.client-portal-main.is-auth {
    position: relative;
    isolation: isolate;
}

.client-portal-main.is-auth > .portal-auth-flash {
    position: fixed;
    z-index: 120;
    top: 22px;
    left: 50%;
    width: min(540px, calc(100vw - 32px));
    margin: 0;
    transform: translateX(-50%);
    box-shadow: 0 18px 55px rgb(0 0 0 / 34%);
    backdrop-filter: blur(16px);
}

.client-portal-main.is-auth > .portal-auth-flash.flash-success {
    border-color: rgb(54 162 123 / 48%);
    background: rgb(20 74 58 / 94%);
}

.client-portal-main.is-auth > .portal-auth-flash.flash-error {
    border-color: rgb(206 78 86 / 52%);
    background: rgb(91 36 41 / 95%);
}

.portal-auth-card {
    width: 100%;
}

.portal-auth-card label {
    min-width: 0;
}

.portal-auth-card label > .portal-auth-label-row {
    display: flex !important;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.portal-auth-label-row > span {
    flex: 0 0 auto;
    color: #abb4c1;
    font-size: 10px;
    font-weight: 700;
}

.portal-auth-label-row > a {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 0;
    line-height: 1.35;
    white-space: nowrap;
}

.portal-auth-card input {
    min-height: 44px;
}

.portal-auth-back {
    justify-self: center;
    padding: 2px 8px;
    border-radius: 7px;
}

.portal-auth-back:hover {
    background: rgb(77 143 247 / 7%);
}

.portal-password-field > button {
    border-radius: 7px;
}

.portal-password-field > button:hover {
    background: rgb(255 255 255 / 4%);
}

@media (max-width: 820px) {
    .client-portal-main.is-auth > .portal-auth-flash {
        top: 14px;
        width: min(520px, calc(100vw - 24px));
    }
}

@media (max-width: 560px) {
    .client-portal-main.is-auth {
        min-height: 100svh;
        padding: 76px 18px 28px;
        place-items: start center;
    }

    .portal-auth-shell {
        align-content: start;
        gap: 28px;
    }

    .portal-auth-copy h1 {
        font-size: clamp(34px, 12vw, 48px);
    }

    .portal-auth-card {
        padding: 20px;
        border-radius: 16px;
    }

    .portal-auth-card label > .portal-auth-label-row {
        gap: 10px;
    }
}


/* FluxUI Workspace v1.9.17 — medidor de força da senha com feedback animado */
.portal-password-strength {
    --password-strength-color: #64748b;
    --password-strength-soft: rgb(100 116 139 / 12%);
    --password-strength-glow: rgb(100 116 139 / 0%);
    position: relative;
    gap: 12px;
    margin-top: 2px;
    padding: 14px;
    overflow: hidden;
    border-color: #2d333b;
    background:
        radial-gradient(circle at 100% 0%, var(--password-strength-soft), transparent 42%),
        #17191c;
    transition: border-color .28s ease, background .28s ease, box-shadow .28s ease;
}

.portal-password-strength::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
    content: "";
}

.portal-password-strength[data-strength-state="weak"] {
    --password-strength-color: #f87171;
    --password-strength-soft: rgb(248 113 113 / 10%);
    --password-strength-glow: rgb(248 113 113 / 18%);
    border-color: rgb(248 113 113 / 28%);
}

.portal-password-strength[data-strength-state="medium"] {
    --password-strength-color: #f59e0b;
    --password-strength-soft: rgb(245 158 11 / 10%);
    --password-strength-glow: rgb(245 158 11 / 18%);
    border-color: rgb(245 158 11 / 27%);
}

.portal-password-strength[data-strength-state="good"] {
    --password-strength-color: #60a5fa;
    --password-strength-soft: rgb(96 165 250 / 10%);
    --password-strength-glow: rgb(96 165 250 / 18%);
    border-color: rgb(96 165 250 / 28%);
}

.portal-password-strength[data-strength-state="strong"] {
    --password-strength-color: #34d399;
    --password-strength-soft: rgb(52 211 153 / 11%);
    --password-strength-glow: rgb(52 211 153 / 20%);
    border-color: rgb(52 211 153 / 32%);
}

.portal-password-strength.is-complete {
    box-shadow: 0 0 0 1px rgb(52 211 153 / 5%), 0 14px 38px rgb(6 78 59 / 12%);
}

.portal-password-strength-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.portal-password-strength-head > div {
    display: grid;
    gap: 3px;
}

.portal-password-strength-head > div > span {
    color: #7f8a99;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-password-strength > .portal-password-strength-head strong {
    color: #e7edf5;
    font-size: 10px;
    line-height: 1.2;
    transition: color .22s ease, transform .22s ease;
}

.portal-password-strength.is-strength-changing > .portal-password-strength-head strong {
    animation: portalPasswordLabelIn .32s cubic-bezier(.2, .8, .2, 1);
}

.portal-password-strength[data-strength-state="weak"] > .portal-password-strength-head strong,
.portal-password-strength[data-strength-state="medium"] > .portal-password-strength-head strong,
.portal-password-strength[data-strength-state="good"] > .portal-password-strength-head strong,
.portal-password-strength[data-strength-state="strong"] > .portal-password-strength-head strong {
    color: var(--password-strength-color);
}

.portal-password-strength-badge {
    display: inline-grid;
    min-width: 42px;
    min-height: 26px;
    place-items: center;
    padding: 5px 9px;
    border: 1px solid #303741;
    border-radius: 999px;
    color: #8591a0;
    background: rgb(255 255 255 / 2.5%);
    font-size: 9px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: color .24s ease, border-color .24s ease, background .24s ease, transform .24s ease;
}

.portal-password-strength.is-active .portal-password-strength-badge {
    color: var(--password-strength-color);
    border-color: color-mix(in srgb, var(--password-strength-color) 38%, transparent);
    background: var(--password-strength-soft);
}

.portal-password-strength.is-strength-changing .portal-password-strength-badge {
    animation: portalPasswordBadgePulse .34s cubic-bezier(.2, .8, .2, 1);
}

.portal-password-strength > .portal-password-strength-track {
    position: relative;
    display: block;
    overflow: visible;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #0f1114;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 3%);
}

.portal-password-strength > .portal-password-strength-track::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), #171a1f calc(25% - 2px) 25%);
    pointer-events: none;
    content: "";
}

.portal-password-strength > .portal-password-strength-track i {
    position: relative;
    z-index: 1;
    display: block;
    width: var(--password-strength, 0%);
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: var(--password-strength-color);
    box-shadow: 0 0 16px var(--password-strength-glow);
    transition: width .48s cubic-bezier(.22, 1, .36, 1), background .28s ease, box-shadow .28s ease;
}

.portal-password-strength > .portal-password-strength-track i::after {
    position: absolute;
    top: 0;
    left: -42px;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 55%), transparent);
    transform: skewX(-18deg);
    content: "";
}

.portal-password-strength.is-active > .portal-password-strength-track i::after {
    animation: portalPasswordShimmer 1.55s ease-in-out infinite;
}

.portal-password-strength .portal-password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.portal-password-strength .portal-password-rules li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #7f8996;
    background: rgb(255 255 255 / 1.6%);
    font-size: 8px;
    line-height: 1.35;
    transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease;
}

.portal-password-strength .portal-password-rules li::before {
    display: none;
    content: none;
}

.portal-password-rule-icon {
    position: relative;
    display: inline-grid;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid #3a424d;
    border-radius: 50%;
    color: #697482;
    background: #14171a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.portal-password-rule-icon::before {
    content: "·";
    transform: translateY(-1px);
}

.portal-password-strength .portal-password-rules li.is-invalid {
    color: #f0a0a5;
    border-color: rgb(248 113 113 / 13%);
    background: rgb(248 113 113 / 4.5%);
}

.portal-password-strength .portal-password-rules li.is-invalid .portal-password-rule-icon {
    color: #fb7185;
    border-color: rgb(251 113 133 / 36%);
    background: rgb(127 29 29 / 24%);
}

.portal-password-strength .portal-password-rules li.is-invalid .portal-password-rule-icon::before {
    content: "×";
    transform: translateY(-.5px);
}

.portal-password-strength .portal-password-rules li.is-valid {
    color: #b8f5d9;
    border-color: rgb(52 211 153 / 14%);
    background: rgb(52 211 153 / 5%);
}

.portal-password-strength .portal-password-rules li.is-valid .portal-password-rule-icon {
    color: #d1fae5;
    border-color: rgb(52 211 153 / 48%);
    background: rgb(5 150 105 / 28%);
    box-shadow: 0 0 0 3px rgb(52 211 153 / 6%);
}

.portal-password-strength .portal-password-rules li.is-valid .portal-password-rule-icon::before {
    content: "✓";
    transform: translateY(-.5px);
}

.portal-password-strength .portal-password-rules li.is-just-valid .portal-password-rule-icon {
    animation: portalPasswordRulePop .36s cubic-bezier(.16, 1.25, .3, 1);
}

.portal-password-strength .portal-password-rule-match {
    grid-column: 1 / -1;
}

.portal-password-field {
    transition: filter .25s ease;
}

.portal-password-field > input {
    transition: border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.portal-password-field.is-strong > input,
.portal-password-field.is-match > input {
    border-color: rgb(52 211 153 / 48%);
    box-shadow: 0 0 0 3px rgb(52 211 153 / 7%);
}

.portal-password-field.is-mismatch > input {
    border-color: rgb(248 113 113 / 44%);
    box-shadow: 0 0 0 3px rgb(248 113 113 / 6%);
}

@keyframes portalPasswordRulePop {
    0% { transform: scale(.72); opacity: .55; }
    58% { transform: scale(1.14); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes portalPasswordLabelIn {
    0% { transform: translateY(4px); opacity: .35; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes portalPasswordBadgePulse {
    0% { transform: scale(.9); }
    60% { transform: scale(1.07); }
    100% { transform: scale(1); }
}

@keyframes portalPasswordShimmer {
    0%, 25% { left: -42px; opacity: 0; }
    42% { opacity: .8; }
    72%, 100% { left: calc(100% + 10px); opacity: 0; }
}

@media (max-width: 560px) {
    .portal-password-strength .portal-password-rules {
        grid-template-columns: 1fr;
    }

    .portal-password-strength .portal-password-rule-match {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-password-strength,
    .portal-password-strength *,
    .portal-password-field > input {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* v1.9.18 - password reset live validation */
.portal-password-strength-head > div > small {
    display: block;
    margin-top: 3px;
    color: #6f7b89;
    font-size: 7.5px;
    font-weight: 600;
    line-height: 1.35;
    transition: color .22s ease;
}

.portal-password-strength.is-active .portal-password-strength-head > div > small {
    color: #909cab;
}

.portal-password-strength[data-strength-state="strong"] .portal-password-strength-head > div > small {
    color: #8ce8be;
}

/* Pending is visually a not-yet-valid X instead of an ambiguous dot. */
.portal-password-strength .portal-password-rules li.is-pending .portal-password-rule-icon::before {
    content: "×";
    transform: translateY(-.5px);
}

.portal-password-strength .portal-password-rules li.is-pending .portal-password-rule-icon {
    color: #66717e;
    border-color: #323a44;
    background: #14171a;
}

.portal-password-strength .portal-password-rules li.is-pending {
    color: #76818e;
}

.portal-password-strength.is-active .portal-password-rules li.is-invalid {
    animation: portalPasswordInvalidIn .24s ease both;
}

.portal-password-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    transition: opacity .22s ease, filter .22s ease, transform .22s ease, box-shadow .28s ease;
}

.portal-password-submit:disabled {
    cursor: not-allowed;
    opacity: .46;
    filter: saturate(.55);
    box-shadow: none;
}

.portal-password-submit-check {
    display: inline-grid;
    width: 0;
    height: 18px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #062b1f;
    background: #6ee7b7;
    font-size: 11px;
    font-weight: 900;
    opacity: 0;
    transform: scale(.65);
    transition: width .25s ease, opacity .2s ease, transform .28s cubic-bezier(.16,1.25,.3,1);
}

.portal-password-submit.is-ready {
    box-shadow: 0 8px 28px rgb(52 211 153 / 12%), 0 0 0 1px rgb(52 211 153 / 10%) inset;
}

.portal-password-submit.is-ready .portal-password-submit-check {
    width: 18px;
    opacity: 1;
    transform: scale(1);
}

.portal-password-strength.is-complete {
    animation: portalPasswordComplete .5s cubic-bezier(.16,1,.3,1);
}

@keyframes portalPasswordInvalidIn {
    from { transform: translateY(1px); }
    to { transform: translateY(0); }
}

@keyframes portalPasswordComplete {
    0% { transform: scale(.995); }
    55% { transform: scale(1.006); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .portal-password-strength.is-active .portal-password-rules li.is-invalid,
    .portal-password-strength.is-complete {
        animation: none;
    }
}
