@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&display=swap');
/* v0.7 — white canvas, black navigation, deep green accents. */
:root{--ink:#202424;--muted:#6e7473;--green:#28664f;--mint:#b7d5c9;--paper:#fff;--line:#e2e5e4;--accent:#28664f}
body,.elementals-page{background:#fff;color:var(--ink)}
.elementals-page{--ink:#202424;--muted:#6e7473;--accent:#28664f}
.sidebar{background:#121414;color:#f3f5f4;border-right:1px solid #282c2a;z-index:25}
.brand{letter-spacing:2.6px}.brand-mark{color:#88b49e}.brand strong{font-weight:500;letter-spacing:5.5px}
.side-label{color:#9ba4a0;letter-spacing:1.5px;font-size:11px;margin-top:65px;text-transform:none}
.side-nav{color:#aeb5b2;align-items:center;border-radius:4px;font-size:12px;min-height:48px}
.side-nav:hover{background:#222725;color:#fff}.side-nav.active{background:#252d29;color:#f5faf7;box-shadow:inset 2px 0 #6a9b81}
.side-bottom{color:#7b8580;padding:20px 12px 0}.sidebar-version{font-size:9px;letter-spacing:2px}
.topbar{gap:16px;justify-content:flex-end;height:76px;position:relative}.topbar>.test-tag{margin-left:0;margin-right:auto}
.test-tag{background:#f2f4f3;color:#737a76;border:1px solid #e5e8e6;border-radius:3px;letter-spacing:1px}
.save-pill{color:#61766a}.save-pill:before{background:#53856a}
.intro{padding:52px 0 45px}.intro h1{color:#202524;letter-spacing:1.2px}.intro h1 em{color:#202524}
.eyebrow{color:#547461}.intro-copy{color:#717875}.orbit-art{background:radial-gradient(ellipse,#f2f5f3 0,transparent 68%)}
.orbit{border-color:#bfcac4}.orbit-center{color:#2a5944}.orbit-dot{background:#6c947b}.orbit-art small{color:#86928a}
.primary{background:var(--green);border-radius:5px;box-shadow:0 2px 3px #10271d0a}.primary:hover{background:#1d503b}
.quiet{color:#555f59;background:#f0f2f1;border:1px solid #e6e9e7;border-radius:5px}.quiet:hover{background:#e7ece9}
input,textarea,select{border-color:#dce1dd;border-radius:5px;background:#fff;color:var(--ink)}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #62927a;outline-offset:2px}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #62927a;outline-offset:4px}
.character-card{border-color:#e1e6e2;border-radius:7px;transition:border-color .15s,box-shadow .15s;text-align:left}
.character-card:hover{border-color:#759482;box-shadow:0 5px 22px #1b2c2110}.card-art{filter:saturate(.8)}
.card-art:before{border-color:#ffffff38}.card-art:after{color:#ffffff88}.card-body{padding:22px 20px}
.card-body .tags span,.tag{background:#f0f3f1;color:#6b7e70}.life-status{background:#f0f3f1;color:#65796c}
.promise{margin-top:46px;border-color:#e3e7e4}.promise h3{color:#39453d}.promise span{color:#789184}.promise p{color:#79817c}
.storage-note{background:#f5f7f5;color:#79817c;border:1px solid #e9eeea;border-radius:5px}
.editor-paper{border-color:#e1e6e2;border-radius:7px}.summary-art{border-radius:7px}.tabs{gap:23px}
.tab{white-space:nowrap}.tab.active{color:#24543e;border-color:#367659}.stat-block{background:#f5f7f5;border:1px solid #e6ebe7;border-radius:6px}
#summaryMotto{color:#68766c}.completion-track{background:#e9eeea}.completion-track div{background:#5e8a70}
#budgetStatus{background:#f2f6f2;color:#5b7661}.skill-workbench{background:#f5f8f5;border-color:#dfe7e0;border-radius:7px}
.skill-category,.skill-presets button{border-color:#d9e2da;color:#657867;border-radius:4px}
.skill-category.active,.skill-presets button.active{background:#2b5e45;border-color:#2b5e45;color:#fff}
.skill-group-heading{border-color:#b8cbbd;color:#3d5a46}.skill-change-badge{background:#f1f4f1;color:#6f7d71}
.skill-change-badge.changed{background:#e8f0e9;color:#396545}.skill-empty{background:#f5f7f5;color:#748177}
#skillExportPreview{background:#f7f9f7}#editorDock{background:#141916;border-top:1px solid #2f3d32}
.secret-label{background:#f5f4f0}.public-card{background:#f7f9f7}.elementals-page .selection-dock,.selection-dock{background:#fffffff5}
.story-context{background:#f7f9f6}.story-note{background:#f2f5ef}.reason-tags span{background:#eef3ec}
.elemental-dialog{background:#fff}.material-photo{background:#f1f4f0}.choose-material{border-color:#cbd9ca}
.account-menu{position:relative;flex-shrink:0;z-index:30}.account-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;min-height:44px;color:#617367}
.account-menu summary::-webkit-details-marker{display:none}.account-avatar{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid #cfd9d1;border-radius:50%;background:#f3f7f3;color:#4a6e54}
.account-avatar svg{width:21px;height:21px}.account-summary-label{font-size:10px}.account-menu[open] .account-avatar{background:#e7efe7;border-color:#6e8f77}
.account-popover{position:absolute;right:0;top:calc(100% + 10px);width:250px;max-width:calc(100vw - 30px);background:#fff;border:1px solid #dae3dc;border-radius:7px;box-shadow:0 12px 35px #18281d20;padding:9px}
.account-state{font-size:10px;color:#7c8b80;margin:5px 8px 9px;padding-bottom:10px;border-bottom:1px solid #edf0ed}
.account-popover button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:11px 10px;background:#fff;color:#354d3d;border-radius:4px;font-size:12px;text-align:left;min-height:44px}
.account-popover button:hover{background:#eff4ef}.account-popover button:disabled{cursor:default;color:#9ba69d;background:#fafbfa}
.soon-label{font-size:9px;color:#8c9a8f}.account-close{font-size:23px;width:44px;min-height:44px}
#accountDialog{max-width:480px}#accountDialog h2{font-size:22px}#accountContent{font-size:13px;line-height:1.9;padding-top:15px}#accountContent p{color:#687a6e}#accountDialog .eyebrow{font-size:8px;margin-bottom:6px}
@media(max-width:1150px){.tabs{gap:16px}}
@media(max-width:780px){.sidebar{border-right:0;border-bottom:1px solid #282c2a}.topbar{height:64px;gap:12px}.brand strong{letter-spacing:4px}.account-summary-label{display:none}.account-popover{top:calc(100% + 8px)}.editor-paper{border-radius:6px}.tabs{gap:17px;justify-content:flex-start;overflow-x:auto}.tab{flex-shrink:0}.card-body{padding:16px 14px}}
@media(max-width:480px){.intro{padding:34px 0}.intro h1{font-size:27px}.account-avatar{width:34px;height:34px}.save-pill{font-size:10px}.card-body{padding:14px 12px}.topbar>.test-tag{font-size:9px}.editor-actions{justify-content:flex-start}.skill-workbench{padding:13px}.side-nav{font-size:11px}.brand{gap:8px}}
@media(prefers-reduced-motion:reduce){.character-card{transition:none}}
@media(max-width:780px){.character-summary .summary-meta{grid-column:1/-1;flex-wrap:wrap;margin-top:12px;gap:12px}.summary-meta>span{white-space:nowrap}}

/* CHARANIMA — inscriptional lettering, quiet Japanese serif headings. */
.brand{gap:10px}.brand-mark{font-size:29px;line-height:1}.brand-word{display:block;min-width:0}.brand .brand-word strong{display:block;font-family:'Cinzel',Georgia,serif;font-size:20px;font-weight:500;letter-spacing:1.15px;line-height:1.4}.brand .brand-word small{display:block;color:#9ab4a5;font-family:'Noto Serif JP',serif;font-size:9px;font-weight:400;letter-spacing:4px;margin-top:8px;text-align:center}
.intro .charanima-title{font-family:'Cinzel',Georgia,serif;font-size:48px;font-weight:400;letter-spacing:3px;line-height:1.4;white-space:nowrap;margin:0}.brand-reading{font-family:'Noto Serif JP',serif;font-size:11px;letter-spacing:7px;color:#708475;margin:7px 0 25px}.hero-tagline{font-family:'Noto Serif JP',serif;font-size:24px;font-weight:500;line-height:1.85;letter-spacing:1.6px;color:#28392e;margin:0}.intro-copy{margin-top:20px}.intro .eyebrow{font-family:'Cinzel',Georgia,serif;font-size:10px;letter-spacing:2.4px;color:#617e6a}
.library-heading h2,.panel-title h2,.collection-heading h2,#accountDialog h2{font-family:'Noto Serif JP',serif;font-weight:500;letter-spacing:.5px}.orbit-art small,footer>span{font-family:'Cinzel',Georgia,serif}.orbit-art small{font-size:7px;left:35px;letter-spacing:1.4px}.orbit{border-color:#a9c1af}.orbit-center{color:#466f54}.orbit-art{background:none}
@media(max-width:1150px){.brand{gap:7px}.brand-mark{font-size:22px}.brand .brand-word strong{font-size:16px;letter-spacing:.6px}.brand .brand-word small{font-size:8px;letter-spacing:3px}.intro .charanima-title{font-size:37px;letter-spacing:2px}.hero-tagline{font-size:22px}}
@media(max-width:780px){.brand .brand-word strong{font-size:19px;letter-spacing:1px}.brand .brand-word small{display:block;font-size:8px;margin-top:3px;letter-spacing:3px}.brand-mark{font-size:24px}.intro{gap:12px}.intro .charanima-title{font-size:33px}.hero-tagline{font-size:21px}.intro .orbit-art{display:none}.brand-reading{font-size:10px;margin-bottom:20px;letter-spacing:5px}}
@media(max-width:480px){.brand .brand-word strong{font-size:18px}.brand .brand-word small{font-size:7px}.intro .charanima-title{font-size:32px;letter-spacing:1.9px}.hero-tagline{font-size:22px}.intro .eyebrow{font-size:8px;letter-spacing:1.7px}.intro{padding-top:35px}.brand-reading{letter-spacing:5px}}
.portrait-workspace{display:block;border:1px solid var(--line);border-radius:7px;padding:20px;margin:8px 0}.portrait-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.portrait-heading .eyebrow{font-size:8px;margin:0 0 8px}.portrait-heading h3{font:500 20px/1.7 'Noto Serif JP',serif;margin:0}.portrait-heading>span{font-size:11px;color:var(--muted);white-space:nowrap}.portrait-upload{margin:18px 0;font-size:12px}.portrait-upload input{padding:10px;font-size:12px}.portrait-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.portrait-card{min-width:0;background:#f7f9f6;padding:12px;border-radius:6px;border:1px solid #e0e7df;display:flex;flex-direction:column;gap:12px}.portrait-frame{height:220px;display:flex;justify-content:center;align-items:center;border:1px solid #e2e7e0;border-radius:4px;background-color:#fff;background-image:linear-gradient(45deg,#edf0eb 25%,transparent 25%),linear-gradient(-45deg,#edf0eb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf0eb 75%),linear-gradient(-45deg,transparent 75%,#edf0eb 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.portrait-frame img{display:block;max-height:100%;max-width:100%;object-fit:contain}.portrait-card label{font-size:11px;gap:5px}.portrait-card input,.portrait-card select{font-size:12px;min-height:44px;padding:8px}.portrait-card button{min-height:44px;margin-top:auto}.portrait-card button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #28664f}#portraitFeedback{font-size:12px;color:#526c58}.card-art img,.summary-art img{object-fit:contain}.card-art:has(img):before,.summary-art:has(img):before{display:none}
@media(max-width:480px){.portrait-workspace{padding:13px}.portrait-gallery{grid-template-columns:1fr}.portrait-frame{height:300px}.portrait-card input,.portrait-card select{font-size:16px}.portrait-heading h3{font-size:18px}}

/* A shared person, independent system sheets. */
.system-bar{padding:22px 26px;border-bottom:1px solid #e2e8e3;background:#f5f8f5;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}.system-bar .eyebrow{display:block;font-size:8px;margin-bottom:10px}.system-bar label{display:flex;align-items:center;gap:13px;font-size:12px}.system-bar select{min-width:180px;background:#fff;border:1px solid #bdcec1;border-radius:5px;padding:11px;color:#294e37;font:inherit}.system-bar>p{width:100%;font-size:10px;color:#708075;margin:0;line-height:1.8}.system-budget{background:#eff5ef;border:1px solid #d8e5d9;border-radius:5px;padding:14px;font-size:12px;line-height:1.8}#otherStatsGrid output{font-size:11px;line-height:1.9}#otherEmotions{margin:20px 0}#otherReviewBox{padding:16px;background:#f8f7ef;border:1px solid #e8e3cd;border-radius:5px;font-size:12px;line-height:1.9;margin:20px 0}#otherReviewBox li{margin:8px 0}.system-filters{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:12px;margin:18px 0}.system-skill{border:1px solid #e0e8e1;border-radius:6px;padding:17px;margin:10px 0;background:#fff}.system-skill-heading{display:flex;gap:12px;justify-content:space-between;align-items:center}.system-skill-heading h4{font-size:14px;font-weight:500;margin:0}.system-skill-heading output{font-size:12px;color:#2a6442}.system-skill-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.system-skill label,.system-filters label,#otherNotes label{font-size:10px;color:#718077}.system-skill input,.system-skill select,.system-filters input,.system-filters select,#otherResources input,#otherEmotions input{min-width:0;min-height:44px}#otherNotes{margin-top:30px}.system-credits{font-size:11px;line-height:1.8;margin-top:30px;color:#738177}.system-credits a{color:#326448}#systemDialog{width:min(700px,calc(100vw - 30px));max-height:90vh;overflow:auto}#systemDialog>p,#systemDialog li{font-size:12px;color:#617266;line-height:1.9}.conversion-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.conversion-consent{display:flex;align-items:center;gap:10px;margin-top:22px;font-size:12px}.conversion-consent input{width:20px;height:20px;flex-shrink:0}#conversionReview{max-height:260px;overflow:auto;padding-left:22px}.conversion-stats label{font-size:11px}#conversionAllocation{font-size:12px;color:#386348}
@media(max-width:780px){.system-bar{padding:18px}.system-bar label{flex-direction:column;align-items:flex-start;gap:7px}.system-bar select{min-width:150px}.system-filters{grid-template-columns:1fr 1fr}.system-filters label:nth-child(2){grid-column:1/-1;grid-row:2}.system-skill-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.system-skill input,.system-skill select,.conversion-stats input{font-size:16px}.conversion-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.system-skill-heading{align-items:flex-start;flex-direction:column}.system-skill{padding:13px}.system-bar>button{font-size:11px}.system-bar .eyebrow{font-size:7px}}

/* Personal folders belong to the shared character, across systems. */
.folder-sidebar{margin-top:20px;min-height:0;flex:1;overflow:auto}.folder-label{color:#83958b;font-size:9px;letter-spacing:2px;padding:0 18px 10px}.folder-list{display:flex;flex-direction:column;gap:4px}.folder-nav{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 16px;border:0;border-radius:5px;background:transparent;color:#bac8bf;text-align:left;font:inherit;font-size:12px;cursor:pointer}.folder-nav:hover{background:#ffffff0a;color:#fff}.folder-nav.active{background:#243c30;color:#d7f0de}.folder-nav:focus-visible{outline:2px solid #8bb99a;outline-offset:1px}.folder-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.folder-symbol{font-size:18px}.folder-count{font-size:10px;color:#8fa798}.folder-placement{display:flex;flex-direction:column;gap:5px;font-size:9px;color:#617969;min-width:160px;max-width:240px}.folder-placement select{min-height:44px;font:inherit;font-size:12px;padding:9px;border:1px solid #ccd8cd;background:#fff;border-radius:5px;max-width:100%;color:#263e2e}.editor-actions{flex-wrap:wrap;align-items:center}.card-folder{font-size:10px;color:#617969;overflow-wrap:anywhere;margin:12px 0 0}#folderDialog{width:min(460px,calc(100vw - 30px));max-height:90vh;overflow:auto}#folderDialog h2{font:500 22px/1.6 'Noto Serif JP',serif}#folderForm{display:flex;flex-direction:column;gap:16px}#folderForm label{font-size:12px;display:flex;flex-direction:column;gap:10px}#folderForm input{min-height:48px;width:100%;box-sizing:border-box}#folderForm button{min-height:44px}#folderError{font-size:12px;line-height:1.8;color:#a43b42;margin:0}.library-tools{flex-wrap:wrap}
@media(max-width:780px){.folder-sidebar{grid-column:1/-1;margin-top:4px;overflow:hidden;flex-basis:100%;width:100%}.folder-label{display:none}.folder-list{flex-direction:row;overflow-x:auto;padding:2px 0 8px;max-width:100%}.folder-nav{width:auto;max-width:200px;flex-shrink:0;padding:8px 12px}.folder-placement{max-width:100%;flex-basis:100%}.folder-placement select,#folderForm input{font-size:16px}.editor-actions{justify-content:flex-start}#newFolderSide{min-height:44px}}

/* Portrait-led character cards. Original uploaded art and character colors. */
#characterGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px}.character-card{padding:0;overflow:hidden;border:1px solid #d9e0da;border-radius:12px;background:#fff;box-shadow:0 5px 20px #15271a08;text-align:left;min-width:0;display:flex;flex-direction:column}.character-card .card-art{height:auto;aspect-ratio:1/1.12;min-height:0;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.character-card .card-art img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:50% 0}.character-card .card-body{padding:17px 18px 18px;flex:1;display:flex;flex-direction:column}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.system-tag{font-size:10px;font-weight:600;padding:4px 10px;border-radius:4px;background:#e6eee8;color:#28563e;letter-spacing:.3px}.system-coc7{background:#e8eaf5;color:#495385}.system-emoklore{background:#f0e5f2;color:#78507f}.system-custom{background:#edeae4;color:#706147}.character-card .life-status{font-size:10px;padding:3px 0;background:none;border:0}.character-card .life-status:before{content:'●';margin-right:5px;font-size:8px}.character-card .card-body h3{font:500 21px/1.5 'Noto Serif JP',serif;letter-spacing:1px;margin:13px 0 3px;text-align:center;overflow-wrap:anywhere}.character-card .card-reading{font-size:10px;color:#778279;letter-spacing:1px;text-align:center;margin:0 0 16px}.card-story{position:relative;display:grid;grid-template-columns:57px minmax(0,1fr);gap:9px 10px;border:1px solid #d5dfd4;padding:13px 10px;margin:0 0 16px;border-radius:3px;background:#fafbf9;font-size:10px;line-height:1.6}.card-story:before{content:'✧';position:absolute;top:-10px;left:calc(50% - 10px);width:20px;text-align:center;background:#fff;color:#62836b;font-size:14px}.card-story dt{color:#7b877d;font-size:9px}.card-story dd{margin:0;overflow-wrap:anywhere;color:#34473a}.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto}.card-actions button{min-height:44px;padding:9px;font-size:11px;border-radius:5px}.card-actions .quiet{border:1px solid #a9b9aa;background:white}.card-actions button:disabled{opacity:.4;cursor:default}#portraitDialog{width:min(700px,calc(100vw - 28px));max-height:92vh;padding:22px;overflow:auto}#portraitDialog h2{font:500 18px 'Noto Serif JP',serif;padding-right:24px}#fullPortrait{display:flex;align-items:center;justify-content:center;border-radius:6px;min-height:150px}#fullPortrait img{max-width:100%;max-height:72vh;object-fit:contain;display:block}
@media(max-width:540px){#characterGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.character-card .card-body{padding:12px 9px}.character-card .card-body h3{font-size:17px}.card-story{grid-template-columns:1fr;gap:3px;padding:12px 8px}.card-story dd+dt{margin-top:5px}.card-meta{gap:4px}.system-tag{padding:4px 6px;font-size:9px}.character-card .life-status{font-size:9px}.card-actions{gap:5px}.card-actions button{padding:8px 3px;font-size:10px}}
@media(max-width:350px){#characterGrid{grid-template-columns:1fr}}
.character-card .card-art img{transform:scale(1.65);transform-origin:50% 0}

/* Match the approved card mock: black title, centered rule, label-only frames. */
#characterGrid .character-card .card-body h3{color:#171b18;font-family:'Noto Serif JP',serif;font-weight:700;font-size:27px;line-height:1.45;letter-spacing:1.4px;margin:12px 0 3px}#characterGrid .character-card .card-reading{font-size:11px;letter-spacing:1.8px;color:#333e36;margin-bottom:21px}.character-card .card-story{border:0;border-top:1px solid #b8c2b9;border-radius:0;background:none;padding:23px 0 0;grid-template-columns:70px minmax(0,1fr);gap:10px 13px;margin:9px 0 20px;font-size:12px;line-height:1.6}.character-card .card-story:before{top:-13px;left:calc(50% - 16px);width:32px;color:#395a46;font-size:20px;line-height:24px;background:#fff}.character-card .card-story dt{font-size:10px;letter-spacing:.6px;color:#5c7162;border:1px solid #c0cec2;border-radius:3px;padding:3px 6px;text-align:center;align-self:start;line-height:1.6;background:#fbfcfa}.character-card .card-story dd{align-self:center;font-size:11px;color:#28382d}.character-card .card-meta .life-status{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;font-size:11px;line-height:1.4;white-space:nowrap;color:#487438;padding:0;background:transparent}.character-card .card-meta .life-status:before{content:'';display:block;flex:none;width:8px;height:8px;border-radius:50%;background:currentColor;margin:0}.character-card .card-meta .life-lost,.character-card .card-meta .life-dead{color:#b65e60}.character-card .card-meta .life-unknown{color:#7b827d}.card-actions button{display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;min-height:46px}.card-actions svg{display:block;width:21px;height:23px;flex:none}
@media(max-width:540px){#characterGrid .character-card .card-body h3{font-size:21px;letter-spacing:.6px}#characterGrid .character-card .card-reading{font-size:9px;letter-spacing:.5px}.character-card .card-story{grid-template-columns:1fr;gap:5px;padding-top:19px}.character-card .card-story dt{justify-self:start;font-size:9px;padding:2px 6px}.character-card .card-story dd{font-size:10px}.character-card .card-meta .life-status{font-size:9px;gap:4px}.card-actions button{gap:5px;font-size:10px}.card-actions svg{width:17px;height:20px}}
#characterGrid .character-card.life-lost .card-art,#characterGrid .character-card.life-dead .card-art{filter:none}

/* Approved mock typography: title to reading ratio ~3:1. */
#characterGrid .character-card .card-body h3{font-size:28px;line-height:1.4}#characterGrid .character-card .card-reading{font-size:10px;line-height:1.6;letter-spacing:1.6px;margin-top:3px}#characterGrid .character-card.life-lost .card-body h3,#characterGrid .character-card.life-dead .card-body h3{color:#b65e60}.character-card .card-meta .life-status:before{content:none}.character-card .card-meta .life-status{display:inline-flex;align-items:center;gap:6px;line-height:1}.character-card .card-meta .status-dot{display:block;width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}.character-card .card-meta .status-label{display:block;line-height:1;position:relative;top:-1px}.card-actions button{gap:0}
@media(max-width:540px){#characterGrid .character-card .card-body h3{font-size:23px}#characterGrid .character-card .card-reading{font-size:8px;letter-spacing:.6px}.character-card .card-meta .life-status{gap:5px}.character-card .card-meta .status-dot{width:7px;height:7px}}

#characterCreationDialog{width:min(560px,calc(100vw - 30px));max-height:90vh;overflow:auto}#characterCreationDialog h2{font:500 23px/1.7 'Noto Serif JP',serif;padding-right:20px}#characterCreationDialog>p{font-size:12px;color:#718176}.creation-choices{display:grid;gap:11px;margin-top:23px}.creation-choices button{padding:17px 20px;display:flex;flex-direction:column;gap:7px;text-align:left;border:1px solid #d3ddd2;border-radius:7px;background:#fafcf9;color:#294735;min-height:76px}.creation-choices button:hover{border-color:#5f8b68;background:#eef5ee}.creation-choices strong{font-size:15px}.creation-choices span{font-size:11px;line-height:1.7;color:#768276}.creation-choices .original-choice{margin-top:10px;background:#f5f3ed;border-color:#dbd5c7}.creation-choices button:focus-visible{outline:2px solid #497b55;outline-offset:2px}

.creation-choices .planned-system:disabled{background:#f3f3f3;border-color:#e3e3e3;color:#999;cursor:not-allowed;opacity:1}.creation-choices .planned-system:disabled span{color:#999;font-size:10px;letter-spacing:1px}.system-tag{max-width:72%;font-size:9px;line-height:1.6}.creation-choices .planned-system{min-height:62px;padding:13px 20px}

.creation-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.creation-choices .original-choice{grid-column:1/-1}.creation-choices button{min-width:0;padding:15px 14px}.creation-choices strong{font-size:14px;overflow-wrap:anywhere}.creation-choices .planned-system{padding:14px;min-height:76px}#characterCreationDialog{width:min(620px,calc(100vw - 30px))}@media(max-width:400px){.creation-choices{gap:8px}.creation-choices button{padding:12px 10px}.creation-choices strong{font-size:12px}.creation-choices span{font-size:10px}}

.view-switch{display:flex;justify-content:flex-end;gap:3px;margin:0 0 17px}.view-switch button{min-height:42px;padding:9px 16px;border:1px solid #d6dfd5;background:#fff;color:#758278;font:inherit;font-size:11px;cursor:pointer}.view-switch button:first-child{border-radius:5px 0 0 5px}.view-switch button:last-child{border-radius:0 5px 5px 0}.view-switch button[aria-pressed=true]{background:#244e3a;border-color:#244e3a;color:#fff}.view-switch button:focus-visible{outline:2px solid #69a17a;outline-offset:2px}#characterGrid.mode-list{display:flex;flex-direction:column;gap:12px}#characterGrid.mode-list .character-card{display:grid;grid-template-columns:88px minmax(0,1fr);border-radius:7px;box-shadow:none}#characterGrid.mode-list .card-art{aspect-ratio:auto;height:104px;min-height:104px;border-radius:0}#characterGrid.mode-list .card-art img{transform:scale(2.3);transform-origin:50% 0}#characterGrid.mode-list .card-art:before,#characterGrid.mode-list .card-art:after{display:none}#characterGrid.mode-list .card-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:15px 20px}#characterGrid.mode-list .card-meta,#characterGrid.mode-list .card-reading,#characterGrid.mode-list .card-story{display:none}#characterGrid.mode-list .card-body h3{font-size:20px;line-height:1.6;margin:0;text-align:left;letter-spacing:.6px}#characterGrid.mode-list .card-actions{display:flex;gap:10px;margin:0}#characterGrid.mode-list .card-actions button{min-width:90px;min-height:44px;padding:9px 16px}
@media(max-width:540px){#characterGrid.mode-list .character-card{grid-template-columns:68px minmax(0,1fr)}#characterGrid.mode-list .card-art{height:108px;min-height:108px}#characterGrid.mode-list .card-body{grid-template-columns:1fr;gap:8px;padding:10px 12px}#characterGrid.mode-list .card-body h3{font-size:17px}#characterGrid.mode-list .card-actions{justify-content:flex-start;gap:7px}#characterGrid.mode-list .card-actions button{min-width:70px;padding:7px 12px;font-size:10px}.view-switch{justify-content:flex-start}}

.card-socials{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:10px}.icon-button{width:40px;height:40px;min-width:40px;display:inline-flex;justify-content:center;align-items:center;border:1px solid #dbe1d9;border-radius:50%;background:#fff;color:#607166;cursor:pointer;padding:9px}.icon-button svg{width:20px;height:20px;display:block}.icon-button:hover{background:#f1f5ef;border-color:#9db29e}.icon-button:focus-visible{outline:2px solid #679475;outline-offset:2px}.favorite-toggle[aria-pressed=true]{color:#bd6374;border-color:#e4b9c1;background:#fcf2f5}.favorite-toggle[aria-pressed=true] svg{fill:#bd6374;stroke:#bd6374}#characterGrid.mode-list .card-body{grid-template-columns:minmax(0,1fr) auto auto;gap:15px}#characterGrid.mode-list .card-socials{margin:0;gap:6px}#characterGrid.mode-list .card-body h3{font-size:25px}#characterGrid.mode-list .card-art img{transform:scale(3.2)}
@media(max-width:700px){#characterGrid.mode-list .card-body{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}#characterGrid.mode-list .card-body h3{font-size:22px}#characterGrid.mode-list .card-socials{grid-column:2;grid-row:1/3}#characterGrid.mode-list .card-actions{grid-column:1;grid-row:2}#characterGrid.mode-list .card-socials{flex-direction:column}#characterGrid.mode-list .icon-button{width:38px;height:38px;min-width:38px}}
@media(max-width:540px){#characterGrid.mode-list .card-body h3{font-size:20px}#characterGrid.mode-list .card-art{height:112px;min-height:112px}#characterGrid.mode-list .card-art img{transform:scale(3.2)}}

/* A single compact control row; square list portraits. */
.card-controls{display:flex;align-items:center;gap:8px;margin-top:auto}.card-controls .card-actions{flex:1;min-width:0;margin:0;gap:6px}.card-controls .card-actions button{min-width:0;padding:8px 6px;font-size:11px}.card-controls .card-socials{margin:0;gap:5px;flex-shrink:0}.card-controls .icon-button{width:34px;height:40px;min-width:34px;padding:7px;border-radius:5px}.card-controls .icon-button svg{width:18px;height:18px}#characterGrid.mode-list .character-card{grid-template-columns:104px minmax(0,1fr);align-items:center}#characterGrid.mode-list .card-art{width:104px;height:104px;min-height:104px;aspect-ratio:1;align-self:center}#characterGrid.mode-list .card-body{grid-template-columns:minmax(0,1fr) auto;gap:15px}#characterGrid.mode-list .card-body h3{font-size:50px;line-height:1.3;letter-spacing:.5px}#characterGrid.mode-list .card-controls{margin:0}#characterGrid.mode-list .card-socials{flex-direction:row;grid-area:auto}#characterGrid.mode-list .card-actions{grid-area:auto}#characterGrid.mode-list .card-controls .icon-button{width:40px;height:40px;min-width:40px;border-radius:50%}
@media(max-width:1000px){#characterGrid.mode-list .card-body{grid-template-columns:minmax(0,1fr);gap:12px}#characterGrid.mode-list .card-controls{justify-self:start}#characterGrid.mode-list .card-body h3{font-size:44px}}
@media(max-width:540px){.card-controls{gap:5px}.card-controls .card-socials{gap:2px}.card-controls .icon-button{width:28px;height:40px;min-width:28px;padding:5px}.card-controls .card-actions button{font-size:10px;padding:8px 3px}#characterGrid.mode-list .character-card{grid-template-columns:88px minmax(0,1fr)}#characterGrid.mode-list .card-art{width:88px;height:88px;min-height:88px}#characterGrid.mode-list .card-body{padding:12px 10px;gap:10px}#characterGrid.mode-list .card-body h3{font-size:40px}#characterGrid.mode-list .card-controls{gap:5px;max-width:100%;flex-wrap:wrap}#characterGrid.mode-list .card-actions button{min-width:52px;padding:7px 6px}#characterGrid.mode-list .card-controls .icon-button{width:34px;height:40px;min-width:34px}.card-controls .card-actions{gap:3px}}

/* Full-height square portrait, controls anchored to the right. */
.card-controls .icon-button{height:46px;min-height:46px}.card-controls .card-actions button{height:46px;min-height:46px}#characterGrid.mode-list .character-card{grid-template-columns:128px minmax(0,1fr);min-height:128px;align-items:stretch}#characterGrid.mode-list .card-art{width:128px;height:128px;min-height:128px;align-self:start}#characterGrid.mode-list .card-body{grid-template-columns:minmax(0,1fr) auto;padding:18px;gap:12px}#characterGrid.mode-list .card-controls{justify-self:end;justify-content:flex-end;flex-wrap:nowrap}#characterGrid.mode-list .card-actions button{min-width:68px;padding:8px 10px}#characterGrid.mode-list .card-controls .icon-button{width:40px;min-width:40px;height:46px;min-height:46px}#characterGrid.mode-list .card-body h3{font-size:50px}
@media(max-width:1000px){#characterGrid.mode-list .character-card{grid-template-columns:136px minmax(0,1fr);min-height:136px}#characterGrid.mode-list .card-art{width:136px;height:136px;min-height:136px}#characterGrid.mode-list .card-body{grid-template-columns:minmax(0,1fr);gap:8px;padding:13px 16px}#characterGrid.mode-list .card-body h3{font-size:44px}#characterGrid.mode-list .card-controls{justify-self:end;width:auto}}
@media(max-width:540px){.card-controls .icon-button,.card-controls .card-actions button{height:46px;min-height:46px}#characterGrid.mode-list .character-card{grid-template-columns:126px minmax(0,1fr);min-height:126px}#characterGrid.mode-list .card-art{width:126px;height:126px;min-height:126px}#characterGrid.mode-list .card-body{padding:10px 8px;gap:8px}#characterGrid.mode-list .card-body h3{font-size:32px}#characterGrid.mode-list .card-controls{display:grid;grid-template-columns:auto auto;gap:4px;justify-self:end}#characterGrid.mode-list .card-actions{gap:3px}#characterGrid.mode-list .card-actions button{min-width:0;font-size:9px;padding:7px 5px}#characterGrid.mode-list .card-controls .icon-button{width:28px;min-width:28px;height:46px;padding:5px}#characterGrid.mode-list .card-socials{gap:2px}}
@media(min-width:541px) and (max-width:1000px){#characterGrid.mode-list .character-card{grid-template-columns:148px minmax(0,1fr);min-height:148px}#characterGrid.mode-list .card-art{width:148px;height:148px;min-height:148px}}

/* Shared icon shape in both views; compact fluid mobile actions. */
#characterGrid.mode-list .card-controls .icon-button{border-radius:5px;width:34px;min-width:34px;height:46px;padding:7px}#characterGrid.mode-list .card-controls .icon-button svg{width:18px;height:18px}
@media(max-width:540px){#characterGrid.mode-list .card-controls{display:flex;justify-content:flex-end;gap:5px;width:100%;min-width:0;flex-wrap:nowrap}#characterGrid.mode-list .card-controls .card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1;min-width:0;gap:4px}#characterGrid.mode-list .card-controls .card-actions button{width:100%;min-width:0;max-width:none;padding:7px 3px;font-size:10px;white-space:nowrap}#characterGrid.mode-list .card-controls .card-socials{gap:3px;flex:none}#characterGrid.mode-list .card-controls .icon-button{width:28px;min-width:28px;height:46px;padding:5px;border-radius:5px}}
@media(max-width:380px){#characterGrid.mode-list .character-card{grid-template-columns:104px minmax(0,1fr)}#characterGrid.mode-list .card-art{width:104px;height:104px;min-height:104px}#characterGrid.mode-list .card-body{padding:8px 6px}#characterGrid.mode-list .card-body h3{font-size:28px}#characterGrid.mode-list .card-controls{gap:3px}#characterGrid.mode-list .card-controls .card-actions{gap:2px}#characterGrid.mode-list .card-controls .card-actions button{font-size:9px;padding:7px 2px}}

.memory-intro{margin:0 0 22px}.memory-intro>span{font-size:11px;letter-spacing:1px;color:#486e55}.memory-intro p,.memory-timeline-heading>p:last-child{font-size:12px;line-height:1.9;color:#7b887f}.memory-form{padding:24px;border:1px solid #d9e4d9;border-radius:8px;background:#f8faf6;margin-bottom:42px}.memory-form h3,.memory-timeline-heading h3{font:500 20px/1.7 'Noto Serif JP',serif;margin:0 0 12px}.memory-form textarea{min-height:120px;resize:vertical}.memory-form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.memory-form-actions button{min-height:44px}.memory-timeline-heading{margin:0 0 25px}#sessionList{border-left:1px solid #cbd9cc;padding-left:24px;margin-left:5px}.memory-entry{position:relative;padding:22px;border:1px solid #dce5da;border-radius:7px;margin:0 0 24px;background:#fff}.memory-entry:before{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:#497a58;left:-30px;top:29px;box-shadow:0 0 0 5px #fff}.memory-heading{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.memory-heading h3{font:500 18px/1.8 'Noto Serif JP',serif;overflow-wrap:anywhere;margin:7px 0}.memory-heading button{min-height:44px;white-space:nowrap;font-size:11px}.memory-date{font-size:10px;letter-spacing:1px;color:#648169}.memory-scenario{font-size:11px;color:#819083;margin:0 0 16px}.memory-entry h4{font-size:10px;font-weight:500;letter-spacing:1px;color:#68816d;margin:22px 0 8px}.memory-entry .memory-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2;font-size:13px;color:#34483a;margin:0}.memory-entry .memory-thought{border-left:2px solid #b5cab6;padding-left:14px}#memoryEmpty{font-size:13px;color:#7c897f;padding:25px 0}
@media(max-width:540px){.memory-form{padding:15px}.memory-form input,.memory-form textarea{font-size:16px}.memory-entry{padding:16px}.memory-heading{gap:10px}.memory-heading h3{font-size:16px}.memory-heading button{font-size:10px;padding:9px}#sessionList{padding-left:18px}.memory-entry:before{left:-24px}}

.extension-list{display:grid;gap:18px;margin:25px 0}.extension-box{padding:22px;border:1px solid #dbe4d9;border-radius:7px;background:#fafcf8;margin:18px 0;min-width:0}.extension-box label,.extension-dialog>label{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-size:11px;color:#627765}.extension-box input,.extension-box textarea,.extension-box select,.extension-dialog input,.extension-dialog textarea{width:100%;min-width:0;padding:12px;font:inherit;color:#243c2b;border:1px solid #ccd9cc;border-radius:5px;background:white;box-sizing:border-box}.extension-box textarea,.extension-dialog textarea{min-height:100px;resize:vertical}.extension-box button{min-height:44px}.inline-check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px;font-size:12px;line-height:1.8}.inline-check input{width:18px!important;height:18px;min-width:18px;margin-top:3px}.external-link{display:inline-block;color:#386849;font-size:12px;text-decoration:underline;margin:8px 12px 8px 0;overflow-wrap:anywhere}.extension-dialog{width:min(700px,calc(100vw - 28px));max-height:90vh;overflow:auto}.extension-dialog h2{font:500 23px/1.7 'Noto Serif JP',serif}.extension-dialog>button{min-height:44px;margin:8px}.share-choices{padding:14px;border:1px solid #d9e5d8;border-radius:5px;display:grid;grid-template-columns:1fr 1fr;gap:12px}#keeperView{padding:35px 0}.keeper-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:25px}.keeper-table-list{display:flex;flex-direction:column;gap:8px}.keeper-table-list button{min-height:44px;text-align:left;overflow-wrap:anywhere}.keeper-layout>div>label{display:flex;flex-direction:column;gap:8px;font-size:12px;margin:15px 0}.keeper-layout input,.keeper-layout textarea{padding:12px;font:inherit;border:1px solid #cbd9cc;border-radius:5px;min-width:0}.keeper-layout textarea{min-height:110px}.keeper-layout .extension-box{margin:12px 0}.keeper-layout h3{font:500 20px 'Noto Serif JP',serif;margin:32px 0 20px}.resistance-tool output{display:block;font-size:22px;color:#315e3e;padding:16px 0}.kp-content{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/2 'Noto Sans JP',sans-serif;padding:24px;background:#f4f7f0;border:1px solid #d6e1d3;border-radius:7px}
@media(max-width:600px){.keeper-layout{grid-template-columns:1fr}.keeper-table-list{flex-direction:row;overflow:auto}.keeper-table-list button{flex-shrink:0;max-width:180px}.extension-box{padding:15px}.extension-box input,.extension-box textarea,.extension-box select,.extension-dialog input,.extension-dialog textarea,.keeper-layout input,.keeper-layout textarea{font-size:16px}.share-choices{grid-template-columns:1fr}.kp-content{padding:16px}}
.portrait-archive{grid-column:1/-1;border-top:1px solid #d6e1d5;padding-top:18px}.portrait-archive>summary{cursor:pointer;font-size:13px;color:#45694e;min-height:44px}.portrait-archive>.portrait-card{max-width:320px;margin:16px 0}.portrait-card input[type=file]{max-width:100%;font-size:10px;padding:7px}
.companion-portrait{width:88px;height:88px;object-fit:cover;object-position:top;border-radius:6px;margin-top:12px}

/* Discoverable help entry, distinct from character navigation. */
.guide-entry{display:flex;align-items:center;gap:11px;flex-shrink:0;min-height:76px;padding:14px 12px;margin-top:16px;box-sizing:border-box;border:1px solid #51735f;border-radius:8px;background:#1e3027;color:#f3faf6;text-decoration:none;transition:background .15s,border-color .15s}
.guide-entry:hover{background:#2a4435;border-color:#91b39e}.guide-entry:focus-visible{outline:3px solid #afd8bd;outline-offset:3px}.guide-entry-icon{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border:1px solid #85b299;border-radius:50%;color:#c4e7d1;font:600 17px/1 sans-serif}.guide-entry-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}.guide-entry-copy strong{font-size:14px;line-height:1.5;font-weight:600}.guide-entry-copy small{font-size:10px;line-height:1.5;color:#b5cbbd}.guide-entry-arrow{font-size:18px;color:#bbd9c5}
@media(max-width:780px){.guide-entry{width:100%;flex-basis:100%;margin-top:6px;min-height:64px;padding:10px 14px}.guide-entry-copy{gap:2px}.guide-entry-copy strong{font-size:13px}.guide-entry-copy small{font-size:11px}}

@media(min-width:781px) and (max-width:1100px){.guide-entry{padding:12px 9px;gap:8px}.guide-entry-icon{width:20px;height:20px;font-size:14px}.guide-entry-arrow{display:none}.guide-entry-copy strong{font-size:12px;white-space:nowrap}.guide-entry-copy small{font-size:9px}}

.friend-entry{width:100%;text-align:left;font:inherit;cursor:pointer;margin-top:10px;background:#24382d;border-color:#6d967e}.friend-entry:hover{background:#35533f;border-color:#b3d5bd}.friend-entry .guide-entry-icon{font-size:22px}.friend-entry:active{background:#1b2c22}@media(min-width:781px) and (max-width:1100px){.friend-entry .guide-entry-icon{font-size:17px}}

.character-summary #summaryName{margin:10px 0 5px;font-size:26px;overflow-wrap:anywhere}.summary-reading{margin:0 0 14px;font-size:11px;color:#6b756f}.character-summary #summaryName.summary-name-lost{color:#a43b42}#summaryParameterTitle{font-size:11px;letter-spacing:.08em;margin:22px 0 12px;color:#4b6657}.summary-parameters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0}.summary-parameter{border:1px solid #dce6df;background:#f6f9f6;border-radius:5px;padding:9px 4px;text-align:center}.summary-parameter dt{font-size:9px;color:#65796b;overflow-wrap:anywhere}.summary-parameter dd{margin:4px 0 0;font-size:19px;line-height:1.3;font-variant-numeric:tabular-nums;color:#253c2e}.summary-dates{margin:18px 0 0;padding-top:13px;border-top:1px solid #dce6df;font-size:11px;color:#69776e}.summary-dates>div{display:flex;justify-content:space-between;gap:12px;margin:7px 0}.summary-dates dd{margin:0;font-variant-numeric:tabular-nums}.character-summary #summaryLifeStatus{display:inline-flex;align-items:center;gap:5px} @media(max-width:780px){.character-summary #summaryParameterSection,.character-summary .summary-dates{grid-column:1/-1}.summary-parameters{grid-template-columns:repeat(4,minmax(0,1fr))}.character-summary .summary-reading{grid-column:2}.character-summary #summaryLifeStatus{grid-column:2}.character-summary #summaryName{font-size:24px}.summary-dates{max-width:420px}}

#summaryLifeStatus .status-dot{display:block;flex:none;width:7px;height:7px;border-radius:50%;background:currentColor}#summaryLifeStatus .status-label{display:block;line-height:1.3}
@media(max-width:780px){.sidebar{flex-wrap:wrap;justify-content:flex-start;gap:8px}.sidebar>.brand{flex-basis:100%;margin-bottom:4px}.sidebar>.side-nav{white-space:nowrap;flex:none}.sidebar>.guide-entry{width:calc(50% - 4px);flex-basis:calc(50% - 4px);padding:10px 8px;gap:7px;min-height:72px;margin-top:0}.sidebar>.guide-entry .guide-entry-icon{width:22px;height:22px}.sidebar>.guide-entry .guide-entry-arrow{display:none}.sidebar>.guide-entry strong{font-size:12px}.sidebar>.guide-entry small{font-size:10px}.character-summary{min-width:0}}
@media(max-width:780px){.sidebar>#keeperNav{flex-basis:100%}}

#summaryParameterSection{padding:16px;border:1px solid #dfe6df;border-radius:12px;background:white;margin-top:18px}#summaryParameterTitle{margin:0 0 12px;font-size:11px;color:#68756d}.summary-parameters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.summary-parameter{border:0;border-radius:10px;padding:12px 5px;background:#f2faf3;min-height:70px;display:flex;flex-direction:column;justify-content:center}.summary-parameter dt{font-size:10px;line-height:1.4}.summary-parameter dd{font-size:24px;font-weight:600;line-height:1.2;margin-top:4px;color:#18281f}.summary-points{margin-top:15px}.summary-point{margin-top:10px}.summary-point-label{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#737b75}.summary-point progress{appearance:none;display:block;width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;margin-top:5px;background:#e7e9e7}.summary-point progress::-webkit-progress-bar{background:#e7e9e7;border-radius:8px}.summary-point progress::-webkit-progress-value{background:#7d9f87;border-radius:8px}.summary-point progress::-moz-progress-bar{background:#7d9f87;border-radius:8px}.summary-point.over-budget{color:#a43b42}.summary-point.over-budget progress::-webkit-progress-value{background:#b65e60}.summary-dates{padding:12px 16px;border:1px solid #dfe6df;border-radius:10px;background:white;margin-top:12px}.summary-dates>div{font-size:10px;margin:3px 0}.summary-dates dt{color:#849087}@media(max-width:780px){.summary-parameters{grid-template-columns:repeat(2,minmax(0,1fr))}#summaryParameterSection{margin-top:18px}.summary-dates{max-width:none}}

/* CHARANIMA: all abilities plus current resources, without hiding the character's strengths. */
.summary-parameters{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.summary-parameter{min-height:62px;padding:10px 4px;border-radius:6px;background:#f5f8f5;border:1px solid #e1e8e2}.summary-parameter dd{font-size:21px;font-weight:500}.summary-parameter:nth-child(-n+3){background:#eaf3ed;border-color:#cddfd2}@media(max-width:780px){.summary-parameters{grid-template-columns:repeat(3,minmax(0,1fr))}}

.summary-point{margin-top:14px}.summary-point-label{align-items:baseline;font-size:11px;color:#3d5546}.summary-point-name{font-weight:500}.summary-point-remaining{font-size:12px;font-weight:600;color:#315d42;font-variant-numeric:tabular-nums}.summary-point-usage{font-size:10px;text-align:right;color:#728077;margin-top:2px;font-variant-numeric:tabular-nums}.summary-point.over-budget .summary-point-remaining,.summary-point.over-budget .summary-point-usage{color:#ad4254}.summary-point.over-budget progress::-moz-progress-bar{background:#b65e60}

.system-bar.system-direct{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:12px;padding:12px 22px;background:#fff;min-height:66px}.system-direct>label{font-size:10px;color:#78847c;white-space:nowrap}.system-direct>select{min-width:0;width:auto;max-width:320px;flex:1;padding:8px 30px 8px 10px;min-height:40px;font-size:12px;background:#f3f7f3;border-color:#d5e3d8}.system-direct>#systemAdd{min-height:40px;padding:8px 14px;font-size:11px;white-space:nowrap}.system-direct>#systemAdd:disabled{opacity:.45;cursor:default}@media(max-width:780px){.system-bar.system-direct{padding:12px 14px;gap:8px}.system-direct>label{font-size:9px}.system-direct>select{font-size:16px;padding:8px;max-width:none}.system-direct>#systemAdd{padding:8px 10px}}

.summary-system-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:15px 0 10px}.summary-system-tags .sheet-tag{font:500 9px/1.5 'Noto Sans JP',sans-serif;padding:4px 5px;min-height:28px;border:1px solid transparent;border-radius:4px;cursor:pointer;letter-spacing:0;white-space:nowrap;text-align:center;min-width:0;overflow-wrap:normal;max-width:none;width:100%}.summary-system-tags .sheet-tag.is-current{border-color:#375f49;box-shadow:0 0 0 1px #375f4920;font-weight:600}.summary-system-tags .sheet-tag:not(.is-current){opacity:.65}.summary-system-tags .sheet-tag:hover{opacity:1}.summary-system-tags .sheet-tag:focus-visible{outline:2px solid #598b6b;outline-offset:2px}.summary-system-tags .sheet-tag.is-current:after{content:none}@media(max-width:780px){.summary-system-tags{grid-column:2;margin:0 0 6px;align-self:start}.summary-system-tags .sheet-tag{font-size:9px;padding:4px;min-height:30px}.system-direct>#systemAdd{font-size:10px;padding:8px}.system-direct>select{min-width:0}}

@media(max-width:360px){.summary-system-tags{gap:4px}.summary-system-tags .sheet-tag{font-size:8px;padding:4px 2px}}

.memory-entry-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}.memory-entry-actions button{min-height:44px;padding:10px 16px;font-size:12px}.memory-entry-actions [aria-pressed=true]{background:#e9f2ec;border-color:#618b70;color:#2e573d}.memory-form [hidden]{display:none!important}.memory-entry:before{content:none}#sessionList{padding-left:36px;margin-left:16px;border-left:1px solid #cbd9cc}.memory-star{position:absolute;left:-53px;top:24px;display:grid;place-items:center;width:32px;height:32px;font-size:29px;line-height:1;color:#527b60;background:#fff;font-family:serif;border-radius:50%}.memory-star-start{color:#3b6c4d;box-shadow:0 0 0 4px #edf5ed,0 0 0 7px #f8fbf8}.memory-star-ending{border:1px solid #799982;box-shadow:0 0 0 4px white;font-size:24px}.memory-milestone,.ending-outcome{display:inline-block;font-size:10px;padding:3px 9px;letter-spacing:.05em;border:1px solid #d5e1d7;border-radius:20px;color:#59735f;background:#f3f7f2}.memory-ending{border-color:#bacfbe;background:#fbfdfb}.ending-outcome.outcome-lost{color:#a05e6c;border-color:#e4cfd5;background:#fbf4f6}.ending-continuation{font-size:10px;line-height:1.8;color:#7a897d;border-top:1px solid #e1e9e2;padding-top:16px;margin-top:24px}#endingOutcomeField select{min-height:44px}@media(max-width:540px){#sessionList{padding-left:26px;margin-left:12px}.memory-star{left:-40px;width:26px;height:26px;font-size:25px}.memory-star-ending{font-size:20px}.memory-entry-actions button{flex:1;font-size:11px;padding:9px}.memory-heading{gap:7px}.memory-form select{font-size:16px}}

#sessionForm[hidden],#memoryEntryActions[hidden],#addEndingMemory[hidden]{display:none!important}#memoryComposer{margin-top:18px;margin-left:52px}#memoryComposer .memory-form{margin:0 0 24px}#sessionList>.memory-form{margin:0 0 24px}.memory-entry-actions{padding:5px 0 18px}.memory-entry-actions button{border:1px solid #cdded2;border-radius:6px;background:#f8fbf8}.memory-entry-actions button:hover{background:#edf4ef}.memory-continued .memory-star{color:#568eaa}.memory-continued.memory-ending .memory-star{border-color:#79a4b7}.continuation-label{background:#edf6fa;color:#4c829c;border-color:#c9dfe9}.is-continuation .memory-entry-actions button{color:#467b93;border-color:#bdd6e1;background:#f1f8fb}.memory-continued{border-color:#d2e3eb}@media(max-width:540px){#memoryComposer{margin-left:0}#memoryComposer .memory-entry-actions{padding-left:0}.memory-entry-actions button{flex-basis:100%}}

#continuationScenarioField[hidden],#continuationHandoutField[hidden]{display:none!important}.memory-scenario-context{border-left:2px solid #77b9cc;padding-left:14px;margin:14px 0}

.concept-heading{display:flex;align-items:center;gap:12px}.concept-heading h3{margin:0;font:500 18px/1.6 'Noto Serif JP',serif}.concept-icon{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:#497a72;flex-shrink:0}.concept-title{white-space:pre-wrap;font-size:19px;line-height:1.8;overflow-wrap:anywhere;margin:18px 0}.concept-visibility{display:block;color:#77817d;font-size:11px;margin:12px 0}.concept-actions{display:flex;gap:12px;flex-wrap:wrap}.concept-error{color:#ad3a3a;font-size:13px;line-height:1.8}.concept-form label{font-size:12px}.concept-list{gap:8px}

.concept-media{display:block;max-width:480px;margin:18px 0;color:inherit;text-decoration:none;overflow:hidden;border-radius:7px}.concept-thumbnail{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#f1f2ee}.concept-thumbnail[hidden]{display:none}.concept-product{aspect-ratio:1;object-fit:contain;max-height:300px;background:white}.concept-media .concept-title{margin:12px 0}.concept-play{display:block;font-size:12px;color:#497a72;margin-top:8px}.concept-media:hover .concept-title{text-decoration:underline}

.keeper-participant-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px;margin:22px 0}.keeper-participant{cursor:pointer}.keeper-participant .card-art{height:230px;overflow:hidden}.keeper-participant .card-art img{width:100%;height:100%;object-fit:cover;object-position:top}.keeper-card-placeholder{display:grid;place-items:center;height:100%;font-size:48px;color:white}.keeper-participant .card-body>button{width:100%;min-height:42px}.keeper-participant .card-body h3{font-size:22px}.participant-dialog label{display:flex;flex-direction:column;gap:10px}.keeper-table-list button{padding:16px}.keeper-layout{grid-template-columns:220px minmax(0,1fr)}@media(max-width:600px){.keeper-layout{grid-template-columns:1fr}.keeper-participant-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.keeper-participant .card-art{height:170px}}

.keeper-page-heading,.keeper-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0;flex-wrap:wrap}.keeper-page-heading h2{margin:0;font:500 28px 'Noto Serif JP',serif}.keeper-status-tabs{display:flex;gap:12px;border-bottom:1px solid #dae1dd;padding:15px 0}.keeper-status-tabs [aria-selected=true]{background:#28584a;color:white}.keeper-table-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;margin:28px 0}.keeper-table-card{text-align:left;border:1px solid #d6dfd9;background:#fafcf9;border-radius:8px;padding:24px;cursor:pointer;color:#22342d}.keeper-table-card h3{font:600 22px 'Noto Serif JP',serif}.keeper-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.keeper-editor{max-width:650px}.keeper-modal-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.keeper-modal-head button{font-size:26px;min-width:44px}.keeper-editor form>label{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:13px}.keeper-editor textarea{min-height:140px}.keeper-editor select{width:100%;padding:12px;background:white;border:1px solid #ccd9cc}.keeper-editor .concept-actions{margin:24px 0 10px}.keeper-participant-grid>div{min-width:0}

/* Shared snapshots: readable sections and stable button geometry. */
.participant-dialog .shared-section,.shared-section{border:1px solid #deded8;border-radius:12px;background:#fff;padding:18px;margin:16px 0;min-width:0}
.shared-section h3{margin:0 0 14px;font-size:16px}
.shared-section-content{font:inherit;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0;user-select:text}
.shared-reading{font-size:13px;color:#777;margin-top:-8px}
.shared-portrait{display:flex;flex-direction:column;align-items:center;gap:12px;margin:22px 0}
.shared-portrait img{display:block;width:auto;max-width:100%;max-height:520px;object-fit:contain}
.shared-portrait-download,.participant-dialog button,.shared-section button{font:inherit;line-height:1.4!important;letter-spacing:normal!important;white-space:normal;word-break:normal;min-height:42px;padding:10px 16px!important;height:auto!important}
.shared-portrait-download{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:100%;flex:none}
.shared-copy-tools{display:flex;flex-wrap:wrap;gap:10px}.shared-copy-tools h3,.shared-copy-tools p{flex-basis:100%}
.keeper-participant .card-body{display:flex;flex-direction:column;gap:8px}.keeper-participant .participant-control{align-self:stretch;margin:0;min-height:38px;line-height:1.4}
.shared-login{display:inline-flex;margin:12px 0;align-items:center;min-height:44px}
@media(max-width:600px){.participant-dialog{width:calc(100vw - 24px);max-width:none;padding:18px}.shared-section{padding:14px}.shared-copy-tools button{width:100%}}

/* Override the legacy thumbnail class only for the portrait container. */
div.shared-portrait{width:100%;max-width:none;max-height:none;height:auto;object-fit:initial;overflow:visible}
div.shared-portrait img{flex:none;height:auto;width:auto;max-width:100%;max-height:520px}
div.shared-portrait .field-note{margin:0;text-align:center}

/* Separate table overview, participants and session records. */
.keeper-detail-panel{background:#fff;border:1px solid #dce3df;border-radius:14px;padding:26px;margin:26px 0 34px;box-shadow:0 5px 20px #12281c05;min-width:0}
.keeper-detail-panel[aria-label="卓の情報"]{border-top:3px solid #2e6653;background:linear-gradient(135deg,#f5f9f5,#fff 70%)}
.keeper-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #e2e7e3;padding-bottom:18px;margin-bottom:24px;flex-wrap:wrap}
.keeper-panel-heading>div{display:grid;grid-template-columns:30px 1fr;column-gap:11px;align-items:center}
.keeper-panel-heading h3{margin:0;font:600 20px/1.5 'Noto Serif JP',serif;color:#25392e}
.keeper-panel-heading .field-note{grid-column:2;margin:4px 0 0}
.keeper-panel-number{display:grid;place-items:center;border-radius:50%;background:#e7efe9;color:#35614b;width:30px;height:30px;font:600 11px/1 sans-serif}
.keeper-detail-title{margin:0 0 22px;font:600 27px/1.6 'Noto Serif JP',serif;overflow-wrap:anywhere}
.keeper-table-meta{display:grid;grid-template-columns:80px 1fr;gap:10px 18px;font-size:14px;margin:0}
.keeper-table-meta dt{color:#718176}.keeper-table-meta dd{margin:0;overflow-wrap:anywhere}
.keeper-table-note{border-top:1px dashed #d8e2da;margin-top:22px;padding-top:18px}
.keeper-table-note>small{color:#6d7d72}.keeper-table-note p{margin-bottom:0}
.keeper-detail-panel .keeper-participant-grid{margin:0}
.keeper-round-list{display:grid;gap:14px}
.keeper-record-card{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:20px;align-items:start;padding:20px;border:1px solid #e1e6e2;border-radius:10px;background:#fafbf9;min-width:0}
.keeper-record-date{display:flex;flex-direction:column;gap:8px;padding-right:15px;border-right:1px solid #dfe5df;align-self:stretch}
.keeper-record-date small{font-size:11px;color:#778579}.keeper-record-date strong{font-size:12px;color:#44624e;font-weight:500}
.keeper-record-copy h4{font:600 17px/1.6 'Noto Serif JP',serif;margin:0 0 10px}.keeper-record-copy p{font-size:13px;margin:0;color:#5c6d60}
.keeper-record-actions{display:flex;gap:8px;flex-wrap:wrap}.keeper-record-actions button{font:inherit;font-size:12px;min-height:40px;line-height:1.4;padding:9px 13px;white-space:nowrap}
.keeper-delete{color:#a95151!important;border:1px solid #ead9d6!important;background:#fffafa!important}
.keeper-record-archive{border-top:1px solid #e3e7e2;padding-top:18px;margin-top:24px}
.keeper-record-archive summary{font-size:12px;color:#778176;cursor:pointer}.keeper-archived-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #edf0ec}.keeper-archived-row>div{display:flex;flex-direction:column;gap:5px}.keeper-archived-row small{color:#7a867b}
@media(max-width:700px){.keeper-detail-panel{padding:18px;margin:20px 0 26px}.keeper-panel-heading{align-items:flex-start;gap:14px}.keeper-panel-heading button{max-width:100%;font-size:12px}.keeper-detail-title{font-size:23px}.keeper-record-card{grid-template-columns:1fr;gap:14px;padding:16px}.keeper-record-date{border:0;border-bottom:1px solid #e0e6df;padding:0 0 10px;flex-direction:row;align-items:center}.keeper-record-actions{justify-content:flex-end}.keeper-record-actions button{min-height:44px;flex:1}.keeper-detail-panel .keeper-participant-grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr))}}

/* v0.58: compact sheet labels and text-only concepts. */
#characterGrid .card-art::after{content:none;display:none}
.card-meta{flex-wrap:wrap;align-items:center;row-gap:9px}
.card-system-tags{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
.card-system-tags .system-tag{white-space:nowrap;font-size:10px;padding:4px 7px}
.editor-delete{margin:36px 0 0;padding:22px 0;border-top:1px solid #e3e7e2}
.editor-delete button{color:#a95151;border:1px solid #ead9d6}
.editor-delete p{font-size:11px;color:#7a867b;margin:10px 0 0}
.character-recovery{margin-top:24px;padding-top:20px;border-top:1px solid #e3e7e2}
.character-recovery summary{cursor:pointer}
.recovery-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 0}
.concept-box .concept-title{white-space:pre-wrap;overflow-wrap:anywhere}
.concept-box .external-link{display:block;overflow-wrap:anywhere;margin:12px 0}

/* v0.59: purpose-first sharing, readable previews and optional KP password. */
.share-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.share-dialog-heading h2{margin:0;font:500 23px/1.6 'Noto Serif JP',serif}
.share-dialog-close{font-size:22px!important;min-width:44px;padding:4px 10px!important}
.share-picker{width:min(520px,calc(100vw - 32px))}
.share-purpose{display:flex;flex-direction:column;text-align:left;gap:8px;width:100%;padding:20px;margin-top:12px;border:1px solid #d3dfd5;border-radius:7px;background:#f9fbf8;color:#244d3b;cursor:pointer;font:inherit}
.share-purpose:hover{background:#edf4ee;border-color:#739981}
.share-purpose strong{font-size:15px}.share-purpose span{font-size:12px;line-height:1.8;color:#69766d}
.share-composer{width:min(840px,calc(100vw - 24px));box-sizing:border-box;max-height:90vh;overflow:auto}
.share-composer .share-choices{border:1px solid #d9e1d8;border-radius:7px;padding:16px;margin:18px 0}
.share-choices legend{font-size:12px;color:#66786a;padding:0 7px}
.share-preview{background:#fafbf8;border:1px solid #d9e1d8;border-radius:8px;padding:22px;margin:16px 0 24px}
.share-preview>.shared-portrait{max-width:240px;margin:0 auto 20px}
.share-preview .shared-copy-tools{display:none}
.share-preview .shared-section{background:#fff;padding:16px;margin-top:12px}
.share-preview .shared-section-content{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.9}
.share-protection{margin:20px 0;padding-top:16px;border-top:1px solid #dde4db}
.share-result{margin-top:20px;padding:18px;background:#edf4ee;border-radius:7px}
.share-composer>button.primary{margin-top:12px;min-height:46px}
@media(max-width:540px){.share-composer{padding:18px}.share-preview{padding:14px}.share-dialog-heading h2{font-size:19px}}

/* v0.60: visible color and name-only concept links. */
.shared-color-bar{width:100%;height:36px;border-radius:5px;border:1px solid #00000015;margin:12px 0}
.shared-color-code{font-size:12px;color:#657268;letter-spacing:.5px}
.shared-concept{padding:14px 0;border-bottom:1px solid #e3e8df}
.shared-concept:last-child{border-bottom:0}.shared-concept h4{margin:0 0 7px;font-size:12px;color:#718176}
.shared-concept-name{display:block;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
a.shared-concept-name,a.concept-title{color:#245b42;text-decoration:underline;text-underline-offset:4px}
a.concept-title{display:block;margin:14px 0;font-weight:600}

/* Email login stays disabled until SMTP delivery is verified. */
.email-login-dialog{width:min(460px,calc(100vw - 32px));border:1px solid #dbe3de;border-radius:14px;padding:26px;color:#202624;background:#fff}.email-login-dialog::backdrop{background:#10171399}.email-login-dialog h2{font-size:20px}.email-login-dialog form{display:grid;gap:16px;margin-top:24px}.email-login-dialog [hidden]{display:none!important}.email-login-dialog .email-login-status{font-size:13px;line-height:1.8;margin:0}.email-login-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.email-login-dialog a{color:#315f4e}.email-login-dialog .field-note{font-size:12px;line-height:1.8;margin-top:20px}
