:root {
  color-scheme: light;
  --pw-ink: #111A2A;
  --pw-muted: #596675;
  --pw-paper: #f5f4ef;
  --pw-card: #fffefa;
  --pw-line: #dcded8;
  --pw-gold: #8C784D;
  --pw-gold-dark: #79643F;
  --pw-teal: #79643F;
  --pw-error: #a33f39;
  --pw-shadow: 0 22px 70px rgba(17, 26, 42, .08);
  font-family: "DM Sans", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--pw-paper); color: var(--pw-ink); }
button, input, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(140,120,77,.42); outline-offset: 3px; }

.pw-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(280px, 36%) 1fr; }
.pw-aside { background: #F3F1EC; padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.pw-aside:after { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(140,120,77,.27); border-radius: 50%; right: -185px; bottom: 10%; box-shadow: 0 0 0 28px rgba(140,120,77,.035), 0 0 0 58px rgba(140,120,77,.03); pointer-events: none; }
.pw-brand { color: var(--pw-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.pw-mark { display: block; width: auto; height: 38px; border-radius: 0; background: transparent; object-fit: contain; mix-blend-mode: multiply; }
.pw-brand-copy { display: flex; flex-direction: column; }
.pw-brand-name { color: #111A2A; font-family: Georgia, "Times New Roman", Times, serif; font-size: 18px; font-weight: 600; letter-spacing: 1.5px; line-height: 1.1; white-space: nowrap; }
.pw-brand-tagline { position: absolute; left: clamp(28px, 5vw, 72px); top: calc(clamp(28px, 5vw, 72px) + 54px); margin: 0; color: #79643F; font-family: Inter, sans-serif; font-size: 9px; font-weight: 500; letter-spacing: 1.5px; line-height: 1; white-space: nowrap; }
.pw-aside-copy { max-width: 440px; margin: 70px 0; position: relative; z-index: 1; }
.pw-kicker { color: #79643F; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.pw-aside h2 { font: 400 clamp(38px, 5vw, 64px)/.98 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; margin: 22px 0; max-width: 440px; overflow-wrap: anywhere; hyphens: auto; }
.pw-aside p { max-width: 330px; color: #536270; font-size: 14px; line-height: 1.75; }
.pw-trust { color: #596675; font-size: 11px; display: flex; gap: 9px; align-items: center; position: relative; z-index: 1; }
.pw-trust-mark { width: 20px; height: 20px; display: block; object-fit: contain; flex: 0 0 auto; }
.pw-main { display: flex; flex-direction: column; min-width: 0; }
.pw-topbar { height: 76px; display: flex; align-items: center; justify-content: flex-end; padding: 0 clamp(20px, 5vw, 70px); gap: 18px; }
.pw-locale { border: 0; background: transparent; color: var(--pw-muted); padding: 8px 10px; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.pw-locale:hover { background: rgba(17,26,42,.05); color: var(--pw-ink); }
.pw-login-link { color: var(--pw-muted); text-decoration: none; font-size: 12px; }
.pw-login-link:hover { color: var(--pw-ink); }
.pw-stage { width: min(100%, 720px); padding: 34px clamp(22px, 5vw, 72px) 64px; margin: auto; }
.pw-panel { background: var(--pw-card); border: 1px solid rgba(220,222,216,.9); box-shadow: var(--pw-shadow); padding: clamp(26px, 4vw, 48px); animation: pw-appear .32s ease-out both; }
@keyframes pw-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pw-eyebrow { color: #79643F; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.pw-panel h1 { font: 400 clamp(34px, 4vw, 47px)/1.03 "Instrument Serif", Georgia, serif; letter-spacing: -.018em; margin: 13px 0 12px; }
.pw-subtitle { color: var(--pw-muted); line-height: 1.65; margin: 0 0 28px; font-size: 14px; max-width: 500px; }
.pw-field { margin: 19px 0; }
.pw-field label { display: block; font-size: 12px; font-weight: 600; color: #79643F; margin-bottom: 8px; }
.pw-field input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--pw-line); border-radius: 3px; background: #fff; color: var(--pw-ink); }
.pw-field input::placeholder { color: #626B76; opacity: 1; }
.pw-help { color: var(--pw-muted); font-size: 11px; margin: 7px 0 0; line-height: 1.5; }
.pw-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 23px 0 19px; }
.pw-plan { position: relative; min-height: 104px; border: 1px solid var(--pw-line); background: #fff; padding: 15px; text-align: left; cursor: pointer; color: var(--pw-ink); transition: border-color .16s, background .16s, transform .16s; }
.pw-plan:hover { transform: translateY(-2px); border-color: var(--pw-gold); }
.pw-plan[aria-pressed="true"] { border: 1px solid var(--pw-ink); background: #f0f0e9; box-shadow: inset 0 0 0 1px var(--pw-ink); }
.pw-plan strong { display: block; font-size: 12px; letter-spacing: .03em; }
.pw-plan b { display: block; font: 400 26px/1.2 "Instrument Serif", Georgia, serif; margin-top: 8px; }
.pw-plan small { display: block; color: var(--pw-muted); margin-top: 2px; font-size: 10px; }
.pw-plan-tag { position: absolute; right: 10px; top: 10px; color: #79643F; text-transform: uppercase; font-size: 9px; letter-spacing: .09em; font-weight: 700; }
.pw-button { min-height: 50px; border: 0; background: var(--pw-ink); color: #fff; padding: 0 18px; width: 100%; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .055em; transition: background .16s, opacity .16s; }
.pw-button:hover:not(:disabled) { background: #111A2A; }
.pw-button:disabled { opacity: 1; color: #596675; background: #e5e2da; cursor: not-allowed; }
.pw-button-secondary { color: var(--pw-ink); background: transparent; border: 1px solid var(--pw-line); }
.pw-button-secondary:hover:not(:disabled) { background: #f0f0e9; }
.pw-error, .pw-notice { border-left: 2px solid var(--pw-error); padding: 11px 13px; color: var(--pw-error); background: #fbf1ef; font-size: 12px; line-height: 1.55; margin: 15px 0; }
.pw-notice { border-color: var(--pw-gold); color: #65532f; background: #f7f3e8; }
.pw-divider { height: 1px; background: var(--pw-line); margin: 24px 0; }
.pw-inline-link { color: var(--pw-teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; font-size: inherit; }
.pw-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; text-align: center; padding: 0 20px 23px; color: #596675; font-size: 10px; }
.pw-footer a { color: var(--pw-teal); text-decoration: underline; text-underline-offset: 2px; }
.pw-checkrow { display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-bottom: 1px solid #ecece7; color: #485764; font-size: 12px; line-height: 1.55; }
.pw-checkrow input { accent-color: var(--pw-teal); margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; }
.pw-status { border: 1px solid var(--pw-line); background: #f8f8f3; padding: 15px; color: var(--pw-muted); font-size: 12px; line-height: 1.65; margin: 20px 0; }
.pw-docs { list-style: none; padding: 0; margin: 20px 0; }
.pw-docs li { border-top: 1px solid var(--pw-line); padding: 13px 2px; display: flex; align-items: center; gap: 11px; font-size: 13px; overflow-wrap: anywhere; }
.pw-doc-icon { width: 28px; height: 34px; border: 1px solid var(--pw-gold); display: grid; place-items: center; color: var(--pw-gold-dark); font-size: 9px; flex: 0 0 auto; }
.pw-vault-actions { display: flex; gap: 10px; margin-top: 22px; }
.pw-vault-actions .pw-button { flex: 1; }
.pw-upload { display: block; margin: 20px 0; padding: 18px; border: 1px dashed #aeb9b2; background: #f8f8f3; color: var(--pw-muted); font-size: 12px; }
.pw-upload input[type="file"] { display: none; }
.pw-skeleton { height: 14px; margin: 14px 0; background: linear-gradient(90deg,#e9ebe5 25%,#f4f4ef 50%,#e9ebe5 75%); background-size: 200% 100%; animation: pw-shimmer 1.4s ease infinite; }
@keyframes pw-shimmer { to { background-position: -200% 0; } }
.pw-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .pw-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pw-aside { min-height: 132px; align-self: start; padding: 20px 22px 16px; }
  .pw-brand-tagline { left: 22px; top: 70px; }
  .pw-aside-copy { display: none; }
  .pw-aside:after { width: 180px; height: 180px; right: -120px; bottom: -100px; }
  .pw-trust { margin-top: 38px; }
  .pw-topbar { height: 58px; padding: 0 20px; }
  .pw-stage { padding: 16px 16px 40px; }
  .pw-panel { padding: 26px 22px; }
}
@media (max-width: 420px) {
  .pw-plans { grid-template-columns: 1fr; }
  .pw-plan { min-height: 90px; }
  .pw-vault-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
