@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #edf0f3;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --border: #d9dee5;
  --text: #17202a;
  --muted: #687384;
  --sidebar: #101820;
  --sidebar-soft: #172331;
  --accent: #d4a017;
  --accent-soft: #fff7db;
  --success: #1f8f4d;
  --success-bg: #e8f6ee;
  --danger: #bd3131;
  --danger-hover: #982727;
  --primary: #204c7a;
  --primary-hover: #183c61;
  --shadow: 0 10px 24px rgba(16, 24, 32, 0.08);
  --radius: 8px;
  --font: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

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

[hidden] {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  background: #ffffff;
}

.login-panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(520px, 1fr);
  background: #ffffff;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 560px);
  padding: 56px 72px;
  margin: 0 auto;
}

.login-logo {
  width: 132px;
  height: 118px;
  object-fit: contain;
  margin: 0 0 112px;
}

.login-copy h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  color: #07111f;
}

.login-copy p {
  margin: 0;
  color: #536278;
  font-size: 14px;
  line-height: 1.6;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.sr-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sr-field input {
  min-height: 56px;
  border: 0;
  border-radius: 9px;
  background: #f8f8fb;
  color: #182235;
  padding: 0 20px;
  font-size: 15px;
}

.sr-field input:focus {
  box-shadow: 0 0 0 4px rgba(37, 80, 255, 0.12);
  border-color: transparent;
}

.password-field {
  position: relative;
}

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

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #5f6e83;
  cursor: pointer;
  font-weight: 800;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #07111f;
  font-size: 15px;
}

.remember-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #2452ff;
}

.login-form .btn {
  min-height: 56px;
  border-radius: 9px;
  background: #2452ff;
  font-size: 15px;
}

.login-form .btn:hover:not(:disabled) {
  background: #1d45d9;
}

.discord-btn {
  min-height: 56px;
  border-radius: 9px;
  background: #5865f2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.discord-btn:hover {
  background: #4b57d6;
}

.credit {
  margin: auto 0 0;
  color: #07111f;
  font-style: italic;
}

.credit a {
  color: #2452ff;
  text-decoration: none;
}

.form-message {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  margin: 0;
}

.login-showcase {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 160, 23, 0.18), transparent 18%),
    linear-gradient(135deg, #141a20, #1a2027);
  color: #ffffff;
}

.login-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.04) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.04) 87.5%, rgba(255,255,255,0.04)),
    linear-gradient(150deg, rgba(255,255,255,0.04) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.04) 87.5%, rgba(255,255,255,0.04)),
    linear-gradient(30deg, rgba(255,255,255,0.04) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.04) 87.5%, rgba(255,255,255,0.04)),
    linear-gradient(150deg, rgba(255,255,255,0.04) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.04) 87.5%, rgba(255,255,255,0.04));
  background-position: 0 0, 0 0, 32px 56px, 32px 56px;
  background-size: 64px 112px;
}

.showcase-copy {
  position: relative;
  width: min(86%, 860px);
  text-align: center;
  padding: 58px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 18, 24, 0.28);
}

.showcase-orb {
  position: absolute;
  top: 25%;
  left: 50%;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.22);
  color: #ffce2e;
  display: grid;
  place-items: center;
  font-size: 30px;
  z-index: 1;
}

.showcase-copy h2 {
  margin: 0;
  color: #ffce2e;
  font-size: 42px;
  line-height: 1.1;
  text-shadow: 0 0 14px rgba(255, 206, 46, 0.45);
}

.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 30px;
}

.showcase-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #6f7886;
}

.showcase-dots span:first-child {
  background: #ffce2e;
  border-color: #ffce2e;
}

.showcase-copy h3 {
  margin: 0 0 24px;
  font-size: 25px;
}

.showcase-copy p {
  margin: 0 auto 34px;
  max-width: 720px;
  color: #aeb7c5;
  font-weight: 700;
  line-height: 1.7;
}

.showcase-tags {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.showcase-tags span,
.showcase-copy strong {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #c4ccd8;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
}

.showcase-copy strong {
  display: inline-block;
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.18);
  color: #ffce2e;
}

.app {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar);
  color: #e5e7eb;
  border-right: 1px solid #0b1118;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 20px;
}

.brand-logo {
  width: 54px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-logo img,
.topbar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28));
}

.login-brand .brand-logo {
  width: 112px;
  height: 94px;
  margin: -16px -10px -10px -16px;
}

.brand-text strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.brand-text span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #9ca3af;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow: auto;
}

.nav-section {
  margin: 16px 10px 6px;
  font-size: 11px;
  color: #8b96a6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px; /* slightly larger touch area */
  min-height: 44px;
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 16px; /* increase sidebar font size for visual parity */
  font-weight: 600; /* uniform weight */
  line-height: 1;
}

/* ensure nav item text doesn't get smaller via child selectors */
.nav-item > * {
  font-size: inherit;
  font-weight: inherit;
}

.nav-item:hover {
  background: var(--sidebar-soft);
}

.nav-item.active {
  background: #243348;
  color: #ffffff;
  /* keep visual emphasis but keep font weight equal to other items */
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-icon {
  width: 26px;
  text-align: center;
  color: var(--accent);
  opacity: 0.95;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 4px;
  border-top: 1px solid #273443;
  margin-top: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #243348;
  border: 2px solid var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.avatar.small {
  width: 32px;
  height: 32px;
  color: var(--text);
  background: #fff7db;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
}

.user-role {
  font-size: 11px;
  color: #9ca3af;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  min-height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

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

.topbar-logo {
  width: 38px;
  height: 34px;
  flex-shrink: 0;
}

.topbar-brand strong {
  display: block;
  font-size: 15px;
}

.topbar-brand span {
  font-size: 12px;
  color: var(--muted);
}

.search {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  margin-left: auto;
}

.profile-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.profile-button:hover .avatar.small {
  box-shadow: 0 0 0 3px rgba(199, 162, 91, 0.18);
}

.topbar-profile-avatar,
.sidebar-profile-avatar {
  overflow: hidden;
}

.topbar-profile-avatar img,
.sidebar-profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.notification-button {
  font-weight: 900;
  color: #a76d13;
}

.icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--text);
}

.icon-btn:hover {
  background: var(--surface-soft);
}

.logout-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.logout-btn:hover {
  background: var(--surface-soft);
}

.content {
  padding: 26px 30px 42px;
  position: relative;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.status-pill {
  border: 1px solid #efd07a;
  background: var(--accent-soft);
  color: #74510a;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.overdue-properties-panel {
  margin: 18px 0;
}

.personnel-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  flex: 1;
}

.personnel-card-layout {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.personnel-portrait-editor {
  width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.personnel-portrait-frame {
  width: 154px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 34px;
  font-weight: 800;
}

.personnel-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personnel-portrait-button {
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.personnel-portrait-editor small {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.personnel-table-avatar {
  width: 42px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.personnel-table-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overdue-property-item .item-actions {
  align-items: flex-end;
}

.overdue-property-item .status-pill {
  padding: 5px 9px;
  color: #a13b24;
  background: #fff0eb;
  border-color: #f2c1b4;
}

html[data-theme="dark"] .overdue-property-item .status-pill {
  color: #ffb49f;
  background: rgba(173, 62, 34, 0.18);
  border-color: rgba(255, 145, 116, 0.28);
}

.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.work-grid,
.dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}

.panel-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 13px 16px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.panel-header small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.field.wide {
  max-width: 640px;
  margin-bottom: 16px;
}

.field span em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  outline: none;
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(32, 76, 122, 0.12);
}

.btn {
  border: 0;
  border-radius: 6px;
  padding: 11px 14px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-success {
  background: var(--success);
}

.btn-success:hover:not(:disabled) {
  background: #18733d;
}

.btn-danger {
  background: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
}

.btn-primary {
  background: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.kv,
.summary-row {
  font-size: 14px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.kv span,
.summary-row span {
  color: var(--muted);
}

.callout {
  background: var(--accent-soft);
  border: 1px solid #efd07a;
  color: #5f4308;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
}

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

.notes p {
  margin: 0;
  color: #394452;
  line-height: 1.5;
}

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

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: end;
}

.search-row .btn {
  width: auto;
}

.compact-list {
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}

.list-item strong,
.list-item span,
.list-item small {
  display: block;
}

.list-item strong {
  font-size: 14px;
}

.list-item span,
.list-item small,
.list-item p {
  color: var(--muted);
  font-size: 12px;
}

.list-item p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.mini-btn {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 10px;
}

.mini-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.customer-portal-preview {
  margin-top: 18px;
}

.customer-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-preview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 8px;
}

.customer-preview-card strong {
  font-size: 15px;
}

.customer-preview-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
  gap: 18px;
  margin-bottom: 18px;
}

#page-customer[data-active-sub="request"] .customer-grid,
#page-customer[data-active-sub="properties"] .customer-grid {
  grid-template-columns: minmax(0, 1fr);
}

.customer-panel {
  margin-bottom: 0;
}

.conditional-request-field {
  border-left: 2px solid var(--accent);
  border-radius: 0 9px 9px 0;
  background: var(--accent-soft);
  padding: 12px 14px;
}

.conditional-request-field[hidden] {
  display: none;
}

.service-contract-consent {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 5px 0 2px;
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
}

.service-contract-consent input {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.service-contract-consent a {
  color: #9b6410;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.service-contract-consent a:hover {
  color: #c0811e;
}

.service-contract-consent em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.contract-consent-status {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.contract-consent-status.is-approved {
  border-color: #abd7bd;
  background: #edf9f2;
  color: #187341 !important;
}

.contract-consent-status.is-not-approved {
  border-color: #e4c2b8;
  background: #fff3ef;
  color: #9a3d26 !important;
}

html[data-theme="dark"] .service-contract-consent {
  border-color: #3a4653;
  background: #151e28;
  color: #aeb8c4;
}

html[data-theme="dark"] .service-contract-consent a {
  color: #e2bd67;
}

html[data-theme="dark"] .contract-consent-status.is-approved {
  border-color: rgba(85, 190, 128, 0.3);
  background: rgba(32, 122, 70, 0.2);
  color: #8de0af !important;
}

html[data-theme="dark"] .contract-consent-status.is-not-approved {
  border-color: rgba(220, 117, 86, 0.3);
  background: rgba(154, 61, 38, 0.2);
  color: #ffad94 !important;
}

.account-management-grid {
  align-items: start;
}

.account-created-panel {
  border-color: rgba(34, 197, 94, 0.34);
}

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

.account-credential-list .kv {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.72);
}

.account-credential-list .credential-password {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(254, 243, 199, 0.72);
}

.account-credential-list .credential-password strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

.account-security-note {
  margin: 2px 0 0;
  color: #92400e;
  font-size: 0.84rem;
  line-height: 1.5;
}

.property-create-grid {
  align-items: start;
}

.property-customer-results {
  margin-top: 12px;
  max-height: 420px;
  overflow-y: auto;
}

.property-customer-result {
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.property-customer-result:hover,
.property-customer-result.is-selected {
  border-color: rgba(201, 154, 46, 0.6);
  background: var(--accent-soft);
}

.property-customer-result > span {
  display: grid;
  gap: 4px;
}

.property-customer-contact {
  justify-items: end;
  text-align: right;
}

html[data-theme="dark"] .account-credential-list .kv {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.5);
}

html[data-theme="dark"] .account-credential-list .credential-password {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(120, 53, 15, 0.3);
}

html[data-theme="dark"] .account-security-note {
  color: #fcd34d;
}

.customer-item {
  align-items: center;
}

.customer-request-card {
  align-items: stretch;
  padding: 16px;
}

.customer-request-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.customer-request-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-request-main > span:not(.request-option-summary),
.customer-request-meta small {
  color: var(--muted);
}

.customer-request-main p {
  margin: 5px 0 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.customer-request-meta {
  display: flex;
  min-width: 165px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  text-align: right;
}

@media (max-width: 560px) {
  .customer-request-card {
    flex-direction: column;
  }

  .customer-request-meta {
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }
}

/* PSG interface v12 — left-side access and interlocking surfaces */
@media (min-width: 1001px) {
  .login-panel {
    grid-template-columns: minmax(500px, 44.5%) minmax(0, 55.5%);
    background: #071019;
  }

  .login-card {
    grid-column: 1;
    grid-row: 1;
    z-index: 4;
    align-items: flex-start;
    padding: clamp(34px, 5vh, 58px) 0 26px clamp(44px, 5vw, 78px);
    background:
      radial-gradient(circle at 4% 8%, rgba(205, 166, 83, 0.09), transparent 25%),
      #0b1721;
    box-shadow: none;
  }

  .login-card > * {
    width: min(100%, 520px);
  }

  .login-brand-row {
    margin-bottom: clamp(30px, 4.5vh, 48px);
  }

  .login-logo {
    width: min(255px, 62%);
    max-height: 138px;
  }

  .login-copy h1 {
    font-size: clamp(34px, 3vw, 46px);
  }

  .login-form {
    width: min(560px, calc(100vw - 84px));
    transform: translateX(clamp(30px, 5vw, 76px));
    border-width: 1px 1px 1px 3px;
    border-color: rgba(143, 160, 175, 0.18) rgba(143, 160, 175, 0.18) rgba(143, 160, 175, 0.18) var(--psg-gold);
    border-radius: 6px 22px 22px 6px;
    background: #101f2b;
    box-shadow: 20px 28px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: none;
  }

  .credit {
    padding-left: clamp(30px, 5vw, 76px);
  }

  .login-showcase {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    padding: clamp(54px, 7vw, 108px) clamp(54px, 7vw, 112px) clamp(54px, 7vw, 108px) clamp(108px, 10vw, 164px);
    border: 0;
    background:
      radial-gradient(circle at 84% 18%, rgba(205, 166, 83, 0.13), transparent 28%),
      linear-gradient(118deg, #0f202d 0%, #09151f 48%, #050c12 100%);
  }

  .login-showcase::before {
    opacity: 0.28;
    background-image:
      linear-gradient(rgba(205, 166, 83, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(205, 166, 83, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(110deg, transparent 3%, #000 32%, transparent 94%);
  }

  .login-showcase::after {
    left: auto;
    right: -190px;
    bottom: -220px;
    width: 620px;
    height: 620px;
    border-color: rgba(205, 166, 83, 0.09);
  }

  .showcase-grid {
    inset: 8% 7% 8% 17%;
    border: 0;
    border-left: 1px solid rgba(205, 166, 83, 0.13);
    border-radius: 0;
    transform: none;
  }

  .showcase-grid::before,
  .showcase-grid::after {
    content: "";
    position: absolute;
    left: -5px;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(205, 166, 83, 0.45);
    background: #0b1924;
    transform: rotate(45deg);
  }

  .showcase-grid::before {
    top: 12%;
  }

  .showcase-grid::after {
    bottom: 12%;
  }

  .showcase-content {
    width: min(100%, 680px);
  }

  .showcase-emblem {
    margin-bottom: clamp(48px, 8vh, 92px);
    border-radius: 3px 11px 11px 3px;
  }

  .showcase-content h2 {
    font-size: clamp(55px, 5.8vw, 92px);
  }

  .showcase-metrics {
    gap: 0;
    border-top: 1px solid rgba(143, 160, 175, 0.15);
    border-bottom: 1px solid rgba(143, 160, 175, 0.15);
  }

  .showcase-metrics > div {
    padding: 18px 17px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .showcase-metrics > div + div {
    border-left: 1px solid rgba(143, 160, 175, 0.15);
  }

  .showcase-status {
    margin-top: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
  }
}

@media (min-width: 1181px) {
  .app .work-grid,
  .app .dashboard {
    gap: 0;
    isolation: isolate;
  }

  .app .work-grid > .panel,
  .app .dashboard > .panel {
    margin-bottom: 0;
  }

  .app .work-grid > .panel:nth-child(even),
  .app .dashboard > .panel:nth-child(even) {
    z-index: 2;
    margin-top: 28px;
    margin-left: -20px;
    border-radius: 5px 16px 16px 5px;
  }

  .app .work-grid > .panel:nth-child(odd),
  .app .dashboard > .panel:nth-child(odd) {
    z-index: 1;
    padding-right: 18px;
    border-radius: 16px 5px 16px 16px;
  }

  .app .ops-grid {
    gap: 0;
  }

  .app .ops-grid > .metric {
    margin: 0;
    border-radius: 0;
  }

  .app .ops-grid > .metric + .metric {
    margin-left: -1px;
  }

  .app .ops-grid > .metric:first-child {
    border-radius: 16px 0 0 16px;
  }

  .app .ops-grid > .metric:last-child {
    border-radius: 0 16px 16px 0;
  }
}

.app .panel {
  border-color: rgba(25, 55, 78, 0.14);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 35, 49, 0.065);
}

.app .panel::before {
  inset: 18px auto 18px 0;
  width: 2px;
  height: auto;
  background: linear-gradient(180deg, transparent, var(--psg-gold) 28%, var(--psg-gold) 72%, transparent);
}

.app .panel-header {
  background: #ffffff;
}

.app .panel-body {
  background: linear-gradient(100deg, rgba(19, 36, 51, 0.018), transparent 34%);
}

.app .list-item {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.app .list-item:last-child {
  border-bottom: 0;
}

.app .list-item:hover {
  padding-left: 16px;
  border-color: rgba(205, 166, 83, 0.32);
  background: linear-gradient(90deg, rgba(205, 166, 83, 0.07), transparent 76%);
  transform: none;
}

html[data-theme="dark"] .app .panel,
html[data-theme="dark"] .app .panel-header {
  background: #15222e;
}

html[data-theme="dark"] .app .panel-body {
  background: linear-gradient(100deg, rgba(205, 166, 83, 0.025), transparent 38%);
}

html[data-theme="dark"] .app .list-item {
  background: transparent;
}

html[data-theme="dark"] .app .list-item:hover {
  background: linear-gradient(90deg, rgba(205, 166, 83, 0.08), transparent 76%);
}

@media (max-width: 1180px) {
  .app .work-grid,
  .app .dashboard,
  .app .ops-grid {
    gap: 16px;
  }
}

@media (max-width: 1000px) {
  .login-card {
    align-items: center;
  }

  .login-form {
    transform: none;
    border-width: 1px;
    border-radius: 18px;
  }
}

.property-manager-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr) 120px;
  gap: 12px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.property-manager-form .btn {
  min-height: 44px;
}

.property-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.property-list-heading strong {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.property-list-heading span {
  color: var(--muted);
  font-size: 11px;
}

.customer-property-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.customer-property-item {
  align-items: center;
  background: #fafbfc;
}

.customer-property-item .property-meta {
  min-width: 0;
}

.customer-property-item .property-meta strong,
.customer-property-item .property-meta span {
  overflow-wrap: anywhere;
}

.mini-btn.danger {
  border-color: #efcccc;
  background: #fff7f7;
  color: #a42b2b;
}

.mini-btn.danger:hover {
  border-color: #c94a4a;
  background: #fff0f0;
  color: #8b1f1f;
}

.service-request-item {
  align-items: flex-start;
  background: #fafbfc;
}

.service-request-item > div:first-child {
  min-width: 0;
}

.service-request-item p {
  max-width: 760px;
}

.customer-record-search {
  width: min(100%, 620px);
  max-width: none !important;
  margin-bottom: 2px !important;
}

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

.customer-record-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
  overflow: hidden;
}

.customer-record-card > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.customer-record-card strong,
.customer-record-card span,
.customer-record-card small {
  display: block;
}

.customer-record-card header strong {
  font-size: 15px;
}

.customer-record-card header span,
.customer-record-card small,
.customer-record-property span {
  color: var(--muted);
  font-size: 11px;
}

.customer-record-contact {
  text-align: right;
}

.customer-record-services,
.customer-record-properties {
  padding: 13px 15px;
}

.customer-record-services {
  border-bottom: 1px solid var(--border);
}

.customer-record-services > small,
.customer-record-properties > small {
  margin-bottom: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.customer-record-services > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-service-tag {
  width: fit-content;
  border: 1px solid #ddc277;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #79570e !important;
  padding: 4px 8px;
  font-size: 10px !important;
  font-weight: 800;
}

.customer-record-property {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.customer-record-properties > small + .customer-record-property {
  border-top: 0;
  padding-top: 0;
}

.customer-record-property > div {
  min-width: 0;
}

.customer-record-property strong,
.customer-record-property span {
  overflow-wrap: anywhere;
}

.customer-record-property label > span {
  margin-bottom: 4px;
  font-weight: 700;
}

.customer-record-property select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
}

.customer-record-empty {
  padding: 2px 0;
}

.request-status {
  display: inline-flex !important;
  align-items: center;
  min-height: 25px;
  border: 1px solid #ead49f;
  border-radius: 999px;
  background: #fff9eb;
  color: #79570e !important;
  padding: 3px 9px;
  font-size: 10px !important;
  font-weight: 800;
}

.request-option-summary {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 6px;
  border: 1px solid #ddc277;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7a5910 !important;
  padding: 4px 9px;
  font-size: 10px !important;
  font-weight: 800;
}

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

.billing-request-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #eadfbf;
  border-radius: 10px;
  background: #fffbf1;
  padding: 14px;
}

.billing-request-detail[hidden] {
  display: none;
}

.billing-work-grid {
  grid-template-columns: minmax(360px, 0.92fr) minmax(300px, 1.08fr);
}

.customer-bill-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.customer-bill-summary > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
  padding: 14px;
}

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

.customer-bill-summary span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-bill-summary strong {
  font-size: 22px;
}

.customer-bill-item {
  align-items: flex-start;
}

.bill-status {
  display: inline-flex !important;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px !important;
  font-weight: 800;
}

.bill-status.is-open {
  border: 1px solid #ead49f;
  background: #fff9eb;
  color: #79570e !important;
}

.bill-status.is-paid {
  border: 1px solid #b9dfc8;
  background: #effaf3;
  color: #187341 !important;
}

.is-public #page-mdc .ops-grid,
.is-public #page-mdc .work-grid,
.is-public #mail-preview-panel {
  display: none;
}

.is-staff #public-mdc-panel {
  display: none;
}

.is-public .sidebar-footer {
  opacity: 0.85;
}

.toast {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 14px;
  background: var(--success-bg);
  color: #14532d;
  border: 1px solid #a7e0bd;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  background: #fafafa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:hover {
  background: #f9fafb;
}

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

  .login-card {
    min-height: 100vh;
    padding: 40px 24px;
  }

  .login-logo {
    margin-bottom: 64px;
  }

  .login-showcase {
    display: none;
  }

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

  .property-manager-form {
    grid-template-columns: 1fr 1fr;
  }

  .property-manager-form .btn {
    grid-column: 1 / -1;
  }

  .billing-summary,
  .billing-work-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

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

  .topbar-brand span {
    display: none;
  }

  .search {
    display: none;
  }

  .ops-grid,
  .personnel-card-grid,
  .work-grid,
  .dashboard,
  .form-grid,
  .search-row {
    grid-template-columns: 1fr;
  }

  .personnel-card-layout {
    flex-direction: column;
  }

  .personnel-portrait-editor {
    width: 100%;
  }

  .list-item {
    flex-direction: column;
  }

  .customer-records-list {
    grid-template-columns: 1fr;
  }

  .item-actions {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .content {
    padding: 20px 16px 32px;
  }

  .topbar {
    padding: 0 14px;
  }

  .page-heading {
    flex-direction: column;
  }

  h1 {
    font-size: 24px;
  }
}

/* 2026 interface refresh -------------------------------------------------- */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --border: #e1e5ea;
  --text: #121a24;
  --muted: #667282;
  --sidebar: #0c141d;
  --sidebar-soft: #172330;
  --accent: #c99a2e;
  --accent-soft: #fff8e7;
  --primary: #172d47;
  --primary-hover: #0d2036;
  --shadow: 0 1px 2px rgba(12, 20, 29, 0.04), 0 12px 32px rgba(12, 20, 29, 0.055);
  --radius: 14px;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* Login */
.login-screen {
  min-height: 100svh;
  background: #f9fafb;
}

.login-panel {
  min-height: 100svh;
  grid-template-columns: minmax(480px, 0.88fr) minmax(540px, 1.12fr);
  background: #f9fafb;
}

.login-card {
  justify-content: flex-start;
  width: min(100%, 600px);
  min-height: 100svh;
  padding: clamp(38px, 6vh, 72px) clamp(42px, 6vw, 84px) 34px;
}

.login-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(64px, 10vh, 112px);
}

.login-logo {
  width: 190px;
  height: auto;
  max-height: 108px;
  object-fit: contain;
  object-position: left center;
  margin: 0;
  filter: drop-shadow(0 10px 18px rgba(14, 23, 34, 0.12));
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  color: #667282;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.secure-badge > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2aa566;
  box-shadow: 0 0 0 4px rgba(42, 165, 102, 0.12);
}

.login-copy .login-eyebrow {
  margin: 0 0 12px;
  color: #a47716;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-copy h1 {
  max-width: 440px;
  margin: 0 0 12px;
  color: #101923;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.login-copy p:not(.login-eyebrow) {
  max-width: 450px;
  color: #687484;
  font-size: 14px;
  line-height: 1.7;
}

.login-form {
  gap: 18px;
  margin-top: 38px;
}

.login-field {
  gap: 9px;
  position: relative;
}

.login-field > span {
  color: #2d3745;
  font-size: 12px;
  font-weight: 750;
}

.login-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #dce1e7;
  border-radius: 10px;
  background: #ffffff;
  color: #17202a;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 32, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-field input::placeholder {
  color: #9aa3af;
}

.login-field input:focus {
  border-color: #b78a24;
  box-shadow: 0 0 0 4px rgba(201, 154, 46, 0.12);
}

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

.password-toggle {
  top: auto;
  right: 12px;
  bottom: 12px;
  transform: none;
  border-radius: 7px;
  font-size: 0;
}

.password-toggle:hover {
  background: #f1f3f5;
}

.password-toggle::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 7px;
  width: 14px;
  height: 10px;
  border: 1.5px solid #6f7b89;
  border-radius: 50% / 60%;
}

.password-toggle::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6f7b89;
}

.remember-row {
  width: fit-content;
  color: #4f5c6d;
  font-size: 13px;
  cursor: pointer;
}

.remember-row input {
  width: 17px;
  height: 17px;
  accent-color: #b48620;
}

.login-form .btn {
  min-height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, #172d47, #0d2138);
  box-shadow: 0 9px 20px rgba(13, 33, 56, 0.16);
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form .btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #213d5d, #112a47);
  box-shadow: 0 12px 24px rgba(13, 33, 56, 0.22);
  transform: translateY(-1px);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #99a2ad;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e3e6ea;
}

.discord-btn {
  min-height: 52px;
  border: 1px solid #dce1e7;
  border-radius: 10px;
  background: #ffffff;
  color: #3f4a59;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(16, 24, 32, 0.03);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.discord-btn:hover {
  border-color: #aeb7c3;
  background: #f7f8fa;
  color: #17202a;
}

.form-message:not(:empty) {
  min-height: auto;
  border: 1px solid #f0c7c7;
  border-radius: 9px;
  background: #fff4f4;
  padding: 10px 12px;
}

.credit {
  margin: auto 0 0;
  padding-top: 28px;
  color: #8a94a2;
  font-size: 11px;
  font-style: normal;
}

.login-showcase {
  isolation: isolate;
  place-items: center;
  background:
    radial-gradient(circle at 72% 20%, rgba(201, 154, 46, 0.2), transparent 25%),
    radial-gradient(circle at 18% 78%, rgba(58, 88, 118, 0.22), transparent 34%),
    linear-gradient(145deg, #111b26 0%, #081019 100%);
}

.login-showcase::before {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
}

.login-showcase::after {
  content: "";
  position: absolute;
  width: min(48vw, 720px);
  height: min(48vw, 720px);
  border: 1px solid rgba(218, 178, 82, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, 0.018),
    0 0 0 180px rgba(255, 255, 255, 0.012);
  z-index: -1;
}

.showcase-orb {
  display: none;
}

.showcase-copy {
  width: min(76%, 680px);
  padding: 52px clamp(36px, 5vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.showcase-copy::before {
  content: "";
  display: block;
  width: 210px;
  height: 116px;
  margin: 0 auto 36px;
  background: url("../assets/psg-emblem.png") center / contain no-repeat;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.28));
}

.showcase-copy h2 {
  color: #ddb34e;
  font-size: clamp(31px, 3.2vw, 48px);
  letter-spacing: -0.035em;
  text-shadow: none;
}

.showcase-dots {
  margin: 17px 0 27px;
}

.showcase-dots span {
  width: 6px;
  height: 6px;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
}

.showcase-dots span:first-child {
  background: #ddb34e;
}

.showcase-copy h3 {
  margin-bottom: 16px;
  font-size: 22px;
}

.showcase-copy p {
  max-width: 560px;
  margin-bottom: 30px;
  color: #aeb8c4;
  font-size: 14px;
  font-weight: 500;
}

.showcase-tags {
  gap: 10px;
  margin-bottom: 24px;
}

.showcase-tags span,
.showcase-copy strong {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #d3d8df;
  padding: 9px 14px;
  font-size: 11px;
}

/* Brand mark: crop the emblem from the existing horizontal lock-up. */
.logo-mark {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.logo-mark img,
.brand-logo.logo-mark img,
.topbar-logo.logo-mark img {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 132px;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.25));
}

/* Application shell */
.app {
  grid-template-columns: 282px minmax(0, 1fr);
}

.sidebar {
  border-right: 0;
  padding: 18px 14px;
  background:
    radial-gradient(circle at 20% 0, rgba(201, 154, 46, 0.09), transparent 18%),
    var(--sidebar);
  box-shadow: 10px 0 30px rgba(12, 20, 29, 0.08);
  z-index: 2;
}

.brand {
  gap: 13px;
  padding: 4px 8px 22px;
}

.brand-text strong {
  color: #f6f7f9;
  font-size: 14px;
  line-height: 1.25;
}

.brand-text span {
  margin-top: 5px;
  color: #7f8b99;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  gap: 4px;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: #334151 transparent;
}

.nav-section {
  margin: 20px 12px 7px;
  color: #73808f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.nav-item {
  min-height: 43px;
  padding: 11px 13px;
  border-radius: 10px;
  color: #aeb8c4;
  font-size: 13px;
  font-weight: 600;
  transition: color 150ms ease, background 150ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #eef1f5;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(201, 154, 46, 0.18), rgba(201, 154, 46, 0.055));
  color: #ffffff;
  box-shadow: inset 2px 0 0 #d5a63c;
}

.nav-icon {
  width: 24px;
  color: #d3a43a;
  font-size: 14px;
}

.sidebar-footer {
  padding: 16px 9px 4px;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.main {
  background:
    radial-gradient(circle at 100% 0, rgba(201, 154, 46, 0.045), transparent 24%),
    var(--bg);
}

.topbar {
  min-height: 72px;
  grid-template-columns: 300px minmax(220px, 1fr) auto;
  gap: 20px;
  padding: 0 30px;
  border-bottom-color: #e6e9ed;
  box-shadow: 0 1px 0 rgba(12, 20, 29, 0.015);
}

.topbar-logo.logo-mark {
  width: 42px;
  height: 42px;
  border-color: #e5e8ec;
  background: #f7f8fa;
}

.topbar-logo.logo-mark img {
  top: -1px;
  width: 116px;
}

.topbar-brand strong {
  font-size: 13px;
}

.topbar-brand span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.search {
  max-width: 560px;
  border-color: transparent;
  background: #f4f6f8;
  padding: 10px 17px;
}

.icon-btn,
.logout-btn {
  border-color: #e2e6ea;
  border-radius: 9px;
  background: #ffffff;
}

.content {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 34px clamp(24px, 3vw, 44px) 52px;
}

.page-heading {
  align-items: center;
  margin-bottom: 24px;
}

.eyebrow {
  margin-bottom: 7px;
  color: #a67918;
  font-size: 10px;
  letter-spacing: 0.14em;
}

h1 {
  color: #111a24;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.status-pill {
  border-color: #ead49f;
  background: #fff9eb;
  color: #79570e;
  padding: 9px 14px;
  font-size: 11px;
}

.ops-grid {
  gap: 18px;
  margin-bottom: 20px;
}

.metric {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border-color: #e2e6eb;
  border-radius: var(--radius);
  padding: 20px 21px;
  box-shadow: var(--shadow);
}

.metric::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(201, 154, 46, 0.06);
}

.metric span {
  color: #7b8694;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.metric strong {
  margin-top: 12px;
  color: #17202a;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.work-grid,
.dashboard,
.customer-grid {
  gap: 20px;
}

.panel {
  border-color: #e1e5ea;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.panel-header {
  min-height: 58px;
  align-items: center;
  padding: 16px 20px;
  border-bottom-color: #e7eaee;
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
  color: #1d2732;
  font-size: 13px;
}

.panel-header > span:first-child::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: #c99a2e;
  box-shadow: 0 0 0 4px rgba(201, 154, 46, 0.1);
  vertical-align: 1px;
}

.panel-header small {
  color: #8b95a2;
  font-size: 10px;
}

.panel-body {
  gap: 15px;
  padding: 20px;
}

.field {
  gap: 8px;
  color: #3a4654;
  font-size: 12px;
}

.field input,
.field select,
.field textarea {
  min-height: 44px;
  border-color: #dce1e6;
  border-radius: 9px;
  padding: 11px 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #b88b25;
  box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.11);
}

.btn {
  min-height: 44px;
  border-radius: 9px;
  transition: filter 150ms ease, transform 150ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-primary {
  background: #172d47;
}

.callout {
  border-color: #ead49f;
  border-radius: 9px;
  background: #fff9eb;
  padding: 12px 14px;
}

.table-wrap {
  border-color: #e1e5ea;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

th {
  padding: 15px 18px;
  background: #f8f9fb;
  color: #778291;
  font-size: 10px;
  letter-spacing: 0.08em;
}

td {
  padding: 16px 18px;
}

.customer-preview-card,
.list-item {
  border-color: #e3e7eb;
  border-radius: 10px;
  background: #fafbfc;
}

.toast {
  top: 12px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(20, 83, 45, 0.08);
}

@media (max-width: 1180px) {
  .login-panel {
    grid-template-columns: minmax(440px, 0.95fr) minmax(480px, 1.05fr);
  }

  .showcase-copy {
    width: min(84%, 620px);
    padding-inline: 38px;
  }

  .app {
    grid-template-columns: 256px minmax(0, 1fr);
  }

  .topbar {
    grid-template-columns: 260px minmax(180px, 1fr) auto;
  }
}

@media (max-width: 1000px) {
  .login-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-card {
    width: min(100%, 560px);
    min-width: 0;
    min-height: 100svh;
    padding: 34px 30px;
  }

  .login-brand-row {
    margin-bottom: clamp(52px, 9vh, 86px);
  }

  .login-showcase {
    display: none;
  }

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

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 560px) {
  .login-card {
    padding: 26px 20px;
  }

  .login-brand-row {
    align-items: flex-start;
    margin-bottom: 54px;
  }

  .login-logo {
    width: 156px;
  }

  .secure-badge {
    display: none;
  }

  .login-copy h1 {
    font-size: 29px;
  }

  .login-form {
    margin-top: 30px;
  }

  .property-manager-form {
    grid-template-columns: 1fr;
  }

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

  .property-manager-form .btn {
    grid-column: auto;
  }

  .login-field,
  .login-field input,
  .login-form .btn,
  .discord-btn {
    min-width: 0;
    max-width: 100%;
  }

  .topbar-brand strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content {
    padding: 24px 16px 36px;
  }

  .ops-grid {
    gap: 12px;
  }

  .metric {
    min-height: 96px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Settings and theme ----------------------------------------------------- */
.settings-wrap {
  position: relative;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: 340px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 20px 50px rgba(12, 20, 29, 0.18);
}

.theme-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--surface);
  transform: rotate(45deg);
}

.theme-menu-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.theme-menu-heading strong {
  color: var(--text);
  font-size: 13px;
}

.theme-menu-heading span {
  color: var(--muted);
  font-size: 10px;
}

.theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-options button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.theme-options button span {
  margin-right: 4px;
  color: var(--accent);
}

.theme-options button:hover {
  border-color: #c9a24b;
  color: var(--text);
}

.theme-options button[aria-pressed="true"] {
  border-color: #c99a2e;
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.1);
}

.settings-password-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.settings-password-heading {
  margin-bottom: 0;
}

.settings-password-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.settings-password-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 8px 10px;
  outline: none;
}

.settings-password-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.12);
}

.settings-password-form .btn {
  width: 100%;
  min-height: 39px;
}

.settings-password-message {
  min-height: 16px;
  color: var(--muted);
  line-height: 1.4;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f151d;
  --surface: #17202a;
  --surface-soft: #1c2733;
  --border: #2b3846;
  --text: #edf2f7;
  --muted: #96a3b2;
  --sidebar: #080e15;
  --sidebar-soft: #172330;
  --accent: #d4a63c;
  --accent-soft: #302817;
  --success-bg: #132d20;
  --primary: #294c70;
  --primary-hover: #355e88;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 16px 38px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .main {
  background:
    radial-gradient(circle at 100% 0, rgba(212, 166, 60, 0.055), transparent 24%),
    var(--bg);
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .theme-menu {
  border-color: var(--border);
  background: var(--surface);
}

html[data-theme="dark"] .topbar {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .panel-header {
  border-bottom-color: var(--border);
  background: linear-gradient(180deg, #19232e, #161f29);
  color: var(--text);
}

html[data-theme="dark"] .metric strong,
html[data-theme="dark"] h1,
html[data-theme="dark"] .customer-preview-card strong,
html[data-theme="dark"] .list-item strong,
html[data-theme="dark"] .field,
html[data-theme="dark"] .topbar-brand strong,
html[data-theme="dark"] .logout-btn,
html[data-theme="dark"] .icon-btn {
  color: var(--text);
}

html[data-theme="dark"] .metric::after {
  background: rgba(212, 166, 60, 0.08);
}

html[data-theme="dark"] .search,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .logout-btn,
html[data-theme="dark"] .topbar-logo.logo-mark,
html[data-theme="dark"] .theme-options button,
html[data-theme="dark"] .customer-preview-card,
html[data-theme="dark"] .list-item,
html[data-theme="dark"] .customer-property-item,
html[data-theme="dark"] .service-request-item,
html[data-theme="dark"] .customer-record-card,
html[data-theme="dark"] .customer-record-card > header,
html[data-theme="dark"] .customer-bill-summary > div {
  border-color: var(--border);
  background: var(--surface-soft);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  border-color: #354352;
  background: #111922;
  color: var(--text);
}

html[data-theme="dark"] .customer-record-property select {
  border-color: #354352;
  background: #111922;
  color: var(--text);
}

html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder {
  color: #718092;
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus {
  border-color: #c99a2e;
  box-shadow: 0 0 0 3px rgba(212, 166, 60, 0.13);
}

html[data-theme="dark"] th {
  border-bottom-color: var(--border);
  background: #141d27;
  color: #9aa7b6;
}

html[data-theme="dark"] td {
  border-bottom-color: var(--border);
}

html[data-theme="dark"] tbody tr:hover {
  background: #1a2530;
}

html[data-theme="dark"] .billing-request-detail,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .request-status,
html[data-theme="dark"] .bill-status.is-open {
  border-color: #65552d;
  background: #2e2718;
  color: #e3bd61 !important;
}

html[data-theme="dark"] .conditional-request-field,
html[data-theme="dark"] .request-option-summary {
  border-color: #65552d;
  background: #2e2718;
  color: #e3bd61 !important;
}

html[data-theme="dark"] .bill-status.is-paid,
html[data-theme="dark"] .toast {
  border-color: #315f43;
  background: #142b1e;
  color: #83d5a3 !important;
}

html[data-theme="dark"] .mini-btn {
  border-color: #3a4857;
  background: #1c2733;
  color: #dce4ec;
}

html[data-theme="dark"] .mini-btn.danger {
  border-color: #633a3a;
  background: #2a1c1e;
  color: #f1a0a0;
}

html[data-theme="dark"] .theme-menu::before {
  border-color: var(--border);
  background: var(--surface);
}

html[data-theme="dark"] .theme-options button[aria-pressed="true"] {
  border-color: #b78b27;
  background: #302817;
  color: #f5dda1;
}

html[data-theme="dark"] .login-screen,
html[data-theme="dark"] .login-panel {
  background: #0f151d;
}

html[data-theme="dark"] .login-card {
  color: var(--text);
}

html[data-theme="dark"] .login-copy h1,
html[data-theme="dark"] .remember-row,
html[data-theme="dark"] .credit {
  color: var(--text);
}

html[data-theme="dark"] .login-copy p:not(.login-eyebrow),
html[data-theme="dark"] .secure-badge {
  color: var(--muted);
}

html[data-theme="dark"] .login-field > span {
  color: #cdd6df;
}

html[data-theme="dark"] .login-field input,
html[data-theme="dark"] .discord-btn {
  border-color: #354352;
  background: #151e28;
  color: var(--text);
}

html[data-theme="dark"] .discord-btn:hover,
html[data-theme="dark"] .password-toggle:hover {
  background: #1d2935;
  color: #ffffff;
}

html[data-theme="dark"] .login-divider::before,
html[data-theme="dark"] .login-divider::after,
html[data-theme="dark"] .property-manager-form {
  border-color: var(--border);
  background-color: transparent;
}

@media (max-width: 560px) {
  .theme-menu {
    position: fixed;
    top: 68px;
    right: 12px;
    width: min(280px, calc(100vw - 24px));
  }
}

/* PSG logo palette and diagonal login split */
.login-logo {
  width: min(285px, 66%);
  max-height: 162px;
  filter: drop-shadow(0 10px 18px rgba(14, 23, 34, 0.12));
}

@media (min-width: 1001px) {
  .login-panel {
    --psg-login-split: 44%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #17212c 0%, #0e151e 45%, #080d14 45.1%, #030609 100%);
  }

  .login-panel::after {
    content: "";
    position: absolute;
    top: -8%;
    left: var(--psg-login-split);
    width: 4px;
    height: 116%;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom, #f0e0b7, #b58b42 48%, #f3e5c2);
    box-shadow:
      -6px 0 18px rgba(4, 8, 13, 0.32),
      5px 0 18px rgba(199, 162, 91, 0.24);
    transform: rotate(5.5deg);
    transform-origin: center top;
  }

  .login-card {
    position: relative;
    z-index: 1;
    background:
      radial-gradient(circle at 18% 10%, rgba(204, 212, 221, 0.08), transparent 30%),
      linear-gradient(145deg, #17212c 0%, #0c131b 100%);
  }

  .login-showcase {
    width: calc(100% + 96px);
    margin-left: -96px;
    padding-left: 96px;
    z-index: 2;
    clip-path: polygon(96px 0, 100% 0, 100% 100%, 0 100%);
    background:
      radial-gradient(circle at 76% 18%, rgba(224, 198, 139, 0.22), transparent 24%),
      radial-gradient(circle at 22% 82%, rgba(184, 192, 202, 0.14), transparent 34%),
      linear-gradient(145deg, #182330 0%, #0c131d 48%, #04070b 100%);
  }

  html[data-theme="dark"] .login-panel {
    background: linear-gradient(135deg, #151d26 0%, #0e151e 45%, #080d14 45.1%, #030609 100%);
  }

  html[data-theme="dark"] .login-card {
    background:
      radial-gradient(circle at 18% 10%, rgba(204, 212, 221, 0.08), transparent 30%),
      linear-gradient(145deg, #17212c 0%, #0c131b 100%);
  }
}

.secure-badge > span {
  background: #c7a25b;
  box-shadow: 0 0 0 4px rgba(199, 162, 91, 0.16);
}

.login-copy .login-eyebrow,
.showcase-copy h2 {
  color: #bd9348;
}

.login-field input:focus {
  border-color: #b9904b;
  box-shadow: 0 0 0 4px rgba(185, 144, 75, 0.14);
}

.login-form .btn {
  border: 1px solid #9c7739;
  background: linear-gradient(135deg, #172330, #070c12 72%);
  box-shadow:
    inset 0 -2px 0 rgba(199, 162, 91, 0.42),
    0 10px 24px rgba(6, 11, 17, 0.24);
}

.login-form .btn:hover:not(:disabled) {
  border-color: #c7a25b;
  background: linear-gradient(135deg, #263647, #0a111a 72%);
  box-shadow:
    inset 0 -2px 0 rgba(230, 207, 157, 0.55),
    0 13px 28px rgba(6, 11, 17, 0.3);
}

.showcase-copy {
  border-color: rgba(199, 162, 91, 0.28);
  background: linear-gradient(145deg, rgba(226, 231, 236, 0.1), rgba(4, 8, 13, 0.18));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(215, 220, 226, 0.04);
}

.showcase-dots span:first-child {
  background: #c7a25b;
}

.showcase-copy strong {
  border-color: rgba(199, 162, 91, 0.42);
  background: rgba(199, 162, 91, 0.12);
  color: #ead7aa;
}

@media (max-width: 1180px) and (min-width: 1001px) {
  .login-panel {
    --psg-login-split: 47.5%;
  }
}

@media (max-width: 1000px) {
  .login-panel {
    background: linear-gradient(145deg, #17212c, #0b1118);
  }

  html[data-theme="dark"] .login-panel,
  html[data-theme="dark"] .login-card {
    background: linear-gradient(145deg, #17212c, #0b1118);
  }
}

@media (max-width: 560px) {
  .login-logo {
    width: 210px;
    max-width: 82vw;
    max-height: 126px;
  }
}

/* Login remains dark regardless of the selected application theme. */
.login-screen,
.login-panel {
  background-color: #080d14;
}

.login-card {
  color: #eef1f4;
}

.login-copy h1,
.remember-row,
.credit {
  color: #eef1f4;
}

.login-copy p:not(.login-eyebrow),
.secure-badge {
  color: #98a5b3;
}

.login-field > span {
  color: #d4dbe2;
}

.login-field input,
.discord-btn {
  border-color: #34404d;
  background: #0c131b;
  color: #eef1f4;
}

.login-field input::placeholder {
  color: #707d8b;
}

.discord-btn:hover,
.password-toggle:hover {
  border-color: #6f7d8b;
  background: #17212c;
  color: #ffffff;
}

.ls-chat-btn {
  border-color: rgba(199, 162, 91, 0.58);
  background: linear-gradient(135deg, rgba(199, 162, 91, 0.13), #0c131b 72%);
}

.ls-chat-btn:hover {
  border-color: #c7a25b;
  background: linear-gradient(135deg, rgba(199, 162, 91, 0.22), #17212c 72%);
}

.login-divider {
  color: #74808d;
}

.login-divider::before,
.login-divider::after {
  background: #303b47;
}

/* PSG interface v11 — corporate login and panel system */
:root {
  --psg-ink: #071019;
  --psg-navy: #0c1823;
  --psg-navy-soft: #132433;
  --psg-gold: #cda653;
  --psg-gold-bright: #eed48f;
  --psg-steel: #8fa0af;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(7, 16, 25, 0.1);
}

.login-screen {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--psg-ink);
  isolation: isolate;
}

.login-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(480px, 0.93fr) minmax(540px, 1.07fr);
  min-height: 100svh;
  overflow: hidden;
  background: var(--psg-ink);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 13% 16%, rgba(205, 166, 83, 0.14), transparent 24%),
    radial-gradient(circle at 88% 84%, rgba(61, 102, 132, 0.18), transparent 30%);
}

.login-panel::after {
  display: none;
}

.login-card {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 3;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding: clamp(34px, 5vh, 62px) clamp(46px, 6vw, 104px) 28px;
  color: #f3f6f8;
  background:
    linear-gradient(90deg, rgba(6, 13, 20, 0.24), transparent 15%),
    linear-gradient(145deg, #101d29 0%, #0a131c 70%, #071019 100%);
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.22);
}

.login-card > * {
  width: min(100%, 520px);
}

.login-brand-row {
  margin: 0 0 clamp(34px, 5vh, 54px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(143, 160, 175, 0.15);
}

.login-logo {
  width: min(290px, 68%);
  max-height: 154px;
  object-position: left center;
  filter: none;
}

.secure-badge {
  padding: 8px 11px;
  border: 1px solid rgba(205, 166, 83, 0.24);
  border-radius: 999px;
  color: #b8c2ca;
  background: rgba(205, 166, 83, 0.06);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.secure-badge > span {
  width: 6px;
  height: 6px;
  background: #64d49b;
  box-shadow: 0 0 0 4px rgba(100, 212, 155, 0.12), 0 0 15px rgba(100, 212, 155, 0.45);
}

.login-copy .login-eyebrow {
  margin-bottom: 13px;
  color: var(--psg-gold);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.login-copy h1 {
  max-width: 500px;
  margin-bottom: 14px;
  color: #f5f7f9;
  font-size: clamp(34px, 3.15vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.login-copy p:not(.login-eyebrow) {
  max-width: 465px;
  color: #95a4b1;
  font-size: 14px;
  line-height: 1.65;
}

.login-form {
  gap: 15px;
  margin-top: 28px;
  padding: 25px;
  border: 1px solid rgba(143, 160, 175, 0.18);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(25, 42, 56, 0.7), rgba(8, 16, 24, 0.86));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.login-form-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 4px;
}

.login-form-title strong {
  color: #f2f5f7;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.login-form-title span {
  color: #82919e;
  font-size: 12px;
}

.login-field > span {
  color: #cbd3da;
  font-size: 11px;
  letter-spacing: 0.025em;
}

.login-field input {
  min-height: 52px;
  border: 1px solid rgba(143, 160, 175, 0.25);
  border-radius: 11px;
  background: rgba(4, 10, 16, 0.58);
  color: #f6f8f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.login-field input:hover {
  border-color: rgba(205, 166, 83, 0.42);
}

.login-field input:focus {
  border-color: var(--psg-gold);
  box-shadow: 0 0 0 3px rgba(205, 166, 83, 0.12), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.remember-row {
  color: #bbc5cc;
  font-size: 12px;
}

.remember-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--psg-gold);
}

.login-form .btn {
  min-height: 52px;
  border: 1px solid #d0aa58;
  border-radius: 11px;
  color: #0b131a;
  background: linear-gradient(135deg, #efd790 0%, #c99f48 55%, #a8792d 100%);
  box-shadow: 0 12px 30px rgba(148, 103, 29, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.login-form .btn:hover:not(:disabled) {
  border-color: #f1d58b;
  color: #071019;
  background: linear-gradient(135deg, #f7e4ab 0%, #d8b25d 55%, #b48637 100%);
  box-shadow: 0 15px 36px rgba(148, 103, 29, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.login-divider {
  margin: 1px 0;
  color: #657584;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  background: rgba(143, 160, 175, 0.17);
}

.login-community-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.discord-btn {
  min-width: 0;
  min-height: 58px;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(143, 160, 175, 0.22);
  border-radius: 11px;
  color: #e8edf0;
  background: rgba(7, 14, 21, 0.68);
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.discord-btn > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.discord-btn small {
  color: #748491;
  font-size: 9px;
  font-weight: 600;
}

.community-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 9px;
  color: #f3e2b5;
  background: rgba(205, 166, 83, 0.13);
  font-size: 10px;
  font-weight: 900;
}

.discord-btn:hover,
.ls-chat-btn:hover {
  border-color: rgba(205, 166, 83, 0.56);
  color: #ffffff;
  background: rgba(205, 166, 83, 0.09);
  transform: translateY(-1px);
}

.ls-chat-btn {
  background: rgba(7, 14, 21, 0.68);
}

.form-message:not(:empty) {
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid rgba(230, 93, 93, 0.28);
  border-radius: 10px;
  background: rgba(157, 42, 42, 0.12);
}

.credit {
  margin-top: 20px;
  color: #657582;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.credit a {
  color: var(--psg-gold);
}

.login-showcase {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: flex;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: clamp(48px, 6vw, 92px);
  align-items: center;
  clip-path: none;
  color: #f3f6f8;
  background:
    linear-gradient(160deg, rgba(13, 29, 41, 0.36), rgba(3, 8, 13, 0.7)),
    radial-gradient(circle at 20% 18%, rgba(205, 166, 83, 0.18), transparent 30%),
    linear-gradient(145deg, #0d1c28 0%, #07121b 62%, #04090e 100%);
  border-right: 1px solid rgba(205, 166, 83, 0.22);
}

.login-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(205, 166, 83, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205, 166, 83, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom right, #000, transparent 78%);
}

.login-showcase::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(205, 166, 83, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 76px rgba(205, 166, 83, 0.025), 0 0 0 154px rgba(205, 166, 83, 0.018);
}

.showcase-grid {
  position: absolute;
  inset: 9% 9%;
  border: 1px solid rgba(143, 160, 175, 0.08);
  border-radius: 34px;
  transform: rotate(-7deg);
}

.showcase-content {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
}

.showcase-emblem {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: clamp(42px, 8vh, 86px);
  padding: 12px 15px;
  border: 1px solid rgba(205, 166, 83, 0.35);
  border-radius: 12px;
  background: rgba(205, 166, 83, 0.07);
}

.showcase-emblem strong {
  color: var(--psg-gold-bright);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.showcase-emblem span {
  color: #778997;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.showcase-kicker {
  margin: 0 0 16px;
  color: var(--psg-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.showcase-content h2 {
  margin: 0;
  color: #f0f4f6;
  font-size: clamp(50px, 5.4vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-transform: none;
}

.showcase-content h2 em {
  color: var(--psg-gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.showcase-lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: #98a8b4;
  font-size: 14px;
  line-height: 1.75;
}

.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(38px, 7vh, 72px);
}

.showcase-metrics > div {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(143, 160, 175, 0.14);
  border-radius: 13px;
  background: rgba(4, 10, 15, 0.36);
}

.showcase-metrics strong,
.showcase-metrics span {
  display: block;
}

.showcase-metrics strong {
  color: #f0d994;
  font-size: 20px;
}

.showcase-metrics span {
  margin-top: 5px;
  color: #768896;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.showcase-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 13px;
  padding: 12px 15px;
  border: 1px solid rgba(100, 212, 155, 0.13);
  border-radius: 12px;
  background: rgba(100, 212, 155, 0.035);
}

.showcase-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64d49b;
  box-shadow: 0 0 12px rgba(100, 212, 155, 0.6);
}

.showcase-status strong {
  color: #b9c7cf;
  font-size: 10px;
}

.showcase-status small {
  color: #627481;
  font-size: 9px;
}

/* Refined application panels */
.app .panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(25, 55, 78, 0.13);
  border-radius: 16px;
  background: linear-gradient(155deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: 0 16px 40px rgba(17, 35, 49, 0.075), 0 2px 8px rgba(17, 35, 49, 0.04);
}

.app .panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, var(--psg-gold), rgba(205, 166, 83, 0.08) 42%, transparent 74%);
}

.app .panel-header {
  min-height: 58px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(25, 55, 78, 0.1);
  background: linear-gradient(100deg, rgba(19, 36, 51, 0.035), transparent 52%);
  color: #152533;
  letter-spacing: -0.01em;
}

.app .panel-header > span:first-child::before {
  width: 7px;
  height: 7px;
  background: var(--psg-gold);
  box-shadow: 0 0 0 4px rgba(205, 166, 83, 0.12);
}

.app .panel-header small {
  color: #7c8994;
  font-weight: 600;
}

.app .panel-body {
  padding: 20px;
}

.app .metric {
  border: 1px solid rgba(25, 55, 78, 0.11);
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff, #f5f8fa);
  box-shadow: 0 12px 28px rgba(17, 35, 49, 0.055);
}

.app .metric::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(205, 166, 83, 0.75), transparent);
}

.app .list-item {
  border-color: rgba(25, 55, 78, 0.1);
  border-radius: 12px;
  background: rgba(248, 250, 251, 0.78);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.app .list-item:hover {
  border-color: rgba(205, 166, 83, 0.38);
  background: #ffffff;
  transform: translateY(-1px);
}

.app .field input,
.app .field select,
.app .field textarea {
  border-radius: 11px;
  border-color: rgba(25, 55, 78, 0.17);
  box-shadow: inset 0 1px 2px rgba(17, 35, 49, 0.025);
}

.app .field input:focus,
.app .field select:focus,
.app .field textarea:focus {
  border-color: #bd9348;
  box-shadow: 0 0 0 3px rgba(205, 166, 83, 0.12);
}

.app .btn {
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(17, 35, 49, 0.1);
}

.app .btn-primary {
  border-color: #aa8139;
  color: #f8f3e7;
  background: linear-gradient(135deg, #1a2e3e, #0b1620);
}

.app .btn-primary:hover:not(:disabled) {
  border-color: #d1ad60;
  background: linear-gradient(135deg, #29445a, #101e2a);
  transform: translateY(-1px);
}

.app .status-pill {
  border: 1px solid rgba(205, 166, 83, 0.28);
  border-radius: 999px;
  color: #8b6729;
  background: rgba(205, 166, 83, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.app .page-heading h1 {
  letter-spacing: -0.035em;
}

html[data-theme="dark"] .app .panel {
  border-color: rgba(143, 160, 175, 0.15);
  background: linear-gradient(150deg, #182431 0%, #111b25 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .app .panel-header {
  border-color: rgba(143, 160, 175, 0.13);
  background: linear-gradient(100deg, rgba(205, 166, 83, 0.045), transparent 55%);
  color: #edf1f4;
}

html[data-theme="dark"] .app .metric,
html[data-theme="dark"] .app .list-item {
  border-color: rgba(143, 160, 175, 0.13);
  background: linear-gradient(145deg, #182431, #111b25);
}

html[data-theme="dark"] .app .list-item:hover {
  border-color: rgba(205, 166, 83, 0.42);
  background: #1b2a37;
}

html[data-theme="dark"] .app .status-pill {
  color: #e3ca89;
  background: rgba(205, 166, 83, 0.11);
  box-shadow: none;
}

@media (max-width: 1180px) and (min-width: 1001px) {
  .login-panel {
    grid-template-columns: minmax(430px, 0.9fr) minmax(510px, 1.1fr);
  }

  .login-showcase {
    padding: 48px;
  }

  .showcase-content h2 {
    font-size: clamp(48px, 5vw, 67px);
  }

  .login-card {
    padding-inline: 54px;
  }
}

@media (max-width: 1000px) {
  .login-panel {
    display: block;
    background: linear-gradient(145deg, #101d29, #071019);
  }

  .login-showcase {
    display: none;
  }

  .login-card,
  html[data-theme="dark"] .login-card {
    width: 100%;
    min-height: 100svh;
    padding: 32px clamp(24px, 7vw, 62px) 24px;
    background:
      radial-gradient(circle at 10% 4%, rgba(205, 166, 83, 0.12), transparent 23%),
      linear-gradient(145deg, #101d29, #071019);
  }
}

@media (max-width: 560px) {
  .login-card {
    justify-content: flex-start;
    padding: 22px 16px 18px;
  }

  .login-brand-row {
    align-items: center;
    margin-bottom: 28px;
    padding-inline: 4px;
  }

  .login-logo {
    width: 220px;
    max-width: 72vw;
    max-height: 126px;
  }

  .secure-badge {
    display: inline-flex;
    padding: 7px;
    font-size: 0;
  }

  .login-copy {
    padding-inline: 4px;
  }

  .login-copy h1 {
    font-size: clamp(31px, 10vw, 39px);
  }

  .login-form {
    margin-top: 24px;
    padding: 19px 16px;
    border-radius: 16px;
  }

  .login-community-links {
    grid-template-columns: 1fr;
  }

  .credit {
    margin-top: 16px;
  }

  .app .panel-header,
  .app .panel-body {
    padding-inline: 16px;
  }
}
