:root { --ink:#292222; --muted:#756969; --cream:#fbf6ef; --white:#fffdfa; --rose:#a4515f; --rose-dark:#753642; --blush:#f1dfda; --line:rgba(72,47,49,.14); --green:#587052; --amber:#a66c22; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--cream); font-family:"DM Sans",sans-serif; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
.hidden { display:none !important; }
.eyebrow { margin:0 0 12px; color:var(--rose); font-size:11px; font-weight:700; letter-spacing:.17em; text-transform:uppercase; }
h1,h2 { margin:0; font-family:"Playfair Display",serif; line-height:1; }
.auth-shell { min-height:100vh; display:grid; place-items:center; padding:30px; background:radial-gradient(circle at 80% 15%,#e5bbb3,transparent 28rem),linear-gradient(145deg,#fbf6ef,#f1dfda); }
.auth-card { width:min(460px,100%); padding:46px; border-radius:28px; background:rgba(255,253,250,.94); box-shadow:0 30px 90px rgba(75,45,49,.16); }
.auth-brand,.admin-brand { display:flex; align-items:center; gap:12px; color:inherit; text-decoration:none; }
.auth-brand { margin-bottom:45px; }
.auth-brand span,.admin-brand span { width:44px; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; color:white; background:var(--rose-dark); font-family:"Playfair Display",serif; font-size:23px; }
.auth-card h1 { font-size:44px; }
.auth-copy { margin:18px 0 28px; color:var(--muted); line-height:1.6; }
.auth-card form { display:grid; gap:10px; }
.auth-card label,.appointment-dialog label { font-size:13px; font-weight:700; }
.auth-card input,.appointment-dialog select,.appointment-dialog textarea { width:100%; margin-top:7px; padding:14px 15px; border:1px solid var(--line); border-radius:12px; background:white; color:var(--ink); outline:none; }
.auth-card input:focus,.appointment-dialog select:focus,.appointment-dialog textarea:focus { border-color:var(--rose); box-shadow:0 0 0 3px rgba(164,81,95,.12); }
.auth-card button,.save-button { border:0; border-radius:999px; padding:14px 20px; background:var(--rose-dark); color:white; font-weight:700; }
.integration-controls a.save-button { display:inline-block; text-align:center; text-decoration:none; }
.auth-card > a { display:block; margin-top:22px; color:var(--rose-dark); font-size:13px; text-align:center; }
.form-message { min-height:20px; margin:4px 0; color:#a33142; font-size:13px; text-align:center; }
.form-message.success { color:var(--green); }
.admin-app { min-height:100vh; display:grid; grid-template-columns:240px 1fr; }
.sidebar { position:sticky; top:0; height:100vh; padding:34px 26px; display:flex; flex-direction:column; background:#36282b; color:white; }
.admin-brand { margin-bottom:55px; }
.admin-brand span { background:#9b4b59; }
.admin-brand strong { line-height:1.25; }
.sidebar nav { display:grid; gap:8px; }
.sidebar nav a { padding:12px 14px; border-radius:10px; color:#d9caca; text-decoration:none; font-size:14px; }
.sidebar nav a:hover,.sidebar nav a.active { color:white; background:rgba(255,255,255,.09); }
.logout { margin-top:auto; border:1px solid rgba(255,255,255,.18); border-radius:10px; padding:11px; color:#eadada; background:transparent; }
.license-indicator { display:inline-block; margin:14px 0 0; padding:7px 11px; border-radius:999px; background:#eee5e1; color:#533c40; font-size:12px; font-weight:700; }
.license-indicator.warning { background:#fff0d7; color:#7b4b13; }
.license-indicator.expired,.license-indicator.blocked { background:#fbe3e5; color:#99313c; }
.settings-actions a.save-button { display:inline-block; text-decoration:none; text-align:center; }
.dashboard { width:min(1240px,calc(100% - 70px)); margin:0 auto; padding:52px 0 80px; }
.dashboard-header { display:flex; justify-content:space-between; align-items:end; gap:30px; }
.dashboard-header h1 { font-size:54px; }
.date-controls { display:flex; align-items:center; gap:8px; padding:8px; border:1px solid var(--line); border-radius:14px; background:white; }
.date-controls input { border:0; padding:8px; color:var(--ink); background:transparent; }
.icon-button,.today-button { border:0; border-radius:9px; padding:9px 12px; background:#f5ece8; color:var(--rose-dark); font-weight:700; }
.today-button { background:var(--rose-dark); color:white; }
.metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:38px 0; }
.metrics article { padding:24px; border:1px solid var(--line); border-radius:18px; background:white; }
.metrics span { display:block; color:var(--muted); font-size:13px; }
.metrics strong { display:block; margin-top:8px; font-family:"Playfair Display",serif; color:var(--rose-dark); font-size:38px; }
.occupied-section { margin-bottom:28px; padding:30px 34px; border:1px solid var(--line); border-radius:24px; background:#36282b; color:white; }
.occupied-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:20px; }
.occupied-heading .eyebrow { color:#e7b8b1; }.occupied-heading h2 { font-size:34px; }
.occupied-count { padding:8px 12px; border-radius:999px; color:#e8d9d6; background:rgba(255,255,255,.08); font-size:11px; font-weight:700; }
.occupied-list { display:grid; gap:9px; max-height:420px; overflow:auto; padding-right:4px; }
.occupied-row { width:100%; display:grid; grid-template-columns:110px minmax(170px,1fr) auto; gap:18px; align-items:center; padding:15px 17px; border:1px solid rgba(255,255,255,.1); border-radius:13px; color:white; background:rgba(255,255,255,.055); text-align:left; }
.occupied-row:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.22); }
.occupied-when { display:grid; gap:2px; }.occupied-when strong { font-size:14px; }.occupied-when span { color:#cfbebb; font-size:11px; }
.occupied-client strong { display:block; }.occupied-client span { color:#cfbebb; font-size:11px; }
.occupied-tags { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }.occupied-tags span { padding:6px 8px; border-radius:999px; color:#e8d9d6; background:rgba(255,255,255,.08); font-size:10px; font-weight:700; }
.occupied-section .booked-empty { color:#cfbebb; border-color:rgba(255,255,255,.14); background:rgba(255,255,255,.04); }
.schedule-section { padding:34px; border:1px solid var(--line); border-radius:24px; background:white; }
.section-heading { display:flex; justify-content:space-between; gap:20px; align-items:end; }
.section-heading h2,.guide h2 { font-size:36px; }
.legend { display:flex; gap:16px; color:var(--muted); font-size:12px; }
.legend span { display:flex; align-items:center; gap:6px; }
.legend i { width:9px; height:9px; border-radius:50%; background:#ddd; }
.legend .free { background:#90a889; }.legend .busy { background:var(--rose); }.legend .lunch { background:#d7a460; }
.schedule-message { min-height:22px; margin:17px 0 4px; color:var(--muted); font-size:13px; }
.booked-overview { display:grid; gap:10px; margin:12px 0 30px; }
.booked-overview h3,.slots-heading h3 { margin:0; font-size:14px; }
.booking-row { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:center; padding:17px 19px; border:1px solid rgba(117,54,66,.18); border-radius:14px; color:var(--ink); background:linear-gradient(100deg,#fff,#fbf3f0); text-align:left; }
.booking-row:hover { border-color:var(--rose); transform:translateY(-1px); }
.booking-sentence { font-size:15px; }
.booking-sentence strong { color:var(--rose-dark); }
.booking-details { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.booking-details span { padding:6px 9px; border-radius:999px; color:var(--muted); background:#f2e8e4; font-size:10px; font-weight:700; }
.booked-empty { margin:0; padding:20px; border:1px dashed var(--line); border-radius:14px; color:var(--muted); background:#fcfaf7; text-align:center; font-size:13px; }
.slots-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:0 0 13px; padding-top:25px; border-top:1px solid var(--line); }
.slots-heading span { color:var(--muted); font-size:12px; }
.schedule-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.slot-card { min-height:104px; padding:15px; border:1px solid var(--line); border-radius:14px; text-align:left; background:#fbf8f4; }
.slot-card.available { color:var(--green); border-style:dashed; background:#f6faf4; }
.slot-card.unavailable { color:var(--muted); background:#f0eae8; cursor:default; }
.slot-card.booked { color:var(--ink); background:#fff; border-color:rgba(117,54,66,.24); box-shadow:0 8px 22px rgba(73,46,48,.06); }
.slot-card.booked:hover { transform:translateY(-2px); border-color:var(--rose); }
.slot-time { display:block; margin-bottom:9px; font-size:13px; font-weight:700; }
.slot-card strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.slot-service { display:block; margin-top:4px; color:var(--muted); font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.slot-meta { display:flex; justify-content:space-between; gap:8px; margin-top:7px; color:var(--muted); font-size:11px; }
.deposit-pill { color:var(--amber); font-weight:700; }
.deposit-pill.paid { color:var(--green); }
.lunch-row { grid-column:1/-1; padding:15px; border-radius:13px; color:#84561f; background:#fff4df; text-align:center; font-size:13px; font-weight:700; }
.guide { margin-top:28px; padding:34px; border-radius:24px; background:#36282b; color:white; }
.guide > p:not(.eyebrow) { max-width:760px; color:#dacdca; line-height:1.7; }
.guide-items { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:24px; }
.guide-items span { padding:18px; border-radius:14px; background:rgba(255,255,255,.07); color:#dacdca; font-size:13px; line-height:1.6; }
.guide-items strong { display:block; color:white; }
.settings-gear { position:fixed; z-index:20; right:28px; bottom:28px; width:58px; height:58px; display:grid; place-items:center; border:0; border-radius:50%; color:white; background:var(--rose-dark); box-shadow:0 14px 35px rgba(72,40,45,.28); font-size:25px; transition:transform .2s,background .2s; }
.settings-gear:hover { transform:translateY(-2px) rotate(15deg); background:#622a35; }
.settings-dialog { width:min(820px,calc(100% - 28px)); max-height:calc(100vh - 36px); max-height:calc(100dvh - 36px); overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; padding:38px; border:0; border-radius:24px; color:var(--ink); background:white; box-shadow:0 35px 100px rgba(38,24,25,.35); }
.settings-dialog::backdrop { background:rgba(40,29,30,.58); backdrop-filter:blur(5px); }
.close-settings { position:absolute; right:22px; top:20px; width:38px; height:38px; border:0; border-radius:50%; color:var(--ink); background:#f3ebe7; font-size:24px; }
.settings-heading { display:grid; grid-template-columns:1fr .75fr; gap:40px; align-items:end; margin-bottom:28px; }
.settings-heading h2 { font-size:40px; }
.settings-heading > p { margin:0; color:var(--muted); line-height:1.65; }
.settings-form { display:grid; gap:12px; }
.setting-card { display:grid; grid-template-columns:42px minmax(200px,1fr) minmax(280px,.85fr); gap:20px; align-items:center; padding:22px; border:1px solid var(--line); border-radius:16px; background:#fcfaf7; }
.setting-number { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:var(--rose-dark); background:var(--blush); font-size:11px; font-weight:700; }
.setting-card h3 { margin:0 0 5px; font-size:16px; }.setting-card p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.setting-card label { color:var(--muted); font-size:12px; font-weight:700; }
.setting-card input { width:100%; margin-top:7px; padding:12px 13px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:white; outline:none; }
.setting-card input:focus { border-color:var(--rose); box-shadow:0 0 0 3px rgba(164,81,95,.1); }
.time-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.money-input { position:relative; }.money-input span { position:absolute; left:13px; top:20px; color:var(--muted); }.money-input input { padding-left:42px; }
.settings-message { min-height:20px; margin:4px 0 0; color:var(--rose-dark); font-size:13px; text-align:right; }.settings-message.success { color:var(--green); }
.settings-actions { display:flex; justify-content:flex-end; gap:10px; }
.reset-settings { border:1px solid var(--line); border-radius:999px; padding:13px 18px; color:var(--rose-dark); background:white; font-weight:700; }
.appointment-dialog { width:min(620px,calc(100% - 24px)); max-height:calc(100vh - 30px); overflow:auto; padding:34px; border:0; border-radius:24px; color:var(--ink); background:var(--white); box-shadow:0 35px 100px rgba(38,24,25,.35); }
.appointment-dialog::backdrop { background:rgba(40,29,30,.58); backdrop-filter:blur(5px); }
.close-dialog { position:absolute; right:24px; top:22px; width:38px; aspect-ratio:1; border:0; border-radius:50%; font-size:24px; background:#f3ebe7; }
.appointment-title { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:12px 0 8px; }
.appointment-title h2 { font-size:38px; }
.appointment-title p { color:var(--muted); }
.client-badge { padding:8px 11px; border-radius:999px; color:var(--rose-dark); background:var(--blush); font-size:11px; font-weight:700; }
.phone-link { display:inline-block; margin-bottom:24px; color:var(--rose-dark); }
#appointment-form { display:grid; gap:17px; }
.deposit-box { display:grid; gap:14px; margin:0; padding:18px; border:1px solid var(--line); border-radius:16px; background:#f9f2ef; }
.switch-row { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.switch-row span { display:grid; gap:3px; }.switch-row small { color:var(--muted); font-weight:400; }
.switch-row input { width:20px; height:20px; accent-color:var(--rose-dark); }
.whatsapp-button { padding:12px 16px; border-radius:10px; color:white; background:#317b50; text-decoration:none; text-align:center; font-size:13px; font-weight:700; }
.appointment-dialog textarea { resize:vertical; }
.dialog-actions { display:flex; justify-content:space-between; gap:12px; }
.danger-button { border:1px solid #d7a3aa; border-radius:999px; padding:13px 18px; color:#9a3041; background:white; font-weight:700; }
@media (max-width:1000px){.admin-app{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:18px 24px;flex-direction:row;align-items:center;gap:30px}.admin-brand{margin:0}.sidebar nav{display:flex;margin-left:auto}.logout{margin:0}.schedule-grid{grid-template-columns:repeat(3,1fr)}.setting-card{grid-template-columns:42px 1fr}.setting-card>label,.setting-card>.time-pair{grid-column:2}}
@media (max-width:720px){.dashboard{width:min(100% - 28px,1240px);padding-top:30px}.dashboard-header{align-items:start;flex-direction:column}.date-controls{width:100%;flex-wrap:wrap}.date-controls input{flex:1}.metrics{grid-template-columns:repeat(2,1fr)}.occupied-section{padding:25px 18px}.occupied-heading{align-items:start;flex-direction:column}.occupied-row{grid-template-columns:90px 1fr}.occupied-tags{grid-column:1/-1;justify-content:flex-start}.schedule-section{padding:24px 18px}.section-heading{align-items:start;flex-direction:column}.booking-row{grid-template-columns:1fr}.booking-details{justify-content:flex-start}.slots-heading{align-items:start;flex-direction:column;gap:5px}.schedule-grid{grid-template-columns:repeat(2,1fr)}.guide-items{grid-template-columns:1fr}.sidebar nav{display:none}.logout{margin-left:auto}.catalog-grid{grid-template-columns:repeat(2,1fr)}.dialog-actions{flex-direction:column-reverse}.dialog-actions button{width:100%}}
@media (max-width:430px){.auth-shell{padding:14px}.auth-card{padding:32px 22px}.auth-card h1{font-size:38px}.dashboard-header h1{font-size:44px}.metrics article{padding:18px}.schedule-grid{grid-template-columns:1fr}.appointment-dialog{padding:28px 20px}.appointment-title{align-items:start;flex-direction:column}.sidebar strong{display:none}.settings-dialog{padding:32px 18px}.settings-heading{grid-template-columns:1fr;gap:14px}.setting-card{grid-template-columns:1fr}.setting-card>label,.setting-card>.time-pair{grid-column:1}.settings-actions{align-items:stretch;flex-direction:column-reverse}.settings-actions button{width:100%}.settings-gear{right:18px;bottom:18px;width:52px;height:52px}}

.settings-tabs { display:flex; gap:8px; margin:0 0 22px; padding:5px; border-radius:14px; background:#f5eeea; }
.settings-tabs button { flex:1; padding:11px 15px; border:0; border-radius:10px; color:var(--muted); background:transparent; font-weight:700; }
.settings-tabs button.active { color:white; background:var(--rose-dark); box-shadow:0 7px 18px rgba(117,54,66,.2); }
.waitlist-list { display:grid; gap:12px; }
.waitlist-card { padding:18px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.waitlist-card strong { font-size:17px; }
.waitlist-card p { margin:8px 0; line-height:1.5; }
.waitlist-card small { color:var(--muted); font-size:13px; }
.waitlist-controls { display:flex; flex-wrap:wrap; gap:9px; margin-top:14px; }
.waitlist-controls select { min-width:160px; min-height:46px; padding:8px; border:1px solid var(--line); border-radius:10px; font-size:16px; }
.waitlist-controls button { min-height:46px; }
.admin-reviews-list { display:grid; gap:12px; }
.admin-review-card { padding:18px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.admin-review-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.admin-review-heading strong { font-size:17px; }
.admin-review-heading span { padding:5px 9px; border-radius:999px; font-size:12px; font-weight:700; }
.review-visible { color:#376044; background:#e8f4eb; }
.review-hidden { color:#805063; background:#f6e9ee; }
.admin-review-card small { display:block; margin-top:8px; color:var(--muted); font-size:13px; }
.admin-review-card p { margin:11px 0 15px; line-height:1.55; overflow-wrap:anywhere; }
.admin-review-card button { min-height:46px; }
.image-size-hint{display:block;color:var(--muted);font-size:13px;font-weight:400;line-height:1.5}
.conflict-warning{padding:12px 14px;border:1px solid #dda7a7;border-radius:10px;background:#fff1f1;color:#8b3030;font-weight:700}
.new-client-notice{margin:14px 0;padding:13px 16px;border:1px solid #e7c7a3;border-radius:12px;background:#fff8e9;color:#745027;font-size:14px;font-weight:700;line-height:1.5}
.integration-pending{padding:10px 14px;border-radius:999px;background:#f4eee9;color:#745b55;font-size:13px;font-weight:700}
.catalog-image-editor img,.catalog-image-editor.ad-preview img{height:auto;aspect-ratio:16/9;object-fit:cover}
.settings-tabs span { display:inline-grid; min-width:22px; height:22px; margin-left:5px; place-items:center; border-radius:999px; color:inherit; background:rgba(255,255,255,.16); font-size:10px; }
.clients-panel { min-height:280px; }
.clients-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:16px; }
.clients-heading h3 { margin:0; font-family:"Playfair Display",serif; font-size:30px; }
.clients-list { display:grid; gap:9px; max-height:480px; overflow:auto; padding-right:4px; }
.client-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; align-items:center; padding:17px 18px; border:1px solid var(--line); border-radius:14px; background:#fcfaf7; }
.client-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.client-identity > div { display:grid; gap:4px; min-width:0; }
.client-identity strong { font-size:15px; }
.client-identity a { width:max-content; color:var(--rose-dark); font-size:12px; }
.client-identity small { color:var(--muted); font-size:10px; }.client-identity small.birthday-soon{color:#9a5e16;font-weight:800}
.client-last-access { display:grid; gap:4px; text-align:right; }
.client-last-access span { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.client-last-access strong { font-size:12px; }
.edit-client-button { margin-top:5px; padding:7px 11px; border:1px solid var(--line); border-radius:999px; color:var(--rose-dark); background:white; font-size:10px; font-weight:800; }
.client-list-avatar,.agenda-client-avatar,.birthday-avatar,.client-avatar { flex:0 0 auto; width:38px; height:38px; border-radius:50%; object-fit:cover; border:2px solid white; box-shadow:0 0 0 1px var(--line); }
.avatar-fallback { display:grid; place-items:center; color:white; background:var(--rose-dark); font-size:14px; font-weight:800; }
.agenda-client-avatar { width:30px; height:30px; }.occupied-client{display:flex;align-items:center;gap:10px;min-width:0}.occupied-client>span{display:grid;min-width:0}
.occupied-products { width:fit-content; max-width:100%; margin-top:6px; padding:5px 9px; border-radius:8px; color:#3d2c16!important; background:#f3d99c; font-size:11px!important; font-weight:800; line-height:1.35; overflow-wrap:anywhere; white-space:normal; }
.birthday-alerts { display:grid; grid-template-columns:auto 1fr; gap:22px; align-items:center; margin-bottom:22px; padding:22px 25px; border:1px solid #ecd4a8; border-radius:20px; background:linear-gradient(110deg,#fff7e8,#fff); }
.birthday-alerts > div:first-child { display:flex; align-items:center; gap:12px; }.birthday-alerts > div:first-child>span{font-size:30px}.birthday-alerts h2{margin:0;font-size:23px}
.birthday-alert-list { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.birthday-alert-list button { display:flex; align-items:center; gap:9px; padding:8px 12px 8px 8px; border:1px solid #ecd4a8; border-radius:999px; background:white; color:var(--ink); }
.birthday-alert-list button>span { display:grid; gap:2px; text-align:left; }.birthday-alert-list small{color:#8b642a;font-size:10px}.birthday-avatar{width:32px;height:32px}
.appointment-client-identity,.client-editor-heading { display:flex; align-items:center; gap:13px; }.appointment-client-identity .client-avatar,.client-editor-heading .client-avatar{width:52px;height:52px}
.client-editor-heading { margin:10px 0 22px; }.client-editor-heading h2{font-size:34px}.client-editor-heading p{margin:4px 0 0;color:var(--muted);font-size:12px}
#client-editor-form { display:grid; grid-template-columns:1fr 1fr; gap:14px; }#client-editor-form label{display:grid;gap:7px;font-size:12px;font-weight:700}#client-editor-form input,#client-editor-form textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px}#client-editor-form .client-notes-field,#client-editor-form .form-message,#client-editor-form .dialog-actions{grid-column:1/-1}
.clients-empty { margin:0; padding:36px 20px; border:1px dashed var(--line); border-radius:14px; color:var(--muted); text-align:center; }
.services-settings { display:grid; gap:18px; }
.rules-settings { display:grid; gap:11px; }
.rules-intro { display:grid; grid-template-columns:1fr auto; gap:8px 18px; align-items:center; margin-bottom:6px; padding:20px; border-radius:16px; background:linear-gradient(110deg,#f8eeeb,#fff); }
.rules-intro h3 { margin:0; font-family:"Playfair Display",serif; font-size:30px; }
.rules-intro > p { grid-column:1/-1; margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.provisional-badge { padding:7px 10px; border-radius:999px; color:#80531e; background:#fff0d4; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.rule-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.7fr); gap:22px; align-items:center; padding:19px 20px; border:1px solid var(--line); border-radius:15px; background:#fcfaf7; }
.rule-copy { position:relative; }
.rule-copy h4 { display:flex; align-items:center; gap:8px; margin:0 0 5px; font-size:15px; }
.rule-copy > p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.help-button { flex:0 0 auto; width:23px; height:23px; display:grid; place-items:center; padding:0; border:1px solid #cbaeb2; border-radius:50%; color:var(--rose-dark); background:white; font-size:12px; font-weight:800; }
.help-button[aria-expanded="true"] { color:white; background:var(--rose-dark); }
.help-popover { margin-top:10px; padding:11px 13px; border-left:3px solid var(--rose); border-radius:8px; color:#624e51; background:#f7ece9; font-size:12px; line-height:1.55; }
.rule-card > label,.rule-controls > label:not(.toggle-control) { color:var(--muted); font-size:11px; font-weight:700; }
.rule-card input[type="number"],.rule-controls input[type="number"] { width:100%; margin-top:7px; padding:12px 13px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:white; outline:none; }
.rule-card input[type="text"],.rule-card select { width:100%; margin-top:7px; padding:12px 13px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:white; outline:none; }
.rule-card input[type="number"]:focus { border-color:var(--rose); box-shadow:0 0 0 3px rgba(164,81,95,.1); }
.rule-controls { display:grid; grid-template-columns:auto 1fr; gap:14px; align-items:center; }
.toggle-control { display:flex; align-items:center; gap:9px; min-height:46px; cursor:pointer; }
.toggle-control input { position:absolute; opacity:0; pointer-events:none; }
.toggle-control > span { position:relative; width:44px; height:25px; border-radius:999px; background:#cfc4c1; transition:.2s; }
.toggle-control > span::after { content:""; position:absolute; left:3px; top:3px; width:19px; height:19px; border-radius:50%; background:white; box-shadow:0 2px 6px rgba(0,0,0,.2); transition:.2s; }
.toggle-control input:checked + span { background:var(--rose-dark); }
.toggle-control input:checked + span::after { transform:translateX(19px); }
.toggle-control input:focus-visible + span { outline:3px solid rgba(164,81,95,.25); outline-offset:2px; }
.toggle-control b { color:var(--ink); font-size:12px; white-space:nowrap; }
.business-fields { grid-template-columns:1fr 1fr; }.weekday-toggles{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.weekday-toggles label{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 7px;border:1px solid var(--line);border-radius:10px;background:white;font-size:11px;font-weight:800}.weekday-toggles input{accent-color:var(--rose-dark)}
.services-settings .clients-heading > p { max-width:360px; margin:0; color:var(--muted); font-size:12px; line-height:1.55; }
.service-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.service-admin-card,.exception-card { display:grid; gap:10px; padding:17px; border:1px solid var(--line); border-radius:14px; color:var(--ink); background:#fcfaf7; }
.service-admin-card { cursor:pointer; text-align:left; }.service-admin-card:hover,.exception-card:hover{border-color:#cbaeb2;box-shadow:0 7px 18px rgba(117,54,66,.08)}
.service-admin-card header,.exception-card header { display:flex; justify-content:space-between; gap:12px; align-items:start; }.service-admin-card strong,.exception-card strong{font-size:14px}.service-admin-card b{color:var(--rose-dark);white-space:nowrap}.service-admin-card p,.exception-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.service-admin-card small,.exception-card small{color:var(--muted);font-size:10px}
.panel-explanation { margin:0; color:var(--muted); font-size:12px; line-height:1.55; }.exceptions-panel{display:grid;gap:18px}.exceptions-list{display:grid;gap:10px}.exception-card{grid-template-columns:1fr auto;align-items:center}.exception-card .exception-tags{display:flex;flex-wrap:wrap;gap:6px}.exception-tag{padding:5px 8px;border-radius:999px;background:#f3e7e4;color:var(--rose-dark);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.exception-card button{padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:white;color:var(--rose-dark);font-size:10px;font-weight:800}
.editor-dialog{max-width:620px}.editor-dialog>h2{margin:4px 0 20px;font-size:34px}.editor-form{display:grid;gap:14px}.editor-form>label,.editor-grid label{display:grid;gap:7px;font-size:12px;font-weight:700}.editor-form input,.editor-form textarea,.editor-form select,.editor-grid input{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink)}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.exception-help{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:center;padding:12px;border-radius:12px;background:#f7efec;color:var(--muted);font-size:11px}.exception-help .help-popover{grid-column:1/-1}.client-editor-avatar{position:relative;display:grid;place-items:center;width:52px;height:52px}.client-editor-avatar .client-avatar{position:absolute;width:52px;height:52px}.client-photo-field small{color:var(--muted);font-weight:400;line-height:1.4}.photo-actions{display:flex;align-items:end}.photo-actions button{width:100%}
.service-detail { display:grid; gap:4px; margin:0 0 22px; padding:16px 18px; border-radius:14px; background:#f7efec; }
.service-detail span { color:var(--muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.service-detail strong { color:var(--rose-dark); }
.service-detail small { color:var(--muted); }
@media (max-width:600px){.settings-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.settings-tabs button{min-width:0;white-space:normal}.settings-tabs button:last-child:nth-child(odd){grid-column:1/-1}.clients-heading{align-items:start;flex-direction:column}.client-row{grid-template-columns:1fr}.client-last-access{text-align:left}.rule-card{grid-template-columns:1fr}.rule-controls,.business-fields{grid-template-columns:1fr}.rules-intro{grid-template-columns:1fr}.provisional-badge{width:max-content}.birthday-alerts{grid-template-columns:1fr}.birthday-alert-list{justify-content:flex-start}#client-editor-form{grid-template-columns:1fr}#client-editor-form label,#client-editor-form .form-message,#client-editor-form .dialog-actions,#client-editor-form .photo-actions{grid-column:1}.weekday-toggles{grid-template-columns:repeat(2,1fr)}.editor-grid{grid-template-columns:1fr}.exception-card{grid-template-columns:1fr}}
@media (max-width:600px){.service-settings-grid{grid-template-columns:1fr}}
.catalog-divider{height:1px;margin:16px 0;background:var(--line)}.service-admin-card.has-image{grid-template-columns:72px 1fr}.service-admin-card>img{grid-row:1/4;width:72px;height:72px;object-fit:cover;border-radius:12px}.service-admin-card.has-image header,.service-admin-card.has-image p,.service-admin-card.has-image small{grid-column:2}.stock-badge{width:max-content;padding:5px 8px;border-radius:999px;color:#38633d;background:#e6f3e7;font-size:9px;font-weight:800}.stock-badge.out{color:#8a3a3a;background:#f7e1e1}.catalog-image-editor{min-height:180px;display:grid;place-items:center;overflow:hidden;border:1px dashed var(--line);border-radius:16px;color:var(--muted);background:#f8f4f2}.catalog-image-editor img{width:100%;height:220px;object-fit:cover}.catalog-image-editor.ad-preview img{height:180px}.editor-form input[type=file]{padding:10px;background:#fcfaf7}
.editor-note{color:var(--muted);font-size:11px;line-height:1.5}
@media(max-width:600px){.settings-dialog{width:calc(100vw - 18px);max-height:calc(100vh - 18px);max-height:calc(100dvh - 18px);padding:20px 14px}.settings-heading{padding-right:36px}.settings-heading h2,.clients-heading h3,.rules-intro h3,.editor-dialog>h2{font-size:27px}.settings-tabs button{min-height:46px;padding:9px 8px;font-size:13px;line-height:1.25}.panel-explanation,.rule-copy>p,.service-admin-card p,.exception-card p{font-size:14px;line-height:1.55}.save-button,.reset-settings,.danger-button,.edit-client-button{min-height:46px;font-size:13px}.editor-form>label,.editor-grid label,#client-editor-form label{font-size:14px}.editor-form input,.editor-form textarea,.editor-form select,#client-editor-form input,#client-editor-form textarea{font-size:16px}.editor-note{font-size:13px}.service-admin-card strong,.exception-card strong{font-size:16px}}

/* Painel mais legível e aba Empresa organizada para uso frequente no celular. */
body { font-size:16px; }
.settings-dialog { width:min(940px,calc(100% - 28px)); }
.settings-heading > p,.rules-intro > p,.panel-explanation { font-size:15px; }
.settings-tabs button { min-height:46px; font-size:15px; }
.setting-card h3,.rule-copy h4 { font-size:18px; }
.setting-card p,.rule-copy > p { font-size:14px; }
.setting-card label,.rule-card > label,.rule-controls > label:not(.toggle-control),.company-contact-grid label { font-size:14px; }
.setting-card input,.setting-card select,.rule-card input,.rule-card textarea,.rule-card select { min-height:48px; font-size:16px; }
.setting-card select,.rule-card input[type="url"],.rule-card input[type="tel"],.rule-card textarea { width:100%; margin-top:7px; padding:12px 13px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:white; outline:none; }
.company-settings { display:grid; gap:24px; }
.company-logo-controls { display:grid; grid-template-columns:112px 1fr; gap:18px; align-items:center; }
.company-logo-preview { width:112px; height:112px; display:grid; place-items:center; overflow:hidden; border:1px dashed #cbaeb2; border-radius:24px; color:var(--rose-dark); background:#f7ece9; font-size:13px; font-weight:800; }
.company-logo-preview img { width:100%; height:100%; object-fit:cover; object-position:center; }
.company-logo-controls > div:last-child { display:grid; gap:9px; align-items:start; }
.company-logo-controls small { color:var(--muted); font-size:13px; line-height:1.45; }
.file-action { width:max-content; min-height:44px; display:inline-flex; align-items:center; padding:11px 16px; border-radius:999px; color:white; background:var(--rose-dark); font-size:14px; font-weight:800; cursor:pointer; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.text-danger { width:max-content; padding:0; border:0; color:#9a3041; background:transparent; font-size:13px; font-weight:800; text-decoration:underline; }
.company-contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.company-contact-grid label { display:grid; align-content:start; color:var(--muted); font-weight:700; }
.company-contact-grid textarea { resize:vertical; }
.company-advertisements { display:grid; gap:18px; }
.slot-duration-controls,.capacity-controls { display:grid; gap:10px; }
.slot-duration-controls label,.capacity-controls label { display:grid; color:var(--muted); font-size:14px; font-weight:700; }
.capacity-controls output { display:block; padding:12px 14px; border-radius:12px; color:var(--rose-dark); background:var(--blush); font-size:17px; font-weight:800; }
.capacity-controls small { color:var(--muted); font-size:13px; line-height:1.4; }
.client-identity strong,.service-admin-card strong,.exception-card strong { font-size:16px; }
.client-identity a,.client-last-access strong,.panel-explanation,.service-admin-card p,.exception-card p { font-size:14px; }
.save-button,.reset-settings,.danger-button,.edit-client-button { font-size:14px; }

@media (max-width:600px) {
  .settings-dialog { padding:22px 15px; }
  .settings-tabs button { min-height:50px; font-size:15px; }
  .company-contact-grid,.company-logo-controls { grid-template-columns:1fr; }
  .company-logo-preview { width:128px; height:128px; }
  .setting-card h3,.rule-copy h4 { font-size:19px; }
  .setting-card p,.rule-copy > p,.panel-explanation { font-size:15px; }
  .setting-card label,.rule-card > label,.rule-controls > label:not(.toggle-control),.company-contact-grid label { font-size:15px; }
  .company-advertisements .clients-heading .save-button { width:100%; }
}

@media (max-width:1000px) {
  .setting-card > .slot-duration-controls,.setting-card > .capacity-controls { grid-column:2; }
}
@media (max-width:430px) {
  .setting-card > .slot-duration-controls,.setting-card > .capacity-controls { grid-column:1; }
}
.integrations-panel { display:grid; gap:18px; }
.integration-card { align-items:center; }
.integration-controls { display:grid; gap:12px; justify-items:end; }
.integration-status { margin-top:10px; color:var(--muted); font-size:13px; }
@media (max-width: 760px) {
  .integration-card { grid-template-columns:1fr; }
  .integration-controls { justify-items:stretch; }
  .integration-controls .save-button { width:100%; }
}
