.access-page {
  min-height: 100vh;
  padding: 35px 24px;
  background: radial-gradient(ellipse at top right, #e6edcf, transparent 65%), #f6f7f1;
}
.access-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.8px;
  width: max-content;
}
.access-brand img {
  width: 36px;
}
.access-card {
  max-width: 650px;
  margin: 65px auto 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 42px;
}
.access-card h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 15px 0 12px;
}
.access-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.role-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 27px 0 23px;
}
.role-option {
  display: block;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  cursor: pointer;
  position: relative;
}
.role-option:has(input:checked) {
  border-color: var(--ink);
  background: #f1f6e5;
  box-shadow: 0 0 0 1px var(--ink);
}
.role-option input {
  position: absolute;
  right: 17px;
  top: 20px;
  accent-color: var(--ink);
}
.role-symbol {
  display: grid;
  place-items: center;
  background: #e4ecd3;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 25px;
  margin-bottom: 22px;
}
.role-option b {
  display: block;
  font-size: 16px;
}
.role-option small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 10px;
}
.access-card .access-fine {
  font-size: 10px;
  margin-top: 20px;
}
.access-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin: 32px;
}
.owner-shell {
  max-width: 1250px;
  margin: auto;
  padding: 25px 32px 40px;
}
.owner-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 23px;
}
.owner-top .access-brand {
  font-size: 18px;
}
.owner-top small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 4px;
}
.owner-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.owner-link {
  font-size: 11px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  padding: 10px 13px;
  border-radius: 8px;
}
.owner-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 32px 0 23px;
}
.owner-intro h1 {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 8px 0;
}
.owner-intro .sub {
  font-size: 12px;
}
.owner-nav {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin: 23px 0;
  overflow: auto;
}
.owner-nav button {
  white-space: nowrap;
  border-radius: 8px;
  font-size: 12px;
  padding: 11px 18px;
}
.owner-nav button.active {
  background: var(--ink);
  color: var(--lime);
}
.owner-banner {
  border: 1px solid #dce5c7;
  background: #eef3e2;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 11px;
  line-height: 1.8;
  color: #6a7959;
}
.owner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 22px 0;
}
.owner-stat {
  background: white;
  border: 1px solid var(--line);
  padding: 21px;
  border-radius: 13px;
}
.owner-stat span {
  font-size: 11px;
  color: var(--muted);
}
.owner-stat b {
  font-family: Manrope, sans-serif;
  display: block;
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 10px 0;
}
.owner-stat small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.owner-panel {
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 15px;
}
.owner-panel h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.owner-panel > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 8px 0 17px;
}
.owner-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.owner-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.owner-heading h2 {
  font-size: 19px;
}
.owner-action {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 11px;
}
.owner-action.danger {
  color: #a16148;
}
.owner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.owner-panel .form-field {
  font-size: 11px;
}
.owner-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.owner-form-grid .wide {
  grid-column: 1/-1;
}
.owner-form-grid textarea {
  font: inherit;
  border: 1px solid #dce2d4;
  border-radius: 8px;
  padding: 13px;
  background: #fafbf7;
  width: 100%;
  color: var(--ink);
  min-height: 90px;
  resize: vertical;
}
.owner-month {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.owner-month input,
.owner-month select {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 12px;
  padding: 10px;
}
.owner-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.owner-day {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 5px;
  font-size: 10px;
  text-align: center;
}
.owner-day b {
  display: block;
  font-size: 23px;
  font-family: Manrope, sans-serif;
  margin: 7px 0;
}
.owner-day small {
  font-size: 8px;
  color: var(--muted);
}
.owner-day.active {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}
.owner-day.active small {
  color: #bacbaf;
}
.owner-booking {
  display: flex;
  align-items: start;
  gap: 17px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.owner-booking:last-child {
  border: 0;
}
.owner-time {
  width: 83px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}
.owner-time small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.owner-event {
  flex: 1;
  min-width: 0;
}
.owner-event h3 {
  font-size: 13px;
  margin: 5px 0 7px;
}
.owner-event p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.owner-badge {
  display: inline-block;
  font-size: 9px;
  border-radius: 5px;
  padding: 4px 7px;
  background: #eaf1da;
  color: #647e3d;
}
.owner-badge.unpaid {
  background: #f7eddd;
  color: #98734c;
}
.owner-badge.closed {
  background: #f0e5e0;
  color: #a16a53;
}
.owner-empty {
  padding: 35px 15px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.owner-empty b {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}
.owner-event .owner-actions {
  margin-top: 12px;
}
.owner-availability {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 15px;
}
.owner-slot {
  border: 1px solid #dce5cc;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  background: #f3f7ea;
}
.owner-slot small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  color: var(--muted);
}
.owner-slot:disabled {
  opacity: 0.55;
  cursor: default;
  background: #f0f0e9;
}
.owner-error {
  font-size: 12px;
  color: #a04e34;
  line-height: 1.8;
  margin-bottom: 15px;
}
.owner-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 30px;
  gap: 15px;
}
.owner-body dialog {
  width: min(540px, calc(100% - 28px));
  max-height: 90vh;
  overflow: auto;
}
.owner-body .modal-top button {
  font-size: 25px;
}
.owner-total {
  background: #f0f5e7;
  padding: 15px;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin: 5px 0 20px;
}
.owner-table-wrap {
  overflow: auto;
}
.owner-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
.owner-table th {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
.owner-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
.owner-table td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.owner-chart {
  display: flex;
  align-items: end;
  gap: 13px;
  height: 160px;
  margin: 25px 0 38px;
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
}
.owner-chart-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  position: relative;
  gap: 7px;
}
.owner-chart-col .bar {
  width: 100%;
  max-width: 50px;
  background: #8caa69;
  border-radius: 5px 5px 0 0;
  min-height: 2px;
}
.owner-chart-col span {
  position: absolute;
  top: calc(100% + 10px);
  font-size: 9px;
  color: var(--muted);
}
.owner-chart-col b {
  font-size: 9px;
}
.owner-money-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.owner-money-filters .form-field {
  margin: 0;
  min-width: 130px;
  flex: 1;
}
.owner-details-preview {
  background: var(--ink);
  padding: 28px;
  border-radius: 15px;
  color: white;
  margin-bottom: 23px;
}
.owner-details-preview .eyebrow {
  color: var(--lime);
}
.owner-details-preview h2 {
  font-size: 27px;
  margin: 13px 0;
}
.owner-details-preview p {
  font-size: 12px;
  color: #bdccbc;
  line-height: 1.9;
}
.owner-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
}
.owner-ledger-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 15px;
}
.owner-small-heading {
  font-size: 13px !important;
  margin-top: 23px;
}
@media (max-width: 700px) {
  .access-page {
    padding: 24px 18px;
  }
  .access-card {
    margin-top: 35px;
    padding: 25px;
  }
  .access-card h1 {
    font-size: 27px;
  }
  .role-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .role-option {
    padding: 18px 18px 18px 74px;
    min-height: 110px;
  }
  .role-symbol {
    position: absolute;
    left: 17px;
    top: 21px;
    width: 37px;
    height: 37px;
  }
  .role-option b {
    font-size: 14px;
    padding-right: 15px;
  }
  .role-option small {
    font-size: 10px;
    margin-top: 7px;
  }
  .owner-shell {
    padding: 22px 17px 35px;
  }
  .owner-top .access-brand {
    font-size: 14px;
  }
  .owner-top .access-brand img {
    width: 30px;
  }
  .owner-top-actions {
    gap: 6px;
  }
  .owner-link {
    font-size: 9px;
    padding: 8px;
  }
  .owner-intro {
    align-items: start;
    flex-direction: column;
    margin-top: 25px;
  }
  .owner-intro h1 {
    font-size: 26px;
  }
  .owner-nav button {
    font-size: 11px;
    padding: 10px 14px;
  }
  .owner-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .owner-stat {
    padding: 16px;
  }
  .owner-stat b {
    font-size: 24px;
  }
  .owner-cols {
    grid-template-columns: 1fr;
  }
  .owner-panel {
    padding: 19px;
  }
  .owner-week {
    gap: 5px;
  }
  .owner-day {
    padding: 11px 3px;
    font-size: 9px;
  }
  .owner-day b {
    font-size: 19px;
  }
  .owner-day small {
    font-size: 7px;
  }
  .owner-heading {
    align-items: start;
    flex-direction: column;
  }
  .owner-form-grid {
    grid-template-columns: 1fr;
  }
  .owner-time {
    width: 64px;
    font-size: 12px;
  }
  .owner-booking {
    gap: 9px;
  }
  .owner-event .owner-actions button {
    font-size: 9px;
    padding: 8px;
  }
  .owner-availability {
    grid-template-columns: repeat(3, 1fr);
  }
  .owner-month input {
    max-width: 145px;
  }
  .owner-body dialog {
    padding: 23px;
  }
  .owner-foot {
    line-height: 1.8;
    font-size: 9px;
  }
  .owner-money-filters {
    gap: 8px;
  }
  .owner-money-filters .form-field {
    min-width: 100px;
  }
  .owner-details-preview h2 {
    font-size: 23px;
  }
  .owner-chart {
    gap: 7px;
  }
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 25px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.auth-tabs button {
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
}
.auth-tabs button.active {
  background: var(--ink);
  color: var(--lime);
}
.form-field[hidden] {
  display: none !important;
}
.primary:disabled {
  opacity: 0.55;
  cursor: wait;
}
.access-card .form-field {
  font-size: 12px;
}
.access-page .role-options {
  margin-top: 20px;
}
.access-page .text-btn {
  margin-top: 20px;
}
.access-page .access-fine {
  margin-top: 20px;
}
.owner-wallet-group { margin-top:20px; }
.owner-wallet-group .owner-stats { margin:20px 0; }
.owner-wallet-group h3 { font-size:16px; margin-bottom:16px; }
