/* Rushika app. Colours from the logo: gold and black on white. */
:root {
  --ink: #211e19; --soft: #6b655b; --line: #e8e3da; --bg: #f8f6f2; --card: #fff; --gold: #8a6318; --gold-bright: #c49a55; --gold-pale: #f7efdf;
  --good: #17693f; --good-bg: #e3f3ea; --warn: #85560a; --warn-bg: #fdf0d5; --bad: #a92b22; --bad-bg: #fbe6e3; --info: #2a5685; --info-bg: #e5eef8;
  --r: 12px; --shadow: 0 1px 2px rgba(40, 30, 10, .05), 0 3px 12px rgba(40, 30, 10, .04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
h1 { font-size: 23px; line-height: 1.25; margin: 0; letter-spacing: -.01em; } h2 { font-size: 17px; margin: 0; } h3 { font-size: 15px; margin: 0; }
p { margin: 0 0 10px; } a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--soft); } .small { font-size: 13px; } .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .bad-t { color: var(--bad); } .good-t { color: var(--good); }
.center-note { text-align: center; padding: 80px 20px; color: var(--soft); } .nowrap { white-space: nowrap; } .pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* frame */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; font-weight: 700; line-height: 1.15; } .brand img { width: 40px; } .brand small { display: block; font-weight: 400; color: var(--soft); }
.side a, .more-list a, .more-list button { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.side a:hover { background: var(--bg); } .side a.on { background: var(--gold-pale); color: var(--gold); font-weight: 600; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge { margin-left: auto; background: var(--bad); color: #fff; border-radius: 20px; font-size: 12px; font-weight: 600; min-width: 20px; text-align: center; padding: 0 6px; line-height: 20px; }
.top { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 28px 0; }
.top .brand { display: none; padding: 0; margin-right: auto; }
.icon-btn { border: 0; background: none; padding: 8px; border-radius: 50%; cursor: pointer; position: relative; line-height: 0; } .icon-btn:hover { background: #efeae0; }
.icon-btn .badge { position: absolute; top: 0; right: 0; margin: 0; min-width: 17px; line-height: 17px; font-size: 11px; padding: 0 4px; }
.who { border: 1px solid var(--line); background: var(--card); border-radius: 30px; padding: 6px 14px; cursor: pointer; }
main { padding: 8px 28px 60px; max-width: 1280px; }
.bottom { display: none; }
.head { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 4px 0 16px; } .head h1 { margin-right: auto; } .head p { margin: 2px 0 0; flex-basis: 100%; color: var(--soft); }
.back { display: inline-block; margin: 2px 0 8px; text-decoration: none; }

/* parts */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; min-width: 0; }
.card > h2 { margin-bottom: 10px; } .card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .card-head h2 { margin-right: auto; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 16px; text-decoration: none; color: var(--ink); display: block; box-shadow: var(--shadow); } a.stat:hover { border-color: var(--gold-bright); }
.stat span { display: block; color: var(--soft); font-size: 13px; } .stat b { font-size: 23px; line-height: 1.3; font-variant-numeric: tabular-nums; } .stat small { color: var(--soft); display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d9d2c5; background: var(--card); border-radius: 9px; padding: 8px 15px; cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 500; min-height: 38px; }
.btn:hover { border-color: var(--gold-bright); } .btn.primary { background: var(--gold); border-color: var(--gold); color: #fff; } .btn.primary:hover { background: #73520f; } .btn.danger { color: var(--bad); border-color: #e9c3be; } .btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; } .btn.sm { padding: 3px 11px; min-height: 30px; font-size: 13.5px; } .btn.big { width: 100%; padding: 14px; font-size: 17px; } .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.link { border: 0; background: none; padding: 0; color: var(--gold); cursor: pointer; text-decoration: underline; }
.chip { display: inline-block; border-radius: 20px; padding: 1px 10px; font-size: 13px; background: #eeebe4; color: #57514a; white-space: nowrap; }
.chip.good { background: var(--good-bg); color: var(--good); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.info { background: var(--info-bg); color: var(--info); }
.table-wrap { overflow-x: auto; } table { border-collapse: collapse; width: 100%; } th { text-align: left; font-size: 13px; font-weight: 600; color: var(--soft); border-bottom: 1px solid var(--line); padding: 8px 10px; white-space: nowrap; } th.num { text-align: right; }
td { padding: 10px; border-bottom: 1px solid #f1ede5; vertical-align: top; } tr:last-child td { border-bottom: 0; } tr[data-act] { cursor: pointer; } tr[data-act]:hover td { background: #fcfaf6; } td.empty { text-align: center; color: var(--soft); padding: 28px; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; border-bottom: 1px solid var(--line); scrollbar-width: none; } .tabs button { border: 0; background: none; padding: 9px 13px; cursor: pointer; white-space: nowrap; color: var(--soft); border-bottom: 2px solid transparent; } .tabs button.on { color: var(--gold); border-color: var(--gold); font-weight: 600; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .filters input, .filters select { width: auto; } .filters input[type=search] { min-width: 210px; flex: 0 1 280px; }
input, select, textarea { width: 100%; border: 1px solid #d6cfc2; border-radius: 9px; padding: 8px 11px; background: #fff; min-height: 40px; } input[type=checkbox], input[type=radio] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--gold); flex: none; } textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; } .f.full, .form-section { grid-column: 1 / -1; } .f label, .f .lbl { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; } .f label.check, .check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; } .checks { display: flex; gap: 8px 18px; flex-wrap: wrap; } .hint { display: block; font-size: 13px; color: var(--soft); margin-top: 3px; } .req { color: var(--bad); }
.form-section { font-weight: 700; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 4px; } .form-section.first { border: 0; padding: 0; margin: 0; }
.alert { border-radius: 9px; padding: 10px 14px; margin-bottom: 14px; background: var(--info-bg); color: #1d3f63; } .alert.warn { background: var(--warn-bg); color: #6a4304; } .alert.bad { background: var(--bad-bg); color: #8c211a; } .alert.good { background: var(--good-bg); color: #0f4f2e; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px 18px; margin: 0; } .facts div { min-width: 0; } .facts dt { font-size: 13px; color: var(--soft); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.overlay { position: fixed; inset: 0; background: rgba(30, 25, 15, .45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; z-index: 50; } .modal { background: #fff; border-radius: 16px; width: 100%; max-width: 540px; box-shadow: 0 18px 60px rgba(0, 0, 0, .25); } .modal.wide { max-width: 780px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); } .modal-head button { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--soft); padding: 2px 8px; } .modal-body { padding: 18px 20px; } .modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 440px); } .toast { background: #211e19; color: #fff; border-radius: 10px; padding: 11px 16px; } .toast.bad { background: var(--bad); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; } .thumbs a { display: block; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #fff; text-decoration: none; } .thumbs img { width: 84px; height: 84px; object-fit: cover; display: block; } .thumbs a.pdf { padding: 8px 12px; }
.photo-view img { max-width: 100%; max-height: 76vh; display: block; margin: auto; border-radius: 8px; }
.secret { font: 600 18px ui-monospace, Consolas, monospace; background: var(--bg); border-radius: 9px; padding: 9px 13px; user-select: all; }
details.steps { background: var(--gold-pale); border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; } details.steps summary { cursor: pointer; font-weight: 600; color: var(--gold); } details.steps ol { margin: 8px 0 4px; padding-left: 20px; } details.steps li { margin: 3px 0; }

/* lists */
.lines { list-style: none; margin: 0; padding: 0; } .lines > li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1ede5; } .lines > li:last-child { border: 0; } .lines .grow { flex: 1; min-width: 0; } .lines .small { display: block; }
.todo a { display: flex; gap: 12px; align-items: center; padding: 10px 6px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #f1ede5; } .todo a:last-child { border: 0; } .todo a:hover { background: #fcfaf6; } .todo .n { min-width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; padding: 0 6px; } .n.bad { background: var(--bad-bg); color: var(--bad); } .n.warn { background: var(--warn-bg); color: var(--warn); } .n.info { background: var(--info-bg); color: var(--info); } .todo small { display: block; color: var(--soft); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; } .tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: block; } .tile:hover { border-color: var(--gold-bright); } .tile .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .tile h3 { font-size: 18px; }
.beds { display: flex; gap: 5px; margin: 10px 0 6px; flex-wrap: wrap; } .beds i { width: 26px; height: 9px; border-radius: 5px; background: #e9e4da; } .beds i.full { background: var(--gold-bright); } .beds i.book { background: repeating-linear-gradient(135deg, var(--gold-bright) 0 3px, #f2e6cf 3px 6px); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; } .lane { background: #f1ede5; border-radius: var(--r); padding: 10px; } .lane h3 { padding: 3px 6px 9px; display: flex; justify-content: space-between; } .lane .tile { margin-bottom: 8px; padding: 11px 13px; } .lane .tile h3 { padding: 0; font-size: 15.5px; display: block; }
.log { list-style: none; margin: 0; padding: 0; } .log li { border-left: 2px solid var(--line); padding: 0 0 13px 14px; } .log li.inner { border-color: var(--gold-bright); } .log small { color: var(--soft); display: block; }
.path { list-style: none; margin: 0; padding: 0; counter-reset: p; } .path li { display: flex; gap: 12px; padding: 8px 0; align-items: center; counter-increment: p; } .path li::before { content: counter(p); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ece7dd; color: var(--soft); font-weight: 600; font-size: 13px; flex: none; } .path li.done::before { content: "✓"; background: var(--good); color: #fff; } .path .grow { flex: 1; min-width: 0; }
.day-nav { display: flex; gap: 6px; align-items: center; } .day-nav input { width: auto; }
.grid-month td, .grid-month th { text-align: center; padding: 6px 4px; font-size: 13px; } .grid-month td:first-child, .grid-month th:first-child { text-align: left; position: sticky; left: 0; background: #fff; padding-right: 12px; white-space: nowrap; }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; } .seg label { cursor: pointer; } .seg input { position: absolute; opacity: 0; width: 1px; min-height: 1px; height: 1px; } .seg span { display: block; border: 1px solid #d6cfc2; border-radius: 9px; padding: 7px 12px; font-size: 14px; } .seg input:checked + span { background: var(--good); border-color: var(--good); color: #fff; } .seg input.no:checked + span { background: var(--bad); border-color: var(--bad); } .seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.tick { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 0; border-bottom: 1px solid #f1ede5; flex-wrap: wrap; } .tick input[type=text] { flex-basis: 100%; }

/* sign in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 420px at 50% -10%, #f4e8d0, transparent), var(--bg); } .login form, .login .box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; width: min(100%, 380px); box-shadow: 0 10px 40px rgba(80, 60, 20, .09); } .login img { display: block; width: 200px; margin: 0 auto 18px; } .login .f { margin-bottom: 13px; } .login .err { color: var(--bad); min-height: 22px; margin: 4px 0; } .login .btn { width: 100%; } .login .small { text-align: center; margin: 16px 0 0; }
.hero { background: linear-gradient(120deg, #2a2419, #4c3b1d); color: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 16px; } .hero h1 { font-size: 21px; } .hero p { margin: 3px 0 0; color: #e8dcc4; } .hero .amount { font-size: 32px; font-weight: 700; margin-top: 12px; line-height: 1.2; } .hero .btn { margin-top: 12px; }
.receipt { border: 1px solid var(--line); border-radius: 10px; padding: 22px; } .receipt img { width: 130px; display: block; margin-bottom: 12px; } .receipt table td { padding: 7px 4px; }

@media (max-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr); } .board { grid-template-columns: repeat(3, minmax(240px, 1fr)); overflow-x: auto; } }
@media (max-width: 767px) {
  .shell { display: block; } .side { display: none; } .top { padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; } .top .brand { display: flex; } .top .brand img { width: 32px; }
  main { padding: 14px 14px calc(92px + env(safe-area-inset-bottom)); } .form-grid { grid-template-columns: minmax(0, 1fr); } .overlay { padding: 0; align-items: flex-end; } .modal { border-radius: 18px 18px 0 0; max-height: 94vh; overflow-y: auto; } .modal-head { position: sticky; top: 0; background: #fff; z-index: 2; } input, select, textarea { font-size: 16px; min-height: 44px; }
  .bottom { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); } .bottom a, .bottom button { border: 0; background: none; display: grid; justify-items: center; gap: 1px; font-size: 12px; color: var(--soft); text-decoration: none; padding: 5px 2px; position: relative; cursor: pointer; } .bottom .on { color: var(--gold); font-weight: 600; } .bottom .badge { position: absolute; top: 0; left: calc(50% + 4px); min-width: 17px; line-height: 17px; font-size: 11px; padding: 0 4px; margin: 0; }
  .more-list a, .more-list button { border: 0; background: none; width: 100%; padding: 12px 8px; cursor: pointer; border-bottom: 1px solid #f1ede5; border-radius: 0; } #toasts { bottom: 88px; } .stats { grid-template-columns: 1fr 1fr; } .stat b { font-size: 20px; } .card { padding: 14px; } .filters > * { flex: 1 1 140px; min-width: 0; }
  .stack thead { display: none; } .stack, .stack tbody, .stack tr, .stack td { display: block; } .stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; } .stack tr:last-child { border: 0; } .stack td { border: 0; padding: 2px 0; text-align: left; white-space: normal; } .stack td:empty { display: none; } .stack td:first-child { font-weight: 600; } .stack td[data-l]::before { content: attr(data-l) ": "; color: var(--soft); font-size: 13px; }
}
@media print { .side, .top, .bottom, .modal-head, .modal-foot, #toasts, #app { display: none !important; } .overlay { position: static; padding: 0; background: none; } .modal { box-shadow: none; max-width: none; max-height: none; } body { background: #fff; } }
