/* Hallmark · app · тёплые поверхности и отражённый свет с вывески студии. */
:root {
  color-scheme: dark;
  --bg: #141210;
  --side: #1b1715;
  --panel: #211c19;
  --field: #171412;
  --line: #3b322c;
  --control-border: #85776b;
  --button-bg: #2c2520;
  --hover-surface: #352b24;
  --current-surface: #3b2e25;
  --text: #f3ece2;
  --muted: #bdb1a4;
  --gold: #f7d78b;
  --gold-hover: #fdeda5;
  --gold-ink: #271a10;
  --focus: #ffedb2;
  --sign-core: #fdeda5;
  --sign-amber: #d49750;
  --sign-halo: #c28c52;
  --sign-face: #1a120d;
  --login-wall: #21191a;
  --menu-shadow: rgb(6 3 2 / .55);
  --error-bg: #492b31;
  --error-text: #ffe6e0;
  --notice-bg: #26372b;
  --notice-text: #d9f0df;
  --font-body: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  font: 16px/1.5 var(--font-body);
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
.locked body {
  visibility: hidden;
}
a {
  color: var(--gold);
  text-underline-offset: 3px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--button-bg);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 550;
}
@media (hover: hover) {
  button:enabled:hover, .button:hover {
    background-color: var(--hover-surface);
    border-color: var(--gold);
  }
  button.primary:enabled:hover, .button.primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
  }
}
.primary {
  color: var(--gold-ink);
  background: var(--gold);
  border-color: var(--gold);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  display: block;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--control-border);
  border-radius: 5px;
  min-height: 44px;
  padding: 8px 11px;
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
textarea {
  resize: vertical;
  min-height: 76px;
}
label {
  display: block;
  font-size: 0.91rem;
  font-weight: 530;
  margin-bottom: 14px;
}
label input,
label select,
label textarea {
  margin-top: 6px;
}
small,
dt,
.rows span,
.panel > p {
  color: var(--muted);
}
small {
  font-size: 0.86rem;
}
p {
  line-height: 1.6;
}
h1,
h2,
p {
  margin: 0;
}
h1, h2 {
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.logo {
  width: 142px;
  height: 38px;
  object-fit: contain;
}
.login-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 100svh;
  padding: 20px;
  background: var(--login-wall);
}
.login-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 16px clamp(12px, 3vw, 58px) 36px;
}
.login-box {
  margin: auto;
  width: min(100%, 380px);
}
.login-box h1 {
  margin-bottom: 34px;
  font-size: clamp(1.7rem, 2.2vw, 2.25rem);
}
.login-box button {
  width: 100%;
  margin-top: 6px;
}
.login-box label {
  margin-bottom: 19px;
}
.reception {
  background: center / cover url(reception.jpg);
  border-radius: 12px;
}
.sidebar {
  width: 244px;
  height: 100dvh;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--side);
  padding: 0 14px;
  overflow: auto;
}
.brand {
  padding: 26px 12px 27px;
  display: block;
}
.brand img {
  display: block;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.nav-link,
.nav-group summary,
.nav-group a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 13px;
  color: var(--text);
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
}
.nav-link span,
.nav-group summary span {
  width: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}
.nav-group a[aria-current],
.nav-link[aria-current],
.tabs [aria-current] {
  background: var(--current-surface);
  color: var(--gold);
  font-weight: 650;
}
.nav-link:hover,
.nav-group summary:hover,
.nav-group a:hover {
  background: var(--hover-surface);
}
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}
.panel details > summary::before,
.nav-group summary::after {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
}
.panel details > summary::before {
  margin: 0 10px 2px 2px;
}
.nav-group summary::after {
  margin-left: auto;
}
.panel details[open] > summary::before,
.nav-group[open] summary::after {
  transform: rotate(45deg);
}
.nav-group a {
  font-size: 0.88rem;
  padding-left: 42px;
}
.employee {
  margin-top: auto;
  padding: 16px 7px 20px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.employee strong,
.employee small {
  display: block;
}
.employee button {
  width: 100%;
  margin-top: 10px;
  font-size: 0.88rem;
}
.workspace {
  margin-left: 244px;
  max-width: 1480px;
  padding: clamp(24px, 4vw, 64px);
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.panel {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: clamp(16px, 2.5vw, 32px);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.panel h2 {
  margin-bottom: 18px;
}
.panel p {
  margin: 10px 0;
}
.panel small {
  display: block;
  margin-top: 6px;
}
.inline {
  display: flex;
  gap: 10px;
  align-items: end;
}
.report-filter {
  flex-wrap: wrap;
}
.inline input {
  min-width: 0;
}
.inline label {
  margin: 0;
}
.inline button {
  flex-shrink: 0;
}
.fields,
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 25px;
}
.audit-filters select {
  appearance: none;
  padding-right: 40px;
  background-image: url("chevron-down.svg");
  background-repeat: no-repeat;
  background-size: 12px 8px;
  background-position: right 16px center;
}
.audit-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
@media (forced-colors: active) {
  .audit-filters select {
    appearance: auto;
    background-image: none;
  }
}
.facts {
  margin: 13px 0;
  gap: 15px;
}
.facts dt {
  font-size: 0.84rem;
}
.facts dd {
  margin: 2px 0;
  white-space: pre-wrap;
}
.rows {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rows li {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
}
.rows a {
  font-weight: 550;
}
.vertical li {
  display: block;
}
.vertical summary {
  color: var(--gold);
  cursor: pointer;
}
.vertical form {
  margin-top: 10px;
}
.total {
  display: block;
  margin: 25px 0 18px;
  font-size: 2rem;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.tabs a {
  padding: 7px 10px;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  text-decoration: none;
}
.error,
.notice {
  padding: 12px 15px;
  border-radius: 5px;
  margin-bottom: 18px;
  background: var(--error-bg);
  color: var(--error-text);
}
.notice {
  background: var(--notice-bg);
  color: var(--notice-text);
}
.guide li {
  padding: 4px 0;
}
.guide h2:not(:first-child) {
  margin-top: 24px;
}
.mobile-bar {
  display: none;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 9;
  background: var(--bg);
  padding: 8px;
}
.skip:focus {
  top: 8px;
}
@media (max-width: 800px) {
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--side);
    height: 62px;
    border-bottom: 1px solid var(--line);
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 3;
  }
  .mobile-bar img {
    width: 85px;
  }
  .mobile-bar button {
    min-height: 42px;
  }
  .sidebar {
    display: none;
    top: 62px;
    height: calc(100dvh - 62px);
    z-index: 4;
    box-shadow: 10px 6px 28px var(--menu-shadow);
  }
  .sidebar[data-drawer] {
    display: flex;
    transform: translateX(calc(-100% - 32px));
    pointer-events: none;
  }
  .sidebar[data-drawer].open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .sidebar .brand {
    display: none;
  }
  .sidebar nav {
    padding-top: 12px;
  }
  .workspace {
    margin: 0;
    padding: 24px 16px;
  }
  .heading {
    margin-bottom: 18px;
  }
  .login-grid {
    grid-template-columns: 1fr 40%;
  }
}
@media (max-width: 580px) {
  .login-grid {
    display: block;
    padding: 16px;
    min-height: 100svh;
  }
  .login-main {
    min-height: calc(100svh - 32px);
    padding: 6px 5px 26px;
  }
  .reception {
    display: none;
  }
  .fields,
  .facts {
    grid-template-columns: 1fr;
  }
  .rows li {
    flex-wrap: wrap;
    gap: 4px;
  }
  .panel {
    border-radius: 7px;
  }
  .tabs {
    gap: 6px;
  }
  .heading .button {
    font-size: 0.88rem;
  }
  .inline {
    gap: 8px;
  }
}

.schedule-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.schedule-form label {
  margin: 0;
}
.reminder-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reminder-check input {
  width: 18px;
  min-height: 18px;
}

.integration + .integration {
  border-top: 1px solid var(--line);
}
.integration > summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
}
.integration form {
  max-width: 620px;
  margin: 14px 0;
}

.shift-ended {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.shift-ended dialog {
  position: static;
  margin: 0;
  width: min(100%, 470px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  padding: clamp(20px, 4vw, 36px);
  overflow-wrap: anywhere;
}
.shift-ended dialog p {
  margin: 16px 0;
}

[data-draft-status] {
  min-height: 1.6em;
}
[data-draft-status][data-saved]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 11px;
  margin: 0 10px 1px 3px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@keyframes reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .button {
    transition: background-color 120ms, border-color 120ms, transform 100ms var(--ease-out);
  }
  button:enabled:active, .button:active {
    transform: translateY(1px);
  }
  input, select, textarea, .sidebar nav a, .nav-group summary {
    transition: background-color 120ms, border-color 120ms;
  }
  [data-draft-status][data-saved]::before {
    animation: reveal 150ms var(--ease-out);
  }
}
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  .sidebar[data-drawer] {
    transition: transform 180ms var(--ease-out);
  }
}

.club-document { max-width: 54rem; margin: 0 auto; padding: clamp(1rem, 4vw, 3rem); }
.document-text { overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.6; }

.panel input[type="checkbox"] {
  display: inline-block; width: 1.1rem; height: 1.1rem; min-height: 0;
  margin: 0 .35rem 0 0; padding: 0; vertical-align: middle; accent-color: var(--gold);
}

.regulation-paragraph {
  max-width: 75ch;
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.regulation h2 { overflow-wrap: anywhere; }
.regulation textarea { line-height: 1.5; }
.regulation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }

.studio-tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
#studio-terms fieldset, #reminder-settings fieldset { min-width: 0; margin: .75rem 0; border: 1px solid var(--line); border-radius: .5rem; padding: .85rem; }
#studio-terms legend, #reminder-settings legend { padding: 0 .35rem; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .workspace [id] { scroll-margin-top: 4.5rem; }
}
