/* Small jade identity badges and a compact, readable cultivation workspace. */
body.is-sections-demo .profile-heading { display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px; }
body.is-sections-demo .profile-heading h2 { margin:0; }
body.is-sections-demo .realm-badge { display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%;padding:3px 9px;border:1px solid var(--fr-rim);border-radius:999px;background:var(--section-highlight);color:var(--gold);font:500 11px/1.5 ui-sans-serif,system-ui,sans-serif;letter-spacing:.02em;white-space:nowrap;vertical-align:middle; }
html[data-theme="light"] body.is-sections-demo .realm-badge { color:#665123; }
html[data-theme="light"] :is(.profile-dialog,.cultivation-panel) { --text-muted:#486153; }
body.is-sections-demo .profile-name-group .owner-title { margin:6px 0;color:var(--gold);font-size:12px;line-height:1.5;font-weight:500;letter-spacing:.16em; }
body.is-sections-demo button.avatar { cursor:pointer;transition:box-shadow .2s; }
body.is-sections-demo button.avatar:hover { box-shadow:0 0 0 4px var(--section-highlight); }
body.is-sections-demo button.avatar:focus-visible { outline:2px solid var(--gold);outline-offset:5px; }
.profile-dialog { width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;border:1px solid var(--fr-rim);border-radius:24px;background:#102638;color:#e6eee7;box-shadow:0 24px 80px #0006; }
html[data-theme="light"] .profile-dialog { background:#f2f8ee;color:#25483c; }
.profile-dialog::backdrop { background:rgba(4,13,22,.5);backdrop-filter:blur(7px); }
.profile-dialog form>header { display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px; }
.profile-dialog h2 { margin:6px 0 0;font-size:24px;font-weight:600; }
.profile-close { display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:0;background:transparent;color:inherit;font:28px/1 system-ui; }
.profile-editor-avatar { display:flex;align-items:center;gap:20px;margin-bottom:24px; }
.profile-editor-avatar>img { width:88px;height:88px;flex:0 0 88px;border:2px solid var(--fr-rim);border-radius:50%;object-fit:cover; }
.profile-editor-avatar>div { display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px; }
.profile-editor-avatar small { flex-basis:100%;font-size:12px;color:var(--text-muted);line-height:1.7; }
.profile-dialog .profile-field-label { display:block;font-size:14px;margin-bottom:8px; }
.profile-dialog input[name="name"] { display:block;width:100%;min-width:0;padding:12px 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--section-soft);color:inherit;font:16px/1.5 system-ui; }
.profile-editor-realm { display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px;font-size:12px;color:var(--text-muted); }
.profile-editor-realm [data-account-title] { color:var(--gold); }
.profile-form-message { min-height:24px;margin:14px 0;color:var(--gold);font-size:13px;line-height:1.8; }
.profile-dialog form>footer { display:flex;justify-content:flex-end;gap:12px; }
.profile-storage-note { margin:18px 0 0;font-size:12px;color:var(--text-muted);line-height:1.7; }
.profile-dialog :is(button,label.secondary-button) { min-height:44px;cursor:pointer; }
.profile-dialog :is(button,input,label):focus-visible { outline:2px solid var(--gold);outline-offset:3px; }
body.is-sections-demo .cultivation-panel { margin-bottom:30px;padding:28px; }
.cultivation-heading { display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px; }
.cultivation-heading h2 { margin:8px 0;font-size:26px;font-weight:500; }
.cultivation-heading p { display:flex;align-items:center;gap:10px;margin:0;color:var(--text-muted);font-size:14px; }
.cultivation-heading>button { white-space:nowrap; }
.cultivation-summary { display:grid;grid-template-columns:1fr 1fr 2fr;align-items:center;gap:24px;padding:20px 0;border-block:1px solid var(--section-border);margin-bottom:24px; }
.cultivation-summary>div>span { display:block;margin-bottom:8px;color:var(--text-muted);font-size:13px; }
.cultivation-summary strong { font-size:28px;font-weight:600;font-variant-numeric:tabular-nums; }
.cultivation-summary small { color:var(--text-muted);font-size:13px;font-weight:400; }
.realm-progress-copy p { margin:0 0 10px;font-size:13px;line-height:1.7;color:var(--text-muted); }
.cultivation-panel progress { display:block;width:100%;height:7px;border:0;border-radius:999px;overflow:hidden;accent-color:var(--gold);background:var(--section-soft); }
.cultivation-panel progress::-webkit-progress-bar { background:var(--section-soft);border-radius:999px; }
.cultivation-panel progress::-webkit-progress-value { background:var(--gold);border-radius:999px; }
.cultivation-panel progress::-moz-progress-bar { background:var(--gold);border-radius:999px; }
.daily-task-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.daily-task { min-width:0;display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid var(--section-border);border-radius:16px;background:var(--section-soft); }
.daily-task h3 { margin:0 0 6px;font-size:16px;font-weight:500; }
.daily-task p { margin:0;color:var(--text-muted);font-size:12px;line-height:1.8; }
.daily-task-value { margin-top:auto;font-size:12px;color:var(--text-muted); }
.daily-task-value strong { font-size:21px;font-weight:500;color:var(--text); }
.daily-task small { font-size:12px;color:var(--text-muted); }
.cultivation-rule-note { margin:18px 0;color:var(--text-muted);font-size:12px;line-height:1.9; }
.cultivation-rule-note p { margin:6px 0; }
.cultivation-rule-note [role="status"] { color:var(--gold); }
.realm-ladder { padding-top:16px;border-top:1px solid var(--section-border); }
.realm-ladder summary { cursor:pointer;color:var(--gold);font-size:14px;min-height:32px; }
.realm-ladder>p { font-size:12px;color:var(--text-muted); }
.realm-ladder ol { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 24px;padding:0;list-style:none; }
.realm-ladder li { display:flex;justify-content:space-between;gap:8px;font-size:13px;line-height:1.9; }
.realm-ladder li strong { font-size:12px;font-variant-numeric:tabular-nums;font-weight:400;color:var(--text-muted); }
body.is-sections-demo .site-footer { min-height:0;flex-direction:row;justify-content:space-between;gap:12px;padding:16px 24px; }
body.is-sections-demo .site-footer .cultivation-clock { gap:8px 14px;flex-direction:row;align-items:baseline; }
body.is-sections-demo .site-footer .cultivation-label { font-size:13px;letter-spacing:.05em; }
body.is-sections-demo .site-footer #cultivation-time { font-size:18px;line-height:1.6;letter-spacing:.02em; }
body.is-sections-demo .site-footer .footer-quote { font-size:12px;line-height:1.7; }
@media(max-width:900px) { .daily-task-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.cultivation-summary { grid-template-columns:1fr 1fr; }.realm-progress-copy { grid-column:1/-1; }.realm-ladder ol { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { body.is-sections-demo .cultivation-panel { padding:22px; }.cultivation-heading { align-items:flex-start;flex-direction:column;gap:16px; }.cultivation-heading h2 { font-size:23px; }.daily-task-grid { grid-template-columns:1fr;gap:12px; }.cultivation-summary { gap:16px; }.cultivation-summary strong { font-size:25px; }.realm-ladder ol { grid-template-columns:1fr; }.profile-dialog { padding:22px; }.profile-editor-avatar { gap:14px; }.profile-editor-avatar>img { width:72px;height:72px;flex-basis:72px; }body.is-sections-demo .site-footer { flex-direction:column;gap:5px;padding:14px 20px; }body.is-sections-demo .site-footer #cultivation-time { font-size:16px; } }
@media(prefers-reduced-motion:reduce) { body.is-sections-demo button.avatar { transition:none; } }
