/* v0.2.0.18 — tema noturno automático para Tatuagem e Piercing.
   Escopo é exclusivamente body[data-segment-theme="ink"] (cadastro, estúdio e painel).
   Não altera a identidade rosé dos demais estabelecimentos. */
body[data-segment-theme="ink"]{
 --ink:#f0f1f3;--muted:#abb0ba;--rose:#c7ced7;--deep:#e9edf3;
 --blush:#30343d;--peach:#1b1e24;--paper:#111316;--line:#383d47;
 --shadow:0 20px 55px rgba(0,0,0,.30);
 background:var(--paper);color:var(--ink);color-scheme:dark;
}
body[data-segment-theme="ink"] :is(.site-header,.footer){background:#15171c;border-color:#353943}
body[data-segment-theme="ink"] :is(.brand,.nav-text,.footer-inner,.footer .brand){color:#f2f3f5}
body[data-segment-theme="ink"] .brand small{color:#9da3ae}
body[data-segment-theme="ink"] .brand-symbol{background:#343941;color:#f2f3f5}
body[data-segment-theme="ink"] .eyebrow{color:#cbd1dc}
body[data-segment-theme="ink"] :is(h1,h2,h3,strong){color:#f0f1f3}
body[data-segment-theme="ink"] :is(p,.muted-paragraph,.small-muted,small){color:#adb2bc}
body[data-segment-theme="ink"] .pill{background:#e1e5eb;color:#191b20;box-shadow:0 12px 28px rgba(0,0,0,.23)}
body[data-segment-theme="ink"] .pill:hover{background:#fff;color:#101216}
body[data-segment-theme="ink"] :is(.button-outline,.pill.secondary,.service-ghost){background:#292d34;border-color:#454b55;color:#eceff3}
body[data-segment-theme="ink"] :is(.card,.auth-layout,.auth,.workspace-sidebar,.service-panel,.agenda-visual,.agenda-modal,.service-dialog,.prof-dialog,.booking-panel,.booking-result,.setup-card,.tenant-profile,.confirm-drawer,.confirmation-drawer,.booking-notification-panel){background:#1e2127;color:#e9eaf0;border-color:#3d424b;box-shadow:0 18px 40px rgba(0,0,0,.13)}
body[data-segment-theme="ink"] :is(input,select,textarea){background:#252a31!important;border-color:#4b515b!important;color:#f5f6f7!important;accent-color:#aab4c3}
body[data-segment-theme="ink"] :is(input,select,textarea)::placeholder{color:#a6acb8}
body[data-segment-theme="ink"] :is(label,.service-form label,.setup-professional-form>label){color:#c6cbd4}
body[data-segment-theme="ink"] :is(.auth-layout,.register-layout){background:#1d2026}
body[data-segment-theme="ink"] .auth-aside{background:linear-gradient(155deg,#191d23,#343a44)}
body[data-segment-theme="ink"] .auth-aside :is(h2,h2 em,p,.eyebrow){color:#f0f1f3}
body[data-segment-theme="ink"] .auth-aside .auth-checks span{color:#d5d9e0}
body[data-segment-theme="ink"] .aside-flower{color:#69717d;opacity:.22}
body[data-segment-theme="ink"] .auth h1{color:#f3f4f7}
body[data-segment-theme="ink"] .auth h1 em{color:#d8dde5}
body[data-segment-theme="ink"] .auth p{color:#bfc3cb}
body[data-segment-theme="ink"] :is(.workspace-identity,.sidebar-tip,.workspace-more-panel,.booking-notification-action,.wa-log-card,.wa-log,.setup-info,.setup-wa,.setup-later,.setup-service,.booking-choice,.booking-summary,.booking-result-summary,.booking-slot,.agenda-item,.prof-item,.service-item,.service-stat,.dash-metric,.dash-panel,.dash-upcoming,.confirm-booking-card,.confirm-drawer-reopen){background:#292d34;border-color:#454b54;color:#edf0f4}
body[data-segment-theme="ink"] .workspace-identity :is(strong,small){color:#f0f2f6}
body[data-segment-theme="ink"] :is(.sidebar-link,.workspace-bottom-nav a,.workspace-more-toggle){color:#c7cad1}
body[data-segment-theme="ink"] :is(.sidebar-link.active,.workspace-sidebar .sidebar-link.active,.workspace-bottom-nav a.active,.workspace-bottom-nav .workspace-more-toggle.active){background:#444a54;color:#fff}
body[data-segment-theme="ink"] :is(.sidebar-link:hover,.workspace-sidebar .sidebar-link:hover){background:#343943;color:#fff}
body[data-segment-theme="ink"] .sidebar-section-label{color:#aeb5c0}
body[data-segment-theme="ink"] .workspace-bottom-nav{background:#1d2026;border-color:#3b424d}
body[data-segment-theme="ink"] .workspace-more-panel{background:#242831;border-color:#505763}
body[data-segment-theme="ink"] .workspace-more-panel a{color:#f1f2f5!important}
body[data-segment-theme="ink"] .workspace-more-title{color:#d4d8df}
body[data-segment-theme="ink"] :is(.setup-trial,.setup-head-icon,.setup-progress li span,.setup-service-choice small,.setup-service-fields input,.setup-service-fields label){color:#c8cdd5}
body[data-segment-theme="ink"] .setup-trial{background:#333840}
body[data-segment-theme="ink"] .setup-progress li{background:#22262d;border-color:#424854;color:#d6dae2}
body[data-segment-theme="ink"] .setup-progress li span{background:#424853;color:#fff}
body[data-segment-theme="ink"] .setup-progress li.is-current{background:#313640;border-color:#bec6d1}
body[data-segment-theme="ink"] .setup-progress li.is-current span{background:#d7dce4;color:#17191d}
body[data-segment-theme="ink"] .setup-heading h1 span{color:#d5dce5}
body[data-segment-theme="ink"] :is(.setup-service.is-selected,.setup-service.is-selected .setup-service-fields,.booking-choice.is-selected){background:#353b45;border-color:#c4cbd6}
body[data-segment-theme="ink"] :is(.setup-service-footer,.setup-category,.service-item,.agenda-item){border-color:#414751}
body[data-segment-theme="ink"] .setup-service-choice strong{color:#f1f3f7}
body[data-segment-theme="ink"] .setup-info strong{color:#edf0f6}
body[data-segment-theme="ink"] .setup-head-icon{background:#383d45}
body[data-segment-theme="ink"] .tenant-profile{background:linear-gradient(155deg,#22262d,#17191d)}
body[data-segment-theme="ink"] .tenant-profile .tenant-niche,body[data-segment-theme="ink"] .tenant-profile .tenant-flower{color:#cbd2dc}
body[data-segment-theme="ink"] .tenant-rule{background:#414750}
body[data-segment-theme="ink"] .agenda-toolbar,body[data-segment-theme="ink"] .agenda-nav,body[data-segment-theme="ink"] .agenda-view-switch{background:#22262d;border-color:#404650}
body[data-segment-theme="ink"] :is(.agenda-calendar,.agenda-time-axis,.agenda-hour-label,.agenda-lane-heading,.agenda-lane-body,.agenda-drop-slot,.agenda-calendar>.agenda-time-axis){background:#262a31!important;border-color:#444a54!important;color:#d9dee6}
body[data-segment-theme="ink"] .agenda-calendar .agenda-drop-slot:nth-of-type(even){background:#2b3038!important}
body[data-segment-theme="ink"] .agenda-event{color:#232830}
body[data-segment-theme="ink"] .agenda-event :is(strong,small){color:inherit}
body[data-segment-theme="ink"] .agenda-lane-closed .agenda-lane-body{background:repeating-linear-gradient(135deg,#252930 0,#252930 15px,#30353d 15px,#30353d 16px)!important}
body[data-segment-theme="ink"] .agenda-lane-closed .agenda-lane-heading{background:#30353d!important;color:#d7dbe1}
body[data-segment-theme="ink"] :is(.agenda-calendar-scroll,.agenda-scrollbar-horizontal,.agenda-scrollbar-vertical){scrollbar-color:#747d89 #30353d}
body[data-segment-theme="ink"] :is(.success,.alert){background:#2b3438;border-color:#56636a;color:#dcebe8}
body[data-segment-theme="ink"] .booking-notification-bell{background:#3b414c;color:#f4f4f5}
body[data-segment-theme="ink"] .booking-notification-badge{background:#b44d58;color:#fff}
body[data-segment-theme="ink"] :is(dialog,.agenda-modal,.prof-dialog,.service-dialog){color-scheme:dark}
body[data-segment-theme="ink"] :is(.agenda-modal-top,.service-dialog-head,.prof-dialog-head){border-color:#444b55}
body[data-segment-theme="ink"] .agenda-date-closed-warning{color:#f1adb7}
body[data-segment-theme="ink"] :is(.agenda-event-popover,.agenda-list-panel,.agenda-editor){background:#22262e;color:#e9ecf0;border-color:#414650}
/* Regra antiga da v0.1.7.5.1 definia fundo branco obrigatório no dialog. */
body[data-segment-theme="ink"] dialog#agenda-new-dialog,body[data-segment-theme="ink"] dialog#agenda-program-dialog{background:#1e2127;border-color:#494f59}
body[data-segment-theme="ink"] dialog#agenda-new-dialog>.agenda-editor,body[data-segment-theme="ink"] dialog#agenda-program-dialog>.agenda-list-panel{background:transparent!important}
body[data-segment-theme="ink"] .agenda-custom-duration small{display:block;color:#b4bac3;font-weight:400;line-height:1.45}
body[data-segment-theme="ink"] :focus-visible{outline-color:#ccd3db}
@media(max-width:760px){body[data-segment-theme="ink"] .workspace-more-panel{background:#292e36}}

/* Menus, cartões e tabelas devem manter contraste no painel do estúdio. */
body[data-segment-theme="ink"] :is(.sidebar-tip,.service-suggest,.service-cat,.prof-hours,.prof-day,.dash-rank-row,.dash-upcoming-time,.hours-table,.wa-history,.wa-connection-card,.wa-qr-frame,.booking-notification-empty){background:#292e35;border-color:#454b56;color:#eceff5}
body[data-segment-theme="ink"] :is(.service-stat strong,.dash-metric strong,.agenda-item h3,.prof-item h3,.service-item h3,.service-meta strong){color:#f0f2f6}
body[data-segment-theme="ink"] :is(.agenda-status,.tag,.service-pill,.status-label){background:#393f49;border-color:#555c68;color:#e3e7ee}
body[data-segment-theme="ink"] :is(.service-dialog-close,.prof-dialog-close,.agenda-modal-close,.confirmation-drawer-close){background:#343944;color:#e9edf4;border-color:#515864}
body[data-segment-theme="ink"] :is(.setup-card-head p,.setup-service-footer small,.service-empty p,.agenda-visual-head p,.agenda-meta,.agenda-nav strong){color:#adb5c0}
body[data-segment-theme="ink"] .agenda-scrollbar-vertical,body[data-segment-theme="ink"] .agenda-scrollbar-horizontal{background:#303640;border-color:#454c59}
body[data-segment-theme="ink"] .agenda-scrollbar-thumb{background:#818b9b}
body[data-segment-theme="ink"] .agenda-custom-duration{display:grid;gap:8px}


/* v0.2.0.19 — contraste consistente em superfícies do tema grafite.
   QR permanece em fundo branco, mas instruções/status ficam em painéis escuros.
   Exclusivo para Tatuagem/Piercing; não afeta os sete nichos rosé. */
body[data-segment-theme="ink"] .service-workspace .service-toolbar{
 background:#252a31;border:1px solid #4c535f;color:#f1f3f7;
 box-shadow:0 10px 30px rgba(0,0,0,.12);
}
body[data-segment-theme="ink"] .service-workspace .service-toolbar h2{color:#f3f5f8}
body[data-segment-theme="ink"] .service-workspace .service-toolbar .eyebrow{color:#c9d2de}
body[data-segment-theme="ink"] .service-workspace .service-toolbar .muted-paragraph{color:#bdc6d2}
body[data-segment-theme="ink"] .service-workspace .service-toolbar .service-ghost{
 background:#333944!important;border-color:#606a78!important;color:#f3f5f8!important;box-shadow:none!important;
}
body[data-segment-theme="ink"] .service-workspace .service-toolbar .service-ghost:hover{
 background:#414956!important;color:#fff!important;
}
body[data-segment-theme="ink"] .service-stat span,
body[data-segment-theme="ink"] .service-summary .service-stat span,
body[data-segment-theme="ink"] .dash-metric-top,
body[data-segment-theme="ink"] .dash-upcoming-info small{color:#c0c9d5}
body[data-segment-theme="ink"] .service-stat strong,
body[data-segment-theme="ink"] .dash-metric>strong{color:#f8f9fb}
body[data-segment-theme="ink"] .dash-metric-top b{
 background:#424a56;color:#f3f5f8;box-shadow:none;
}
body[data-segment-theme="ink"] .dash-upcoming-time{background:#383f4a;color:#f2f4f7}
body[data-segment-theme="ink"] .dash-upcoming-status{background:#3c4550;color:#dce5f0}
body[data-segment-theme="ink"] .workspace-main .intro p,
body[data-segment-theme="ink"] .workspace-main .muted-paragraph{color:#bac3cf}

/* A área externa do QR recebe o fundo grafite. Apenas o QR precisa de
   superfície branca para manter a leitura pela câmera do WhatsApp. */
body[data-segment-theme="ink"] .wa-connect-card .wa-qr-area,
body[data-segment-theme="ink"] .setup-wa .wa-qr-area{
 background:#292f38;border:1px solid #505967;color:#f0f3f7;
}
body[data-segment-theme="ink"] .wa-qr-area .wa-qr-frame{
 background:#fff;border:1px solid #ebedf0;box-shadow:0 5px 18px rgba(0,0,0,.15);
}
body[data-segment-theme="ink"] .wa-qr-area>strong{color:#f6f7fa}
body[data-segment-theme="ink"] .wa-qr-area>p{color:#d5dce5}
body[data-segment-theme="ink"] .wa-qr-area>p.small-muted,
body[data-segment-theme="ink"] .wa-qr-area .small-muted{color:#b9c5d2}
body[data-segment-theme="ink"] .wa-state-badge{
 background:#39414e;border:1px solid #586374;color:#edf2f8;
}
body[data-segment-theme="ink"] .wa-state-badge[data-state="connected"]{
 background:#213c33;border-color:#376d55;color:#bff1d0;
}
body[data-segment-theme="ink"] .wa-state-badge[data-state="connecting"],
body[data-segment-theme="ink"] .wa-state-badge[data-state="reconnecting"]{
 background:#473b27;border-color:#826f48;color:#ffe0a0;
}
body[data-segment-theme="ink"] .wa-state-badge .wa-state-dot{background:#c7d2e0}
body[data-segment-theme="ink"] .wa-state-badge[data-state="connected"] .wa-state-dot{background:#75dea4}
body[data-segment-theme="ink"] .wa-state-badge[data-state="connecting"] .wa-state-dot,
body[data-segment-theme="ink"] .wa-state-badge[data-state="reconnecting"] .wa-state-dot{background:#ffd789}
body[data-segment-theme="ink"] .wa-connecting,
body[data-segment-theme="ink"] .wa-connected{
 background:#292f38;border-color:#505967;color:#e9eff5;
}
body[data-segment-theme="ink"] .wa-connecting>strong,
body[data-segment-theme="ink"] .wa-connected>strong{color:#f4f6fa}
body[data-segment-theme="ink"] .wa-connecting p,
body[data-segment-theme="ink"] .wa-connected p{color:#bac6d3}
body[data-segment-theme="ink"] .wa-error{background:#422832;border:1px solid #86525e;color:#ffd5df}
body[data-segment-theme="ink"] .wa-connect-card .small-muted{color:#bec8d4}
body[data-segment-theme="ink"] .wa-connection-head .small-muted{color:#bac5d1}

/* A configuração guiada compartilha o mesmo componente QR. */
body[data-segment-theme="ink"] .setup-wa{background:#232830;border-color:#485260}
body[data-segment-theme="ink"] .setup-wa .wa-qr-area{margin-left:auto;margin-right:auto}
body[data-segment-theme="ink"] .setup-wa .small-muted{color:#bac5d1}

@media(max-width:650px){
 body[data-segment-theme="ink"] .service-workspace .service-toolbar{padding:18px 16px}
 body[data-segment-theme="ink"] .wa-connect-card .wa-qr-area,
 body[data-segment-theme="ink"] .setup-wa .wa-qr-area{padding:16px 12px}
}


/* v0.2.0.20 — logo rosé oficial permanece intacta no tema grafite.
   Uma superfície clara discreta evita que a palavra escura desapareça no fundo. */
body[data-segment-theme="ink"] .brand-official{
 background:#f9f4f2;border:1px solid #e3d4d4;border-radius:12px;
 padding:5px 11px;box-shadow:0 2px 9px rgba(0,0,0,.10);
}
body[data-segment-theme="ink"] .aside-brand-logo{display:inline-block;width:max-content;max-width:100%;padding:7px 13px;border-radius:12px;background:#f9f4f2;}
@media(max-width:420px){body[data-segment-theme="ink"] .site-header .brand-official{padding:4px 7px;}}


/* v0.2.0.22 — navegação de dias no tema Tattoo/Piercing */
body[data-segment-theme="ink"] .agenda-date-nav{background:#1e2127;border-color:#414751;box-shadow:none}
body[data-segment-theme="ink"] .agenda-date-nav-title strong{color:#f0f2f6}
body[data-segment-theme="ink"] .agenda-date-nav-title span{color:#aeb7c3}
body[data-segment-theme="ink"] .agenda-date-today{background:#343a44;border-color:#555e6b;color:#eef1f6}
body[data-segment-theme="ink"] .agenda-date-today:hover{background:#454d59}
body[data-segment-theme="ink"] .agenda-date-nav-arrow{background:#292e35;border-color:#424a54;color:#d4dce7}
body[data-segment-theme="ink"] .agenda-date-nav-arrow:hover{background:#3a424e}
body[data-segment-theme="ink"] .agenda-date-tile{color:#b9c0ca}
body[data-segment-theme="ink"] .agenda-date-tile-number{color:#edf0f4}
body[data-segment-theme="ink"] .agenda-date-tile-caption{color:#b2bac6}
body[data-segment-theme="ink"] .agenda-date-tile:not(.is-closed):hover{background:#323841;border-color:#515a65}
body[data-segment-theme="ink"] .agenda-date-tile.is-today:not(.is-selected){background:#303640;border-color:#4d5662}
body[data-segment-theme="ink"] .agenda-date-tile.is-selected:not(.is-closed){background:#d8dee7;border-color:#d8dee7;color:#191d24;box-shadow:0 7px 20px rgba(0,0,0,.18)}
body[data-segment-theme="ink"] .agenda-date-tile.is-selected:not(.is-closed) :is(.agenda-date-tile-number,.agenda-date-tile-caption){color:#191d24}
body[data-segment-theme="ink"] .agenda-date-tile.is-closed{background:#262a31;border-color:#424750;color:#7d8794;opacity:.9}
body[data-segment-theme="ink"] .agenda-date-tile.is-closed .agenda-date-tile-number{color:#78818d}
body[data-segment-theme="ink"] .agenda-date-tile.is-closed .agenda-date-tile-caption{color:#8c96a3}
body[data-segment-theme="ink"] .agenda-date-nav-bottom,
body[data-segment-theme="ink"] .agenda-date-nav-bottom span:first-child{color:#aeb7c3}
body[data-segment-theme="ink"] .agenda-date-nav a:focus-visible{outline-color:#cbd3de}

/* v0.2.1.0 — contraste das telas de funcionários no tema grafite */
body[data-segment-theme="ink"] :is(.employee-stat,.employee-date-nav,.employee-bookings,.employee-access-card,.employee-access-info){background:#1e2127;border-color:#404650;color:#edf0f3}
body[data-segment-theme="ink"] :is(.employee-view-badge,.employee-today,.employee-booking-time,.employee-booking,.employee-arrow){background:#292d34;border-color:#454b55;color:#eff1f5}
body[data-segment-theme="ink"] .employee-day.today:not(.selected){background:#303640;border-color:#6b7785}
body[data-segment-theme="ink"] .employee-day.selected{background:#d9dfe7;color:#17191d}
body[data-segment-theme="ink"] .employee-day.selected :is(small,strong){color:#17191d}
body[data-segment-theme="ink"] .employee-switch a.active{background:#454c57;color:#fff}
body[data-segment-theme="ink"] .employee-status{background:#373d46;color:#f0f2f6;border-color:#5d6571}
body[data-segment-theme="ink"] .employee-status-confirmed{background:#204b3c;color:#bbebd2}
body[data-segment-theme="ink"] .employee-status-pending{background:#51452d;color:#fbe5b5}
body[data-segment-theme="ink"] .employee-status-in_progress{background:#294461;color:#cee0f3}
body[data-segment-theme="ink"] .employee-head p strong{color:#fff}

/* v0.2.1.1 — contraste dos serviços individuais e acesso */
body[data-segment-theme="ink"] :is(.employee-services-card,.professional-access-dialog){background:#1e2127;color:#edf0f3;border-color:#414752}
body[data-segment-theme="ink"] :is(.employee-service-choice,.employee-menu a){background:#292e35;border-color:#4b525c;color:#e9edf3}
body[data-segment-theme="ink"] :is(.employee-service-name strong,.employee-service-price){color:#e9edf3}
body[data-segment-theme="ink"] .employee-service-name small{color:#b5beca}
body[data-segment-theme="ink"] .employee-menu a.active{background:#d8dee7;border-color:#d8dee7;color:#1b2026}
body[data-segment-theme="ink"] .professional-access-status{background:#2e343d;border-color:#4b525c;color:#e9edf3}

/* Agendamento do profissional - variante grafite para Tatuagem e Piercing */
body[data-segment-theme="ink"] .employee-booking-dialog{background:#22262c;color:#f3f4f5;border-color:#414751}
body[data-segment-theme="ink"] .employee-booking-form :is(input,select,textarea){background:#2b3037;color:#f3f4f5;border-color:#525965}
body[data-segment-theme="ink"] .employee-booking-form label{color:#edf0f3}
body[data-segment-theme="ink"] .employee-booking-cancel,body[data-segment-theme="ink"] .employee-booking-close{background:#31363e;color:#f0f3f6;border-color:#515864}

/* v0.2.1.3 — a arte do segmento permanece legível no tema grafite */
body[data-segment-theme="ink"] .workspace-avatar.workspace-avatar-segment{background:#efe2e4}
body[data-segment-theme="ink"] .signup-segment-preview{background:#292d34;border-color:#4b515b}
body[data-segment-theme="ink"] .signup-segment-preview small{color:#b8c0ce}
body[data-segment-theme="ink"] .signup-segment-preview strong{color:#f0f2f6}

/* v0.2.1.4 — contraste da navegação compacta em Tatuagem/Piercing */
body[data-segment-theme="ink"] .booking-page .booking-step{background:#292d34;border-color:#454b54;color:#d7dde6}
body[data-segment-theme="ink"] .booking-page .booking-step b{background:#414956;color:#f2f4f7}
body[data-segment-theme="ink"] .booking-page .booking-step.is-current{background:#444b56;border-color:#c3cad5;color:#fff}
body[data-segment-theme="ink"] .booking-page .booking-step.is-current b{background:#d3d9e3;color:#20252d}
body[data-segment-theme="ink"] .booking-page .booking-choice:focus-visible,
body[data-segment-theme="ink"] .booking-page .booking-slot:focus-visible{outline-color:#c2cbd9}

/* Intervalos da agenda: também legíveis no tema grafite */
body[data-segment-theme="ink"] .agenda-calendar .agenda-drop-slot.agenda-slot-break{background:#3e303c!important;cursor:not-allowed}
body[data-segment-theme="ink"] .agenda-break-block{background:repeating-linear-gradient(135deg,#54394788 0,#54394788 9px,#392e3988 9px,#392e3988 18px);border-color:#c488a2;color:#f9dce7}
body[data-segment-theme="ink"] .agenda-break-block span{background:#37252f;color:#f9dce7}
/* v0.3.2.6 — Hoje em rosa forte também para segmentos com tema escuro. */
body[data-segment-theme="ink"] .agenda-date-tile.is-today,
body[data-segment-theme="ink"] .agenda-date-tile.is-today:not(.is-selected){background:#a13860;border-color:#bb6d8d;color:#fff}
body[data-segment-theme="ink"] .agenda-date-tile.is-today :is(.agenda-date-tile-number,.agenda-date-tile-caption){color:#fff}
