:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
* { box-sizing: border-box; }
body.site-body { min-height: 100vh; margin: 0; color: #ead8b5; background: radial-gradient(circle at top, #34332d, #181817 55%); }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.auth-card { width: min(100%, 440px); padding: 42px; border: 1px solid #65513c; background: #252422; box-shadow: 0 28px 100px #0008; }
.auth-mark { color: #d7ad66; font: 42px Georgia, serif; }
.eyebrow { margin: 0; color: #bc9863; font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.auth-card h1, .maps-content h1, .new-map-card h2, .map-list h2 { margin: 10px 0; color: #f2e1c2; font-family: Georgia, serif; }
.auth-copy { color: #bcad96; line-height: 1.6; }
.auth-form { display: grid; gap: 16px; margin-top: 28px; }
.auth-form label, .access-form label { color: #c3a373; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.auth-form input, .new-map-form input, .access-form input, .access-form select, .invite-result input { display: block; width: 100%; margin-top: 7px; padding: 11px; border: 1px solid #6d5942; border-radius: 2px; color: #f4e3c5; background: #302e2a; }
.auth-form .primary-button { margin-top: 6px; padding: 12px; border: 1px solid #b3634c; color: #fff0d6; background: #8f332d; font-weight: 800; cursor: pointer; }
.auth-switch, .form-error { color: #c6a892; font-size: 13px; }
a { color: #e7bd79; }
.form-error { margin: 0; color: #ec9d8d; }
.maps-page { min-height: 100vh; background: radial-gradient(ellipse at 50% -10%, #4d171a 0, transparent 38%), linear-gradient(115deg, #151719 0%, #292829 49%, #131416 100%); color: #e7dec9; }
.maps-page::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .3; background-image: repeating-linear-gradient(0deg, transparent 0 3px, #fff 3px 4px), repeating-linear-gradient(90deg, transparent 0 5px, #000 5px 6px); mix-blend-mode: soft-light; }
.maps-nav, .maps-content { position: relative; z-index: 1; }.maps-nav { height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 6vw, 90px); border-top: 3px solid #b89a55; border-bottom: 1px solid #b89a55; box-shadow: 0 4px 0 #08090a, 0 7px 18px #0009; background: linear-gradient(#202225, #111315); }
.maps-brand { display: flex; align-items: center; gap: 12px; color: #f3e7c8; text-decoration: none; font: 21px Georgia, serif; letter-spacing: .02em; }.maps-brand em { color: #d6b968; font-style: normal; }.maps-brand small { display: block; margin-top: 2px; color: #ad9055; font: 8px/1 sans-serif; letter-spacing: .22em; }.brand-sigil { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid #d3b76c; outline: 1px solid #5d4529; outline-offset: 3px; color: #e8ca78; font: 26px Georgia, serif; background: radial-gradient(circle, #4b2420, #211a18); }
.maps-nav .text-button { padding: 8px 11px; border: 1px solid transparent; color: #d8c99d; background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }.maps-nav .text-button:hover { border-color: #9e8049; color: #f6df9f; background: #ffffff0a; }
.maps-content { max-width: 1140px; margin: 0 auto; padding: clamp(60px, 9vw, 115px) 30px 90px; }.maps-intro { max-width: 730px; }.intro-rule { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; color: #c9aa5d; }.intro-rule::before, .intro-rule::after { content: ''; height: 1px; width: 80px; background: linear-gradient(90deg, transparent, #c9aa5d); }.intro-rule::after { background: linear-gradient(90deg, #c9aa5d, transparent); }.maps-intro h1 { margin: 10px 0 17px; color: #f3ead7; font: clamp(38px, 5.3vw, 64px)/1.02 Georgia, serif; letter-spacing: -.035em; text-shadow: 0 2px 0 #050607, 0 0 24px #b2292b33; }.maps-intro > div > p:last-child { max-width: 600px; margin: 0; color: #c0b7a4; font-size: 16px; line-height: 1.7; }
.new-map-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 60px 0; padding: 29px 34px; border: 1px solid #b89a55; outline: 1px solid #4e3a22; outline-offset: 4px; background: linear-gradient(100deg, #36291e, #1e2021 48%, #282322); box-shadow: inset 0 0 0 1px #ffffff0a, 0 16px 35px #0005; }.new-map-card::before { content: ''; position: absolute; inset: 7px; border-top: 1px solid #d4ba7455; border-bottom: 1px solid #d4ba7455; pointer-events: none; }.corner { position: absolute; width: 14px; height: 14px; border-color: #e5c875; border-style: solid; }.corner-top-left { top: 8px; left: 8px; border-width: 1px 0 0 1px; }.corner-top-right { top: 8px; right: 8px; border-width: 1px 1px 0 0; }.corner-bottom-left { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }.corner-bottom-right { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }.new-map-heading { position: relative; z-index: 1; }.new-map-card h2 { margin: 7px 0 4px; color: #f0dfbd; font: 25px Georgia, serif; }.new-map-card h2 + p { margin: 0; color: #baaa8e; font-size: 13px; }
.new-map-form { position: relative; z-index: 1; display: flex; gap: 10px; width: min(100%, 480px); }.new-map-form input { min-width: 0; margin: 0; border-color: #6f5a36; background: #121415; box-shadow: inset 0 1px 5px #0008; }.primary-button { border: 1px solid #d2b469; border-radius: 0; color: #fff4d3; background: linear-gradient(#a22d2e, #672020); box-shadow: inset 0 1px #ffdca444, 0 1px 3px #0009; font-weight: 800; cursor: pointer; }.primary-button:hover { background: linear-gradient(#b93837, #762020); }.new-map-form .primary-button { padding: 0 20px; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; border-bottom: 1px solid #785f38; padding-bottom: 12px; }.section-title h2 { margin: 6px 0 0; color: #f0e2c7; font: 29px Georgia, serif; }.section-flourish { color: #d2b36a; font-size: 22px; }.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }.map-card { position: relative; display: flex; gap: 16px; align-items: center; min-height: 156px; overflow: hidden; padding: 23px 22px 35px; border: 1px solid #7c6842; outline: 1px solid #211b15; outline-offset: 3px; color: inherit; text-decoration: none; background: linear-gradient(135deg, #30281e, #202223 64%); box-shadow: inset 0 0 0 1px #ffffff0a, 0 8px 18px #0005; transition: border-color .18s, box-shadow .18s, transform .18s; }.map-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, transparent, #d2b268, transparent); opacity: .7; }.map-card:hover { border-color: #dfc576; box-shadow: inset 0 0 22px #b48a3630, 0 13px 25px #0009; transform: translateY(-3px); }.map-card-frame { display: grid; width: 59px; height: 66px; flex: none; place-items: center; border: 1px solid #c5a65e; outline: 1px solid #4f3b22; outline-offset: 3px; background: radial-gradient(circle, #4c211c, #221d1b); }.map-card-art { color: #e4c370; font: 34px Georgia, serif; text-shadow: 0 1px #000; }.map-card h3 { margin: 7px 0; color: #f4e6ca; font: 22px Georgia, serif; }.map-card p:not(.eyebrow) { margin: 0; color: #bfb19a; font-size: 12px; }.map-card-arrow { position: absolute; right: 17px; bottom: 13px; color: #cdb070; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.map-card-arrow b { margin-left: 4px; color: #f1d47f; font-size: 15px; }.empty-maps { padding: 25px; border: 1px dashed #6e5a3b; color: #b9a98d; }
.access-dialog { width: min(100% - 28px, 480px); }.access-dialog h2 { margin-bottom: 8px; }.access-form { display: grid; gap: 15px; margin-top: 22px; }.access-form .primary-button { justify-self: start; padding: 10px 14px; }.invite-result { margin-top: 18px; padding: 12px; border-left: 2px solid #bb9155; background: #ffffff0a; }.invite-result input { margin: 8px 0; font-size: 11px; }.invite-result small { color: #bfae91; }.access-list { margin-top: 24px; padding-top: 14px; border-top: 1px solid #675642; }.access-list h3 { font: 15px Georgia, serif; }.access-list p { display: flex; justify-content: space-between; gap: 12px; color: #cbb99a; font-size: 12px; }.access-list p span { color: #a99880; }.access-empty { color: #a99880; }

/* D&D Beyond-inspired campaign library: charcoal chrome, paper panels, and red actions. */
.maps-page { background: #e6e6e6; color: #262626; }
.maps-page::before { opacity: 1; background: linear-gradient(90deg, #d8d8d8 1px, transparent 1px), linear-gradient(#d8d8d8 1px, transparent 1px); background-size: 36px 36px; mix-blend-mode: multiply; }
.maps-nav { height: 72px; border-top: 0; border-bottom: 1px solid #383838; box-shadow: 0 2px 8px #0008; background: #161616; }
.maps-brand { color: #f1f1f1; font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }.maps-brand em { color: #e2e2e2; font-weight: 400; }.maps-brand small { color: #989898; font: 8px/1 Arial, sans-serif; letter-spacing: .18em; }.brand-sigil { width: 35px; height: 35px; border: 0; outline: 0; color: #fff; font-size: 23px; background: #a71f23; clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%); }
.maps-nav .text-button { border: 0; color: #d2d2d2; font-size: 11px; letter-spacing: .04em; }.maps-nav .text-button:hover { border: 0; color: #fff; background: #343434; }
.maps-content { max-width: 1200px; padding: 48px 30px 90px; }
.maps-intro { max-width: none; padding: 52px 54px; border: 1px solid #393939; background: linear-gradient(105deg, #262b31 0%, #171a1e 60%, #242a31 100%); box-shadow: 0 3px 11px #0004; }.intro-rule { margin: 0 0 19px; color: #c2262e; }.intro-rule::before { width: 42px; background: #c2262e; }.intro-rule::after { width: 90px; background: linear-gradient(90deg, #c2262e, transparent); }.maps-intro .eyebrow { color: #cf7479; }.maps-intro h1 { margin: 7px 0 13px; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.05em; text-shadow: none; }.maps-intro > div > p:last-child { max-width: 550px; color: #c8cdd1; font-size: 15px; line-height: 1.65; }
.new-map-card { margin: 30px 0 46px; padding: 29px 32px; border: 1px solid #c4c4c4; outline: 0; background: #fafafa; box-shadow: 0 2px 5px #0002; }.new-map-card::before { inset: 0; border: 0; border-left: 5px solid #b51f26; }.corner { display: none; }.new-map-card .eyebrow, .section-title .eyebrow { color: #ad1d24; }.new-map-card h2 { color: #292929; font-family: Arial, Helvetica, sans-serif; font-size: 23px; font-weight: 750; }.new-map-card h2 + p { color: #777; }.new-map-form input { border: 1px solid #aaa; border-radius: 2px; color: #292929; background: #fff; box-shadow: inset 0 1px 2px #0002; }.new-map-form input:focus { outline: 2px solid #d7686d; border-color: #b51f26; }.primary-button { min-height: 42px; border: 0; border-radius: 2px; color: #fff; background: #b51f26; box-shadow: none; font-family: Arial, Helvetica, sans-serif; }.primary-button:hover { background: #d0272f; }.new-map-form .primary-button { padding: 0 22px; }
.section-title { margin-bottom: 20px; border-bottom: 2px solid #555; padding-bottom: 12px; }.section-title h2 { color: #242424; font-family: Arial, Helvetica, sans-serif; font-size: 26px; font-weight: 800; }.section-flourish { color: #a8a8a8; }
.map-grid { gap: 16px; }.map-card { min-height: 150px; padding: 21px 20px 36px; border: 1px solid #c6c6c6; outline: 0; color: #252525; background: #fff; box-shadow: 0 2px 4px #0002; }.map-card::before { height: 4px; background: #b51f26; opacity: 1; }.map-card:hover { border-color: #9a9a9a; box-shadow: 0 6px 13px #0004; transform: translateY(-2px); }.map-card-frame { width: 54px; height: 60px; border: 0; outline: 0; color: #fff; background: #30343a; clip-path: polygon(50% 0, 100% 23%, 100% 77%, 50% 100%, 0 77%, 0 23%); }.map-card-art { color: #fff; font-size: 30px; }.map-card .eyebrow { color: #a51d23; }.map-card h3 { color: #202020; font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: 750; }.map-card p:not(.eyebrow) { color: #777; }.map-card-arrow { right: 16px; bottom: 13px; color: #7d7d7d; font-family: Arial, Helvetica, sans-serif; }.map-card-arrow b { color: #b51f26; }.empty-maps { border-color: #a9a9a9; color: #666; background: #f8f8f8; }

/* Character-sheet border language: paper fields, ink rules, and caption tabs. */
.maps-page { background: #ebe9e3; color: #252525; }.maps-page::before { opacity: .52; background-image: repeating-linear-gradient(0deg, transparent 0 4px, #cfcac11c 4px 5px), repeating-linear-gradient(90deg, transparent 0 6px, #cfcac11c 6px 7px); }
.maps-content { max-width: 1120px; }.maps-intro { position: relative; border: 2px solid #292929; outline: 1px solid #aaa69d; outline-offset: 5px; background: #f8f7f2; box-shadow: 0 2px 0 #292929, 0 11px 22px #0002; }.maps-intro::after { content: 'CAMPAIGN MAPS'; position: absolute; right: 38px; bottom: -15px; padding: 4px 14px; border: 2px solid #292929; color: #fff; background: #a51d23; font: 700 10px Arial, Helvetica, sans-serif; letter-spacing: .13em; }.maps-intro .eyebrow { color: #8e171d; }.maps-intro h1 { color: #232323; font-family: Georgia, serif; font-weight: 700; letter-spacing: -.025em; }.maps-intro > div > p:last-child { color: #565656; }.intro-rule { color: #a51d23; }.intro-rule::before { background: #292929; }.intro-rule::after { background: linear-gradient(90deg, #292929, transparent); }
.new-map-card, .map-card { border: 2px solid #292929; border-radius: 7px 7px 3px 3px; outline: 1px solid #aaa69d; outline-offset: 4px; background: #fbfaf6; box-shadow: inset 0 0 0 3px #fbfaf6, inset 0 0 0 4px #c9c6be, 0 4px 9px #0002; }.new-map-card { margin-top: 42px; }.new-map-card::before { inset: 12px; border: 1px solid #c9c6be; border-left: 1px solid #c9c6be; }.new-map-card::after { content: 'NEW CAMPAIGN'; position: absolute; top: -14px; left: 28px; padding: 5px 13px; border: 2px solid #292929; border-radius: 2px 2px 0 0; color: #fff; background: #a51d23; font: 700 10px Arial, Helvetica, sans-serif; letter-spacing: .12em; }.new-map-heading { padding-top: 5px; }.new-map-card .eyebrow { color: #4a4a4a; }.new-map-card h2 { font-family: Georgia, serif; font-weight: 700; }.new-map-form { padding: 7px; border: 1px solid #77736d; background: #ece9e1; }.new-map-form input { border: 0; border-bottom: 2px solid #4d4a46; border-radius: 0; background: transparent; box-shadow: none; }.new-map-form input:focus { border-color: #a51d23; outline: 0; }.new-map-form .primary-button { min-height: 36px; border: 1px solid #6e1015; border-radius: 2px; }
.section-title { position: relative; border-bottom: 2px solid #292929; }.section-title::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 122px; height: 3px; background: #a51d23; }.section-title h2 { font-family: Georgia, serif; font-weight: 700; }.section-flourish { color: #a51d23; }
.map-grid { row-gap: 30px; }.map-card { min-height: 164px; padding: 27px 22px 38px; overflow: visible; }.map-card::before { top: 10px; right: 10px; left: 10px; height: auto; bottom: 10px; border: 1px solid #c9c6be; background: none; }.map-card::after { content: 'ATLAS ENTRY'; position: absolute; bottom: -14px; left: 50%; z-index: 2; transform: translateX(-50%); padding: 4px 11px; border: 2px solid #292929; border-radius: 0 0 3px 3px; color: #fff; background: #292929; font: 700 9px Arial, Helvetica, sans-serif; letter-spacing: .13em; }.map-card:hover { border-color: #292929; background: #fffef9; box-shadow: inset 0 0 0 3px #fffef9, inset 0 0 0 4px #a51d23, 0 7px 13px #0004; }.map-card-frame { position: relative; z-index: 1; width: 54px; height: 54px; border: 2px solid #292929; border-radius: 50%; background: #f7f5ef; clip-path: none; }.map-card-frame::before { content: ''; position: absolute; inset: 4px; border: 1px solid #a51d23; border-radius: 50%; }.map-card-art { position: relative; z-index: 1; color: #a51d23; font-size: 26px; text-shadow: none; }.map-card > div { position: relative; z-index: 1; }.map-card .eyebrow { color: #4b4b4b; }.map-card h3 { margin: 5px 0 8px; border-bottom: 1px solid #8c8982; color: #202020; font-family: Georgia, serif; font-weight: 700; }.map-card-arrow { z-index: 3; right: 17px; bottom: 13px; }.map-card-arrow b { color: #a51d23; }

/* Authentication uses the same sheet-frame system as the map library. */
body.site-body { background: #ebe9e3; color: #252525; }.sheet-auth-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 105px 24px 50px; background-image: repeating-linear-gradient(0deg, transparent 0 4px, #cfcac11c 4px 5px), repeating-linear-gradient(90deg, transparent 0 6px, #cfcac11c 6px 7px); }.auth-nav { position: absolute; top: 0; right: 0; left: 0; height: 72px; display: flex; align-items: center; padding: 0 clamp(24px, 6vw, 90px); border-bottom: 1px solid #383838; background: #161616; box-shadow: 0 2px 8px #0008; }.auth-nav a { display: flex; align-items: center; gap: 9px; color: #f1f1f1; text-decoration: none; font: 700 18px Arial, Helvetica, sans-serif; }.auth-nav a > span { display: grid; width: 31px; height: 31px; place-items: center; color: #fff; background: #a71f23; clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%); }.auth-nav small { color: #989898; font: 8px Arial, sans-serif; letter-spacing: .15em; }.sheet-auth-card { position: relative; width: min(100%, 460px); padding: 48px 46px 38px; border: 2px solid #292929; border-radius: 7px 7px 3px 3px; outline: 1px solid #aaa69d; outline-offset: 5px; color: #252525; background: #fbfaf6; box-shadow: inset 0 0 0 3px #fbfaf6, inset 0 0 0 4px #c9c6be, 0 11px 22px #0003; }.sheet-auth-card::before { content: ''; position: absolute; inset: 12px; border: 1px solid #c9c6be; pointer-events: none; }.sheet-card-tab { position: absolute; top: -14px; left: 28px; z-index: 2; padding: 5px 13px; border: 2px solid #292929; border-radius: 2px 2px 0 0; color: #fff; background: #a51d23; font: 700 10px Arial, Helvetica, sans-serif; letter-spacing: .12em; }.auth-card > *:not(.sheet-card-tab) { position: relative; z-index: 1; }.auth-mark { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 18px; border: 2px solid #292929; border-radius: 50%; color: #a51d23; font: 28px Georgia, serif; background: #f7f5ef; box-shadow: inset 0 0 0 5px #f7f5ef, inset 0 0 0 6px #a51d23; }.sheet-auth-card .eyebrow { color: #4b4b4b; }.sheet-auth-card h1 { color: #202020; font-family: Georgia, serif; font-weight: 700; }.auth-copy { color: #595959; }.auth-form { gap: 20px; }.auth-form label { color: #4b4b4b; font: 700 10px Arial, Helvetica, sans-serif; letter-spacing: .11em; text-transform: uppercase; }.auth-form label span { display: block; }.auth-form input { margin-top: 7px; padding: 8px 0; border: 0; border-bottom: 2px solid #4d4a46; border-radius: 0; color: #252525; background: transparent; }.auth-form input:focus { outline: 0; border-color: #a51d23; }.auth-form .primary-button { min-height: 42px; margin-top: 4px; border: 1px solid #6e1015; border-radius: 2px; background: #b51f26; box-shadow: none; font-family: Arial, Helvetica, sans-serif; letter-spacing: .06em; text-transform: uppercase; }.auth-switch { color: #555; }.auth-switch a { color: #a51d23; font-weight: 700; }.form-error { color: #a51d23; }
.map-read-only .sidebar .palette, .map-read-only #connect-places, .map-read-only #add-place, .map-read-only #rename-board, .map-read-only #new-atlas-button, .map-read-only #import-button, .map-read-only #undo-button, .map-read-only #redo-button, .map-read-only #generate-details, .map-read-only #edit-biomes, .map-read-only #edit-territories, .map-read-only .inspector-form { pointer-events: none; opacity: .55; }.map-read-only::before { content: 'VIEW ONLY — You can explore this map, but only its owner can grant editing access.'; position: fixed; top: 0; left: 50%; z-index: 20; transform: translateX(-50%); padding: 7px 13px; color: #f2e0c1; background: #5b4330; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
@media (max-width: 650px) { .auth-card { padding: 30px 24px; }.maps-nav { height: 64px; padding: 0 20px; }.maps-content { padding: 26px 18px 52px; }.maps-intro { padding: 34px 25px; }.maps-intro h1 { font-size: 36px; }.new-map-card { align-items: stretch; flex-direction: column; padding: 24px; }.new-map-form { width: 100%; }.new-map-form .primary-button { padding: 0 14px; }.map-grid { grid-template-columns: 1fr; } }
.map-read-only .inspector-form { pointer-events: auto; opacity: 1; }
