:root {
  --ink: #192d28;
  --muted: #5a6c66;
  --pine: #144b3e;
  --lime: #d9efa3;
  --line: #dce5df;
  --surface: #f4f7f3;
  --rust: #a85031;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.88rem;
  background: white;
  color: var(--ink);
  font-weight: 600;
}
button:hover {
  border-color: #77978a;
  background: #f1f6ee;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #71a487;
  outline-offset: 3px;
}
button.primary {
  background: var(--pine);
  border-color: var(--pine);
  color: white;
}
button.primary:hover {
  background: #20604d;
}
input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd7d0;
  border-radius: 9px;
  color: var(--ink);
  background: white;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #63997d;
}
label {
  display: grid;
  gap: 0.4rem;
  font-weight: 650;
  font-size: 0.91rem;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.14;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.12rem;
}
small,
.muted {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.35rem;
  font-weight: 720;
  letter-spacing: -0.055em;
}
.brand img {
  width: 40px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex: none;
}
.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr minmax(380px, 0.95fr);
  background: var(--surface);
  padding: 16px;
  gap: 16px;
}
.login-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 3.5vw, 3.5rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.login-form {
  margin: auto;
  width: min(100%, 380px);
  padding: 24px 0;
}
.login-form h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0.9rem 0 0.6rem;
}
.login-form p {
  margin: 0 0 1.6rem;
  color: var(--muted);
  line-height: 1.55;
}
.login-form label {
  margin: 0.9rem 0;
}
.login-form input {
  padding: 0.88rem 0.95rem;
}
.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.lang-pills {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--tint);
  padding: 3px;
  border-radius: 10px;
}
.lang-pills button {
  border: 0;
  background: transparent;
  padding: 0.32rem 0.62rem;
  font-size: 0.8rem;
  border-radius: 8px;
}
.lang-pills .active {
  background: var(--panel);
  color: var(--blue);
  box-shadow: 0 1px 4px #0001;
}
.pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pass-wrap input {
  padding-right: 2.9rem;
}
.pass-eye {
  position: absolute;
  right: 6px;
  border: 0;
  background: transparent;
  padding: 0.45rem;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
}
.pass-eye:hover {
  background: var(--tint);
  color: var(--ink);
}
.login-form .primary {
  width: 100%;
  padding: 0.95rem;
  margin-top: 0.7rem;
}
.login-photo,
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: #132c44;
}
.login-photo:before,
.hero:before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(15deg, rgba(8, 24, 38, 0.88) 12%, rgba(12, 42, 46, 0.45) 60%, rgba(12, 34, 52, 0.25) 100%),
    url("/assets/residence.webp") center/cover;
}
.login-photo {
  border-radius: 22px;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.login-photo-card {
  background: rgba(10, 26, 40, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  max-width: 520px;
}
.login-photo h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.4rem;
}
.login-photo p {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.85rem;
  margin-top: 0.9rem;
  color: #e6effa;
}
.eyebrow {
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.iconbox {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #e3eedb;
  color: var(--pine);
  display: inline-grid;
  place-items: center;
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  height: 100svh;
  background: #fcfdfa;
  border-right: 1px solid var(--line);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.side .brand {
  padding-left: 0.5rem;
}
.nav {
  display: grid;
  gap: 0.35rem;
}
.nav button,
.logout {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  text-align: left;
  border-color: transparent;
  background: transparent;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
}
.nav .active {
  background: #e6efde;
  color: #234c35;
}
.profile {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.main {
  min-width: 0;
}
.top {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 3.5rem);
  background: #ffffffa0;
}
.avatar {
  border-radius: 50%;
  background: var(--pine);
  color: var(--lime);
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}
.wrap {
  max-width: 1550px;
  margin: auto;
  padding: clamp(1rem, 2.6vw, 3rem);
  display: grid;
  gap: 1.35rem;
}
.hero {
  border-radius: 18px;
  padding: clamp(1.6rem, 3.3vw, 3.5rem);
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 0.8rem;
}
.hero:before {
  background:
    linear-gradient(90deg, #103c32 10%, #123e35e8 43%, #133c3450 75%),
    url("/assets/residence.webp") center 46% / cover;
}
.hero .eyebrow {
  color: var(--lime);
}
.hero p {
  color: #f0f5ed;
}
.row,
.toolbar,
.head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.head,
.toolbar {
  justify-content: space-between;
}
.toolbar select,
.toolbar input,
.row select,
.row input {
  width: auto;
  max-width: 100%;
}
.stats,
.cards,
.cols,
.cameras {
  display: grid;
  gap: 1rem;
}
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat,
.card,
details.block {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  padding: 1.2rem;
}
.stat {
  text-align: left;
  display: grid;
  gap: 0.75rem;
  font-weight: 500;
}
.stat strong {
  font-size: clamp(1.35rem, 2.2vw, 2.35rem);
  letter-spacing: -0.055em;
  line-height: 1;
}
.stat small {
  font-size: 0.82rem;
}
.stat .iconbox {
  width: 35px;
  height: 35px;
  border-radius: 10px;
}
.stat:nth-child(3) .iconbox {
  background: #fae9db;
  color: var(--rust);
}
.cols {
  grid-template-columns: 1.5fr 1fr;
}
.cards,
.cameras {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
}
.card {
  display: grid;
  align-content: start;
  gap: 1rem;
}
.bar {
  height: 12px;
  background: #eaf0e7;
  border-radius: 9px;
  overflow: hidden;
}
.bar i {
  height: 100%;
  background: #65885e;
  display: block;
  border-radius: 9px;
  animation: grow 0.55s ease-out;
  transform-origin: left;
}
.bars {
  display: grid;
  gap: 0.85rem;
}
.barrow {
  display: grid;
  grid-template-columns: minmax(65px, 1fr) 2.2fr auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.89rem;
}
.ring {
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--pine) var(--fill), #e2eacb 0);
}
.ring b {
  width: 88px;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.58rem;
  background: #e6f1e1;
  border-radius: 7px;
  color: #31603b;
  font-size: 0.85rem;
  font-weight: 650;
}
.warn {
  background: #faeee1;
  color: #8a4e27;
}
.soft {
  background: #edf0ee;
  color: #53635c;
}
.list {
  display: grid;
  gap: 0.65rem;
}
.line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.line:last-child {
  border-bottom: 0;
}
.line strong,
.line small {
  display: block;
}
.tabs {
  display: flex;
  gap: 0.25rem;
  background: #e6ece5;
  border-radius: 10px;
  padding: 3px;
}
.tabs button {
  border: 0;
  background: transparent;
  font-size: 0.86rem;
}
.tabs .active {
  background: white;
  box-shadow: 0 1px 4px #182e2418;
}
.empty {
  padding: 1rem;
  color: var(--muted);
}
.block summary {
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem;
}
.block[open] > summary {
  margin-bottom: 0.8rem;
}
.block .block {
  border-radius: 10px;
  margin-top: 0.6rem;
  background: #fbfcf9;
}
.scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}
td,
th {
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-weight: 600;
}
.cam {
  width: 100%;
  aspect-ratio: 16/9;
  background: #182e2a;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 0.6rem;
  color: #c4d4c4;
  border-radius: 10px;
  overflow: hidden;
}
.cam .icon {
  width: 32px;
  height: 32px;
}
.cam video,
.cam img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.danger,
.error {
  color: #a13929;
}
.error:empty {
  display: none;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(570px, 94vw);
  max-height: 88svh;
  color: var(--ink);
  box-shadow: 0 20px 70px #05261a44;
}
dialog::backdrop {
  background: #122b2180;
  backdrop-filter: blur(3px);
}
dialog .inner {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
dialog form,
.formgrid {
  display: grid;
  gap: 0.8rem;
}
.formgrid {
  grid-template-columns: 1fr 1fr;
}
textarea {
  min-height: 110px;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.check input {
  width: auto;
}
.actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  padding: 0.8rem 1.4rem;
  background: var(--pine);
  color: white;
  z-index: 10;
  box-shadow: 0 5px 22px #0002;
}
#toast:empty {
  display: none;
}
.wrap,
.login-form,
dialog[open] {
  animation: appear 0.28s ease-out;
}
.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mobile {
  display: none;
}
@keyframes grow {
  from {
    transform: scaleX(0.01);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    translate: 0 4px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .mobile {
    display: inline-flex;
  }
  .side {
    display: none;
  }
  .side.open {
    display: flex;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    height: calc(100svh - 60px);
    width: 240px;
    z-index: 5;
    box-shadow: 12px 0 28px #16332233;
  }
  .top {
    height: 60px;
  }
  .login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    min-height: 100svh;
    background:
      linear-gradient(160deg, rgba(11, 30, 48, 0.82), rgba(14, 46, 42, 0.9)),
      url("/assets/residence.webp") center/cover no-repeat;
  }
  .login-photo {
    display: none;
  }
  .login-left {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    gap: 1rem;
  }
  .login-form {
    padding: 0.6rem 0;
  }
  .login-left > small {
    text-align: center;
  }
  .card,
  .stat,
  .block {
    padding: 1rem;
  }
  .hero {
    min-height: 167px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .top .muted {
    display: none;
  }
  .stats,
  .cards {
    gap: 0.6rem;
  }
  .tabs button {
    padding: 0.6rem;
  }
  .toolbar {
    gap: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

button.barrow {
  width: 100%;
  padding: 0.25rem 0.35rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 500;
}
button.barrow:hover {
  background: #f1f5ed;
}
button.cam {
  padding: 0;
  border: 0;
}
button.cam:hover {
  background: #234439;
  color: white;
}
dialog:has(.cam) {
  width: min(1080px, 95vw);
}
dialog .cam {
  max-height: 72svh;
}

/* Mavzu ranglari kartalar, diagramma va holat tugmalarida birga almashadi. */
:root {
  --ink: #18243d;
  --muted: #576982;
  --pine: #275eda;
  --line: #dce4f0;
  --surface: #f3f6fc;
  --panel: #fff;
  --tint: #eff4ff;
  --blue: #2563eb;
  --green: #05845c;
  --purple: #784bd0;
  --amber: #b65616;
  --shadow: 0 5px 20px #203c6e09;
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5edff;
  --muted: #acbad0;
  --pine: #6694ff;
  --line: #33465e;
  --surface: #101927;
  --panel: #192537;
  --tint: #233650;
  --blue: #8cb0ff;
  --green: #5ddbaa;
  --purple: #b8a3ff;
  --amber: #ffae79;
  --shadow: 0 8px 24px #0002;
}
body,
.card,
.side,
.top,
.stat,
dialog,
button,
input,
textarea,
select,
.track,
.nav .active,
.ring b {
  transition:
    background-color 0.24s ease,
    color 0.2s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}
body {
  background: var(--surface);
  color: var(--ink);
}
button,
input,
select,
textarea,
dialog,
.top,
.side,
.stat,
.card,
details.block,
.ring b,
.tabs .active,
.login {
  background-color: var(--panel);
  color: var(--ink);
}
.top {
  position: sticky;
  top: 0;
  z-index: 4;
  gap: 0.75rem;
  height: auto;
  min-height: 72px;
  padding-block: 0.65rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.top > .row:first-child {
  justify-self: start;
}
.top-actions {
  justify-self: end;
  flex-wrap: nowrap;
}
.side {
  border-color: var(--line);
}
.nav .active {
  background: var(--tint);
  color: var(--blue);
  box-shadow: inset 3px 0 var(--blue);
}
button:hover,
.block .block,
.tabs,
button.barrow:hover {
  background: var(--tint);
  color: var(--ink);
}
button.primary {
  background: #2458c9;
  color: white;
  border-color: #2458c9;
}
button.primary:hover {
  background: #1748b1;
}
.card,
.stat {
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.stat {
  border-top: 3px solid var(--accent);
  min-height: 134px;
  position: relative;
  overflow: hidden;
  --accent: var(--blue);
  background-image: radial-gradient(
    ellipse at 100% 0%,
    color-mix(in srgb, var(--accent) 7%, transparent),
    transparent 65%
  );
}
.stat:nth-child(2) {
  --accent: var(--green);
}
.stat:nth-child(3) {
  --accent: var(--amber);
}
.stat:nth-child(4) {
  --accent: var(--purple);
}
.stat strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.45rem, 2.15vw, 2.4rem);
}
.stat .iconbox,
.stat:nth-child(3) .iconbox {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}
.stat:hover,
.room-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #25488616;
}
.stat,
.room-tile {
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    background 0.22s;
}
.hero {
  border-radius: 18px;
  min-height: 160px;
  background: #183c78;
  box-shadow: var(--shadow);
}
.hero:before {
  background:
    linear-gradient(100deg, #132c59 0%, #183e78f0 38%, #2365a960 78%),
    url("/assets/residence.webp") center 45% / cover;
}
.hero .eyebrow {
  color: #bddefc;
}
.hero p {
  color: #ebf3ff;
}
.hero.compact {
  min-height: 150px;
}
.iconbox,
.avatar {
  background: var(--tint);
  color: var(--blue);
}
.bar,
.track {
  background: var(--line);
}
.bar i {
  background: var(--blue);
}
.barrow:nth-child(2) i {
  background: var(--green);
}
.barrow:nth-child(3) i {
  background: var(--purple);
}
.barrow:nth-child(4) i {
  background: var(--amber);
}
.ring {
  background: conic-gradient(
    var(--blue) var(--fill),
    color-mix(in srgb, var(--purple) 24%, var(--panel)) 0
  );
}
.badge,
.income {
  color: var(--green);
}
.badge {
  background: color-mix(in srgb, var(--green) 12%, var(--panel));
}
.soft {
  background: var(--tint);
  color: var(--muted);
}
.warn,
.debt,
.danger,
.error {
  color: var(--amber);
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 0.7rem;
}
.room-tile {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  justify-items: start;
  text-align: left;
  padding: 1rem;
}
.room-tile > .icon,
h2 > .icon {
  color: var(--blue);
}
.name-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 1.08rem;
  text-align: left;
}
.name-link:hover {
  text-decoration: underline;
  background: transparent;
  color: var(--blue);
}
.wrap.no-anim {
  animation: none !important;
}
.top-actions button,
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.live-clock {
  justify-self: center;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: var(--tint);
  border: 1px solid var(--line);
  padding: 0.42rem 1rem;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.icon-btn {
  padding: 0.42rem;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
}
.switch {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.5rem;
  font-size: 0.87rem;
  text-align: left;
  border-radius: 10px;
}
.switch-bill {
  min-width: 10.6rem;
}
.switch-reg {
  min-width: 10.2rem;
}
.switch-label {
  flex: 1;
  white-space: nowrap;
}
.row-toggles {
  flex-wrap: nowrap;
}
@media (max-width: 760px) {
  .row-toggles {
    flex-wrap: wrap;
  }
  .top {
    grid-template-columns: 1fr auto;
    row-gap: 0.45rem;
  }
  .live-clock {
    grid-column: 1 / -1;
    order: 3;
    justify-self: center;
    font-size: 1rem;
    padding: 0.35rem 0.85rem;
  }
}
.bar-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.track {
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 23px;
  border-radius: 20px;
  padding: 3px;
  background: #79889b;
  flex: none;
}
.track i {
  display: block;
  background: white;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0003;
  transition: transform 0.2s;
}
.switch[aria-checked="true"] .track,
.reg-input input:checked + .track {
  background: #059669;
}
.switch[aria-checked="true"] .track i,
.reg-input input:checked + .track i {
  transform: translateX(17px);
}
.reg-input input,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.reg-input input:focus-visible + .track {
  outline: 3px solid var(--blue);
}
.resident-row small .icon {
  width: 14px;
  height: 14px;
}
.facts {
  margin: 0;
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  text-align: right;
}
.big {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}
.trend {
  display: flex;
  gap: clamp(2px, 1.2vw, 16px);
  align-items: end;
  background: repeating-linear-gradient(
    to top,
    transparent 0 33px,
    var(--line) 34px,
    transparent 35px
  );
  padding: 0.3rem 0.3rem 0;
}
.month-bar {
  min-width: 0;
  flex: 1;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 6px;
}
.month-bar small {
  font-size: 0.8rem;
}
.columns {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
}
.columns i {
  width: min(30%, 24px);
  border-radius: 4px 4px 0 0;
  background: #9ab8fd;
  transform-origin: bottom;
  animation: rise 0.42s ease-out;
}
.columns i + i {
  background: #059669;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
}
.plan {
  background: #9ab8fd;
}
.cash {
  background: #059669;
}
@keyframes rise {
  from {
    transform: scaleY(0.05);
  }
}
[data-theme="dark"] .nav button:not(.active),
[data-theme="dark"] .logout {
  color: var(--muted);
}
@media (max-width: 760px) {
  .top {
    gap: 0.3rem;
    padding-inline: 0.5rem;
    flex-wrap: wrap;
  }
  .top > .row {
    gap: 0.25rem;
  }
  .top select {
    max-width: 150px;
    padding: 0.45rem;
    font-size: 0.88rem;
  }
  .top button {
    padding: 0.45rem;
    font-size: 0.86rem;
  }
  .top-actions span:not(.sr) {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .stat {
    min-height: 118px;
  }
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .month-bar small {
    font-size: 0.7rem;
  }
  .trend {
    gap: 1px;
  }
  .facts {
    font-size: 0.92rem;
  }
  .top .mobile {
    font-size: 0;
    gap: 0;
  }
  .side.open {
    top: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
