/* LeisureLogic website admin: LeisureLogic navy #0E2F56 and teal #0A7A8F. */
:root { --navy: #0E2F56; --teal: #0A7A8F; --teal-dark: #086374; --ink: #14202e; --muted: #5d6b7a; --line: #dfe5ec;
  --bg: #f4f6f9; --card: #fff; --ok: #e6f4ef; --ok-ink: #155f45; --warn: #fff6df; --warn-ink: #7a5200; --err: #fdecec; --err-ink: #a12424; --r: 10px; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; color: var(--ink); background: var(--bg); }
body { margin: 0; line-height: 1.5; }
a { color: var(--teal-dark); }
h1 { font-size: 1.6rem; margin: 0 0 1rem; color: var(--navy); }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; color: var(--navy); }
h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
code { font-family: ui-monospace, Consolas, monospace; background: #eef2f6; padding: .1rem .3rem; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 1.2rem 1rem; gap: 1.4rem; }
.brand { display: flex; gap: .6rem; align-items: center; color: inherit; text-decoration: none; }
.brand b { display: block; } .brand small { display: block; opacity: .75; font-size: .8rem; }
.mark { width: 38px; height: 38px; border-radius: 9px; background: #fff; padding: 3px; object-fit: contain; }
.side nav { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.side nav a { color: #dce7f2; text-decoration: none; padding: .5rem .7rem; border-radius: 8px; }
.side nav a:hover { background: rgba(255,255,255,.08); }
.side nav a.on { background: var(--teal); color: #fff; font-weight: 600; }
.soon { margin-top: 1rem; font-size: .8rem; opacity: .6; padding: 0 .7rem; }
.me { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; }
.me small { display: block; opacity: .7; font-size: .8rem; }
.me .link { color: #fff; }
main { padding: 2rem; max-width: 1100px; width: 100%; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.box.ok { border-color: #a9d9c6; background: #f5fbf8; }
.lead { font-size: 1.05rem; }
.flash { padding: .7rem .9rem; border-radius: 8px; margin: 0 0 1rem; background: var(--ok); color: var(--ok-ink); }
.flash.error { background: var(--err); color: var(--err-ink); } .flash.warn { background: var(--warn); color: var(--warn-ink); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
tr.off td { color: var(--muted); }
.actions { text-align: right; white-space: nowrap; }
.tag { background: #eef2f6; color: var(--muted); border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; }
.form { display: grid; gap: .8rem; max-width: 420px; }
.form.row { max-width: none; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
label { display: grid; gap: .25rem; font-weight: 600; font-size: .92rem; }
label small { font-weight: 400; color: var(--muted); }
input, select { font: inherit; padding: .55rem .65rem; border: 1px solid #c5cfda; border-radius: 8px; background: #fff; color: inherit; width: 100%; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(10,122,143,.35); outline-offset: 1px; border-color: var(--teal); }
button { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 8px; padding: .6rem 1rem; background: var(--teal); color: #fff; }
button:hover { background: var(--teal-dark); }
button.secondary { background: #fff; color: var(--navy); border: 1px solid #c5cfda; }
button.secondary:hover { background: #f1f5f9; }
button.danger { background: #fff; color: var(--err-ink); border: 1px solid #e7b4b4; }
button.small { padding: .3rem .6rem; font-size: .85rem; }
button.link { background: none; padding: 0; color: var(--teal-dark); text-decoration: underline; font-weight: 500; }
form.inline { display: inline; } .inline select { width: auto; }
.buttons { display: flex; gap: .6rem; flex-wrap: wrap; }
.copy { display: flex; gap: .5rem; } .copy input { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.codes { columns: 2; list-style: none; padding: 0; } .codes li { margin: .2rem 0; }
.feed { list-style: none; padding: 0; margin: 0; } .feed li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.filters { margin-bottom: 1rem; display: flex; gap: .6rem; align-items: end; } .filters label { max-width: 240px; }
.pager { display: flex; gap: 1rem; margin: 1rem 0 0; }
body.bare { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; width: 100%; max-width: 460px; box-shadow: 0 10px 30px rgba(14,47,86,.08); }
.card .brand { color: var(--navy); margin-bottom: 1.4rem; } .card .brand small { color: var(--muted); }
.card form + form { margin-top: 1rem; }
.qr { display: block; margin: .6rem auto; border: 1px solid var(--line); border-radius: 8px; }
.key { text-align: center; } .steps { padding-left: 1.2rem; } .step { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; } .side { gap: .8rem; } .soon { display: none; }
  .side nav { flex-direction: row; flex-wrap: wrap; } main { padding: 1.2rem; }
  table, thead, tbody, tr, td, th { display: block; } thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: .4rem 0; } td { border: 0; padding: .2rem 0; } .actions { text-align: left; }
  td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
}

/* Content editors */
.parts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .3rem 1.2rem; }
.parts li { padding: .45rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.parts a { font-weight: 600; text-decoration: none; }
.crumbs { color: var(--muted); font-size: .9rem; margin-top: -.6rem; }
.content-form { display: grid; gap: 1rem; max-width: 900px; }
.content-form .field { display: grid; gap: .25rem; }
.content-form .field > span { font-weight: 600; }
.content-form .field.narrow { max-width: 320px; }
.content-form .field.check { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.content-form .field.check input { width: auto; }
.help { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
textarea { font: inherit; padding: .55rem .65rem; border: 1px solid #c5cfda; border-radius: 8px; width: 100%; resize: vertical; line-height: 1.45; }
textarea.md { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem 1rem; margin: 0; background: var(--card); min-width: 0; }
legend { font-weight: 700; color: var(--navy); padding: 0 .35rem; }
fieldset .fields { display: grid; gap: .8rem; }
fieldset.inline-group .fields { grid-template-columns: 1fr 1fr; }
fieldset fieldset { background: #fafbfd; }
.count { font-weight: 400; color: var(--muted); }
.item-list { display: grid; gap: .5rem; margin-bottom: .7rem; }
.item { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.item-bar { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; }
.item-toggle { flex: 1; text-align: left; background: none; color: var(--ink); padding: .35rem .3rem; font-weight: 600; border-radius: 6px; }
.item-toggle:hover { background: #f1f5f9; }
.item-toggle::before { content: '▸'; display: inline-block; width: 1.1rem; color: var(--muted); }
.item.open > .item-bar .item-toggle::before { content: '▾'; }
.item-tools { display: flex; gap: .3rem; }
.item-body { display: none; padding: .6rem .9rem 1rem; border-top: 1px solid var(--line); gap: .8rem; }
.item.open > .item-body { display: grid; }
.items.compact .item-body { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; }
.items.compact .field.narrow { max-width: none; }
.savebar { position: sticky; bottom: 0; background: var(--bg); padding: .8rem 0; border-top: 1px solid var(--line); display: flex; gap: 1rem; align-items: center; }
.flash ul { margin: .4rem 0 0; padding-left: 1.2rem; }
@media (max-width: 760px) { fieldset.inline-group .fields, .items.compact .item-body { grid-template-columns: 1fr; } }

/* Guides and pictures */
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.toolbar .filters { margin: 0; }
a.button { display: inline-block; font-weight: 600; border-radius: 8px; padding: .6rem 1rem; background: var(--teal); color: #fff; text-decoration: none; }
a.button:hover { background: var(--teal-dark); }
.box h2 .small { font-size: .85rem; font-weight: 500; margin-left: .6rem; }
.tag.ok { background: var(--ok); color: var(--ok-ink); }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.guide-form textarea.md { min-height: 420px; }
.pic-bar { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; margin: .6rem 0; }
.pic-bar label { flex: 1; min-width: 260px; font-weight: 600; }
.danger-zone { margin-top: 1.5rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.media-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.media-card img { display: block; width: 100%; height: 170px; object-fit: contain; background: repeating-conic-gradient(#f1f4f8 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-bottom: 1px solid var(--line); }
.media-card figcaption { padding: .7rem .8rem; display: grid; gap: .4rem; }
.alt-form { display: flex; gap: .4rem; } .alt-form input { padding: .35rem .5rem; }
.media-card .copy input { font-size: .75rem; padding: .3rem .4rem; }
@media (max-width: 760px) { .row3 { grid-template-columns: 1fr; } }

/* Demo requests */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; align-items: start; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.message { white-space: normal; background: #f6f8fb; border-radius: 8px; padding: .7rem .9rem; }
.tag.bad { background: #fde8e8; color: #9b1c1c; }
.pager { display: flex; gap: .5rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Publish */
button:disabled { opacity: .5; cursor: not-allowed; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
