/* Dashboard tabs: sidebar, calendar, money, guests, team */
.dash { padding-top: 92px; }
.dlayout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.dside { position: sticky; top: 92px; display: grid; gap: 2px; }
.dside .ws { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.dside .ws .av { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(160deg, #e2a83f, #c98a26); color: #111214; display: grid; place-items: center; font-weight: 600; flex: none; }
.dside .ws b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.dside .ws small { color: var(--muted); font-size: 12px; }
.dside nav { display: grid; gap: 2px; }
.dside nav a, .dside .plist a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.dside nav a:hover, .dside .plist a:hover { background: rgba(17, 18, 20, .04); color: var(--ink); }
.dside nav a.on { background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); font-weight: 500; }
.dside nav svg { width: 17px; height: 17px; opacity: .75; flex: none; }
.dside nav em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11.5px; background: var(--sunken); padding: 1px 7px; border-radius: 99px; color: var(--ink-2); }
.dside .sec { font-size: 11.5px; color: var(--muted); padding: 16px 10px 4px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.dside .plist { display: grid; }
.dside .plist a { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dside .dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.dot.st-occupied { background: var(--leaf); }
.dot.st-vacant { background: #e98b5a; }
.dot.st-reserved { background: var(--accent); }
.dside .addp { margin: 8px 8px 0; justify-self: start; }
#view { min-width: 0; }

/* Forms built in JS */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fgrid label small.muted { font-size: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.filters select { border: 0; background: var(--surface); box-shadow: var(--sh-1); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.fbar2 { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; }
.fbar2 span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbar2 .t { height: 8px; background: var(--sunken); border-radius: 9px; overflow: hidden; }
.fbar2 .t i { display: block; height: 100%; border-radius: 9px; }
.fbar2 b { font-family: var(--mono); font-weight: 500; text-align: right; font-size: 12.5px; }
.srch { border: 0; background: var(--sunken); border-radius: 10px; padding: 8px 12px; font-size: 14px; outline: 0; width: min(260px, 60%); font-weight: 400; }
.srch:focus { box-shadow: 0 0 0 2px var(--accent); background: #fff; }
.tx.bk { cursor: pointer; border-radius: 10px; }
.tx.bk:hover { background: var(--bg); }
h4.sh { margin: 16px 0 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }

/* Calendar */
.cal { overflow-x: auto; }
.calgrid { display: grid; grid-template-columns: 170px repeat(var(--days), minmax(28px, 1fr)); min-width: calc(170px + var(--days) * 28px); row-gap: 6px; }
.cl-h { position: sticky; left: 0; background: var(--surface); z-index: 2; }
.cl-d { text-align: center; font-family: var(--mono); font-size: 12px; padding: 2px 0 6px; color: var(--ink-2); border-radius: 8px; }
.cl-d span { display: block; font-size: 10px; color: var(--muted); }
.cl-d.we { color: var(--muted); }
.cl-d.now { background: var(--ink); color: #fff; }
.cl-d.now span { color: #c9ccd2; }
.cl-p { position: sticky; left: 0; background: var(--surface); z-index: 2; padding: 6px 10px 6px 0; cursor: pointer; min-width: 0; }
.cl-p b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-p small { color: var(--muted); font-size: 11.5px; font-family: var(--mono); }
.cl-row { display: grid; grid-template-columns: repeat(var(--days), minmax(28px, 1fr)); grid-template-rows: 40px; align-items: center; background: var(--bg); border-radius: 10px; }
.cl-c { grid-row: 1; height: 100%; border-left: 1px solid #efebe1; cursor: pointer; }
.cl-c:first-child { border-left: 0; }
.cl-c:hover { background: rgba(201, 138, 38, .12); }
.cl-c.now { background: rgba(17, 18, 20, .05); }
.cl-b { grid-row: 1; height: 30px; margin: 0 2px; border: 0; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 500; padding: 0 8px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; z-index: 1; box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .25); }
.cl-b:hover { filter: brightness(1.08); }
.cl-b.pending { opacity: .65; }

/* Guests table */
.tw { overflow-x: auto; }
.gt { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.gt th { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 400; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.gt td { padding: 11px 10px; border-bottom: 1px solid #f1eee6; vertical-align: top; }
.gt td small { display: block; color: var(--muted); font-size: 12px; }
.gt td b { font-weight: 500; }
.gt tbody tr { cursor: pointer; }
.gt tbody tr:hover { background: var(--bg); }

/* Tasks + team */
.tasks { display: grid; gap: 2px; }
.task { display: flex; gap: 12px; align-items: center; padding: 9px 4px; border-top: 1px solid #f1eee6; font-size: 14px; }
.task:first-child { border-top: 0; }
.task > div { flex: 1; cursor: pointer; min-width: 0; }
.task small { display: block; color: var(--muted); font-size: 12.5px; }
.task.done > div { color: var(--muted); text-decoration: line-through; }
.chk2 { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; flex: none; display: grid; place-items: center; font-size: 12px; color: #fff; padding: 0; }
.chk2:hover { border-color: var(--leaf); }
.task.done .chk2 { background: var(--leaf); border-color: var(--leaf); }
.chk2:disabled { opacity: .4; cursor: not-allowed; }
.mem { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid #f1eee6; cursor: pointer; border-radius: 10px; }
.mem:first-of-type { border-top: 0; }
.mem:hover { background: var(--bg); }
.mem > div { flex: 1; min-width: 0; }
.mem b { font-weight: 500; display: block; }
.mem small { color: var(--muted); font-size: 12.5px; }
.av2 { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; flex: none; }
.av2.r-cohost { background: #2f6fe0; }
.av2.r-cleaner { background: #e98b5a; }
.av2.r-accountant { background: #17a673; }
.roles { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); }
.roles b { color: var(--ink); font-weight: 500; margin-right: 6px; }

@media (max-width: 980px) {
  .dlayout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dside { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .dside .ws, .dside .sec, .dside .plist, .dside .addp { display: none; }
  .dside nav { display: flex; gap: 4px; }
  .dside nav a { white-space: nowrap; background: var(--surface); box-shadow: var(--sh-1); }
  .dside nav a.on { background: var(--ink); color: #fff; }
}
@media (max-width: 560px) {
  .fgrid { grid-template-columns: 1fr; }
  .fgrid label, .fgrid .switch { grid-column: auto !important; }
  .kp[style] { grid-template-columns: 1fr !important; }
}

/* Inbox */
.inbox { padding: 6px; }
.msg { border-radius: 14px; }
.msg + .msg { border-top: 1px solid #f1eee6; }
.msg .mh { display: flex; gap: 12px; align-items: center; padding: 12px; cursor: pointer; border-radius: 14px; }
.msg .mh:hover { background: var(--bg); }
.msg .mh > div { flex: 1; min-width: 0; }
.msg .mh b { font-weight: 500; display: block; }
.msg.new .mh b { font-weight: 700; }
.msg .mh small { color: var(--muted); font-size: 12.5px; }
.msg time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.msg.new time::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
.msg .mp { padding: 0 12px 12px 58px; color: var(--ink-2); font-size: 14px; margin-top: -6px; }
.msg .mb { padding: 0 12px 14px 58px; display: grid; gap: 10px; }
.msg .mb p { margin: 0; font-size: 15px; line-height: 1.55; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.msg .mc2 { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.msg .ma { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 560px) { .msg .mp, .msg .mb { padding-left: 12px; } }

/* Automatic income */
.autob { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; background: var(--accent-soft); color: #8f5a0c; padding: 1px 7px; border-radius: 99px; vertical-align: 1px; }
.tx.unpaid > div, .tx.unpaid .amt { color: var(--muted); text-decoration: line-through; }
.tx.unpaid .ic { background: var(--peach-soft); }
.tx.soon { opacity: .75; }
.tx .tog { border: 0; background: var(--sunken); color: var(--ink-2); border-radius: 99px; padding: 4px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.tx .tog:hover { background: #ece8dd; color: var(--ink); }
.tx.unpaid .tog { background: var(--ink); color: #fff; }
.autoline { margin: 0; font-size: 13.5px; color: var(--ink-2); background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; }
.autoline:empty { display: none; }
.autoline b { color: var(--ink); }

/* Owner pack */
.feeds { display: grid; gap: 6px; }
.feed { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-size: 14px; }
.feed > div { flex: 1; min-width: 0; }
.feed b { font-weight: 500; display: block; }
.feed small { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; }
.fdot { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); flex: none; box-shadow: 0 0 0 4px var(--leaf-soft); }
.fdot.bad { background: var(--rose); box-shadow: 0 0 0 4px #fde4e4; }
.feeds .btn { justify-self: start; }
.export { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: 14px; }
.export small { display: block; color: var(--muted); font-size: 12.5px; }
.pacts { display: flex; gap: 4px; align-items: center; }
.rc { color: #8f5a0c; text-decoration: underline; text-underline-offset: 2px; }
.cl-b.blocked { background: repeating-linear-gradient(45deg, #b9b3a6 0 6px, #a39d90 6px 12px) !important; color: #fff; }
a.tog { display: inline-block; }
