/* Scentino — account, journal and studio admin pages (loaded after styles.css) */
.app-page { background: var(--ivory); min-height: 100svh; display: flex; flex-direction: column; }
.app-page main { flex: 1; }
.app-page button { font: inherit; }
.app-page button.btn { border: 0; cursor: pointer; }
.btn--line { background: transparent; color: var(--wine); box-shadow: inset 0 0 0 1px rgba(97, 34, 56, .35); }
.btn--line:hover { background: var(--wine); color: var(--ivory); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.app-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 20px var(--pad); background: var(--cocoa); color: var(--ivory);
}
.app-top nav { display: flex; gap: clamp(16px, 2.4vw, 32px); font-size: 14px; flex-wrap: wrap; }
.app-top nav a { text-decoration: none; opacity: .8; }
.app-top nav a:hover, .app-top nav a[aria-current="page"] { opacity: 1; }
.app-top nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 currentColor; padding-bottom: 3px; }

.demo-bar { margin: 0; padding: 10px var(--pad); background: #efe3cf; color: var(--ink-soft); font-size: 13px; text-align: center; }
.demo-bar strong { font-weight: 500; color: var(--cocoa); }

.app-wrap { max-width: 1080px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--pad) 90px; }
.app-kicker { font: 400 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.app-title { font: 300 clamp(40px, 6vw, 68px)/1.02 var(--serif); color: var(--wine-deep); margin: 0 0 14px; }
.app-lede { font-size: 17px; color: var(--ink-soft); max-width: 560px; margin: 0 0 34px; }
.app-note { font-size: 14px; color: var(--ink-soft); }
.app-msg { min-height: 1.4em; font-size: 14px; color: var(--wine); margin: 10px 0 0; }
.app-card { background: #fff; border-radius: 18px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 1px 0 rgba(32, 27, 25, .06), 0 18px 40px -28px rgba(61, 19, 35, .35); }
.app-empty { padding: 28px; border: 1px dashed rgba(97, 34, 56, .25); border-radius: 16px; color: var(--ink-soft); }
.app-empty p { margin: 0 0 16px; }

/* sign-in */
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(30px, 6vw, 80px); align-items: center; }
/* tablets: the form goes under the text, so the headline keeps a wide column */
@media (max-width: 1100px) { .signin { grid-template-columns: minmax(0, 640px); } }
.signin__perks { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.signin__perks li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.signin__perks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 1px; background: var(--gold); }
.signin__form .btn { width: 100%; margin-top: 6px; }
.signin__sent h2 { font: 300 32px/1.1 var(--serif); color: var(--wine-deep); margin: 0 0 10px; }

/* dashboard */
.dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.dash__head .app-title { margin: 0; }
.staff-card { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 30px; }
.staff-card .app-kicker { margin-bottom: 6px; }
.staff-card__text { margin: 0; max-width: 520px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 30px; padding: 0; border-bottom: 1px solid rgba(32, 27, 25, .12); }
.tabs button { background: none; border: 0; padding: 12px 16px; font-size: 15px; color: var(--ink-soft); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.tabs button[aria-selected="true"] { color: var(--wine); box-shadow: inset 0 -2px 0 var(--wine); }
.panel[hidden] { display: none; }

.frag-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.frag__no { font: 400 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.frag__name { font: 400 30px/1.1 var(--serif); color: var(--wine-deep); margin: 0 0 6px; }
.frag__meta { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.frag table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 14px; }
.frag th { text-align: left; font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 0 0 8px; }
.frag td { padding: 8px 0; border-top: 1px solid rgba(32, 27, 25, .08); }
.frag td:last-child, .frag th:last-child { text-align: right; }
.frag__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.frag__actions .btn { padding: 12px 20px; font-size: 14px; }
.refill { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(32, 27, 25, .08); }
.refill[hidden] { display: none; }
.sizes { display: flex; gap: 8px; margin: 0 0 14px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: inline-block; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(97, 34, 56, .3); font-size: 14px; cursor: pointer; }
.sizes input:checked + span { background: var(--wine); color: var(--ivory); box-shadow: none; }
.sizes input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.ws-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ws { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.ws__name { font: 400 24px/1.15 var(--serif); color: var(--wine-deep); margin: 0 0 4px; }
.ws__meta { margin: 0; font-size: 14px; color: var(--ink-soft); }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: rgba(182, 154, 125, .18); color: var(--cocoa); }

.profile-form { max-width: 560px; }
.profile-form .field input[readonly] { color: var(--ink-soft); }
.danger { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(32, 27, 25, .1); }
.danger button { background: none; border: 0; padding: 0; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; max-width: 620px; }
.switch input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--wine); flex: none; }

/* journal */
.journal-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(22px, 3vw, 36px); }
.post-card { text-decoration: none; display: block; }
.post-card__img { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #e8dfd3; margin-bottom: 18px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__date { font-size: 13px; color: var(--gold); margin: 0 0 8px; letter-spacing: .04em; }
.post-card__title { font: 400 clamp(24px, 2.4vw, 30px)/1.15 var(--serif); color: var(--wine-deep); margin: 0 0 10px; }
.post-card__excerpt { margin: 0; color: var(--ink-soft); font-size: 15px; }
.posts--first .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(22px, 4vw, 50px); align-items: center; }
.posts--first .post-card:first-child .post-card__img { margin: 0; aspect-ratio: 16 / 10; }
.posts--first .post-card:first-child .post-card__title { font-size: clamp(30px, 3.6vw, 44px); }

.article { max-width: 720px; margin: 0 auto; }
.article__back { display: inline-block; margin-bottom: 30px; font-size: 14px; color: var(--ink-soft); }
.article__date { color: var(--gold); font-size: 14px; margin: 0 0 14px; }
.article__cover { border-radius: 18px; overflow: hidden; margin: 30px 0 36px; aspect-ratio: 16 / 10; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.75; color: #3d332f; }
.prose h2 { font: 400 clamp(28px, 3vw, 34px)/1.2 var(--serif); color: var(--wine); margin: 44px 0 12px; }
.prose h3 { font: 400 24px/1.25 var(--serif); color: var(--wine); margin: 34px 0 10px; }
.prose p, .prose ul { margin: 0 0 20px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--wine); text-underline-offset: 3px; }
.prose strong { font-weight: 500; }
.prose figure { margin: 30px 0; }
.prose img { border-radius: 14px; width: 100%; height: auto; }

/* studio admin */
.admin-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 30px; align-items: start; }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.admin-list button { width: 100%; text-align: left; background: #fff; border: 0; border-radius: 12px; padding: 14px 16px; cursor: pointer; box-shadow: 0 1px 0 rgba(32, 27, 25, .06); }
.admin-list button[aria-current="true"] { box-shadow: inset 0 0 0 1.5px var(--wine); }
.admin-list small { display: block; color: var(--ink-soft); margin-top: 4px; font-size: 12px; }
.admin-form .field { margin-bottom: 20px; }
.admin-form textarea { min-height: 320px; font: 400 15px/1.6 var(--sans); }
.admin-form .row { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-form .row > .field { flex: 1 1 200px; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.admin-actions .btn { padding: 13px 24px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.cover-pick { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cover-pick img { width: 140px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #e8dfd3; }
.md-help { font-size: 13px; color: var(--ink-soft); margin: -10px 0 20px; }
.preview { margin-top: 30px; }
.ing-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.ing-row { display: grid; grid-template-columns: 1fr 120px 32px; gap: 10px; align-items: end; }
.ing-row .field { margin: 0; }
.ing-row button { background: none; border: 0; font-size: 22px; color: var(--ink-soft); cursor: pointer; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 14px; overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(32, 27, 25, .07); vertical-align: top; }
.data-table th { font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: #faf6f0; }
.data-table select { font: inherit; padding: 4px 6px; }

/* offer on the booking thank-you screen */
.join { margin-top: 26px; padding: 22px; border-radius: 16px; background: #fff; text-align: left; box-shadow: 0 0 0 1px rgba(97, 34, 56, .12); }
.join__title { font: 400 26px/1.15 var(--serif); color: var(--wine-deep); margin: 0 0 6px; }
.join__text { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }
.join .check { margin: 12px 0 0; font-size: 13px; }
.join__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.join__actions .btn { padding: 13px 24px; font-size: 14px; border: 0; cursor: pointer; }
.join__skip { background: none; border: 0; padding: 0; font-size: 14px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.join__sent { margin: 0; font-size: 15px; color: var(--cocoa); }

@media (max-width: 760px) {
  .signin, .admin-grid { grid-template-columns: 1fr; }
  .posts--first .post-card:first-child { display: block; }
  .posts--first .post-card:first-child .post-card__img { margin-bottom: 18px; }
  .app-top { padding: 16px var(--pad); }
  .app-top .nav__brand { font-size: 18px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs button { white-space: nowrap; padding: 12px 12px; }
  .frag-list { grid-template-columns: 1fr; }
  .ing-row { grid-template-columns: 1fr 90px 28px; }
}

/* shared footer */
.app-foot { display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; padding: 26px var(--pad); border-top: 1px solid rgba(32, 27, 25, .1); font-size: 13px; color: var(--ink-soft); }
.app-foot p { margin: 0; }
.app-foot a { color: inherit; }
.app-top .nav__brand { color: var(--ivory); text-decoration: none; }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
