.profile-intro{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:stretch;margin-bottom:18px}.profile-intro>div{background:var(--green);color:white;border-radius:16px;padding:28px}.profile-intro small{color:#fff;font-size:11px;letter-spacing:.12em}.profile-intro h2{font:500 32px serif;margin:8px 0}.profile-intro p{color:#e5f1e8;max-width:760px;margin:0}.asset-status{border:1px solid var(--line);border-radius:16px;background:var(--paper);padding:24px;display:flex;flex-direction:column;justify-content:center}.asset-status span{color:var(--muted);font-size:11px;letter-spacing:.1em}.asset-status strong{font-size:18px;margin:7px 0}.asset-status p{color:var(--muted);margin:0}.asset-status.ready{background:#f1f7df;border-color:#a7b85d}.asset-status.build{background:#fff7e3;border-color:#dbc47e}.profile-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-card{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:24px}.settings-card h3{font-size:21px;margin:0 0 4px;padding-right:40px}.settings-step{position:absolute;right:20px;top:20px;color:#9aa69d;font:700 13px serif}.settings-copy{color:var(--muted);margin:0 0 20px}.field-label{display:block;font-weight:700;margin:18px 0 7px}.field-help{display:block;color:var(--muted);font-size:12px;margin-top:5px}.settings-card>input,.settings-card>textarea{width:100%}.settings-card>textarea{min-height:82px;resize:vertical}.choice-grid{display:flex;flex-wrap:wrap;gap:8px}.profile-choice{position:relative;cursor:pointer}.profile-choice input{position:absolute;opacity:0;pointer-events:none}.profile-choice span{display:flex;flex-direction:column;justify-content:center;min-height:46px;border:1px solid var(--line);border-radius:9px;background:#f8f9f5;padding:7px 11px;color:#334238;transition:border-color .15s ease,background-color .15s ease,color .15s ease}.profile-choice small{font-size:10px;color:var(--muted);margin-top:1px}.profile-choice:hover span{border-color:#90a095;background:#f0f4ec}.profile-choice input:focus-visible+span{outline:2px solid var(--green);outline-offset:2px}.profile-choice input:checked+span{background:var(--green);border-color:var(--green);color:white}.profile-choice input:checked+span small{color:#d8ee70}.profile-choice input:disabled+span{opacity:.42;cursor:not-allowed;background:#efefeb}.choice-grid.compact .profile-choice span{min-height:40px}.settings-save{position:sticky;bottom:14px;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:18px;padding:16px 18px;border:1px solid #bfc8bd;border-radius:12px;background:#fffefaeF;box-shadow:0 10px 28px #1a3c2b18;backdrop-filter:blur(8px)}.settings-save div{display:flex;flex-direction:column}.settings-save small{color:var(--muted)}@media(max-width:980px){.profile-intro,.profile-layout{grid-template-columns:1fr}}@media(max-width:640px){.profile-intro>div,.asset-status,.settings-card{padding:19px}.profile-intro h2{font-size:27px}.settings-save{align-items:stretch;flex-direction:column}.settings-save button{width:100%}}
.profile-save-dialog{width:min(490px,calc(100vw - 32px));max-width:none;padding:0;border:1px solid #e4d6d2;border-radius:16px;background:var(--paper);box-shadow:0 24px 70px #17211b38;color:var(--ink)}
.profile-save-dialog::backdrop{background:#17211b80}
.profile-save-dialog form{padding:28px}
.profile-save-dialog h2{margin:0 0 16px;color:var(--green);font:600 32px/1.25 serif}
.profile-save-dialog p{margin:0;padding:14px 16px;border-left:3px solid #ff2525;border-radius:0 8px 8px 0;background:#fff7f5;color:#ff2525;font:400 17px/1.85 "Songti SC","STSong","Noto Serif CJK SC",serif;letter-spacing:.025em}
.profile-save-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.profile-save-dialog-actions button:not(.primary){border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:12px 18px;font-weight:700;cursor:pointer}
.profile-save-dialog-actions button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.profile-intro>.asset-status{position:static;inset:auto;width:auto;background:var(--paper);color:var(--ink)}.profile-intro>.asset-status.ready{background:#f1f7df}.profile-intro>.asset-status.build{background:#fff7e3}@media(max-width:640px){.profile-intro>.asset-status{padding:19px}}
.profile-intro>.asset-status.pending{background:#fff7e3;border-color:#dbc47e}
.scope-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-bottom:10px}.scope-tools input{width:100%}.scope-tools small{color:var(--green);font-weight:700;white-space:nowrap}.scope-catalog{display:grid;gap:8px}.scope-group{border:1px solid var(--line);border-radius:10px;background:#fafbf7;overflow:hidden}.scope-group summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:11px 13px;cursor:pointer;font-weight:700;list-style:none}.scope-group summary::-webkit-details-marker{display:none}.scope-group summary:after{content:'＋';color:var(--green);font-size:18px}.scope-group[open] summary:after{content:'－'}.scope-group summary small{color:var(--muted);font-size:11px;font-weight:500;margin-left:auto}.scope-group .choice-grid{padding:2px 12px 13px}.scope-filtered{display:none}.scope-empty{margin:5px 0 0;padding:12px;border-radius:9px;background:#fff7e3;color:var(--muted)}@media(max-width:640px){.scope-tools{grid-template-columns:1fr}.scope-tools small{white-space:normal}.scope-group summary{align-items:flex-start}}

main:has(#settings:not(.hidden))>header{gap:24px;margin-bottom:18px}
main>header #profileGuide{display:none}
main:has(#settings:not(.hidden))>header #profileGuide:not(.hidden){display:block;flex:1;min-width:0;margin:0}
main>header #title{color:#287042;white-space:nowrap}
main:has(#settings:not(.hidden))>header .account{flex:none}
@media(max-width:1250px){main:has(#settings:not(.hidden))>header{flex-wrap:wrap}main:has(#settings:not(.hidden))>header #profileGuide:not(.hidden){order:3;flex-basis:100%}}
.profile-guide{margin:0 0 18px;padding:8px 14px;border:1px solid #d9e5d9;border-radius:16px;background:#eef4ef}
.profile-guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.profile-guide-step{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid #dec272;border-radius:10px;background:#ffedb5;color:#684900;text-align:left}
.profile-guide-step.current{border-color:#ae7514;background:#ffe4a1;box-shadow:0 0 0 2px #c5902c40}
.profile-guide-step.done{border-color:#216039;background:#287042;color:#fff}
.profile-guide-steps b{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#ffdb7e;color:#674400}
.profile-guide-step.current b{background:#f6c95f}
.profile-guide-step.done b{background:#e5f2e8;color:#216039}
.profile-guide-step>span{display:grid;min-width:0;gap:2px}
.profile-guide-steps strong{font-size:13px}
.profile-guide-steps small{color:#72581e;font-size:11px}
.profile-guide-steps em{margin-left:auto;color:#72581e;font-size:11px;font-style:normal;white-space:nowrap}
.profile-guide-step.done small,.profile-guide-step.done em{color:#e0f0e4}
.required-group.guide-highlight{outline:2px solid var(--green);outline-offset:2px;background:#e2f2e7;box-shadow:0 8px 24px #28704218}
.settings-advanced{margin-top:18px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.settings-advanced summary{padding:16px 18px;color:var(--green);font-weight:700;cursor:pointer}
.settings-advanced-body{padding:0 18px 18px}
.settings-advanced-body>input{width:100%}
.settings-advanced-body>label{display:block;margin:12px 0 7px}
.settings-advanced-body>small{display:block;margin:8px 0;color:var(--muted)}
@media(max-width:760px){.profile-guide-steps{grid-template-columns:1fr}}
.step-connector{display:grid;place-items:center;width:30px;height:30px;margin:8px 0 8px 34px;border:1px solid #cae4d1;border-radius:50%;background:#e8f3eb}
.step-connector::after{content:"";width:8px;height:8px;margin-top:-4px;border-right:2px solid #5f9470;border-bottom:2px solid #5f9470;transform:rotate(45deg)}

.settings-required{margin-bottom:22px}
.required-group{position:relative;margin-top:18px;padding:21px 16px;border:1px solid #cae4d1;border-radius:10px;background:#edf8f0;scroll-margin-top:24px}
.step-connector + .required-group{margin-top:0}
.required-group-number{position:absolute;top:-15px;left:-15px;display:grid;place-items:center;width:34px;height:34px;border:2px solid var(--paper);border-radius:50%;background:#e2f0e6;color:var(--green);font-weight:700;box-shadow:0 2px 7px #28704220}
.required-group .field-label{margin-top:10px}
.field-heading{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:12px;row-gap:2px;margin:18px 0 7px}
.required-group .field-heading{margin-top:10px}
.required-group>.field-heading:first-of-type{margin-top:0}
.required-group>.field-label:first-of-type{margin-top:0}
.field-heading .field-label,.field-heading .field-help,.required-group .field-heading .field-label{margin:0}
.required-group>input{width:100%}
.settings-optional-heading{display:flex;align-items:baseline;gap:14px;margin:4px 0 12px}
.settings-optional-heading h3{margin:0;font-size:20px}
.settings-optional-heading h3 span{color:var(--muted);font-size:12px;font-weight:500}
.settings-optional-heading p{margin:0;color:var(--muted);font-size:12px}
.settings-optional-list{display:grid;gap:10px}
.settings-optional{border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden}
.settings-optional>summary{display:flex;align-items:center;gap:12px;padding:16px 20px;cursor:pointer;list-style:none}
.settings-optional>summary::-webkit-details-marker{display:none}
.settings-optional>summary:before{content:'＋';display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#e9f3ec;color:var(--green);font-size:18px}
.settings-optional[open]>summary:before{content:'－'}
.settings-optional>summary>span{display:grid;gap:2px}
.settings-optional>summary strong{font-size:16px}
.settings-optional>summary small{color:var(--muted);font-size:12px}
.settings-optional>summary em{margin-left:auto;color:var(--green);font-size:12px;font-style:normal;white-space:nowrap}
.settings-optional-body{padding:0 20px 20px;border-top:1px solid var(--line)}
.settings-optional-body>input,.settings-optional-body>textarea{width:100%}
.settings-optional-body>textarea{min-height:88px;resize:vertical}
.settings-optional-body>h4{margin:22px 0 0;font-size:15px}
.settings-optional-copy{margin:4px 0 0;color:var(--muted);font-size:12px}
.settings-optional-body>.settings-advanced{margin-top:24px}
.market-more{border:1px solid var(--line);border-radius:10px;background:#fafbf7}
.market-more>summary{padding:11px 13px;color:var(--green);font-size:13px;font-weight:700;cursor:pointer}
.market-more-content{display:grid;gap:8px;padding:0 12px 12px}
@media(max-width:640px){.settings-optional-heading{display:block}.settings-optional-heading p{margin-top:4px}.required-group{padding:18px 14px}.settings-optional>summary{padding:14px}.settings-optional-body{padding:0 14px 16px}}
#settings .profile-intro{display:none}
