/* Worth Yoga admin, demo copy. Same palette, type and layout as worth.yoga's real admin
   (Worth_Yoga/src/styles/global.css). Scoped to .wy-app so the phone frame page can host it.
   data-mode="desk" = the computer layout (site header + admin nav); data-mode="phone" = the app (tab bar). */
.wy-app {
  --paper: #ffffff; --paper-2: #f2f2f2; --ink: #141414; --ink-2: #5a5a5a; --line: #d4d4d4;
  --ok: #3f6f3a; --bad: #a0392f; --radius: 4px;
  --font-script: 'Great Vibes', 'Brush Script MT', 'Segoe Script', cursive;
  --font-display: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-body: 'Cormorant Garamond', Garamond, Georgia, serif;
  display: flex; flex-direction: column; min-height: 100%;
  background: var(--paper); color: var(--ink); font: 500 19px/1.55 var(--font-body);
  -webkit-text-size-adjust: 100%; text-align: left;
}
.wy-app *, .wy-app *::before, .wy-app *::after { box-sizing: border-box; }
.wy-app a, .wy-app .lk { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--ink); }
.wy-app .lk { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.wy-app h1, .wy-app h2.s { font-family: var(--font-script); font-weight: 400; line-height: 1.1; margin: 0 0 .5rem; }
.wy-app h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 1.4rem 0 .5rem; }
.wy-app p { margin: 0 0 1rem; }
.wy-app .wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; width: 100%; }
.wy-app .muted { color: var(--ink-2); }
.wy-app .small { font-size: .9rem; }
.wy-app :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* header / footer (computer only) */
.wy-app .site-header { padding: 1rem 0; }
.wy-app .site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wy-app .brand { font-family: var(--font-script); font-size: 2rem; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.wy-app .brand img { width: 2.5rem; height: 2.5rem; flex: none; }
.wy-app .nav a { text-decoration: none; color: var(--ink-2); margin-left: 1.1rem; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.wy-app .nav a:hover { color: var(--ink); }
.wy-app .site-footer { margin-top: 3rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }

/* buttons */
.wy-app .btn {
  display: inline-block; padding: .7rem 1.15rem; border-radius: 2px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; font: 600 1rem/1.2 var(--font-body);
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.wy-app .btn:hover { background: #000; }
.wy-app .btn.ghost { background: transparent; color: var(--ink); }
.wy-app .btn.ghost:hover { background: var(--paper-2); }
.wy-app .btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.wy-app .btn.danger:hover { background: #f6e3e0; }
.wy-app .btn.sm { padding: .4rem .8rem; font-size: .88rem; }
.wy-app .btn.big { font-size: 1.15rem; padding: 1rem 1.2rem; width: 100%; }

/* forms */
.wy-app form.stack, .wy-app .stack { display: grid; gap: .9rem; }
.wy-app label { display: grid; gap: .3rem; font-size: .95rem; font-weight: 600; }
.wy-app [hidden] { display: none !important; }
.wy-app label .hint, .wy-app .hint { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.wy-app input, .wy-app select, .wy-app textarea {
  font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
.wy-app input, .wy-app td, .wy-app .notice, .wy-app .item, .wy-app .tile-meta, .wy-app .summary { font-variant-numeric: lining-nums; }
.wy-app input[type=checkbox], .wy-app input[type=radio] { width: auto; }
.wy-app input:focus, .wy-app select:focus, .wy-app textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.wy-app .row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; }
.wy-app .row > * { flex: 1 1 10rem; }
.wy-app .row > .auto { flex: 0 0 auto; }
.wy-app .check { display: flex; gap: .45rem; align-items: center; font-weight: 400; }
.wy-app .notice { padding: .8rem 1rem; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 1rem; }
.wy-app .notice.ok { background: #e8f0e3; border-color: #b9cfb0; color: var(--ok); }
.wy-app .notice.bad { background: #f6e3e0; border-color: #e0b6b0; color: var(--bad); }
.wy-app .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.wy-app .cards { display: grid; gap: .75rem; }
.wy-app a.card { text-decoration: none; padding: 1rem 1.1rem; }
.wy-app a.card:hover { border-color: var(--ink); }
.wy-app .summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.wy-app .summary strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }

/* chips row (door classes) */
.wy-app .dates { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .75rem; }
.wy-app .dates button { flex: 0 0 auto; font: inherit; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: .92rem; text-align: center; min-width: 4.6rem; line-height: 1.2; cursor: pointer; }
.wy-app .dates button[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.wy-app .dates .small { font-size: .78rem; opacity: .8; }

/* tables */
.wy-app table { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; border: 1px solid var(--line); }
.wy-app th, .wy-app td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.wy-app th { background: var(--paper-2); font-weight: 600; font-size: .85rem; }
.wy-app tr:last-child td { border-bottom: 0; }
.wy-app .table-wrap { overflow-x: auto; }
.wy-app .pill { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--paper-2); }
.wy-app .pill.confirmed { background: #e8f0e3; color: var(--ok); }
.wy-app .pill.pending { background: #fdf1d6; color: #8a5a00; }
.wy-app .pill.cancelled { background: #f6e3e0; color: var(--bad); }
.wy-app .filters button { background: none; border: 0; padding: 0 .1rem; font: inherit; text-decoration: underline; cursor: pointer; color: var(--ink); }
.wy-app .filters button[aria-current] { font-weight: 700; text-decoration: none; }

/* admin shell */
.wy-app main { flex: 1 0 auto; }
.wy-app .admin { padding-top: .75rem; padding-bottom: 2rem; }
.wy-app .admin-head h1 { font-size: 2.4rem; margin-bottom: .25rem; }
.wy-app .admin-nav { display: flex; gap: .25rem 1rem; flex-wrap: wrap; align-items: center; margin: .5rem 0 1.5rem; font-size: .95rem; }
.wy-app .admin-nav a { text-decoration: none; color: var(--ink-2); }
.wy-app .admin-nav a:hover { color: var(--ink); }
.wy-app .admin-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.wy-app .tabbar { display: none; }
.wy-app .list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.wy-app .item { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .75rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; }
.wy-app .item .when { font-weight: 600; }
.wy-app .item .manage { align-self: center; }
.wy-app .item.fresh { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.wy-app .quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.wy-app .giftfind { flex-wrap: nowrap; align-items: center; margin-bottom: 1.25rem; }

/* walk-in tiles */
.wy-app .tiles { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; min-width: 0; }
.wy-app .tiles legend { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; padding: 0; }
.wy-app .tiles legend .hint { margin-left: .4rem; }
.wy-app .tile { position: relative; display: grid; gap: .1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 400; min-height: 3.6rem; }
.wy-app .tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wy-app .tile:has(input:checked) { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: -1px; }
.wy-app .tile:has(input:focus-visible) { outline: 3px solid var(--ink); }
.wy-app .tile-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.15; }
.wy-app .tile-meta { color: var(--ink-2); font-size: .85rem; }
.wy-app .pay { grid-template-columns: repeat(6, 1fr); }
.wy-app .pay .tile { min-height: 4.2rem; padding: .6rem .7rem; }
.wy-app .hits { display: grid; gap: .35rem; margin-top: -.5rem; }
.wy-app .hit { text-align: left; font: inherit; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--ink); width: 100%; cursor: pointer; }
.wy-app .hit.ok { background: #e8f0e3; border-color: #b9cfb0; }
.wy-app details summary { cursor: pointer; color: var(--ink-2); }

/* QR pay + door */
.wy-app .qr { display: grid; justify-items: center; gap: .4rem; padding: 1rem 0 .5rem; text-align: center; }
.wy-app .qr svg { width: min(78%, 300px); height: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.wy-app .amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; margin-top: .4rem; font-variant-numeric: lining-nums; }
.wy-app .qr-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-top: .4rem; }
.wy-app .big-ok { font-size: 1.4rem; text-align: center; padding: 1.4rem; }
.wy-app .other { margin-top: 1.25rem; text-align: center; }
.wy-app .other .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.wy-app .other .grid .btn { padding: .8rem .3rem; }
.wy-app .log { margin-top: 1rem; border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; background: #fff; }
.wy-app .kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.wy-app .kind { position: relative; font-weight: 500; }
.wy-app .kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wy-app .kind span { display: block; text-align: center; padding: .7rem .3rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.wy-app .kind:has(input:checked) span { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: -1px; }

/* services + the visitors' view beside it */
.wy-app .svc-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.wy-app .preview { position: sticky; top: 1rem; border: 1px dashed var(--ink-2); border-radius: var(--radius); padding: 1rem 1.1rem 1.2rem; background: #fcfcfc; }
.wy-app .preview .cap { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .5rem; }
.wy-app .pcard { border: 1px solid var(--line); background: #fff; padding: .8rem 1rem; margin-top: .6rem; border-radius: var(--radius); transition: background-color .6s; }
.wy-app .pcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 0; }
.wy-app .pcard .meta { color: var(--ink-2); font-size: .92rem; }
.wy-app .pcard .price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; font-variant-numeric: lining-nums; }
.wy-app .pcard p { font-size: .92rem; margin: .3rem 0 0; }
.wy-app .pcard.flash { background: #e8f0e3; }
.wy-app .pub-hero { text-align: center; padding: 1rem 0 .5rem; }
.wy-app .pub-hero h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
.wy-app .pub-hero p { font-style: italic; color: var(--ink-2); font-size: 1.2rem; }
.wy-app .pub-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* waiver signature */
.wy-app .sig { max-width: 22rem; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: .4rem 1rem; font: 400 2.6rem/1.3 var(--font-script); }
.wy-app .sig small { display: block; border-top: 1px solid var(--line); font: 400 .75rem/1.6 var(--font-body); color: var(--ink-2); }

/* the certificate (gift "print card") */
.wy-app .cert { border: 1px solid var(--ink); padding: 1.6rem 1.25rem; text-align: center; background: #fff; margin: .5rem 0 1rem; }
.wy-app .cert-brand { font-family: var(--font-script); font-size: 2.4rem; line-height: 1; }
.wy-app .cert-kind { text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; color: var(--ink-2); margin: .5rem 0 1rem; }
.wy-app .cert-amount { font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.wy-app .cert-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.2rem; letter-spacing: .18em; margin: 1rem 0 0; padding: .5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- phone mode: the app on the home screen ---------------------------- */
.wy-app[data-mode=phone] { font-size: 18px; }
.wy-app[data-mode=phone] .site-header, .wy-app[data-mode=phone] .site-footer, .wy-app[data-mode=phone] .admin-nav { display: none; }
.wy-app[data-mode=phone] .admin { padding-bottom: 1.5rem; }
.wy-app[data-mode=phone] .tabbar {
  display: flex; position: sticky; bottom: 0; z-index: 10; flex: none;
  background: #fff; border-top: 1px solid var(--line); padding: .35rem 0 .6rem;
}
.wy-app[data-mode=phone] .tabbar a { flex: 1; text-align: center; text-decoration: none; color: var(--ink-2); font-size: .72rem; line-height: 1.1; padding: .2rem 0; }
.wy-app[data-mode=phone] .tabbar a[aria-current] { color: #000; font-weight: 700; }
.wy-app[data-mode=phone] .tabbar .glyph { display: block; font-size: 1.35rem; margin-bottom: .1rem; }
.wy-app[data-mode=phone] .table-wrap table, .wy-app[data-mode=phone] .table-wrap tbody,
.wy-app[data-mode=phone] .table-wrap tr, .wy-app[data-mode=phone] .table-wrap td { display: block; width: 100%; }
.wy-app[data-mode=phone] .table-wrap thead { display: none; }
.wy-app[data-mode=phone] .table-wrap tr { border-bottom: 6px solid var(--paper); padding: .35rem 0; }
.wy-app[data-mode=phone] .table-wrap td { border: 0; padding: .25rem .8rem; white-space: normal !important; }
.wy-app[data-mode=phone] .table-wrap td:first-child { font-weight: 600; padding-top: .6rem; }
.wy-app[data-mode=phone] .table-wrap td:last-child { padding-bottom: .7rem; }
.wy-app[data-mode=phone] .table-wrap table { border: 0; background: transparent; }
.wy-app[data-mode=phone] .table-wrap tr { background: #fff; border: 1px solid var(--line); margin-bottom: .5rem; }
.wy-app[data-mode=phone] .row > * { flex-basis: 100%; }
.wy-app[data-mode=phone] .row.keep > * { flex-basis: auto; }
.wy-app[data-mode=phone] .btn { padding: .8rem 1.2rem; }
.wy-app[data-mode=phone] .btn.sm { padding: .55rem .9rem; }
.wy-app[data-mode=phone] input, .wy-app[data-mode=phone] select, .wy-app[data-mode=phone] textarea { font-size: 16px; }
.wy-app[data-mode=phone] .tiles { grid-template-columns: repeat(2, 1fr); }
.wy-app[data-mode=phone] .pay { grid-template-columns: repeat(3, 1fr); }
.wy-app[data-mode=phone] .svc-grid { grid-template-columns: minmax(0, 1fr); }
.wy-app[data-mode=phone] .preview { position: static; }
.wy-app[data-mode=phone] .wrap { padding: 0 1rem; }
.wy-app[data-mode=phone] .item { grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: .55rem; padding: .65rem .75rem; }
.wy-app[data-mode=phone] .item .when { white-space: nowrap; font-size: .95rem; }

/* toasts + the Pushover banner live in an overlay the host page provides */
.wy-overlay { pointer-events: none; z-index: 60; }
.wy-toast {
  pointer-events: auto; position: absolute; left: 50%; bottom: 5.2rem; transform: translateX(-50%);
  width: min(100% - 2rem, 26rem); background: #141414; color: #fff; padding: .8rem 1rem; border-radius: 10px;
  font: 500 1rem/1.4 'Cormorant Garamond', Georgia, serif; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wy-push {
  pointer-events: auto; position: absolute; top: .6rem; left: .6rem; right: .6rem; max-width: 26rem; margin: 0 auto;
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .05rem .7rem; padding: .7rem .85rem;
  border-radius: 1.1rem; background: rgba(244,244,242,.97); border: 1px solid #cfcfcb; box-shadow: 0 .5rem 1.4rem rgba(0,0,0,.18);
  font: 400 .86rem/1.3 -apple-system, 'Segoe UI', Roboto, sans-serif; color: #141414; cursor: pointer; text-align: left;
  transform: translateY(-140%); transition: transform .45s cubic-bezier(.2,.9,.3,1.2);
}
.wy-push.in { transform: translateY(0); }
.wy-push .ico { grid-row: 1 / 4; align-self: center; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: #2f5f9e; color: #fff; font-weight: 700; }
.wy-push .ap { font-size: .75rem; color: #5a5a5a; letter-spacing: .04em; }
.wy-push .nw { font-size: .75rem; color: #5a5a5a; }
.wy-push .t { grid-column: 2 / 4; font-weight: 700; }
.wy-push .m { grid-column: 2 / 4; }
@media (prefers-reduced-motion: reduce) { .wy-push { transition: none; } }
