
.pm-account-page {
  --pm-text: #20282d; --pm-border: #dce2e5; --pm-accent: #176b60;
  width: min(760px, calc(100% - 32px)); margin: 48px auto;
  color: var(--pm-text); font: 15px/1.5 system-ui, sans-serif;
}
body:has(.pm-account-page) { margin: 0; background: #f3f5f7; }
.pm-account-page *, .pm-account-menu * { box-sizing: border-box; }
.pm-account-page h1 { font-size: 28px; margin: 0 0 20px; }
.pm-account-page h2 { font-size: 20px; margin: 0 0 16px; }
.pm-account-page a, .pm-account-menu a { color: #176b60; }
.pm-account-page label { display: grid; gap: 6px; margin: 16px 0; }
.pm-account-page input {
  font: inherit; width: 100%; padding: 11px; border: 1px solid #bac5ca;
  border-radius: 5px; background: white; color: #20282d;
}
.pm-account-page button, .pm-account-menu button {
  font: inherit; padding: 10px 15px; cursor: pointer;
  border: 1px solid #176b60; border-radius: 5px;
  background: #176b60; color: white;
}
.pm-account-page button:disabled, .pm-account-menu button:disabled {
  opacity: .6; cursor: wait;
}
.pm-account-page form, .pm-workspace-card {
  padding: 24px; margin: 18px 0; background: white;
  border: 1px solid #dce2e5; border-radius: 8px;
}
.pm-account-page nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0; }
.pm-account-page :focus-visible, .pm-account-menu :focus-visible {
  outline: 3px solid #3888b6; outline-offset: 3px;
}
.pm-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.pm-account-page > a { display: inline-block; margin-block: 6px; }
.pm-account-notice { min-height: 24px; overflow-wrap: anywhere; }
.pm-account-notice[data-error="true"] { color: #a82c3b; }
.pm-account-menu { position: relative; margin-inline-start: auto; max-width: 100%; }
.pm-account-menu summary { cursor: pointer; overflow-wrap: anywhere; padding: 10px; }
.pm-account-menu-panel {
  position: absolute; inset-inline-end: 0; z-index: 20;
  width: min(280px, calc(100vw - 32px)); display: grid; gap: 14px;
  padding: 20px; background: white; color: #20282d;
  border: 1px solid #dce2e5; border-radius: 8px; box-shadow: 0 8px 24px #0002;
}
.workspace-chip { display: flex !important; }
.workspace-chip > a { display: grid; gap: 5px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .workspace-chip { margin-top: 16px; }
  .pm-account-page { margin-block: 24px; }
}

.pm-entry-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto;
}
.pm-entry-layout > .pm-account-page {
  width: 100%; max-width: 760px; margin: 0 auto;
}
.pm-entry-layout:has(.pm-product-story:not([hidden])) {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 56px; align-items: start;
}
.pm-product-story {
  color: #20282d; font: 16px/1.65 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.pm-product-story h1 {
  font-size: clamp(30px, 3.5vw, 46px); line-height: 1.15;
  letter-spacing: -.025em; margin: 12px 0 24px;
}
.pm-product-story h2 { margin: 30px 0 14px; font-size: 21px; }
.pm-product-story h3 { font-size: 17px; margin-bottom: 6px; }
.pm-product-story p { margin: 0 0 18px; }
.pm-product-story ol { padding-inline-start: 24px; }
.pm-product-story li { padding-inline-start: 8px; margin-bottom: 22px; }
.pm-product-story .pm-story-label {
  color: #176b60; font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.pm-product-story .pm-story-note {
  padding: 20px; background: #e7f3ef; border-radius: 8px;
}
.pm-passkey-section { margin-top: 36px; }
.pm-passkey-section h3 { margin-top: 0; }
.pm-account-page > button { margin: 0 0 12px; }

/* Log on: one card, password on the left and passkey on the right; stacked on narrow screens. */
.pm-entry-layout > .pm-account-page:has(.pm-login-card) { max-width: 960px; }
.pm-login-card {
  padding: 24px 30px; margin: 18px 0; background: white;
  border: 1px solid #dce2e5; border-radius: 8px;
}
.pm-login-card h2 { margin-bottom: 4px; }
.pm-login-columns {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 0 56px; align-items: start;
}
.pm-account-page .pm-login-columns form { padding: 0; margin: 0; border: 0; background: none; }
@media (max-width: 700px) {
  .pm-login-columns { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pm-login-card { padding: 20px; }
}
@media (max-width: 860px) {
  .pm-entry-layout:has(.pm-product-story:not([hidden])) {
    display: flex; flex-direction: column; gap: 28px;
  }
  .pm-entry-layout { margin-block: 24px; }
  .pm-product-story, .pm-entry-layout > .pm-account-page { width: 100%; }
}

/* Product-owned artwork supplied through the shared branding contract. */
.pm-account-page .pm-account-brand { margin: 0 0 24px; }
.pm-account-brand a { display: inline-block; max-width: 100%; }
.pm-account-brand img {
  display: block;
  width: min(320px, 100%);
  max-width: 100%;
  height: auto;
}
