/* Personal workspace: the same navigation and surfaces as the public builder. */
body.mapstl-prototype #account-page { max-width: 1240px; margin: 0 auto; padding: 30px 24px 44px; }
.account-workspace { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 28px; color: #1d3b4d; }
.account-workspace [hidden],.header-account [hidden] { display: none !important; }
.account-workspace .icon,.account-navigation .icon,.account-generator-link .icon { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-sidebar { position: sticky; top: 105px; padding: 18px 12px 12px; background: #fff; border: 1px solid #d9e4eb; border-radius: 14px; }
.account-identity { display: flex; align-items: center; gap: 10px; padding: 0 5px 19px; margin-bottom: 10px; border-bottom: 1px solid #e3eaf0; min-width: 0; }
.account-identity > div { min-width: 0; }
.account-identity strong { display: block; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.account-identity span:not(.account-avatar) { display: block; margin-top: 4px; color: #687e8c; font-size: 12px; line-height: 1.4; }
.account-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: #e7f4e8; color: #247345; font-size: 19px; font-weight: 750; }
.account-navigation { display: grid; gap: 5px; }
.account-navigation a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 650; color: #4e6575; text-decoration: none; }
.account-navigation a:hover { background: #f2f6f8; }
.account-navigation a[aria-current=page] { color: #216c40; background: #edf7ed; border-color: #cce3cc; }
.account-navigation b { margin-left: auto; padding: 2px 7px; border-radius: 5px; background: #fff; font-size: 12px; }
.account-generator-link { display: flex; align-items: center; gap: 8px; padding: 16px 10px 6px; font-size: 13px; font-weight: 650; color: #267046; }
.account-content { min-width: 0; }
.account-workspace .surface { margin: 0; padding: 22px; border: 1px solid #d9e4eb; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #19324603; }
.account-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.account-section-heading > div { min-width: 0; }
.account-section-heading .account-eyebrow { margin: 0 0 8px; color: #4c8271; font-size: 11px; letter-spacing: .13em; font-weight: 750; }
.account-workspace h1 { font: 750 clamp(25px, 2.5vw, 32px)/1.25 var(--heading-font, sans-serif); letter-spacing: -.025em; color: #193b4a; margin: 0; }
.account-section-heading p:not(.account-eyebrow) { margin: 10px 0 0; max-width: 54ch; color: #647b8a; font-size: 14px; line-height: 1.6; }
.account-workspace h2 { margin: 0 0 12px; font: 700 18px/1.35 var(--heading-font, sans-serif); color: #224254; }
.account-workspace .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 15px; font-size: 13px; font-weight: 700; line-height: 1.4; border-radius: 7px; text-align: center; white-space: normal; box-shadow: none; }
.account-workspace .button.primary { background: #078d40; border-color: #078d40; color: #fff; }
.account-workspace .button.primary:hover { background: #087536; }
.account-workspace .button.secondary { color: #315f75; background: #f1f7fb; border-color: #cddfe9; }
.account-section-heading > .button { flex-shrink: 0; }
.account-list-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; font-size: 14px; }
.account-list-bar > span { display: flex; align-items: center; gap: 6px; color: #6e8290; font-size: 12px; }
.account-list-bar .icon { width: 15px; height: 15px; }
.account-count { display: inline-block; margin-left: 5px; padding: 2px 7px; background: #e4edf2; color: #426173; border-radius: 5px; font-size: 12px; }
.account-workspace .saved-map-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); margin: 0; gap: 18px; }
.account-workspace .saved-map-card { max-width: 440px; border-color: #d9e4eb; box-shadow: 0 3px 12px #19324604; transition: box-shadow .2s, border-color .2s; }
.account-workspace .saved-map-card:hover { border-color: #afc9bd; box-shadow: 0 5px 18px #183e4510; }
.account-workspace .saved-map-poster { aspect-ratio: 16/10; background: #f2f6f1; border-bottom: 1px solid #e0e8e9; }
.account-workspace .saved-map-copy { padding: 16px; }
.account-workspace .saved-map-copy h3 { font-size: 17px; line-height: 1.4; margin: 0; }
.account-workspace .saved-map-copy p { font-size: 12px; margin: 9px 0; }
.account-workspace .saved-map-swatches { gap: 5px; }
.account-workspace .saved-map-swatches i { width: 17px; height: 17px; border-radius: 5px; }
.account-workspace .saved-map-copy .record-actions { gap: 6px; margin-top: 12px; }
.account-workspace .saved-map-copy .button { min-height: 37px; padding: 8px 11px; font-size: 12px; }
.account-workspace .saved-map-copy .button:last-child { color: #286b91; background: #edf6fc; border-color: #c7dfe9; }
.account-workspace .account-empty { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 38px 24px; }
.account-empty > .icon { width: 38px; height: 38px; padding: 9px; box-sizing: content-box; margin-bottom: 16px; background: #eaf2f6; border-radius: 14px; color: #4c8096; }
.account-empty p { margin: 0 0 20px; max-width: 46ch; font-size: 14px; line-height: 1.6; color: #667e8c; }
.account-guest { grid-column: 1/-1; max-width: 660px; justify-self: center; text-align: center; margin: 25px auto !important; }
.account-guest > .icon { width: 42px; height: 42px; margin: 10px auto 20px; color: #76509b; }
.account-guest p { color: #647b8a; line-height: 1.7; margin: 20px 0; }
.account-guest .record-actions { justify-content: center; }
.account-guest small { display: block; margin: 22px 0 8px; color: #647b8a; }
.account-workspace .account-default-palette { background: #f5f8fa; }
.account-default-palette .personal-palette-default { padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; }
.account-default-palette form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.account-default-palette form > label { flex: 1 1 250px; }
.account-default-palette .form-error { flex-basis: 100%; margin: 0; }
.account-default-palette .form-error:empty { display: none; }
.account-default-palette .personal-palette-default > p { color: #647b8a; font-size: 12px; margin: 10px 0 0; line-height: 1.6; }
.account-palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.account-workspace .account-palette-card { padding: 0; overflow: hidden; }
.account-palette-strip { display: flex; height: 78px; border-bottom: 1px solid #dce4e8; }
.account-palette-strip span { flex: 1; min-width: 0; border-right: 1px solid #0000000a; }
.account-palette-info { padding: 20px; }
.account-palette-title { display: flex; align-items: start; flex-wrap: wrap; gap: 8px; }
.account-palette-title h2 { margin: 0; overflow-wrap: anywhere; }
.account-status { display: inline-block; background: #e6f4e7; color: #287343; border: 1px solid #c8e2cc; border-radius: 5px; padding: 3px 7px; font-size: 10px; font-weight: 750; }
.account-palette-info > p { color: #657c8b; font-size: 13px; margin: 12px 0 18px; }
.account-palette-info .record-actions { gap: 8px; flex-wrap: wrap; }
.account-card-links { display: flex; gap: 10px 16px; flex-wrap: wrap; border-top: 1px solid #e4eaee; padding-top: 14px; margin-top: 16px; }
.account-card-links :is(button,a) { padding: 0; border: 0; background: none; font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1.5; color: #4d687a; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.account-card-links button:disabled { opacity: .5; cursor: default; text-decoration: none; }
.account-card-links .account-danger-link { color: #a64943; }
.account-workspace label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 650; color: #415d6d; min-width: 0; }
.account-workspace :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select) { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #ccdce5; border-radius: 7px; background: #fff; padding: 9px 11px; color: #203e4e; font: 400 14px/1.4 var(--body-font,sans-serif); }
.account-workspace :is(a,button,input,select,summary):focus-visible,.header-account :is(a,button):focus-visible { outline: 3px solid #5c9dba; outline-offset: 3px; }
.account-workspace .form-stack { gap: 18px; margin: 0; }
.account-workspace .form-message { margin: 0 0 18px; color: #667d8a; font-size: 13px; line-height: 1.65; }
.account-workspace .form-error:empty { display: none; }
.account-workspace label small { font-size: 12px; font-weight: 400; color: #6d8290; line-height: 1.5; }
.account-workspace .check-label { display: flex; flex-direction: row; align-items: center; justify-content: start; gap: 9px; line-height: 1.5; }
.account-workspace .check-label input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #288b4c; }
.account-workspace .settings-grid { gap: 17px 22px; margin: 20px 0; }
.account-workspace #preferences-form > .button { width: max-content; max-width: 100%; }
.account-settings-columns { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; margin-top: 20px; }
.account-workspace .account-delete-section { background: #fffafa; border-color: #ead5d2; }
.account-delete-section h2 { color: #954c45; }
.account-delete-section summary { color: #a4433d; }
.account-workspace details summary { cursor: pointer; font-size: 13px; font-weight: 650; line-height: 1.6; }
.account-workspace details > :not(summary) { margin-top: 15px; }
.account-password { padding-top: 16px; border-top: 1px solid #e0e8ed; }
.account-workspace .account-danger,.button.account-danger { background: #fff1ef; border: 1px solid #dfb8b1; color: #a63e37; }
.account-back { display: inline-block; margin-bottom: 16px; font-size: 13px; font-weight: 650; color: #4f7184; }
.account-editor-basics { display: grid; grid-template-columns: minmax(0,1fr) 130px; gap: 18px; padding: 0 0 22px; border-bottom: 1px solid #e0e8ed; }
.account-template-field { grid-column: 1/-1; }
.account-editor-colors { min-width: 0; }
.account-editor-colors .filament-mode { background: #edf6ef; border: 1px solid #cfe3d2; border-radius: 8px; padding: 12px; margin: 16px 0; }
.account-editor-colors .palette { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.account-editor-colors .palette-field { display: block; border: 1px solid #d8e4eb; border-radius: 8px; padding: 12px; background: #f6f9fb; min-width: 0; }
.account-editor-colors .palette-field:nth-child(4n+3),.account-editor-colors .palette-field:nth-child(4n+4) { background: #eef4f7; }
.account-editor-colors .palette-controls { margin-top: 10px; gap: 8px; }
.account-editor-colors .palette-picker { min-width: 40px; }
.account-editor-colors .palette-hex-row { min-width: 0; }
.account-editor-colors .palette-hex { min-width: 0; font-size: 12px; }
.account-editor-colors .filament-colors { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.account-editor-colors .filament-colors > label { padding: 10px; border: 1px solid #d3e1e8; border-radius: 8px; background: #f2f7fa; min-width: 0; }
.account-editor-colors .filament-colors input[type=color] { width: 100%; height: 35px; border: 0; padding: 0; background: transparent; }
.account-editor-colors .filament-colors input[type=text] { font-size: 11px; padding: 7px; }
.account-editor-colors .filament-assignments { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.account-editor-colors .filament-assignment { min-width: 0; padding: 12px; border: 1px solid #d1e0e7; border-radius: 8px; background: #f4f8fa; }
.account-editor-colors .filament-assignment:nth-child(even) { background: #eaf2f6; }
.account-editor-colors .filament-assignment legend { color: #294c5e; font-size: 17px; font-weight: 750; line-height: 1.35; padding: 0 6px; max-width: 100%; overflow-wrap: anywhere; }
.account-editor-colors .filament-selected { font-size: 11px; margin: 8px 0 0; }
.account-editor-colors .filament-options { display: flex; flex-wrap: wrap; gap: 5px; }
.account-editor-colors .filament-option { width: 33px; }
.account-editor-colors .filament-option-face { padding: 3px; }
.account-editor-save { margin-top: 4px; padding-top: 20px; border-top: 1px solid #dde6eb; }
.account-editor-save .record-actions { margin-top: 18px; gap: 10px; flex-wrap: wrap; }
/* Shared account dropdown also works on the saved-map document. */
.header-account { position: relative; min-width: 0; }
.header-account .account-chevron { margin-left: 2px; font-size: 15px; color: #517264; }
body.mapstl-prototype .header-account-menu { position: absolute; z-index: 80; top: calc(100% + 10px); right: 0; width: 240px; max-width: calc(100vw - 24px); padding: 7px; background: #fff; border: 1px solid #d5e2e9; border-radius: 11px; box-shadow: 0 12px 36px #14344422; text-align: left; }
body.mapstl-prototype .header-account-menu :is(a,button) { display: block; width: 100%; padding: 11px 12px; color: #385868; background: transparent; border: 0; border-radius: 6px; font: 600 14px/1.4 var(--body-font,sans-serif); text-align: left; }
body.mapstl-prototype .header-account-menu :is(a,button):hover { background: #edf6f0; color: #227344; }
.header-account-identity { padding: 9px 12px 14px; margin-bottom: 4px; border-bottom: 1px solid #e2eaee; overflow-wrap: anywhere; }
.header-account-identity strong { display: block; font-size: 15px; }
.header-account-identity small { display: block; font-size: 11px; color: #6a8190; margin-top: 3px; }
body.mapstl-prototype .header-account-menu [data-account-logout] { border-top: 1px solid #e2eaee; border-radius: 0; margin-top: 4px; color: #9a5149; }
@media(max-width:1000px){
 .account-workspace { grid-template-columns: 185px minmax(0,1fr); gap: 20px; }
 .account-section-heading { align-items: start; flex-direction: column; gap: 14px; }
 .account-settings-columns { grid-template-columns: 1fr; }
 .account-navigation a { font-size: 13px; padding-inline: 8px; gap: 8px; }
}
@media(max-width:700px){
 body.mapstl-prototype #account-page { padding: 16px 14px 28px; }
 .account-workspace { display: block; }
 .account-sidebar { position: static; padding: 12px; margin-bottom: 23px; }
 .account-identity { padding-bottom: 12px; margin-bottom: 8px; }
 .account-avatar { width: 31px; height: 31px; flex-basis: 31px; border-radius: 8px; font-size: 16px; }
 .account-identity strong { font-size: 14px; }
 .account-identity span:not(.account-avatar) { display: none; }
 .account-navigation { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
 .account-navigation a { gap: 4px; flex-direction: column; justify-content: center; min-height: 62px; padding: 8px 3px; font-size: 11px; text-align: center; }
 .account-navigation b { display: none; }
 .account-generator-link { display: none; }
 .account-workspace .surface { padding: 18px; }
 .account-workspace .account-palette-card { padding: 0; }
 .account-workspace .account-section-heading h1 { font-size: 27px; }
 .account-section-heading { margin-bottom: 20px; }
 .account-section-heading p:not(.account-eyebrow) { font-size: 13px; }
 .account-section-heading .account-eyebrow { display: none; }
 .account-workspace .saved-map-card { max-width: none; }
 .account-workspace .saved-map-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,250px),1fr)); }
 .account-workspace .settings-grid { grid-template-columns: 1fr; }
 .account-editor-basics { grid-template-columns: 1fr 96px; gap: 12px; }
 .account-editor-colors .palette,.account-editor-colors .filament-assignments { grid-template-columns: 1fr; }
 .account-editor-colors .filament-colors { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .account-editor-colors .filament-assignment { padding: 10px; }
 .account-editor-colors .filament-option { width: 29px; }
 .account-editor-colors .filament-options { gap: 3px; }
 .account-editor-colors .filament-option-face i { width: 100%; }
 .account-default-palette form > .button { width: 100%; }
 .account-workspace .account-empty { padding: 30px 18px; }
 body.mapstl-prototype .header-account-menu { position: fixed; top: 66px; right: 12px; }
 body.mapstl-prototype .header-account .account-chevron { display: none; }
}
/* Override the header's horizontal nav defaults inside the account popup. */
body.mapstl-prototype .site-header .header-account-menu { display: block; height: auto; min-height: 0; }
body.mapstl-prototype .site-header .header-account-menu > :is(a,button,div) { display: block; width: 100%; flex: none; height: auto; white-space: normal; }

.account-editor-colors .palette-field > label { font-size: 17px; font-weight: 750; line-height: 1.35; }
