@font-face {
  font-family: "Public Sans";
  src: url("/assets/public-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f7f2;
  --card: #fff;
  --ink: #152820;
  --muted: #4a6056;
  --line: #d3dfd7;
  --accent: #14553e;
  --accent-hover: #103f30;
  --pale: #ebf3ee;
  --warn: #9c282f;
  --warn-hover: #742126;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  min-height: 4rem;
  margin-bottom: 1.5rem;
}
.brand { display: inline-flex; gap: .625rem; align-items: center; }
.brand-logo { flex: 0 0 44px; }
.brand-name { font-size: 1rem; line-height: 1; font-weight: 600; }
.brand-subtitle { margin-top: .25rem; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.shell { max-width: 74.5rem; margin-inline: auto; padding: .75rem 1.25rem 5rem; }
.auth-visual, .vault-nav { display: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.5rem; line-height: 1.5; font-weight: 700; }
h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 1.04rem; line-height: 1.38; letter-spacing: -.015em; }
p { line-height: 1.58; }
.panel {
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--card);
  min-width: 0;
  box-shadow: 0 .2rem .8rem #1c3c2a09;
}
.panel-narrow { max-width: 31rem; }
.panel-narrow > p { margin-top: .65rem; color: var(--muted); }
.panel-narrow > .button { margin-top: 1.1rem; }
.danger-panel { border-color: #e4c9ca; }
.notice {
  margin-bottom: 1.2rem;
  padding: .75rem 1rem;
  border: 1px solid #c9ded1;
  border-radius: .55rem;
  background: var(--pale);
  color: #1d4937;
}
.notice[data-tone="error"] { border-color: #e4c9ca; background: #fff5f5; color: #7d242b; }
.notice:empty { display: none; }
.stack { display: grid; gap: .45rem; }
.stack { margin-top: 1.15rem; }
.stack > .button { justify-self: start; margin-top: .45rem; }
label { font-size: .92rem; font-weight: 660; }
input, select, button { font: inherit; }
input:not([type="checkbox"]), select {
  min-height: 2.8rem;
  width: 100%;
  padding: .5rem .7rem;
  border-radius: .45rem;
  border: 1px solid #b6c8be;
  color: var(--ink);
  background: #fcfdfc;
}
input::placeholder { color: #62756c; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: 0 0 auto; margin: .15rem 0 0; }
.checkbox { display: flex; align-items: flex-start; gap: .65rem; margin-top: .35rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-height: 2.7rem;
  padding: .55rem .85rem;
  border-radius: .45rem;
  font-weight: 690;
  font-size: .92rem;
  line-height: 1.3;
}
.button { border: 1px solid transparent; cursor: pointer; }
.button:disabled { filter: grayscale(.55); opacity: .63; cursor: wait; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:not(:disabled):hover { background: var(--accent-hover); }
.button-quiet { color: var(--accent); background: transparent; }
.button-quiet:not(:disabled):hover, .button-outline:not(:disabled):hover { background: var(--pale); }
.button-outline { border-color: #86a999; color: var(--accent); background: #fff; }
.button-danger { background: var(--warn); color: #fff; }
.button-danger:not(:disabled):hover { background: var(--warn-hover); }
.delete-link { color: var(--warn); }
.delete-link:not(:disabled):hover { background: #fff5f5; }
:is(a, button, input, select, summary):focus-visible { outline: 3px solid #279267; outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shell:has(#vault:not([hidden])) {
  --paper: #fff;
  --ink: #212b36;
  --muted: #637381;
  --line: #dfe3e8;
  --pale: #f4f6f8;
  --accent: #212b36;
  --accent-hover: #454f5b;
  max-width: none;
  min-height: 100vh;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}
.archive-layout:has(#vault:not([hidden])) {
  display: grid;
  grid-template: "header" 64px "content" minmax(0, 1fr) / minmax(0, 1fr);
  min-height: 100vh;
}
.archive-layout:has(#vault:not([hidden])) .archive-workspace { display: contents; }
.archive-layout:has(#vault:not([hidden])) .masthead {
  grid-area: header;
  margin: 0;
  padding-inline: 1rem;
  border: 0;
}
.archive-layout:has(#vault:not([hidden])) .archive-content {
  grid-area: content;
  width: 100%;
  max-width: 1536px;
  min-width: 0;
  margin-inline: auto;
  padding: .5rem 1rem 4rem;
}
.vault-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .75rem;
  margin: 0 0 1.5rem;
}
.vault-heading h1 {
  font-size: 1.25rem;
  outline: none;
}
.vault-export { min-height: 2.25rem; padding: .375rem .75rem; border-radius: .5rem; font-size: .875rem; }
.vault-export-icon { position: relative; width: 1rem; height: 1rem; border-bottom: 1.5px solid currentColor; }
.vault-export-icon::before, .vault-export-icon::after { content: ""; position: absolute; }
.vault-export-icon::before { left: 7px; top: 0; height: 10px; border-left: 1.5px solid currentColor; }
.vault-export-icon::after { top: 4px; left: 4px; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.vault-card {
  min-width: 0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0 2px rgb(145 158 171 / .22), 0 12px 24px -4px rgb(145 158 171 / .14);
}
.vault-tabs {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  min-width: 0;
  margin: 0;
  padding: 0 1.25rem;
  border: 0;
  box-shadow: inset 0 -2px rgb(145 158 171 / .08);
  overflow-x: auto;
}
.vault-tabs label {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  border-bottom: 2px solid transparent;
  min-height: 3rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.vault-tabs label > span { display: inline-flex; gap: .5rem; align-items: center; }
.vault-tabs input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.vault-tabs label:has(input:checked) { border-color: var(--ink); color: var(--ink); }
.vault-tabs label:has(input:focus-visible) { outline: 2px solid #007867; outline-offset: -2px; }
.vault-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding-inline: .375rem;
  border-radius: .375rem;
  background: rgb(145 158 171 / .16);
  color: #454f5b;
  font-size: .75rem;
  font-weight: 700;
}
.vault-tabs label:has(input:checked) .vault-tab-count { background: #212b36; color: #fff; }
.vault-toolbar { display: flex; align-items: center; gap: .75rem; padding: 1.25rem; }
.vault-search { position: relative; flex: 1; min-width: 0; }
.vault-search::before, .vault-search::after { content: ""; position: absolute; left: .95rem; pointer-events: none; }
.vault-search::before { width: .75rem; height: .75rem; top: calc(50% - .47rem); border: 2px solid #75828e; border-radius: 50%; }
.vault-search::after { width: .375rem; height: 2px; top: calc(50% + .26rem); left: 1.55rem; background: #75828e; transform: rotate(45deg); }
.vault-search input {
  min-height: 3.3125rem;
  padding: .75rem .875rem .75rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
  font-size: .875rem;
}
.vault-options { position: relative; }
.vault-options summary { list-style: none; }
.vault-options summary::-webkit-details-marker { display: none; }
.vault-option-menu, .vault-row-menu {
  min-width: 11rem;
  margin: 0;
  padding: .375rem;
  border: 1px solid #dfe3e8;
  border-radius: .625rem;
  background: #fff;
  color: #212b36;
  box-shadow: 0 0 2px rgb(145 158 171 / .22), 0 12px 24px -4px rgb(145 158 171 / .25);
}
.vault-option-menu { position: absolute; top: calc(100% + .375rem); right: 0; z-index: 3; }
.vault-row-menu { position: fixed; inset: auto; max-width: min(17rem, calc(100vw - 1rem)); }
.vault-menu-action {
  display: block;
  width: 100%;
  min-height: 2.25rem;
  padding: .45rem .625rem;
  border: 0;
  border-radius: .375rem;
  background: transparent;
  color: inherit;
  font-size: .875rem;
  text-align: left;
  cursor: pointer;
}
.vault-menu-action:hover, .vault-menu-action:focus-visible { background: #f4f6f8; }
#delete-from-vault { color: #b71d18; }
.vault-scroll { overflow-x: auto; }
.vault-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.vault-table thead th {
  padding: .5rem 1rem;
  background-color: #f4f6f8;
  color: #637381;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.vault-name-column { width: 44%; }
.vault-username-column { width: 25%; }
.vault-group-column { width: auto; }
.vault-actions-column { width: 6rem; }
.vault-table th, .vault-table td { min-width: 0; overflow-wrap: anywhere; }
#vault-sort-name {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .125rem 0;
  border: 0;
  background: transparent;
  color: #212b36;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
}
#vault-sort-name::after {
  content: "";
  width: .4rem;
  height: .4rem;
  margin-top: .2rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(225deg);
}
th[aria-sort="descending"] #vault-sort-name::after { margin-top: -.2rem; transform: rotate(45deg); }
.vault-row > :is(td, th) {
  height: 3rem;
  padding: .375rem 1rem;
  border-bottom: 1px dashed #dfe3e8;
  font-size: .875rem;
  font-weight: 400;
  text-align: left;
}
.vault-row:last-child > :is(td, th) { border-color: transparent; }
.vault-row:hover > :is(td, th), .vault-row[data-expanded="true"] > :is(td, th) { background: #f9fafb; }
.vault-name-button {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.vault-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #f4f6f8;
  color: #454f5b;
  font-size: .875rem;
  font-weight: 600;
}
.vault-entry-name { display: grid; min-width: 0; gap: .125rem; }
.vault-entry-title, .vault-entry-url { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vault-entry-title { color: #212b36; font-weight: 600; }
.vault-entry-url { color: #637381; font-size: .75rem; }
.vault-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.vault-chip {
  display: inline-block;
  max-width: 100%;
  padding: .125rem .5rem;
  border-radius: .375rem;
  background: rgb(145 158 171 / .16);
  color: #454f5b;
  font-size: .75rem;
  font-weight: 600;
}
.vault-chip[data-tone="shared"] { background: rgb(0 167 111 / .12); color: #006451; }
.vault-chip[data-tone="archived"] { background: #fff5cc; color: #7a4100; }
.vault-row > .vault-actions-cell { padding-inline: .125rem .5rem; }
.vault-row-actions { display: flex; align-items: center; justify-content: end; }
.vault-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #637381;
  cursor: pointer;
}
.vault-icon-button:hover, .vault-icon-button[aria-expanded="true"] { background: rgb(145 158 171 / .12); color: #212b36; }
.vault-icon-button:disabled { color: #aab4bd; cursor: default; }
.vault-icon-button::before, .vault-icon-button::after { position: absolute; pointer-events: none; }
.vault-icon-button[data-icon="more"]::before {
  content: "";
  width: .1875rem;
  height: .1875rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 -.3125rem currentColor, 0 .3125rem currentColor;
}
.vault-icon-button[data-icon="copy"]::before, .vault-icon-button[data-icon="copy"]::after {
  content: "";
  width: .625rem;
  height: .75rem;
  border: 1.5px solid currentColor;
  border-radius: .125rem;
}
.vault-icon-button[data-icon="copy"]::before { transform: translate(-2px, -2px); }
.vault-icon-button[data-icon="copy"]::after { transform: translate(2px, 2px); background: #fff; }
.vault-icon-button:is([data-icon="show"], [data-icon="hide"])::before {
  content: "";
  width: .875rem;
  height: .625rem;
  border: 1.5px solid currentColor;
  border-radius: 65%;
}
.vault-icon-button[data-icon="show"]::after {
  content: "";
  width: .25rem;
  height: .25rem;
  border-radius: 50%;
  background: currentColor;
}
.vault-icon-button[data-icon="hide"]::after { content: ""; width: 1rem; height: 1.5px; background: currentColor; transform: rotate(-45deg); }
.vault-icon-button:is([data-icon="previous"], [data-icon="next"])::before { content: ""; width: .475rem; height: .475rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; }
.vault-icon-button[data-icon="previous"]::before { transform: rotate(135deg); }
.vault-icon-button[data-icon="next"]::before { transform: rotate(-45deg); }
.vault-detail-row > td { padding: 0 1rem 1rem; border-bottom: 1px dashed #dfe3e8; }
.vault-detail-panel { padding: .875rem; border-radius: .75rem; background: #f9fafb; }
.vault-details { display: grid; gap: .75rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 0; }
.vault-detail-meta { display: none; }
.vault-details dt { color: #637381; font-size: .75rem; font-weight: 600; }
.vault-details dd { margin: .25rem 0 0; font-size: .875rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.vault-details .vault-password-field { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem; }
.vault-password-value { min-width: 0; flex: 1; }
.vault-empty { height: 11rem; padding: 1rem; color: #637381; text-align: center; }
.vault-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: .375rem;
  min-height: 4rem;
  padding: .375rem .875rem;
  border-top: 1px dashed #dfe3e8;
  font-size: .875rem;
}
.vault-pagination label { font-size: inherit; font-weight: 400; }
.vault-pagination select {
  width: auto;
  min-height: 2rem;
  margin-right: .875rem;
  padding: 0 .25rem;
  border: 0;
  background-color: transparent;
  color: inherit;
}
.vault-pagination output { min-width: 4rem; margin-inline: .375rem; text-align: right; }

@media (min-width: 900px) {
  .vault-heading { margin-bottom: 2.5rem; }
  .vault-heading h1 { font-size: 1.5rem; }
  .vault-table thead th:first-child, .vault-row > .vault-name-cell { padding-left: 1.25rem; }
}

@media (min-width: 1200px) {
  .archive-layout:has(#vault:not([hidden])) {
    grid-template: "nav header" 80px "nav content" minmax(0, 1fr) / 280px minmax(0, 1fr);
  }
  .archive-layout:has(#vault:not([hidden])) .vault-nav {
    position: sticky;
    top: 0;
    display: block;
    grid-area: nav;
    height: 100vh;
    padding: 1.5rem 1rem;
    border-right: 1px dashed var(--line);
  }
  .vault-nav > img { display: block; margin-inline: 1rem; }
  .vault-nav p {
    margin: 1.5rem .75rem .5rem;
    color: #637381;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
  }
  .vault-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.75rem;
    padding: .5rem .75rem;
    border-radius: .5rem;
    background: rgb(0 167 111 / .08);
    color: #007867;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
  }
  .vault-nav a:hover { background: rgb(0 167 111 / .16); }
  .archive-layout:has(#vault:not([hidden])) .masthead { justify-content: flex-end; padding-inline: 2.5rem; }
  .archive-layout:has(#vault:not([hidden])) .masthead .brand { display: none; }
  .archive-layout:has(#vault:not([hidden])) .archive-content { padding-inline: 2.5rem; }
}

@media (max-width: 640px) {
  .vault-tabs { gap: .875rem; padding-inline: .875rem; }
  .vault-tabs label { font-size: .8125rem; }
  .vault-tabs label > span { gap: .3125rem; }
  .vault-tab-count { min-width: 1.125rem; min-height: 1.125rem; padding-inline: .25rem; font-size: .6875rem; }
  .vault-toolbar { gap: .375rem; padding: .875rem; }
  .vault-table thead th, .vault-row > :is(td, th) { padding-inline: .75rem; }
  .vault-table .vault-name-column { width: auto; }
  .vault-table .vault-metadata-col { visibility: collapse; width: 0; }
  .vault-table :is(.vault-username-column, .vault-username-cell, .vault-group-column, .vault-group-cell) {
    visibility: collapse;
    width: 0;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    white-space: nowrap;
  }
  .vault-group-cell > * { display: none; }
  .vault-table .vault-actions-column { width: 5rem; }
  .vault-row > .vault-actions-cell { padding-inline: 0 .35rem; }
  .vault-name-button { gap: .5rem; }
  .vault-detail-row > td { padding-inline: .75rem; }
  .vault-detail-meta { display: block; }
  .vault-pagination { padding-inline: .375rem; font-size: .8125rem; }
  .vault-pagination select { margin-right: .25rem; }
  .vault-pagination output { margin-inline: .125rem; }
}

.shell:not(:has(#vault:not([hidden]))) {
  --auth-paper: #fbfcfd;
  --auth-blue: #02598b;
  --auth-cyan: #5ec4e6;
  --auth-navy: #202349;
  --auth-gold: #f1cd74;
  --ink: #212b36;
  --muted: #637381;
  --line: #dfe3e8;
  --accent: var(--auth-navy);
  --accent-hover: #161934;
  --pale: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1rem;
  color: var(--ink);
  background: linear-gradient(135deg, rgb(94 196 230 / .18) 0%, #eaf7fa 42%, #f7fbfd 100%) #fff;
}

.archive-layout:not(:has(#vault:not([hidden]))) {
  width: 100%;
  max-width: 1320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .68);
  border-radius: 16px;
  background: var(--auth-paper);
  box-shadow: 0 36px 90px rgb(7 38 64 / .22);
}
.archive-layout:not(:has(#vault:not([hidden]))) .archive-workspace {
  min-width: 0;
  padding: 1.5rem 1.25rem;
}
.archive-layout:not(:has(#vault:not([hidden]))) .masthead {
  min-height: auto;
  margin: 0;
  border: 0;
}
.archive-layout:not(:has(#vault:not([hidden]))) .archive-content {
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 370px;
  margin-inline: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.archive-layout:not(:has(#vault:not([hidden]))) .panel-narrow {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.archive-layout:not(:has(#vault:not([hidden]))) .panel-narrow h1 { font-size: 1.25rem; }
.archive-layout:not(:has(#vault:not([hidden]))) .panel-narrow > p {
  margin-top: .625rem;
  font-size: .875rem;
  line-height: 1.57;
}
.archive-layout:not(:has(#vault:not([hidden]))) .notice {
  margin-bottom: 1rem;
  font-size: .875rem;
}
.auth-account-link { margin-top: 1.25rem; font-size: .875rem; line-height: 1.57; color: var(--muted); }
.auth-account-link a { color: #007867; font-weight: 600; text-decoration: none; }
.auth-account-link a:hover { text-decoration: underline; }
#login-form, #unlock-form { margin-top: 1rem; gap: 1rem; }
.auth-field { position: relative; }
.auth-field input {
  display: block;
  min-height: 3.3125rem;
  padding: 1rem .8125rem;
  border-color: var(--line);
  border-radius: .5rem;
  background: var(--auth-paper);
  font-size: .875rem;
}
.auth-field input:hover { border-color: var(--muted); }
.auth-field input:focus { border-color: var(--auth-blue); }
.auth-field label {
  position: absolute;
  top: 50%;
  left: .8125rem;
  max-width: calc(100% - 1.625rem);
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: .875rem;
  font-weight: 400;
}
.auth-field input:is(:focus, :not(:placeholder-shown)) + label {
  top: 0;
  left: .625rem;
  padding-inline: .25rem;
  background: var(--auth-paper);
  font-size: .75rem;
}
.auth-field input:focus + label { color: var(--auth-blue); }
.archive-layout:not(:has(#vault:not([hidden]))) :is(a, button, input):focus-visible {
  outline-color: var(--auth-blue);
}
.auth-action {
  position: relative;
  justify-content: flex-start;
  width: 100%;
  min-height: 4rem;
  margin-top: 0;
  padding: .875rem 1rem .875rem 2.75rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 600;
}
.stack > .auth-action { margin-top: 0; }
.auth-action::before, .auth-action::after {
  content: "";
  position: absolute;
  border: 1.5px solid currentColor;
}
.auth-action::before { width: .875rem; height: .625rem; left: .875rem; border-radius: 2px; }
#email-submit::after {
  width: .375rem;
  height: .375rem;
  left: 1.125rem;
  top: calc(50% - .265rem);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.auth-action:not(#email-submit)::after {
  width: .5rem;
  height: .375rem;
  left: 1.0625rem;
  bottom: calc(50% + .255rem);
  border-radius: 99px 99px 0 0;
  border-bottom: 0;
}

@media (min-width: 600px) {
  .shell:not(:has(#vault:not([hidden]))) { padding: 1.5rem; }
  .archive-layout:not(:has(#vault:not([hidden]))) .archive-workspace { padding-inline: 2rem; }
}

@media (min-width: 900px) {
  .shell:not(:has(#vault:not([hidden]))) { padding: 2rem; }
  .archive-layout:not(:has(#vault:not([hidden]))) {
    grid-template-columns: 470px minmax(0, 1fr);
    height: 720px;
    border-radius: 24px;
  }
  .archive-layout:not(:has(#vault:not([hidden]))) .archive-workspace {
    display: flex;
    flex-direction: column;
    padding: 2rem 3rem;
  }
  .archive-layout:not(:has(#vault:not([hidden]))) .archive-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 2.75rem;
    padding-right: .375rem;
    padding-bottom: 1rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }
  .archive-layout:not(:has(#vault:not([hidden]))) .panel-narrow h1 { font-size: 1.5rem; }
  .archive-layout:not(:has(#vault:not([hidden]))) .auth-visual {
    display: block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    height: 720px;
    background: linear-gradient(145deg, var(--auth-navy) 0%, var(--auth-blue) 50%, var(--auth-cyan) 100%);
  }
  .auth-artwork {
    position: absolute;
    z-index: -1;
    right: -230px;
    bottom: -54px;
    width: 780px;
    height: auto;
    opacity: .18;
    mix-blend-mode: screen;
    filter: saturate(.9);
  }
  .auth-visual-intro { padding: 3rem; }
  .auth-visual-intro::before {
    content: "";
    display: block;
    width: 3rem;
    height: .25rem;
    margin-bottom: 1rem;
    border-radius: 99px;
    background: var(--auth-gold);
  }
  .auth-visual-intro h2 {
    max-width: 680px;
    color: #fff;
    font-weight: 800;
    font-size: clamp(2rem, 3.65vw, 2.75rem);
    letter-spacing: 0;
    line-height: 1.333;
  }
  .auth-preview {
    position: absolute;
    top: 276px;
    right: 28px;
    display: grid;
    gap: 1rem;
    width: min(340px, calc(100% - 56px));
    padding: 1.25rem;
    border: 1px solid rgb(255 255 255 / .72);
    border-radius: 1rem;
    background: rgb(255 255 255 / .94);
    box-shadow: 0 28px 80px rgb(7 38 64 / .26);
  }
  .auth-preview-heading { display: flex; align-items: center; gap: .625rem; }
  .auth-preview h3 { font-size: .875rem; line-height: 1.57; letter-spacing: 0; font-weight: 650; }
  .auth-preview-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.625rem;
    height: 2.625rem;
    border-radius: .5rem;
    background: rgb(94 196 230 / .18);
    color: var(--auth-blue);
  }
  .auth-shield { position: relative; width: 1.0625rem; height: 1.25rem; background: currentColor; clip-path: polygon(50% 0, 100% 18%, 94% 63%, 78% 84%, 50% 100%, 22% 84%, 6% 63%, 0 18%); }
  .auth-shield::after { content: ""; position: absolute; left: 42%; top: 33%; width: 16%; height: 36%; border-radius: .25rem; background: #d8edf8; }
  .auth-steps {
    display: flex;
    gap: .375rem;
    margin: 0;
    padding: .375rem;
    list-style: none;
    background: rgb(2 89 139 / .08);
    border-radius: .75rem;
  }
  .auth-steps li {
    display: grid;
    flex: 1;
    place-items: center;
    min-height: 1.8125rem;
    border-radius: .5rem;
    color: var(--auth-blue);
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
  }
  .archive-layout:not(:has(#unlock:not([hidden]), #claim-panel:not([hidden]), #delete-panel:not([hidden]), #deleted-panel:not([hidden]))) .auth-steps li:first-child,
  .archive-layout:has(#unlock:not([hidden]), #claim-panel:not([hidden])) .auth-steps li:nth-child(2) {
    color: #fff;
    background: var(--auth-blue);
  }
}

@media (min-width: 1200px) {
  .auth-artwork { right: -258px; bottom: -132px; width: 960px; }
  .auth-visual-intro { padding: 3.5rem; }
  .auth-visual-intro h2 { font-size: 3rem; }
  .auth-preview { top: 270px; right: 56px; width: 390px; }
}

@media (min-width: 900px) and (max-width: 1320px) {
  .auth-visual-intro { padding: 1.75rem; }
  .auth-visual-intro h2 { font-size: clamp(2rem, 3.65vw, 2.5rem); }
}
