﻿:root {
  --bg: #020302;
  --panel: rgba(10, 12, 10, 0.76);
  --panel-strong: rgba(18, 20, 17, 0.9);
  --text: #ffffff;
  --muted: #a7aea4;
  --green: #78b95c;
  --green-bright: #a9e47d;
  --coffee: #c5763e;
  --danger: #ff4d4d;
  --danger-soft: rgba(255, 77, 77, 0.16);
  --stroke: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(120, 185, 92, 0.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(197, 118, 62, 0.17), transparent 26%),
    linear-gradient(135deg, #030402 0%, #070907 45%, #010101 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.auth-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 440px);
  align-content: center;
  justify-content: center;
  gap: 0;
  min-height: 100vh;
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(22px, 5vh, 44px) 0;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 82%);
}

.ambient {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.35;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}

.ambient-one {
  top: 9%;
  left: 7%;
  background: rgba(120, 185, 92, 0.34);
}

.ambient-two {
  right: 8%;
  bottom: 11%;
  background: rgba(197, 118, 62, 0.28);
  animation-delay: -3s;
}

.ambient-three {
  top: 47%;
  left: 48%;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.1);
  animation-delay: -5s;
}

.brand-panel,
.login-card {
  position: relative;
  z-index: 1;
}

.brand-panel {
  z-index: 2;
  margin-bottom: -90px;
  text-align: center;
  pointer-events: none;
}

.logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(320px, 82vw);
  width: 100%;
  padding: 0;
  margin: 0 auto;
  filter: drop-shadow(0 24px 54px rgba(120, 185, 92, 0.2));
}

.logo-link {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo-link:hover .brand-logo,
.logo-link:focus-visible .brand-logo {
  transform: scale(1.02);
}

.logo-link:focus-visible {
  outline: 2px solid rgba(169, 228, 125, 0.7);
  outline-offset: 6px;
  border-radius: 12px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s ease;
}

.eyebrow {
  margin: 0 0 7px;
  color: rgba(169, 228, 125, 0.9);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.login-card {
  width: 100%;
  max-width: 100%;
  padding: 112px 36px 34px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(26px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 34%, transparent 68%, rgba(120, 185, 92, 0.18));
  opacity: 0.32;
}

.card-glow {
  position: absolute;
  top: -96px;
  right: -88px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(120, 185, 92, 0.22);
  filter: blur(30px);
}

.login-heading {
  position: relative;
  margin-bottom: 26px;
  text-align: center;
}

.login-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.login-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  position: relative;
}

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

.field input {
  width: 100%;
  height: 56px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  outline: none;
  background: rgba(0, 0, 0, 0.32);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.48);
  font-weight: 600;
}

.field input:focus {
  border-color: rgba(169, 228, 125, 0.75);
  background: rgba(6, 10, 6, 0.72);
  box-shadow: 0 0 0 4px rgba(120, 185, 92, 0.13), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.field:not(.password-field) input {
  padding: 0 18px;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding: 0 58px 0 18px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
  transform: translateY(-50%);
}

.toggle-password:hover {
  background: rgba(120, 185, 92, 0.18);
}

.toggle-password:active {
  transform: translateY(-50%) scale(0.94);
}

.toggle-password span {
  position: relative;
  width: 18px;
  height: 12px;
  border: 2px solid #dfe8dc;
  border-radius: 999px 999px 8px 8px;
}

.toggle-password span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dfe8dc;
  transform: translate(-50%, -38%);
}

.password-field.is-error input {
  border-color: var(--danger);
  background: var(--danger-soft);
  box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.14), 0 0 35px rgba(255, 77, 77, 0.16);
}

.password-field.is-shaking .password-wrap {
  animation: shake 0.44s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.error-message {
  min-height: 22px;
  margin: -4px 0 16px;
  color: #ff8a8a;
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.error-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.remember input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.support-link {
  color: var(--green-bright);
  font-weight: 700;
  text-decoration: none;
}

.support-link:hover {
  text-decoration: underline;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;
  color: #081006;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green-bright), var(--green) 48%, var(--coffee));
  box-shadow: 0 16px 36px rgba(120, 185, 92, 0.26);
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(120, 185, 92, 0.34);
  filter: saturate(1.08);
}

.submit-button:active {
  transform: translateY(0) scale(0.99);
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-2px);
  }

  20%,
  80% {
    transform: translateX(4px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-7px);
  }

  40%,
  60% {
    transform: translateX(7px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -22px, 0) scale(1.08);
  }
}

@media (max-width: 940px) {
  .auth-page {
    width: min(440px, calc(100% - 32px));
    padding: 34px 0;
  }
}

@media (max-width: 620px) {
  .auth-page {
    width: min(440px, calc(100% - 24px));
    padding: 16px 0 24px;
  }

  .brand-panel {
    margin-bottom: -76px;
  }

  .logo-shell {
    max-width: min(280px, 82vw);
  }

  .login-card {
    padding: 94px 18px 22px;
    border-radius: 26px;
  }

  .login-heading {
    margin-bottom: 24px;
  }

  .field input,
  .submit-button {
    height: 56px;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .auth-page {
    width: calc(100% - 16px);
  }

  .brand-panel {
    margin-bottom: -66px;
  }

  .logo-shell {
    max-width: min(244px, 82vw);
  }

  .login-card {
    padding: 82px 14px 18px;
    border-radius: 22px;
  }

  .login-heading h2 {
    font-size: 1.42rem;
  }
}

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

/* вЂ”вЂ” Detailing Lab schedule (QR) вЂ”вЂ” */
.schedule-page {
  width: min(520px, calc(100% - 32px));
  grid-template-columns: minmax(0, 520px);
}

.schedule-card {
  padding-bottom: 28px;
}

.schedule-lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.status-panel {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(169, 228, 125, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(120, 185, 92, 0.16), rgba(0, 0, 0, 0.28)),
    rgba(0, 0, 0, 0.28);
}

.status-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 6px rgba(120, 185, 92, 0.16);
}

.status-title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.status-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.freshness-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.fresh-card {
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
}

.fresh-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.fresh-value {
  margin: 0;
  color: var(--green-bright);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.schedule-block {
  position: relative;
  margin-bottom: 20px;
}

.block-title {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.visit-list,
.care-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.visit-item,
.care-list li {
  display: grid;
  gap: 6px 12px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.visit-item {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.visit-date {
  color: var(--green-bright);
  font-size: 0.88rem;
  font-weight: 800;
}

.visit-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.visit-badge {
  color: rgba(169, 228, 125, 0.95);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.care-list li {
  grid-template-columns: 1fr;
}

.care-period {
  color: rgba(169, 228, 125, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.care-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.machine-id {
  position: relative;
  margin: 6px 0 0;
  color: rgba(167, 174, 164, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 620px) {
  .schedule-page {
    width: min(520px, calc(100% - 24px));
  }

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

  .visit-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date badge"
      "title title";
  }

  .visit-date {
    grid-area: date;
  }

  .visit-badge {
    grid-area: badge;
  }

  .visit-title {
    grid-area: title;
  }
}

@media (max-width: 360px) {
  .schedule-page {
    width: calc(100% - 16px);
  }
}

/* —— Cabinet —— */
.cabinet-page {
  width: min(520px, calc(100% - 32px));
  grid-template-columns: minmax(0, 520px);
}

.cabinet-card {
  padding-bottom: 28px;
}

.cabinet-top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 4px;
}

.cabinet-top .login-heading {
  margin-bottom: 0;
}

.cabinet-footer {
  margin-top: 16px;
}

.logout-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.logout-button:hover,
.secondary-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  text-decoration: none;
}

.logout-button:active,
.secondary-button:active {
  transform: scale(0.99);
}

.secondary-button {
  border-color: rgba(169, 228, 125, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.28);
  color: var(--green-bright);
}

.secondary-button:hover {
  border-color: rgba(169, 228, 125, 0.55);
  background: rgba(120, 185, 92, 0.14);
}

.logout-link {
  display: none;
}

.cabinet-body {
  position: relative;
}

.submit-button:disabled,
.submit-button.is-loading {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  filter: none;
}

@media (max-width: 620px) {
  .cabinet-page {
    width: min(520px, calc(100% - 24px));
  }
}

@media (max-width: 360px) {
  .cabinet-page {
    width: calc(100% - 16px);
  }
}

/* —— Service form / journal —— */
.service-page {
  width: min(440px, calc(100% - 32px));
  grid-template-columns: minmax(0, 440px);
}

.service-form {
  position: relative;
  display: block;
  width: 100%;
}

.service-flash {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.service-flash-success {
  color: #d7f5c4;
  border: 1px solid rgba(169, 228, 125, 0.35);
  background: rgba(120, 185, 92, 0.14);
}

.service-flash-error {
  color: #ffb0b0;
  border: 1px solid rgba(255, 77, 77, 0.35);
  background: rgba(255, 77, 77, 0.12);
}

.service-block {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 22px;
}

.service-block .block-title {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-list {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list-item {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
}

.service-list-item:last-child {
  margin-bottom: 0;
}

.service-choice {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.34);
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.service-choice-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.service-choice-box {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.service-choice-box-radio {
  border-radius: 50%;
}

.service-choice-box-check {
  border-radius: 7px;
}

.service-choice-text {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-choice-input:checked + .service-choice-box {
  border-color: var(--green-bright);
  background: rgba(120, 185, 92, 0.22);
}

.service-choice-input:checked + .service-choice-box-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-bright);
  transform: translate(-50%, -50%);
}

.service-choice-input:checked + .service-choice-box-check::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid var(--green-bright);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.service-choice-input:checked ~ .service-choice-text {
  color: #fff;
}

.service-choice:focus-within,
.service-choice:has(.service-choice-input:checked) {
  border-color: rgba(169, 228, 125, 0.5);
  background: rgba(120, 185, 92, 0.12);
}

.service-choice:focus-within {
  box-shadow: 0 0 0 3px rgba(120, 185, 92, 0.14);
}

.service-note,
.service-select {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  outline: none;
  background: rgba(0, 0, 0, 0.32);
  font: inherit;
  box-sizing: border-box;
}

.service-note {
  min-height: 108px;
  padding: 14px 16px;
  resize: vertical;
}

.service-select {
  height: 52px;
  padding: 0 14px;
  margin: 0 0 14px;
}

.service-note:focus,
.service-select:focus {
  border-color: rgba(169, 228, 125, 0.75);
  box-shadow: 0 0 0 4px rgba(120, 185, 92, 0.13);
}

.service-submit {
  margin-top: 0;
}

.wizard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.wizard-actions .submit-button,
.wizard-actions .secondary-button {
  width: 100%;
  margin: 0;
}

.wizard-step > .submit-button {
  width: 100%;
  margin-top: 16px;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}

.wizard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.wizard-dot.is-active {
  background: var(--green-bright);
}

.wizard-step {
  display: block;
  width: 100%;
}

.wizard-step[hidden] {
  display: none !important;
}

.service-type-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.service-type-btn {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.service-type-btn:hover,
.service-type-btn:focus {
  border-color: rgba(169, 228, 125, 0.55);
  background: rgba(120, 185, 92, 0.14);
  outline: none;
}

.step3-lead {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.water-confirm {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(169, 228, 125, 0.28);
  border-radius: 16px;
  background: rgba(120, 185, 92, 0.12);
}

.water-confirm-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.detail-panel[hidden] {
  display: none !important;
}

.log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-item {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

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

.log-machine {
  color: var(--green-bright);
  font-size: 0.95rem;
  font-weight: 800;
}

.log-date {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.log-meta,
.log-actions,
.log-note {
  margin: 0 0 4px;
  line-height: 1.4;
}

.log-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.log-actions {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
}

.log-note {
  color: rgba(167, 174, 164, 0.95);
  font-size: 0.88rem;
}

@media (max-width: 620px) {
  .service-page {
    width: min(440px, calc(100% - 24px));
  }

  .log-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .service-page {
    width: calc(100% - 16px);
  }

  .service-choice {
    min-height: 50px;
    padding: 11px 12px;
  }

  .service-choice-text {
    font-size: 0.94rem;
  }
}

.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.menu-btn:active {
  transform: scale(0.99);
}

.menu-btn-primary {
  border: 1px solid rgba(169, 228, 125, 0.38);
  color: #eef8e6;
  background:
    linear-gradient(180deg, rgba(120, 185, 92, 0.24), rgba(120, 185, 92, 0.1)),
    rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.menu-btn-primary:hover {
  border-color: rgba(169, 228, 125, 0.62);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(120, 185, 92, 0.34), rgba(120, 185, 92, 0.16)),
    rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.menu-btn-disabled {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.32);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.product-choice {
  margin-bottom: 8px;
}

.product-name {
  display: block;
}

.product-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.qty-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0 4px 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  box-sizing: border-box;
}

.qty-input {
  width: 96px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.qty-input:disabled {
  opacity: 0.45;
}

.admin-nav {
  margin: 0 0 16px;
}

.admin-form {
  margin: 0 0 8px;
}

.admin-field {
  display: block;
  margin: 0 0 12px;
}

.admin-field > span {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font: inherit;
  box-sizing: border-box;
}

.admin-input:focus {
  border-color: rgba(169, 228, 125, 0.75);
  outline: none;
  box-shadow: 0 0 0 4px rgba(120, 185, 92, 0.13);
}

select.admin-input {
  appearance: none;
}

.tech-greeting {
  text-align: center;
  margin: 0 auto 4px;
}

.tech-greeting-text {
  margin: 0;
}

.tech-greeting-title {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 4.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.tech-greeting-name {
  margin: 0;
  color: var(--green-bright);
  font-size: clamp(1.05rem, 3.4vw, 1.22rem);
  font-weight: 800;
  line-height: 1.25;
}

.daypart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 0 12px;
  padding: 0;
  border-radius: 22px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.daypart-badge:hover {
  transform: translateY(-1px) scale(1.03);
}

.daypart-badge:active {
  transform: scale(0.98);
}

.daypart-orb {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.95;
  pointer-events: none;
}

.daypart-icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: block;
}

.daypart-morning {
  color: #ffd56a;
  border-color: rgba(255, 213, 106, 0.4);
}

.daypart-morning .daypart-orb {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 236, 170, 0.55), transparent 55%),
    linear-gradient(160deg, rgba(255, 196, 84, 0.28), rgba(120, 185, 92, 0.12));
}

.daypart-day {
  color: #ffe59a;
  border-color: rgba(255, 229, 154, 0.42);
}

.daypart-day .daypart-orb {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 240, 180, 0.5), transparent 60%),
    linear-gradient(160deg, rgba(255, 214, 102, 0.26), rgba(169, 228, 125, 0.1));
}

.daypart-evening {
  color: #ffb86b;
  border-color: rgba(255, 184, 107, 0.4);
}

.daypart-evening .daypart-orb {
  background:
    radial-gradient(circle at 60% 35%, rgba(255, 186, 107, 0.4), transparent 58%),
    linear-gradient(160deg, rgba(255, 140, 66, 0.2), rgba(40, 28, 18, 0.35));
}

.daypart-night {
  color: #a8c8ff;
  border-color: rgba(168, 200, 255, 0.38);
}

.daypart-night .daypart-orb {
  background:
    radial-gradient(circle at 35% 30%, rgba(180, 210, 255, 0.28), transparent 55%),
    linear-gradient(160deg, rgba(70, 100, 160, 0.28), rgba(10, 14, 28, 0.45));
}

.daypart-rays {
  transform-origin: 24px 24px;
  animation: daypart-spin 14s linear infinite;
}

.daypart-sun {
  animation: daypart-pulse 3.2s ease-in-out infinite;
}

.daypart-star {
  animation: daypart-twinkle 2.4s ease-in-out infinite;
}

.daypart-star.s2 { animation-delay: 0.4s; }
.daypart-star.s3 { animation-delay: 0.9s; }
.daypart-star.s4 { animation-delay: 1.3s; }

.daypart-moon {
  transform-origin: 24px 24px;
  animation: daypart-float 4s ease-in-out infinite;
}

.daypart-panel {
  margin: 12px auto 0;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
  animation: daypart-panel-in 0.22s ease;
}

.daypart-panel[hidden] {
  display: none;
}

.daypart-panel-time {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.daypart-panel-date,
.daypart-panel-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.daypart-panel-hint {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.tech-home .schedule-lead {
  margin-top: 10px;
}

.tech-greeting.daypart-swap .daypart-badge {
  animation: daypart-swap 0.42s ease;
}

@keyframes daypart-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes daypart-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.06); }
}

@keyframes daypart-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes daypart-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

@keyframes daypart-panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes daypart-swap {
  0% { transform: scale(0.92); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.order-qty-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 4px;
}

.line-cost {
  margin: 0;
  color: var(--green-bright);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(169, 228, 125, 0.35);
  border-radius: 16px;
  background: rgba(120, 185, 92, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 700;
}

.order-total-box strong {
  color: var(--green-bright);
  font-size: 1.1rem;
}

.order-mini-btn {
  min-height: 44px;
  margin: 0;
}

.log-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-delete-form {
  margin: 0;
}

.order-trash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 77, 77, 0.35);
  border-radius: 10px;
  background: rgba(255, 77, 77, 0.12);
  color: #ffb0b0;
  cursor: pointer;
}

.order-trash-btn:hover {
  background: rgba(255, 77, 77, 0.22);
  border-color: rgba(255, 77, 77, 0.55);
  color: #ffd0d0;
}

.order-trash-btn:active {
  transform: translateY(1px);
}

.order-status {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-sent {
  color: #9ec5ff;
  background: rgba(158, 197, 255, 0.14);
  border: 1px solid rgba(158, 197, 255, 0.35);
}

.status-progress {
  color: #f0c35a;
  background: rgba(240, 195, 90, 0.14);
  border: 1px solid rgba(240, 195, 90, 0.35);
}

.status-done {
  color: #d7f5c4;
  background: rgba(120, 185, 92, 0.16);
  border: 1px solid rgba(169, 228, 125, 0.4);
}

.order-assignee {
  color: #f0c35a !important;
  font-weight: 700;
}

.order-admin-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

@media (min-width: 420px) {
  .order-admin-actions {
    grid-template-columns: 1fr 1fr;
  }
}


