/* Most Welcome — Host app. Calm field, one jolt. */
:root {
  --surface: #F6F2EA; --card: #FFFDF9; --ink: #211C17; --muted: #6F665C; --line: #E6DED1;
  --brand: #2F4A3A; --brand-ink: #F6F2EA; --jolt: #E5603B; --tint: #EBE5D8;
  --ok: #2F6B45; --warn: #A86A12; --bad: #B23A2A;
  --radius: 12px; --font-display: 'Fraunces', Georgia, serif; --font-body: 'Inter Tight', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface); color: var(--ink); font: 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; margin: 0 0 .4em; }
h1 { font-size: 30px; } h2 { font-size: 21px; } h3 { font-size: 17px; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .nowrap { white-space: nowrap; }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--brand); color: var(--brand-ink); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.side .logo { font-family: var(--font-display); font-size: 22px; padding: 0 10px 18px; }
.side .logo span { color: var(--jolt); }
.side .org { font-size: 12px; opacity: .7; padding: 0 10px 14px; text-transform: uppercase; letter-spacing: .08em; }
.side a.nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; opacity: .86; }
.side a.nav:hover { background: rgba(255,255,255,.07); opacity: 1; }
.side a.nav.on { background: rgba(255,255,255,.13); opacity: 1; }
.side .count { background: var(--jolt); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.side .foot { margin-top: auto; font-size: 13px; padding: 10px; opacity: .8; }
.side .foot button { background: none; border: 0; color: inherit; padding: 0; text-decoration: underline; cursor: pointer; font: inherit; }
.main { padding: 28px 36px 60px; max-width: 1200px; width: 100%; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 16px; }

.stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stat .value { font-family: var(--font-display); font-size: 34px; line-height: 1.1; margin-top: 4px; }
.hero { background: var(--brand); color: var(--brand-ink); border: 0; }
.hero .label { color: rgba(246,242,234,.72); }
.hero .value { font-size: 46px; }
.hero .value em { font-style: normal; color: var(--jolt); }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--surface); border-radius: 999px; padding: 8px 16px; font: 500 14px var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.jolt { background: var(--jolt); border-color: var(--jolt); color: #fff; }
.btn.sm { padding: 4px 11px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--bad); border-color: #E7C4BD; }
.btn:hover { filter: brightness(1.06); }
.inline { display: inline; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; } td a:hover { text-decoration: underline; }

.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--ink); white-space: nowrap; }
.pill.ok { background: #DCEBDF; color: var(--ok); } .pill.warn { background: #F5E6C8; color: var(--warn); } .pill.bad { background: #F4DAD4; color: var(--bad); } .pill.jolt { background: #FADCD1; color: #A43A1A; }

label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: 15px var(--font-body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; }
input[type=color] { padding: 2px; height: 40px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row > .field { flex: 1 1 140px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.err { color: var(--bad); font-size: 13px; margin-top: 4px; }

.flash { border-radius: 10px; padding: 11px 14px; margin-bottom: 18px; }
.flash.ok { background: #DCEBDF; color: #1F4A2E; } .flash.err { background: #F4DAD4; color: #6E2216; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: start; }
.feed li:last-child { border-bottom: 0; }
.feed .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin-top: 7px; }
.feed .dot.money { background: var(--jolt); }
.feed .dot.wait { background: var(--warn); }
.feed .amt { font-family: var(--font-display); color: var(--ok); }
.draft { background: var(--surface); border-left: 3px solid var(--jolt); padding: 9px 12px; border-radius: 6px; font-size: 14px; margin: 6px 0; white-space: pre-wrap; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.day h3.today { color: var(--jolt); }
.slot { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; text-decoration: none; font-size: 13px; }
.slot:hover { border-color: var(--brand); }
.slot b { display: block; font-size: 14px; }
.slot.cancelled { opacity: .5; text-decoration: line-through; }
.bar { height: 4px; background: var(--tint); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--brand); }
.bar i.full { background: var(--jolt); }

.inbox { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 70vh; }
.threads { padding: 0; overflow: auto; max-height: 78vh; }
.threads a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.threads a.on { background: var(--tint); }
.thread { display: flex; flex-direction: column; }
.bubbles { flex: 1; overflow: auto; max-height: 60vh; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px 14px; }
.bubble { max-width: 74%; padding: 9px 13px; border-radius: 16px; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.bubble.guest { background: var(--tint); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.concierge { background: var(--brand); color: var(--brand-ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.host { background: var(--ink); color: var(--surface); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble small { display: block; opacity: .65; font-size: 11px; margin-top: 3px; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; cursor: pointer; font-weight: 400; }
.swatches i { width: 20px; height: 20px; border-radius: 5px; display: inline-block; border: 1px solid rgba(0,0,0,.12); }
.preset { border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; }
.preset .chips { display: flex; gap: 4px; margin: 6px 0; } .preset .chips i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.preview-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.auth { max-width: 440px; margin: 9vh auto; padding: 0 16px; }
.auth .logo { font-family: var(--font-display); font-size: 30px; text-align: center; margin-bottom: 20px; } .auth .logo span { color: var(--jolt); }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .side .logo, .side .org { padding: 4px 10px; } .side .foot { margin: 0; }
  .main { padding: 20px 16px 50px; }
  .g2, .g3, .g4, .g-wide, .inbox { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  table { font-size: 14px; }
  .scroll-x { overflow-x: auto; }
}
