.public-shell .drift { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.drift { --drift-border: #565952; --drift-muted: #bdbeb2; --drift-panel: #1d211e; }
.drift-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); align-items: center; gap: 2rem; padding-bottom: clamp(2rem, 6vw, 5rem); }
.drift-intro h1, .drift-page-heading h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 5.4rem); line-height: 1.02; font-weight: 400; overflow-wrap: anywhere; }
.drift-intro p { max-width: 39ch; color: var(--drift-muted); }
.drift-intro .drift-tagline { font: 1.2rem/1.4 Georgia, "Songti SC", serif; color: var(--ink); }
.drift-art { color: #d2d4c4; line-height: 0; }
.drift-art svg { display: block; width: 100%; max-height: 270px; stroke-width: 1.1; }
.drift [href] { text-underline-offset: .23em; }
.drift-links, .drift-subnav, .drift-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; }
.drift-links { margin-top: 1.4rem; }
.drift-links a, .drift-subnav a { display: inline-flex; align-items: center; min-height: 44px; }
.drift-subnav { padding: .45rem 0; border-block: 1px solid var(--drift-border, var(--rule)); }
.drift-subnav a[aria-current] { font-weight: 700; }
.drift-section { padding-block: clamp(1.2rem, 4vw, 2.45rem); border-bottom: 1px solid var(--drift-border, var(--rule)); scroll-margin-top: 1rem; }
.drift-section h2, .drift-section h3 { margin: 0 0 .55rem; }
.drift-section p { max-width: 72ch; }
.drift-page-heading a { display: inline-block; margin-bottom: 1rem; }
.drift-form { display: grid; max-width: 45rem; gap: .85rem; margin-top: 1rem; }
.drift-form label, .drift-receipt label { display: grid; gap: .25rem; }
.drift-form > button { justify-self: start; }
.drift input:not([type='checkbox']), .drift textarea, .drift select,
.drift-cabin input:not([type='checkbox']), .drift-cabin textarea, .drift-cabin select { width: 100%; max-width: 100%; margin: 0; border: 1px solid var(--drift-border, var(--rule)); }
.drift select, .drift-cabin select { min-height: 44px; }
.drift input[type='checkbox'], .drift-cabin input[type='checkbox'] { margin: 0; width: 1.1rem; height: 1.1rem; accent-color: #aeb3a3; }
.drift textarea, .drift-cabin textarea { min-height: 5rem; resize: vertical; }
.drift .drift-check, .drift-cabin .drift-check { display: flex; align-items: baseline; gap: .55rem; min-height: 40px; }
.drift-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.drift-button, .drift button, .drift-cabin button { min-height: 44px; }
.drift .drift-button, .drift button[type='submit'] { padding: .58rem .95rem; border: 1px solid #dddcd2; color: #151815; background: #eeece2; text-decoration: none; }
.drift .drift-button:hover, .drift button[type='submit']:hover { background: #d5d7cc; }
.drift button:disabled { opacity: .54; cursor: default; }
.drift p[role='status']:empty { margin: 0; }
.drift p[role='status'] { margin: .35rem 0; color: var(--drift-muted); }
#drift-pick, #drift-report { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; }
#drift-pick label, #drift-report label { display: grid; gap: .25rem; }
.drift-receipt { max-width: 45rem; margin-top: 1.1rem; padding: 1rem; border: 1px solid var(--drift-border); background: var(--drift-panel); overflow: hidden; }
.drift-receipt dl { display: flex; gap: 1rem; flex-wrap: wrap; margin: .6rem 0; }
.drift-receipt dd { margin: 0; font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.drift-receipt input { font-family: ui-monospace, monospace; margin-bottom: .65rem !important; }
.drift-arriving::before {
  content: ""; display: block; width: 49px; height: 17px; margin: .5rem 0;
  border: 1px solid #d4d7ca; border-inline-end: 6px double #d4d7ca; border-radius: 13px 6px 6px 13px;
  animation: drift-cast 1.2s ease-out both;
}
@keyframes drift-cast {
  0% { transform: translate(-55px, -13px) rotate(-36deg); opacity: 0; }
  46% { transform: translate(47px, -9px) rotate(12deg); opacity: 1; }
  100% { transform: translate(71px, 0) rotate(-7deg); opacity: 1; }
}
.drift-returning::after {
  content: ""; display: block; width: 46px; height: 10px; margin-top: .3rem;
  outline: 1px solid #b3b9aa; border: 1px solid #b3b9aa; outline-offset: 4px; border-radius: 50%;
  animation: drift-return .9s ease-out both;
}
@keyframes drift-return {
  from { transform: scale(.45); opacity: .82; }
  to { transform: scale(1.7); opacity: 0; }
}
#drift-owned { margin-top: 1.2rem; }
#drift-reading { width: min(94%, 46rem); max-height: 89dvh; overflow: auto; color: var(--ink); background: #1b1e1b; border: 1px solid #82867a; padding: clamp(1rem, 4vw, 2rem); }
#drift-reading::backdrop { background: #0b0c0bda; }
.drift-dialog-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-family: ui-monospace, monospace; }
.drift-dialog-top button { font-size: 1.4rem; min-width: 44px; padding: .2rem; }
#drift-reading h2 { margin: .55rem 0; overflow-wrap: anywhere; }
#drift-reading details, #drift-reading .drift-actions { margin-top: .8rem; }
.drift-letter { white-space: pre-wrap; overflow-wrap: anywhere; }
.drift-official { display: inline-block; padding: .22rem .5rem; border: 1px solid #a6aa99; }
.drift-muted { color: var(--drift-muted); }
.drift-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .7rem; margin-block: 1.2rem; }
.drift-stats div { padding: .8rem; border: 1px solid var(--drift-border, var(--rule)); }
.drift-stats dd { margin: .25rem 0 0; font: 1.8rem Georgia, serif; }
.drift-table { overflow-x: auto; }
.drift-timeline { padding: 0; list-style-type: none; }
.drift-timeline li { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; border-inline-start: 1px solid var(--drift-border, var(--rule)); padding: .45rem .8rem; }
.drift-timeline span { grid-column: 2; font: .83rem ui-monospace, monospace; overflow-wrap: anywhere; }
.drift-cabin form button + button { margin-inline-start: .45rem; }
@media (max-width: 650px) {
  .drift-hero { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .drift-art svg { max-height: 165px; max-width: 280px; margin-inline: auto; }
  .drift-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .drift-arriving::before { animation: none; }
  .drift-returning::after { display: none; }
}
