/* PRETTY MUSE Admin Theme — Foundation 006 */
:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #172b4d;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body.pm-admin { margin: 0; min-width: 320px; background: #f5f7fb; font-size: 13px; }
a { color: inherit; }
button, input { font: inherit; }
.pm-skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: #075da6; border: 2px solid #0875c9; border-radius: 8px; transform: translateY(-150%); }
.pm-skip-link:focus { transform: translateY(0); }
.pm-shell { display: flex; min-height: 100vh; }
.pm-sidebar { width: 248px; flex: 0 0 248px; background: #fff; border-right: 1px solid #e1e7ef; display: flex; flex-direction: column; }
.pm-brand { min-height: 76px; display: flex; align-items: center; gap: 11px; padding: 0 20px; border-bottom: 1px solid #edf1f5; text-decoration: none; }
.pm-brand-mark { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #0875c9; color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.pm-brand-copy strong, .pm-brand-copy small { display: block; }
.pm-brand-copy strong { font-size: 12px; letter-spacing: .35px; color: #18283c; }
.pm-brand-copy small { font-size: 9px; color: #77859a; margin-top: 4px; letter-spacing: .8px; }
.pm-nav { padding: 17px 12px; display: flex; flex-direction: column; gap: 4px; }
.pm-nav-item { min-height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 11px; color: #536174; border-radius: 7px; font-size: 12px; text-decoration: none; }
.pm-nav-item.is-active { background: #edf5fc; color: #075da6; font-weight: 650; }
.pm-nav-icon { width: 18px; flex: 0 0 18px; text-align: center; font-size: 15px; }
.pm-nav-label { margin: 14px 11px 5px; color: #9aa5b4; font-size: 9px; letter-spacing: .9px; font-weight: 700; }
.pm-nav-item.is-disabled { color: #8390a2; cursor: default; }
.pm-nav-item.is-disabled small { margin-left: auto; color: #9aa5b4; font-size: 9px; }
.pm-sidebar-foot { margin: auto 14px 14px; padding: 15px 8px 4px; border-top: 1px solid #e8edf3; display: flex; gap: 9px; align-items: flex-start; }
.pm-status-dot { width: 7px; height: 7px; flex: 0 0 7px; background: #1a9c63; border-radius: 50%; margin-top: 4px; }
.pm-sidebar-foot strong, .pm-sidebar-foot small { display: block; font-size: 11px; }
.pm-sidebar-foot strong { color: #344256; }
.pm-sidebar-foot small { font-size: 10px; color: #7d8998; margin-top: 4px; line-height: 1.45; }
.pm-main { min-width: 0; flex: 1; }
.pm-topbar { min-height: 64px; background: #fff; border-bottom: 1px solid #e1e7ee; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; }
.pm-topbar-left, .pm-topbar-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pm-breadcrumb { display: flex; align-items: center; gap: 13px; color: #6b788b; white-space: nowrap; }
.pm-breadcrumb strong { color: #0875c9; font-size: 11px; letter-spacing: .45px; }
.pm-breadcrumb span[aria-hidden] { color: #d0d8e2; }
.pm-preview-pill { display: inline-flex; align-items: center; gap: 8px; color: #66758a; font-size: 11px; white-space: nowrap; }
.pm-preview-pill .pm-status-dot { background: #d08b2c; }
.pm-user { min-width: 0; display: flex; align-items: center; gap: 9px; color: #344256; }
.pm-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #0875c9; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pm-user-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.pm-logout-form { margin: 0; }
.pm-logout-button { border: 1px solid #d7e0e9; border-radius: 7px; padding: 8px 12px; background: #fff; color: #40536a; font-size: 11px; cursor: pointer; }
.pm-logout-button:hover { background: #f5f8fb; border-color: #b9c8d8; }
.pm-menu-toggle { display: none; border: 1px solid #dfe6ee; background: #fff; color: #344256; border-radius: 7px; width: 36px; height: 36px; cursor: pointer; }
.pm-content { padding: 30px 28px 20px; max-width: 1740px; margin: 0 auto; }
.pm-eyebrow { margin: 0 0 7px; color: #0875c9; font-size: 9px; letter-spacing: 1px; font-weight: 750; }
.pm-notice { display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid #dce8f4; border-left: 3px solid #0875c9; border-radius: 9px; padding: 14px 16px; margin-bottom: 26px; }
.pm-notice-icon { width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid #c9dff2; border-radius: 50%; color: #0875c9; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pm-notice strong { display: block; color: #2a3b50; font-size: 12px; }
.pm-notice p { margin: 4px 0 0; color: #718096; font-size: 11px; line-height: 1.55; }
.pm-section { margin-bottom: 24px; }
.pm-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 13px; }
.pm-section-heading h2, .pm-panel h2 { margin: 0; font-size: 16px; color: #1c2f46; font-weight: 650; }
.pm-section-heading p { margin: 5px 0 0; color: #8491a3; font-size: 11px; }
.pm-section-status { color: #7d8999; font-size: 10px; white-space: nowrap; }
.pm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.pm-card { min-width: 0; background: #fff; border: 1px solid #e1e7ef; border-radius: 11px; box-shadow: 0 2px 8px rgba(31, 55, 85, .025); }
.pm-kpi { padding: 17px 18px 15px; min-height: 164px; }
.pm-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pm-kpi-label { color: #8996a8; font-size: 9px; letter-spacing: .8px; font-weight: 750; }
.pm-kpi-symbol { color: #a4b1c0; font-size: 15px; }
.pm-kpi h3 { margin: 15px 0 6px; font-size: 12px; font-weight: 600; color: #40516a; }
.pm-kpi-value { font-size: 27px; font-weight: 700; letter-spacing: -.7px; color: #243951; }
.pm-kpi p { margin: 6px 0 10px; color: #8b97a7; font-size: 10px; }
.pm-data-state { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; background: #f5f7fa; color: #7c8999; padding: 5px 7px; font-size: 9px; }
.pm-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.pm-panel { padding: 20px; }
.pm-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pm-panel-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; background: #f0f6fc; color: #0875c9; display: grid; place-items: center; font-size: 16px; }
.pm-subtitle { color: #8491a3; font-size: 11px; line-height: 1.55; margin: 10px 0 15px; }
.pm-summary-list { border-top: 1px solid #edf1f5; }
.pm-list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; border-bottom: 1px solid #edf1f5; color: #647388; font-size: 11px; }
.pm-list-row strong { color: #34465e; font-size: 12px; font-weight: 600; }
.pm-account-box { background: #f8fbff; border: 1px solid #e2ebf6; border-radius: 8px; padding: 12px 14px; margin: 12px 0 15px; }
.pm-account-box span, .pm-account-box small { display: block; color: #7c899b; font-size: 10px; }
.pm-account-box strong { display: block; font-size: 23px; margin: 4px 0; color: #243951; }
.pm-panel-footer { margin-top: 14px; }
.pm-shortcuts { padding: 20px; margin-bottom: 16px; }
.pm-shortcuts .pm-section-heading { margin-bottom: 15px; }
.pm-shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pm-shortcut { min-width: 0; display: flex; align-items: center; gap: 12px; border: 1px solid #e3e9f0; border-radius: 9px; padding: 13px; background: #fff; }
.pm-shortcut-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; background: #f3f7fb; color: #7e91a7; display: grid; place-items: center; font-size: 16px; }
.pm-shortcut-copy { min-width: 0; flex: 1; }
.pm-shortcut-copy strong, .pm-shortcut-copy small { display: block; }
.pm-shortcut-copy strong { color: #354960; font-size: 11px; font-weight: 650; }
.pm-shortcut-copy small { margin-top: 5px; color: #8491a3; font-size: 10px; line-height: 1.4; }
.pm-shortcut-state { color: #8a96a5; font-size: 9px; white-space: nowrap; }
.pm-page-footer { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px 4px; color: #9aa5b4; font-size: 9px; }
@media (min-width: 1500px) { .pm-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .pm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pm-topbar { padding: 0 18px; } .pm-content { padding: 24px 18px 16px; } }
@media (max-width: 900px) { .pm-sidebar { width: 220px; flex-basis: 220px; } .pm-overview-grid { grid-template-columns: 1fr; } .pm-topbar-right { gap: 10px; } .pm-user-name { max-width: 140px; } }
@media (max-width: 700px) {
  .pm-menu-toggle { display: inline-grid; place-items: center; }
  .pm-sidebar { position: fixed; z-index: 100; inset: 0 auto 0 0; width: 250px; transform: translateX(-102%); transition: transform .18s ease; box-shadow: 10px 0 30px rgba(23, 43, 77, .08); }
  body.pm-admin.is-nav-open .pm-sidebar { transform: translateX(0); }
  body.pm-admin.is-nav-open::after { content: ""; position: fixed; z-index: 90; inset: 0; background: rgba(18, 35, 55, .28); }
  .pm-topbar { min-height: 60px; padding: 0 12px; }
  .pm-topbar-left { gap: 10px; }
  .pm-breadcrumb { gap: 8px; font-size: 11px; }
  .pm-preview-pill { display: none; }
  .pm-user-name { display: none; }
  .pm-topbar-right { gap: 8px; }
  .pm-content { padding: 20px 12px 14px; }
  .pm-section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .pm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .pm-kpi { padding: 14px; min-height: 155px; }
  .pm-kpi-label { font-size: 8px; }
  .pm-kpi h3 { font-size: 11px; }
  .pm-kpi-value { font-size: 24px; }
  .pm-panel, .pm-shortcuts { padding: 15px; }
  .pm-shortcut-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .pm-kpis { grid-template-columns: 1fr 1fr; }
  .pm-notice { padding: 12px; }
  .pm-notice p { font-size: 10px; }
  .pm-page-footer { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Patch 006.1 — persistent Admin shell; only the central workspace scrolls. */
html, body.pm-admin {
  height: 100%;
  overflow: hidden;
}
.pm-shell {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}
.pm-sidebar {
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pm-main {
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pm-topbar {
  flex: 0 0 auto;
}
.pm-content {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  max-width: 1700px;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.pm-breadcrumb [aria-current="page"] {
  color: #344256;
  font-weight: 600;
}


/* Patch 006.3 — account dropdown and seconds clock; shared shell sizing preserved. */
.pm-topbar-right { gap: 18px; }
.pm-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52647a;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pm-clock-face {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1.5px solid #9aacc0;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #f3f7fb);
  box-shadow: inset 0 0 0 2px #fff, 0 1px 3px rgba(28, 47, 70, .08);
}
.pm-clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 1.5px;
  border-radius: 2px;
  transform-origin: 50% 100%;
  background: #52647a;
}
.pm-clock-hand-hour { height: 6px; transform: translateX(-50%) rotate(0deg); }
.pm-clock-hand-minute { height: 8px; transform: translateX(-50%) rotate(0deg); }
.pm-clock-hand-second { height: 9px; width: 1px; background: #0875c9; transform: translateX(-50%) rotate(0deg); }
.pm-clock-pin { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #0875c9; transform: translate(-50%, -50%); }
.pm-clock-time { font-size: 11px; letter-spacing: .15px; }
.pm-account-menu { position: relative; }
.pm-account-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 38px; padding: 4px 8px 4px 4px;
  border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: #344256; cursor: pointer;
}
.pm-account-trigger:hover, .pm-account-trigger[aria-expanded="true"] {
  background: #f5f8fc; border-color: #e3eaf2;
}
.pm-account-label { font-size: 11px; font-weight: 600; white-space: nowrap; }
.pm-account-chevron { color: #7b899b; font-size: 15px; margin-left: 1px; }
.pm-account-dropdown {
  position: absolute; z-index: 300; top: calc(100% + 9px); right: 0;
  width: 220px; padding: 7px;
  background: #fff; border: 1px solid #e1e7ef; border-radius: 12px;
  box-shadow: 0 14px 36px rgba(23, 43, 77, .16);
}
.pm-account-dropdown[hidden] { display: none; }
.pm-dropdown-heading { display: flex; align-items: center; gap: 10px; padding: 10px 9px 12px; }
.pm-dropdown-heading strong, .pm-dropdown-heading small { display: block; }
.pm-dropdown-heading strong { font-size: 11px; color: #263b53; }
.pm-dropdown-heading small { margin-top: 4px; font-size: 10px; color: #8a97a8; }
.pm-avatar-small { width: 28px; height: 28px; flex-basis: 28px; font-size: 11px; }
.pm-dropdown-item {
  display: block; width: 100%; border: 0; border-radius: 7px;
  padding: 10px 11px; background: transparent; color: #465a71;
  text-align: left; font: inherit; font-size: 11px; cursor: pointer;
}
.pm-dropdown-item:hover, .pm-dropdown-item:focus-visible { outline: none; background: #f1f6fb; color: #075da6; }
.pm-dropdown-divider { height: 1px; background: #edf1f5; margin: 6px 3px; }
.pm-dropdown-logout { margin: 0; }
.pm-dropdown-item.is-logout { color: #b42332; }
.pm-dropdown-item.is-logout:hover { background: #fff2f3; color: #a21b29; }
@media (max-width: 900px) {
  .pm-account-label { display: none; }
  .pm-account-trigger { gap: 5px; padding-right: 5px; }
}
@media (max-width: 700px) {
  .pm-topbar-right { gap: 8px; }
  .pm-clock { gap: 5px; }
  .pm-clock-face { width: 22px; height: 22px; flex-basis: 22px; }
  .pm-clock-time { font-size: 10px; }
  .pm-account-chevron { display: none; }
  .pm-account-dropdown { right: 0; width: 210px; }
}
@media (max-width: 390px) {
  .pm-clock-time { font-size: 9px; }
  .pm-clock-face { width: 20px; height: 20px; flex-basis: 20px; }
}


/* Patch 007 — Profile and Settings shared two-card foundation. */
.pm-foundation-page { margin-bottom: 24px; }
.pm-foundation-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.pm-foundation-card {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.pm-foundation-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.pm-foundation-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0f6fc;
  color: #0875c9;
  font-size: 17px;
}
.pm-foundation-card-heading h2 {
  margin: 0;
  color: #1c2f46;
  font-size: 15px;
  font-weight: 650;
}
.pm-foundation-card-heading p {
  margin: 6px 0 0;
  color: #8491a3;
  font-size: 11px;
  line-height: 1.55;
}
.pm-detail-list { margin: 0 0 18px; }
.pm-detail-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f5;
}
.pm-detail-list dt { color: #7b899b; font-size: 11px; }
.pm-detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #34465e;
  font-size: 11px;
  font-weight: 600;
}
.pm-detail-list dd a { color: #0875c9; text-decoration: none; }
.pm-detail-list dd a:hover { text-decoration: underline; }
.pm-foundation-card > .pm-data-state { align-self: flex-start; margin-top: auto; }
.pm-information-board {
  flex: 1;
  background: #f8fbff;
  border: 1px solid #e2ebf6;
  border-radius: 9px;
  padding: 17px;
  margin-bottom: 18px;
  color: #647388;
  font-size: 11px;
  line-height: 1.65;
}
.pm-information-board strong { display: block; color: #34465e; font-size: 12px; margin-bottom: 8px; }
.pm-information-board p { margin: 0 0 10px; }
.pm-information-board p:last-child { margin-bottom: 0; }
.pm-password-foundation-form { margin: 0 0 16px; }
.pm-password-foundation-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.pm-password-foundation-form label {
  display: block;
  color: #647388;
  font-size: 11px;
  margin: 0 0 6px;
}
.pm-password-foundation-form input {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: 0 0 14px;
  padding: 8px 10px;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  background: #f7f9fc;
  color: #718096;
}
.pm-password-foundation-form button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0 15px;
  background: #0875c9;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  opacity: .55;
}
.pm-inline-notice {
  background: #fffaf0;
  border: 1px solid #f2e4c5;
  border-left: 3px solid #d08b2c;
  border-radius: 8px;
  padding: 13px 14px;
  color: #7b6a4c;
  font-size: 10px;
  line-height: 1.6;
}
.pm-inline-notice strong { display: block; color: #6f5528; font-size: 11px; margin-bottom: 4px; }
.pm-inline-notice p { margin: 0; }
@media (max-width: 800px) {
  .pm-foundation-card-grid { grid-template-columns: minmax(0, 1fr); }
  .pm-foundation-card { padding: 17px; }
}
@media (max-width: 420px) {
  .pm-detail-list > div { grid-template-columns: 1fr; gap: 5px; }
}

/* Patch 021 — refined, responsive Admin sign-in page. */
.pm-login-page {
  min-height: 100vh;
  min-width: 320px;
  display: grid;
  place-items: center;
  padding: 36px 20px 24px;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(8, 117, 201, .075), transparent 38%),
    radial-gradient(ellipse at 90% 90%, rgba(116, 142, 181, .09), transparent 36%),
    #f4f7fb;
  color: #20344c;
}
.pm-login-wrap {
  width: min(100%, 440px);
  margin: auto;
}
.pm-login-card {
  overflow: hidden;
  background: rgba(255, 255, 255, .97);
  border: 1px solid #e1e8f0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(31, 55, 85, .10), 0 3px 10px rgba(31, 55, 85, .035);
}
.pm-login-brand {
  min-height: 86px;
  padding: 0 34px;
  border-bottom: 1px solid #edf1f6;
  background: linear-gradient(180deg, #fff, #fcfdff);
}
.pm-login-brand .pm-brand-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 12px;
  font-size: 22px;
  box-shadow: 0 5px 12px rgba(8, 117, 201, .20);
}
.pm-login-brand .pm-brand-copy strong {
  font-size: 13px;
  letter-spacing: .55px;
}
.pm-login-brand .pm-brand-copy small {
  font-size: 9px;
  letter-spacing: 1.35px;
}
.pm-login-content {
  padding: 34px 34px 27px;
}
.pm-login-eyebrow {
  margin: 0 0 10px;
  color: #0875c9;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.35px;
}
.pm-login-content h1 {
  margin: 0;
  color: #1e3047;
  font-size: clamp(27px, 5vw, 32px);
  line-height: 1.2;
  letter-spacing: -1.05px;
  font-weight: 700;
}
.pm-login-intro {
  margin: 10px 0 27px;
  color: #758398;
  font-size: 13px;
  line-height: 1.6;
}
.pm-login-form {
  display: grid;
  gap: 19px;
  margin: 0;
}
.pm-login-field {
  display: grid;
  gap: 8px;
}
.pm-login-field label {
  color: #394e66;
  font-size: 12px;
  font-weight: 650;
}
.pm-login-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  outline: none;
  background: #fbfcfe;
  color: #20344c;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pm-login-field input:hover {
  border-color: #c3d1df;
}
.pm-login-field input:focus {
  border-color: #0875c9;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 117, 201, .12);
}
.pm-login-submit {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 3px;
  padding: 12px 16px;
  border: 1px solid #086bb8;
  border-radius: 9px;
  background: linear-gradient(135deg, #0875c9, #075fa9);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 15px rgba(8, 117, 201, .18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.pm-login-submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 9px 20px rgba(8, 117, 201, .24);
  transform: translateY(-1px);
}
.pm-login-submit:active {
  transform: translateY(0);
}
.pm-login-submit:focus-visible {
  outline: 3px solid rgba(8, 117, 201, .3);
  outline-offset: 3px;
}
.pm-login-submit-arrow {
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
}
.pm-login-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 21px;
  padding: 12px 13px;
  border: 1px solid #f0d4d1;
  border-radius: 9px;
  background: #fff8f7;
  color: #9c3d36;
}
.pm-login-message-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fbe5e2;
  color: #a33e36;
  font-size: 11px;
  font-weight: 800;
}
.pm-login-message p {
  margin: 1px 0 0;
  font-size: 11px;
  line-height: 1.55;
}
.pm-login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #edf1f5;
  color: #8b98a9;
  font-size: 10px;
}
.pm-login-lock {
  color: #7f91a7;
  font-size: 14px;
}
.pm-login-copyright {
  margin: 17px 0 0;
  color: #a0aaba;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.1px;
  text-align: center;
}
.pm-login-copyright span {
  margin: 0 5px;
  color: #c1cbd7;
}
@media (max-width: 480px) {
  .pm-login-page { padding: 22px 14px 18px; }
  .pm-login-brand { min-height: 75px; padding: 0 23px; }
  .pm-login-content { padding: 28px 23px 23px; }
  .pm-login-intro { margin-bottom: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-login-field input, .pm-login-submit { transition: none; }
}


/* Patch 022 — Settings password form aligned with the centralized Pretty Muse UI. */
.pm-settings-password-form {
  display: grid;
  gap: 16px;
  margin: 0;
}
.pm-settings-password-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.pm-settings-password-field .pm-ui-field__label {
  color: #34465e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}
.pm-settings-password-control {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.pm-settings-password-control .pm-ui-input {
  min-height: 42px;
  padding-right: 48px;
  background: #fff;
  color: #26384d;
}
.pm-settings-password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #718096;
  cursor: pointer;
}
.pm-settings-password-toggle:hover { background: #edf5fc; color: #075da6; }
.pm-settings-password-toggle:focus-visible {
  outline: 3px solid rgba(8,117,201,.22);
  outline-offset: 1px;
}
.pm-password-eye-off { display: none; }
.pm-settings-password-toggle[aria-pressed="true"] .pm-password-eye { display: none; }
.pm-settings-password-toggle[aria-pressed="true"] .pm-password-eye-off { display: block; }
.pm-settings-password-hint {
  min-height: 16px;
  margin: -1px 0 0;
  color: #718096;
  font-size: 11px;
  line-height: 1.45;
}
.pm-settings-password-hint.is-valid { color: #168553; }
.pm-settings-password-hint.is-invalid { color: #b52f3d; }
.pm-settings-password-actions { display: flex; align-items: center; padding-top: 2px; }
.pm-settings-password-submit { min-width: 158px; min-height: 40px; }
.pm-settings-password-submit:disabled { opacity: .65; cursor: wait; }
.pm-settings-password-card > .pm-ui-alert {
  margin-bottom: 17px;
}
.pm-settings-password-card .pm-ui-alert__content p {
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .pm-settings-password-form { gap: 14px; }
}


/* Patch 028 — Portal Management cards and portal credential settings. */
.pm-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pm-portal-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 214px;
  padding: 22px;
  color: #243951;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pm-portal-card:hover {
  border-color: #b9d7f1;
  box-shadow: 0 8px 22px rgba(31, 55, 85, .07);
  transform: translateY(-2px);
}
.pm-portal-card:focus-visible {
  outline: 3px solid rgba(8, 117, 201, .25);
  outline-offset: 2px;
}
.pm-portal-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pm-portal-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f0f6fc;
  color: #0875c9;
  font-size: 18px;
}
.pm-portal-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 6px;
  padding: 5px 8px;
  background: #f4f6f9;
  color: #77869a;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}
.pm-portal-status.is-configured { background: #eaf7f0; color: #188354; }
.pm-portal-status.is-unconfigured { background: #f4f6f9; color: #77869a; }
.pm-portal-card__title {
  color: #1c2f46;
  font-size: 15px;
  font-weight: 650;
}
.pm-portal-card__description {
  color: #8491a3;
  font-size: 11px;
  line-height: 1.55;
}
.pm-portal-card__url {
  color: #5f728a;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.pm-portal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf1f5;
  color: #0875c9;
  font-size: 11px;
  font-weight: 650;
}
.pm-portal-notice, .pm-portal-scope-note {
  margin: 0 0 17px;
  padding: 15px 17px;
  border: 1px solid #dce8f4;
  border-radius: 9px;
  background: #f7fbff;
  color: #38536e;
}
.pm-portal-notice strong, .pm-portal-scope-note strong {
  display: block;
  color: #29435e;
  font-size: 12px;
}
.pm-portal-notice p, .pm-portal-scope-note p {
  margin: 6px 0 0;
  color: #6e8299;
  font-size: 11px;
  line-height: 1.55;
}
.pm-portal-scope-note { margin: 18px 0 0; background: #fff; border-color: #e4e9f0; }
.pm-portal-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px;
  align-items: stretch;
}
.pm-portal-settings-card, .pm-portal-info-card {
  min-width: 0;
  padding: 22px;
}
.pm-portal-form { display: grid; gap: 17px; }
.pm-portal-form .pm-ui-input {
  width: 100%;
  min-height: 42px;
  background: #fff;
  color: #26384d;
}
.pm-portal-enable {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fafbfd;
  cursor: pointer;
}
.pm-portal-enable input { margin: 3px 0 0; accent-color: #0875c9; }
.pm-portal-enable strong, .pm-portal-enable small { display: block; }
.pm-portal-enable strong { color: #34465e; font-size: 11px; }
.pm-portal-enable small { margin-top: 5px; color: #8491a3; font-size: 10px; line-height: 1.5; }
.pm-portal-back { color: #0875c9; text-decoration: none; font-weight: 650; }
.pm-portal-back:hover { text-decoration: underline; }
.pm-portal-info-card .pm-detail-list { margin-bottom: 17px; }
.pm-portal-info-card .pm-detail-list > div { grid-template-columns: minmax(95px, .65fr) minmax(0, 1.35fr); }
.pm-portal-info-card .pm-detail-list dd { font-weight: 500; }
.pm-portal-settings .pm-ui-toast { margin-bottom: 15px; }
@media (max-width: 1050px) {
  .pm-portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-portal-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pm-portal-grid { grid-template-columns: 1fr; gap: 12px; }
  .pm-portal-card { min-height: 190px; padding: 18px; }
  .pm-portal-settings-card, .pm-portal-info-card { padding: 17px; }
}


/* Management Portal one-time reset credential reveal — Patch 033 */
.pm-management-reset-card{display:grid;gap:12px;margin-top:22px;padding:16px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fbff}
.pm-management-reset-card h3{margin:0 0 6px;font-size:14px;color:#173b64}
.pm-management-reset-card p,.pm-management-reset-card small{margin:0;color:#71839b;font-size:11px;line-height:1.6}
.pm-management-reset-card form{margin:0}
.pm-management-reset-result{display:grid;gap:9px;padding:12px;border:1px solid #b8d8f5;border-radius:9px;background:#fff}
.pm-management-reset-result>strong{font-size:12px;color:#1266a8}
.pm-management-reset-copy-row{display:flex;gap:8px}
.pm-management-reset-copy-row input{min-width:0;flex:1;padding:10px 12px;border:1px solid #dbe4f0;border-radius:7px;background:#f4f7fb;color:#102a43;font:600 18px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em}


/* Patch 023 — Settings password policy, strength meter and premium security panel. */
.pm-settings-page .pm-foundation-card-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 22px;
}
.pm-settings-page .pm-foundation-card {
  border: 1px solid #e1e8f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  box-shadow: 0 8px 24px rgba(29, 53, 82, .035);
}
.pm-settings-password-form { display: grid; gap: 18px; }
.pm-settings-password-field { min-width: 0; }
.pm-settings-password-field .pm-ui-field__label { display: block; margin-bottom: 7px; }
.pm-settings-password-control { position: relative; }
.pm-settings-password-control .pm-ui-input {
  width: 100%;
  min-height: 43px;
  padding: 11px 48px 11px 13px;
  border-radius: 9px;
  background: #fbfcfe;
  color: #20344c;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.pm-settings-password-control .pm-ui-input:focus {
  outline: none;
  border-color: #78b7e8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 117, 201, .10);
}
.pm-settings-password-control .pm-ui-input.is-invalid {
  border-color: #d97777;
}
.pm-settings-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #647a92;
  cursor: pointer;
}
.pm-settings-password-toggle:hover,
.pm-settings-password-toggle:focus-visible {
  outline: none;
  background: #edf5fc;
  color: #086bb5;
}
.pm-settings-password-hint {
  margin: 6px 0 0;
  color: #8291a4;
  font-size: 10px;
  line-height: 1.45;
}
.pm-settings-password-hint.is-valid { color: #25804b; }
.pm-settings-password-hint.is-invalid { color: #b54747; }
.pm-password-strength {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid #e5ebf3;
  border-radius: 10px;
  background: linear-gradient(135deg, #f9fbfe, #f5f9fd);
}
.pm-password-strength-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #718198;
  font-size: 10px;
}
.pm-password-strength-top strong { color: #63758c; font-size: 10px; font-weight: 700; }
.pm-password-strength-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 9px 0 8px;
}
.pm-password-strength-track span {
  height: 4px;
  border-radius: 99px;
  background: #dfe6ee;
  transition: background .18s ease;
}
.pm-password-strength[data-strength="1"] .pm-password-strength-track span:nth-child(-n+1) { background: #d97706; }
.pm-password-strength[data-strength="2"] .pm-password-strength-track span:nth-child(-n+2) { background: #d97706; }
.pm-password-strength[data-strength="3"] .pm-password-strength-track span:nth-child(-n+3) { background: #16804d; }
.pm-password-strength[data-strength="4"] .pm-password-strength-track span { background: #16804d; }
.pm-password-strength[data-strength="1"] .pm-password-strength-top strong { color: #b66a12; }
.pm-password-strength[data-strength="2"] .pm-password-strength-top strong { color: #a66a16; }
.pm-password-strength[data-strength="3"] .pm-password-strength-top strong,
.pm-password-strength[data-strength="4"] .pm-password-strength-top strong { color: #16804d; }
.pm-password-strength p {
  margin: 0;
  color: #8190a4;
  font-size: 10px;
  line-height: 1.55;
}
.pm-settings-password-actions { margin-top: 2px; }
.pm-settings-password-submit { width: 100%; justify-content: center; gap: 10px; min-height: 42px; }
.pm-settings-security-card { gap: 0; }
.pm-settings-security-card .pm-foundation-card-heading { margin-bottom: 20px; }
.pm-settings-security-panels { display: grid; gap: 12px; }
.pm-settings-security-panel {
  position: relative;
  padding: 17px 18px 18px;
  border: 1px solid #e4eaf2;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(31, 55, 85, .025);
}
.pm-settings-security-panel--primary {
  border-color: #d5e7f7;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 72%);
}
.pm-settings-security-kicker {
  display: block;
  margin-bottom: 8px;
  color: #0875c9;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.1px;
}
.pm-settings-security-panel h3 {
  margin: 0;
  color: #263e58;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.pm-settings-security-panel p {
  margin: 7px 0 0;
  color: #71839a;
  font-size: 11px;
  line-height: 1.7;
}
.pm-settings-security-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: #8290a2;
  font-size: 10px;
  line-height: 1.5;
}
.pm-settings-security-status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #2b9a65;
  box-shadow: 0 0 0 3px rgba(43, 154, 101, .10);
}
.pm-settings-page .pm-page-footer { margin-top: 18px; }
@media (max-width: 900px) {
  .pm-settings-page .pm-foundation-card-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
}
@media (max-width: 520px) {
  .pm-settings-page .pm-foundation-card { padding: 17px; }
  .pm-settings-security-panel { padding: 15px; }
  .pm-password-strength { padding: 11px; }
}
