/* TANCO PROPERTY | Portal UX refinement 2026-11-25
   Design source: Tanco Residential Editorial (navy #10263F, teal #087F8C).
   Visual-only and scoped to the existing Tanco Core portal. No mock figures.
   Adapted to owner's clean/colorful project-management reference, not copied.
*/

/* Remove only the redundant upper/right brand. Keep Home, Product tour, Help Center. */
body:has(.tp-portal-return-header) .tp-portal-return-inner > .tp-brand {
  display:none !important;
}
body:has(.tp-portal-return-header) .tp-portal-return-inner {
  justify-content:flex-end !important;
  align-items:center !important;
}
body:has(.tp-portal-return-header) .tp-portal-return-links {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:clamp(12px,1.65vw,25px) !important;
  width:auto;
}
body:has(.tp-portal-return-header) .tp-portal-return-links > a {
  color:#10263F;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  text-underline-offset:4px;
}
body:has(.tp-portal-return-header) .tp-portal-return-links > a:hover {
  color:#087F8C;
  text-decoration:underline;
}
body:has(.tp-portal-return-header) .tp-portal-return-links > a:focus-visible {
  outline:3px solid #087F8C;
  outline-offset:4px;
  border-radius:4px;
}
@media (min-width:681px) {
  body:has(.tp-portal-return-header) .tp-portal-return-header,
  body:has(.tp-portal-return-header) .tp-portal-return-inner {
    height:54px !important;
    min-height:54px !important;
  }
  body:has(.tp-portal-return-header) .tp-portal-return-header {
    background:#FFFFFF;
    border-bottom:1px solid #DCE7E7;
  }
}
@media (max-width:680px) {
  body:has(.tp-portal-return-header) .tp-portal-return-header,
  body:has(.tp-portal-return-header) .tp-portal-return-inner {
    min-height:54px !important;
    height:auto !important;
  }
  body:has(.tp-portal-return-header) .tp-portal-return-inner {
    display:flex !important;
    flex-direction:row !important;
    padding:8px 14px !important;
    justify-content:center !important;
  }
  body:has(.tp-portal-return-header) .tp-portal-return-links {
    flex-wrap:wrap !important;
    justify-content:center !important;
    gap:8px 17px !important;
  }
  body:has(.tp-portal-return-header) .tp-portal-return-links a {
    font-size:12px;
    min-height:36px;
    display:inline-flex;
    align-items:center;
  }
}

/* Unified real-data application surface. Core remains the sole renderer. */
body.tpc-app-body #tpc-app .tpc-shell {
  --tpc-ui-teal:#087F8C;
  --tpc-ui-navy:#10263F;
  --tpc-ui-ink:#172B42;
  --tpc-ui-muted:#536579;
  --tpc-ui-surface:#FFFFFF;
  --tpc-ui-border:#DCE7E7;
  --tpc-ui-soft:#F6F8F7;
  color:#172B42;
  background:#F6F8F7;
  font-family:"Segoe UI",sans-serif;
  min-width:0;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-main {
  background:#F6F8F7 !important;
  min-width:0;
}

/* Reference-inspired emerald/teal left rail, still rooted in Tanco brand. */
body.tpc-app-body #tpc-app .tpc-shell .tpc-sidebar {
  background:linear-gradient(162deg,#087F8C 0%,#087F8C 33%,#10263F 99%) !important;
  color:#FFFFFF;
  border-right:1px solid rgba(255,255,255,.16);
  box-shadow:3px 0 24px rgba(16,38,63,.07);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-sidebar-context,
body.tpc-app-body #tpc-app .tpc-shell .tpc-nav-section-label {
  color:#FFFFFF !important;
  opacity:.78;
  letter-spacing:.11em;
  font-size:10px;
  font-weight:800;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-sidebar-context {
  margin-top:3px;
  margin-bottom:12px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-navigation {
  gap:5px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-nav-section {
  padding-bottom:10px;
  margin-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-nav-section:last-child {
  border-bottom:0;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-nav-link {
  display:flex;
  align-items:center;
  gap:11px;
  min-height:43px;
  padding:9px 11px;
  border:1px solid transparent;
  border-radius:9px;
  font-size:13px;
  font-weight:650;
  color:#FFFFFF !important;
  background:transparent;
  text-align:left;
  transition:background-color .16s ease, transform .16s ease, border-color .16s ease;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-nav-link svg {
  opacity:.90;
  color:#FFFFFF;
  flex:0 0 auto;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-nav-link:hover {
  background:rgba(255,255,255,.15) !important;
  border-color:rgba(255,255,255,.13);
  text-decoration:none;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-nav-link.is-active {
  background:rgba(255,255,255,.23) !important;
  border-color:rgba(255,255,255,.20);
  box-shadow:inset 3px 0 0 #FFFFFF,0 4px 13px rgba(7,26,46,.10);
  font-weight:800;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-nav-link.is-active svg {
  opacity:1;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-org-select {
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.22);
  border-radius:10px;
  min-height:49px;
  margin-bottom:15px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-org-select select {
  color:#FFFFFF !important;
  background:transparent;
  font-size:13px;
  font-weight:700;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-org-select select option {
  background:#FFFFFF;
  color:#10263F;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-org-avatar {
  background:rgba(255,255,255,.25) !important;
  color:#FFFFFF !important;
  border:1px solid rgba(255,255,255,.22);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-protection {
  border:1px solid rgba(255,255,255,.26);
  background:rgba(255,255,255,.12) !important;
  box-shadow:none;
  border-radius:10px;
  padding:12px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-protection :is(strong,span) {
  color:#FFFFFF !important;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-logout {
  margin-top:7px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-brand-lockup-words {
  min-width:0;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-sidebar-brand.tpc-logo-installed.tpc-brand-lockup {
  border-bottom-color:rgba(255,255,255,.22);
}

/* Short, helpful application header below the slim external link bar. */
body.tpc-app-body #tpc-app .tpc-shell .tpc-topbar {
  min-height:62px;
  padding:10px clamp(17px,2.1vw,28px);
  background:#FFFFFF !important;
  border-bottom:1px solid #DCE7E7;
  box-shadow:0 2px 8px rgba(16,38,63,.025);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-breadcrumb {
  color:#536579;
  font-size:12px;
  font-weight:600;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-breadcrumb strong {
  color:#10263F;
  font-weight:800;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-live-badge {
  background:rgba(8,127,140,.08);
  border:1px solid #DCE7E7;
  color:#10263F;
  border-radius:999px;
  padding:7px 11px;
  font-size:11px;
  font-weight:700;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-user-avatar {
  background:#087F8C !important;
  color:#FFFFFF !important;
  border:1px solid rgba(8,127,140,.28);
  border-radius:50%;
  box-shadow:0 0 0 3px rgba(8,127,140,.10);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-mode-switch {
  background:#F6F8F7;
  border:1px solid #DCE7E7;
  border-radius:9px;
  padding:3px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-mode-switch button {
  border-radius:7px;
  min-height:36px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-mode-switch .is-selected {
  background:#087F8C;
  color:#FFFFFF;
}

/* Compact content to expose more practical information without scrolling. */
body.tpc-app-body #tpc-app .tpc-shell .tpc-content {
  max-width:1530px;
  padding:clamp(17px,1.9vw,26px) clamp(16px,2.15vw,30px) 28px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-page-heading {
  margin:5px 0 17px;
  align-items:center;
  gap:14px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-page-heading h2 {
  font-size:clamp(27px,2.35vw,36px);
  font-weight:800;
  line-height:1.11;
  color:#10263F;
  letter-spacing:-.035em;
  margin:3px 0 6px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-page-heading p {
  color:#536579;
  font-size:13px;
  line-height:1.55;
  margin:0;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-eyebrow {
  color:#087F8C;
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
  margin-bottom:4px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-section-heading {
  gap:12px;
  margin:5px 0 11px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-section-heading h3 {
  color:#10263F;
  font-size:17px;
  font-weight:800;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-space-top {
  margin-top:18px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-workspace-context {
  padding:12px 15px;
  margin-bottom:15px;
  border:1px solid #DCE7E7;
  border-left:3px solid #087F8C;
  border-radius:11px;
  background:#FFFFFF;
  box-shadow:0 5px 18px rgba(16,38,63,.035);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-workspace-context-icon {
  background:rgba(8,127,140,.12);
  color:#087F8C;
  border-radius:9px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-workspace-context-status {
  background:#F6F8F7;
  border:1px solid #DCE7E7;
  color:#536579;
  border-radius:7px;
  padding:7px 9px;
  line-height:1.35;
}

/* KPI cards: stronger typographic scale, meaningful color via one brand accent. */
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric-grid {
  gap:12px;
  margin-bottom:14px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric {
  position:relative;
  padding:16px 17px 15px;
  border:1px solid #DCE7E7;
  border-radius:13px;
  box-shadow:0 6px 18px rgba(16,38,63,.05);
  background:#FFFFFF;
  min-width:0;
  overflow:hidden;
  transition:box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric:hover {
  border-color:rgba(8,127,140,.35);
  box-shadow:0 8px 21px rgba(16,38,63,.07);
  transform:translateY(-1px);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric:before {
  content:"";
  position:absolute;
  height:3px;
  top:0;
  left:0;
  right:0;
  background:linear-gradient(90deg,#087F8C,rgba(8,127,140,.14));
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric-grid-primary>.tpc-metric:nth-child(2) {
  background:linear-gradient(145deg,#FFFFFF 55%,rgba(8,127,140,.07));
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric-grid-primary>.tpc-metric:nth-child(3) {
  background:linear-gradient(145deg,#FFFFFF 57%,rgba(16,38,63,.065));
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric-grid-primary>.tpc-metric:nth-child(4) {
  background:linear-gradient(145deg,#FFFFFF 55%,rgba(8,127,140,.09));
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric-icon {
  width:35px;
  height:35px;
  margin-bottom:9px;
  background:rgba(8,127,140,.11);
  color:#087F8C;
  border-radius:9px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric p {
  color:#536579;
  font-size:12px;
  font-weight:650;
  margin-bottom:5px;
  line-height:1.35;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric strong {
  display:block;
  color:#10263F;
  font-size:clamp(22px,2.2vw,31px);
  letter-spacing:-.04em;
  line-height:1.12;
  font-weight:800;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-metric span {
  color:#536579;
  font-size:11px;
  line-height:1.4;
  margin-top:6px;
}

/* Work priority and real organization header. */
body.tpc-app-body #tpc-app .tpc-shell .tpc-priority-banner {
  background:rgba(8,127,140,.075);
  border:1px solid #DCE7E7;
  border-left:4px solid #087F8C;
  border-radius:11px;
  margin:10px 0 15px;
  padding:12px 16px;
  box-shadow:none;
  gap:13px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-priority-icon {
  color:#087F8C;
  background:#FFFFFF;
  border:1px solid #DCE7E7;
  border-radius:9px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-priority-banner h3 {
  color:#10263F;
  font-size:15px;
  margin:2px 0 4px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-priority-banner p {
  color:#536579;
  font-size:12px;
  line-height:1.5;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-command-hero {
  background:linear-gradient(110deg,#10263F 0%,#10263F 49%,#087F8C 100%);
  border:1px solid rgba(255,255,255,.15);
  border-radius:15px;
  box-shadow:0 12px 26px rgba(16,38,63,.12);
  margin:12px 0 16px;
  padding:clamp(18px,2.2vw,25px) clamp(19px,2.5vw,29px);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-command-hero h3 {
  color:#FFFFFF;
  font-size:clamp(24px,2.45vw,33px);
  margin:5px 0 4px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-command-hero p {
  color:#FFFFFF;
  font-size:12px;
  line-height:1.45;
  opacity:.94;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-command-hero .tpc-btn-primary {
  color:#FFFFFF;
  border:1px solid rgba(255,255,255,.18);
  background:#087F8C;
  box-shadow:none;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-command-hero .tpc-command-link {
  color:#FFFFFF;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-command-visual {
  opacity:.84;
}

/* Guide and task shortcuts: consistent with the project-management reference. */
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide,
body.tpc-app-body #tpc-app .tpc-shell .tpc-owner-setup {
  background:#FFFFFF;
  border:1px solid #DCE7E7;
  border-radius:13px;
  padding:clamp(16px,1.9vw,23px);
  box-shadow:0 7px 20px rgba(16,38,63,.045);
  margin:11px 0 16px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide h3,
body.tpc-app-body #tpc-app .tpc-shell .tpc-owner-setup h3 {
  color:#10263F;
  font-size:clamp(17px,1.6vw,21px);
  margin:3px 0 5px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-head {
  gap:13px;
  margin-bottom:13px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-head p {
  font-size:12px;
  color:#536579;
  line-height:1.5;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-layout {
  gap:14px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-steps {
  gap:8px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-step,
body.tpc-app-body #tpc-app .tpc-shell .tpc-owner-step {
  border:1px solid #DCE7E7;
  background:#F6F8F7;
  border-radius:9px;
  min-height:60px;
  padding:11px 12px;
  text-align:left;
  transition:border-color .16s ease, background-color .16s ease, transform .16s ease;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-step:hover,
body.tpc-app-body #tpc-app .tpc-shell .tpc-owner-step:hover {
  border-color:rgba(8,127,140,.40);
  background:rgba(8,127,140,.075);
  transform:translateY(-1px);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-number,
body.tpc-app-body #tpc-app .tpc-shell .tpc-step-number {
  border-radius:8px;
  background:rgba(8,127,140,.12);
  color:#087F8C;
  font-size:12px;
  font-weight:800;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-art {
  margin:0;
  border:1px solid #DCE7E7;
  border-radius:10px;
  overflow:hidden;
  background:#F6F8F7;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-art img {
  width:100%;
  max-width:100%;
  object-fit:cover;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-art figcaption {
  font-size:10px;
  color:#536579;
  background:#FFFFFF;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-quick-workspace {
  margin:14px 0 16px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-quick-workspace-grid {
  gap:11px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-quick-workspace-grid > button {
  background:#FFFFFF;
  border:1px solid #DCE7E7;
  box-shadow:0 5px 16px rgba(16,38,63,.045);
  border-radius:10px;
  padding:15px 14px;
  min-height:76px;
  transition:box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-quick-workspace-grid > button:hover {
  border-color:#087F8C;
  box-shadow:0 9px 18px rgba(16,38,63,.09);
  transform:translateY(-2px);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-quick-icon {
  background:rgba(8,127,140,.10);
  color:#087F8C;
  border-radius:9px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-quick-workspace-grid strong {
  color:#10263F;
  font-size:13px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-quick-arrow {
  color:#087F8C;
}

/* Product content cards; hierarchy rather than walls of identical boxes. */
body.tpc-app-body #tpc-app .tpc-shell .tpc-panel,
body.tpc-app-body #tpc-app .tpc-shell .tpc-occupancy-panel {
  border:1px solid #DCE7E7;
  border-radius:12px;
  background:#FFFFFF;
  box-shadow:0 6px 18px rgba(16,38,63,.045);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-panel-spacious {
  padding:clamp(16px,1.8vw,23px);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-panel h3 {
  color:#10263F;
  font-size:18px;
  font-weight:800;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-command-grid {
  gap:13px;
  margin-bottom:15px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-command-chart {
  border-top:3px solid #087F8C;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-panel-head {
  margin-bottom:11px;
  gap:11px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-chart {
  background:repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 24%,
    rgba(83,101,121,.085) calc(24% + 1px),
    transparent calc(24% + 2px)
  );
  border-radius:9px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-chart-billed {
  background:#087F8C;
  border-radius:5px 5px 0 0;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-chart-settled {
  background:#10263F;
  border-radius:5px 5px 0 0;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-chart-empty {
  border:1px dashed #DCE7E7;
  background:#F6F8F7;
  border-radius:10px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-trend-controls button.is-active {
  background:#087F8C;
  color:#FFFFFF;
  border-color:#087F8C;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-task {
  background:transparent;
  border-bottom:1px solid #DCE7E7;
  padding:12px 5px;
  min-height:60px;
  transition:background-color .16s ease;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-task:hover {
  background:rgba(8,127,140,.055);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-task-icon {
  background:rgba(8,127,140,.10);
  color:#087F8C;
  border-radius:9px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-task-alert .tpc-task-icon {
  background:rgba(16,38,63,.10);
  color:#10263F;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-task-content strong {
  color:#10263F;
  font-weight:750;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-task-content small {
  color:#536579;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-occupancy-panel {
  padding:clamp(16px,1.7vw,23px);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-occupancy-ring {
  box-shadow:0 0 0 4px rgba(8,127,140,.055);
}

/* Property portfolio cards and accessible tables. */
body.tpc-app-body #tpc-app .tpc-shell .tpc-portfolio-grid {
  gap:12px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-portfolio-card {
  border:1px solid #DCE7E7;
  border-radius:12px;
  box-shadow:0 6px 16px rgba(16,38,63,.05);
  overflow:hidden;
  transition:box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-portfolio-card:hover {
  border-color:#087F8C;
  box-shadow:0 9px 21px rgba(16,38,63,.085);
  transform:translateY(-2px);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-portfolio-meta {
  padding:14px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-table-wrap {
  overflow:auto;
  border:1px solid #DCE7E7;
  border-radius:9px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-table-wrap table {
  border-collapse:collapse;
  width:100%;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-table-wrap thead {
  background:rgba(8,127,140,.085);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-table-wrap th {
  color:#10263F;
  font-size:11px;
  text-transform:none;
  font-weight:800;
  padding:12px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-table-wrap td {
  padding:12px;
  color:#172B42;
  border-bottom:1px solid #DCE7E7;
  font-size:12px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-table-wrap tbody tr:hover {
  background:rgba(8,127,140,.055);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-record-link {
  color:#087F8C;
  font-weight:750;
}

/* Resident and parking views receive the same interface quality. */
body.tpc-app-body #tpc-app .tpc-shell .tpc-resident-hero {
  background:linear-gradient(112deg,#10263F,#087F8C);
  border-radius:14px;
  box-shadow:0 10px 26px rgba(16,38,63,.12);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-resident-hero h3,
body.tpc-app-body #tpc-app .tpc-shell .tpc-resident-hero .tpc-resident-balance {
  color:#FFFFFF;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-resident-next {
  border:1px solid #DCE7E7;
  border-left:3px solid #087F8C;
  background:#FFFFFF;
  border-radius:12px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-resident-overview-strip > div {
  background:#FFFFFF;
  border:1px solid #DCE7E7;
  border-radius:11px;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-board {
  background:#FFFFFF;
  border:1px solid #DCE7E7;
  border-radius:13px;
  box-shadow:0 6px 18px rgba(16,38,63,.045);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-board-top h3 {
  color:#10263F;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-slot {
  transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-slot:hover {
  transform:translateY(-2px);
  box-shadow:0 5px 13px rgba(16,38,63,.09);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-slot:focus-visible {
  outline:3px solid #087F8C;
  outline-offset:3px;
}
body.tpc-app-body #tpc-app .tpc-shell :is(.tpc-btn-primary, .tpc-btn-outline) {
  min-height:40px;
  border-radius:8px;
  font-weight:750;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-btn-primary {
  background:#087F8C;
  border-color:#087F8C;
  color:#FFFFFF;
  box-shadow:0 4px 11px rgba(8,127,140,.13);
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-btn-primary:hover {
  background:#10263F;
  border-color:#10263F;
  color:#FFFFFF;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-btn-outline {
  background:#FFFFFF;
  color:#10263F;
  border:1px solid #DCE7E7;
}
body.tpc-app-body #tpc-app .tpc-shell .tpc-btn-outline:hover {
  border-color:#087F8C;
  color:#087F8C;
  background:#FFFFFF;
}
body.tpc-app-body #tpc-app .tpc-shell :is(input,select,textarea) {
  border-color:#DCE7E7;
  border-radius:8px;
  color:#172B42;
}
body.tpc-app-body #tpc-app .tpc-shell :is(input,select,textarea):focus {
  border-color:#087F8C;
}
body.tpc-app-body #tpc-app .tpc-shell :is(button,a,input,select,textarea):focus-visible {
  outline:3px solid #087F8C;
  outline-offset:3px;
}
body.tpc-app-body #tpc-app .tpc-shell button[disabled],
body.tpc-app-body #tpc-app .tpc-shell [aria-disabled="true"] {
  cursor:not-allowed;
}

/* Responsive consistency: defer to existing working mobile drawer/navigation. */
@media (min-width:1200px) {
  body.tpc-app-body #tpc-app .tpc-shell .tpc-metric-grid-primary {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media (min-width:681px) and (max-width:1199px) {
  body.tpc-app-body #tpc-app .tpc-shell .tpc-metric-grid-primary {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-content {
    padding-inline:16px;
  }
}
@media (max-width:980px) {
  body.tpc-app-body #tpc-app .tpc-shell .tpc-sidebar .tpc-nav-link {
    padding:9px 9px;
    font-size:12px;
    gap:8px;
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-guide-layout {
    gap:11px;
  }
}
@media (max-width:680px) {
  body.tpc-app-body #tpc-app .tpc-shell .tpc-sidebar {
    background:linear-gradient(160deg,#087F8C,#10263F) !important;
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-content {
    padding:16px 14px 24px;
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-topbar {
    min-height:58px;
    padding:9px 13px;
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-page-heading h2 {
    font-size:clamp(24px,6vw,31px);
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-metric-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-metric {
    padding:13px 12px;
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-metric strong {
    font-size:clamp(18px,4.8vw,25px);
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-command-hero {
    padding:19px;
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-guide,
  body.tpc-app-body #tpc-app .tpc-shell .tpc-owner-setup {
    padding:14px;
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-quick-workspace-grid {
    grid-template-columns:1fr;
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-workspace-context {
    flex-wrap:wrap;
  }
  body.tpc-app-body #tpc-app .tpc-shell .tpc-workspace-context-status {
    max-width:100%;
    white-space:normal;
  }
}
@media (max-width:390px) {
  body.tpc-app-body #tpc-app .tpc-shell .tpc-metric-grid {
    grid-template-columns:1fr;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.tpc-app-body #tpc-app .tpc-shell :is(
    .tpc-metric,.tpc-quick-workspace-grid>button,.tpc-portfolio-card,
    .tpc-guide-step,.tpc-owner-step,.tpc-slot,.tpc-nav-link
  ) {
    transition:none !important;
    transform:none !important;
  }
}
