.account-gate .shell {
  display: block;
  min-height: 100dvh;
}
.account-gate #side,
.account-gate #mast,
.account-gate #bottom {
  display: none;
}
.account-gate #workspace {
  min-height: 100dvh;
  margin: 0;
  padding: clamp(20px, 5vh, 60px) clamp(16px, 4vw, 40px);
  display: grid;
  align-content: center;
  justify-items: center;
}
.auth-card {
  width: min(100%, 28rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-cover {
  position: relative;
  background: var(--cover);
  aspect-ratio: 3.2;
}
.auth-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right center;
}
.auth-brand {
  position: absolute;
  top: 16px;
  left: 18px;
}
.auth-brand img,
.admin-brand img {
  display: block;
  object-fit: contain;
  border-radius: 10px;
}
.auth-sheet {
  padding: clamp(20px, 4.5vw, 32px);
}
.auth-sheet h1 {
  font-size: clamp(24px, 4vw, 31px);
}
.auth-intro {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.65;
}
.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.auth-form input {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  font-weight: 400;
}
.auth-hint {
  margin-top: -8px;
  font-size: 13px;
  color: var(--muted);
}
.auth-error {
  color: var(--error);
  overflow-wrap: anywhere;
}
.auth-error:empty {
  display: none;
}
.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
}
.auth-links {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}
.auth-links button {
  min-height: 44px;
  font-weight: 600;
  color: var(--accent);
}
.auth-links button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-opening {
  color: var(--muted);
}
.admin-mode #workspace {
  align-content: start;
  padding-top: clamp(18px, 3.5vw, 42px);
}
.admin-page {
  width: min(100%, 54rem);
  min-width: 0;
}
.admin-header,
.admin-brand,
.admin-session,
.admin-heading,
.admin-row,
.admin-row-actions,
.admin-row-info > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-header,
.admin-heading,
.admin-row {
  justify-content: space-between;
}
.admin-header {
  padding-bottom: clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}
.admin-brand {
  flex-shrink: 0;
}
.admin-session {
  min-width: 0;
  justify-content: end;
}
.admin-session span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  text-align: right;
}
.admin-session .subtle,
.admin-row .subtle {
  white-space: nowrap;
}
.admin-page button,
.admin-copy {
  min-height: 44px;
}
.admin-heading {
  margin: clamp(20px, 4vw, 40px) 0 16px;
}
.admin-heading h1 {
  font-size: clamp(25px, 4vw, 34px);
}
.admin-page > .auth-error:not(:empty) {
  margin-bottom: 16px;
}
.admin-panel + .admin-panel {
  margin-top: 16px;
}
.admin-panel .panel-head {
  margin: 0;
}
.admin-note,
.admin-empty,
.admin-row-info small,
.admin-copy-status {
  color: var(--muted);
}
.admin-note {
  margin: 4px 0 0;
}
.admin-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.admin-empty {
  padding: 16px 0 4px;
}
.admin-row {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  padding: 12px 0;
}
.admin-row:last-child {
  padding-bottom: 0;
}
.admin-row-info {
  min-width: 0;
}
.admin-row-info > div {
  gap: 8px;
  flex-wrap: wrap;
}
.admin-row-info strong,
.admin-row-info small {
  overflow-wrap: anywhere;
}
.admin-row-info small {
  display: block;
  margin-top: 3px;
}
.admin-status {
  background: var(--faint);
  color: var(--muted);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 600;
}
.admin-status.usable {
  background: var(--sage);
  color: var(--sage-ink);
}
.admin-hint,
.admin-secret {
  font-family: ui-monospace, Consolas, monospace;
}
.admin-row-actions {
  gap: 8px;
  flex-wrap: wrap;
}
.admin-copy {
  justify-self: start;
}
.admin-copy-status:empty {
  display: none;
}
@media (max-width: 440px) {
  .auth-brand {
    left: 12px;
    top: 10px;
  }
  .auth-brand img {
    width: 94px;
    height: 34px;
  }
}
