/* Approved profile composition. Every rule is scoped to the own-profile screen. */
:root[data-design] body:has(#page.profile371){--p371-bg:#f5f5f6;--p371-surface:#fff;--p371-nav:#ececef;--p371-text:#242429;--p371-muted:#62636d;--p371-line:#e2e2e7;--p371-accent:#8c3659;--p371-soft:#f2e4eb;--ink:var(--p371-text);--muted:var(--p371-muted);--surface:var(--p371-surface);--surface2:var(--p371-nav);--line:var(--p371-line);--accent:var(--p371-accent);--soft:var(--p371-soft);background:var(--p371-bg)!important;color:var(--p371-text)}
:root[data-design][data-theme=dark] body:has(#page.profile371){--p371-bg:#121315;--p371-surface:#222327;--p371-nav:#27282d;--p371-text:#efeff2;--p371-muted:#b1b2bd;--p371-line:#37383e;--p371-accent:#efacc5;--p371-soft:#3e3038;color-scheme:dark}
:root[data-design] body:has(#page.profile371) :is(.shell,.main){background:var(--p371-bg)!important;background-image:none!important}
:root[data-design] body:has(#page.profile371) :is(.sidebar,.topbar){background:var(--p371-surface)!important;background-image:none!important;color:var(--p371-text)!important;box-shadow:none!important;border-color:var(--p371-line)!important}
@supports(backdrop-filter:blur(12px)){:root[data-design] body:has(#page.profile371) :is(.sidebar,.topbar){background:color-mix(in srgb,var(--p371-surface) 93%,transparent)!important;backdrop-filter:blur(12px)}}
:root[data-design] body:has(#page.profile371) .sidebar .nav button{color:var(--p371-muted)!important}
:root[data-design] body:has(#page.profile371) .sidebar .nav button.active,:root[data-design] body:has(#page.profile371) .sidebar [data-route=profile]{background:var(--p371-soft)!important;color:var(--p371-accent)!important;box-shadow:none!important}
:root[data-design] body #page.profile371{max-width:1240px;margin-inline:auto;padding:30px 40px 48px!important;color:var(--p371-text);font-family:var(--u365-font);background:transparent!important}
:root[data-design] body #page.profile371>.page-head{margin:0 0 26px!important;border:0;background:none;box-shadow:none;padding:0!important;min-height:0}
:root[data-design] body #page.profile371>.page-head h1{font-size:30px!important;letter-spacing:-.025em!important}
:root[data-design] body #page.profile371 .p371-subtitle{margin:6px 0 0;color:var(--p371-muted);font-size:14px}
:root[data-design] body #page.profile371 .employee-profile[data-compact297]{display:block!important}
:root[data-design] body #page.profile371 .p297-identity{margin-bottom:28px}
:root[data-design] body #page.profile371 .identity-card{display:flex!important;align-items:center;gap:20px;padding:4px 0!important;text-align:left;background:transparent!important;border:0!important;box-shadow:none!important;position:relative;border-radius:0}
:root[data-design] body #page.profile371 .profile-avatar{width:76px!important;height:76px!important;margin:0!important;flex:0 0 76px;grid-row:auto}
:root[data-design] body #page.profile371 .profile-avatar :is(img,svg){width:100%!important;height:100%!important;object-fit:cover;border-radius:50%}
:root[data-design] body #page.profile371 .p371-identity-copy{flex:1;min-width:0}
:root[data-design] body #page.profile371 .p371-identity-copy h2{font-size:23px!important;margin:0 0 6px!important;overflow-wrap:anywhere}
:root[data-design] body #page.profile371 .p371-identity-copy p{font-size:14px;margin:0 0 4px!important;color:var(--p371-muted)}
:root[data-design] body #page.profile371 .p371-identity-copy .row{justify-content:flex-start;gap:8px;margin:0}
:root[data-design] body #page.profile371 .p371-identity-copy .badge{background:none!important;padding:0!important;color:var(--p371-muted)!important;font-size:13px;border:0}
:root[data-design] body #page.profile371 button{min-height:44px;width:auto;color:var(--p371-text);font-weight:500!important;box-shadow:none!important;transition:background-color 120ms ease,color 120ms ease,transform 120ms ease}
:root[data-design] body #page.profile371 button:active{transform:translateY(1px)}
:root[data-design] body #page.profile371 .p371-edit{flex:0 0 auto;display:inline-flex;gap:8px;padding:10px 16px;background:var(--p371-nav)!important;border:0;border-radius:11px}
:root[data-design] body #page.profile371 button svg{width:18px;height:18px;flex:none}
:root[data-design] body #page.profile371 .p300-profile-menu{position:relative!important;inset:auto!important;flex:none;order:4}
:root[data-design] body #page.profile371 .p300-profile-menu summary{width:44px;height:44px;color:var(--p371-muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
:root[data-design] body #page.profile371 .p300-profile-menu-items{z-index:20;right:0;left:auto;min-width:180px;background:var(--p371-surface);border:1px solid var(--p371-line);box-shadow:0 8px 28px #0002}
:root[data-design] body #page.profile371 .a4-photo-change{position:static!important;width:auto!important;height:auto!important;margin:0!important;min-height:44px!important;border-radius:8px!important;white-space:nowrap}
:root[data-design] body #page.profile371 .p297-tabs{display:flex!important;width:fit-content;max-width:100%;gap:4px;padding:5px;margin:0 0 28px;background:var(--p371-nav);border-radius:13px;flex-wrap:nowrap}
:root[data-design] body #page.profile371 .p297-tabs button{flex:1;min-width:115px;padding:10px 18px;border:0!important;background:transparent!important;border-radius:9px;color:var(--p371-muted);font-size:14px!important;white-space:nowrap}
:root[data-design] body #page.profile371 .p297-tabs button[aria-selected=true]{background:var(--p371-soft)!important;color:var(--p371-accent)!important}
:root[data-design] body #page.profile371 .p297-panel{gap:20px;min-width:0;animation:p371-enter 140ms ease-out}
:root[data-design] body #page.profile371 .p297-panel>.card{background:var(--p371-surface)!important;border:0!important;box-shadow:none!important;border-radius:16px;padding:20px!important}
:root[data-design] body #page.profile371 .p371-group-title{font-size:14px!important;font-weight:500!important;margin:0 0 12px;padding:0 2px;color:var(--p371-text)}
:root[data-design] body #page.profile371 .p371-rows{padding:0 24px;background:var(--p371-surface);border-radius:18px;overflow:visible}
:root[data-design] body #page.profile371 .p371-setting-row{display:flex;align-items:center;gap:18px;min-height:94px;padding:20px 0}
:root[data-design] body #page.profile371 .p371-setting-row+.p371-setting-row{border-top:1px solid var(--p371-line)}
:root[data-design] body #page.profile371 .p371-symbol{width:40px;height:40px;flex:none;display:grid;place-items:center;background:var(--p371-nav);border-radius:12px;color:var(--p371-muted)}
:root[data-design] body #page.profile371 .p371-symbol svg{width:21px;height:21px}
:root[data-design] body #page.profile371 .p371-setting-copy{flex:1;min-width:0}
:root[data-design] body #page.profile371 .p371-setting-copy h4{font-size:16px;font-weight:500;line-height:1.5;margin:0 0 5px;color:var(--p371-text)}
:root[data-design] body #page.profile371 .p371-setting-copy p{font-size:13px;line-height:1.5;margin:0;color:var(--p371-muted)}
:root[data-design] body #page.profile371 .p371-action{display:inline-flex;align-items:center;gap:18px;flex:none;min-height:44px;padding:10px 6px;background:none!important;border:0!important;color:var(--p371-muted);font-size:13px!important;text-align:right}
:root[data-design] body #page.profile371 .p371-setting-row>.p371-action::after{content:'›';font-size:22px;font-weight:400;line-height:1}
:root[data-design] body #page.profile371 .p371-action:hover{color:var(--p371-accent)}
:root[data-design] body #page.profile371 .p371-themes{display:flex;gap:12px;flex:none}
:root[data-design] body #page.profile371 .p371-theme{display:flex;flex-direction:column;gap:6px;align-items:center;padding:0!important;background:transparent!important;border:0!important;font-size:12px!important;color:var(--p371-muted);border-radius:8px}
:root[data-design] body #page.profile371 .p371-theme-preview{display:block;position:relative;width:80px;height:50px;border-radius:9px;background:#dedee4;border:2px solid transparent}
:root[data-design] body #page.profile371 .p371-theme-preview i{position:absolute;left:5px;top:5px;bottom:5px;width:18px;border-radius:3px;background:#aeb0bc}
:root[data-design] body #page.profile371 .p371-theme-preview b{position:absolute;left:29px;top:13px;width:35px;height:5px;background:#9295a2;border-radius:2px;box-shadow:0 10px 0 -1px #9295a2}
:root[data-design] body #page.profile371 [data-color=dark] .p371-theme-preview{background:#34353e}
:root[data-design] body #page.profile371 [data-color=dark] .p371-theme-preview i{background:#555762}
:root[data-design] body #page.profile371 [data-color=system] .p371-theme-preview{background:linear-gradient(90deg,#dedee4 50%,#34353e 50%)}
:root[data-design] body #page.profile371 .p371-theme-preview em{display:none;position:absolute;right:4px;bottom:3px;background:var(--p371-accent);color:var(--p371-bg);width:16px;height:16px;border-radius:50%;font-size:11px;font-style:normal;line-height:16px}
:root[data-design] body #page.profile371 .p371-theme[aria-pressed=true]{color:var(--p371-accent)}
:root[data-design] body #page.profile371 .p371-theme[aria-pressed=true] .p371-theme-preview{border-color:var(--p371-accent)}
:root[data-design] body #page.profile371 .p371-theme[aria-pressed=true] em{display:block}
:root[data-design] body #page.profile371 .p371-more{display:flex;justify-content:flex-end;margin-top:-10px}
:root[data-design] body #page.profile371 .p371-footnote{font-size:12px;color:var(--p371-muted);margin:0}
:root[data-design] body #page.profile371 :is(.profile-actions,.p297-work-links,.u63-account-actions){display:flex;flex-wrap:wrap;gap:8px}
:root[data-design] body #page.profile371 :is(button,summary):focus-visible{outline:2px solid var(--p371-accent)!important;outline-offset:3px!important}
@keyframes p371-enter{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:1100px){:root[data-design] body #page.profile371{padding:24px!important}:root[data-design] body #page.profile371 .p371-setting-row{gap:12px}:root[data-design] body #page.profile371 .p371-theme-preview{width:64px}:root[data-design] body #page.profile371 .p371-theme-preview b{width:25px}:root[data-design] body #page.profile371 .p371-themes{gap:8px}}
@media(max-width:600px){
 :root[data-design] body #page.profile371{padding:20px 16px 36px!important}
 :root[data-design] body #page.profile371>.page-head h1{font-size:25px!important}
 :root[data-design] body #page.profile371 .identity-card{flex-wrap:wrap;gap:12px}
 :root[data-design] body #page.profile371 .profile-avatar{width:56px!important;height:56px!important;flex-basis:56px}
 :root[data-design] body #page.profile371 .p371-identity-copy{flex-basis:calc(100% - 70px)}
 :root[data-design] body #page.profile371 .p371-identity-copy h2{font-size:20px!important}
 :root[data-design] body #page.profile371 .p371-edit{font-size:13px!important}
 :root[data-design] body #page.profile371 .p297-tabs{width:100%;gap:2px;margin-bottom:24px}
 :root[data-design] body #page.profile371 .p297-tabs button{min-width:0;padding:10px 5px;font-size:12px!important}
 :root[data-design] body #page.profile371 .p371-rows{padding:0 16px;border-radius:14px}
 :root[data-design] body #page.profile371 .p371-setting-row{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px 12px;padding:18px 0}
 :root[data-design] body #page.profile371 .p371-symbol{width:32px;height:36px;border-radius:9px;align-self:start}
 :root[data-design] body #page.profile371 .p371-setting-row>.p371-action{grid-column:2;justify-self:end;padding:6px}
 :root[data-design] body #page.profile371 .p371-themes{grid-column:1/-1;justify-content:space-evenly;margin-top:10px}
 :root[data-design] body #page.profile371 .p371-theme-preview{width:74px}
 :root[data-design] body #page.profile371 .p371-theme-preview b{width:33px}
 :root[data-design] body #page.profile371 .p371-setting-copy h4{font-size:15px}
 :root[data-design] body #page.profile371 .p371-more{justify-content:flex-start;margin:0}
}
@media(prefers-reduced-motion:reduce){:root[data-design] body #page.profile371 *{animation:none!important;transition:none!important;scroll-behavior:auto!important}:root[data-design] body #page.profile371 button:active{transform:none}}
