@font-face {
  font-family: "Manrope"; src: url("/assets/fonts/manrope.ttf") format("truetype");
  font-style: normal; font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.ttf") format("truetype");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.ttf") format("truetype");
  font-style: italic; font-weight: 400; font-display: swap;
}
:root {
  --ink: #362c28; --muted: #7f726a; --line: #79614e22; --cream: #fbf6ee;
  --accent: #674c3b; --serif: "Instrument Serif", Georgia, serif;
  font-family: "Manrope", sans-serif; font-size: 13px;
  color: var(--ink); background: #d6c7b6; font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(115deg, #b29a8577, #e3d7c977),
    url("/assets/salon-interior.png") center 60% / cover;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(120deg, #ede2d291, #d3b4961c);
  backdrop-filter: blur(7px);
}
button, input, select, textarea { font: inherit; }
button {
  cursor: pointer; background: var(--accent); color: #fffaf4;
  border: 1px solid transparent; border-radius: 9px; padding: 12px 18px;
  font-size: 11px; font-weight: 600; transition: background .18s, transform .18s, box-shadow .18s;
}
button:hover { background: #503a2d; box-shadow: 0 4px 10px #4b30211a; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible { outline: 2px solid #a27658; outline-offset: 4px; }
.secondary { color: var(--ink); background: #fffaf46e; border-color: #fffaf4b0; }
.secondary:hover { background: #fffcf3; }
.quiet { color: #7c604b; background: none; padding: 6px 0; border: 0; }
.quiet:hover { background: none; box-shadow: none; color: #36271d; }
input, select, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #ae9b862e;
  border-radius: 8px; background: #fffdf7b8; color: var(--ink); font-size: 12px;
}
input::placeholder, textarea::placeholder { color: #a79a90; }
input:focus, textarea:focus, select:focus { outline: 2px solid #b99d7f80; outline-offset: 2px; }
label { display: block; font-size: 11px; font-weight: 600; color: #6f5f54; margin: 19px 0; }
label input, label textarea, label select { display: block; margin-top: 9px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 400 47px/1.08 var(--serif); letter-spacing: -.8px; margin: 6px 0 0; }
h2 { font: 400 25px/1.1 var(--serif); margin: 0 0 21px; letter-spacing: -.25px; }
h3 { font-size: 13px; font-weight: 600; }
p { line-height: 1.8; }
em { font-weight: 400; }
.muted, small { color: var(--muted); font-size: 10px; line-height: 1.8; }
.brand { font: 400 35px/.9 var(--serif); letter-spacing: -.6px; }
.brand span { display: block; font: 500 8px "Manrope", sans-serif; letter-spacing: 2.6px; color: #977d68; margin-top: 13px; }
#workspace {
  position: relative; width: min(1440px, calc(100% - 64px)); margin: 32px auto;
  min-height: calc(100svh - 64px); border: 1px solid #fff9ed9c; border-radius: 26px;
  background: #f5eadd7d; box-shadow: inset 1px 1px 0 #fffaf2b5, 0 25px 80px #4c312425;
  backdrop-filter: blur(28px) saturate(1.12); overflow: clip;
}
aside {
  position: absolute; width: 213px; inset: 0 auto 0 0; padding: 39px 28px 26px;
  display: flex; flex-direction: column; background: linear-gradient(150deg, #fff7e656, #e5d6c132);
  border-right: 1px solid #fff9ee90; min-height: 700px;
}
.account { margin: 39px 0 27px; font-size: 11px; font-weight: 500; }
.account small { display: block; font-size: 9px; margin-top: 5px; }
nav { display: grid; gap: 8px; margin: 0 -10px; }
nav button {
  position: relative; text-align: left; font-size: 11px; font-weight: 500;
  padding: 12px 16px; border-radius: 8px; background: transparent; color: #8b796a;
}
nav button:hover { background: #fffaf04d; box-shadow: none; color: #594333; }
nav button.selected {
  background: #fff8edc7; color: #62442d; border-color: #fffdf3b5;
  box-shadow: 0 2px 7px #74513909; font-weight: 600;
}
nav button.selected::before {
  content: ""; position: absolute; width: 3px; height: 14px; left: 0; top: 13px;
  border-radius: 3px; background: #b58d68;
}
.sidebar-bottom { margin-top: auto; padding-top: 100px; font-size: 9px; color: #796653; }
.sidebar-bottom p { color: #9c8a78; font-size: 8px; margin-top: 7px; }
.sidebar-bottom .quiet { font-size: 10px; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #b99761; margin-right: 6px; }
main { margin-left: 213px; padding: 32px 34px 28px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: 8px; text-transform: uppercase; color: #937b65; font-weight: 600; letter-spacing: 1.6px; }
.header-actions { display: flex; align-items: center; gap: 17px; }
.workspace-label { font-size: 9px; color: #917f6f; }
.salon-hero {
  position: relative; overflow: hidden; isolation: isolate; min-height: 226px;
  border: 1px solid #fff9efcd; border-radius: 17px; margin-bottom: 29px;
  background: #f2e7d9; box-shadow: inset 0 1px 0 #ffffffc2, 0 8px 20px #6b4d3210;
}
.hero-copy { position: relative; z-index: 1; padding: 25px 29px; width: 58%; }
.hero-copy h2 { font: 400 49px/.9 var(--serif); margin: 12px 0 11px; letter-spacing: -.8px; }
.hero-copy h2 em { color: #846446; }
.hero-copy p { font-size: 10px; margin: 0 0 14px; color: #8b7765; }
.hero-button { padding: 0; color: #5d4433; background: transparent; font-size: 10px; }
.hero-button:hover { background: transparent; box-shadow: none; }
.hero-button span { margin-left: 21px; font-size: 15px; }
.salon-photo {
  position: absolute; inset: 0 0 0 38%; z-index: 0; background:
    linear-gradient(90deg, #f2e7d9 0%, #f2e7d900 43%),
    url("/assets/salon-interior.png") center 57% / cover;
}
.section-line { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.section-line h2 { margin: 0; font-size: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stat {
  padding: 20px 21px 17px; border: 1px solid #fffbf0ba; border-radius: 13px;
  background: linear-gradient(145deg, #fffdf7a8, #fff6e571);
  box-shadow: inset 0 1px 1px #ffffffaa, 0 4px 13px #70513009;
}
.stat:first-child { background: linear-gradient(135deg, #7c6048, #594332); color: #fff8eb; border-color: #b9a18b; }
.stat span { font-size: 10px; color: #897765; font-weight: 500; }
.stat strong { font: 400 44px/1 var(--serif); display: block; margin: 12px 0 7px; font-variant-numeric: lining-nums tabular-nums; }
.stat small { font-size: 8px; color: #a18e7a; }
.stat:first-child span, .stat:first-child small { color: #e0cebb; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel {
  background: linear-gradient(130deg, #fffcf6b0, #fff7ed7d); border: 1px solid #fffaf0c9;
  border-radius: 15px; padding: 24px; margin-bottom: 20px; min-width: 0; overflow: auto;
  box-shadow: inset 0 1px 1px #ffffff90, 0 4px 16px #75563c08;
}
.metric-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #9d806817; font-size: 10px; }
.metric-row:last-child { border: 0; }
.metric-row span { color: #9a8571; }
.metric-row strong { font-size: 10px; font-weight: 500; text-align: right; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { font-size: 8px; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 500; color: #a89582; padding: 18px 10px 13px; border-bottom: 1px solid var(--line); }
td { padding: 16px 10px; border-bottom: 1px solid #ae927619; font-size: 11px; font-weight: 400; color: #776454; }
tbody tr[data-call], tbody tr[data-customer] { cursor: pointer; }
tbody tr:hover { background: #fffcf559; }
td:first-child { color: #544032; font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; border-radius: 5px; font-size: 8px; font-weight: 500; padding: 5px 8px; background: #eee3d2; color: #8e7455; }
.pill.active { background: #dce9dd; color: #668269; }
.pill.nuisance, .pill.blocked { background: #eedad0; color: #a57560; }
.filters { display: flex; gap: 9px; margin-bottom: 20px; flex-wrap: wrap; }
.filters input { max-width: 210px; }
.filters select { width: 145px; }
.empty { text-align: center; color: #a18b76; padding: 32px 10px; font-size: 11px; }
.row { display: flex; gap: 12px; margin-top: 12px; }
.row > * { flex: 1; min-width: 0; }
.campaign-layout { grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); }
.campaign-card { border-top: 1px solid var(--line); padding: 20px 0; }
.campaign-card p { font-size: 11px; color: #8b7765; }
.campaign-card .row button { font-size: 9px; padding: 10px; }
.simulation-banner { background: #fff6e78c; border: 1px solid #fffbf0ba; padding: 12px 17px; border-radius: 8px; margin-bottom: 20px; font-size: 10px; color: #957956; }
.test-call { display: block; width: 100%; background: #fff8ecb0; border-color: #fffdf3; color: #8a6b50; text-align: left; margin: 10px 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.check input { width: auto; margin: 0; accent-color: #8e6d4f; }
.bubble { padding: 13px 16px; background: #f2e6d5; margin: 10px 0; border-radius: 9px; font-size: 12px; line-height: 1.8; }
.bubble.caller { background: #fffaf0ab; color: #8c7764; }
.bubble small { display: block; font-size: 8px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .8px; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(490px, 100vw); padding: 32px; overflow: auto; z-index: 5; background: #faf2e6f0; backdrop-filter: blur(30px); border-left: 1px solid #fffaf0; box-shadow: -15px 0 70px #4c31242b; }
.drawer h2 { margin: 27px 0 16px; font-size: 30px; }
.drawer audio { width: 100%; margin: 15px 0; }
.login { min-height: 100svh; display: grid; place-items: center; padding: 30px; }
.login form { position: relative; width: min(430px, 100%); padding: 42px; border: 1px solid #fff6dfc9; border-radius: 23px; background: linear-gradient(145deg, #fff9edba, #f9ebd89e); backdrop-filter: blur(25px); box-shadow: inset 1px 1px 0 #fff9edc4, 0 30px 100px #4a342a26; }
.login .brand { font: 400 29px var(--serif); letter-spacing: 2px; }
.login .brand span { font-size: 8px; letter-spacing: 3px; }
.login-eyebrow { display: block; font-size: 8px; letter-spacing: 2px; color: #9c8167; margin-top: 38px; }
.login h1 { font-size: 62px; line-height: .95; margin: 12px 0 19px; }
.login h1 em { color: #947452; }
.login p { color: #9c8570; font-size: 10px; }
.login button { width: 100%; margin-top: 10px; }
#notice { background: #fff0d6; padding: 13px 17px; margin-bottom: 18px; border-radius: 8px; color: #957042; font-size: 11px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .page:not([hidden]) { animation: enter .35s ease-out; }
  @keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (min-width: 1600px) { #workspace { margin-top: 48px; } }
@media (max-width: 1100px) {
  #workspace { width: calc(100% - 34px); margin: 17px; }
  aside { width: 180px; padding: 32px 22px; }
  main { margin-left: 180px; padding: 28px 24px; }
  .workspace-label { display: none; }
  .stat { padding: 17px; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #workspace { width: calc(100% - 22px); margin: 11px; border-radius: 18px; }
  aside { position: static; width: 100%; min-height: 0; border-right: 0; border-bottom: 1px solid #fff9ed; padding: 23px 20px 13px; }
  .brand { font-size: 30px; }
  .brand span { display: inline; margin-left: 16px; font-size: 7px; letter-spacing: 1.5px; }
  .account, .sidebar-bottom { display: none; }
  nav { display: flex; overflow: auto; gap: 3px; margin: 23px -6px 0; padding-bottom: 4px; }
  nav { scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav button { white-space: nowrap; padding: 10px 12px; font-size: 10px; }
  nav button.selected::before { display: none; }
  main { margin: 0; padding: 21px 17px; }
  header { margin-bottom: 20px; }
  h1 { font-size: 39px; }
  .salon-hero { min-height: 215px; }
  .hero-copy { padding: 24px 20px; width: 80%; background: linear-gradient(90deg, #f2e7d9 42%, #f2e7d9cc 65%, transparent); }
  .hero-copy h2 { font-size: 43px; }
  .hero-copy p { font-size: 9px; max-width: 180px; }
  .salon-photo { left: 30%; opacity: .8; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat strong { font-size: 39px; }
  .panel { padding: 19px 16px; }
  .section-line h2 { font-size: 23px; }
  .section-line .muted { font-size: 8px; }
  .filters input, .filters select { max-width: 100%; flex: 1 1 140px; }
  .row { flex-wrap: wrap; }
  .row > * { flex-basis: 140px; }
  .login form { padding: 32px; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { width: 78%; }
  .salon-photo { left: 30%; }
}
