:root {
  color-scheme: light;
  --bg: #f3f6f7;
  --panel: #ffffff;
  --panel-2: #eef4f5;
  --ink: #172426;
  --muted: #657476;
  --line: #d9e4e6;
  --teal: #1f6f78;
  --teal-dark: #174d57;
  --mint: #d7eee4;
  --gold: #f2b84b;
  --red: #c94c43;
  --blue: #3566a5;
  --nav: #12383f;
  --nav-soft: #1c4d55;
  --shadow: 0 18px 42px rgba(28, 48, 52, 0.08);
  --shadow-soft: 0 8px 24px rgba(28, 48, 52, 0.06);
  font-family: "Segoe UI", "Noto Sans", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
body.theme-cartoon_3d {
  --bg: #bfeef8;
  --panel: rgba(255, 246, 246, 0.94);
  --panel-2: #dff9fb;
  --ink: #102332;
  --muted: #52606d;
  --line: rgba(31, 78, 90, 0.16);
  --teal: #2e9faf;
  --teal-dark: #154b5d;
  --mint: #c4f0c2;
  --gold: #ffc84d;
  --red: #ef626d;
  --blue: #4b7ee8;
  --nav: #167f91;
  --nav-soft: #2aa2ad;
  --shadow: 0 24px 42px rgba(20, 61, 82, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  --shadow-soft: 0 13px 24px rgba(30, 70, 91, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(90deg, rgba(172, 230, 242, 0.2), rgba(255, 255, 255, 0.05)),
    url("./assets/cartoon/cartoon-background.webp") center / cover fixed,
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.85) 0 5rem, transparent 5.2rem),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.72) 0 6rem, transparent 6.2rem),
    radial-gradient(circle at 72% 82%, rgba(89, 206, 115, 0.5), transparent 18rem),
    linear-gradient(180deg, #87d3ed 0%, #c8f3fa 44%, #96dc77 100%);
}

body.theme-cartoon_3d .sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(180deg, #2794a3 0%, #167d91 100%);
  box-shadow: 10px 0 28px rgba(10, 61, 76, 0.32), inset -1px 0 0 rgba(255, 255, 255, 0.2);
}

body.theme-cartoon_3d .brand-mark,
body.theme-cartoon_3d .sidebar-profile-card,
body.theme-cartoon_3d .sidebar-summary {
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(7, 65, 82, 0.14));
  box-shadow: 0 10px 18px rgba(3, 43, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.theme-cartoon_3d .brand-logo {
  content: url("./assets/cartoon/logo-e-housing-cartoon.png?v=172");
}

body.theme-cartoon_3d .nav-item {
  min-height: 54px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.04rem;
  font-weight: 850;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

body.theme-cartoon_3d .nav-item::before {
  content: "";
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: none;
}

body.theme-cartoon_3d .nav-item[data-view="overview"]::before { background-image: url("./assets/cartoon/icon-overview.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="documents"]::before { background-image: url("./assets/cartoon/icon-documents.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="documentHistory"]::before { background-image: url("./assets/cartoon/icon-documentHistory.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="votes"]::before { background-image: url("./assets/cartoon/icon-votes.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="billing"]::before { background-image: url("./assets/cartoon/icon-billing.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="executions"]::before { background-image: url("./assets/cartoon/icon-executions.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="finance"]::before { background-image: url("./assets/cartoon/icon-finance.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="messages"]::before { background-image: url("./assets/cartoon/icon-messages.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="calendar"]::before { background-image: url("./assets/cartoon/icon-calendar.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="activities"]::before { background-image: url("./assets/cartoon/icon-activities.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="photoAlbum"]::before { background-image: url("./assets/cartoon/icon-photoAlbum.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="classifieds"]::before { background-image: url("./assets/cartoon/icon-classifieds.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="owners"]::before { background-image: url("./assets/cartoon/icon-owners.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="emails"]::before { background-image: url("./assets/cartoon/icon-emails.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="logs"]::before { background-image: url("./assets/cartoon/icon-logs.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="settings"]::before { background-image: url("./assets/cartoon/icon-settings.png?v=172"); }
body.theme-cartoon_3d .nav-item[data-view="profile"]::before { background-image: url("./assets/cartoon/icon-profile.png?v=172"); }

body.theme-cartoon_3d .nav-item svg {
  display: none;
}

body.theme-cartoon_3d .nav-item:hover,
body.theme-cartoon_3d .nav-item.active {
  background: linear-gradient(180deg, rgba(25, 81, 101, 0.84), rgba(15, 65, 82, 0.88));
  box-shadow: 0 9px 16px rgba(5, 47, 62, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

body.theme-cartoon_3d .main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    url("./assets/cartoon/cartoon-background.webp") center / cover fixed;
}

body.theme-cartoon_3d .topbar,
body.theme-cartoon_3d .overview-hero {
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(18, 52, 72, 0.96) 0%, rgba(18, 52, 72, 0.78) 28%, rgba(50, 130, 201, 0.18) 58%, rgba(50, 130, 201, 0.08) 100%),
    url("./assets/cartoon/cartoon-header-banner.webp") center / cover,
    var(--panel);
  color: #fff;
  box-shadow: 0 18px 28px rgba(29, 75, 100, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

body.theme-cartoon_3d .overview-hero-owner-property {
  background:
    linear-gradient(90deg, rgba(18, 52, 72, 0.94) 0%, rgba(18, 52, 72, 0.68) 30%, rgba(50, 130, 201, 0.1) 64%, rgba(50, 130, 201, 0.04) 100%),
    url("./assets/cartoon/cartoon-owner-overview-banner.webp") center / cover,
    var(--panel);
}

body.theme-cartoon_3d .topbar h1,
body.theme-cartoon_3d .overview-hero h2 {
  color: #fff;
  text-shadow: 0 4px 9px rgba(0, 0, 0, 0.26);
}

body.theme-cartoon_3d .page-subtitle,
body.theme-cartoon_3d .topbar .eyebrow,
body.theme-cartoon_3d .overview-hero p {
  color: rgba(255, 255, 255, 0.88);
}

body.theme-cartoon_3d .panel,
body.theme-cartoon_3d .card,
body.theme-cartoon_3d .item,
body.theme-cartoon_3d .photo-card,
body.theme-cartoon_3d .service-card,
body.theme-cartoon_3d .template-card,
body.theme-cartoon_3d .legal-banner,
body.theme-cartoon_3d .vote-chart-panel,
body.theme-cartoon_3d .profile-photo-panel {
  border-color: rgba(78, 83, 98, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.98), rgba(249, 231, 231, 0.92));
  box-shadow: 0 16px 25px rgba(36, 70, 86, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

body.theme-cartoon_3d .primary,
body.theme-cartoon_3d .ghost,
body.theme-cartoon_3d .button-link,
body.theme-cartoon_3d .icon-btn {
  border-radius: 13px;
  box-shadow: 0 8px 14px rgba(32, 70, 88, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.44);
  font-weight: 850;
}

body.theme-cartoon_3d .primary {
  background: linear-gradient(180deg, #5fc4df, #2f8fb1);
}

body.theme-cartoon_3d .ghost,
body.theme-cartoon_3d .button-link.ghost {
  background: linear-gradient(180deg, #fffafa, #f0dddd);
}

body.theme-cartoon_3d .tag,
body.theme-cartoon_3d .card-icon {
  border-radius: 12px;
  background: linear-gradient(180deg, #c7f5db, #9ed9c1);
  color: #16475a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.54);
}

body.theme-cartoon_3d .grid.four > .card:nth-child(1),
body.theme-cartoon_3d .vote-summary-card:nth-child(1) {
  background: linear-gradient(145deg, #ff6b73, #d94f63);
  color: #fff;
}

body.theme-cartoon_3d .grid.four > .card:nth-child(2),
body.theme-cartoon_3d .vote-summary-card:nth-child(2) {
  background: linear-gradient(145deg, #ffd85e, #eca933);
}

body.theme-cartoon_3d .grid.four > .card:nth-child(3),
body.theme-cartoon_3d .vote-summary-card:nth-child(3) {
  background: linear-gradient(145deg, #63d985, #3ab66a);
  color: #fff;
}

body.theme-cartoon_3d .grid.four > .card:nth-child(4),
body.theme-cartoon_3d .vote-summary-card:nth-child(4) {
  background: linear-gradient(145deg, #7a7af0, #4e61cf);
  color: #fff;
}

body.theme-cartoon_3d .grid.stats {
  gap: 22px;
}

body.theme-cartoon_3d .grid.stats .stat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 176px;
  padding: 22px 20px 20px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 18px 30px rgba(20, 58, 74, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

body.theme-cartoon_3d .grid.stats .stat::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: -1;
  width: 112px;
  height: 112px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.96;
}

body.theme-cartoon_3d .grid.stats .stat .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #16475a;
}

body.theme-cartoon_3d .grid.stats .stat strong,
body.theme-cartoon_3d .grid.stats .stat span,
body.theme-cartoon_3d .grid.stats .stat p {
  position: relative;
  z-index: 1;
  max-width: 68%;
}

body.theme-cartoon_3d .grid.stats .stat strong {
  margin-top: 14px;
  margin-bottom: 2px;
  color: currentColor;
  font-size: clamp(2rem, 4vw, 2.55rem);
  line-height: 0.95;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
}

body.theme-cartoon_3d .grid.stats .stat span {
  display: block;
  color: currentColor;
  font-size: 1.08rem;
  line-height: 1.15;
}

body.theme-cartoon_3d .grid.stats .stat p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

body.theme-cartoon_3d .grid.stats .stat:nth-child(1) {
  background: linear-gradient(145deg, #f36a72 0%, #de4d5e 100%);
}

body.theme-cartoon_3d .grid.stats .stat:nth-child(2) {
  background: linear-gradient(145deg, #ffd85e 0%, #efb436 100%);
  color: #111;
}

body.theme-cartoon_3d .grid.stats .stat:nth-child(2) p {
  color: rgba(0, 0, 0, 0.72);
}

body.theme-cartoon_3d .grid.stats .stat:nth-child(3) {
  background: linear-gradient(145deg, #65d881 0%, #42b96d 100%);
}

body.theme-cartoon_3d .grid.stats .stat:nth-child(4) {
  background: linear-gradient(145deg, #777cea 0%, #5564cf 100%);
}

body.theme-cartoon_3d .grid.stats .stat[data-stat-icon="users"]::after,
body.theme-cartoon_3d .grid.stats .stat[data-stat-icon="home"]::after {
  background-image: url("./assets/cartoon/icon-owners.png?v=172");
}

body.theme-cartoon_3d .grid.stats .stat[data-stat-icon="file-text"]::after,
body.theme-cartoon_3d .grid.stats .stat[data-stat-icon="file-check"]::after {
  background-image: url("./assets/cartoon/icon-documents.png?v=172");
}

body.theme-cartoon_3d .grid.stats .stat[data-stat-icon="vote"]::after {
  background-image: url("./assets/cartoon/icon-votes.png?v=172");
}

body.theme-cartoon_3d .grid.stats .stat[data-stat-icon="mail"]::after,
body.theme-cartoon_3d .grid.stats .stat[data-stat-icon="mail-open"]::after {
  background-image: url("./assets/cartoon/icon-emails.png?v=172");
}

body.theme-cartoon_3d .grid.stats .stat[data-stat-icon="notebook-tabs"]::after {
  background-image: url("./assets/cartoon/icon-activities.png?v=172");
}

body.theme-cartoon_3d .system-cards {
  gap: 22px;
}

body.theme-cartoon_3d .system-cards .icon-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 178px;
  align-content: end;
  padding: 22px 20px 20px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 18px 30px rgba(20, 58, 74, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

body.theme-cartoon_3d .system-cards .icon-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: -1;
  width: 120px;
  height: 120px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.96;
}

body.theme-cartoon_3d .system-cards .icon-card .card-icon {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #16475a;
}

body.theme-cartoon_3d .system-cards .icon-card h3,
body.theme-cartoon_3d .system-cards .icon-card p {
  position: relative;
  z-index: 1;
  max-width: 72%;
}

body.theme-cartoon_3d .system-cards .icon-card h3 {
  margin: 76px 0 4px;
  color: currentColor;
  font-size: 1.25rem;
  line-height: 1.12;
}

body.theme-cartoon_3d .system-cards .icon-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

body.theme-cartoon_3d .system-cards .icon-card[data-system-icon="folder-open"] {
  background: linear-gradient(145deg, #ffd85e 0%, #efb436 100%);
  color: #111;
}

body.theme-cartoon_3d .system-cards .icon-card[data-system-icon="folder-open"] p {
  color: rgba(0, 0, 0, 0.72);
}

body.theme-cartoon_3d .system-cards .icon-card[data-system-icon="messages-square"] {
  background: linear-gradient(145deg, #777cea 0%, #5564cf 100%);
}

body.theme-cartoon_3d .system-cards .icon-card[data-system-icon="smartphone"] {
  background: linear-gradient(145deg, #65d881 0%, #42b96d 100%);
}

body.theme-cartoon_3d .system-cards .icon-card[data-system-icon="folder-open"]::after {
  background-image: url("./assets/cartoon/icon-documents.png?v=172");
}

body.theme-cartoon_3d .system-cards .icon-card[data-system-icon="messages-square"]::after {
  background-image: url("./assets/cartoon/icon-messages.png?v=172");
}

body.theme-cartoon_3d .system-cards .icon-card[data-system-icon="smartphone"]::after {
  background-image: url("./assets/cartoon/icon-pwa.png?v=172");
}

body.theme-cartoon_3d .documents-active-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  background: linear-gradient(145deg, rgba(255, 216, 94, 0.78) 0%, rgba(239, 180, 54, 0.58) 100%);
  color: #111;
  box-shadow: 0 18px 30px rgba(20, 58, 74, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

body.theme-cartoon_3d .documents-active-panel::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 20px;
  z-index: -1;
  width: min(180px, 28%);
  aspect-ratio: 1;
  background: url("./assets/cartoon/icon-documents.png?v=172") center / contain no-repeat;
  opacity: 0.94;
}

body.theme-cartoon_3d .documents-active-panel .toolbar,
body.theme-cartoon_3d .documents-active-panel .list {
  position: relative;
  z-index: 1;
}

body.theme-cartoon_3d .documents-active-panel .toolbar {
  align-items: flex-start;
  padding-right: min(210px, 32%);
}

body.theme-cartoon_3d .documents-active-panel h2,
body.theme-cartoon_3d .documents-active-panel p {
  color: currentColor;
}

body.theme-cartoon_3d .documents-active-panel p {
  max-width: 740px;
  color: rgba(0, 0, 0, 0.72);
}

body.theme-cartoon_3d .documents-active-panel .search {
  background: rgba(255, 255, 255, 0.88);
}

body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child,
body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child,
body.theme-cartoon_3d[data-view="executions"] .view-root > .panel:first-child,
body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child,
body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child,
body.theme-cartoon_3d[data-view="votes"] .view-root > .panel:first-child,
body.theme-cartoon_3d[data-view="calendar"] .view-root > .panel:first-child,
body.theme-cartoon_3d[data-view="activities"] .view-root > div:first-child > .panel:first-child,
body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child,
body.theme-cartoon_3d[data-view="owners"] .view-root > .panel:first-child,
body.theme-cartoon_3d[data-view="emails"] .view-root > div:first-child > .panel:first-child,
body.theme-cartoon_3d[data-view="logs"] .view-root > .panel:first-child,
body.theme-cartoon_3d[data-view="settings"] .view-root > div:first-child > .panel:first-child,
body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  background: linear-gradient(145deg, rgba(255, 216, 94, 0.78) 0%, rgba(239, 180, 54, 0.58) 100%);
  color: #111;
  box-shadow: 0 18px 30px rgba(20, 58, 74, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child::after,
body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child::after,
body.theme-cartoon_3d[data-view="executions"] .view-root > .panel:first-child::after,
body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child::after,
body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child::after,
body.theme-cartoon_3d[data-view="votes"] .view-root > .panel:first-child::after,
body.theme-cartoon_3d[data-view="calendar"] .view-root > .panel:first-child::after,
body.theme-cartoon_3d[data-view="activities"] .view-root > div:first-child > .panel:first-child::after,
body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child::after,
body.theme-cartoon_3d[data-view="owners"] .view-root > .panel:first-child::after,
body.theme-cartoon_3d[data-view="emails"] .view-root > div:first-child > .panel:first-child::after,
body.theme-cartoon_3d[data-view="logs"] .view-root > .panel:first-child::after,
body.theme-cartoon_3d[data-view="settings"] .view-root > div:first-child > .panel:first-child::after,
body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 22px;
  z-index: -1;
  width: min(176px, 28%);
  aspect-ratio: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
}

body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child > *,
body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child > *,
body.theme-cartoon_3d[data-view="executions"] .view-root > .panel:first-child > *,
body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child > *,
body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child > *,
body.theme-cartoon_3d[data-view="votes"] .view-root > .panel:first-child > *,
body.theme-cartoon_3d[data-view="calendar"] .view-root > .panel:first-child > *,
body.theme-cartoon_3d[data-view="activities"] .view-root > div:first-child > .panel:first-child > *,
body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child > *,
body.theme-cartoon_3d[data-view="owners"] .view-root > .panel:first-child > *,
body.theme-cartoon_3d[data-view="emails"] .view-root > div:first-child > .panel:first-child > *,
body.theme-cartoon_3d[data-view="logs"] .view-root > .panel:first-child > *,
body.theme-cartoon_3d[data-view="settings"] .view-root > div:first-child > .panel:first-child > *,
body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child > * {
  position: relative;
  z-index: 1;
}

body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child .toolbar,
body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child .toolbar,
body.theme-cartoon_3d[data-view="executions"] .view-root > .panel:first-child .toolbar,
body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child .toolbar,
body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child .toolbar,
body.theme-cartoon_3d[data-view="votes"] .view-root > .panel:first-child > .toolbar,
body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child .toolbar,
body.theme-cartoon_3d[data-view="owners"] .view-root > .panel:first-child .toolbar,
body.theme-cartoon_3d[data-view="emails"] .view-root > div:first-child > .panel:first-child .toolbar,
body.theme-cartoon_3d[data-view="logs"] .view-root > .panel:first-child .toolbar,
body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child .toolbar {
  align-items: flex-start;
  padding-right: min(210px, 32%);
}

body.theme-cartoon_3d[data-view="documentHistory"] .below-title-select {
  width: min(100%, 360px);
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.88);
}

body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-documentHistory.png?v=172");
}

body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-billing.png?v=172");
}

body.theme-cartoon_3d[data-view="executions"] .view-root > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-executions.png?v=172");
}

body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-finance.png?v=172");
}

body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-messages.png?v=172");
}

body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child::after {
  right: 34px;
  top: 24px;
  width: min(250px, 30%);
  opacity: 0.98;
}

body.theme-cartoon_3d[data-view="votes"] .view-root > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-votes.png?v=172");
}

body.theme-cartoon_3d[data-view="calendar"] .view-root > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-calendar.png?v=172");
}

body.theme-cartoon_3d[data-view="activities"] .view-root > div:first-child > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-activities.png?v=172");
}

body.theme-cartoon_3d[data-view="activities"] .activities-overview-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  border: 0;
  background: linear-gradient(145deg, rgba(255, 216, 94, 0.78) 0%, rgba(239, 180, 54, 0.58) 100%);
  color: #111;
  box-shadow: 0 18px 30px rgba(20, 58, 74, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

body.theme-cartoon_3d[data-view="activities"] .activities-overview-panel::after {
  content: "";
  position: absolute;
  right: 38px;
  top: 28px;
  z-index: -1;
  width: min(220px, 28%);
  aspect-ratio: 1;
  background: url("./assets/cartoon/icon-activities.png?v=172") center / contain no-repeat;
  opacity: 0.9;
}

body.theme-cartoon_3d[data-view="activities"] .activities-overview-panel > * {
  position: relative;
  z-index: 1;
}

body.theme-cartoon_3d[data-view="activities"] .activities-overview-panel > .toolbar:first-child {
  min-height: 190px;
  align-items: flex-start;
  padding-right: min(270px, 36%);
}

body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-photoAlbum.png?v=172");
}

body.theme-cartoon_3d[data-view="classifieds"] .view-root > div:first-child > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-classifieds.png?v=172");
}

body.theme-cartoon_3d[data-view="classifieds"] .classifieds-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 360px;
  border: 0;
  background: linear-gradient(145deg, rgba(255, 216, 94, 0.78) 0%, rgba(239, 180, 54, 0.58) 100%);
  color: #111;
  box-shadow: 0 18px 30px rgba(20, 58, 74, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

body.theme-cartoon_3d[data-view="classifieds"] .classifieds-panel::after {
  content: "";
  position: absolute;
  right: 42px;
  top: 34px;
  z-index: -1;
  width: min(280px, 34%);
  aspect-ratio: 1;
  background: url("./assets/cartoon/icon-classifieds.png?v=172") center / contain no-repeat;
  opacity: 0.95;
}

body.theme-cartoon_3d[data-view="classifieds"] .classifieds-panel > * {
  position: relative;
  z-index: 1;
}

body.theme-cartoon_3d[data-view="classifieds"] .classifieds-panel > .toolbar:first-child {
  min-height: 310px;
  align-items: flex-start;
  padding-right: min(350px, 44%);
}

body.theme-cartoon_3d[data-view="classifieds"] .classifieds-filter-row {
  width: min(100%, 420px);
  margin: -72px 0 18px;
}

body.theme-cartoon_3d[data-view="classifieds"] .classifieds-panel .search {
  background: rgba(255, 255, 255, 0.88);
}

body.theme-cartoon_3d[data-view="classifieds"] .classifieds-content-grid {
  position: relative;
  z-index: 1;
}

body.theme-cartoon_3d[data-view="classifieds"] .classified-list-panel,
body.theme-cartoon_3d[data-view="classifieds"] .classified-categories-panel {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 22px rgba(20, 58, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.theme-cartoon_3d[data-view="owners"] .view-root > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-owners.png?v=172");
}

body.theme-cartoon_3d[data-view="owners"] .owners-overview-panel::after {
  right: 36px;
  top: 28px;
  width: min(230px, 30%);
  opacity: 0.95;
}

body.theme-cartoon_3d[data-view="owners"] .owners-overview-head {
  min-height: 250px;
  padding-right: min(280px, 38%);
}

body.theme-cartoon_3d[data-view="owners"] .owners-overview-head h2 {
  margin-bottom: 8px;
}

body.theme-cartoon_3d[data-view="owners"] .owners-overview-panel > .toolbar {
  padding-right: 0;
}

body.theme-cartoon_3d[data-view="owners"] .owner-table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

body.theme-cartoon_3d[data-view="owners"] .owner-table tbody td {
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(20, 58, 74, 0.12);
}

body.theme-cartoon_3d[data-view="owners"] .owner-table tbody td:first-child {
  border-radius: 8px 0 0 8px;
}

body.theme-cartoon_3d[data-view="owners"] .owner-table tbody td:last-child {
  border-radius: 0 8px 8px 0;
}

body.theme-cartoon_3d[data-view="emails"] .view-root > div:first-child > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-emails.png?v=172");
}

body.theme-cartoon_3d[data-view="emails"] .emails-overview-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  border: 0;
  background: linear-gradient(145deg, rgba(255, 216, 94, 0.78) 0%, rgba(239, 180, 54, 0.58) 100%);
  color: #111;
  box-shadow: 0 18px 30px rgba(20, 58, 74, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

body.theme-cartoon_3d[data-view="emails"] .emails-overview-panel::after {
  content: "";
  position: absolute;
  right: 38px;
  top: 28px;
  z-index: -1;
  width: min(220px, 28%);
  aspect-ratio: 1;
  background: url("./assets/cartoon/icon-emails.png?v=172") center / contain no-repeat;
  opacity: 0.9;
}

body.theme-cartoon_3d[data-view="emails"] .emails-overview-panel > * {
  position: relative;
  z-index: 1;
}

body.theme-cartoon_3d[data-view="emails"] .emails-overview-head {
  min-height: 190px;
  padding-right: min(270px, 36%);
}

body.theme-cartoon_3d[data-view="emails"] .emails-overview-head h2 {
  margin-bottom: 8px;
}

body.theme-cartoon_3d[data-view="logs"] .view-root > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-logs.png?v=172");
}

body.theme-cartoon_3d[data-view="settings"] .view-root > div:first-child > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-settings.png?v=172");
}

body.theme-cartoon_3d[data-view="settings"] .settings-overview-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  border: 0;
  background: linear-gradient(145deg, rgba(255, 216, 94, 0.78) 0%, rgba(239, 180, 54, 0.58) 100%);
  color: #111;
  box-shadow: 0 18px 30px rgba(20, 58, 74, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

body.theme-cartoon_3d[data-view="settings"] .settings-overview-panel::after {
  content: "";
  position: absolute;
  right: 36px;
  top: 28px;
  z-index: -1;
  width: min(210px, 30%);
  aspect-ratio: 1;
  background: url("./assets/cartoon/icon-settings.png?v=172") center / contain no-repeat;
  opacity: 0.92;
}

body.theme-cartoon_3d[data-view="settings"] .settings-overview-panel > * {
  position: relative;
  z-index: 1;
}

body.theme-cartoon_3d[data-view="settings"] .settings-overview-head {
  min-height: 245px;
  padding-right: min(260px, 38%);
}

body.theme-cartoon_3d[data-view="settings"] .settings-overview-head h2 {
  margin-bottom: 8px;
}

body.theme-cartoon_3d[data-view="settings"] .settings-overview-content {
  margin-top: 10px;
}

.settings-house-panel,
.settings-overview-content > .panel {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

body.theme-cartoon_3d[data-view="settings"] .settings-house-panel,
body.theme-cartoon_3d[data-view="settings"] .settings-overview-content > .panel {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  box-shadow: 0 12px 22px rgba(20, 58, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child::after {
  background-image: url("./assets/cartoon/icon-profile.png?v=172");
}

body.theme-cartoon_3d[data-view="profile"] .profile-overview-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  border: 0;
  background: linear-gradient(145deg, rgba(255, 216, 94, 0.78) 0%, rgba(239, 180, 54, 0.58) 100%);
  color: #111;
  box-shadow: 0 18px 30px rgba(20, 58, 74, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

body.theme-cartoon_3d[data-view="profile"] .profile-overview-panel::after {
  content: "";
  position: absolute;
  right: 38px;
  top: 28px;
  z-index: -1;
  width: min(220px, 28%);
  aspect-ratio: 1;
  background: url("./assets/cartoon/icon-profile.png?v=172") center / contain no-repeat;
  opacity: 0.9;
}

body.theme-cartoon_3d[data-view="profile"] .profile-overview-panel > * {
  position: relative;
  z-index: 1;
}

body.theme-cartoon_3d[data-view="profile"] .profile-overview-panel > .profile-merged-content > .profile-merged-section:first-child > .toolbar:first-child {
  min-height: 190px;
  padding-right: min(270px, 36%);
}

body.theme-cartoon_3d[data-view="profile"] .profile-overview-panel > .profile-merged-content > .profile-merged-section:nth-child(2) {
  padding-top: 248px;
}

body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child,
body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child,
body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child,
body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child,
body.theme-cartoon_3d[data-view="calendar"] .view-root > .panel:first-child,
body.theme-cartoon_3d[data-view="activities"] .view-root > div:first-child > .panel:first-child,
body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child,
body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child {
  min-height: 260px;
}

body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child::after,
body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child::after,
body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child::after,
body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child::after,
body.theme-cartoon_3d[data-view="calendar"] .view-root > .panel:first-child::after,
body.theme-cartoon_3d[data-view="activities"] .view-root > div:first-child > .panel:first-child::after,
body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child::after,
body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child::after {
  top: 28px;
  right: 38px;
  width: min(220px, 28%);
}

body.theme-cartoon_3d[data-view="calendar"] .calendar-head,
body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child > .toolbar:first-child,
body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child > .toolbar:first-child,
body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child > .toolbar:first-child,
body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child > .toolbar:first-child,
body.theme-cartoon_3d[data-view="activities"] .view-root > div:first-child > .panel:first-child > .toolbar:first-child,
body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child > .toolbar:first-child,
body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child > .toolbar:first-child {
  min-height: 190px;
  padding-right: min(270px, 36%);
}

@media (max-width: 760px) {
  body.theme-cartoon_3d .documents-active-panel .toolbar,
  body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child .toolbar,
  body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child .toolbar,
  body.theme-cartoon_3d[data-view="executions"] .view-root > .panel:first-child .toolbar,
  body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child .toolbar,
  body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child .toolbar,
  body.theme-cartoon_3d[data-view="votes"] .view-root > .panel:first-child > .toolbar,
  body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child .toolbar,
  body.theme-cartoon_3d[data-view="owners"] .view-root > .panel:first-child .toolbar,
  body.theme-cartoon_3d[data-view="emails"] .view-root > div:first-child > .panel:first-child .toolbar,
  body.theme-cartoon_3d[data-view="logs"] .view-root > .panel:first-child .toolbar,
  body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child .toolbar {
    padding-right: 0;
  }

  body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child,
  body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child,
  body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child,
  body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child,
  body.theme-cartoon_3d[data-view="calendar"] .view-root > .panel:first-child,
  body.theme-cartoon_3d[data-view="activities"] .view-root > div:first-child > .panel:first-child,
  body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child,
  body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child {
    min-height: auto;
    padding-right: 20px;
  }

  body.theme-cartoon_3d[data-view="calendar"] .calendar-head,
  body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child > .toolbar:first-child,
  body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child > .toolbar:first-child,
  body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child > .toolbar:first-child,
  body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child > .toolbar:first-child,
  body.theme-cartoon_3d[data-view="activities"] .view-root > div:first-child > .panel:first-child > .toolbar:first-child,
  body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child > .toolbar:first-child,
  body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child > .toolbar:first-child {
    min-height: auto;
    padding-right: 0;
  }

  body.theme-cartoon_3d[data-view="activities"] .activities-overview-panel {
    min-height: auto;
    padding-right: 20px;
  }

  body.theme-cartoon_3d[data-view="activities"] .activities-overview-panel > .toolbar:first-child {
    min-height: auto;
    padding-right: 0;
  }

  body.theme-cartoon_3d[data-view="profile"] .profile-overview-panel {
    min-height: auto;
    padding-right: 20px;
  }

  body.theme-cartoon_3d[data-view="profile"] .profile-overview-panel > .profile-merged-content > .profile-merged-section:first-child > .toolbar:first-child {
    min-height: auto;
    padding-right: 0;
  }

  body.theme-cartoon_3d[data-view="profile"] .profile-overview-panel > .profile-merged-content > .profile-merged-section:nth-child(2) {
    padding-top: 0;
  }

  body.theme-cartoon_3d[data-view="emails"] .emails-overview-panel {
    min-height: auto;
    padding-right: 20px;
  }

  body.theme-cartoon_3d[data-view="emails"] .emails-overview-head {
    min-height: auto;
    padding-right: 0;
  }

  body.theme-cartoon_3d[data-view="owners"] .owners-overview-head {
    min-height: auto;
    padding-right: 0;
  }

  body.theme-cartoon_3d[data-view="settings"] .settings-overview-panel {
    min-height: auto;
    padding-right: 20px;
  }

  body.theme-cartoon_3d[data-view="settings"] .settings-overview-head {
    min-height: auto;
    padding-right: 0;
  }

  body.theme-cartoon_3d .documents-active-panel::after,
  body.theme-cartoon_3d[data-view="documentHistory"] .view-root > div:first-child > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="billing"] .view-root > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="executions"] .view-root > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="finance"] .view-root > div:first-child > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="messages"] .view-root > div:first-child > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="votes"] .view-root > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="calendar"] .view-root > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="activities"] .view-root > div:first-child > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="photoAlbum"] .view-root > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="owners"] .view-root > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="emails"] .view-root > div:first-child > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="logs"] .view-root > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="settings"] .view-root > div:first-child > .panel:first-child::after,
  body.theme-cartoon_3d[data-view="profile"] .view-root > div:first-child > .panel:first-child::after {
    right: 12px;
    top: 12px;
    width: 94px;
    opacity: 0.22;
  }
}

body.theme-cartoon_3d input,
body.theme-cartoon_3d select,
body.theme-cartoon_3d textarea {
  border-radius: 14px;
  border-color: rgba(43, 93, 112, 0.22);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 2px 5px rgba(30, 64, 83, 0.08);
}

body.theme-cartoon_3d dialog .dialog-card {
  border-radius: 22px;
  background: linear-gradient(180deg, #fffafa, #f1e0e0);
  box-shadow: 0 28px 50px rgba(16, 52, 72, 0.32);
}

@media (max-width: 980px) {
  body.theme-cartoon_3d .topbar,
  body.theme-cartoon_3d .overview-hero {
    border-radius: 18px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 120, 0.12), transparent 34rem),
    linear-gradient(180deg, #f9fbfb 0%, var(--bg) 42%);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden,
[hidden] {
  display: none !important;
}

.app-loading .login-screen,
.app-loading .app-shell {
  visibility: hidden;
}

.app-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 30% 18%, rgba(31, 111, 120, 0.22), transparent 28rem),
    linear-gradient(145deg, #f7fbfb 0%, #dfeeed 100%);
}

body:not(.app-loading) .app-loading-screen {
  display: none;
}

.app-loading-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 520px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.app-loading-card strong {
  color: var(--teal-dark);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.app-loading-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(31, 111, 120, 0.18);
  border-top-color: var(--teal);
  border-radius: 999px;
  animation: app-spin 850ms linear infinite;
}

@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-screen {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px);
  gap: 28px;
  align-items: center;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
}

.login-visual {
  min-height: min(62vh, 560px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.34);
  border-radius: 8px;
  background: #050708;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.login-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.login-visual img.is-loaded {
  opacity: 1;
}

.login-panel {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 0;
}

.login-panel p {
  margin-bottom: 4px;
}

.app-copyright {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.app-copyright button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.app-copyright button:hover {
  text-decoration: underline;
}

.legal-dialog-text {
  max-height: min(62vh, 620px);
  overflow: auto;
  padding: 14px;
  line-height: 1.6;
}

.help-dialog-text {
  max-height: min(58vh, 560px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  line-height: 1.65;
}

.help-dialog-text p {
  margin: 14px 0 0;
  color: var(--muted);
}

.attachment-preview {
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.attachment-preview img {
  display: block;
  width: 100%;
  max-height: min(58vh, 560px);
  object-fit: contain;
  background: #f7faf9;
}

.attachment-preview figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.youtube-preview {
  position: relative;
  display: block;
  width: min(100%, 720px);
  margin: 16px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1112;
  color: white;
  text-align: left;
}

.youtube-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.82;
}

.youtube-preview strong {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 1rem;
}

.youtube-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.youtube-play svg {
  width: 58px;
  height: 58px;
  padding: 14px;
  border-radius: 999px;
  background: rgba(31, 111, 120, 0.92);
  color: white;
}

.video-dialog-shell {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0 auto;
}

.video-frame {
  aspect-ratio: 16 / 9;
  width: min(100%, max(280px, calc((100vh - 190px) * 16 / 9)));
  max-height: calc(100vh - 190px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.register-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 36%),
    var(--nav);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.sidebar .brand .brand-mark > img.brand-logo {
  display: block;
  flex: 0 0 40px;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.35;
}

.sidebar-profile-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-profile-card img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
}

.sidebar-profile-card strong,
.sidebar-profile-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sidebar-profile-card strong {
  color: #fff;
  line-height: 1.25;
}

.sidebar-profile-card span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.sidebar-property-label {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-property-text {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  line-height: 1.25;
}

.sidebar-property-select {
  width: 100%;
  min-height: 36px;
  margin-top: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
}

.sidebar-property-select option {
  color: #172033;
}

body.theme-cartoon_3d .sidebar .sidebar-property-select {
  border-color: rgba(23, 72, 90, 0.28);
  background: rgba(255, 250, 250, 0.96);
  color: #172033;
}

body.theme-cartoon_3d .sidebar .sidebar-property-select option {
  color: #172033;
  background: #fffafa;
}

.sidebar-property-select:disabled {
  opacity: 0.82;
}

.nav-list {
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  min-height: 50px;
  padding: 13px 14px;
  text-align: left;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-size: 1.01rem;
  font-weight: 750;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item[hidden],
.nav-item.is-hidden {
  display: none !important;
}

.nav-item svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

button svg,
.button-link svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.nav-item svg {
  color: var(--gold);
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-summary {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-summary strong,
.sidebar-summary span {
  display: block;
}

.sidebar-summary span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.summary-label {
  color: var(--gold) !important;
  font-size: 0.74rem !important;
  font-weight: 800;
  text-transform: uppercase;
}

.main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 38px) 38px;
}

.mobile-menu-back {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(217, 228, 230, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.topbar .building-card {
  display: none;
}

.page-title {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.building-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 104px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.building-card img {
  width: 96px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-2);
}

.building-card figcaption {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.building-card strong {
  font-size: 0.92rem;
}

.building-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.top-actions,
.dialog-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary,
.ghost,
.chip,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

a.primary,
a.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 10px 22px rgba(31, 111, 120, 0.22);
}

.primary:hover {
  background: var(--teal-dark);
}

.ghost {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.primary:hover,
.ghost:hover {
  transform: translateY(-1px);
}

.icon-btn {
  width: 40px;
  padding: 0;
  background: var(--panel-2);
  border-color: var(--line);
}

.view-root {
  display: grid;
  gap: 18px;
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 111, 120, 0.12), transparent 62%),
    #ffffff;
  box-shadow: var(--shadow-soft);
}

.overview-hero h2 {
  margin: 14px 0 8px;
  max-width: 720px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.overview-hero p {
  margin-bottom: 0;
  max-width: 760px;
}

.legal-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.legal-banner strong {
  color: var(--teal-dark);
}

.legal-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.status-metric {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.status-metric span,
.status-metric small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-metric strong {
  color: var(--teal-dark);
  font-size: 1.55rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.grid.wide-left {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.span-all {
  grid-column: 1 / -1;
}

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 20px;
}

.card {
  padding: 16px;
}

.icon-card {
  display: grid;
  gap: 8px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
}

.card-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.3;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-card .message-head {
  align-items: flex-start;
}

.system-updates-panel .service-card {
  align-content: start;
}

.partners-overview-panel {
  display: grid;
  gap: 18px;
}

.platform-support-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  color: #5c3712;
  background: #fff3c7;
  border: 1px solid #e0b65a;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.platform-support-banner svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.platform-support-banner strong,
.platform-support-banner span {
  display: block;
}

.platform-support-banner span {
  margin-top: 2px;
  font-size: 13px;
}

.partners-overview-head {
  align-items: flex-start;
  min-height: 128px;
}

.partners-overview-head > div:first-child {
  max-width: min(760px, calc(100% - 120px));
}

.partners-zone-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 8px;
}

.partners-zone-icon svg {
  width: 44px;
  height: 44px;
}

.partner-filter-row {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: end;
}

.partner-installation-list,
.partner-setup-list,
.partner-service-detail {
  display: grid;
  gap: 12px;
}

.partner-installation-card {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.partner-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.partner-card-head h3 {
  margin: 8px 0 2px;
}

.partner-progress {
  width: 82px;
  min-width: 82px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border: 6px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-top-color: var(--accent);
  border-radius: 50%;
}

.partner-progress strong,
.partner-progress span {
  display: block;
}

.partner-progress span {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.partner-service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.partner-service {
  padding: 5px 8px;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.partner-service.is-ready {
  color: #176b42;
  background: #e7f6ed;
  border-color: #a9d9bc;
}

.partner-service.is-failed,
.error-text {
  color: #9f2f2f;
}

.partner-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.partner-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.partner-card-meta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.partner-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.partner-setup-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.partner-setup-step.is-ready {
  border-color: #a9d9bc;
  background: #f1fbf5;
}

.partner-step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

body.theme-cartoon_3d[data-view="partners"] .partners-overview-panel {
  position: relative;
  overflow: hidden;
  padding-top: 24px;
  background: rgba(255, 218, 92, 0.42);
}

body.theme-cartoon_3d .nav-item[data-view="partners"]::before {
  display: none;
}

body.theme-cartoon_3d .nav-item[data-view="partners"] svg {
  display: block;
  flex: 0 0 36px;
  width: 32px;
  height: 32px;
  color: #f3b37d;
  filter: drop-shadow(0 2px 1px rgba(64, 31, 18, 0.42));
}

@media (max-width: 920px) {
  .partner-filter-row,
  .partner-card-meta,
  .partner-detail-grid {
    grid-template-columns: 1fr;
  }

  .partner-card-head {
    align-items: center;
  }
}

@media (max-width: 620px) {
  .partners-overview-head > div:first-child {
    max-width: 100%;
  }

  .partners-zone-icon {
    display: none;
  }

  .partner-setup-step {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .partner-setup-step .row-actions {
    grid-column: 1 / -1;
  }
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.inline-link {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
}

.service-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.service-values div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.service-values span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.service-values strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.service-steps {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.service-steps summary {
  cursor: pointer;
  font-weight: 900;
}

.service-steps ol {
  margin: 10px 0 0 20px;
  color: var(--muted);
}

.service-steps li + li {
  margin-top: 6px;
}

.website-integration-panel {
  display: grid;
  gap: 14px;
}

.code-snippet {
  min-height: 260px;
  resize: vertical;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre;
  color: #102332;
  background: #f7fbfb;
}

.profile-grid,
.profile-form {
  display: grid;
  gap: 12px;
}

.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.profile-overview-panel {
  display: grid;
  gap: 18px;
}

.profile-merged-content {
  align-items: start;
}

.profile-merged-section {
  min-width: 0;
}

.profile-merged-section > h2:first-child {
  margin-top: 0;
}

.profile-merged-section > .toolbar {
  align-items: flex-start;
}

.emails-overview-panel {
  display: grid;
  gap: 18px;
}

.emails-overview-head {
  max-width: 900px;
}

.emails-overview-head h2 {
  margin-bottom: 8px;
}

.emails-overview-head p {
  max-width: 680px;
}

.emails-merged-content {
  align-items: start;
}

.emails-overview-panel > .emails-merged-content > .panel {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
}

.emails-automation-panel {
  margin-top: 0;
}

.profile-photo-panel {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.profile-photo-panel img {
  width: 140px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.profile-photo-panel.personal-photo img {
  aspect-ratio: 1;
  border-radius: 50%;
}

.member-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.member-card > .row-actions {
  grid-column: 1 / -1;
}

.member-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.install-grid button {
  min-height: 44px;
  white-space: normal;
}

.readonly-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.readonly-field strong {
  color: var(--ink);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.8rem;
  color: var(--teal-dark);
}

.stat span {
  font-weight: 800;
}

.stat p {
  margin: 6px 0 0;
}

.muted {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 12px;
}

.item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(28, 48, 52, 0.04);
}

.item p {
  margin-bottom: 6px;
}

.item.is-muted {
  background: #f7f8f8;
  border-color: #d8dfdf;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.tag.urgent {
  background: #ffe3df;
  color: var(--red);
}

.tag.vote {
  background: #e6eefb;
  color: var(--blue);
}

.tag.document {
  background: var(--mint);
  color: var(--teal-dark);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.search {
  width: clamp(260px, 42vw, 680px);
  min-width: min(100%, 260px);
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

select.search {
  min-height: 42px;
}

.wide-select {
  width: min(680px, 100%);
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented button {
  border: 0;
  min-height: 38px;
  padding: 0 12px;
  background: white;
}

.segmented button.active {
  background: var(--teal);
  color: white;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-2);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.question-list {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding-left: 22px;
}

.question-list li {
  color: var(--ink);
}

.vote-question-stats {
  padding-left: 20px;
}

.vote-question-stats li {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.vote-question-stats li:last-child {
  border-bottom: 0;
}

.vote-question-form {
  display: grid;
  gap: 12px;
}

.votes-dashboard {
  display: grid;
  gap: 18px;
}

.vote-filter-stack {
  display: grid;
  gap: 10px;
  width: min(680px, 100%);
  min-width: min(100%, 360px);
}

.vote-section-block {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.vote-section-block.history {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.vote-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.vote-row > .vote-list {
  min-width: 0;
}

.compact-toolbar {
  align-items: end;
}

.vote-history-select {
  display: block;
  width: min(720px, 100%);
  margin-top: 10px;
}

.vote-inline-chart {
  display: grid;
  align-self: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.vote-inline-chart .vote-pie-wrap {
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

.vote-inline-chart .vote-pie {
  width: min(100%, 210px);
  justify-self: center;
}

.vote-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vote-summary-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f7fbfb 100%);
  box-shadow: var(--shadow-soft);
}

.vote-summary-card .card-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--panel-2);
}

.vote-summary-card strong {
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
}

.vote-summary-card span {
  color: var(--muted);
}

.vote-list {
  gap: 14px;
}

.vote-card {
  align-items: start;
  gap: 18px;
  padding: 18px;
}

.vote-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.vote-type-box {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.vote-type-box strong {
  color: var(--teal-dark);
}

.vote-type-box span {
  color: var(--muted);
}

.vote-chart-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.vote-pie-wrap {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.vote-pie {
  display: grid;
  place-items: center;
  width: min(100%, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(23, 77, 87, 0.14), var(--shadow-soft);
}

.vote-pie > div {
  display: grid;
  place-items: center;
  width: 54%;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 50%;
  text-align: center;
  background: #fff;
}

.vote-pie strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}

.vote-pie span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.vote-legend {
  display: grid;
  gap: 8px;
  width: 100%;
}

.vote-legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.vote-legend-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}

.vote-legend-item.yes::before {
  background: var(--teal);
}

.vote-legend-item.no::before {
  background: var(--red);
}

.vote-legend-item.abstain::before {
  background: var(--gold);
}

.compact-list {
  gap: 10px;
}

.message-thread {
  display: grid;
  gap: 12px;
}

.message-list {
  display: grid;
  gap: 12px;
}

.messages-panel {
  display: grid;
  gap: 16px;
}

.messages-toolbar {
  margin-bottom: 0;
}

.message-filter-select {
  justify-self: start;
  width: min(100%, 360px);
  margin-top: -6px;
  background: rgba(255, 255, 255, 0.92);
}

body.theme-cartoon_3d[data-view="messages"] .messages-toolbar {
  padding-right: min(300px, 38%);
}

body.theme-cartoon_3d[data-view="messages"] .message-filter-select {
  position: relative;
  z-index: 1;
}

.message-recipient-row {
  margin-top: 2px;
}

.message-recipient-card {
  min-width: 0;
  min-height: 160px;
}

.message-recipient-card h3 {
  color: currentColor;
}

.message-recipient-card p {
  color: rgba(255, 255, 255, 0.86);
}

body.theme-cartoon_3d .system-cards .message-recipient-card[data-system-icon="info"]::after {
  background-image: url("./assets/cartoon/icon-info.png?v=172");
}

body.theme-cartoon_3d .system-cards .message-recipient-card.public {
  background: linear-gradient(145deg, #65d881 0%, #42b96d 100%);
}

body.theme-cartoon_3d .system-cards .message-recipient-card.private {
  background: linear-gradient(145deg, #ffd85e 0%, #efb436 100%);
  color: #111;
}

body.theme-cartoon_3d .system-cards .message-recipient-card.private p {
  color: rgba(0, 0, 0, 0.72);
}

body.theme-cartoon_3d .system-cards .message-recipient-card.owner {
  background: linear-gradient(145deg, #777cea 0%, #5564cf 100%);
}

.message {
  max-width: 92%;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-2);
}

.message.own {
  justify-self: end;
  background: #e7f5ed;
}

.activities-overview-panel {
  display: grid;
  gap: 18px;
}

.activities-merged-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.activity-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}

.activities-merged-section {
  min-width: 0;
}

.activities-merged-section > h2:not(:first-child) {
  margin-top: 18px;
}

.activity-hours-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.message-head h3 {
  margin-bottom: 4px;
}

.conversation-thread {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--line);
}

.message-reply {
  padding: 10px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.message-reply.own {
  background: #eef8f2;
}

.message-reply .row-actions.compact {
  margin-top: 8px;
  justify-content: flex-start;
}

.vote-comment-replies {
  margin-top: 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.photo-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.photo-preview-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.photo-preview-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel-2);
  transition: transform 180ms ease, filter 180ms ease;
}

.photo-preview-button:hover img {
  filter: brightness(0.94);
  transform: scale(1.02);
}

.photo-card > div {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.text-link:hover {
  color: var(--teal);
}

.photo-preview {
  display: grid;
  gap: 14px;
  margin: 0;
}

.photo-preview img {
  width: min(100%, 980px);
  max-height: 72vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1f22;
}

.photo-preview figcaption {
  display: grid;
  gap: 10px;
}

.photo-preview figcaption p {
  margin: 6px 0 0;
  color: var(--muted);
}

.calendar-panel {
  display: grid;
  gap: 14px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.calendar-head h2 {
  margin-bottom: 4px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-month-input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.icon-only {
  width: 40px;
  padding: 0;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.day {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 126px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.day.is-clickable:hover {
  border-color: rgba(31, 111, 120, 0.5);
  box-shadow: 0 10px 22px rgba(31, 111, 120, 0.12);
  transform: translateY(-1px);
  cursor: pointer;
}

.day.is-empty {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.day.is-today {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(242, 184, 75, 0.28);
}

.day strong {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--panel-2);
}

.day.is-today strong {
  background: var(--gold);
  color: var(--nav);
}

.day-placeholder {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.event-dot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.event-dot > span:first-child {
  overflow-wrap: anywhere;
}

.event-actions {
  display: inline-flex;
  gap: 4px;
}

.event-dot button {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.76);
  color: var(--teal-dark);
}

.event-dot button svg {
  width: 15px;
  height: 15px;
}

.calendar-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.owner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.owner-table th,
.owner-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.owner-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-wrap th,
.table-wrap td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.detail-section,
.notice {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.detail-section h3,
.notice strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.notice p {
  margin: 0;
  color: var(--muted);
}

.log-filters {
  align-items: end;
}

.metadata-box {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1f22;
  color: #d9eeee;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.permission-matrix {
  display: grid;
  gap: 16px;
}

.permission-role {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.permission-role h3 {
  margin: 0 0 12px;
}

.communication-permissions {
  margin-top: 12px;
}

.permission-role input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.debt {
  color: var(--red);
  font-weight: 900;
}

.ok {
  color: var(--teal-dark);
  font-weight: 900;
}

.upload-note {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  color: var(--muted);
}

dialog {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

dialog:has(.photo-preview) {
  width: min(1040px, calc(100vw - 28px));
}

dialog.video-dialog {
  width: min(1120px, calc(100vw - 28px));
}

dialog::backdrop {
  background: rgba(17, 26, 25, 0.5);
}

.dialog-card {
  padding: 18px;
}

dialog.video-dialog .dialog-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 28px);
}

dialog.video-dialog #dialogBody {
  display: grid;
  align-items: center;
  min-height: 0;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 48px;
}

.password-field .password-toggle {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
}

.template-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.template-card textarea {
  min-height: 140px;
}

.legal-consent {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
}

.legal-consent summary {
  cursor: pointer;
  font-weight: 700;
}

.legal-text {
  max-height: 220px;
  margin-top: 10px;
  overflow: auto;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
}

.consent-check input {
  width: auto;
  margin-top: 3px;
}

.compact-check {
  align-items: center;
  padding: 8px 10px;
  background: #f8fbfb;
}

.compact-check input {
  margin-top: 0;
}

.form-warning {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid #f1b7a6;
  border-radius: 8px;
  background: #fff3ef;
  color: #8a2f16;
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-editor {
  min-height: 360px;
  font-family: inherit;
  line-height: 1.5;
}

.finance-chart-shell {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-areas:
    "ylabel chart"
    "scale chart"
    ". xlabel";
  gap: 8px 12px;
  padding: 16px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.finance-chart {
  grid-area: chart;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to bottom, rgba(23, 77, 87, 0.12) 1px, transparent 1px);
  background-size: 100% 80px;
}

.finance-axis-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.finance-axis-title.y-axis {
  grid-area: ylabel;
  align-self: start;
}

.finance-axis-title.x-axis {
  grid-area: xlabel;
  justify-self: center;
}

.finance-chart-scale {
  grid-area: scale;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 176px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.finance-year-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.finance-year-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.finance-bar {
  display: grid;
  gap: 8px;
  text-align: center;
  min-width: 0;
}

.finance-mini-bar {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.finance-mini-bar small {
  color: var(--muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 170px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  background: #eef4f3;
}

.finance-mini-bar .bar-track {
  height: 160px;
  padding: 6px;
}

.bar-track span {
  width: min(54px, 70%);
  min-height: 8px;
  border-radius: 7px 7px 2px 2px;
  background: var(--teal);
}

.bar-track span.vote {
  background: var(--gold);
}

.bar-track span.urgent {
  background: var(--red);
}

.bar-track span.document {
  background: var(--teal-dark);
}

.finance-mini-bar .bar-track span {
  width: 100%;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.chart-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legend-box {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--teal);
}

.legend-box.document {
  background: var(--teal-dark);
}

.legend-box.vote {
  background: var(--gold);
}

.legend-box.urgent {
  background: var(--red);
}

.finance-line-panel {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.finance-line-chart {
  display: block;
  width: 100%;
  min-height: 260px;
  margin-top: 8px;
}

.line-grid line {
  stroke: rgba(23, 77, 87, 0.14);
  stroke-width: 1;
}

.line-grid text,
.year-labels text,
.axis-label {
  fill: var(--muted);
  font-size: 12px;
}

.line-grid text {
  text-anchor: end;
}

.year-labels text {
  text-anchor: middle;
}

.axis-line {
  stroke: var(--line);
  stroke-width: 1.4;
}

.axis-label {
  font-weight: 700;
  text-transform: uppercase;
  text-anchor: middle;
}

.finance-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.finance-line.document {
  stroke: var(--teal-dark);
}

.finance-line.vote {
  stroke: var(--gold);
}

.finance-line.urgent {
  stroke: var(--red);
}

.finance-merged-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 24px;
}

.finance-merged-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.finance-merged-section > .compact-toolbar {
  align-items: flex-start;
  min-height: 70px;
}

.finance-point {
  fill: #fff;
  stroke: var(--teal);
  stroke-width: 2.5;
}

.finance-point.document {
  stroke: var(--teal-dark);
}

.finance-point.vote {
  stroke: var(--gold);
}

.finance-point.urgent {
  stroke: var(--red);
}

.notification-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 980px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }

  .app-shell:not(.mobile-view-open) .main {
    display: none;
  }

  .app-shell.mobile-view-open .sidebar {
    display: none;
  }

  .app-shell.mobile-view-open .main {
    display: block;
  }

  .app-shell.mobile-view-open .mobile-menu-back {
    display: inline-grid;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .app-shell.mobile-view-open .topbar {
    padding-top: 58px;
  }

  .overview-hero,
  .legal-banner,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .building-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .building-card img {
    width: 120px;
  }

  .grid.stats,
  .grid.two,
  .grid.wide-left,
  .grid.three,
  .service-grid,
  .profile-grid,
  .profile-merged-content,
  .emails-merged-content {
    grid-template-columns: 1fr;
  }

  .vote-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vote-filter-stack {
    min-width: 100%;
  }

  .vote-inline-chart .vote-pie-wrap {
    grid-template-columns: 1fr;
  }

  .vote-row {
    grid-template-columns: 1fr;
  }

  .profile-photo-panel {
    grid-template-columns: 1fr;
  }

  .profile-photo-panel img {
    width: 100%;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .finance-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-chart-shell {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .finance-merged-content {
    grid-template-columns: 1fr;
  }

  .activities-merged-content,
  .activity-hours-grid {
    grid-template-columns: 1fr;
  }

  .message-recipient-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main,
  .sidebar {
    padding: 16px;
  }

  .app-shell:not(.mobile-view-open) .sidebar {
    min-height: 100vh;
  }

  .app-shell:not(.mobile-view-open) .nav-list {
    gap: 10px;
  }

  .app-shell:not(.mobile-view-open) .nav-item {
    min-height: 50px;
  }

  .item {
    display: grid;
  }

  .building-card {
    grid-template-columns: 1fr;
  }

  .building-card img {
    width: 100%;
    height: 150px;
  }

  .message {
    max-width: 100%;
  }

  .vote-summary-grid {
    grid-template-columns: 1fr;
  }

  .vote-card-head {
    display: grid;
  }

  .compact-toolbar {
    align-items: stretch;
  }

  .search,
  .wide-select {
    width: 100%;
    min-width: 0;
  }

  .vote-pie {
    width: min(100%, 200px);
  }

  .calendar-weekdays {
    display: none;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .day.is-empty {
    display: none;
  }

  .notification-row {
    grid-template-columns: 1fr;
  }

  .service-values {
    grid-template-columns: 1fr;
  }

  .finance-chart {
    grid-template-columns: 1fr;
  }

  .finance-chart-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ylabel"
      "chart"
      "xlabel";
  }

  .finance-chart-scale {
    display: none;
  }
}
