.admin { background: var(--snow); min-height: 100dvh; }
.muted { color: var(--muted); }
.admin h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.05; }

.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--pine); }
.login-card { width: min(420px, 100%); background: var(--paper); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.login-card img { border-radius: 16px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.login-card .btn { min-height: 50px; }
.login-card a { text-align: center; color: var(--muted); }

.a-top { display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter); background: var(--pine); color: #fff; }
.a-top .btn { min-height: 40px; padding: 0 14px; border-width: 1.5px; }
.demo-note { background: #FDF1D8; padding: 10px var(--gutter); font-size: .95rem; border-bottom: 1px solid #F0DCA8; }
.a-tabs { display: flex; gap: 6px; padding: 12px var(--gutter); overflow-x: auto; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; scrollbar-width: none; }
.a-tabs button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; color: var(--muted); }
.a-tabs button[aria-current="true"] { background: var(--pine); color: #fff; }
.a-tabs .count { margin-left: 6px; background: var(--coral); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .8rem; }

.a-main { padding: 28px var(--gutter) 80px; max-width: 1040px; margin: 0 auto; }
.a-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.a-head p { margin-top: 6px; max-width: 52ch; }
.a-list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border-radius: 16px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); }
.row.no-thumb { grid-template-columns: 1fr auto; padding-left: 16px; }
.thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #E3ECEE; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--pine); font-size: 1.1rem; overflow: hidden; }
img.thumb.contain { object-fit: contain; padding: 6px; }
.row-text { min-width: 0; }
.row-text strong { display: block; font-family: var(--display); font-size: 1.1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-text span { display: block; color: var(--muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-text .wrap { white-space: normal; }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #E3ECEE; margin-right: 6px; }
.pill.on { background: #D5F0E6; color: #11573F; }
.pill.off { background: #F3E1DC; color: #8A2E14; }
.row-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 0; background: transparent; font-weight: 600; color: var(--pine); }
.icon-btn:hover { background: #E3ECEE; }
.icon-btn.del { color: #B3341A; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.btn-danger { background: #B3341A; color: #fff; }
.empty-box { text-align: center; padding: 48px 20px; background: var(--paper); border: 2px dashed var(--line); border-radius: 18px; display: grid; gap: 14px; justify-items: center; }

/* editor fields */
#editFields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
#editFields .check { flex-direction: row; align-items: center; gap: 10px; }
#editFields .check input { width: 22px; height: 22px; accent-color: var(--pine); }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > b { font-weight: 600; }
.media-list { display: grid; gap: 8px; }
.media-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; background: var(--snow); border-radius: 12px; padding: 6px; }
.media-item .thumb { width: 56px; height: 56px; font-size: .7rem; }
.media-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; color: var(--muted); }
.media-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.upload { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px dashed var(--pine); font-weight: 600; cursor: pointer; align-self: flex-start; }
.upload:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.image-prev { max-height: 140px; max-width: 100%; border-radius: 12px; align-self: flex-start; background: var(--snow); }

.booking { grid-template-columns: 1fr auto; padding: 16px; align-items: start; }
.booking a { color: var(--lake); font-weight: 600; }
.booking select { min-height: 40px; width: auto; padding: 4px 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 80px); background: var(--pine); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; transition: transform .35s var(--ease); z-index: 100; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .a-top .btn-ghost[target] { display: none; }
  .row { grid-template-columns: 56px 1fr; }
  .row .thumb { width: 56px; height: 56px; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 6px; }
  .row.no-thumb { grid-template-columns: 1fr; }
  .a-head .btn { width: 100%; min-height: 50px; }
}
.row-text .pill { display: inline-block; width: auto; vertical-align: middle; margin-left: 6px; }
.login-card .login-logo { height: 60px; width: auto; align-self: flex-start; border-radius: 0; }
.a-top .wordmark img { height: 38px; }
.thumb.dark { background: var(--pine); }
.video-note { font-size: .95rem; color: var(--lake); font-weight: 600; }
.a-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .a-actions { width: 100%; } .a-actions .btn { flex: 1; min-height: 50px; } }
.login-card .linkish { align-self: center; color: var(--muted); font-size: .95rem; }
#forgotNote:empty { display: none; }
#pwForm .step > label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
@media (max-width: 720px) { .a-top #pwBtn { padding: 0 10px; font-size: .9rem; } }
