[hidden] { display: none !important; }

.access-shell {
  width: min(calc(100% - 3rem), 69rem);
  margin-inline: auto;
}

.access-header {
  border-bottom: 1px solid var(--line);
}

.access-header-inner, .ops-intro, .ops-section-heading, .module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
}

.access-header-inner { min-height: 4.5rem; }

.access-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .28em;
}

.access-page {
  padding-block: clamp(1.6rem, 5vw, 4.5rem);
}

.access-panel {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--card);
  min-width: 0;
}

.access-page h1 { font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.22; }
.access-page h2 { font-size: 1.45rem; line-height: 1.3; }
.access-muted { color: var(--muted); }
h1 + .access-muted, h2 + .access-muted { margin-top: .45rem; }

.account-window {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 25rem);
  width: min(100%, 50rem);
  margin-inline: auto;
  border-radius: .65rem;
  overflow: hidden;
}

.account-picture {
  background: #32493a url("assets/valley.webp") center / cover no-repeat;
  min-height: 100%;
}

.account-panel {
  border-radius: 0 .65rem .65rem 0;
  padding-block: clamp(1.4rem, 4vw, 2.6rem);
}

.access-switch {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

.access-switch a {
  min-height: 2.25rem;
  padding: .2rem .7rem;
  border-radius: .25rem;
  color: var(--muted);
}

.access-switch a[aria-current="page"] {
  background: #e1eae2;
  color: var(--ink);
  font-weight: 650;
}

.access-form {
  display: grid;
  gap: .85rem;
  margin-top: 1.15rem;
}

.access-form label {
  display: grid;
  align-content: start;
  gap: .3rem;
  color: var(--ink);
  font-size: .94rem;
  min-width: 0;
}

.access-form :is(input, textarea, select) {
  border: 1px solid #bfcbbf;
  border-radius: .28rem;
  background: #fffefa;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  min-height: 2.7rem;
  padding: .48rem .65rem;
  font: inherit;
  font-size: 1rem;
}

.access-form textarea { resize: vertical; }

.access-form :is(input, textarea, select):focus-visible,
.access-button:focus-visible,
.module-type:focus-visible {
  outline: 2px solid #a4563d;
  outline-offset: 3px;
}

.access-button {
  display: inline-flex;
  width: fit-content;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  padding: .4rem .85rem;
  border-radius: .28rem;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #f8f6ed;
  font: 600 .94rem / 1.4 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}

.access-button:not(:disabled):hover { background: #345645; }
.access-button:disabled { opacity: .54; cursor: default; }

.access-button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: #afbeb0;
}

.access-button-secondary:not(:disabled):hover { background: #e7eee5; }

.account-panel form > .access-button,
.ops-login form > .access-button { width: 100%; }

.access-feedback { color: #993e2d; font-size: .94rem; overflow-wrap: anywhere; }
.access-feedback[data-tone="success"] { color: #285b43; }

.signed-account { display: grid; gap: .85rem; margin-top: .75rem; }
.gate-panel, .gate-state { display: grid; gap: .75rem; align-content: start; }
.gate-panel { min-height: 19rem; }
.gate-state h2 + .access-muted { margin-top: 0; }
.membership-price { color: var(--forest); font: 650 2.35rem / 1.1 var(--serif); }
.ops-login { width: min(100%, 25rem); margin-inline: auto; }
.ops-space { display: grid; gap: 1rem; }
.ops-workbench { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }

.ops-shortcut {
  display: grid;
  gap: .18rem;
  padding: .85rem 1rem;
}

.ops-shortcut:hover { border-color: #8fa599; }
.ops-shortcut strong { font-size: 1.1rem; }
.ops-shortcut span { color: var(--muted); }

.ops-section { display: grid; gap: .65rem; }
.ops-section .access-form { margin-top: .45rem; }
.staff-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.staff-rows, .module-list { margin: .35rem 0 0; padding: 0; list-style: none; }

.staff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}

.staff-identity { display: grid; min-width: 0; }
.staff-identity > * { overflow-wrap: anywhere; }
.access-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.staff-role-actions, .staff-payment-actions { align-items: stretch; }
.staff-account-actions { display: grid; gap: .4rem; min-width: min(100%, 14rem); }
.staff-status { font-size: .9rem; }
.ops-confirm { width: min(calc(100% - 2rem), 28rem); color: var(--ink); }
.ops-confirm::backdrop { background: #18291f62; }
.ops-confirm form, .code-generated { display: grid; gap: .7rem; }
.ops-confirm .access-actions { justify-content: flex-end; }
.code-generated:empty { display: none; }
.delivery-card { display: grid; justify-items: start; gap: .45rem; padding: .75rem; border: 1px solid var(--line); border-radius: .35rem; }
.delivery-card textarea { width: 100%; min-height: 4rem; resize: vertical; font: 1rem / 1.35 var(--sans); color: var(--ink); border: 1px solid #bfcbbf; border-radius: .28rem; padding: .45rem .55rem; }

.staff-row .access-actions, .module-header .access-actions { flex-shrink: 0; }

.layout-add {
  display: flex;
  align-items: end;
  gap: .55rem;
}

.layout-add label { width: min(100%, 15rem); }
.module-list { display: grid; gap: .55rem; }

.module-item {
  display: grid;
  gap: .6rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
}

.module-type {
  color: var(--muted);
  font-size: .94rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.module-empty { padding: .4rem 0; }

@media (max-width: 660px) {
  .access-shell { width: calc(100% - 1.6rem); }
  .access-header-inner { min-height: 4rem; }
  .account-window { max-width: 27rem; grid-template-columns: minmax(0,1fr); }
  .account-picture { min-height: 6rem; }
  .account-panel { border-radius: 0 0 .65rem .65rem; }
  .staff-fields { grid-template-columns: minmax(0,1fr); }
  .staff-row { align-items: start; flex-direction: column; }
  .staff-row .access-actions { width: 100%; }
  .staff-row .staff-account-actions { width: 100%; }
  .ops-workbench { gap: .6rem; }
}

@media (max-width: 360px) {
  .ops-workbench { grid-template-columns: minmax(0,1fr); }
  .module-item { padding: .55rem; }
  .module-header { align-items: start; flex-direction: column; gap: .35rem; }
}
