/* Montserrat is shared with the landing page; local files keep the admin CSP self-only.
   Font source: Google Fonts, Montserrat v31. License: fonts/montserrat/v31/OFL.txt. */
@font-face {
  font-family: Montserrat; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/montserrat/v31/cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Montserrat; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/montserrat/v31/latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Montserrat; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/montserrat/v31/latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #05010a;
  --panel: rgba(14, 8, 24, .8);
  --line: rgba(199, 125, 255, .18);
  --text: #f5f0fa;
  --muted: #b0a3bd;
  --accent: #c77dff;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); font-weight: 400;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 42px; padding: 11px 22px;
  border: 1px solid rgba(199, 125, 255, .3); border-radius: 30px;
  background: rgba(22, 12, 34, .8); color: var(--text);
  font-size: 10px; line-height: 1.5; font-weight: 600;
  letter-spacing: .85px; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
button:hover, .button:hover {
  border-color: rgba(199, 125, 255, .7); background: rgba(45, 21, 68, .8);
  box-shadow: 0 0 22px rgba(157, 78, 221, .12);
}
button:disabled { opacity: .4; cursor: default; box-shadow: none; }
.primary { border-color: rgba(199, 125, 255, .5); background: rgba(37, 18, 54, .82); }
input, select, textarea {
  display: block; width: 100%; min-width: 0; min-height: 46px;
  padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  background: rgba(8, 4, 15, .7); color: var(--text); font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #8f809e; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: rgba(199, 125, 255, .65); }
input:disabled, select:disabled { opacity: .55; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  box-shadow: 0 0 0 1000px #10091b inset;
}
textarea { resize: vertical; line-height: 1.7; }
label { display: block; margin-bottom: 6px; color: #bbaaca; font-size: 10px; font-weight: 500; line-height: 1.8; letter-spacing: .65px; }
label input, label select { margin-top: 7px; }
:focus-visible { outline: 2px solid #d9b0ff; outline-offset: 4px; }
[hidden] { display: none !important; }

/* The same five equalizer bars and two waves as the site's opening screen. */
.studio-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 40% 50%, rgba(38, 9, 74, .28), transparent 65%); }
.studio-equalizer { position: absolute; left: 50%; top: 50%; width: min(1200px, 87vw); height: 65vh; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: space-between; gap: 4%; opacity: .13; }
.studio-equalizer span { width: 15%; height: 74%; border-radius: 100px; background: #7b2cbf; box-shadow: 0 0 70px rgba(157, 78, 221, .3); animation: studio-pulse 8s ease-in-out infinite alternate; }
.studio-equalizer span:nth-child(1) { margin-top: -16%; animation-delay: -2s; }
.studio-equalizer span:nth-child(2) { height: 90%; margin-top: 20%; animation-delay: -5s; }
.studio-equalizer span:nth-child(3) { height: 58%; margin-top: -10%; animation-delay: -1s; }
.studio-equalizer span:nth-child(4) { height: 92%; margin-top: 16%; animation-delay: -6s; }
.studio-equalizer span:nth-child(5) { height: 86%; margin-top: -20%; animation-delay: -3s; }
.studio-wave { position: absolute; inset: 50% 0 auto; height: 110px; transform: translateY(-50%); background: url('images/site/admin-wave.svg') repeat-x center / auto 100%; opacity: .65; }
@keyframes studio-pulse { from { transform: scaleY(.78); } to { transform: scaleY(1); } }
.is-authenticated .studio-backdrop { opacity: .28; }
.is-authenticated .studio-equalizer span { animation: none; }

.topbar { position: relative; z-index: 1; display: flex; align-items: center; gap: 32px; padding: 24px 40px; }
.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 35px; width: auto; filter: brightness(0) invert(1); }
.brand span { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 3px; }
.header-context { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 30px; color: #c7b6d6; font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; }
.status-dot { display: inline-block; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(199, 125, 255, .5); }
.header-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.back-link { min-height: 36px; padding: 8px 20px; background: transparent; border-color: var(--line); }
main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; width: min(1280px, calc(100% - 96px)); margin: 0 auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .22); }
.auth-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 430px; align-items: center; gap: clamp(48px, 8vw, 140px); padding: 28px 0; }
.login-intro { padding-bottom: 25px; }
.section-tag { display: inline-flex; align-items: center; padding: 8px 15px; border: 1px solid rgba(199, 125, 255, .23); border-radius: 30px; background: rgba(22, 12, 34, .5); color: #cba0ed; font-size: 9px; font-weight: 500; letter-spacing: 2px; }
.studio-title { margin: 30px 0 14px; font-size: clamp(44px, 5.35vw, 84px); line-height: 1.15; font-weight: 300; letter-spacing: 4px; background: linear-gradient(180deg, #fff, #a0a0a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio-motto { margin: 0; color: #b4a4c3; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.8; font-weight: 300; letter-spacing: .4px; }
.intro-caption { display: flex; gap: 16px; align-items: flex-start; margin-top: 56px; }
.caption-line { width: 28px; flex-shrink: 0; height: 1px; background: #8f5bb3; margin-top: 10px; }
.intro-caption p { margin: 0; font-size: 11px; line-height: 1.9; color: #aa98b9; }
.login-card { padding: 32px 36px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); background: linear-gradient(145deg, rgba(23, 13, 37, .84), rgba(10, 5, 18, .92)); box-shadow: 0 24px 70px rgba(0, 0, 0, .38), 0 0 50px rgba(157, 78, 221, .04); }
.login-card-top { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { color: #c7a3e5; font-size: 9px; font-weight: 600; line-height: 1.6; letter-spacing: 1.8px; text-transform: uppercase; }
.access-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid rgba(199, 125, 255, .17); border-radius: 10px; color: #b38cd3; }
.access-icon svg { width: 18px; height: 18px; }
.login-card h1 { margin: 20px 0 10px; font-size: 27px; font-weight: 300; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.9; font-weight: 400; }
.login-card .muted { margin: 0; }
.login-card form { display: grid; gap: 12px; margin: 27px 0 24px; }
.login-card form > label { margin: 0; text-transform: uppercase; font-size: 9px; letter-spacing: 1.1px; }
.password-control { position: relative; border: 1px solid rgba(199, 125, 255, .18); border-radius: 12px; background: rgba(8, 4, 15, .7); transition: border-color .2s, box-shadow .2s; }
.password-control:focus-within { border-color: rgba(199, 125, 255, .65); box-shadow: 0 0 18px rgba(157, 78, 221, .1); }
.password-control input { min-height: 52px; padding: 14px 52px 14px 16px; border: 0; background: transparent; outline: none; font-size: 12px; }
#password-toggle { position: absolute; right: 5px; top: 5px; width: 42px; min-height: 42px; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #baa4ce; box-shadow: none; }
#password-toggle:hover { color: #f2e9fc; background: rgba(199, 125, 255, .06); }
#password-toggle svg { width: 20px; height: 20px; }
.eye-cross { opacity: 0; }
#password-toggle[aria-pressed="true"] .eye-cross { opacity: 1; }
.login-card button[type="submit"] { min-height: 48px; justify-content: space-between; margin-top: 6px; padding: 13px 22px; font-size: 10px; letter-spacing: 1.25px; }
.login-card button[type="submit"] > span:last-child { color: #d8b6f6; font-size: 17px; line-height: 1; }
.login-note { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 18px; border-top: 1px solid rgba(199, 125, 255, .1); color: #a894ba; font-size: 9px; line-height: 1.8; }
.login-note .status-dot { width: 4px; height: 4px; flex-basis: 4px; background: #a582c2; box-shadow: none; }

/* The journal uses the landing page's glass cards and fine purple borders. */
#workspace { padding: 42px 0 48px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.page-heading h1 { margin: 22px 0 10px; font-size: clamp(28px, 3.5vw, 44px); font-weight: 300; line-height: 1.25; letter-spacing: 3px; text-transform: uppercase; }
.page-heading .muted { margin: 0; font-size: 11px; }
.text-divider { color: #68447e; margin: 0 8px; }
h2 { font-size: 16px; font-weight: 400; letter-spacing: .5px; }
h3 { margin: 10px 0; font-size: 21px; font-weight: 400; line-height: 1.4; }
.toolbar { display: flex; align-items: flex-end; gap: 14px; padding: 22px; background: rgba(14, 8, 24, .7); }
.toolbar > div { flex: 1; min-width: 0; }
.toolbar label { text-transform: uppercase; font-size: 9px; letter-spacing: 1.3px; }
.toolbar button { min-height: 46px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 12px; }
#count { font-size: 11px; }
#bookings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.booking-card { min-width: 0; padding: 26px; transition: border-color .2s; }
.booking-card:hover { border-color: rgba(199, 125, 255, .32); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.client-name, .contact { overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 6px 10px; border: 1px solid rgba(199, 125, 255, .22); border-radius: 30px; background: rgba(157, 78, 221, .08); color: #d1adeb; font-size: 9px; line-height: 1.6; }
.badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.confirmed { color: #abd8c8; border-color: rgba(114, 191, 163, .25); background: rgba(44, 117, 82, .08); }
.badge.cancelled, .badge.expired { color: #a59aae; border-color: rgba(185, 158, 206, .14); background: transparent; }
.session-time { font-size: 12px; line-height: 1.9; margin: 14px 0 7px; }
.contact { margin: 0; font-size: 11px; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.client-comment:empty { display: none; }
.reference { margin: 12px 0 22px; color: #9683a7; font-size: 9px; line-height: 1.8; overflow-wrap: anywhere; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 65px; gap: 12px; }
.edit-grid > div { min-width: 0; }
.edit-grid input, .edit-grid select { font-size: 11px; padding: 11px 9px; }
.edit-form > label { margin-top: 12px; }
.edit-form textarea { margin-top: 7px; font-size: 12px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.card-actions button { font-size: 9px; padding: 11px 15px; }
.hold { font-size: 9px; max-width: 190px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 28px 0; font-size: 10px; color: var(--muted); }
.pagination button { min-height: 36px; padding: 8px 18px; font-size: 9px; }
.settings { padding: 24px; margin-top: 40px; }
.settings summary { cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.8; letter-spacing: .3px; }
.settings summary::marker { color: #bb84e8; }
.settings > .hint { margin: 12px 0; }
.prices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.prices-grid label { text-transform: uppercase; }
.settings button { margin-bottom: 6px; }
.empty { grid-column: 1 / -1; margin: 0; padding: 52px 24px; border: 1px dashed var(--line); border-radius: 24px; background: rgba(14, 8, 24, .45); color: var(--muted); text-align: center; font-size: 13px; line-height: 1.8; }
#message { position: fixed; z-index: 10; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(520px, calc(100% - 32px)); margin: 0; padding: 15px 22px; border: 1px solid rgba(167, 207, 185, .3); border-radius: 16px; background: #100b19; box-shadow: 0 10px 40px #0008; color: #c6e6d7; white-space: pre-line; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#message.error { border-color: rgba(255, 143, 173, .35); color: #ffbacb; }
#message:empty { display: none; }
.admin-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 40px; padding: 23px 0; border-top: 1px solid rgba(199, 125, 255, .09); color: #9683a7; font-size: 9px; line-height: 1.8; letter-spacing: .8px; }
.admin-footer > span:last-child { font-size: 10px; letter-spacing: .4px; font-weight: 300; }
.footer-divider { margin: 0 10px; color: #634177; }

@media (max-width: 1100px) {
  main { width: calc(100% - 64px); }
  .auth-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 32px; }
  .studio-title { font-size: clamp(34px, 4.9vw, 54px); letter-spacing: 3px; }
  .login-card { padding: 30px; }
  #bookings { grid-template-columns: 1fr; }
  .edit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 85px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar > div { flex: 1 1 32%; }
}
@media (max-width: 820px) {
  .topbar { padding: 22px 28px; gap: 20px; }
  .header-context { display: none; }
  .auth-layout { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 42px 0 48px; }
  .login-intro { text-align: center; padding-bottom: 0; }
  .studio-title { margin: 22px 0 10px; font-size: clamp(36px, 8vw, 64px); }
  .intro-caption { display: none; }
  .login-card { width: 100%; max-width: 430px; }
  .studio-equalizer { width: 110%; height: 70vh; opacity: .1; }
  .studio-wave { top: 35%; }
  .admin-footer { margin: 0 28px; }
}
@media (max-width: 580px) {
  .topbar { padding: 20px; gap: 14px; }
  .brand { gap: 9px; }
  .brand img { height: 27px; }
  .brand span { font-size: 13px; letter-spacing: 2px; }
  .header-actions { gap: 7px; }
  .back-link, #logout { min-height: 34px; padding: 8px 12px; font-size: 8px; letter-spacing: .6px; }
  .is-authenticated .back-link { display: none; }
  main { width: calc(100% - 40px); }
  .auth-layout { gap: 30px; padding: 28px 0 40px; }
  .section-tag { padding: 7px 12px; font-size: 8px; letter-spacing: 1.5px; }
  .studio-title { font-size: clamp(29px, 8.5vw, 46px); letter-spacing: 2px; margin: 21px 0 9px; }
  .studio-motto { font-size: 11px; letter-spacing: .2px; }
  .login-card { border-radius: 22px; padding: 26px; }
  .login-card h1 { font-size: 23px; letter-spacing: 1.4px; }
  .login-card form { margin-top: 26px; }
  .password-control input { font-size: 16px; }
  .login-note { font-size: 8px; }
  .admin-footer { margin: 0 20px; padding: 20px 0; justify-content: center; font-size: 8px; }
  .admin-footer > span:last-child { display: none; }
  #workspace { padding: 22px 0 32px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 28px; letter-spacing: 2px; margin-top: 18px; }
  .page-heading .muted { font-size: 10px; max-width: 280px; }
  .toolbar { padding: 18px; gap: 12px; border-radius: 20px; }
  .toolbar > div { flex-basis: 100%; }
  .toolbar button { flex: 1; padding: 10px 14px; font-size: 9px; }
  .list-heading { margin-top: 28px; }
  h2 { font-size: 14px; }
  h3 { font-size: 18px; }
  .booking-card { border-radius: 20px; padding: 20px; }
  .card-top { flex-direction: column; gap: 2px; }
  .badge { font-size: 8px; padding: 5px 9px; }
  .edit-grid { grid-template-columns: minmax(0, 1fr) 65px; gap: 10px; }
  .edit-grid > div:first-child { grid-column: 1 / -1; }
  .edit-grid input, .edit-grid select, .edit-form textarea, .prices-grid input, .toolbar input, .toolbar select { font-size: 16px; }
  .card-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .card-actions button { width: 100%; }
  .prices-grid { grid-template-columns: 1fr; }
  .settings { padding: 20px; border-radius: 20px; }
  .settings .primary { width: 100%; padding: 12px 15px; font-size: 9px; white-space: normal; }
  .pagination { gap: 12px; }
  .pagination button { padding: 8px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-equalizer span { animation: none; }
  button, .button, input, select, textarea, .booking-card, .password-control { transition: none; }
}
