/* All in One Furniture — admin. Built on site.css (colors, type, buttons).
   A working tool: the brand stays in the sign band and the lettering,
   everything else is quiet, readable and easy to tap on a phone. */

body.admin { background: var(--mist); color: var(--sign); min-height: 100vh; }
.admin-main :focus-visible { outline-color: var(--sign); }
.admin-main input { caret-color: var(--sign); }

/* ------------------------------------------------------------ top bar */
.admin-bar { background: var(--sign); color: var(--white); border-bottom: 6px solid var(--deep); }
.admin-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 12px var(--gutter); }
.admin-brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 0.85; }
.admin-brand-name { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; color: var(--yellow); }
.admin-brand-sub { margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--white); }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--white); text-decoration: none; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 0.32em; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { color: var(--yellow); text-decoration-line: underline; }
.admin-tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.admin-lang a { min-width: 44px; height: 40px; font-size: 16px; }
.admin-user { font-weight: 600; font-size: 15px; color: var(--lilac); }
a.admin-user { text-decoration: none; }
.me-status { margin-top: 20px; font-weight: 600; }
.admin-hint.me-hint { margin-top: 6px; margin-bottom: 18px; }
a.admin-user:hover, a.admin-user[aria-current] { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.admin-tools form { margin: 0; }
.admin-link-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--white); font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 0.25em; cursor: pointer; }
.admin-link-button:hover { color: var(--yellow); text-decoration-color: var(--yellow); }

/* ------------------------------------------------------------ page */
.admin-main { max-width: 1120px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gutter) 96px; }
.admin-main--narrow { max-width: 620px; }
.admin-card { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 4vw, 36px); }
.admin-card--wide { max-width: 760px; }
.admin-title { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4.4vw, 52px); line-height: 0.92; letter-spacing: -0.005em; text-transform: uppercase; color: var(--sign); text-wrap: balance; }
.admin-subtitle { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.admin-lead { margin-top: 12px; max-width: 62ch; font-size: 17px; line-height: 1.5; color: var(--muted); }
.admin-aside { margin-top: 20px; font-size: 15px; color: var(--muted); }
.admin-aside a { color: var(--sign); font-weight: 600; }
.admin-muted { color: var(--muted); }
.admin-hint { margin-top: -8px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.admin-section { margin-top: 56px; }
.admin-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.admin-msg { margin-top: 18px; padding: 12px 16px; background: var(--mist); border: 1px solid var(--line-3); font-size: 15.5px; line-height: 1.45; }
.admin-msg--error { background: #FCEEEE; border-color: #EDC2C2; color: #7E1D1D; }
.admin-msg[hidden] { display: none; }

/* ------------------------------------------------------------ forms */
.admin-form { margin-top: 24px; display: grid; gap: 18px; }
.admin-form .btn { justify-self: start; }
.admin-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; font-weight: 700; font-size: 15px; }
.admin-field input[type="text"], .admin-field input[type="email"], .admin-field input[type="password"] { width: 100%; min-height: 50px; padding: 8px 12px; border: 2px solid var(--line-3); border-radius: 0; background: var(--white); color: var(--sign); font: inherit; font-weight: 400; font-size: 16px; }
.admin-field input:focus { border-color: var(--sign); outline: none; box-shadow: 0 0 0 1px var(--sign); }
.admin-field input[type="file"] { font-weight: 400; font-size: 15px; max-width: 100%; color: var(--muted); }
.admin-field input[type="file"]::file-selector-button { margin-right: 12px; min-height: 44px; padding: 0 16px; border: 2px solid var(--sign); background: var(--white); color: var(--sign); font: inherit; font-weight: 700; cursor: pointer; }
.admin-field input[type="file"]::file-selector-button:hover { background: var(--mist); }
.admin-code { max-width: 220px; font-size: 26px !important; letter-spacing: 0.28em; font-variant-numeric: tabular-nums; }
.admin-form--row { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); align-items: end; }
.admin-form--row .admin-roles, .admin-form--row .btn { grid-column: 1 / -1; }
.admin-roles legend { padding: 0; margin-bottom: 4px; }
.admin-roles label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 44px; padding: 8px 0; font-weight: 700; }
.admin-roles input { width: 20px; height: 20px; accent-color: var(--sign); align-self: center; }
.admin-roles .admin-muted { flex-basis: 100%; padding-left: 30px; font-weight: 400; font-size: 14.5px; }

.admin-copy { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.admin-copy-input { flex: 1 1 280px; min-width: 0; min-height: 52px; padding: 8px 12px; border: 2px solid var(--line-3); background: var(--mist); color: var(--sign); font: 15px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ------------------------------------------------------------ 2-step setup */
.admin-steps { margin: 24px 0 0; padding-left: 26px; display: grid; gap: 26px; font-size: 16.5px; line-height: 1.5; }
.admin-steps li::marker { font-family: var(--display); font-weight: 800; font-size: 20px; }
.admin-steps p { margin-top: 10px; }
.admin-qr { margin-top: 14px; width: min(240px, 100%); background: var(--white); border: 1px solid var(--line-3); }
.admin-qr .qr { display: block; width: 100%; height: auto; }
.admin-secret { margin-top: 6px !important; font: 600 18px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.06em; word-break: break-all; }

/* ------------------------------------------------------------ home */
.admin-tiles { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.admin-tiles li { display: flex; }
.admin-tile { flex: 1 1 auto; display: grid; gap: 6px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); color: var(--sign); text-decoration: none; transition: border-color .2s var(--ease); }
.admin-tile:hover { border-color: var(--sign); }
.admin-tile .icon { color: var(--sign); }
.admin-tile--todo .icon { color: var(--glass); background: var(--yellow); border-radius: 50%; padding: 6px; width: 40px; height: 40px; }
.admin-tile-name { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.admin-tile-text { font-size: 15.5px; line-height: 1.45; color: var(--muted); }

/* ------------------------------------------------------------ team */
.admin-table-wrap { margin-top: 24px; background: var(--white); border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.admin-table th { padding: 12px 16px; text-align: left; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 2px solid var(--sign); }
.admin-table td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.4; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-me { font-weight: 400; color: var(--muted); }
.admin-status { display: inline-block; padding: 3px 10px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.admin-status--active { background: var(--mist); color: var(--sign); box-shadow: inset 0 0 0 1px var(--line-3); }
.admin-status--waiting { background: var(--yellow); color: var(--glass); }
.admin-status--off { background: #EEECF2; color: var(--muted); }
.admin-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-actions-cell { width: 1%; white-space: nowrap; }
.admin-row-actions form { margin: 0; }
.admin-small-button { min-height: 40px; padding: 0 12px; border: 2px solid var(--sign); background: var(--white); color: var(--sign); font-weight: 700; font-size: 14px; cursor: pointer; }
.admin-small-button:hover { background: var(--mist); }
.admin-small-button--danger { border-color: #9B2C2C; color: #8A1C1C; }
.admin-small-button--danger:hover { background: #FCEEEE; }
@media (max-width: 760px) {
  .admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .admin-table tr:last-child { border-bottom: 0; }
  .admin-table td { padding: 4px 0; border: 0; }
  .admin-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); }
  .admin-row-actions { justify-content: flex-start; padding-top: 10px !important; }
}
.admin-log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.admin-log-subtitle { margin-top: 28px; font-size: 16px; font-weight: 700; }

/* ------------------------------------------------------------ photos */
.admin-how { margin: 20px 0 0; padding-left: 24px; display: grid; gap: 6px; max-width: 70ch; font-size: 16px; line-height: 1.5; }
.admin-photos { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.admin-photo { display: flex; flex-wrap: wrap; gap: 18px 32px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); scroll-margin-top: 24px; }
.admin-photo-info { flex: 1 1 320px; min-width: 0; display: grid; gap: 6px; align-content: start; font-size: 15.5px; line-height: 1.45; }
.admin-photo-file { font: 600 15px/1.35 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.admin-photo-actions { flex: 1 1 320px; min-width: 0; display: grid; gap: 14px; align-content: start; }
.admin-photo-actions > .btn { justify-self: start; }
.admin-upload { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-upload[hidden] { display: none; }
.admin-upload .btn { justify-self: start; }
.admin-upload .admin-msg { margin-top: 0; }
.btn[aria-busy="true"] { opacity: 0.6; }

@media (max-width: 560px) {
  .admin-tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .admin-brand-name { font-size: 26px; }
}

/* ------------------------------------------------------------ upload them all at once */
.admin-batch { margin-top: 28px; padding: 22px 24px; display: grid; gap: 14px; background: var(--white); border: 2px solid var(--sign); }
.admin-batch[hidden] { display: none; }
.admin-batch .admin-hint { margin-top: 0; }
.admin-batch .btn { justify-self: start; }
.admin-batch .btn:disabled { opacity: 0.45; cursor: default; }
.admin-batch-status { font-weight: 700; font-size: 15.5px; }
.admin-batch-status:empty { display: none; }
.admin-row-status { margin: 0; padding: 10px 14px; font-size: 15px; line-height: 1.45; background: var(--mist); border: 1px solid var(--line-3); }
.admin-row-status[hidden] { display: none; }
.admin-row-status--busy { color: var(--muted); }
.admin-row-status--done { background: #EDF7EF; border-color: #BFDDC6; color: #1E5631; font-weight: 700; }
.admin-row-status--error { background: #FCEEEE; border-color: #EDC2C2; color: #7E1D1D; }
.admin-photo--done { background: #FBFDFB; }
.admin-photo--done .admin-photo-actions > .btn { display: none; }

/* ------------------------------------------------------------ shared pieces for orders */
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.admin-back { margin-bottom: 14px; font-size: 15px; }
.admin-panel { background: var(--white); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.admin-panel > .admin-subtitle { font-size: 24px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px 18px; align-items: start; }
.admin-grid[hidden] { display: none; }
.admin-grid--pair { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); align-items: end; }
.admin-field--wide { grid-column: 1 / -1; }
.admin-stack { display: grid; gap: 16px; }
.admin-stack[hidden], .admin-field[hidden] { display: none; }
.admin-optional { font-weight: 400; color: var(--muted); }
.admin-field input[type="tel"], .admin-field input[type="number"], .admin-field input[type="date"], .admin-field input[type="search"], .admin-field select, .admin-field textarea {
  width: 100%; min-height: 50px; padding: 8px 12px; border: 2px solid var(--line-3); border-radius: 0; background: var(--white); color: var(--sign); font: inherit; font-weight: 400; font-size: 16px;
}
.admin-field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.admin-field select { appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23281656' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.admin-field select:focus, .admin-field textarea:focus { border-color: var(--sign); outline: none; box-shadow: 0 0 0 1px var(--sign); }
.admin-choice legend { padding: 0; margin-bottom: 2px; }
.admin-choice { gap: 0; }
.admin-choice label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.admin-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--sign); }
.admin-msg--ok { background: #EDF7EF; border-color: #BFDDC6; color: #1E5631; font-weight: 600; }
.admin-msg--warn { background: #FFF6DD; border-color: #E9CF86; color: #5C4300; }
.admin-msg--warn p { margin: 0; }
.price-check { margin: 8px 0 10px; padding-left: 20px; }
.price-check li { margin: 2px 0; }
.admin-form--inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 12px; margin-top: 4px; }
.admin-form--inline .admin-hint, .admin-form--inline .admin-msg { grid-column: 1 / -1; margin-top: 0; }
.admin-form--inline .btn { min-height: 50px; }

.admin-badge { display: inline-block; padding: 3px 10px; font-size: 13.5px; font-weight: 700; line-height: 1.45; white-space: nowrap; }
.admin-badge--todo { background: var(--yellow); color: var(--glass); }
.admin-badge--info { background: var(--mist); color: var(--sign); box-shadow: inset 0 0 0 1px var(--line-3); }
.admin-badge--ok { background: #EDF7EF; color: #1E5631; box-shadow: inset 0 0 0 1px #BFDDC6; }
.admin-badge--alert { background: #FCEEEE; color: #7E1D1D; box-shadow: inset 0 0 0 1px #EDC2C2; }
.admin-badge--off { background: #EEECF2; color: var(--muted); }
/* Chosen for the store's home page window: its purple glass and yellow lettering. */
.admin-badge--window { background: var(--glass); color: var(--yellow); }
.window-state { font-weight: 700; }
.window-note { margin-top: 18px; gap: 8px; }
.window-note p { max-width: 75ch; }
.window-note-today { font-weight: 700; }

.admin-sums { display: grid; gap: 6px; margin: 0; font-size: 15.5px; }
.admin-sums > div { display: flex; justify-content: space-between; gap: 16px; }
.admin-sums dt { color: var(--muted); }
.admin-sums dd { margin: 0; font-weight: 600; text-align: right; }
.admin-sums-total { padding-top: 8px; border-top: 2px solid var(--sign); font-size: 18px; }
.admin-sums-total dt { color: var(--sign); font-weight: 700; }
.admin-sums-total dd { font-weight: 800; }
.admin-sums-total + .admin-sums-total, .admin-sums-total + div { margin-top: 2px; }

.admin-disclosure { border-top: 1px solid var(--line); padding-top: 12px; }
.admin-disclosure > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--sign); cursor: pointer; list-style: none; }
.admin-disclosure > summary::-webkit-details-marker { display: none; }
.admin-disclosure > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); margin: 0 4px 0 2px; }
.admin-disclosure[open] > summary::before { transform: rotate(45deg); }
.admin-disclosure > .admin-form { margin-top: 10px; }
.admin-disclosure--danger > summary { color: #8A1C1C; }

/* ------------------------------------------------------------ orders list */
.admin-tabs { margin-top: 26px; border-bottom: 2px solid var(--line-3); }
.admin-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: -2px; border-bottom: 3px solid transparent; font-weight: 700; font-size: 16px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.admin-tabs a:hover { color: var(--sign); }
.admin-tabs a[aria-current="page"] { color: var(--sign); border-bottom-color: var(--sign); }
.admin-count { min-width: 26px; padding: 1px 7px; border-radius: 13px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-3); font-size: 13px; text-align: center; }
.admin-tabs a[aria-current="page"] .admin-count { background: var(--sign); color: var(--white); box-shadow: none; }
.admin-search { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.admin-search input[type="search"] { flex: 1 1 280px; min-width: 0; min-height: 52px; padding: 8px 14px; border: 2px solid var(--line-3); background: var(--white); color: var(--sign); font-size: 16px; }
.admin-search input[type="search"]:focus { border-color: var(--sign); outline: none; box-shadow: 0 0 0 1px var(--sign); }
.admin-orders td { font-size: 15px; }
.admin-orders td:nth-child(4) { font-weight: 700; white-space: nowrap; }
.order-number { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.02em; color: var(--sign); text-decoration: none; }
.order-number:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.admin-empty { margin-top: 24px; padding: 28px; background: var(--white); border: 1px dashed var(--line-3); color: var(--muted); font-size: 16px; }
.admin-pages { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* ------------------------------------------------------------ record a sale */
.sale { margin-top: 24px; }
.sale-grid { display: grid; gap: 18px; align-items: start; }
.sale-main, .sale-side { display: grid; gap: 18px; min-width: 0; }
@media (min-width: 1000px) {
  .sale-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .sale-side { position: sticky; top: 16px; }
}
.sale-picker[hidden] { display: none; }
.sale-picker { display: grid; gap: 10px; }
.sale-picker .admin-hint { margin-top: -4px; }
.sale-picker-status { font-size: 14.5px; color: var(--muted); }
.sale-picker-status:empty { display: none; }
.sale-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.sale-results:empty { display: none; }
.sale-result { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid var(--line-3); background: var(--white); color: var(--sign); text-align: left; cursor: pointer; }
.sale-result:hover, .sale-result:focus-visible { border-color: var(--sign); background: var(--mist); }
.sale-result img, .sale-result-noimg { width: 64px; height: 48px; object-fit: contain; background: var(--mist); }
.sale-result-text { display: grid; gap: 2px; min-width: 0; }
.sale-result-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.sale-result-meta { font-size: 13.5px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.sale-result-price { font-weight: 800; font-size: 15px; white-space: nowrap; }
.sale-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sale-lines:empty { display: none; }
.sale-line { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line-3); background: var(--white); }
.sale-line-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; }
.sale-line-img { width: 72px; height: 54px; object-fit: contain; background: var(--mist); display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.sale-line-text { display: grid; gap: 2px; min-width: 0; }
.sale-line-title { font-weight: 700; line-height: 1.3; }
.sale-line-meta { font-size: 14px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.sale-line-numbers { display: grid; grid-template-columns: 84px minmax(110px, 160px) minmax(0, 1fr) auto; align-items: end; gap: 10px 12px; }
.sale-line .admin-field { font-size: 13.5px; gap: 4px; }
.sale-line .admin-field input { min-height: 46px; }
.sale-line-total { align-self: center; padding-top: 18px; text-align: right; font-weight: 800; font-size: 16px; white-space: nowrap; }
.sale-remove { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 10px; border: 0; background: transparent; color: #8A1C1C; font-weight: 700; font-size: 14px; }
.sale-remove[hidden] { display: none; }
.sale-remove:hover { background: #FCEEEE; }
@media (max-width: 520px) {
  .sale-line-numbers { grid-template-columns: 76px minmax(0, 1fr); }
  .sale-line-total { grid-column: 1; text-align: left; padding-top: 0; }
  .sale-remove { justify-self: end; }
}
.sale-empty[hidden] { display: none; }
.sale-add { justify-self: start; }
.sale-add[hidden] { display: none; }
.sale-totals .admin-hint { margin-top: -6px; }
.sale-submit { width: 100%; min-height: 58px; font-size: 18px; }

/* ------------------------------------------------------------ one order */
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.order-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.order-meta { margin-top: 10px; font-size: 15px; }
.order-cancelled { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.order-cancelled form { margin: 0; }
.order-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.order-actions form { margin: 0; }
.order-grid { margin-top: 22px; display: grid; gap: 18px; align-items: start; }
.order-main, .order-side { display: grid; gap: 18px; min-width: 0; }
@media (min-width: 1000px) { .order-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.admin-table-wrap--flat { margin-top: 0; border: 0; }
.order-items th.num, .order-items td.num { text-align: right; white-space: nowrap; }
@media (max-width: 760px) {
  .order-items td.num { text-align: left; }
  .order-items tr { padding-left: 0; padding-right: 0; }
}
.order-items th:first-child, .order-items td:first-child { padding-left: 0; }
.order-items th:last-child, .order-items td:last-child { padding-right: 0; }
.order-payments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-payment { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; background: var(--mist); border: 1px solid var(--line-3); font-size: 15px; line-height: 1.45; }
.order-payment form { margin: 0; }
.order-payment-main { display: grid; gap: 2px; min-width: 0; }
.order-payment--refund { background: #FFF9EC; }
.order-payment--void .order-payment-main > p:first-child { text-decoration: line-through; color: var(--muted); }
.order-payment-void { font-weight: 700; color: #7E1D1D; }
.order-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.order-step { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 15.5px; color: var(--muted); }
.order-step-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line-3); background: var(--white); }
.order-step--done { color: var(--sign); }
.order-step--done .order-step-mark { border-color: var(--sign); background: var(--sign); color: var(--white); }
.order-step--now { color: var(--sign); font-weight: 800; }
.order-step--now .order-step-mark { border-color: var(--sign); background: var(--yellow); color: var(--glass); }
.order-customer-name { font-weight: 800; font-size: 19px; }
.order-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.order-contact .btn { min-height: 46px; padding: 0 14px; }
.order-subhead { margin: 6px 0 -6px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; }
.order-notes { white-space: pre-line; }
.order-profit .admin-hint { margin-top: -10px; }

/* ------------------------------------------------------------ receipt */
.receipt-page { background: var(--mist); color: #1B1430; }
.receipt-tools { max-width: 820px; margin: 0 auto; padding: 18px var(--gutter) 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 15px; }
.receipt-tools .btn { margin-left: auto; min-height: 46px; }
.receipt-tools .btn[hidden] { display: none; }
.receipt-langs a { margin-left: 6px; font-weight: 700; color: var(--sign); }
.receipt-langs a[aria-current="true"] { text-decoration: none; color: var(--muted); pointer-events: none; }
.receipt { max-width: 820px; margin: 16px auto 64px; padding: clamp(24px, 5vw, 48px); background: var(--white); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.receipt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; padding-bottom: 18px; border-bottom: 3px solid var(--sign); }
.receipt-logo { display: block; width: 250px; max-width: 100%; height: auto; margin-bottom: 12px; }
.receipt-meta { text-align: right; }
.receipt-title { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; text-transform: uppercase; color: var(--sign); }
.receipt-note { margin-top: 16px; padding: 10px 14px; background: #FCEEEE; color: #7E1D1D; font-weight: 700; }
.receipt-parties { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; }
.receipt h2 { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.receipt-items { width: 100%; margin-top: 24px; border-collapse: collapse; }
.receipt-items th { padding: 8px 10px; text-align: left; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 2px solid var(--sign); }
.receipt-items td { padding: 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.receipt-items th:first-child, .receipt-items td:first-child { padding-left: 0; width: 56px; }
.receipt-items th:last-child, .receipt-items td:last-child { padding-right: 0; }
.receipt-items .num { text-align: right; white-space: nowrap; }
.receipt-small { font-size: 13px; color: var(--muted); }
.receipt-bottom { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 40px; align-items: start; }
.receipt-payments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.receipt-payments li { display: flex; justify-content: space-between; gap: 12px; }
.receipt-sums { grid-column: -2 / -1; }
.receipt-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; text-align: center; }
.receipt-policy { font-weight: 700; }
.receipt-thanks { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--sign); }
@media print {
  @page { margin: 14mm; }
  .receipt-page { background: #fff; }
  .receipt-tools { display: none; }
  .receipt { max-width: none; margin: 0; padding: 0; border: 0; }
  .receipt-items tr { break-inside: avoid; }
}

/* ------------------------------------------------------------ money */
.money-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; font-size: 15.5px; }
.money-months { margin-top: 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.money-months > :first-child { justify-self: start; }
.money-months > :last-child { justify-self: end; }
.money-step { min-height: 44px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
.money-month { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.4vw, 36px); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; text-align: center; }
.money-grid { margin-top: 20px; display: grid; gap: 18px; align-items: start; }
.money-side { display: grid; gap: 18px; min-width: 0; }
@media (min-width: 1000px) {
  .money-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .money-summary, .money-spent { grid-column: 1; }
  .money-side { grid-column: 2; grid-row: 1 / span 2; }
}
.money-sums { font-size: 17px; }
.money-sums > div { align-items: baseline; }
.money-sums .admin-muted { font-weight: 400; font-size: 15px; }
.money-net { font-size: 22px; }
.money-net--loss dd, .money-net-cell.money-net--loss { color: #8A1C1C; }
.money-hint { margin-top: -6px; }
.admin-panel > .money-missing { margin-top: 0; }
.money-extra { padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.money-missing { display: grid; gap: 8px; background: #FFF8DB; border-color: #EAD48A; color: var(--glass); }
.money-missing ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.money-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.money-files .btn { width: 100%; justify-content: flex-start; min-height: 48px; font-size: 15.5px; }
.money-subhead { margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; }
.money-spent .admin-table td, .money-spent .admin-table th, .money-year-table td, .money-year-table th { padding-left: 0; }
.money-amount { text-align: right !important; white-space: nowrap; }
.money-categories tfoot th, .money-categories tfoot td, .money-year-table tfoot th, .money-year-table tfoot td { padding-top: 12px; border-top: 2px solid var(--sign); font-weight: 800; }
.money-categories tfoot th, .money-year-table tfoot th { border-bottom: 0; }
.money-expenses th, .money-day { white-space: nowrap; }
.money-year-table tbody th { padding: 14px 16px 14px 0; text-align: left; font-family: inherit; font-weight: 700; font-size: 15.5px; letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--line); white-space: nowrap; }
.money-year-table tbody th .admin-muted { font-weight: 400; }
.money-year-table tfoot th { text-align: left; font-family: inherit; font-size: 15.5px; letter-spacing: 0; text-transform: none; }
.money-now { background: var(--mist); }
.money-flag { color: #8A6A00; font-weight: 800; cursor: help; }
.money-year { margin-top: 18px; }
.money-year-files { margin-top: 18px; }
.money-year-files .money-files { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
a.admin-small-button { display: inline-flex; align-items: center; text-decoration: none; }
.money-edit-card { margin-top: 20px; display: grid; gap: 20px; }
/* Bring in expenses */
.money-how { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.5; }
.money-imports, .money-import-again, .money-import-summary ~ .admin-panel { margin-top: 18px; }
.money-imports .admin-table td, .money-imports .admin-table th, .money-import-months .admin-table td, .money-import-months .admin-table th { padding-left: 0; }
.money-import-undone td:not(.admin-actions-cell) { opacity: 0.6; text-decoration: line-through; text-decoration-thickness: 1px; }
.money-problems { margin: 10px 0; padding-left: 20px; display: grid; gap: 4px; }
.admin-msg--error > p { margin: 0; }
.money-import-summary { margin-top: 20px; display: grid; gap: 10px 24px; align-items: center; }
.money-import-count { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
.money-import-summary .admin-hint { margin: 0; }
@media (min-width: 760px) {
  .money-import-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .money-import-summary .admin-hint { grid-column: 1; }
  .money-import-save { grid-column: 2; grid-row: 1 / span 2; }
}
.money-delete { padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .money-months { grid-template-columns: 1fr 1fr; }
  .money-month { grid-column: 1 / -1; grid-row: 1; }
  .money-amount { text-align: left !important; }
  .money-year-table tbody th { display: block; padding: 0 0 4px; border: 0; }
  .money-year-table tfoot th { display: block; padding: 0 0 4px; border: 0; }
  .money-year-table tfoot tr { padding-top: 12px; border-top: 2px solid var(--sign); }
  .money-year-table tfoot td { padding-top: 4px; border-top: 0; }
  /* A small three-column table: it stays a table on phones. */
  .money-categories { display: table; }
  .money-categories thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .money-categories tbody { display: table-row-group; }
  .money-categories tfoot { display: table-footer-group; }
  .money-categories tr { display: table-row; padding: 0; }
  .money-categories td, .money-categories th { display: table-cell; padding: 10px 10px 10px 0; }
  .money-categories td[data-label]:not(:first-child)::before { content: none; }
  .money-categories .money-amount { text-align: right !important; padding-right: 0; }
  .admin-actions-cell { width: auto; }
}

/* expense categories */
.money-cat-new { margin-top: 24px; }
.money-cat-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); align-items: end; gap: 12px 14px; }
.money-cat-form .btn { min-height: 50px; justify-self: start; }
.money-cats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.money-cat { display: grid; gap: 4px; padding: 12px 20px; background: var(--white); border: 1px solid var(--line); scroll-margin-top: 24px; }
.money-cat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 44px; }
.money-cat-name { margin: 0; flex: 1 1 220px; font-size: 16.5px; }
.money-cat-uses { font-size: 14.5px; }
.money-cat-head form { margin: 0; }
.money-rename { padding-top: 4px; }
.money-rename > summary { min-height: 40px; font-size: 15px; }
.money-rename .admin-msg { margin: 4px 0 10px; }
.money-rename > .money-cat-form { margin: 4px 0 8px; }
.money-cat-remove { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.money-cat--stopped { grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: #FBFAFD; }
.money-stopped-lead { margin-top: 8px; }

/* ------------------------------------------------------------ team: what each role can do */
.admin-legend-note { font-weight: 400; color: var(--muted); }
.admin-role-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; margin-top: 6px; }
.admin-role { padding: 4px 18px 16px; background: var(--white); border: 2px solid var(--line-3); }
.admin-role:has(input:checked) { border-color: var(--sign); }

/* Where your sign-in code comes from: on a sign-in link, and on Your sign-in. */
.admin-method .admin-hint { margin: 0 0 2px; font-weight: 400; }
.admin-method label { padding: 10px 0; }
.me-method { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.me-method p { margin: 8px 0 0; }
.me-method .admin-form { margin-top: 16px; }
.admin-text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--sign); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; cursor: pointer; }
.admin-text-button:hover { text-decoration-thickness: 2px; }
.admin-roles .admin-role label { font-size: 17px; }
.admin-perms { display: grid; gap: 6px; font-weight: 400; }
.admin-perms-head { margin-top: 6px; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.admin-perm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; line-height: 1.4; }
.admin-perm-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; }
.admin-perm-list .icon { margin-top: 1px; }
.admin-perm-list--yes .icon { color: #1E5631; }
.admin-perm-list--no .icon { color: #8A1C1C; }
.admin-perm-list--no li { color: var(--muted); }

/* ------------------------------------------------------------ products */
.admin-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 10px; font-weight: 600; font-size: 15.5px; line-height: 1.4; cursor: pointer; }
.admin-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--sign); }
.products-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.products-search input[type="search"] { flex: 1 1 260px; }
.products-search select { flex: 0 1 220px; min-height: 48px; padding: 8px 40px 8px 12px; border: 2px solid var(--line-3); border-radius: 0; color: var(--sign); font: inherit; font-size: 16px; appearance: none; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23281656' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.product-rows { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.product-row-link { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 6px 18px; padding: 10px 16px 10px 10px; background: var(--white); border: 1px solid var(--line); color: var(--sign); text-decoration: none; transition: border-color .2s var(--ease); }
.product-row-link:hover { border-color: var(--sign); }
.product-thumb { display: flex; align-items: center; justify-content: center; width: 88px; aspect-ratio: 4 / 3; background: var(--white); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb--empty { background: var(--tile); font-size: 12px; color: var(--muted); text-align: center; }
.product-row-main { display: grid; gap: 2px; min-width: 0; }
.product-row-title { font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.product-row-codes { font-size: 14px; color: var(--sign); overflow-wrap: anywhere; }
.product-row-room { font-size: 14px; }
.product-row-side { display: grid; gap: 6px; justify-items: end; text-align: right; }
.product-row-price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.product-row-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
@media (max-width: 560px) {
  .product-row-link { grid-template-columns: 72px minmax(0, 1fr); }
  .product-thumb { width: 72px; }
  .product-row-side { grid-column: 2; justify-items: start; text-align: left; }
  .product-row-badges { justify-content: flex-start; }
}

.product-head { align-items: flex-start; }
.product-title { font-size: clamp(30px, 3.6vw, 44px); }
.product-meta { margin-top: 10px; font-size: 15.5px; overflow-wrap: anywhere; }
.product-badges { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14.5px; }
.product-hint { margin-top: -6px; }
.product-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.admin-disclosure .product-photos { margin-top: 10px; }
.product-photo { display: grid; gap: 6px; align-content: start; }
.product-photo-img { display: flex; align-items: center; justify-content: center; margin: 0; aspect-ratio: 4 / 3; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.product-photo-img img { width: 100%; height: 100%; object-fit: contain; }
.product-photo-img--missing { background: var(--tile); padding: 10px; font-size: 13px; line-height: 1.35; color: var(--muted); text-align: center; }
.product-photo:first-child .product-photo-img { border: 2px solid var(--sign); }
.admin-disclosure .product-photo .product-photo-img { border: 1px solid var(--line); opacity: 0.6; }
.product-photo-label { min-height: 22px; font-size: 14px; line-height: 1.35; }
.product-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.product-photo-actions form { margin: 0; }
.product-add-photo form { margin-top: 10px; }
.product-names { align-items: start; }
.product-option { margin: 0; padding: 14px 16px 12px; border: 1px solid var(--line-3); min-width: 0; }
.product-option legend { padding: 0 6px; font-weight: 700; font-size: 15.5px; }
.product-option-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; }
.product-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
@media (min-width: 700px) { .product-option-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-option-price input { font-weight: 700; }
.product-option-note { margin-top: 8px; }
.product-includes { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; line-height: 1.4; }
.product-edited { font-size: 14px; }

/* ------------------------------------------------------------ Settings (owners) */
.settings-grid { margin-top: 20px; display: grid; gap: 18px; align-items: start; }
.settings-side { display: grid; gap: 18px; min-width: 0; }
@media (min-width: 1000px) {
  .settings-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .settings-panel--delivery, .settings-panel--announcement { grid-column: 1; }
  .settings-side { grid-column: 2; grid-row: 1 / span 3; }
}
.settings-lead { margin-top: -4px; }
.settings-when { margin-top: 2px; font-size: 14px; }
.settings-short input { max-width: 160px; }
.settings-hours { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.settings-hours th, .settings-hours td { padding: 8px 12px 8px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.settings-hours thead th { padding-top: 0; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 2px solid var(--sign); }
.settings-hours tbody th { font-weight: 700; white-space: nowrap; }
.settings-hours input[type="time"] { width: 100%; min-width: 0; max-width: 150px; min-height: 46px; padding: 6px 10px; border: 2px solid var(--line-3); border-radius: 0; background: var(--white); color: var(--sign); font: inherit; font-variant-numeric: tabular-nums; }
.settings-hours input[type="time"]:focus { border-color: var(--sign); outline: none; box-shadow: 0 0 0 1px var(--sign); }
.settings-hours input[type="time"]:disabled { opacity: 0.45; }
.settings-closed { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; }
.settings-closed input { width: 20px; height: 20px; accent-color: var(--sign); }
@media (max-width: 600px) {
  /* Phones: each day stacks, its name and Closed on one line, its two times side by side below. */
  .settings-hours, .settings-hours tbody { display: block; }
  .settings-hours thead { display: none; }
  .settings-hours tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
  .settings-hours th, .settings-hours td { display: block; padding: 0; border: 0; }
  .settings-hours tbody th { align-self: center; }
  .settings-hours td:last-child { grid-column: 2; grid-row: 1; justify-self: end; }
  .settings-hours td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .settings-hours input[type="time"] { max-width: none; }
}

/* ------------------------------------------------------------ the staff door (signed-out pages)
   The storefront's night window, lettered as the staff entrance, with each page's form on a
   white placard standing in the lit bay. Built from the store's own parts (site.css): the
   window frame, glass bays, decals and the light sweep. */
body.admin.admin-door { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--deep); }
.door-band { background: var(--sign); border-bottom: 8px solid var(--deep); }
.door-band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 14px var(--gutter); }
.door-logo { display: block; flex: none; width: clamp(148px, 20vw, 248px); }
.door-logo img { display: block; width: 100%; height: auto; }
.door-tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 18px; }
.door-store { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; }
.door-store:hover { color: var(--yellow); }
.door-store svg { width: 18px; height: 18px; }

.door { flex: 1 0 auto; display: flex; }
.door-frame { flex: 1 1 auto; align-content: stretch; }
.door-letters { flex: 1 1 380px; container: letters / inline-size; }
/* The lettering stays in view while a tall page (the 2-step setup) scrolls past it. */
/* Its height is the window's, less the band (about 86px), the frame's 12px edges and the bay's padding. */
.door-letters-in { position: sticky; top: clamp(28px, 3.6vw, 76px); height: min(100%, calc(100dvh - 110px - 2 * clamp(28px, 3.6vw, 76px))); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 4vw, 56px); }
.door-sign { margin: 0; }
.door-sign-big { display: block; max-width: 9ch; font-family: var(--display); font-weight: 900; font-size: clamp(56px, 6.2vw, 132px); line-height: 0.86; letter-spacing: -0.005em; text-transform: uppercase; color: var(--yellow); text-wrap: balance; }
.door-sign-small { display: block; margin-top: clamp(14px, 1.2vw, 24px); font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.4vw, 40px); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); }
.door-foot { display: flex; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.door-address { min-width: 0; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.15vw, 22px); line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lilac); }
.door-decals { flex: none; display: flex; padding-right: 6px; }
.door-decals .decal { margin: 0; }
/* The decal only where the bay has room for it beside the address. */
@container letters (max-width: 460px) {
  .door-decals { display: none; }
}

/* The lit bay with the placard. */
.door-desk { flex: 1 1 520px; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3.2vw, 64px) clamp(16px, 2.6vw, 56px); background: var(--glass-2); }
.door-desk::before { background: linear-gradient(116deg, rgba(255,255,255,0) 16%, rgba(255,255,255,0.035) 16%, rgba(255,255,255,0.035) 23%, rgba(255,255,255,0) 23%); }
/* Above the light sweep: the light passes behind the placard, as glass would. */
.admin-door .admin-card { position: relative; z-index: 1; width: min(100%, 460px); margin: 0; border: 0; padding: clamp(24px, 2.4vw, 36px) clamp(22px, 2.4vw, 36px) clamp(26px, 2.6vw, 38px); box-shadow: 0 28px 56px -18px rgba(6, 2, 20, 0.75), 0 2px 10px rgba(6, 2, 20, 0.35); }
.admin-door .admin-card--wide { width: min(100%, 640px); max-width: none; }
.admin-door .admin-card :focus-visible { outline-color: var(--sign); }
.admin-door .admin-title { font-size: clamp(38px, 3.2vw, 52px); }
.admin-door .admin-form .btn { justify-self: stretch; min-height: 52px; }
.admin-door .admin-aside { line-height: 1.45; }
.admin-door .admin-field input { border-color: var(--muted-2); caret-color: var(--sign); }
.admin-door .admin-field input:focus { border-color: var(--sign); }
/* The browser's autofill tint would put a yellow or blue box on the white placard. */
.admin-door .admin-field input:-webkit-autofill,
.admin-door .admin-field input:-webkit-autofill:hover,
.admin-door .admin-field input:-webkit-autofill:active,
.admin-door .admin-field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px var(--white) inset; -webkit-text-fill-color: var(--sign); caret-color: var(--sign); }
.admin-door .admin-field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1px var(--sign), 0 0 0 40px var(--white) inset; }
.admin-door .admin-field input:autofill { box-shadow: 0 0 0 40px var(--white) inset; }

/* The Sign in page's extras: the email already chosen (read-only), and the quieter actions
   under the code (a new code, another email). */
.admin-field input[readonly], .admin-door .admin-field input[readonly] { background: var(--mist); border-color: var(--line-3); color: var(--sign); }
.admin-field input[readonly]:focus { box-shadow: none; border-color: var(--muted-2); }
.signin-more { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.signin-more form { margin: 0; }
.signin-more .btn { min-height: 46px; padding: 0 18px; font-size: 15px; }
.signin-more .link-ink { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.signin-more .link-ink:hover { text-decoration-thickness: 2px; }

/* Tablets and phones: the bays stack. The lettering stays a short band above the placard,
   and the placard's bay takes the rest of the height. */
@media (max-width: 960px) {
  .door-frame { flex-direction: column; flex-wrap: nowrap; }
  .door-letters { flex: none; padding: clamp(22px, 4vw, 36px) clamp(20px, 4vw, 40px); }
  .door-letters-in { position: static; height: auto; gap: 18px; }
  .door-sign-big { max-width: none; }
  .door-foot { align-items: center; }
  .door-desk { flex: 1 0 auto; align-items: flex-start; padding: clamp(12px, 4vw, 40px) clamp(12px, 4vw, 40px) clamp(20px, 5vw, 48px); }
}
/* Phones: the lettering alone (the address is on the store), so the form starts high even
   with an error above it. */
@media (max-width: 760px) {
  .door-band-row { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .door-logo { width: 148px; }
  .door-frame { padding: 8px; gap: 8px; }
  .door-letters { padding: 18px 20px 16px; }
  .door-sign-big { font-size: clamp(40px, 11.5vw, 60px); }
  .door-sign-small { margin-top: 8px; font-size: clamp(20px, 5.6vw, 28px); }
  .door-foot { display: none; }
  .door-desk { padding: 12px 12px 20px; }
}
/* Small phones: the logo leads back to the store, so the text link steps aside. */
@media (max-width: 560px) {
  .door-store { display: none; }
}
