.owner-view {
  display: none;
}
.owner-view.active {
  display: block;
}
.owner-mark {
  background: linear-gradient(135deg, #b99a5b, #ead6a1) !important;
  color: #172238 !important;
}
.owner-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  border: 1px solid rgba(190, 158, 91, 0.42);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 20%, rgba(204, 169, 96, 0.19), transparent 34%),
    linear-gradient(125deg, #111d31, #1c3151 60%, #213d63);
  color: #fff;
  box-shadow: 0 22px 50px rgba(17, 29, 49, 0.18);
}
.owner-hero small,
.owner-detail-head small,
.owner-section-title small,
.owner-tenants header small,
.owner-dialog header small {
  color: #cdb273;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.owner-hero h2 {
  margin: 9px 0 8px;
  font-size: 30px;
}
.owner-hero p {
  margin: 0;
  color: #c7d1df;
}
.owner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.owner-actions .secondary {
  color: #fff;
  border-color: #6680a3;
  background: rgba(255, 255, 255, 0.04);
}
.owner-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.owner-metrics article,
.owner-account-grid article {
  padding: 20px;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 45, 72, 0.055);
}
.owner-metrics span,
.owner-account-grid span {
  display: block;
  color: #778397;
  font-size: 13px;
}
.owner-metrics strong,
.owner-account-grid strong {
  display: block;
  margin: 7px 0 2px;
  font-size: 28px;
  color: #172238;
}
.owner-metrics small {
  color: #9aa4b2;
}
.owner-layout {
  display: grid;
  grid-template-columns: minmax(320px, 36%) minmax(0, 64%);
  gap: 18px;
  min-height: 560px;
}
.owner-tenants,
.owner-detail {
  overflow: hidden;
  border-radius: 20px !important;
}
.owner-tenants header {
  padding: 24px;
  border-bottom: 1px solid #e4e9f0;
}
.owner-tenants h2 {
  margin: 5px 0 16px;
}
.owner-tenants input {
  width: 100%;
  box-sizing: border-box;
}
.owner-tenant-list {
  padding: 10px;
}
.owner-tenant {
  display: grid;
  width: 100%;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.owner-tenant:hover {
  background: #f3f6fa;
}
.owner-tenant.active {
  background: linear-gradient(120deg, #edf3fb, #f9f6ed);
  box-shadow: inset 3px 0 #b79550;
}
.owner-tenant > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #192b47;
  color: #fff;
  font-style: normal;
  font-weight: 800;
}
.owner-tenant span b,
.owner-tenant span small {
  display: block;
}
.owner-tenant span small {
  margin-top: 3px;
  color: #8490a1;
}
.owner-tenant > em {
  font-style: normal;
  color: #66758a;
  font-size: 12px;
}
.owner-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-bottom: 1px solid #e3e8ef;
}
.owner-detail-head h2 {
  margin: 6px 0;
  font-size: 26px;
}
.owner-detail-head p {
  margin: 0;
  color: #8792a1;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.owner-status {
  height: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e5f6ef;
  color: #13845e;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.owner-account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px 30px 12px;
}
.owner-account-grid article {
  box-shadow: none;
  background: #f7f9fc;
}
.owner-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 30px 20px;
}
.owner-route {
  margin: 0 30px 30px;
  border: 1px solid #e0e6ee;
  border-radius: 16px;
  overflow: hidden;
}
.owner-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: #f7f9fc;
}
.owner-section-title h3 {
  margin: 5px 0 0;
}
.owner-section-title > b {
  color: #a27b32;
}
.owner-provider-list {
  padding: 8px;
}
.owner-provider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
}
.owner-provider.active {
  background: #fbf7ec;
}
.owner-provider > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9eabbc;
}
.owner-provider.active > i {
  background: #b8954d;
  box-shadow: 0 0 0 5px rgba(184, 149, 77, 0.13);
}
.owner-provider span {
  flex: 1;
}
.owner-provider span b,
.owner-provider span small {
  display: block;
}
.owner-provider span small {
  margin-top: 4px;
  color: #7c8797;
}
.owner-provider em {
  font-style: normal;
  color: #99732d;
  font-size: 12px;
  font-weight: 700;
}
.owner-empty {
  padding: 38px;
  text-align: center;
  color: #8b96a6;
}
.owner-detail-empty {
  display: grid;
  place-items: center;
  min-height: 420px;
}
.owner-detail-empty span {
  margin-top: -175px;
}
.owner-dialog-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 15, 27, 0.68);
  backdrop-filter: blur(10px);
}
.owner-dialog {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(205, 178, 115, 0.45);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.35);
}
.owner-dialog header {
  display: flex;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid #e5e9ef;
}
.owner-dialog header h2 {
  margin: 7px 0;
}
.owner-dialog header p {
  margin: 0;
  color: #7d8897;
}
.owner-dialog-close {
  border: 0;
  background: transparent;
  font-size: 30px;
  color: #748095;
  cursor: pointer;
}
.owner-dialog-body {
  display: grid;
  gap: 18px;
  padding: 28px 32px;
}
.owner-dialog label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #36445a;
}
.owner-dialog label small {
  font-weight: 400;
  color: #7e8998;
}
.owner-dialog input,
.owner-dialog select,
.owner-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d6e0eb;
  border-radius: 12px;
  background: #f8fafc;
  color: #17263b;
  box-shadow: 0 1px 2px rgba(15, 37, 64, 0.025) inset;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.owner-dialog input,
.owner-dialog select {
  min-height: 48px;
  padding: 0 14px;
}
.owner-dialog textarea {
  padding: 13px 14px;
  line-height: 1.55;
  resize: vertical;
}
.owner-dialog input:hover,
.owner-dialog select:hover,
.owner-dialog textarea:hover {
  border-color: #b9c9dc;
  background: #fff;
}
.owner-dialog input:focus,
.owner-dialog select:focus,
.owner-dialog textarea:focus {
  border-color: #3b82f6 !important;
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.owner-dialog input::placeholder,
.owner-dialog textarea::placeholder {
  color: #9aa7b7;
}
.owner-dialog textarea {
  min-height: 100px;
}
.owner-password-control {
  position: relative;
  display: block;
}
.owner-password-control input {
  padding-right: 74px;
}
.owner-password-toggle {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 58px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #eaf1fa;
  color: #315b91;
  font-size: 12px;
  font-weight: 700;
}
.owner-dialog-feedback {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff4f4;
  color: #9f252f;
}
.owner-dialog-feedback[hidden] {
  display: none;
}
.owner-dialog-feedback span {
  color: #b0444d;
  font-size: 12px;
  line-height: 1.55;
}
.owner-api-blocker {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 30px 18px;
  padding: 13px 15px;
  border: 1px solid #eadbb9;
  border-radius: 12px;
  background: #fdf9ef;
  color: #755a25;
  font-size: 12px;
  line-height: 1.55;
}
.owner-api-blocker b {
  flex: 0 0 auto;
}
.owner-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
}
.owner-form-grid > label {
  align-content: start;
}
.owner-form-grid > label > input,
.owner-form-grid > label > select {
  height: 48px;
}
.owner-confirm {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  padding: 16px;
  border: 1px solid #eadcb9;
  border-radius: 14px;
  background: #fcf9f1;
}
.owner-confirm input {
  width: auto;
  margin-top: 4px;
}
.owner-confirm span b,
.owner-confirm span small {
  display: block;
}
.owner-confirm span small {
  margin-top: 4px;
}
.owner-dialog footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 32px;
  border-top: 1px solid #e5e9ef;
  background: #fff;
}
@media (max-width: 1100px) {
  .owner-layout {
    grid-template-columns: 1fr;
  }
  .owner-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .owner-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .owner-metrics,
  .owner-account-grid,
  .owner-form-grid {
    grid-template-columns: 1fr;
  }
  .owner-actions {
    width: 100%;
  }
  .owner-actions button {
    flex: 1;
  }
  .owner-detail-actions {
    justify-content: stretch;
  }
  .owner-detail-actions button {
    flex: 1 1 100%;
  }
}
