#profile{--gp-ink:#263b30;--gp-green:#155c4d;--gp-paper:#fffdf7;--gp-border:#ded7c8;--gp-muted:#6a6557;--gp-danger:#923b36;max-width:820px;margin-inline:auto;color:var(--gp-ink);padding-bottom:88px}
.main:has(#profile.active-view){overflow:visible}
.main:has(#profile.active-view)>.topbar{display:none}
#profile .gp-header{display:flex;align-items:center;gap:13px;position:sticky;top:0;z-index:8;padding:calc(12px + env(safe-area-inset-top,0px)) 12px 13px;background:#f6f0e4f5;border-bottom:1px solid var(--gp-border);backdrop-filter:blur(12px);margin-bottom:12px}
#profile .gp-identity{min-width:0;flex:1}
#profile .gp-identity small{font-size:.72rem;color:var(--gp-muted);font-weight:700}
#profile .gp-identity h2{margin:2px 0 0;font-size:clamp(1.15rem,4vw,1.7rem);line-height:1.12;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gp-ink)}
#profile .gp-avatar{width:53px;height:53px;min-width:53px;min-height:53px;position:relative;display:grid;place-items:center;margin:0;border-radius:50%;cursor:pointer;font-size:1.2rem;background-color:var(--gp-green)}
#profile .gp-avatar input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#profile .gp-avatar:focus-within{outline:2px solid var(--gp-green);outline-offset:3px}
#profile .gp-avatar small{position:absolute;right:-3px;bottom:-3px;border:2px solid var(--gp-paper);background:var(--gp-green);color:white;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;font-size:.67rem;pointer-events:none}
#profile .gp-sections{display:grid;gap:10px}
#profile .gp-card{background:var(--gp-paper);border:1px solid var(--gp-border);border-radius:17px;min-width:0}
#profile .gp-card>summary{display:flex;align-items:center;gap:12px;padding:14px;cursor:pointer;list-style:none;min-height:67px}
#profile summary::-webkit-details-marker{display:none}
#profile .gp-icon{width:36px;height:36px;display:grid;place-items:center;flex:none;border-radius:12px;background:#e8eee1;color:var(--gp-green);font-size:1.18rem;font-weight:800}
#profile .gp-summary{flex:1;min-width:0}
#profile :is(.gp-summary,.gp-row)>span strong,#profile .gp-summary strong{display:block;color:var(--gp-ink);font-size:.92rem}
#profile :is(.gp-summary,.gp-row)>small,#profile .gp-row span>small{display:block;color:var(--gp-muted);font-size:.75rem;margin-top:3px;line-height:1.35}
#profile .gp-chevron{width:8px;height:8px;border-right:2px solid var(--gp-green);border-bottom:2px solid var(--gp-green);transform:rotate(45deg);margin:0 5px 4px}
#profile .gp-card[open]>summary .gp-chevron{transform:rotate(225deg);margin-bottom:-4px}
#profile .gp-body{border-top:1px solid var(--gp-border);padding:14px;display:grid;gap:12px}
#profile .gp-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
#profile .gp-row>*:first-child{flex:1;min-width:0}
#profile .gp-fields{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr))}
#profile .gp-field{display:grid;gap:5px;font-size:.82rem;font-weight:700;color:var(--gp-ink)}
#profile .gp-field input{width:100%;min-height:43px;padding:8px 10px;border-radius:9px;font-size:16px}
#profile .gp-check{display:flex;align-items:flex-start;gap:8px;font-size:.82rem;line-height:1.45}
#profile .gp-check input{width:18px;height:18px;flex:none;margin-top:2px;accent-color:var(--gp-green)}
#profile .gp-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:99px;font-size:.71rem;font-weight:760;line-height:1.35;background:#edeae1;color:#615848;text-align:center;max-width:9rem}
#profile .gp-badge[data-tone=good]{background:#dceee1;color:#175639}
#profile .gp-badge[data-tone=warn]{background:#fbecd0;color:#795317}
#profile .gp-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:4px}
#profile .gp-body :is(button,a).gp-primary,#profile .gp-save .gp-primary{display:inline-flex;align-items:center;justify-content:center;background:var(--gp-green)!important;color:#fffdf7!important;text-decoration:none;border:1px solid var(--gp-green)!important;border-radius:10px;min-height:40px;padding:7px 12px;font-size:.82rem;font-weight:750}
#profile .gp-ghost,#profile .gp-danger,#profile .gp-icon-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid #bbc9bc;border-radius:9px;color:var(--gp-green);min-height:39px;padding:7px 10px;font-size:.78rem;font-weight:700;text-decoration:none;cursor:pointer}
#profile .gp-icon-button{padding:0;width:39px;flex:none}
#profile .gp-back{font-size:1.6rem;border-color:transparent}
#profile .gp-danger{color:var(--gp-danger);border-color:#e4c5bc}
#profile .gp-caution{color:#795317;font-size:.81rem}
#profile .gp-note{font-size:.78rem;color:var(--gp-muted);line-height:1.4;margin:7px 0}
#profile .gp-note:empty{display:none}
#profile .gp-belvo{font-size:1.22rem;letter-spacing:-.05em;color:var(--gp-ink)}
#profile .gp-belvo span{color:#528368}
#profile .gp-help{flex:none;position:relative}
#profile .gp-help summary{display:grid;place-items:center;list-style:none;width:33px;height:33px;border-radius:50%;border:1px solid var(--gp-border);color:var(--gp-green);font-weight:800;cursor:pointer}
#profile .gp-help p{position:absolute;right:0;z-index:4;width:min(240px,72vw);margin:4px 0 0;padding:10px;border:1px solid var(--gp-border);border-radius:10px;background:var(--gp-paper);color:var(--gp-ink);box-shadow:0 8px 24px #24352a20;font-size:.78rem}
#profile .gp-suggestions{margin-top:10px}
#profile .gp-suggestions summary{cursor:pointer;font-size:.83rem;font-weight:700;color:var(--gp-green);padding:5px 0}
#profile .gp-save{position:fixed;z-index:12;bottom:15px;left:calc(50% + 70px);transform:translateX(-50%);width:min(710px,calc(100vw - 275px));display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;border-radius:14px;border:1px solid var(--gp-border);box-shadow:0 6px 22px #24352a1c;background:var(--gp-paper)}
#profile .gp-save p{margin:0;font-size:.75rem;color:var(--gp-muted)}
#profile .gp-save .gp-primary{flex:none}
#profile button:disabled{opacity:.53;cursor:not-allowed}
#profile [hidden]{display:none!important}
@media(max-width:900px){#profile .gp-save{left:50%;width:min(710px,calc(100vw - 35px))}}
@media(max-width:700px){#profile{padding-bottom:78px}#profile .gp-header{gap:8px;padding-inline:6px}#profile .gp-back{width:27px}#profile .gp-avatar{width:46px;height:46px;min-width:46px;min-height:46px}#profile .gp-save{bottom:calc(83px + env(safe-area-inset-bottom,0px));width:calc(100vw - 26px)}}
