:root {
  --ink: #173b35;
  --muted: #667973;
  --gold: #b49055;
  --line: #dce5df;
  --bg: #f5f7f4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font:
    16px "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #16352f;
  color: #fff;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font: 48px Georgia;
  color: #dfbe82;
}
.brand span {
  font: 20px Georgia;
  letter-spacing: 3px;
  color: white;
}
.brand small {
  font: 10px Arial;
  letter-spacing: 2px;
  margin-top: 7px;
}
.navlabel {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #b1c2b9;
  margin-top: 48px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  text-align: left;
  background: transparent;
  color: #d1ded7;
  padding: 15px;
  border: 0;
}
nav button.active {
  background: #294b41;
  color: #f0d6a7;
  border-left: 3px solid #d7b77c;
  border-radius: 0 8px 8px 0;
}
.asidebottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.avatar {
  border-radius: 50%;
  background: #dfc999;
  color: #193b34;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 13px;
  font-weight: 600;
}
small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.asidebottom small {
  color: #b1c2b9;
}
main {
  margin-left: 240px;
  padding: 34px 42px 15px;
  max-width: 1800px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #8c754e;
}
h1 {
  font: 38px Georgia;
  margin: 8px 0 20px;
}
h2 {
  font: 25px Georgia;
  margin: 0 0 18px;
}
h3 {
  font: 22px Georgia;
  margin: 0 0 10px;
}
.headeractions {
  display: flex;
  gap: 12px;
  align-items: center;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  background: var(--ink);
  color: white;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 12px 18px;
}
button:hover {
  filter: brightness(1.13);
}
button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
button.plain {
  background: none;
  color: var(--ink);
  padding: 7px;
}
input,
select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 11px;
  color: var(--ink);
  max-width: 100%;
}
label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0;
}
label input,
label select {
  display: block;
  width: 100%;
  margin-top: 7px;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
label.check input {
  width: auto;
}
.demo {
  font-size: 13px;
  padding: 10px 0 22px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  border: 1px solid var(--line);
  background: white;
  padding: 22px;
  border-radius: 9px;
}
.stat b {
  display: block;
  font: 32px Georgia;
  margin-top: 12px;
}
.stat span {
  color: var(--muted);
  font-size: 14px;
}
.stat.accent {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.stat.accent span {
  color: #d6e2da;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.toolbar .spacer {
  flex: 1;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 22px;
}
.board {
  display: grid;
  grid-template-columns: 65px repeat(4, minmax(160px, 1fr));
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.boardhead {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.boardhead strong {
  display: block;
  margin: 8px 0;
  font-size: 15px;
}
.times {
  position: relative;
  height: 660px;
}
.times div {
  height: 60px;
  color: #77847e;
  font-size: 12px;
  padding: 8px;
}
.lane {
  position: relative;
  height: 660px;
  border-left: 1px solid var(--line);
  background: repeating-linear-gradient(
    to bottom,
    white 0,
    white 59px,
    #eef2ef 59px,
    #eef2ef 60px
  );
}
.event {
  position: absolute;
  left: 7px;
  right: 7px;
  text-align: left;
  border: 0;
  border-left: 3px solid #698f7d;
  border-radius: 6px;
  padding: 8px 10px;
  background: #e8f1e9;
  color: #264e3e;
  overflow: hidden;
  min-height: 30px;
  font-size: 13px;
}
.event strong {
  display: block;
  font-size: 14px;
}
.event small {
  font-size: 12px;
  color: inherit;
}
.event.t1 {
  background: #f5eddd;
  border-color: #b99b60;
  color: #715a30;
}
.event.t2 {
  background: #e8edf8;
  border-color: #7892c1;
  color: #385477;
}
.event.t3 {
  background: #f7e9eb;
  border-color: #ba8792;
  color: #7b4353;
}
.event.block {
  background: #eee;
  color: #555;
  border-color: #777;
}
.event.done {
  opacity: 0.65;
}
.legend {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  color: var(--muted);
  font-size: 13px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.service .tag {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--gold);
}
.service h3 {
  margin: 14px 0;
}
.service p {
  font-size: 14px;
  color: var(--muted);
}
.price {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  background: #f6f8f6;
}
td,
th {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
.tablewrap {
  overflow: auto;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  background: #edf3ee;
  font-size: 12px;
}
.warning {
  background: #fff3d8;
  color: #806020;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.day {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 78px;
  text-align: left;
}
.day small {
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 70px #102a3544;
  width: 540px;
  padding: 28px;
  max-width: 95vw;
}
dialog::backdrop {
  background: #132b2877;
}
.dialoghead,
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.actions {
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
#error {
  color: #ac3543;
  font-size: 14px;
}
.inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #173b35;
  color: white;
  border-radius: 8px;
  padding: 15px 22px;
  display: none;
  z-index: 10;
}
footer {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 25px;
  color: #87968d;
  font-size: 12px;
  letter-spacing: 1px;
}
footer span {
  flex: 1;
  letter-spacing: 0;
}
.mirror {
  background: #132e29;
  min-height: 330px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #d9c595;
}
.mirror img,
.mirror video {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
}
.photo {
  max-width: 100%;
  max-height: 370px;
  object-fit: contain;
}
.note {
  line-height: 1.7;
  color: var(--muted);
  font-size: 14px;
}
.biglink {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  margin-top: 12px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
}
a {
  color: var(--ink);
}
.splitcompare {
  position: relative;
  overflow: hidden;
  background: #eee;
  height: 340px;
}
.splitcompare img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.splitcompare .after {
  clip-path: inset(0 0 0 50%);
}
:focus-visible {
  outline: 3px solid #bb965c;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  main {
    padding: 25px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  .headeractions {
    flex-wrap: wrap;
  }
}
@media (max-width: 750px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  .brand {
    font-size: 32px;
  }
  .navlabel,
  .asidebottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .brand small {
    font-size: 10px;
  }
  main {
    margin: 0;
    padding: 18px;
  }
  .grid2,
  .cards {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat b {
    font-size: 27px;
  }
  .board {
    grid-template-columns: 55px repeat(4, 170px);
  }
  .headeractions select {
    width: 100%;
  }
  h1 {
    font-size: 32px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer span {
    display: none;
  }
  .inline {
    grid-template-columns: 1fr;
  }
}
.salonaddress {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.salonaddress span {
  flex: 1;
  min-width: 220px;
}
.brand img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
}
.homehero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 52px;
}
.homehero h2 {
  font: clamp(40px, 4.5vw, 68px)/1.08 Georgia;
  margin: 25px 0;
}
.homehero h2 em {
  color: #997437;
}
.homehero p {
  line-height: 1.8;
  color: var(--muted);
  max-width: 440px;
}
.cta {
  display: inline-block;
  background: var(--ink);
  color: white;
  padding: 15px 23px;
  border-radius: 7px;
  text-decoration: none;
  margin: 15px 10px 15px 0;
}
.underlink {
  display: block;
  margin: 10px 0 26px;
}
.herobrand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #16352f;
  border-radius: 10px;
  overflow: hidden;
  color: #e5d1aa;
  text-align: center;
}
.herobrand img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.herobrand span {
  padding: 0 15px 25px;
  font: 17px Georgia;
}
.homeintro {
  margin: 45px 0 25px;
}
.homeintro h2 {
  margin: 14px 0;
}
.homeintro p {
  color: var(--muted);
}
.contactpanel {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  background: #e7eee7;
  padding: 35px;
  border-radius: 10px;
  margin-top: 30px;
}
.contactpanel h2 {
  margin-top: 15px;
}
.contactpanel p {
  line-height: 1.8;
}
@media (max-width: 850px) {
  .homehero {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .herobrand {
    max-width: 340px;
  }
  .contactpanel {
    flex-direction: column;
  }
}
.messages {
  height: 350px;
  overflow: auto;
  background: #f5f8f5;
  padding: 18px;
  border-radius: 9px;
}
.message {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  max-width: 80%;
}
.message div {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 0;
}
.chatinput {
  display: flex;
  gap: 15px;
  align-items: center;
}
textarea {
  font: inherit;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
}
.brand span {
  font-size: 18px;
  letter-spacing: 2px;
}
.publicshortcut {
  font-size: 14px;
  text-decoration: none;
  padding: 10px;
  color: var(--ink);
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
}
legend {
  font-size: 14px;
  color: var(--muted);
}
.calendar {
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  overflow: auto;
}
.event {
  font-size: 13px;
}
.boardhead {
  min-width: 0;
}

.agendaLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd;
  margin: 15px 0;
  font-size: 14px;
}
.agendaLegend span {
  padding: 5px 9px;
  border-radius: 5px;
  background: #edf5ef;
}
.agendaLegend span:nth-child(2) {
  background: #f4e9d9;
}
.agendaLegend span:nth-child(3) {
  background: #e4e5e7;
}
.agendaLegend span:nth-child(4) {
  background: #d9ede1;
}
.agendaLegend span:nth-child(5) {
  background: #f9e5e5;
}

.offhours {
  position: absolute;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(
    45deg,
    #e3e5e4,
    #e3e5e4 7px,
    #edf0ee 7px,
    #edf0ee 14px
  );
  color: #53605a;
  font-size: 12px;
  padding: 2px 6px;
  overflow: hidden;
  pointer-events: none;
}
.offhours.buffer {
  font-size: 10px;
  z-index: 1;
}
.lane .event {
  z-index: 2;
}

.lane .freeSquare {
  position: absolute;
  left: 3px;
  right: 3px;
  width: calc(100% - 6px);
  padding: 2px 8px;
  border: 1px dashed #a7c5b5;
  border-radius: 3px;
  background: #f6faf7;
  color: #315247;
  font-size: 12px;
  text-align: left;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lane .freeSquare:hover,
.lane .freeSquare:focus-visible {
  background: #dcefe3;
  outline: 2px solid #266348;
  outline-offset: -2px;
}
.freeSquare span {
  font-size: 11px;
}
.permissionFields input[type="checkbox"],
.permissionMatrix input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #1c5143;
}
.permissionFields table {
  width: 100%;
}
.permissionMatrix th {
  min-width: 150px;
}
.permissionMatrix th:first-child {
  min-width: 260px;
}
.ledgerPanel h3 {
  margin-top: 24px;
}
.ledgerPanel .stat b {
  font-size: 26px;
}

/* Estúdio visual e ficha fotográfica */
[hidden] { display:none !important; }
button:disabled { opacity:.5; cursor:not-allowed; }
.photoPair { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.photoPair img { width:100%;max-height:300px;object-fit:contain; }
#mirrorStatus,#photoSaveStatus,#styleStatus { line-height:1.6; }
#lookStudio input[type=range],#compareControl input[type=range] { min-height:44px;touch-action:pan-y; }
#lookStudio input[type=color] { min-height:48px;width:100%; }
#mirrorView img.lookOverlay { z-index:2; }
@media(max-width:700px) {
  .grid2 { grid-template-columns:1fr; }
  .toolbar { flex-wrap:wrap; }
  .toolbar button { min-height:48px;flex:1 1 145px; }
  .panel { padding:18px;min-width:0; }
  input,select,textarea { font-size:16px;max-width:100%; }
  .mirror { min-height:280px; }
  .splitcompare { height:300px; }
  #lookStudio { order:2; }
  .photoPair { gap:6px; }
}

#content .grid2 {align-items:start;}
.visualFocus aside{display:none}.visualFocus main{margin-left:0;width:100%}.visualFocus #content{max-width:1150px;margin:auto}
.studioNav{position:sticky;top:0;background:var(--paper,#fffaf3);padding:10px;z-index:5;display:flex;flex-wrap:wrap;gap:8px;border-radius:8px}

.referenceGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.referenceGrid figure{margin:0}.referenceGrid img{width:100%;height:180px;object-fit:contain}.referenceGrid figcaption{padding:6px;font-size:14px}

#aiLibrary button{display:flex;flex-direction:column;gap:8px;width:100%;white-space:normal}#aiLibrary img{width:100%;height:180px;object-fit:contain}#aiStatus,#aiAvailability{overflow-wrap:anywhere}#aiStudio select,#aiStudio input[type=search]{max-width:100%;width:100%}

#aiCatalogGrid button{display:flex;flex-direction:column;gap:8px;white-space:normal;width:100%}#aiCatalogGrid img{height:180px;width:100%;object-fit:cover}#aiCatalogGrid [aria-pressed=true]{outline:3px solid #009bad}#aiCatalogGrid span,#aiCatalogGrid strong{overflow-wrap:anywhere}

#aiSelectedPreview{margin:18px 0;padding:16px;border:1px solid #d7e1e7;border-radius:14px}#aiSelectedPreview img{display:block;width:100%;max-width:420px;max-height:420px;object-fit:contain}#aiSelectedPreview h3{overflow-wrap:anywhere}

.photoZoom{width:min(96vw,1100px);max-height:94dvh;padding:18px;border:0;border-radius:16px;background:#faf8f2;color:#173a32}.photoZoom::backdrop{background:#000b}.photoZoom header{display:flex;justify-content:space-between;align-items:center;gap:12px}.photoZoom h2{margin:0}.photoZoom label{display:flex;align-items:center;gap:8px}.photoZoom input{width:150px}.photoZoomViewport{max-height:65dvh;overflow:auto;overscroll-behavior:contain;background:#142c26;touch-action:pan-x pan-y pinch-zoom}.photoZoomViewport img{display:block;width:100%;max-width:none!important;height:auto!important;max-height:none!important;object-fit:contain}.photoZoom .toolbar{flex-wrap:wrap}.photoZoom output{min-width:48px}@media(max-width:480px){.photoZoom{padding:12px}.photoZoom input{width:110px}.photoZoomViewport{max-height:60dvh}}

.photoZoom{width:min(96vw,1100px);max-height:94dvh;padding:18px;border:0;border-radius:16px;background:#faf8f2;color:#173a32}.photoZoom::backdrop{background:#000b}.photoZoom header{display:flex;justify-content:space-between;align-items:center;gap:12px}.photoZoom h2{margin:0}.photoZoom label{display:flex;align-items:center;gap:8px}.photoZoom input{width:150px}.photoZoomViewport{max-height:65dvh;overflow:auto;overscroll-behavior:contain;background:#142c26;touch-action:pan-x pan-y pinch-zoom}.photoZoomViewport img{display:block;width:100%;max-width:none!important;height:auto!important;max-height:none!important;object-fit:contain}.photoZoom .toolbar{flex-wrap:wrap}.photoZoom output{min-width:48px}@media(max-width:480px){.photoZoom{padding:12px}.photoZoom input{width:110px}.photoZoomViewport{max-height:60dvh}}
