@font-face { font-family: 'Newsreader'; src: url(../demo/fonts/newsreader-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(../demo/fonts/schibsted-grotesk-latin-wght-normal.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
:root {
    --bg: #F3EDE3; --panel: #FBF8F3; --ink: #18282B; --ink-2: #4E5D5E; --ink-3: #7F8A88; --line: rgba(24, 40, 43, .12);
    --ochre: #C98B2E; --ochre-soft: #F1E2C6; --terra: #A9502F; --terra-soft: #F2DCD2; --sea: #2E6B68; --sea-soft: #DCE9E5; --plum: #6B4E71; --plum-soft: #E8DFEA;
    --serif: 'Newsreader', Georgia, serif; --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; border-radius: 6px; }
.mark { width: 30px; height: 30px; fill: var(--bg); flex: none; }
.mark .sun { fill: var(--ochre); }

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 100vh; }
.side, main { min-width: 0; }
.side { background: var(--ink); color: var(--bg); display: flex; flex-direction: column; padding: 22px 14px 18px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 26px; }
.brand b { display: block; font: 500 20px/1 var(--serif); letter-spacing: .02em; }
.brand small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 237, 227, .55); }
nav { display: flex; flex-direction: column; gap: 2px; }
nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(243, 237, 227, .72); font-weight: 500; text-align: left; }
nav button:hover { background: rgba(243, 237, 227, .06); color: var(--bg); }
nav button[aria-current="page"] { background: rgba(243, 237, 227, .1); color: var(--bg); }
nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
nav .badge { margin-left: auto; background: var(--terra); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; padding: 0 8px; }
.who { display: flex; gap: 10px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(243, 237, 227, .1); }
.who b { display: block; font-size: 13px; }
.who small { font-size: 11px; color: rgba(243, 237, 227, .55); }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--ochre); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.open-guest { color: var(--ochre-soft); font-size: 12px; text-decoration: none; }
.open-guest:hover { text-decoration: underline; }

main { overflow-y: auto; padding: 26px 32px 40px; }
main:focus { outline: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head h1 { margin: 0; font: 400 32px/1.05 var(--serif); }
.head p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--sea); background: var(--sea-soft); padding: 6px 11px; border-radius: 99px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sea); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat small { font-size: 11px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.stat b { display: block; font: 400 30px/1.1 var(--serif); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-3); }

.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; background: var(--panel); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col { background: rgba(234, 225, 211, .55); border-radius: 16px; padding: 12px; min-height: 300px; }
.col h2 { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.col h2 span { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; font-size: 11px; color: var(--ink); }
.req { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; animation: in .35s var(--ease) both; }
.req.fresh { box-shadow: 0 0 0 2px var(--ochre); }
@keyframes in { from { opacity: 0; transform: translateY(-6px); } }
.req-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.room { font: 600 13px/1 var(--sans); background: var(--ink); color: var(--bg); border-radius: 7px; padding: 5px 7px; font-variant-numeric: tabular-nums; }
.type { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.type.dining { background: var(--terra-soft); color: var(--terra); }
.type.spa, .type.activity { background: var(--sea-soft); color: var(--sea); }
.type.housekeeping { background: var(--ochre-soft); color: #8A5A14; }
.type.concierge { background: var(--plum-soft); color: var(--plum); }
.req-top time { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.req .guest { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.req .guest .vip { color: var(--ochre); font-weight: 700; }
.req ul { margin: 0; padding: 0 0 0 16px; font-size: 13.5px; }
.req .note { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); background: var(--bg); border-radius: 8px; padding: 6px 9px; }
.req .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.via { font-size: 11px; color: var(--sea); font-weight: 600; }
.act { height: 30px; padding: 0 12px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 600; }
.act.light { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 30px 10px; }

/* calendar */
.cal-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.cal { display: grid; grid-template-columns: 64px repeat(4, minmax(150px, 1fr)); min-width: 680px; position: relative; }
.cal .ch { height: 60px; padding: 12px 12px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13px; position: sticky; top: 0; background: var(--panel); }
.cal .ch small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.cal .hours { position: relative; }
.cal .hours div { height: 56px; font-size: 11.5px; color: var(--ink-3); padding: 2px 10px 0; text-align: right; font-variant-numeric: tabular-nums; }
.cal .lane { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(180deg, transparent 0 55px, var(--line) 55px 56px); }
.blk { position: absolute; left: 6px; right: 6px; border-radius: 9px; padding: 7px 9px; font-size: 12px; overflow: hidden; background: var(--sea-soft); border-left: 3px solid var(--sea); }
.blk b { display: block; font-size: 12.5px; }
.blk.activity { background: var(--ochre-soft); border-color: var(--ochre); }
.blk.table { background: var(--terra-soft); border-color: var(--terra); }
.blk.new { box-shadow: 0 0 0 2px var(--ochre); }
.now { position: absolute; left: 64px; right: 0; height: 2px; background: var(--terra); z-index: 2; }
.now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--terra); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-3); margin-top: 12px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* guests */
.tools { display: flex; gap: 10px; margin-bottom: 14px; }
.search { flex: 1; max-width: 360px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); padding: 0 14px; font: inherit; color: var(--ink); }
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .name { font-weight: 600; }
td .vip { margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #8A5A14; background: var(--ochre-soft); padding: 2px 6px; border-radius: 5px; }
.prefs { display: flex; gap: 6px; flex-wrap: wrap; }
.pref { font-size: 12px; background: var(--bg); border: 1px solid var(--line); padding: 2px 8px; border-radius: 99px; }
.pref.warn { background: var(--terra-soft); border-color: transparent; color: var(--terra); }
.inhouse { font-size: 12px; color: var(--ink-3); }

/* stock */
.stock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 10px; }
.item img, .item .noimg { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: none; background: var(--bg); display: grid; place-items: center; color: var(--ink-3); }
.item .noimg svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.item .meta { flex: 1; min-width: 0; }
.item b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item small { color: var(--ink-3); font-size: 12px; }
.item.off { opacity: .7; }
.item.off img { filter: grayscale(1); }
.switch { position: relative; width: 46px; height: 26px; border-radius: 99px; background: var(--line); flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--sea); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.state { font-size: 12px; font-weight: 600; width: 76px; text-align: right; }
.state.off { color: var(--terra); }
.state.on { color: var(--sea); }
.hint { font-size: 13px; color: var(--ink-2); background: var(--sea-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.cat-h { font: 500 18px/1.2 var(--serif); margin: 22px 0 10px; }

.toast { position: fixed; right: 24px; bottom: 52px; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-size: 13px; opacity: 0; transform: translateY(10px); transition: all .3s var(--ease); pointer-events: none; z-index: 20; max-width: calc(100vw - 48px); }
.toast.show { opacity: 1; transform: none; }
.ribbon { position: fixed; right: 16px; bottom: 14px; z-index: 30; font: 500 11px/1 var(--sans); color: var(--ink-3); text-decoration: none; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(251, 248, 243, .85); }
.ribbon:hover { color: var(--ink); border-color: var(--ochre); }

@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; height: auto; min-height: 100vh; }
    .side { padding: 14px 16px 0; }
    .brand { padding: 0 0 12px; }
    nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px 10px; }
    nav::-webkit-scrollbar { display: none; }
    nav button { white-space: nowrap; padding: 8px 11px; }
    .side-foot { display: none; }
    main { padding: 20px 16px 40px; overflow: visible; }
    .head h1 { font-size: 26px; }
    .board { grid-template-columns: 1fr; }
    .col { min-height: 0; }
    .stock-grid { grid-template-columns: 1fr; }
    .ribbon { top: 18px; bottom: auto; right: 14px; background: rgba(24, 40, 43, .6); color: rgba(243, 237, 227, .85); border-color: rgba(243, 237, 227, .2); }
    .stat b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
