:root {
  --paper: #f1efe7;
  --paper-hi: #faf8f1;
  --paper-dim: #e6e3d7;
  --ink: #14211b;
  --ink-soft: #304037;
  --muted: #667169;
  --line: rgba(20, 33, 27, 0.15);
  --line-strong: rgba(20, 33, 27, 0.48);
  --lime: #d8ff45;
  --lime-deep: #b8df26;
  --orange: #cf4723;
  --red: #b83422;
  --sage: #c9d7c4;
  --blue: #c5d8de;
  --clay: #e7c8b8;
  --sand: #ded1b3;
  --lilac: #d6d0df;
  --white: #fffdf8;
  --display: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Aptos", "Segoe UI Variable Text", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow-hard: 6px 6px 0 rgba(20, 33, 27, 0.92);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-layer {
  overflow: hidden;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(20, 33, 27, 0.28) 0.55px, transparent 0.7px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

:focus-visible {
  outline: 3px solid var(--lime-deep);
  outline-offset: 2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow--light {
  color: rgba(241, 239, 231, 0.58);
}

.mono {
  font-family: var(--mono);
}

/* Boot */

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--ink);
  color: var(--paper);
}

.boot-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
}

.boot-copy {
  text-align: center;
}

.boot-copy span {
  color: rgba(241, 239, 231, 0.48);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.boot-copy p {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.06em;
}

.boot-line {
  width: 160px;
  height: 1px;
  overflow: hidden;
  background: rgba(241, 239, 231, 0.16);
}

.boot-line i {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--lime);
  animation: boot-line 1.1s ease-in-out infinite;
}

@keyframes boot-line {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(360%);
  }
}

/* Login */

.login-view {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
  background: var(--paper);
}

.login-art {
  position: relative;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px);
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}

.login-art::before {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: -5%;
  color: transparent;
  content: "D";
  font-family: var(--display);
  font-size: clamp(380px, 42vw, 720px);
  font-weight: 700;
  letter-spacing: -0.16em;
  line-height: 1;
  opacity: 0.35;
  -webkit-text-stroke: 1px rgba(216, 255, 69, 0.15);
}

.login-art::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 239, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 239, 231, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 10%, transparent 88%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-mark--lime {
  border-color: var(--lime);
}

.login-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.login-brand-copy b {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.13em;
}

.login-brand-copy i {
  margin-top: 4px;
  color: rgba(241, 239, 231, 0.45);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.16em;
}

.login-art-copy {
  margin: auto 0;
  padding: 7vh 0 5vh;
}

.login-art-copy h1 {
  max-width: 680px;
  margin: 22px 0 24px;
  font-family: var(--display);
  font-size: clamp(58px, 7.2vw, 118px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.login-art-copy h1 span {
  display: inline-block;
  padding: 0 0.06em 0.04em;
  background: var(--lime);
  color: var(--ink);
  font-style: normal;
  line-height: 0.88;
}

.login-art-copy p {
  max-width: 530px;
  color: rgba(241, 239, 231, 0.6);
  font-size: 14px;
  line-height: 1.9;
}

.slot-matrix {
  width: min(100%, 510px);
  padding-top: 15px;
  border-top: 1px solid rgba(241, 239, 231, 0.2);
}

.matrix-head,
.matrix-foot {
  display: flex;
  justify-content: space-between;
  color: rgba(241, 239, 231, 0.4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.matrix-grid {
  display: grid;
  margin: 12px 0;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.matrix-grid i {
  height: 19px;
  border: 1px solid rgba(241, 239, 231, 0.13);
  background: rgba(241, 239, 231, 0.04);
}

.matrix-grid i.on {
  border-color: var(--lime);
  background: var(--lime);
}

.matrix-grid i.dim {
  background: rgba(216, 255, 69, 0.15);
}

.matrix-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.matrix-live b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(216, 255, 69, 0.13);
}

.login-art-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 38px;
  color: rgba(241, 239, 231, 0.28);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.login-panel {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  padding: clamp(28px, 4.5vw, 64px);
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 100% 1px no-repeat,
    var(--paper);
}

.login-form-wrap {
  width: min(100%, 430px);
  margin: auto;
}

.login-form-head h2 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.login-form-head p {
  color: var(--muted);
  font-size: 13px;
}

#loginForm {
  margin-top: 34px;
}

.field {
  display: block;
  margin-bottom: 22px;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.field input::placeholder {
  color: rgba(102, 113, 105, 0.5);
  font-size: 13px;
}

.field input:focus {
  border-bottom-color: var(--ink);
  box-shadow: 0 2px 0 var(--lime);
}

.form-error {
  min-height: 22px;
  margin: -5px 0 12px;
  color: var(--red);
  font-size: 12px;
}

.form-error:empty::before {
  content: "\00a0";
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.18s var(--ease),
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.button:hover:not(:disabled) {
  transform: translate(-1px, -1px);
}

.button--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.button--primary:hover:not(:disabled) {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.button--lime {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.button--lime:hover:not(:disabled) {
  background: var(--white);
}

.button--ghost:hover:not(:disabled) {
  background: var(--ink);
  color: var(--lime);
}

.button--wide {
  width: 100%;
  height: 52px;
  justify-content: space-between;
  padding: 0 18px;
}

.button-arrow {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.18s var(--ease);
}

.button:hover .button-arrow {
  transform: translate(3px, -3px);
}

.button:disabled {
  opacity: 0.45;
}

.demo-access {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.demo-access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.demo-access-head span {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.demo-access-head i {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.demo-card {
  position: relative;
  display: flex;
  min-height: 62px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 34px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.4);
  text-align: left;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.demo-card:hover {
  border-color: var(--ink);
  background: var(--lime);
}

.demo-card strong {
  font-size: 13px;
  font-weight: 600;
}

.demo-card span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.demo-card:hover span {
  color: var(--ink-soft);
}

.demo-card b {
  position: absolute;
  top: 11px;
  right: 11px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.demo-card--admin {
  background: var(--ink);
  color: var(--paper);
}

.demo-card--admin span {
  color: rgba(241, 239, 231, 0.5);
}

.demo-card--admin:hover {
  background: var(--ink);
  color: var(--lime);
}

.login-panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.login-panel-foot span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.login-panel-foot b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime-deep);
}

/* App shell */

.app-view {
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  height: 76px;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  padding: 0 clamp(18px, 3vw, 44px);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(241, 239, 231, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.brand:hover .brand-mark {
  background: var(--lime);
  color: var(--ink);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy b {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand-copy i {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: 2px;
}

.nav-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav-button:hover {
  color: var(--ink);
}

.nav-button.is-active {
  color: var(--ink);
}

.nav-button.is-active::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  background: var(--lime);
  content: "";
}

.nav-count {
  min-width: 17px;
  padding: 1px 4px;
  border: 1px solid var(--line-strong);
  font-size: 8px;
  line-height: 1.4;
  text-align: center;
}

.nav-button.is-active .nav-count {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.release-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  line-height: 1.2;
}

.release-mini span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.release-mini b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.icon-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.icon-button:hover {
  border-color: var(--ink);
  background: var(--white);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}

.text-button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.text-button:hover {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.profile-button {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 3px;
  border: 1px solid transparent;
  background: none;
  text-align: left;
}

.profile-button:hover,
.profile-button[aria-expanded="true"] {
  border-color: var(--line);
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--lime);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.profile-copy b {
  max-width: 74px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy i {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.05em;
}

.chevron {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.profile-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  right: 0;
  width: 264px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--paper-hi);
  box-shadow: var(--shadow-hard);
  animation: pop 0.18s var(--ease);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-menu-head .avatar {
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.profile-menu-head b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.2;
}

.profile-menu-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.permission-block {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.permission-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 10px;
}

.permission-block-head span {
  color: var(--muted);
}

.permission-block-head b {
  font-family: var(--mono);
  font-size: 10px;
}

.permission-block.is-locked .permission-block-head b {
  color: var(--red);
}

.menu-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 12px;
  text-align: left;
}

.menu-action span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.menu-action:hover {
  color: var(--red);
}

.lock-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(18px, 3vw, 44px);
  border-bottom: 1px solid var(--ink);
  background: var(--orange);
  color: var(--white);
}

.lock-banner-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.lock-banner div {
  flex: 1;
}

.lock-banner b {
  font-size: 12px;
}

.lock-banner p {
  margin-top: 1px;
  font-size: 10px;
  opacity: 0.85;
}

.lock-banner .text-button {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.view-root {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 44px) 90px;
}

.view-root:focus {
  outline: none;
}

.view-enter {
  animation: view-in 0.42s var(--ease) both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
}

/* Hero */

.hero {
  display: grid;
  padding: clamp(34px, 4.3vw, 64px) 0 36px;
  border-bottom: 1px solid var(--line-strong);
  gap: clamp(24px, 3.5vw, 58px);
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  max-width: 900px;
  margin: 20px 0 20px;
  font-family: var(--display);
  font-size: clamp(54px, 6.2vw, 102px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero-title em {
  display: inline;
  padding: 0 0.06em 0.02em;
  background: linear-gradient(transparent 68%, var(--lime) 68%);
  font-style: normal;
  white-space: nowrap;
}

.hero-sub {
  max-width: 540px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
  gap: 8px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.meta-chip b {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
  gap: 10px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  font-size: 12px;
  font-weight: 600;
}

.hero-link:hover {
  background: var(--lime);
}

.release-card {
  position: relative;
  display: flex;
  min-height: 316px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 6px 6px 0 rgba(20, 33, 27, 0.18);
  color: var(--paper);
  isolation: isolate;
}

.release-card::before {
  position: absolute;
  z-index: -1;
  right: -12px;
  bottom: -26px;
  color: transparent;
  content: "09";
  font-family: var(--display);
  font-size: 180px;
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 1;
  opacity: 0.26;
  -webkit-text-stroke: 1px rgba(216, 255, 69, 0.35);
}

.release-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(216, 255, 69, 0.14) 0.7px, transparent 0.8px);
  background-size: 11px 11px;
  content: "";
  mask-image: linear-gradient(to top, #000, transparent 80%);
}

.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(241, 239, 231, 0.48);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.release-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.release-live b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(216, 255, 69, 0.12);
}

.release-main {
  margin: 20px 0 16px;
}

.release-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(241, 239, 231, 0.55);
  font-size: 10px;
}

.release-countdown {
  color: var(--lime);
  font-family: var(--mono);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.release-target {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.7;
}

.release-target b {
  color: var(--lime);
  font-weight: 600;
}

.release-foot {
  padding-top: 15px;
  border-top: 1px solid rgba(241, 239, 231, 0.15);
}

.release-days {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3px;
}

.release-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(241, 239, 231, 0.3);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1;
}

.release-day i {
  display: block;
  width: 100%;
  height: 12px;
  border: 1px solid rgba(241, 239, 231, 0.18);
  background: rgba(241, 239, 231, 0.04);
}

.release-day.is-open {
  color: rgba(241, 239, 231, 0.68);
}

.release-day.is-open i {
  border-color: rgba(216, 255, 69, 0.55);
  background: rgba(216, 255, 69, 0.22);
}

.release-day.is-next i {
  border-color: var(--lime);
  background: var(--lime);
}

.release-horizon {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: rgba(241, 239, 231, 0.42);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.release-horizon b {
  color: var(--paper);
  font-weight: 500;
}

/* Focus banner */

.focus-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  border-left: 6px solid var(--lime);
  background: var(--paper-hi);
}

.focus-banner.is-urgent {
  border-left-color: var(--orange);
  background: #fff3ed;
}

.focus-pulse {
  position: relative;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
}

.focus-pulse::after {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  content: "";
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  from {
    opacity: 0.8;
    transform: scale(0.7);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

.focus-copy {
  flex: 1;
}

.focus-copy b {
  display: block;
  font-size: 12px;
}

.focus-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.focus-copy time {
  font-family: var(--mono);
  font-weight: 600;
}

/* Stats ribbon */

.stats-ribbon {
  display: grid;
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.stat-cell:first-child {
  padding-left: 0;
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 3px;
}

.stat-value b {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.stat-value span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.stat-note {
  color: var(--muted);
  font-size: 9px;
}

.no-show-meter {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.no-show-meter i {
  width: 13px;
  height: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
}

.no-show-meter i.is-filled {
  border-color: var(--orange);
  background: var(--orange);
}

.no-show-meter.is-locked i.is-filled {
  border-color: var(--red);
  background: var(--red);
}

.stat-cell.is-warning .stat-value b {
  color: var(--red);
}

/* Catalog */

.catalog {
  padding-top: 40px;
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.section-title span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.catalog-count {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  position: relative;
  display: flex;
  width: 238px;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--paper-hi);
}

.search-box:focus-within {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--lime);
}

.search-box svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}

.search-box input::placeholder {
  color: rgba(102, 113, 105, 0.7);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0 16px;
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.filter-chip span {
  font-family: var(--mono);
  font-size: 8px;
  opacity: 0.65;
}

.toolbar-divider {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: var(--line);
}

.available-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
}

.available-toggle i {
  position: relative;
  width: 25px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.18s ease;
}

.available-toggle i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: transform 0.18s var(--ease);
}

.available-toggle.is-active {
  color: var(--ink);
}

.available-toggle.is-active i {
  border-color: var(--ink);
  background: var(--lime);
}

.available-toggle.is-active i::after {
  background: var(--ink);
  transform: translateX(11px);
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.instrument-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: var(--paper-hi);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s ease;
}

.instrument-card:hover {
  z-index: 1;
  border-color: var(--ink);
  box-shadow: var(--shadow-hard);
  transform: translate(-3px, -3px);
}

.instrument-card.is-disabled:hover {
  box-shadow: none;
  transform: none;
}

.card-visual {
  position: relative;
  height: 152px;
  flex: 0 0 auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: var(--sage);
}

.cat-0 .card-visual {
  background: #c9d8c4;
}

.cat-1 .card-visual {
  background: #d8d3bb;
}

.cat-2 .card-visual {
  background: #c6d8df;
}

.cat-3 .card-visual {
  background: #e7c9b9;
}

.cat-4 .card-visual {
  background: #d3d0df;
}

.cat-5 .card-visual {
  background: #d8d1c2;
}

.card-visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 33, 27, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 27, 0.11) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  mask-image: linear-gradient(to right, #000, transparent 88%);
}

.card-visual::after {
  position: absolute;
  right: 24px;
  bottom: -34px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(20, 33, 27, 0.25);
  border-radius: 50%;
  content: "";
}

.card-index {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 13px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.card-status {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(20, 33, 27, 0.3);
  background: rgba(250, 248, 241, 0.55);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.card-status::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.card-status.is-full::before {
  background: var(--orange);
}

.card-status.is-maintenance {
  background: var(--ink);
  color: var(--paper);
}

.card-status.is-maintenance::before {
  background: var(--orange);
}

.instrument-glyph {
  position: absolute;
  z-index: 1;
  right: 15px;
  bottom: -2px;
  width: 158px;
  height: 132px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
  opacity: 0.84;
}

.card-category {
  position: absolute;
  z-index: 2;
  bottom: 11px;
  left: 13px;
  padding: 3px 7px;
  border: 1px solid rgba(20, 33, 27, 0.28);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 0;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-body h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.card-code {
  flex: 0 0 auto;
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.card-model {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-meta svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.card-availability {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.card-availability b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.card-availability span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.card-cta {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.card-cta:hover:not(:disabled) {
  background: var(--ink);
  color: var(--lime);
}

.card-cta:disabled {
  border-color: var(--line);
  color: var(--muted);
  opacity: 0.65;
}

.card-cta svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.empty-state {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 1px solid var(--line);
  background: rgba(250, 248, 241, 0.42);
  text-align: center;
}

.empty-glyph {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.empty-glyph svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.empty-state h3 {
  font-family: var(--display);
  font-size: 22px;
}

.empty-state p {
  max-width: 360px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.empty-state .button {
  margin-top: 18px;
}

/* Page heads */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 0 25px;
  border-bottom: 1px solid var(--line-strong);
}

.page-head h1 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.page-head p {
  max-width: 470px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.page-head-side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
}

.head-stat {
  text-align: right;
}

.head-stat b {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.head-stat span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.09em;
}

/* Bookings */

.booking-layout {
  display: grid;
  padding-top: 26px;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 318px;
}

.booking-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2px;
}

.list-heading h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.list-heading span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.booking-card {
  position: relative;
  display: grid;
  min-height: 150px;
  border: 1px solid var(--line-strong);
  background: var(--paper-hi);
  grid-template-columns: 104px minmax(0, 1fr) 224px;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.booking-card.is-urgent {
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--lime);
}

.booking-card.is-inuse {
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.booking-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  border-right: 1px solid var(--line);
  background: var(--paper-dim);
  text-align: center;
}

.booking-card.is-urgent .booking-date {
  background: var(--lime);
}

.booking-card.is-inuse .booking-date {
  background: var(--ink);
  color: var(--paper);
}

.booking-date b {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.booking-date span {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.booking-card.is-inuse .booking-date span {
  color: rgba(241, 239, 231, 0.52);
}

.booking-date i {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.booking-card.is-inuse .booking-date i {
  border-top-color: rgba(241, 239, 231, 0.18);
  color: rgba(241, 239, 231, 0.48);
}

.booking-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 17px 20px;
}

.booking-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-chip::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-chip--reserved {
  background: rgba(216, 255, 69, 0.3);
}

.status-chip--inuse {
  border-color: var(--lime);
  background: var(--ink);
  color: var(--lime);
}

.status-chip--completed {
  color: var(--muted);
}

.status-chip--noshow {
  border-color: var(--red);
  background: rgba(184, 52, 34, 0.08);
  color: var(--red);
}

.booking-code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.booking-main h3 {
  margin-top: 7px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-main h3 span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.booking-time {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.booking-time span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.booking-location {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.booking-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 17px 18px;
  border-left: 1px solid var(--line);
  background: rgba(230, 227, 215, 0.34);
}

.booking-action-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.booking-countdown {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.booking-countdown.is-due {
  color: var(--red);
}

.booking-action-note {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.booking-action .button {
  width: 100%;
  height: 38px;
  min-height: 38px;
  font-size: 11px;
}

.booking-action .button--primary {
  background: var(--ink);
  color: var(--lime);
}

.booking-action .button--accent {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.booking-action .button--accent:hover {
  background: var(--red);
  box-shadow: 3px 3px 0 var(--ink);
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-card {
  padding: 21px;
  border: 1px solid var(--line-strong);
  background: var(--paper-hi);
}

.side-card--dark {
  background: var(--ink);
  color: var(--paper);
}

.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-card--dark .side-card-head {
  border-bottom-color: rgba(241, 239, 231, 0.17);
}

.side-card h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
}

.side-card-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.side-card--dark .side-card-head span {
  color: rgba(241, 239, 231, 0.45);
}

.timeline {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  position: absolute;
  top: 17px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-hi);
}

.timeline-step.is-active .timeline-dot {
  border-color: var(--ink);
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(216, 255, 69, 0.2);
}

.side-card--dark .timeline-dot {
  border-color: rgba(241, 239, 231, 0.45);
  background: var(--ink);
}

.side-card--dark .timeline-step.is-active .timeline-dot {
  border-color: var(--lime);
  background: var(--lime);
}

.timeline-copy b {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.timeline-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.side-card--dark .timeline-copy p {
  color: rgba(241, 239, 231, 0.5);
}

.rule-lines {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 16px;
}

.rule-line {
  display: grid;
  gap: 9px;
  grid-template-columns: 22px 1fr;
}

.rule-line > b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.rule-line div b {
  display: block;
  font-size: 10px;
}

.rule-line div p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.side-card--dark .rule-line div p {
  color: rgba(241, 239, 231, 0.5);
}

.side-card--dark .rule-line > b {
  color: rgba(241, 239, 231, 0.35);
}

/* Records */

.record-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.record-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 12px;
}

.record-list {
  border-top: 1px solid var(--ink);
}

.record-row {
  display: grid;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  grid-template-columns: 78px minmax(0, 1fr) auto;
}

.record-date {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.record-date b {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.record-date span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.record-main {
  min-width: 0;
}

.record-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.record-title h3 {
  overflow: hidden;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.record-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--red);
  font-size: 9px;
}

.record-note svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.record-photos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.photo-thumb {
  position: relative;
  width: 58px;
  height: 48px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper-dim);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 0.25s var(--ease);
}

.photo-thumb:hover img {
  transform: scale(1.06);
}

.photo-thumb span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2px 3px;
  background: rgba(20, 33, 27, 0.76);
  color: var(--white);
  font-family: var(--mono);
  font-size: 6px;
  text-align: center;
}

.photo-empty {
  display: flex;
  width: 58px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  text-align: center;
}

.photo-empty.is-missing {
  border-color: rgba(184, 52, 34, 0.4);
  color: var(--red);
}

/* Admin */

.admin-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}

.admin-stats {
  display: grid;
  padding: 22px 0 2px;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.admin-stat {
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--paper-hi);
}

.admin-stat span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.admin-stat b {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.admin-section {
  padding-top: 26px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.admin-section-head h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.admin-section-head > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.admin-section-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-section-tools > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.admin-section-tools .mini-button {
  border-color: var(--ink);
  background: var(--lime);
  color: var(--ink);
}

.admin-section-tools .mini-button:hover {
  background: var(--ink);
  color: var(--lime);
}

.admin-form-intro {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px;
  border-left: 3px solid var(--lime);
  background: var(--paper-hi);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.admin-form-intro svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}

.data-table th {
  padding: 9px 10px 9px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 11px 10px 11px 0;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.data-table td:last-child,
.data-table th:last-child {
  padding-right: 0;
  text-align: right;
}

.data-table .user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-size: 11px;
}

.user-cell b {
  display: block;
  font-size: 11px;
  line-height: 1.2;
}

.user-cell span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.status-text {
  font-family: var(--mono);
  font-size: 8px;
}

.status-text.is-locked {
  color: var(--red);
}

.status-text.is-ok {
  color: #426b3c;
}

.mini-button {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 8px;
  white-space: nowrap;
}

.mini-button:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.mini-button.is-danger {
  border-color: var(--red);
  color: var(--red);
}

.mini-button.is-danger:hover:not(:disabled) {
  background: var(--red);
  color: var(--white);
}

.mini-button.is-restore {
  border-color: var(--ink);
  background: var(--lime);
  color: var(--ink);
}

.admin-instrument-list {
  display: flex;
  flex-direction: column;
}

.admin-instrument {
  display: grid;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.admin-instrument-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.admin-instrument b {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-instrument span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.admin-instrument .mini-button {
  min-width: 62px;
}

.recent-noshows {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.recent-noshow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}

.recent-noshow b {
  display: block;
  font-size: 10px;
}

.recent-noshow span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.recent-noshow time {
  flex: 0 0 auto;
  color: var(--red);
  font-family: var(--mono);
  font-size: 7px;
}

/* Layers and drawer */

.layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
}

.layer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 27, 0.48);
  backdrop-filter: blur(4px);
  animation: fade-in 0.22s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.booking-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(810px, 100%);
  height: 100%;
  flex-direction: column;
  margin-left: auto;
  border-left: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: -18px 0 50px rgba(20, 33, 27, 0.22);
  animation: drawer-in 0.34s var(--ease) both;
}

@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
}

.drawer-head {
  position: relative;
  flex: 0 0 auto;
  padding: 23px 28px 19px;
  border-bottom: 1px solid var(--line-strong);
  background:
    radial-gradient(rgba(20, 33, 27, 0.1) 0.6px, transparent 0.7px) 0 0 / 6px 6px,
    var(--paper-hi);
}

.drawer-head h2 {
  max-width: 620px;
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.drawer-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.drawer-close:hover {
  background: var(--ink);
  color: var(--lime);
}

.drawer-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 130px;
}

.drawer-section + .drawer-section {
  margin-top: 26px;
}

.drawer-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.drawer-section-head h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-section-head h3 b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
}

.drawer-section-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.date-strip {
  display: flex;
  overflow-x: auto;
  padding-bottom: 5px;
  gap: 5px;
  scrollbar-width: thin;
}

.date-button {
  position: relative;
  display: flex;
  width: 76px;
  min-width: 76px;
  height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 9px;
  border: 1px solid var(--line);
  background: var(--paper-hi);
  line-height: 1.2;
  text-align: left;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.date-button:hover:not(:disabled) {
  border-color: var(--ink);
}

.date-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.date-button.is-locked {
  color: var(--muted);
  opacity: 0.55;
  background: transparent;
}

.date-button span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.date-button b {
  margin: 3px 0 2px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.date-button i {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  font-style: normal;
}

.date-button.is-active i {
  color: rgba(216, 255, 69, 0.65);
}

.date-button.is-locked i {
  color: var(--orange);
  opacity: 1;
}

.date-button em {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 1px 3px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 5px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.slot-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.slot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.slot-legend i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper-hi);
}

.slot-legend .is-selected {
  border-color: var(--ink);
  background: var(--ink);
}

.slot-legend .is-booked {
  background: repeating-linear-gradient(45deg, transparent, transparent 2px, var(--line) 2px, var(--line) 3px);
}

.slot-legend .is-past {
  opacity: 0.4;
}

.slot-past-toggle {
  margin-left: auto;
  padding: 0 0 1px;
  border: 0;
  border-bottom: 1px dashed var(--line-strong);
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.02em;
}

.slot-past-toggle:hover {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.slot-button {
  position: relative;
  height: 42px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-hi);
  font-family: var(--mono);
  font-size: 10px;
  text-align: left;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.slot-button:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--white);
}

.slot-button.is-booked {
  color: var(--muted);
  background: repeating-linear-gradient(45deg, rgba(20, 33, 27, 0.035), rgba(20, 33, 27, 0.035) 2px, transparent 2px, transparent 5px);
  text-decoration: line-through;
}

.slot-button.is-past,
.slot-button.is-locked {
  color: rgba(102, 113, 105, 0.5);
  background: transparent;
}

.slot-button.is-past {
  border-color: rgba(20, 33, 27, 0.08);
  opacity: 0.62;
  background: rgba(20, 33, 27, 0.022);
}

.slot-button.is-booked::after,
.slot-button.is-locked::after,
.slot-button.is-past::after {
  position: absolute;
  top: 50%;
  right: 7px;
  color: var(--muted);
  content: attr(data-label);
  font-family: var(--sans);
  font-size: 7px;
  text-decoration: none;
  transform: translateY(-50%);
}

.slot-button.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.slot-button.is-range {
  border-color: var(--ink);
  background: var(--lime);
  color: var(--ink);
}

.slot-button.is-range::after {
  color: var(--ink);
}

.slot-button.is-anchor {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.slot-button.is-anchor::before {
  position: absolute;
  right: 5px;
  bottom: 3px;
  color: var(--lime);
  content: "START";
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.04em;
}

.booking-locked-notice,
.booking-hint {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(250, 248, 241, 0.54);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.booking-hint {
  margin-top: 18px;
  border-left: 3px solid var(--lime);
}

.booking-locked-notice {
  border-color: rgba(238, 91, 53, 0.45);
  background: rgba(238, 91, 53, 0.07);
  color: var(--ink-soft);
}

.booking-locked-notice b {
  display: block;
  color: var(--red);
}

.drawer-foot {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 28px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  background: rgba(241, 239, 231, 0.96);
  backdrop-filter: blur(12px);
}

.selection-summary {
  position: relative;
  flex: 1;
  padding-right: 42px;
}

.selection-summary span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.selection-summary b {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.selection-summary i {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
}

.selection-summary.is-empty b {
  color: var(--muted);
  font-size: 15px;
}

.drawer-confirm {
  min-width: 168px;
  height: 48px;
}

/* Modal */

.modal-layer {
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(88dvh, 860px);
  overflow-y: auto;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 rgba(20, 33, 27, 0.9);
  animation: modal-in 0.25s var(--ease) both;
}

.modal--narrow {
  width: min(520px, 100%);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line-strong);
}

.modal-head h2 {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.modal-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.modal-close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--lime);
}

.modal-close svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.modal-body {
  padding: 22px 26px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 26px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper-hi);
}

.rules-intro {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  background: var(--paper-hi);
}

.rules-intro b {
  display: block;
  font-size: 11px;
}

.rules-intro p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.rule-item {
  display: grid;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  gap: 14px;
  grid-template-columns: 36px minmax(0, 1fr);
}

.rule-number {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.rule-item h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.rule-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.rule-item mark {
  padding: 0 3px;
  background: var(--lime);
  color: var(--ink);
}

.rules-note {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.7;
}

/* Photo capture */

.photo-instruction {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-left: 3px solid var(--lime);
  background: var(--paper-hi);
}

.photo-instruction svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.photo-instruction b {
  display: block;
  font-size: 10px;
}

.photo-instruction p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.capture-zone {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  background:
    radial-gradient(rgba(20, 33, 27, 0.12) 0.6px, transparent 0.7px) 0 0 / 8px 8px,
    var(--paper-hi);
  text-align: center;
}

.capture-zone.is-preview {
  border-style: solid;
  background: var(--ink);
}

.capture-glyph {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
}

.capture-glyph svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.capture-zone h3 {
  font-family: var(--display);
  font-size: 20px;
}

.capture-zone p {
  max-width: 320px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.capture-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.capture-preview {
  position: relative;
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  background: var(--ink);
}

.capture-preview img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.preview-frame {
  position: absolute;
  inset: 12px;
  pointer-events: none;
}

.preview-frame i {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--lime);
  border-style: solid;
}

.preview-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.preview-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.preview-frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.preview-frame i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.preview-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 3px 6px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
}

.preview-remove {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 7px;
  border: 1px solid var(--paper);
  background: rgba(20, 33, 27, 0.7);
  color: var(--paper);
  font-size: 8px;
}

.photo-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.modal--photos {
  display: flex;
  width: min(620px, 100%);
  max-height: 90dvh;
  flex-direction: column;
  overflow: hidden;
}

.modal--photos .modal-head,
.modal--photos .modal-foot {
  flex: 0 0 auto;
}

.modal--photos .modal-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.checkout-examples {
  margin-bottom: 14px;
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--paper-hi);
}

.checkout-required {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px;
  border: 1px solid rgba(207, 71, 35, 0.4);
  border-left: 4px solid var(--orange);
  background: rgba(207, 71, 35, 0.06);
}

.checkout-required > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
}

.checkout-required svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.checkout-required b {
  display: block;
  font-size: 10px;
}

.checkout-required p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.65;
}

.fixed-checklist {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
}

.fixed-check {
  display: grid;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--paper-hi);
  text-align: left;
  gap: 9px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.fixed-check:hover {
  border-color: var(--ink);
}

.fixed-check.is-active {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--lime);
}

.fixed-check.is-done {
  background: rgba(216, 255, 69, 0.12);
}

.fixed-check:disabled {
  opacity: 0.58;
}

.fixed-thumb {
  display: grid;
  width: 52px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-dim);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.fixed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fixed-copy {
  min-width: 0;
}

.fixed-copy b {
  display: block;
  font-size: 10px;
  line-height: 1.45;
}

.fixed-copy i {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
}

.fixed-state {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  white-space: nowrap;
}

.fixed-check.is-active .fixed-state {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.examples-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.examples-head b {
  font-size: 9px;
  font-weight: 600;
}

.examples-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.examples-grid {
  display: grid;
  margin-top: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.example-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink);
}

.example-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.88);
}

.example-card figcaption {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  background: var(--paper-hi);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.01em;
}

.example-card figcaption b {
  color: var(--muted);
  font-weight: 500;
}

.capture-zone.is-checkout {
  display: block;
  padding: 12px;
  text-align: left;
  background:
    radial-gradient(rgba(20, 33, 27, 0.1) 0.6px, transparent 0.7px) 0 0 / 8px 8px,
    var(--paper-hi);
}

.capture-zone.is-checkout:not(.has-photos) {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.checkout-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.checkout-intro h3 {
  font-family: var(--display);
  font-size: 21px;
}

.checkout-intro p {
  max-width: 390px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.checkout-photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-photo-head b {
  display: block;
  font-size: 11px;
}

.checkout-photo-head span {
  color: var(--muted);
  font-size: 8px;
}

.photo-counter {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 8px;
}

.checkout-thumbs {
  display: grid;
  margin: 10px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.checkout-thumb {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.checkout-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.checkout-thumb figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2px 5px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 7px;
}

.checkout-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(241, 239, 231, 0.7);
  background: rgba(20, 33, 27, 0.8);
  color: var(--paper);
}

.checkout-thumb button:hover {
  background: var(--red);
}

.checkout-thumb button svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.checkout-add {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--muted);
}

.checkout-add:hover {
  border-color: var(--ink);
  background: rgba(216, 255, 69, 0.18);
  color: var(--ink);
}

.checkout-add span {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}

.checkout-add i {
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
}

.capture-zone.is-checkout .capture-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.photo-more {
  display: grid;
  width: 34px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.photo-submit {
  min-width: 150px;
}

.photo-error {
  min-height: 18px;
  margin-top: 8px;
  color: var(--red);
  font-size: 9px;
}

/* Success */

.success-panel {
  padding: 30px 28px 24px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}

.success-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.success-panel h2 {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.success-panel > p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.success-ticket {
  margin: 22px 0;
  border: 1px solid var(--line-strong);
  text-align: left;
}

.success-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.success-ticket-row:last-child {
  border-bottom: 0;
}

.success-ticket-row span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.success-ticket-row b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.success-actions {
  display: flex;
  gap: 8px;
}

.success-actions .button {
  flex: 1;
}

/* Notifications */

.notification-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(410px, 100%);
  height: 100%;
  flex-direction: column;
  margin-left: auto;
  border-left: 1px solid var(--ink);
  background: var(--paper);
  animation: drawer-in 0.3s var(--ease) both;
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line-strong);
}

.notification-head h2 {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.notification-head p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 22px 30px;
}

.notification-item {
  display: flex;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.notification-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
}

.notification-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.notification-item.is-unread .notification-icon {
  border-color: var(--ink);
  background: var(--lime);
}

.notification-copy {
  flex: 1;
}

.notification-copy p {
  font-size: 10px;
  line-height: 1.65;
}

.notification-copy time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.notification-item.is-no_show .notification-icon,
.notification-item.is-locked .notification-icon {
  border-color: var(--red);
  color: var(--red);
}

.notification-item.is-locked .notification-icon {
  background: rgba(184, 52, 34, 0.1);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(13, 22, 18, 0.93);
  animation: fade-in 0.2s ease both;
}

.lightbox figure {
  max-width: min(1000px, 94vw);
  margin: 0;
}

.lightbox img {
  max-height: 78dvh;
  margin: 0 auto;
  border: 1px solid rgba(241, 239, 231, 0.22);
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  color: rgba(241, 239, 231, 0.62);
  font-family: var(--mono);
  font-size: 8px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(241, 239, 231, 0.4);
  background: transparent;
  color: var(--paper);
}

.lightbox-close:hover {
  background: var(--lime);
  color: var(--ink);
}

.lightbox-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

/* Toast */

.toast-root {
  position: fixed;
  z-index: 600;
  right: 20px;
  bottom: 20px;
  display: flex;
  width: min(360px, calc(100vw - 32px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-left: 4px solid var(--lime);
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(20, 33, 27, 0.2);
  color: var(--paper);
  font-size: 10px;
  line-height: 1.6;
  animation: toast-in 0.28s var(--ease) both;
  pointer-events: auto;
}

.toast.is-error {
  border-left-color: var(--orange);
}

.toast.is-leaving {
  animation: toast-out 0.22s ease both;
}

.toast-icon {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 1px;
  border: 1px solid rgba(241, 239, 231, 0.4);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
}

.toast.is-error .toast-icon {
  color: var(--orange);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(12px);
  }
}

/* Mobile nav */

.mobile-nav {
  display: none;
}

/* Skeleton / loading */

.loading-block {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.loading-block::before {
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 1px solid var(--line-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  content: "";
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton-line {
  height: 10px;
  background: linear-gradient(90deg, var(--paper-dim), var(--paper-hi), var(--paper-dim));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Shared inline icon details */

.button svg,
.hero-link svg,
.text-button svg,
.mini-button svg,
.menu-action svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

label.button {
  cursor: pointer;
  user-select: none;
}

.hero-meta svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.focus-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--lime);
}

.focus-icon svg,
.booking-hint svg,
.booking-locked-notice svg,
.rules-intro svg,
.photo-deadline svg,
.timeline-preview svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.booking-hint {
  align-items: flex-start;
}

.booking-hint svg {
  margin-top: 1px;
}

.booking-locked-notice svg {
  margin-top: 2px;
}

.booking-locked-notice > div {
  flex: 1;
}

.rules-intro > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.rules-intro svg {
  width: 15px;
  height: 15px;
}

.timeline-preview {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(241, 239, 231, 0.16);
  color: rgba(241, 239, 231, 0.58);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.03em;
}

.selection-clear {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.selection-clear:hover {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.booking-drawer:focus,
.notification-drawer:focus,
.modal:focus {
  outline: none;
}

.confirm-message {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.photo-deadline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -6px 0 14px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
}

.photo-deadline svg {
  margin-top: 1px;
  color: var(--orange);
}

.head-stat.is-warning b {
  color: var(--red);
}

.catalog {
  scroll-margin-top: 92px;
}

/* Responsive */

@media (max-width: 1260px) {
  .instrument-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-mini {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  }
}

@media (max-width: 1080px) {
  .main-nav .nav-button {
    padding: 0 9px;
  }

  .profile-copy {
    display: none;
  }

  .booking-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .booking-card {
    grid-template-columns: 90px minmax(0, 1fr) 198px;
  }

  .booking-main h3 {
    font-size: 19px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .login-view {
    display: flex;
    flex-direction: column;
  }

  .login-art {
    min-height: 330px;
    padding: 24px;
  }

  .login-art::before {
    top: -2%;
    right: -2%;
    font-size: 300px;
  }

  .login-art-copy {
    padding: 42px 0 30px;
  }

  .login-art-copy h1 {
    margin: 15px 0;
    font-size: clamp(46px, 9vw, 68px);
  }

  .login-art-copy p {
    font-size: 12px;
    line-height: 1.8;
  }

  .slot-matrix,
  .login-art-foot {
    display: none;
  }

  .login-panel {
    min-height: auto;
    padding: 38px 24px 28px;
  }

  .login-panel-foot {
    margin-top: 30px;
  }

  .topbar {
    height: 64px;
    gap: 14px;
    padding: 0 16px;
  }

  .brand-copy i {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .rules-trigger,
  .profile-copy,
  .chevron {
    display: none;
  }

  .view-root {
    padding: 0 16px calc(88px + env(safe-area-inset-bottom));
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 22px;
  }

  .hero-title {
    font-size: clamp(48px, 11vw, 76px);
  }

  .release-card {
    min-height: 250px;
  }

  .release-card::before {
    font-size: 140px;
  }

  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell {
    min-height: 86px;
    padding: 15px;
    border-bottom: 1px solid var(--line);
  }

  .stat-cell:first-child {
    padding-left: 15px;
  }

  .stat-cell:nth-child(2) {
    border-right: 0;
  }

  .catalog {
    padding-top: 28px;
  }

  .catalog-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .catalog-toolbar {
    width: 100%;
  }

  .search-box {
    flex: 1;
    width: auto;
  }

  .instrument-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .instrument-card {
    min-height: 0;
  }

  .booking-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-top: 30px;
  }

  .page-head-side {
    width: 100%;
    justify-content: space-between;
  }

  .booking-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .booking-action {
    grid-column: 1 / -1;
    display: grid;
    align-items: center;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    border-left: 0;
    gap: 8px 16px;
    grid-template-columns: 1fr auto;
  }

  .booking-action-label,
  .booking-action-note {
    grid-column: 1;
  }

  .booking-countdown {
    grid-column: 1;
    font-size: 18px;
  }

  .booking-action .button {
    width: auto;
    min-width: 138px;
    grid-row: 1 / span 3;
    grid-column: 2;
  }

  .record-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .record-photos {
    grid-column: 2;
    margin-top: 4px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-nav {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: rgba(241, 239, 231, 0.97);
    backdrop-filter: blur(14px);
  }

  .mobile-nav-button {
    position: relative;
    display: flex;
    flex: 1;
    min-height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 8px;
  }

  .mobile-nav-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
  }

  .mobile-nav-button.is-active {
    color: var(--ink);
  }

  .mobile-nav-button.is-active::before {
    position: absolute;
    top: -8px;
    width: 28px;
    height: 3px;
    background: var(--lime);
    content: "";
  }

  .mobile-nav-count {
    position: absolute;
    top: 3px;
    left: calc(50% + 5px);
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--mono);
    font-size: 6px;
    line-height: 13px;
  }

  .toast-root {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .booking-drawer {
    width: 100%;
  }

  .drawer-head,
  .drawer-body,
  .drawer-foot {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 620px) {
  .login-art {
    min-height: 280px;
  }

  .login-art-copy {
    padding: 30px 0 14px;
  }

  .login-art-copy h1 {
    font-size: 46px;
  }

  .login-art-copy p br {
    display: none;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-card {
    min-height: 54px;
  }

  .login-panel-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .brand-copy b {
    display: block;
    font-size: 10px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1;
  }

  .hero-actions .hero-link {
    flex: 0 0 auto;
  }

  .stats-ribbon {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .stat-cell {
    padding: 13px 10px;
  }

  .stat-cell:first-child {
    padding-left: 10px;
  }

  .stat-value b {
    font-size: 28px;
  }

  .filter-row {
    margin-top: 13px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .available-toggle {
    flex: 0 0 auto;
  }

  .toolbar-divider {
    display: none;
  }

  .booking-card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .booking-date b {
    font-size: 28px;
  }

  .booking-main {
    padding: 14px;
  }

  .booking-main h3 {
    white-space: normal;
  }

  .booking-main h3 span {
    display: none;
  }

  .booking-action {
    grid-template-columns: 1fr 118px;
  }

  .booking-action .button {
    width: 100%;
    min-width: 0;
    grid-column: 2;
    font-size: 10px;
  }

  .booking-action-note {
    display: none;
  }

  .side-card {
    padding: 17px;
  }

  .record-row {
    gap: 12px;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .record-title h3 {
    font-size: 16px;
  }

  .record-photos {
    gap: 5px;
  }

  .photo-thumb,
  .photo-empty {
    width: 52px;
    height: 43px;
  }

  .data-table {
    font-size: 10px;
  }

  .drawer-head {
    padding: 18px 18px 15px;
  }

  .drawer-head h2 {
    max-width: calc(100% - 45px);
    font-size: 27px;
  }

  .drawer-head p {
    max-width: calc(100% - 45px);
  }

  .drawer-close {
    top: 15px;
    right: 16px;
  }

  .drawer-body {
    padding: 18px 18px 126px;
  }

  .date-button {
    width: 76px;
    min-width: 76px;
    height: 68px;
  }

  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slot-button {
    padding-left: 7px;
    font-size: 9px;
  }

  .drawer-foot {
    gap: 12px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }

  .selection-summary b {
    font-size: 16px;
  }

  .drawer-confirm {
    min-width: 132px;
    height: 46px;
    padding: 0 12px;
    font-size: 11px;
  }

  .modal-layer {
    padding: 10px;
  }

  .modal {
    max-height: 94dvh;
    box-shadow: 6px 6px 0 rgba(20, 33, 27, 0.9);
  }

  .modal-head {
    padding: 19px 18px 14px;
  }

  .modal-head h2 {
    font-size: 27px;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-foot {
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  }

  .rules-intro {
    flex-direction: column;
    gap: 5px;
  }

  .capture-zone {
    min-height: 210px;
  }

  .success-panel {
    padding: 24px 18px 18px;
  }

  .success-panel h2 {
    font-size: 32px;
  }

  .notification-drawer {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
