:root {
  color-scheme: dark;
  --background: #000;
  --surface: #1c1c21;
  --text: #f3f3f6;
  --muted: #a3a3af;
  --border: #38383f;
  --accent: #ff681e;
  --error: #ff8981;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--text);
}
button,
input,
textarea,
select {
  font: inherit;
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 10px;
  background: var(--surface);
  z-index: 2;
}
.skip:focus {
  top: 12px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-decoration: none;
}
.brand-logo {
  width: 32px;
  height: 24px;
  object-fit: contain;
  flex: none;
}
.pro-mark {
  color: var(--accent);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.4px;
  line-height: 1;
  padding-top: 3px;
}
.header-label,
.page-footer {
  color: var(--muted);
  font-size: 13px;
}
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 20px 50px;
}
.card {
  background: var(--surface);
  border: 1px solid #29292f;
  border-radius: 20px;
  width: 100%;
  max-width: 436px;
  padding: 34px;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1 {
  margin: 0 0 10px;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.intro {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
form {
  display: grid;
  gap: 9px;
}
label {
  font-size: 13px;
  font-weight: 550;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  background: #111114;
  color: var(--text);
  border-radius: 10px;
}
input::placeholder,
textarea::placeholder {
  color: #777782;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 1px var(--accent);
}
textarea {
  height: auto;
  min-height: 96px;
  resize: vertical;
}
select {
  padding-right: 24px;
}
.field {
  margin-bottom: 10px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 94px;
}
.password-toggle {
  position: absolute;
  right: 3px;
  top: 2px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 12px;
  background: transparent;
  color: var(--muted);
  border: 0;
}
button {
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 48px;
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
}
.primary {
  background: var(--accent);
  color: #17100b;
  width: 100%;
}
.primary:hover {
  background: #ff7b39;
}
.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  width: 100%;
}
.quiet {
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  width: 100%;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
#error,
.error-message {
  color: var(--error);
  font-size: 13px;
  margin: 0;
}
#error:not(:empty),
.error-message:not(:empty) {
  margin: 2px 0 8px;
}
.success-message {
  color: #75ce85;
  font-size: 13px;
  margin: 0;
}
.success-message:not(:empty) {
  margin: 2px 0 8px;
}
.success-message:empty,
.error-message:empty {
  display: none;
}
.access-note {
  border-top: 1px solid var(--border);
  margin-top: 26px;
  padding-top: 19px;
  font-size: 13px;
  color: var(--muted);
}
.access-note p {
  margin: 0;
}
.access-note strong {
  display: block;
  color: var(--text);
  font-weight: 550;
  margin-bottom: 4px;
}
.steps {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}
.step {
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: var(--border);
}
.step.active {
  background: var(--accent);
}
.code-input {
  font-size: 24px;
  letter-spacing: 8px;
  text-align: center;
  height: 58px;
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.code-time {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin: 3px 0 6px;
}
.page-footer {
  text-align: center;
  padding: 20px;
}
.account-page .header {
  border-bottom: 1px solid #24242a;
  padding-top: 18px;
  padding-bottom: 18px;
}
.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-shrink: 0;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: #d3d3dc;
  overflow: hidden;
}
.profile-avatar img,
.service-logo-display img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar:hover,
.profile-avatar[aria-current='page'] {
  color: var(--accent);
  border-color: var(--accent);
}
.account-page main {
  display: block;
  place-items: normal;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 64px;
}
.service-home,
.account-screen {
  width: 100%;
}
.home-heading h1 {
  font-size: 34px;
}
.home-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.heading-copy {
  min-width: 0;
}
.home-heading .intro {
  margin-bottom: 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -12px 0 22px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.back-link:hover {
  color: var(--text);
}
.profile-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid #29292f;
  border-radius: 16px;
  padding: 24px;
}
.profile-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.profile-panel h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #75ce85;
  font-size: 12px;
  white-space: nowrap;
}
.profile-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.profile-list {
  display: grid;
  gap: 22px;
  margin: 22px 0 0;
}
.profile-list div {
  min-width: 0;
}
.service-details {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.account-details {
  gap: 16px;
}
.profile-list dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.profile-list dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.profile-address {
  white-space: pre-line;
}
.home-note {
  color: var(--muted);
  font-size: 13px;
  margin: 22px 0 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}
.account-settings-column {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.settings-form {
  margin-top: 24px;
  gap: 20px;
}
.form-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.contact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.field-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.account-details + .field-hint {
  margin-top: 16px;
}
.logo-settings {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.logo-settings h3 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
}
.logo-editor {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.service-logo-display {
  display: grid;
  place-items: center;
  height: 80px;
  width: 80px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  overflow: hidden;
  background: #111114;
  color: var(--muted);
}
.service-logo-display svg {
  width: 36px;
  height: 36px;
}
.logo-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
input[type='file'] {
  height: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 44px;
}
input[type='file']::file-selector-button {
  min-height: 44px;
  margin-right: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.form-actions button {
  width: auto;
  font-size: 13px;
  min-height: 44px;
  padding: 9px 12px;
}
.logo-settings .error-message,
.logo-settings .success-message {
  margin-top: 12px;
  margin-bottom: 0;
}
.hours-settings {
  min-width: 0;
  margin: 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.hours-settings legend {
  padding: 0 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
input[type='checkbox'] {
  width: 20px;
  height: 20px;
  padding: 0;
  flex: none;
  accent-color: var(--accent);
}
#hours-editor {
  margin-top: 10px;
}
.hours-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(145px, 1.15fr) minmax(200px, 1.5fr);
  align-items: center;
  gap: 10px 12px;
  padding: 12px 0;
  border-bottom: 1px solid #313137;
}
.hours-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.day-name {
  font-size: 13px;
}
.hours-mode {
  height: 44px;
  font-size: 13px;
}
.hours-time-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 12px;
}
.hours-time-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.hours-time-controls input {
  min-height: 44px;
  height: 44px;
  font-variant-numeric: tabular-nums;
}
.overnight-note {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.hours-time-controls .overnight-note {
  grid-column: 2;
}
.overnight-note:empty {
  display: none;
}
.service-profile-summary {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 24px;
}
.service-profile-summary .profile-list {
  margin-top: 0;
  flex: 1;
}
.service-hours {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.service-hours > div > p {
  margin-bottom: 0;
  font-size: 14px;
}
.hours-summary {
  display: grid;
  gap: 12px;
  max-width: 440px;
  margin: 20px 0 0;
  font-size: 14px;
}
.hours-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.hours-summary dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.account-exit {
  display: grid;
  gap: 8px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 960px) {
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hours-row {
    grid-template-columns: minmax(100px, 1fr) minmax(145px, 1fr) minmax(220px, 1.5fr);
  }
  .hours-time-controls {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .brand {
    font-size: 20px;
  }
  .header,
  .account-page .header {
    padding-inline: 16px;
  }
  .account-page main {
    padding-inline: 16px;
  }
  .service-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .hours-row {
    grid-template-columns: minmax(100px, 1fr) minmax(145px, 1.15fr);
  }
  .hours-time-controls {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .header-label {
    display: none;
  }
  .account-page .header {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 16px;
  }
  .account-page main {
    padding: 28px 16px 40px;
  }
  .home-heading h1 {
    font-size: 28px;
  }
  .profile-panel {
    padding: 20px;
  }
  .contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .logo-editor,
  .service-profile-summary {
    flex-direction: column;
    gap: 16px;
  }
  .logo-controls,
  .service-profile-summary .profile-list {
    width: 100%;
  }
  .hours-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .hours-time-controls {
    margin-top: 4px;
  }
  main {
    padding: 16px 16px 32px;
  }
  .card {
    padding: 26px 22px;
    border-radius: 16px;
  }
  h1 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
