/* Ana Terra Tattoo Sistema v0.8.0 */

html,
body.att-system-page {
    margin: 0 !important;
    min-height: 100%;
    background: #F7F1E7;
}

body.att-system-page {
    color: var(--att-earth);
    font-family: var(--att-font-body);
    -webkit-font-smoothing: antialiased;
}

body.att-system-page #wpadminbar {
    display: none !important;
}

.att-system,
.att-system * {
    box-sizing: border-box;
}

.att-system {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
}

.att-system-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 240px;
    padding: 30px 20px 24px;
    display: flex;
    flex-direction: column;
    background: var(--att-earth);
    color: var(--att-ivory);
}

.att-system-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin: 4px 10px 42px;
    font-family: var(--att-font-display);
}

.att-system-brand span {
    font-size: 20px;
    letter-spacing: .12em;
}

.att-system-brand small {
    font-family: var(--att-font-body);
    font-size: 7px;
    letter-spacing: .25em;
    color: rgba(255,249,239,.48);
}

.att-system-nav {
    display: grid;
    gap: 6px;
}

.att-system-nav a {
    min-height: 46px;
    display: grid;
    grid-template-columns: 26px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: rgba(255,249,239,.64);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}

.att-system-nav a:hover,
.att-system-nav a.is-active {
    background: rgba(255,255,255,.09);
    color: var(--att-ivory);
}

.att-system-nav i {
    color: var(--att-gold);
    font-style: normal;
    font-size: 18px;
    text-align: center;
}

.att-system-nav b {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--att-red);
    color: white;
    font-size: 9px;
}

.att-system-sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 6px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.att-system-sidebar-bottom a {
    padding: 8px 10px;
    color: rgba(255,249,239,.48);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.att-system-sidebar-bottom a:hover {
    color: var(--att-ivory);
}

.att-system-main {
    grid-column: 2;
    min-width: 0;
}

.att-system-topbar {
    height: 72px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(58,33,26,.09);
    background: rgba(255,249,239,.72);
    backdrop-filter: blur(16px);
}

.att-system-topbar > div:first-of-type span {
    color: var(--att-muted);
    font-size: 11px;
    font-weight: 600;
}

.att-system-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
}

.att-system-user i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--att-red);
    color: white;
    font-family: var(--att-font-display);
    font-size: 17px;
    font-style: normal;
}

.att-system-menu {
    display: none;
    border: 0;
    background: transparent;
    color: var(--att-earth);
    font-size: 22px;
}

.att-system-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 42px 36px 70px;
}

.att-system-page-head {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.att-system-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--att-red);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
}

.att-system-page-head h1 {
    margin: 0;
    font-family: var(--att-font-display);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.025em;
}

.att-system-page-head p {
    margin: 8px 0 0;
    color: var(--att-muted);
}

.att-system-primary {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--att-red);
    color: var(--att-ivory);
    text-decoration: none;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.att-system-primary:hover,
.att-system-primary:focus {
    background: #842E22;
    color: var(--att-ivory);
    transform: translateY(-1px);
    outline: none;
}

.att-system-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.att-system-stats article {
    padding: 22px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.64);
}

.att-system-stats span,
.att-system-stats strong,
.att-system-stats a {
    display: block;
}

.att-system-stats span {
    color: var(--att-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.att-system-stats strong {
    margin: 10px 0 13px;
    font-family: var(--att-font-display);
    font-size: 46px;
    font-weight: 400;
    line-height: .8;
}

.att-system-stats a {
    color: var(--att-red);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.att-dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 18px;
}

.att-system-panel {
    padding: 24px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.70);
}

.att-system-panel > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.att-system-panel h2 {
    margin: 0;
    font-family: var(--att-font-display);
    font-size: 30px;
    font-weight: 400;
}

.att-system-panel > header > a {
    color: var(--att-red);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.att-upcoming-list,
.att-attention-list {
    display: grid;
    gap: 8px;
}

.att-upcoming-item {
    min-height: 72px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--att-ivory);
    color: var(--att-earth);
    text-decoration: none;
}

.att-upcoming-date {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 12px;
    background: var(--att-sand);
}

.att-upcoming-date strong {
    font-family: var(--att-font-display);
    font-size: 22px;
    line-height: .9;
}

.att-upcoming-date span {
    margin-top: 2px;
    color: var(--att-muted);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .08em;
}

.att-upcoming-item > div:nth-child(2) strong,
.att-upcoming-item > div:nth-child(2) span {
    display: block;
}

.att-upcoming-item > div:nth-child(2) strong {
    font-size: 12px;
}

.att-upcoming-item > div:nth-child(2) span {
    margin-top: 4px;
    color: var(--att-muted);
    font-size: 9px;
}

.att-upcoming-item em {
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(217,154,43,.12);
    color: #8b621c;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
}

.att-upcoming-item em.status-confirmado {
    background: rgba(102,112,68,.12);
    color: #566039;
}

.att-attention-item {
    min-height: 62px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(58,33,26,.08);
}

.att-attention-item:last-child {
    border-bottom: 0;
}

.att-attention-item strong,
.att-attention-item span {
    display: block;
}

.att-attention-item strong {
    font-size: 12px;
}

.att-attention-item span {
    margin-top: 4px;
    color: var(--att-muted);
    font-size: 9px;
}

.att-attention-item a {
    color: var(--att-red);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.att-system-empty {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--att-muted);
    text-align: center;
}

.att-system-empty strong,
.att-system-empty span {
    display: block;
}

.att-system-empty strong {
    color: var(--att-earth);
    font-family: var(--att-font-display);
    font-size: 22px;
    font-weight: 400;
}

.att-system-empty span {
    margin-top: 5px;
    font-size: 10px;
}

.att-system-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(102,112,68,.20);
    border-radius: 12px;
    background: rgba(102,112,68,.09);
    font-size: 11px;
    font-weight: 700;
}

.att-system-notice.is-warning {
    border-color: rgba(217,154,43,.30);
    background: rgba(217,154,43,.11);
}

.att-calendar-toolbar {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.att-calendar-nav,
.att-calendar-switch {
    display: flex;
    align-items: center;
    gap: 5px;
}

.att-calendar-nav a,
.att-calendar-switch a {
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(58,33,26,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.58);
    color: var(--att-earth);
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
}

.att-calendar-nav a:first-child,
.att-calendar-nav a:last-child {
    width: 36px;
    padding: 0;
}

.att-calendar-switch a.is-active {
    background: var(--att-earth);
    border-color: var(--att-earth);
    color: var(--att-ivory);
}

.att-month-calendar {
    overflow: hidden;
    border: 1px solid rgba(58,33,26,.11);
    border-radius: 18px;
    background: rgba(255,255,255,.65);
}

.att-month-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid rgba(58,33,26,.10);
}

.att-month-weekdays span {
    padding: 11px 13px;
    color: var(--att-muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.att-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.att-month-day {
    min-height: 142px;
    padding: 9px;
    border-right: 1px solid rgba(58,33,26,.08);
    border-bottom: 1px solid rgba(58,33,26,.08);
}

.att-month-day:nth-child(7n) {
    border-right: 0;
}

.att-month-day.is-muted {
    background: rgba(243,231,211,.22);
    opacity: .48;
}

.att-month-day.is-today {
    background: rgba(217,154,43,.07);
}

.att-month-day-head {
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.att-month-day-head > a:first-child {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--att-earth);
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
}

.att-month-day.is-today .att-month-day-head > a:first-child {
    background: var(--att-red);
    color: white;
}

.att-day-add {
    color: var(--att-red);
    text-decoration: none;
    font-weight: 800;
    opacity: 0;
    transition: opacity .2s ease;
}

.att-month-day:hover .att-day-add {
    opacity: 1;
}

.att-month-events {
    display: grid;
    gap: 4px;
    margin-top: 5px;
}

.att-cal-event {
    min-width: 0;
    padding: 5px 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-left: 3px solid var(--att-red);
    border-radius: 6px;
    background: rgba(217,154,43,.10);
    color: var(--att-earth);
    text-decoration: none;
    font-size: 8px;
}

.att-cal-event b {
    font-size: 7px;
}

.att-cal-event span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.att-cal-event.type-ritual {
    border-left-color: var(--att-gold);
    background: rgba(217,154,43,.09);
}

.att-cal-event.type-conversa {
    border-left-color: var(--att-leaf);
    background: rgba(102,112,68,.09);
}

.att-cal-event.type-bloqueio {
    border-left-color: #888078;
    background: rgba(119,106,97,.10);
    color: var(--att-muted);
}

.att-cal-event.status-cancelado {
    opacity: .45;
    text-decoration: line-through;
}

.att-cal-event.has-conflict::after,
.att-week-event.has-conflict::after {
    content: "!";
    margin-left: auto;
    color: var(--att-red);
    font-weight: 900;
}

.att-more-events {
    color: var(--att-muted);
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
}

.att-week-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px,1fr));
    gap: 8px;
    overflow-x: auto;
}

.att-week-day {
    min-height: 540px;
    padding: 12px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.62);
}

.att-week-day.is-today {
    border-color: rgba(217,154,43,.45);
    background: rgba(255,249,239,.9);
}

.att-week-day > header {
    min-height: 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: start;
}

.att-week-day > header span {
    color: var(--att-muted);
    font-size: 9px;
}

.att-week-day > header strong {
    grid-column: 1;
    margin-top: 3px;
    font-family: var(--att-font-display);
    font-size: 18px;
    font-weight: 400;
}

.att-week-day > header a {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--att-red);
    text-decoration: none;
    font-size: 18px;
}

.att-week-day > div {
    display: grid;
    gap: 7px;
}

.att-week-free {
    color: rgba(119,106,97,.48);
    font-size: 9px;
}

.att-week-event {
    min-height: 86px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--att-red);
    border-radius: 9px;
    background: rgba(217,154,43,.10);
    color: var(--att-earth);
    text-decoration: none;
}

.att-week-event > b {
    margin-bottom: 5px;
    color: var(--att-muted);
    font-size: 8px;
}

.att-week-event > strong {
    font-size: 11px;
}

.att-week-event > span {
    margin-top: auto;
    color: var(--att-muted);
    font-size: 8px;
}

.att-week-event.type-ritual {
    border-left-color: var(--att-gold);
    background: rgba(217,154,43,.09);
}

.att-week-event.type-bloqueio {
    border-left-color: #888078;
    background: rgba(119,106,97,.10);
}

.att-day-calendar {
    padding: 24px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.65);
}

.att-day-calendar > header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.att-day-calendar h2 {
    margin: 0;
    font-family: var(--att-font-display);
    font-size: 32px;
    font-weight: 400;
}

.att-day-calendar > header > a {
    color: var(--att-red);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.att-day-list {
    display: grid;
    gap: 9px;
}

.att-day-event {
    min-height: 104px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
    border-left: 4px solid var(--att-red);
    border-radius: 14px;
    background: var(--att-ivory);
}

.att-day-event.type-ritual {
    border-left-color: var(--att-gold);
}

.att-day-event.type-bloqueio {
    border-left-color: #888078;
}

.att-day-time strong,
.att-day-time span {
    display: block;
}

.att-day-time strong {
    font-family: var(--att-font-display);
    font-size: 25px;
    font-weight: 400;
}

.att-day-time span {
    color: var(--att-muted);
    font-size: 10px;
}

.att-day-event-copy > span {
    color: var(--att-red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.att-day-event-copy h3 {
    margin: 4px 0;
    font-size: 14px;
}

.att-day-event-copy p {
    margin: 0;
    color: var(--att-muted);
    font-size: 10px;
}

.att-day-event-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.att-day-event-actions em {
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(217,154,43,.12);
    color: #93661c;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
}

.att-day-event-actions a {
    color: var(--att-red);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

/* Modal */
.att-appointment-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.att-appointment-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32,17,12,.72);
    backdrop-filter: blur(10px);
}

.att-appointment-panel {
    position: relative;
    z-index: 2;
    width: min(720px,100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 22px;
    background: var(--att-ivory);
    box-shadow: 0 30px 90px rgba(31,16,12,.28);
}

.att-appointment-panel > header {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.att-appointment-panel h2 {
    margin: 0;
    font-family: var(--att-font-display);
    font-size: 34px;
    font-weight: 400;
}

.att-modal-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--att-sand);
    color: var(--att-earth);
    text-decoration: none;
    font-size: 22px;
}

.att-appointment-form {
    display: grid;
    gap: 15px;
}

.att-appointment-form label > span {
    display: block;
    margin-bottom: 6px;
    color: var(--att-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.att-appointment-form input,
.att-appointment-form select,
.att-appointment-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(58,33,26,.14);
    border-radius: 11px;
    background: white;
    color: var(--att-earth);
    padding: 10px 12px;
    box-shadow: none;
    outline: none;
}

.att-appointment-form textarea {
    min-height: 108px;
    resize: vertical;
}

.att-appointment-form input:focus,
.att-appointment-form select:focus,
.att-appointment-form textarea:focus {
    border-color: var(--att-gold);
    box-shadow: 0 0 0 3px rgba(217,154,43,.12);
}

.att-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.att-form-row-three {
    grid-template-columns: 1.2fr .8fr .8fr;
}

.att-appointment-submit-row {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.att-delete-link {
    color: #9b2d24;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1050px) {
    .att-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .att-month-day {
        min-height: 120px;
    }
}

@media (max-width: 820px) {
    .att-system {
        display: block;
    }

    .att-system-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 20px 0 50px rgba(0,0,0,.18);
    }

    .att-system-sidebar.is-open {
        transform: translateX(0);
    }

    .att-system-main {
        grid-column: auto;
    }

    .att-system-menu {
        display: block;
    }

    .att-system-topbar {
        padding: 0 20px;
    }

    .att-system-content {
        padding: 30px 20px 55px;
    }

    .att-system-stats {
        grid-template-columns: 1fr;
    }

    .att-month-calendar {
        overflow-x: auto;
    }

    .att-month-weekdays,
    .att-month-grid {
        min-width: 850px;
    }
}

@media (max-width: 580px) {
    .att-system-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .att-calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .att-upcoming-item {
        grid-template-columns: 48px 1fr;
    }

    .att-upcoming-item em {
        grid-column: 2;
        justify-self: start;
    }

    .att-day-event {
        grid-template-columns: 62px 1fr;
    }

    .att-day-event-actions {
        grid-column: 2;
    }

    .att-form-row,
    .att-form-row-three {
        grid-template-columns: 1fr;
    }

    .att-appointment-modal {
        padding: 0;
    }

    .att-appointment-panel {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        padding: 24px 18px;
    }
}


/* Clientes e CRM v0.9.0 */
.att-clients-layout {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 18px;
    align-items: start;
}

.att-clients-list-panel,
.att-client-detail-panel {
    min-height: 680px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.68);
}

.att-clients-list-panel {
    padding: 16px;
}

.att-client-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 14px;
}

.att-client-search input {
    min-width: 0;
    min-height: 42px;
    border: 1px solid rgba(58,33,26,.12);
    border-radius: 11px;
    background: var(--att-ivory);
    padding: 9px 12px;
    color: var(--att-earth);
    outline: none;
}

.att-client-search input:focus {
    border-color: var(--att-gold);
    box-shadow: 0 0 0 3px rgba(217,154,43,.11);
}

.att-client-search button {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    background: var(--att-earth);
    color: var(--att-ivory);
    padding: 0 13px;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.att-clients-list {
    display: grid;
    gap: 7px;
}

.att-client-list-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 11px;
    align-items: center;
    min-height: 66px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--att-earth);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.att-client-list-item:hover,
.att-client-list-item.is-active {
    border-color: rgba(217,154,43,.34);
    background: var(--att-sand);
    transform: translateX(2px);
}

.att-client-avatar,
.att-client-profile-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--att-earth);
    color: var(--att-ivory);
    font-family: var(--att-font-display);
    font-weight: 400;
}

.att-client-avatar {
    width: 46px;
    height: 46px;
    font-size: 21px;
}

.att-client-list-item strong,
.att-client-list-item span {
    display: block;
}

.att-client-list-item strong {
    font-size: 12px;
}

.att-client-list-item span {
    margin-top: 4px;
    color: var(--att-muted);
    font-size: 9px;
}

.att-client-list-item i {
    color: var(--att-red);
    font-style: normal;
    font-size: 20px;
}

.att-client-detail-panel {
    padding: 25px;
}

.att-client-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.att-client-profile-main {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.att-client-profile-avatar {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    background: var(--att-red);
    font-size: 30px;
}

.att-client-profile-main > div:last-child > span {
    color: var(--att-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.att-client-profile-main h2 {
    margin: 3px 0 2px;
    font-family: var(--att-font-display);
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
}

.att-client-profile-main p {
    margin: 0;
    color: var(--att-muted);
    font-size: 10px;
}

.att-client-profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.att-client-profile-actions a {
    min-height: 35px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(58,33,26,.12);
    border-radius: 999px;
    background: var(--att-ivory);
    color: var(--att-earth);
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}

.att-client-profile-actions a:hover {
    border-color: var(--att-red);
    color: var(--att-red);
}

.att-client-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.att-client-stats > div {
    padding: 14px;
    border-radius: 13px;
    background: var(--att-ivory);
}

.att-client-stats span,
.att-client-stats strong {
    display: block;
}

.att-client-stats span {
    color: var(--att-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.att-client-stats strong {
    margin-top: 6px;
    font-family: var(--att-font-display);
    font-size: 30px;
    font-weight: 400;
}

.att-client-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 24px;
}

.att-client-info-grid article {
    min-height: 100px;
    padding: 15px;
    border: 1px solid rgba(58,33,26,.08);
    border-radius: 13px;
}

.att-client-info-grid span {
    display: block;
    margin-bottom: 7px;
    color: var(--att-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.att-client-info-grid p {
    margin: 0;
    color: var(--att-earth);
    font-size: 11px;
    line-height: 1.6;
}

.att-client-timeline {
    padding-top: 20px;
    border-top: 1px solid rgba(58,33,26,.09);
}

.att-client-timeline h3 {
    margin: 0;
    font-family: var(--att-font-display);
    font-size: 28px;
    font-weight: 400;
}

.att-client-timeline-list {
    position: relative;
    display: grid;
    gap: 2px;
    margin-top: 16px;
    padding-left: 20px;
}

.att-client-timeline-list::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(58,33,26,.12);
}

.att-client-timeline-item {
    position: relative;
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 10px 0 12px 10px;
}

.att-client-timeline-dot {
    position: absolute;
    left: -19px;
    top: 18px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--att-ivory);
    border-radius: 50%;
    background: var(--att-red);
    box-shadow: 0 0 0 1px rgba(58,33,26,.12);
}

.att-client-timeline-item.type-appointment .att-client-timeline-dot {
    background: var(--att-gold);
}

.att-client-timeline-item.type-contact .att-client-timeline-dot {
    background: var(--att-leaf);
}

.att-client-timeline-item img {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
}

.att-client-timeline-item > div:last-child > span {
    color: var(--att-muted);
    font-size: 8px;
    font-weight: 700;
}

.att-client-timeline-item h4 {
    margin: 3px 0;
    font-size: 12px;
}

.att-client-timeline-item p {
    margin: 0;
    max-width: 700px;
    color: var(--att-muted);
    font-size: 10px;
    line-height: 1.55;
}

.att-client-detail-empty {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.att-client-empty-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(58,33,26,.12);
    border-radius: 50%;
    color: var(--att-red);
    font-size: 34px;
}

.att-client-detail-empty h2 {
    margin: 14px 0 5px;
    font-family: var(--att-font-display);
    font-size: 34px;
    font-weight: 400;
}

.att-client-detail-empty p {
    max-width: 360px;
    margin: 0;
    color: var(--att-muted);
    font-size: 11px;
    line-height: 1.6;
}

.att-client-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
}

.att-client-checkbox input {
    width: 17px !important;
    height: 17px !important;
    min-height: 0 !important;
    margin-top: 2px;
    accent-color: var(--att-red);
}

.att-client-checkbox span {
    margin: 0 !important;
    color: var(--att-muted) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.5;
}

.att-client-form-panel {
    width: min(760px,100%);
}

@media (max-width: 1150px) {
    .att-clients-layout {
        grid-template-columns: 320px 1fr;
    }

    .att-client-profile-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .att-client-profile-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .att-clients-layout {
        grid-template-columns: 1fr;
    }

    .att-clients-list-panel {
        min-height: auto;
    }

    .att-client-detail-panel {
        min-height: 500px;
    }
}

@media (max-width: 620px) {
    .att-client-stats,
    .att-client-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .att-client-profile-main {
        align-items: flex-start;
    }

    .att-client-profile-avatar {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .att-client-profile-main h2 {
        font-size: 29px;
    }
}


/* Financeiro v0.10.0 */
.att-dashboard-finance {
    margin: -2px 0 20px;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 16px;
    background: var(--att-earth);
    color: var(--att-ivory);
}

.att-dashboard-finance > div span,
.att-dashboard-finance > div strong {
    display: block;
}

.att-dashboard-finance > div span {
    margin-bottom: 4px;
    color: rgba(255,249,239,.48);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.att-dashboard-finance > div strong {
    font-family: var(--att-font-display);
    font-size: 24px;
    font-weight: 400;
}

.att-dashboard-finance > a {
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: var(--att-ivory);
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}

.att-finance-toolbar {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.att-finance-toolbar .att-calendar-nav strong {
    min-width: 150px;
    text-align: center;
    font-family: var(--att-font-display);
    font-size: 19px;
    font-weight: 400;
}

.att-finance-toolbar > a {
    color: var(--att-red);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.att-finance-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.att-finance-summary article {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    padding: 18px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.66);
}

.att-finance-summary article::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--att-gold);
}

.att-finance-summary article.is-income::after,
.att-finance-summary article.is-balance::after {
    background: var(--att-leaf);
}

.att-finance-summary article.is-expense::after {
    background: var(--att-red);
}

.att-finance-summary span,
.att-finance-summary strong,
.att-finance-summary small {
    display: block;
}

.att-finance-summary span {
    color: var(--att-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.att-finance-summary strong {
    margin: 11px 0 8px;
    font-family: var(--att-font-display);
    font-size: clamp(25px,3vw,36px);
    font-weight: 400;
    line-height: .95;
}

.att-finance-summary small {
    color: var(--att-muted);
    font-size: 9px;
}

.att-finance-layout {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 18px;
    align-items: start;
}

.att-finance-transactions,
.att-finance-balances {
    min-height: 480px;
    padding: 22px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.68);
}

.att-finance-transactions > header,
.att-finance-balances > header {
    margin-bottom: 16px;
}

.att-finance-transactions h2,
.att-finance-balances h2 {
    margin: 0;
    font-family: var(--att-font-display);
    font-size: 29px;
    font-weight: 400;
}

.att-finance-list {
    display: grid;
    gap: 7px;
}

.att-finance-item {
    min-height: 66px;
    display: grid;
    grid-template-columns: 38px 1fr auto auto;
    gap: 11px;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: var(--att-ivory);
    color: var(--att-earth);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.att-finance-item:hover {
    border-color: rgba(58,33,26,.12);
    transform: translateY(-1px);
}

.att-finance-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(102,112,68,.11);
    color: var(--att-leaf);
    font-size: 15px;
    font-weight: 800;
}

.att-finance-item.type-despesa .att-finance-icon {
    background: rgba(217,154,43,.12);
    color: var(--att-red);
}

.att-finance-item > div:nth-child(2) strong,
.att-finance-item > div:nth-child(2) span {
    display: block;
}

.att-finance-item > div:nth-child(2) strong {
    font-size: 11px;
}

.att-finance-item > div:nth-child(2) span {
    margin-top: 4px;
    color: var(--att-muted);
    font-size: 8px;
}

.att-finance-item em {
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(102,112,68,.10);
    color: var(--att-leaf);
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
}

.att-finance-item.status-pendente em {
    background: rgba(217,154,43,.12);
    color: #95691d;
}

.att-finance-item.status-cancelado {
    opacity: .48;
}

.att-finance-item > b {
    min-width: 110px;
    text-align: right;
    color: var(--att-leaf);
    font-family: var(--att-font-display);
    font-size: 17px;
    font-weight: 400;
}

.att-finance-item.type-despesa > b {
    color: var(--att-red);
}

.att-balance-list {
    display: grid;
    gap: 8px;
}

.att-balance-item {
    padding: 13px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    border-radius: 13px;
    background: var(--att-ivory);
}

.att-balance-item > div:first-child strong,
.att-balance-item > div:first-child span {
    display: block;
}

.att-balance-item > div:first-child strong {
    font-size: 11px;
}

.att-balance-item > div:first-child span {
    margin-top: 3px;
    color: var(--att-muted);
    font-size: 8px;
}

.att-balance-item > div:nth-child(2) {
    text-align: right;
}

.att-balance-item > div:nth-child(2) span,
.att-balance-item > div:nth-child(2) strong {
    display: block;
}

.att-balance-item > div:nth-child(2) span {
    color: var(--att-muted);
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
}

.att-balance-item > div:nth-child(2) strong {
    margin-top: 3px;
    font-family: var(--att-font-display);
    font-size: 17px;
    font-weight: 400;
}

.att-balance-item > a {
    grid-column: 1 / -1;
    justify-self: start;
    color: var(--att-red);
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
}

.att-appointment-finance-box {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3,1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 13px;
    background: var(--att-sand);
}

.att-appointment-finance-box > div span,
.att-appointment-finance-box > div strong {
    display: block;
}

.att-appointment-finance-box > div span {
    color: var(--att-muted);
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
}

.att-appointment-finance-box > div strong {
    margin-top: 3px;
    font-family: var(--att-font-display);
    font-size: 17px;
    font-weight: 400;
}

.att-appointment-finance-box > a {
    color: var(--att-red);
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
}

.att-client-finance-strip {
    margin: -8px 0 18px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: center;
    border-radius: 13px;
    background: var(--att-earth);
    color: var(--att-ivory);
}

.att-client-finance-strip span,
.att-client-finance-strip strong {
    display: block;
}

.att-client-finance-strip span {
    color: rgba(255,249,239,.48);
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
}

.att-client-finance-strip strong {
    margin-top: 3px;
    font-family: var(--att-font-display);
    font-size: 18px;
    font-weight: 400;
}

.att-client-finance-strip a {
    color: var(--att-ivory);
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
}

.att-finance-form-panel {
    width: min(760px,100%);
}

@media (max-width: 1100px) {
    .att-finance-layout {
        grid-template-columns: 1fr;
    }

    .att-finance-summary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .att-dashboard-finance {
        grid-template-columns: 1fr 1fr;
    }

    .att-finance-item {
        grid-template-columns: 38px 1fr auto;
    }

    .att-finance-item > em {
        grid-column: 2;
        justify-self: start;
    }

    .att-finance-item > b {
        grid-column: 3;
        grid-row: 1 / span 2;
        min-width: 92px;
    }

    .att-appointment-finance-box {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .att-appointment-finance-box > a {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .att-finance-summary,
    .att-dashboard-finance,
    .att-client-finance-strip {
        grid-template-columns: 1fr;
    }

    .att-finance-item {
        grid-template-columns: 36px 1fr;
    }

    .att-finance-item > b,
    .att-finance-item > em {
        grid-column: 2;
        grid-row: auto;
        justify-self: start;
        text-align: left;
    }
}


/* Relatórios e lembretes v0.11.0 */
.att-dashboard-reminders {
    margin: 0 0 14px;
    padding: 14px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(217,154,43,.24);
    border-radius: 15px;
    background: rgba(217,154,43,.09);
}

.att-dashboard-reminders strong,
.att-dashboard-reminders small {
    display: block;
}

.att-dashboard-reminders strong {
    color: var(--att-earth);
    font-size: 12px;
}

.att-dashboard-reminders small {
    margin-top: 3px;
    color: var(--att-muted);
    font-size: 9px;
}

.att-dashboard-reminders > a {
    flex: 0 0 auto;
    color: var(--att-red);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.att-report-filter {
    margin-bottom: 16px;
    padding: 13px 15px;
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.60);
}

.att-report-filter label span {
    display: block;
    margin-bottom: 5px;
    color: var(--att-muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.att-report-filter input {
    min-height: 38px;
    border: 1px solid rgba(58,33,26,.13);
    border-radius: 9px;
    background: var(--att-ivory);
    padding: 7px 10px;
    color: var(--att-earth);
}

.att-report-filter > button {
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: var(--att-earth);
    color: var(--att-ivory);
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.att-report-presets {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.att-report-presets a {
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 999px;
    color: var(--att-earth);
    text-decoration: none;
    font-size: 8px;
    font-weight: 800;
}

.att-report-kpis {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.att-report-kpis article {
    min-height: 126px;
    padding: 17px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.68);
}

.att-report-kpis span,
.att-report-kpis strong,
.att-report-kpis small {
    display: block;
}

.att-report-kpis span {
    color: var(--att-muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.att-report-kpis strong {
    margin: 10px 0 7px;
    font-family: var(--att-font-display);
    font-size: clamp(30px,3vw,42px);
    font-weight: 400;
    line-height: .9;
}

.att-report-kpis small {
    color: var(--att-muted);
    font-size: 8px;
    line-height: 1.45;
}

.att-report-layout {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 18px;
    align-items: start;
}

.att-report-panel {
    min-height: 520px;
    padding: 22px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.68);
}

.att-report-panel > header {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.att-report-panel h2 {
    margin: 0;
    font-family: var(--att-font-display);
    font-size: 30px;
    font-weight: 400;
}

.att-report-panel > header > small {
    color: var(--att-muted);
    font-size: 8px;
}

.att-report-metrics {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
}

.att-report-metrics > div {
    padding: 13px;
    border-radius: 12px;
    background: var(--att-ivory);
}

.att-report-metrics span,
.att-report-metrics strong {
    display: block;
}

.att-report-metrics span {
    color: var(--att-muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.att-report-metrics strong {
    margin-top: 5px;
    font-family: var(--att-font-display);
    font-size: 24px;
    font-weight: 400;
}

.att-report-types {
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid rgba(58,33,26,.08);
}

.att-report-type-row {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 120px 1fr 28px;
    gap: 10px;
    align-items: center;
}

.att-report-type-row > span {
    color: var(--att-earth);
    font-size: 9px;
}

.att-report-type-row > div {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(58,33,26,.08);
}

.att-report-type-row > div i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,var(--att-red),var(--att-gold));
}

.att-report-type-row > strong {
    text-align: right;
    font-size: 9px;
}

.att-reminder-list {
    display: grid;
    gap: 8px;
}

.att-reminder-item {
    min-height: 82px;
    display: grid;
    grid-template-columns: 8px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 13px;
    background: var(--att-ivory);
}

.att-reminder-item > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--att-leaf);
}

.att-reminder-item.priority-medium > i {
    background: var(--att-gold);
}

.att-reminder-item.priority-high > i {
    background: var(--att-red);
    box-shadow: 0 0 0 5px rgba(217,154,43,.10);
}

.att-reminder-item > div > span,
.att-reminder-item > div > strong,
.att-reminder-item > div > p {
    display: block;
}

.att-reminder-item > div > span {
    margin-bottom: 3px;
    color: var(--att-muted);
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.att-reminder-item > div > strong {
    font-size: 11px;
}

.att-reminder-item > div > p {
    margin: 4px 0 0;
    color: var(--att-muted);
    font-size: 9px;
    line-height: 1.45;
}

.att-reminder-item > a {
    color: var(--att-red);
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .att-report-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .att-report-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .att-report-presets {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 540px) {
    .att-report-kpis,
    .att-report-metrics {
        grid-template-columns: 1fr;
    }

    .att-dashboard-reminders {
        align-items: flex-start;
        flex-direction: column;
    }

    .att-reminder-item {
        grid-template-columns: 8px 1fr;
    }

    .att-reminder-item > a {
        grid-column: 2;
        justify-self: start;
    }
}


/* Configurações e automações v0.12.0 */
.att-settings-form {
    display: grid;
    gap: 18px;
}

.att-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.att-settings-panel {
    padding: 22px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.68);
}

.att-settings-panel-wide {
    grid-column: 1 / -1;
}

.att-settings-panel > header {
    margin-bottom: 18px;
}

.att-settings-panel h2 {
    margin: 0;
    font-family: var(--att-font-display);
    font-size: 30px;
    font-weight: 400;
}

.att-settings-panel > header p {
    margin: 5px 0 0;
    color: var(--att-muted);
    font-size: 10px;
    line-height: 1.55;
}

.att-settings-fields,
.att-settings-messages {
    display: grid;
    gap: 13px;
}

.att-settings-fields label > span,
.att-settings-messages label > span,
.att-settings-thresholds label > span {
    display: block;
    margin-bottom: 6px;
    color: var(--att-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.att-settings-fields input,
.att-settings-fields select,
.att-settings-messages textarea,
.att-settings-thresholds input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(58,33,26,.13);
    border-radius: 11px;
    background: var(--att-ivory);
    padding: 10px 12px;
    color: var(--att-earth);
    box-shadow: none;
    outline: none;
}

.att-settings-messages textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.55;
}

.att-settings-fields input:focus,
.att-settings-fields select:focus,
.att-settings-messages textarea:focus,
.att-settings-thresholds input:focus {
    border-color: var(--att-gold);
    box-shadow: 0 0 0 3px rgba(217,154,43,.11);
}

.att-automation-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.att-automation-card {
    position: relative;
    min-height: 108px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 14px;
    background: var(--att-ivory);
    cursor: pointer;
}

.att-automation-card > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.att-automation-card > i {
    position: relative;
    width: 38px;
    height: 22px;
    margin-top: 2px;
    border-radius: 999px;
    background: rgba(58,33,26,.16);
    transition: background .2s ease;
}

.att-automation-card > i::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transition: transform .2s ease;
}

.att-automation-card > input:checked + i {
    background: var(--att-leaf);
}

.att-automation-card > input:checked + i::after {
    transform: translateX(16px);
}

.att-automation-card strong,
.att-automation-card span {
    display: block;
}

.att-automation-card strong {
    font-size: 11px;
    line-height: 1.35;
}

.att-automation-card span {
    margin-top: 5px;
    color: var(--att-muted);
    font-size: 9px;
    line-height: 1.5;
}

.att-settings-thresholds {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

.att-settings-thresholds label {
    padding: 13px;
    border-radius: 13px;
    background: rgba(243,231,211,.55);
}

.att-settings-thresholds label > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    align-items: center;
}

.att-settings-thresholds input {
    min-height: 39px;
    background: white;
}

.att-settings-thresholds small {
    color: var(--att-muted);
    font-size: 8px;
}

.att-message-variables {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.att-message-variables strong {
    margin-right: 4px;
    font-size: 9px;
}

.att-message-variables span {
    padding: 5px 7px;
    border-radius: 999px;
    background: var(--att-sand);
    color: var(--att-red);
    font-family: monospace;
    font-size: 8px;
}

.att-settings-messages label > small {
    display: block;
    margin-top: 5px;
    color: var(--att-muted);
    font-size: 8px;
    line-height: 1.45;
}

.att-settings-savebar {
    position: sticky;
    z-index: 10;
    bottom: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(58,33,26,.12);
    border-radius: 15px;
    background: rgba(255,249,239,.94);
    box-shadow: 0 14px 45px rgba(58,33,26,.12);
    backdrop-filter: blur(16px);
}

.att-settings-savebar strong,
.att-settings-savebar span {
    display: block;
}

.att-settings-savebar strong {
    font-size: 10px;
}

.att-settings-savebar span {
    margin-top: 3px;
    color: var(--att-muted);
    font-size: 8px;
}

@media (max-width: 950px) {
    .att-settings-grid {
        grid-template-columns: 1fr;
    }

    .att-settings-panel-wide {
        grid-column: auto;
    }

    .att-settings-thresholds {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .att-automation-list,
    .att-settings-thresholds {
        grid-template-columns: 1fr;
    }

    .att-settings-savebar {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Lançamento v1.0.0 */
.att-launch-mini {
    margin: 0 10px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,249,239,.48);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.att-launch-mini i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--att-gold);
}

.att-launch-mini.is-live i {
    background: #8BAA5B;
    box-shadow: 0 0 0 4px rgba(139,170,91,.10);
}

.att-launch-mini.is-live {
    color: rgba(255,249,239,.72);
}

.att-launch-head-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.att-launch-secondary {
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(58,33,26,.14);
    border-radius: 999px;
    background: var(--att-ivory);
    color: var(--att-earth);
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}

.att-launch-status {
    margin-bottom: 18px;
    min-height: 150px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    border: 1px solid rgba(217,154,43,.24);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 10%, rgba(217,154,43,.12), transparent 34%),
        rgba(255,255,255,.68);
}

.att-launch-status.is-live {
    border-color: rgba(102,112,68,.24);
    background:
        radial-gradient(circle at 90% 10%, rgba(102,112,68,.12), transparent 34%),
        rgba(255,255,255,.68);
}

.att-launch-orbit {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid rgba(217,154,43,.38);
    border-radius: 50%;
    position: relative;
}

.att-launch-orbit::before,
.att-launch-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(217,154,43,.13);
    border-radius: 50%;
}

.att-launch-orbit::before {
    inset: -8px;
}

.att-launch-orbit::after {
    inset: 8px;
}

.att-launch-status.is-live .att-launch-orbit,
.att-launch-status.is-live .att-launch-orbit::before,
.att-launch-status.is-live .att-launch-orbit::after {
    border-color: rgba(102,112,68,.32);
}

.att-launch-orbit span,
.att-launch-orbit small {
    position: relative;
    z-index: 2;
    display: block;
}

.att-launch-orbit span {
    font-family: var(--att-font-display);
    font-size: 33px;
    line-height: .8;
}

.att-launch-orbit small {
    margin-top: 5px;
    color: var(--att-muted);
    font-size: 8px;
}

.att-launch-status h2 {
    margin: 0;
    font-family: var(--att-font-display);
    font-size: 34px;
    font-weight: 400;
}

.att-launch-status p {
    margin: 6px 0 0;
    color: var(--att-muted);
    font-size: 10px;
}

.att-launch-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    align-items: start;
}

.att-launch-panel {
    min-height: 540px;
    padding: 22px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.68);
}

.att-launch-panel > header {
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.att-launch-panel h2,
.att-launch-log h2 {
    margin: 0;
    font-family: var(--att-font-display);
    font-size: 30px;
    font-weight: 400;
}

.att-launch-panel > header > small {
    color: var(--att-muted);
    font-size: 8px;
}

.att-launch-checks {
    display: grid;
    gap: 7px;
}

.att-launch-check {
    min-height: 58px;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: center;
    border-radius: 12px;
    background: var(--att-ivory);
}

.att-launch-check > i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(102,112,68,.11);
    color: var(--att-leaf);
    font-style: normal;
    font-weight: 900;
}

.att-launch-check.is-fail > i {
    background: rgba(217,154,43,.12);
    color: #95691d;
}

.att-launch-check.is-fail.level-critical > i {
    background: rgba(217,154,43,.14);
    color: var(--att-red);
}

.att-launch-check strong,
.att-launch-check span {
    display: block;
}

.att-launch-check strong {
    font-size: 10px;
}

.att-launch-check span {
    margin-top: 3px;
    color: var(--att-muted);
    font-size: 8px;
    line-height: 1.4;
}

.att-launch-actions {
    display: grid;
    gap: 8px;
}

.att-launch-actions article {
    min-height: 94px;
    padding: 12px;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: start;
    border-radius: 13px;
    background: var(--att-ivory);
}

.att-launch-actions article > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--att-sand);
    color: var(--att-red);
    font-family: var(--att-font-display);
    font-size: 15px;
}

.att-launch-actions strong,
.att-launch-actions p {
    display: block;
}

.att-launch-actions strong {
    font-size: 10px;
}

.att-launch-actions p {
    margin: 4px 0 0;
    color: var(--att-muted);
    font-size: 8px;
    line-height: 1.5;
}

.att-launch-actions a,
.att-launch-actions em {
    align-self: center;
    color: var(--att-red);
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.att-launch-actions em {
    color: var(--att-leaf);
}

.att-go-live-form {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(58,33,26,.15);
    border-radius: 14px;
    background: rgba(217,154,43,.07);
}

.att-go-live-form label > span {
    display: block;
    margin-bottom: 6px;
    color: var(--att-muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.att-go-live-form input {
    width: 100%;
    min-height: 44px;
    margin-bottom: 10px;
    border: 1px solid rgba(58,33,26,.14);
    border-radius: 10px;
    background: white;
    padding: 9px 11px;
    color: var(--att-earth);
    outline: none;
}

.att-go-live-form input:focus {
    border-color: var(--att-gold);
    box-shadow: 0 0 0 3px rgba(217,154,43,.11);
}

.att-go-live-form .att-system-primary:disabled {
    cursor: not-allowed;
    opacity: .42;
    transform: none;
}

.att-go-live-form > small {
    display: block;
    margin-top: 7px;
    color: var(--att-muted);
    font-size: 8px;
}

.att-launch-log {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.68);
}

.att-launch-log > header {
    margin-bottom: 14px;
}

.att-launch-log > div {
    display: grid;
    gap: 5px;
}

.att-launch-log article {
    padding: 9px 0;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    border-top: 1px solid rgba(58,33,26,.08);
}

.att-launch-log article span {
    color: var(--att-muted);
    font-size: 8px;
}

.att-launch-log article strong {
    font-size: 9px;
}

@media (max-width: 1000px) {
    .att-launch-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .att-launch-head-actions,
    .att-launch-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .att-launch-actions article {
        grid-template-columns: 34px 1fr;
    }

    .att-launch-actions a,
    .att-launch-actions em {
        grid-column: 2;
        justify-self: start;
    }

    .att-launch-log article {
        grid-template-columns: 1fr;
    }
}
