:root {
    --bg: #f4f5f8;
    --card: #ffffff;
    --ink: #18233a;
    --ink2: #4a5470;
    --muted: #6b7590;
    --faint: #9aa2b6;
    --line: #e6e9f0;
    --soft: #f3f5f9;
    --accent-soft: #fde6d6;
    --navy: #1b3561;
    --side: #14284b;
    --orange: #f26b1d;
    --orange-light: #f7941d;
    --red: #e8262f;
    --green: #2fb36b;
    --internal: #2f6fb3;
    --shadow-pop: 0 16px 40px rgba(10, 20, 40, .18);
}

html[data-theme=dark] {
    --bg: #0c1322;
    --card: #141e33;
    --ink: #eef1f7;
    --ink2: #c5ccda;
    --muted: #97a2b9;
    --faint: #6c7791;
    --line: #24304a;
    --soft: #1b2740;
    --accent-soft: rgba(242, 107, 29, .18);
    --navy: #2c5597;
    --internal: #7aa7e6;
    --side: #080e1b;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Nunito Sans', system-ui, sans-serif;
    transition: background .2s;
}

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    color: var(--orange);
}

button,
input {
    font-family: inherit;
    color: inherit;
}

.muted {
    font-size: 13px;
    color: var(--muted);
}

.only-dark {
    display: none;
}

html[data-theme=dark] .only-light {
    display: none;
}

html[data-theme=dark] .only-dark {
    display: block;
}

/* Botões */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.button--ink {
    height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--bg);
    font-size: 13px;
}

.button--soft {
    padding: 9px 14px;
    background: var(--soft);
    color: var(--ink);
    border: 1px solid var(--line);
}

.button--outline {
    height: 36px;
    padding: 0 14px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
}

.button--outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.button--navy {
    padding: 10px 18px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.button--block {
    width: 100%;
    padding: 12px;
}

.icon-button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
}

.icon-button:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* Cabeçalho */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 11px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.brand {
    flex: 0 0 auto;
    height: 24px;
}

.brand img {
    height: 24px;
    width: auto;
}

.view-nav {
    display: flex;
    gap: 2px;
    max-width: 100%;
    margin: 0 auto;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--soft);
    overflow-x: auto;
}

.view-nav__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.view-nav__item.is-active {
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(20, 30, 60, .12);
}

.view-nav__count {
    padding: 2px 6px;
    border-radius: 99px;
    background: var(--line);
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
}

.view-nav__item.is-active .view-nav__count {
    background: var(--accent-soft);
    color: var(--orange);
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 220px;
    max-width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
}

.search__icon {
    color: var(--faint);
    font-size: 14px;
}

.search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
}

.user-menu {
    position: relative;
}

.avatar-button {
    width: 38px;
    height: 38px;
    padding: 7px;
    overflow: hidden;
    border: 2px solid var(--card);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line);
    background: var(--card);
    cursor: pointer;
}

.avatar-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dropdown {
    position: absolute;
    top: 46px;
    right: 0;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow-pop);
}

.dropdown__header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.dropdown__header span {
    font-size: 11px;
    color: var(--muted);
}

.dropdown form {
    margin: 0;
}

.dropdown__item {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.dropdown__item:hover {
    background: var(--soft);
}

.dropdown__item--danger {
    color: var(--red);
}

/* Estrutura */

.page-title {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 32px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.page-title span {
    font-size: 13px;
    color: var(--muted);
}

.portal-main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 32px 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.portal .topbar__inner,
.portal .page-title,
.portal .portal-main {
    max-width: 1600px;
}

.card {
    border: 1px solid var(--line);
    background: var(--card);
}

.section-heading {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-heading__title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--orange);
}


.empty {
    padding: 32px;
    text-align: center;
    color: var(--muted);
}

/* Avatares */

.avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.avatar--sm {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.avatar--md {
    width: 52px;
    height: 52px;
    font-size: 17px;
}

.avatar--xl {
    width: 120px;
    height: 120px;
    font-size: 38px;
}

.avatar--c0 {
    background-color: var(--navy);
}

.avatar--c1 {
    background-color: #f26b1d;
}

.avatar--c2 {
    background-color: #e8262f;
}

.avatar--c3 {
    background-color: #2f6fb3;
}

.avatar--c4 {
    background-color: #c2512a;
}

.avatar--c5 {
    background-color: #3f4f75;
}

/* Visão geral */

.overview {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 24px;
}

.timeline {
    flex: 1 1 380px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    padding: 26px 6px 0;
}

.timeline__header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.timeline__mascot {
    flex: 0 0 84px;
    height: 120px;
    margin-top: -10px;
    display: flex;
    justify-content: center;
    background: radial-gradient(closest-side, rgba(242, 107, 29, .18), transparent);
}

.mascot {
    height: 100%;
    width: auto;
}

.timeline__track {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.timeline__rail {
    position: absolute;
    top: 0;
    bottom: 30px;
    left: 50%;
    width: 8px;
    margin-left: -4px;
    border-radius: 99px;
    background: var(--soft);
    box-shadow: inset 0 0 0 1px var(--line);
}

.timeline__rail--fill {
    background: linear-gradient(180deg, #fbd2b4, #f7941d 25%, #f26b1d 70%, #e8262f);
    box-shadow: 0 4px 14px rgba(242, 107, 29, .3);
}

.timeline__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    align-items: center;
    min-height: 92px;
}

.timeline__side {
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.timeline__side--left {
    justify-content: flex-end;
}

.timeline__entry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: 100%;
}

.timeline__entry--left {
    align-items: flex-end;
}

.timeline__year {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    color: var(--orange);
}

.timeline__dot {
    display: flex;
    justify-content: center;
}

.timeline__dot span {
    position: relative;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--orange);
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 0 0 5px rgba(242, 107, 29, .14);
}

.timeline__dot span::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.product-logo {
    display: block;
    height: 44px;
    max-width: 100%;
}

.product-logo img {
    height: 44px;
    width: auto;
    max-width: 100%;
}

.product-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}

.product-name span {
    color: var(--orange);
}

.timeline__takeoff {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--muted);
}

.timeline__takeoff-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink);
    font-size: 13px;
    letter-spacing: 0;
}

.team-card {
    flex: 999 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 26px 26px 28px;
    border-radius: 22px;
}

.card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 18px 10px;
}

.team-grid__member {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 8px 4px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    text-align: center;
    cursor: pointer;
}

.team-grid__member:hover {
    background: var(--soft);
}

.team-grid__member .avatar {
    width: min(100%, 88px);
    height: auto;
    aspect-ratio: 1;
    font-size: 25px;
    box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line);
}

.team-grid__name,
.team-grid__role {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.team-grid__name {
    font-size: 14px;
    font-weight: 700;
}

.team-grid__role {
    margin-top: -3px;
    font-size: 12px;
    color: var(--muted);
}

/* Colaboradores */

.team {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.chip span {
    font-weight: 600;
    opacity: .6;
}

.chip.is-active {
    background: var(--navy);
    color: #fff;
}

.chip--inactive {
    border-style: dashed;
}

.chip--inactive.is-active {
    border-style: solid;
    background: var(--muted);
}

.portal[data-view="overview"] .manage-only {
    display: none;
}

.member-card--inactive .avatar,
.member-card--inactive .member-card__text {
    opacity: .5;
}

.team__group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team__group-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.member-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 1px 2px rgba(20, 30, 60, .06);
    text-align: left;
    cursor: pointer;
}

.member-card:hover {
    box-shadow: 0 6px 18px rgba(20, 30, 60, .1);
}

.member-card__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.member-card__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
}

.member-card__role {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--red);
}

html[data-theme=dark] .member-card__role {
    color: var(--orange);
}

/* Bases */

.bases {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bases__header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 4px;
}

.bases__title {
    font-size: 18px;
    font-weight: 800;
}

.bases__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.server {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
}

.server__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.server__icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--orange);
}

.server__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.server__info {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.server__info .muted {
    font-size: 12px;
}

.server__name {
    font-size: 16px;
    font-weight: 800;
}

.server__bases {
    --columns: 4;
    display: grid;
    grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
    gap: 6px 10px;
    align-content: start;
    padding: 12px;
}

.base-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: background .15s, border-color .15s;
}

.base-row:hover {
    border-color: var(--faint);
    background: var(--soft);
}

.base-row__number {
    flex: 0 0 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.base-row__link {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.base-row__dot {
    flex: 0 0 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.base-row--internal .base-row__dot {
    background: var(--internal);
}

.base-status {
    --status-color: var(--faint);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 7px;
    border: 1px solid color-mix(in oklab, var(--status-color) 22%, transparent);
    border-radius: 999px;
    background: color-mix(in oklab, var(--status-color) 8%, transparent);
    color: var(--status-color);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.base-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--status-color);
}

.base-status[data-status="checking"]::before {
    animation: dfq-pulse 1.2s ease-in-out infinite;
}

.base-status[data-status="online"] {
    --status-color: var(--green);
}

.base-status[data-status="slow"] {
    --status-color: var(--orange-light);
}

.base-status[data-status="offline"] {
    --status-color: var(--red);
}

@keyframes dfq-pulse {
    50% {
        opacity: .35;
    }
}

.base-row--internal .base-row__link {
    color: var(--internal);
}

.base-row__copy {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--card);
    color: var(--ink2);
    cursor: pointer;
}

.base-row__copy:hover {
    color: var(--orange);
}

.base-row__copy svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.base-row__copied-icon,
.base-row__copy.is-copied .base-row__copy-icon {
    display: none;
}

.base-row__copy.is-copied {
    color: var(--green);
}

.base-row__copy.is-copied .base-row__copied-icon {
    display: block;
}

@media (max-width: 1100px) {
    .server__bases {
        --columns: 2;
    }
}

@media (max-width: 560px) {
    .server__bases {
        --columns: 1;
    }
}

/* Modais */

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 24, 45, .55);
}

.modal__dialog {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
}

.modal__dialog--profile {
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 28px;
    text-align: center;
}

.modal__dialog--login {
    max-width: 380px;
}

.modal__accent {
    height: 4px;
    background: linear-gradient(90deg, #f7941d, #f26b1d, #e8262f);
}

.profile__name {
    font-size: 22px;
    font-weight: 800;
}

.profile__role {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--red);
}

.profile__email {
    margin: 2px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink2);
}

.profile__email:hover {
    color: var(--orange);
}

.modal__dialog--emails {
    max-width: 640px;
}

.emails {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
}

.emails__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.emails__heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.emails__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emails__search {
    width: 100%;
}

.emails__list {
    max-height: min(56vh, 520px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.emails__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.emails__row:last-of-type {
    border-bottom: 0;
}

.emails__row:hover {
    background: var(--soft);
}

.emails__icon {
    flex: 0 0 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--orange);
    font-size: 15px;
}

.emails__icon--md {
    flex-basis: 52px;
    height: 52px;
    font-size: 20px;
}

.emails__info {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.emails__address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.emails__address:hover {
    color: var(--orange);
}

.emails__owner {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: var(--muted);
}

.emails__list .empty {
    padding: 16px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
}

.login-form__heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-form__title {
    font-size: 22px;
    font-weight: 800;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink2);
}

.field input {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    outline-color: var(--orange);
}

.field__error {
    font-size: 13px;
    color: var(--red);
}

/* Ações e componentes compartilhados */

.button--orange {
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(242, 107, 29, .3);
}

.button--orange:hover {
    color: #fff;
}

.button--danger {
    height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--red);
}

.button--danger:hover {
    border-color: #f3c2c4;
}

.button--danger-outline {
    padding: 10px 14px;
    border: 1px solid #f3c2c4;
    background: transparent;
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
}

.inline-form {
    display: contents;
}

.menu {
    position: relative;
}

.dropdown__item {
    display: block;
    color: var(--ink);
}

.dropdown__item:hover {
    color: var(--ink);
}

.dropdown__separator {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.flashes {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(420px, calc(100vw - 32px));
}

.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow-pop);
    font-size: 13px;
    font-weight: 700;
}

.flash--error {
    border-left-color: var(--red);
}

.flash--warning {
    border-left-color: var(--orange);
}

.flash span {
    flex: 1;
}

.flash__close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
}

.base-row__manage {
    flex: 0 0 auto;
    display: flex;
    gap: 4px;
}

.base-row__action {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--card);
    color: var(--faint);
    cursor: pointer;
}

.base-row__action:hover {
    color: var(--ink);
}

.base-row__action--danger:hover {
    color: var(--red);
}

.base-row__action svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.base-row--inactive .base-row__number,
.base-row--inactive .base-row__link {
    opacity: .5;
}

.base-row .inactive-tag {
    padding: 1px 8px;
    font-size: 10px;
}

.list__row.is-inactive .list__main,
.list__row.is-inactive > .avatar,
.list__row.is-inactive > .base-row__number,
.list__row.is-inactive > .base-row__dot {
    opacity: .45;
}

.inactive-tag {
    padding: 2px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.add-tile {
    align-self: flex-start;
    padding: 14px 20px;
    border: 2px dashed var(--faint);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.profile__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.profile__manage {
    display: contents;
}

/* Modais de cadastro (modelo) */

.modal__dialog--form {
    max-width: 420px;
    padding: 28px;
}

.modal__dialog--wide {
    max-width: 440px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form__title {
    font-size: 22px;
    font-weight: 800;
}

.modal-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal de confirmação */

.modal--confirm {
    z-index: 60;
}

.modal__dialog--confirm {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
}

.confirm__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.confirm__message {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink2);
}

.button--cancel {
    padding: 11px 16px;
    background: var(--soft);
    color: var(--ink2);
    font-size: 14px;
    font-weight: 700;
}

.button--submit {
    padding: 11px 18px;
    background: var(--orange);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.button--submit:disabled {
    opacity: .6;
    cursor: wait;
}

.button--orange-sm {
    padding: 10px 14px;
    background: var(--orange);
    color: #fff;
}

.suffix-input {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.field .suffix-input input:not([type=checkbox]) {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
}

.suffix-input__suffix {
    padding: 0 12px;
    font-size: 13px;
    font-weight: 400;
    color: var(--faint);
}

.field__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink2);
}

.dropdown--new {
    min-width: 200px;
}

.add-tile {
    background: transparent;
    cursor: pointer;
}

.button--outline-lg {
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.checkbox--small {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink2);
}

.modal-loading {
    margin: 0;
    padding: 24px 0;
    text-align: center;
    color: var(--muted);
}

/* Foto com recorte */

.photo-picker {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.photo-picker__row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.photo-picker__preview {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--faint);
    border-radius: 50%;
    background-color: var(--soft);
    background-size: cover;
    background-position: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--faint);
}

.photo-picker__choose {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
}

.photo-crop {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.photo-crop__viewport {
    position: relative;
    width: 160px;
    height: 160px;
    flex: 0 0 160px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--soft);
    cursor: grab;
    touch-action: none;
}

.photo-crop__viewport:active {
    cursor: grabbing;
}

.photo-crop__viewport canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.photo-crop__mask {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: 0 0 0 200px rgba(15, 24, 45, .6);
    pointer-events: none;
}

.photo-crop__controls {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-crop__hint {
    font-size: 12px;
    color: var(--muted);
}

.photo-crop__zoom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--muted);
}

.photo-crop__zoom input {
    flex: 1;
    accent-color: var(--orange);
}

/* Administração */

.page-title--actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.page-title--actions > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
}

.list__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
}

.list__row:last-child {
    border-bottom: 0;
}

.list__main {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

.list__main .muted {
    font-size: 12px;
}

.list__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 24px;
    border-radius: 18px;
    text-align: center;
}

.form-card {
    width: 100%;
    max-width: 640px;
    padding: 28px;
    border-radius: 18px;
}

.form-card__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-card__form > div:not(.form-card__actions) {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.photo-preview {
    width: 100%;
    max-width: 640px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    border-radius: 18px;
}

.field label {
    color: var(--ink2);
}

.field input:not([type=checkbox]),
.field select,
.field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    outline-color: var(--orange);
}

.field textarea {
    resize: vertical;
}

.field input[type=file] {
    padding: 8px;
}

.field .is-invalid {
    border-color: var(--red);
}

.field__help {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.field--checkbox {
    gap: 4px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}

.checkbox input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    appearance: none;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: var(--card) center / 14px no-repeat;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}

.checkbox:hover input {
    border-color: var(--orange);
}

.checkbox input:checked {
    border-color: var(--orange);
    background-color: var(--orange);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.checkbox input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Celular */

@media (max-width: 720px) {
    .topbar__inner,
    .page-title,
    .portal-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .topbar__actions {
        width: 100%;
    }

    .search {
        flex: 1;
        width: auto;
    }

    .timeline {
        max-width: none;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .team-grid__member .avatar {
        width: min(100%, 84px);
        font-size: 26px;
    }
}
