:root {
  --ink: #17211f;
  --ink-soft: #4b5b57;
  --muted: #7a8a85;
  --line: #e4ebe8;
  --paper: #ffffff;
  --card: #ffffff;
  --teal: #62765b;
  --teal-mid: #738a6c;
  --mint: #dceaf8;
  --gold: #c9842a;
  --gold-soft: #f8e7c8;
  --rose: #b42318;
  --rose-soft: #fde8e6;
  --ok: #62765b;
  --ok-soft: #e6ede3;
  --shadow: 0 10px 30px rgba(23, 33, 31, 0.08);
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; background: #ffffff; }
body { margin: 0; font-family: "PingFang TC", "Noto Sans TC", sans-serif; color: var(--ink); }
button, input, textarea, select { font: inherit; }
.shell { height: 100%; display: flex; flex-direction: column; background: #fff; }
.shell.admin-wide { overflow: hidden; }
.tenant-scroll, .admin-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }

.topbar {
  padding: 18px 20px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 10px; }
.topbar h1 { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0; }
.screen { padding: 8px 18px 24px; }

.slide-right { animation: slideRight .8s ease both; }
.slide-left { animation: slideLeft .8s ease both; }
.slide-left.delay { animation-delay: .08s; }
.room-seq { animation: slideLeft .7s cubic-bezier(.22,.82,.22,1) both; }
.room-seq.s2 { animation-delay: .22s; }
.room-seq.s3 { animation-delay: .44s; }
.slide-up { animation: slideUp .8s ease both; }
.admin-in-left { animation: slideRight .6s ease both; }
.admin-in-right { animation: slideLeft .6s ease both; }
.slide-up-card { animation: slideUpCard .8s ease both; }
@keyframes slideRight { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideLeft { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideUp { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideUpCard { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.hint-note { margin-top: 14px; padding: 0 6px; }

.hero-card {
  background: #f2f2f2; color: var(--ink); border-radius: 26px;
  padding: 20px; border: 1px solid #e0e0e0;
}
.hero-card .label { color: var(--muted); font-size: 13px; display: block; margin-bottom: 10px; }
.hero-card .room-name { font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 12px;
}
.stat .label { display: block; margin-bottom: 8px; }
.stat b { display: block; font-size: 20px; margin-top: 0; }
.pay-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700;
}
.pay-pill.paid { background: var(--ok-soft); color: var(--ok); }
.pay-pill.unpaid { background: var(--rose-soft); color: var(--rose); }

.section-title {
  margin: 26px 0 12px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.section-title h2 { font-size: 16px; margin: 0; }
.section-title span, .linkish {
  color: var(--teal-mid); font-size: 13px; font-weight: 600; cursor: pointer;
}
button.linkish { background: none; border: 0; padding: 4px 2px; font: inherit; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.card-body { padding: 16px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.row.wrap { align-items: flex-start; }
.row.wrap .v { text-align: right; font-size: 13px; line-height: 1.5; }
.k { color: var(--muted); font-size: 13px; }
.v { font-weight: 700; }
.small { color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); padding: 16px; text-align: center; }
.badge {
  border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700;
}
.badge.rented { background: var(--mint); color: #1d4e89; }
.badge.vacant { background: #eee; color: var(--ink-soft); }
.badge.repair, .badge.open { background: var(--gold-soft); color: #8a4b00; }
.badge.doing { background: #e6f1fb; color: #1d4e89; }
.badge.done { background: var(--ok-soft); color: var(--ok); }
.badge.office { background: #ece8e1; }
.badge.unpaid { background: var(--rose-soft); color: var(--rose); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #f7f0e8; color: #17211f; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }

.nav {
  position: relative; margin: 8px 12px calc(12px + var(--safe-b));
  background: #fff; border-radius: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px; box-shadow: 0 12px 30px rgba(0,0,0,0.12); flex: 0 0 auto;
}
.nav button {
  position: relative; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 11px; font-weight: 600; padding: 6px 0; cursor: pointer;
  transform-origin: center;
}
.nav button.active {
  color: var(--teal);
  animation: navPop .45s cubic-bezier(.2, 1.5, .35, 1) both;
}
.nav button.active svg {
  display: block; margin: 0 auto 3px;
  transform-origin: center;
  animation: navPop .45s cubic-bezier(.2, 1.5, .35, 1) both;
}
.nav svg { display: block; margin: 0 auto 3px; }
@keyframes navPop {
  0% { transform: scale(0.82); }
  55% { transform: scale(1.32); }
  100% { transform: scale(1.1); }
}
.zoom-page { animation: pageZoom .5s ease both; transform-origin: 50% 18%; }
@keyframes pageZoom {
  from { transform: scale(0.92); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.gate { min-height: 100vh; padding: 28px 22px 40px; }
.logo { font-size: 13px; letter-spacing: 0.28em; color: var(--muted); display: block; margin: 20px 0 10px; }
.gate h1 { font-size: 28px; margin: 10px 0 12px; line-height: 1.35; }
.gate .lead { color: var(--ink-soft); margin: 0 0 22px; line-height: 1.6; }
.role-btn {
  display: block; width: 100%; text-align: left; border: 1px solid var(--line);
  background: #fff; border-radius: 22px; padding: 18px; margin-bottom: 12px; cursor: pointer;
}
.role-btn strong { display: block; font-size: 18px; margin-bottom: 6px; }
.role-btn span { color: var(--muted); font-size: 13px; }
.login-block { background: #f7f7f7; border-radius: 22px; padding: 18px; }
.login-block input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; margin: 8px 0 12px;
}

.photos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.photos img, .photos .ph {
  width: 86%; max-height: 220px; object-fit: cover; border-radius: 18px; flex: 0 0 auto; scroll-snap-align: start;
}
.ph { height: 200px; display: grid; place-items: center; color: #fff; font-weight: 700; }

.room-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px 14px 12px 12px;
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.06);
  cursor: pointer;
}
.room-row img, .room-row .ph {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 16px; background: #e8e8e8; display: block;
}
.room-row-info strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: 0.02em; }
.room-row-info .small { display: block; margin: 3px 0 8px; }
.room-row .price { font-weight: 800; font-size: 15px; }
.room-row .price em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 13px; }
.room-row .badge { align-self: start; margin-top: 2px; }
.parking-thumb {
  width: 72px; height: 72px; min-width: 72px; min-height: 72px;
  border-radius: 16px; box-sizing: border-box; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  background: #2b2b2b; color: #fff;
}
.parking-thumb span {
  display: block; line-height: 1; font-size: 24px; font-weight: 800;
  letter-spacing: 0; text-align: center;
}

textarea, input[type="text"], input[type="date"], input[type="datetime-local"], select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 92px; resize: vertical; }
.primary, .ghost, .danger, .btn-dark, .btn-navy {
  border: 0; border-radius: 14px; padding: 13px 16px;
  font: inherit; font-weight: 700; cursor: pointer; width: 100%;
}
.primary { background: var(--teal); color: #fff; }
.btn-dark { background: #3a3a3a; color: #fff; }
.btn-navy { background: #62765b; color: #fff; border-radius: 999px; }
.btn-navy:hover { background: #53654d; }
.btn-navy:disabled { opacity: 0.55; cursor: default; background: #62765b; }
.ghost { background: #fff; color: var(--teal); border: 1.5px solid var(--line); }
.danger { background: var(--rose-soft); color: var(--rose); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btn-row .btn-navy { grid-column: 1 / -1; }
.copy-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 8px;
  align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.copy-row:last-child { border-bottom: 0; }
.copy-row.no-copy { grid-template-columns: 72px 1fr; }
.copy-row .v { font-weight: 800; word-break: break-all; }
.copy-row .ghost { width: auto; padding: 8px 12px; }
.upload {
  border: 1.5px dashed #b7c7c2; border-radius: 16px; padding: 16px; text-align: center;
  background: #fff; color: var(--ink-soft); cursor: pointer; display: block;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-grid textarea, .form-grid .upload, .form-grid .btn-navy, .form-grid #media-preview,
.form-grid #ann-media-preview { grid-column: 1 / -1; }
.issue-opt {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px 8px; font: inherit; font-weight: 700; cursor: pointer;
}
.issue-opt.selected { border-color: #62765b; background: #e6ede3; color: #62765b; }
.media-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.media-thumb {
  background: #f4f4f4; border-radius: 14px; overflow: hidden; padding: 8px;
  display: grid; gap: 6px; text-align: center; font-size: 12px; color: var(--muted);
}
.media-thumb img, .media-thumb video { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; background: #111; }
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.media-actions .ghost { flex: 1; min-width: 120px; }

.toast {
  position: absolute; left: 20px; right: 20px; top: 18px;
  background: var(--teal); color: #fff; border-radius: 14px;
  padding: 12px 14px; font-size: 14px; z-index: 20;
}

.admin-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px 8px;
}
.admin-bar h1 { margin-top: 8px; }
.tabs {
  display: flex; gap: 8px; padding: 14px 20px 18px;
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: 0 0 auto; scroll-snap-align: start;
  border: 0; background: #fff; border-radius: 999px; padding: 8px 14px;
  font: inherit; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.tab.on { background: var(--teal); color: #fff; }
.badge-dot {
  position: absolute; top: -4px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 999px; background: #e53935; color: #fff;
  font-size: 11px; font-weight: 800; font-style: normal; line-height: 18px;
  text-align: center; box-shadow: 0 0 0 2px #fff;
}
.badge-dot-only {
  min-width: 10px; width: 10px; height: 10px; padding: 0; top: 4px; right: 14px;
}
.row-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.appoint-box { margin: 10px 0 8px; display: grid; gap: 8px; }
.appoint-link { color: var(--teal-mid); font-weight: 700; text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }

.admin-grid { display: grid; gap: 12px; padding: 0 20px 30px; }
@media (min-width: 860px) {
  .admin-grid.cards { grid-template-columns: repeat(4, 1fr); }
  .admin-grid.list { grid-template-columns: 1fr; }
}
.kpi { padding: 16px; }
.kpi .num { font-size: 26px; font-weight: 800; margin-top: 6px; }
.kpi.accent { background: #ffffff; color: var(--ink); border: 1px solid #e0e0e0; }
.kpi.accent .k, .kpi.accent .small { color: var(--muted); }
.dash { padding: 0 20px 30px; display: grid; gap: 14px; }
.dash-hero { display: grid; gap: 12px; grid-template-columns: 1fr; }
.dash-two { display: grid; gap: 12px; }
@media (min-width: 860px) {
  .dash-hero { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .dash-two { grid-template-columns: 1fr 1fr; }
}
.dash-h { font-size: 15px; margin-bottom: 12px; }
.ring-card { display: flex; align-items: center; gap: 12px; padding: 16px; }
.ring {
  --p: 0; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%;
  background: conic-gradient(#5e7ea8 calc(var(--p) * 1%), #ece8e1 0);
  display: grid; place-items: center;
}
.ring.teal { background: conic-gradient(#62765b calc(var(--p) * 1%), #ece8e1 0); }
.ring b { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 14px; }
.bar-row { display: grid; grid-template-columns: 36px 1fr 48px; gap: 8px; align-items: center; margin: 8px 0; font-size: 13px; }
.bar { height: 8px; background: #ece8e1; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #62765b; border-radius: 99px; }
.stack { display: grid; gap: 8px; }
.chip-line { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.rented { background: #62765b; }
.dot.vacant { background: #bbb; }
.dot.repair { background: #c9842a; }
.dot.office { background: #888; }
.fix-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fix-pills span { background: #e6f1fb; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: #1d4e89; }
.mini { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.mini span { color: var(--muted); white-space: nowrap; }
.mini span.overdue { color: var(--rose); font-weight: 700; }
.report-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.report-sum span {
  background: #f4f4f4; border-radius: 999px; padding: 6px 10px;
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
}
.report-wrap { overflow: auto; max-height: 420px; border: 1px solid var(--line); border-radius: 16px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.report-table th, .report-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report-table th { background: #f7f7f7; font-size: 12px; color: var(--muted); position: sticky; top: 0; }
.inv-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.inv-paper {
  background: #fffdf8; color: #c1121f; border: 1px solid #c1121f;
  padding: 10px 12px 8px; margin-bottom: 16px;
  font-family: "PMingLiU", "PingFang TC", "Noto Serif TC", serif;
  font-size: 13px;
}
.inv-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; align-items: start; }
.inv-no { display: flex; gap: 8px; align-items: center; padding-top: 4px; }
.inv-track, .inv-digits {
  border: 2px solid #c1121f; min-height: 32px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
  letter-spacing: 0.12em; color: #111; padding: 2px 10px; background: #fff;
}
.inv-track { min-width: 48px; }
.inv-digits { min-width: 140px; }
.inv-title { text-align: center; }
.inv-main-title { font-size: 22px; font-weight: 800; letter-spacing: 0.28em; }
.inv-period { margin-top: 4px; letter-spacing: 0.12em; }
.inv-date { margin-top: 2px; }
.inv-buyer { margin-top: 8px; }
.inv-line { display: flex; gap: 6px; align-items: baseline; margin-bottom: 4px; }
.inv-line b, .inv-addr b { color: #111; font-size: 15px; border-bottom: 1px solid #c1121f; min-width: 24px; padding: 0 4px; font-weight: 700; }
.inv-addr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; }
.inv-addr i { font-style: normal; font-size: 11px; margin: 0 4px 0 2px; }
.inv-grid { display: grid; grid-template-columns: 1fr 150px; margin-top: 6px; }
.inv-items { width: 100%; border-collapse: collapse; }
.inv-items-wrap { position: relative; }
.inv-items th, .inv-items td {
  border: 1px solid #c1121f; padding: 6px 4px; text-align: center; height: 28px; color: #111;
}
.inv-items th { font-weight: 800; color: #c1121f; }
.inv-items .c-name { width: 32%; }
.inv-items .c-note { width: 18%; }
.inv-total-row td { font-weight: 800; color: #c1121f; }
.inv-total-row td:nth-child(3) { color: #111; font-size: 16px; }
.inv-stamp {
  border: 1px solid #c1121f; border-left: 0; padding: 8px 6px; text-align: center; font-size: 12px;
}
.inv-chop {
  margin-top: 8px; border: 2px solid #c1121f; padding: 8px 6px; min-height: 120px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.inv-chop strong { font-size: 13px; letter-spacing: 0.06em; }
.inv-chop span, .inv-chop em { font-style: normal; font-size: 11px; color: #c1121f; }
.inv-sum { display: grid; grid-template-columns: 90px 1fr 150px; border: 1px solid #c1121f; border-top: 0; }
.inv-sum-l { padding: 8px; text-align: center; font-weight: 800; border-right: 1px solid #c1121f; }
.inv-sum-r { grid-column: 2; padding: 8px; text-align: right; color: #111; font-weight: 800; font-size: 16px; }
.inv-cnrow { display: flex; border: 1px solid #c1121f; border-top: 0; }
.inv-cnlab { flex: 0 0 90px; padding: 6px 4px; text-align: center; font-size: 11px; border-right: 1px solid #c1121f; line-height: 1.35; }
.inv-boxes { display: flex; flex: 1; }
.inv-box {
  flex: 1; border-right: 1px solid #c1121f; text-align: center; padding: 4px 0 6px;
}
.inv-box:last-child { border-right: 0; }
.inv-box em { display: block; font-style: normal; font-size: 11px; }
.inv-box b { display: block; color: #111; font-size: 16px; min-height: 20px; }
.inv-taxrow {
  display: flex; align-items: center; gap: 10px; border: 1px solid #c1121f; border-top: 0;
  padding: 6px 8px; font-size: 12px;
}
.inv-taxrow label { border: 1px solid #c1121f; padding: 2px 10px; }
.inv-taxrow label.on { font-weight: 800; }
.inv-bottom { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11px; }
@media print {
  body, html, #app, .shell, .admin-scroll { background: #fff !important; height: auto !important; overflow: visible !important; }
  .admin-bar, .tabs, .no-print, .nav { display: none !important; }
  .inv-paper { break-inside: avoid; page-break-inside: avoid; margin-bottom: 16px; }
}
.item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; cursor: pointer;
}
.item img, .item .ph { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.floor-h { font-size: 13px; font-weight: 800; color: var(--muted); padding: 8px 4px; }
.select-mini { border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; background: #fff; }
.field { display: grid; gap: 6px; margin: 10px 0; font-size: 13px; color: var(--muted); }
.contract-list { display: grid; gap: 10px; }
.contract-list img { width: 100%; border-radius: 18px; }
.rules p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.rules p:last-child { margin-bottom: 0; }

.back {
  border: 0; background: transparent; color: var(--teal-mid);
  font: inherit; font-weight: 700; cursor: pointer; margin: 8px 0 28px; padding: 0; display: inline-block;
}
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: #f2f2f2; border-radius: 999px; padding: 4px; margin-top: 8px;
}
.seg-bg {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 2); background: #fff; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); transform: translateX(0);
  opacity: 0; transition: transform .4s ease, opacity .2s ease;
}
#asset-list { display: contents; }
.seg.is-doing .seg-bg, .seg.is-done .seg-bg, .seg.is-studio .seg-bg, .seg.is-factory .seg-bg { opacity: 1; }
.seg.is-done .seg-bg, .seg.is-factory .seg-bg { transform: translateX(100%); }
.seg button {
  position: relative; z-index: 1; border: 0; background: transparent; border-radius: 999px;
  padding: 10px 8px; font: inherit; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.seg button.on { color: var(--ink); }
.seg button:hover { background-color: #e9e9e9; }
.seg button.on:hover { background-color: transparent; }

.done-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.done-box .ghost { margin-top: 18px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px;
}
.lightbox img, .lightbox video { max-width: 100%; max-height: calc(100% - 110px); border-radius: 8px; background: #000; }
.lightbox-bar, .lightbox-nav {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  color: #fff; padding: 8px 4px; gap: 8px;
}
.lightbox-bar button, .lightbox-nav button {
  border: 0; border-radius: 10px; padding: 8px 12px;
  font: inherit; font-weight: 700; cursor: pointer; background: #fff; color: #17211f;
}
.lightbox-nav button:disabled { opacity: .4; }

.role-btn, .room-row, .clickable, .card.item, .issue-opt, .login-block, .mini.clickable, [data-room] {
  border-radius: 22px; overflow: hidden; transition: background-color .16s ease;
}
.ghost, .tab, .nav button, .linkish, .section-title [data-page], .btn-navy {
  border-radius: 999px; transition: background-color .16s ease;
}
.role-btn:hover, .room-row:hover, .clickable:hover, .card.item:hover, .issue-opt:hover,
.login-block:hover, .mini.clickable:hover, [data-room]:hover, .ghost:hover, .tab:hover,
.nav button:hover, .linkish:hover, .section-title [data-page]:hover {
  background-color: #f3f3f3;
}
.issue-opt.selected:hover { background-color: #d8e2d4; }
.tab.on:hover { background-color: #4e5e49; }
.nav button.active:hover { background-color: #f3f3f3; }
.err { color: var(--rose); font-size: 13px; margin-top: 6px; }

.swipe-wrap { position: relative; overflow: hidden; border-radius: 22px; touch-action: pan-y; }
.swipe-reveal {
  position: absolute; inset: 0 0 0 auto; width: 88px;
  background: #06c755; color: #fff; display: grid; place-items: center;
  text-align: center; font-weight: 800; font-size: 13px; line-height: 1.3;
}
.swipe-front { position: relative; background: #fff; }
.line-dock {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; z-index: 45; transform: translateX(100%);
  transition: transform .5s ease;
  display: flex; flex-direction: column;
}
.line-dock.open { transform: translateX(0); }
.line-dock-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 12px 14px; background: #06c755; color: #fff;
}
.line-dock-bar strong { display: block; }
.line-dock iframe { flex: 1; width: 100%; border: 0; background: #d4e8c8; min-height: 220px; }
.line-dock-fallback { padding: 12px 14px 18px; }
.line-dock-fallback p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
