/* Account tool cards: scoped to the profile, preserving existing icon artwork. */
.profile-tools{gap:10px;margin-top:24px;grid-template-rows:auto;grid-auto-rows:1fr}
.profile-tools .profile-tools__head{margin:0 0 2px}
.profile-tools .profile-tools__head h3{font-size:17px;line-height:1.4;letter-spacing:-.02em}
.profile-tools .profile-tool-button{box-sizing:border-box;min-height:104px;margin:0;padding:16px;grid-template-columns:46px minmax(0,1fr) 16px;gap:12px;border:1px solid color-mix(in srgb,var(--border) 75%,transparent);border-radius:16px;background:var(--surface-solid);color:var(--text);box-shadow:0 2px 5px #15263c04;cursor:pointer;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.profile-tools .profile-tool-button__icon{width:46px;height:46px;border-radius:14px}
.profile-tools .profile-tool-button__icon svg{width:30px;height:30px}
.profile-tools .profile-tool-button>span:nth-child(2){min-width:0}
.profile-tools .profile-tool-button strong{font-size:14px;font-weight:650;line-height:1.35;letter-spacing:-.015em;overflow-wrap:anywhere}
.profile-tools .profile-tool-button small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.55;overflow:visible;-webkit-line-clamp:unset}
.profile-tools .profile-tool-button>i{display:block;font-size:22px;line-height:1;color:var(--muted);opacity:.55;transition:transform .18s ease,opacity .18s ease}
@media(hover:hover){.profile-tools .profile-tool-button:hover{background:color-mix(in srgb,var(--surface-solid) 96%,var(--accent));border-color:color-mix(in srgb,var(--accent) 28%,var(--border));box-shadow:0 4px 12px #15263c09;transform:translateY(-1px)}.profile-tools .profile-tool-button:hover>i{transform:translateX(2px);opacity:1}}
.profile-tools .profile-tool-button[aria-expanded="true"]{background:color-mix(in srgb,var(--surface-solid) 94%,var(--accent));border-color:color-mix(in srgb,var(--accent) 42%,var(--border));box-shadow:none}
.profile-tools .profile-tool-button:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 65%,#6d9cde);outline-offset:3px}
.profile-tools .profile-tool-button:active{transform:translateY(0);box-shadow:none}
@media(max-width:560px){.profile-tools{grid-template-columns:1fr;gap:8px}.profile-tools .profile-tool-button{min-height:84px;padding:13px 14px;grid-template-columns:44px minmax(0,1fr) 16px}.profile-tools .profile-tool-button__icon{width:44px;height:44px}.profile-tools .profile-tool-button strong{font-size:14px}.profile-tools .profile-tool-button small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.profile-tools .profile-tool-button,.profile-tools .profile-tool-button>i{transition:none}.profile-tools .profile-tool-button:hover,.profile-tools .profile-tool-button:hover>i{transform:none}}

.organization-development-note{margin:0;padding:14px 16px;border:1px solid #ead58b;border-radius:12px;background:#fff5cc;color:#725716;font-size:13px;line-height:1.6}
.profile-badge-showcase{margin-top:24px;padding:18px;border:1px solid color-mix(in srgb,var(--border) 75%,transparent);border-radius:16px;background:var(--surface-solid);box-shadow:0 2px 5px #15263c04}
.profile-badge-showcase .profile-badge-showcase__head{align-items:center;gap:12px;margin-bottom:14px}
.profile-badge-showcase .profile-badge-showcase__head h3{font-size:17px;line-height:1.4;letter-spacing:-.02em}
.profile-badge-showcase .profile-badge-showcase__head span{color:var(--muted);font-size:9px;font-weight:600;letter-spacing:.1em}
.profile-badge-showcase .profile-badge-showcase__head>small{color:var(--muted);font-size:11px;font-weight:500}
.profile-badge-showcase .profile-patch-tabs{gap:4px;padding:4px;margin:0 0 18px;border:1px solid color-mix(in srgb,var(--border) 70%,transparent);border-radius:12px;background:var(--surface-soft)}
.profile-badge-showcase .profile-patch-tabs button{padding:9px 14px;border:1px solid transparent;border-radius:9px;font-size:12px;font-weight:600;box-shadow:none}
.profile-badge-showcase .profile-patch-tabs button[aria-pressed="true"]{background:var(--surface-solid);border-color:color-mix(in srgb,var(--border) 80%,transparent);color:var(--text);box-shadow:0 1px 3px #15263c07}
.profile-badge-showcase .profile-patch-tabs button:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 65%,#6d9cde);outline-offset:2px}
.profile-badge-showcase .profile-badge-grid{gap:18px 14px;padding:6px 0;justify-content:start}
@media(hover:hover){.profile-badge-showcase .profile-patch-tabs button:hover{color:var(--text);background:color-mix(in srgb,var(--surface-solid) 96%,var(--accent))}}
@media(max-width:480px){.profile-badge-showcase{padding:14px}.profile-badge-showcase .profile-badge-showcase__head{flex-wrap:wrap}.profile-badge-showcase .profile-badge-grid{gap:14px 10px}}

/* Signed-in identity card shares the profile's quieter surfaces. */
.profile-account-card{box-sizing:border-box;grid-template-columns:76px minmax(0,1fr);min-height:116px;gap:18px;padding:18px;border:1px solid color-mix(in srgb,var(--border) 75%,transparent);border-radius:16px;background:var(--surface-solid);box-shadow:0 2px 5px #15263c04}
.profile-account-card .profile-avatar{width:76px;height:76px;border-radius:18px;box-shadow:0 2px 5px #15263c09;border-color:color-mix(in srgb,var(--border) 75%,transparent)}
.profile-account-card .profile-account-copy{min-width:0;padding-right:0}
.profile-account-card .profile-state__kicker{font-size:9px;font-weight:600;letter-spacing:.1em;color:var(--muted)}
.profile-account-card .profile-name-row{gap:6px 9px;margin:5px 0;align-items:center}
.profile-account-card .profile-name-row h2{margin:0;font-size:24px;line-height:1.3;letter-spacing:-.025em;white-space:normal;overflow-wrap:anywhere}
.profile-account-card .profile-name-row #profile-nickname{font-size:12px;line-height:1.5;overflow-wrap:anywhere;max-width:100%;color:var(--muted)}
.profile-account-card #profile-email{font-size:12px;line-height:1.5}
.profile-account-card .profile-connected-badge{margin-top:9px;padding:4px 8px;border:1px solid color-mix(in srgb,var(--border) 75%,transparent);border-radius:8px;background:var(--surface-soft);box-shadow:none;color:var(--muted);font-size:10px;font-weight:500}
.profile-account-card #profile-nickname-edit{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:0;border-radius:8px;transition:background .18s ease,color .18s ease}
.profile-account-card #profile-nickname-edit:hover{background:var(--surface-soft);color:var(--text)}
.profile-account-card #profile-nickname-form{gap:8px;margin:12px 0 0;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft)}
.profile-account-card #profile-nickname-form label{flex:1 1 160px;min-width:0;color:var(--muted);font-size:11px;gap:5px}
.profile-account-card #profile-nickname-form input{box-sizing:border-box;width:100%;max-width:100%;background:var(--surface-solid)}
.profile-account-card #profile-nickname-form button{border-radius:9px;padding:8px 11px;font-size:12px;background:var(--surface-solid)}
.profile-account-card #profile-nickname-form button[type="submit"]{border-color:color-mix(in srgb,var(--accent) 35%,var(--border));background:color-mix(in srgb,var(--surface-solid) 92%,var(--accent));color:var(--text)}
.profile-account-card #profile-nickname-edit:focus-visible,.profile-account-card #profile-nickname-form button:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 65%,#6d9cde);outline-offset:2px}
@media(max-width:480px){.profile-account-card{grid-template-columns:58px minmax(0,1fr);gap:12px;padding:14px}.profile-account-card .profile-avatar{width:58px;height:58px;border-radius:14px}.profile-account-card .profile-name-row h2{font-size:20px}.profile-account-card #profile-nickname-form{padding:9px}}
@media(prefers-reduced-motion:reduce){.profile-account-card #profile-nickname-edit{transition:none}}

.profile-tools .profile-tool-button--unavailable,.profile-tools .profile-tool-button--unavailable:hover,.profile-tools .profile-tool-button--unavailable:active{background:var(--surface-soft);border-color:color-mix(in srgb,var(--border) 75%,transparent);color:var(--muted);cursor:not-allowed;transform:none;box-shadow:none;opacity:1}
.profile-tools .profile-tool-button--unavailable .profile-tool-button__icon{background:color-mix(in srgb,var(--muted) 10%,var(--surface-solid));color:var(--muted);border-color:var(--border);box-shadow:none}
.profile-tool-coming-soon{display:inline-block;margin-top:8px;padding:3px 7px;border:1px solid var(--border);border-radius:6px;background:var(--surface-solid);color:var(--muted);font-size:10px;font-weight:600;line-height:1.4}

.profile-tools .profile-tool-button--unavailable{position:relative}
.profile-tools .profile-tool-button--unavailable .profile-tool-coming-soon{position:absolute;top:auto;bottom:7px;left:12px;transform:none;margin:0;padding:1px 7px;font-size:9px;white-space:nowrap}


.profile-tools .profile-tool-coming-soon{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,visibility .15s ease}
.profile-tools .profile-tool-button--unavailable:hover .profile-tool-coming-soon{opacity:1;visibility:visible}
@media(prefers-reduced-motion:reduce){.profile-tools .profile-tool-coming-soon{transition:none}}

/* Keep scrolling content inside the profile's rounded shell. */
.profile-panel{display:flex;flex-direction:column;overflow:hidden}
.profile-panel__header{position:relative;z-index:3;flex:0 0 auto;border-start-start-radius:inherit;border-start-end-radius:inherit}
.profile-panel__body{min-height:0;overflow:auto;overscroll-behavior:contain;margin:0 5px 6px 0}
.profile-notification-menu{overflow:hidden;isolation:isolate}
.profile-notification-menu:not([hidden]){display:flex;flex-direction:column}
.profile-notification-menu>header{position:relative;flex:0 0 auto;border-start-start-radius:inherit;border-start-end-radius:inherit;background:var(--surface-solid)}
.profile-notification-list{min-height:0;overflow:auto;overscroll-behavior:contain;margin:0 4px 5px 0}
.profile-panel__body,.profile-notification-list{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--text) 25%,transparent) transparent}
.profile-panel__body::-webkit-scrollbar,.profile-notification-list::-webkit-scrollbar{width:8px;height:8px}
.profile-panel__body::-webkit-scrollbar-track,.profile-notification-list::-webkit-scrollbar-track{background:transparent;border-radius:999px}
.profile-panel__body::-webkit-scrollbar-thumb,.profile-notification-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:color-mix(in srgb,var(--text) 25%,transparent);background-clip:padding-box}
.profile-panel__body::-webkit-scrollbar-thumb:hover,.profile-notification-list::-webkit-scrollbar-thumb:hover{background-color:color-mix(in srgb,var(--text) 40%,transparent)}
.profile-panel__body::-webkit-scrollbar-corner,.profile-notification-list::-webkit-scrollbar-corner{background:transparent}
@media(max-width:720px){.profile-notification-menu{right:-54px;width:min(430px,calc(100vw - 58px))}}

/* Notification titles must not inherit the profile header size on phones. */
.profile-notification-card .profile-notification-card__copy>strong{font-size:13px;line-height:1.4;letter-spacing:normal}

/* Tool navigation follows the Presentations Back to Board button. */
:is(.cs-tool,.organization-window,.lesson-planner-panel,#presentations-tool) :is(.profile-tool-back,.profile-tool-exit){display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;width:max-content;min-width:0;height:auto;min-height:34px;padding:7px 12px;box-sizing:border-box;border:1px solid #dfe5ed;border-radius:10px;background:#fff;color:#273448;font-family:Inter,system-ui,sans-serif;font-size:12px;font-weight:650;line-height:normal;white-space:nowrap;box-shadow:none;cursor:pointer;transition:background .15s,box-shadow .15s,transform .15s}
:is(.cs-tool,.organization-window,.lesson-planner-panel,#presentations-tool) .profile-tool-back strong{font-size:inherit;font-weight:inherit}
:is(.cs-tool,.organization-window,.lesson-planner-panel,#presentations-tool) .profile-tool-back svg{width:19px;height:19px;flex:none}
/* Shared hover, press and keyboard feedback. */
:is(.cs-tool,.organization-window,.lesson-planner-panel,#presentations-tool) :is(.profile-tool-back,.profile-tool-exit):hover{background:#edf2fa;border-color:#becde2;box-shadow:0 3px 10px #28405b0a;transform:none}
:is(.cs-tool,.organization-window,.lesson-planner-panel,#presentations-tool) :is(.profile-tool-back,.profile-tool-exit):active{transform:translateY(1px)}
:is(.cs-tool,.organization-window,.lesson-planner-panel,#presentations-tool) :is(.profile-tool-back,.profile-tool-exit):focus-visible{outline:2px solid #7097d5;outline-offset:3px}
@media(max-width:600px){:is(.cs-tool,.organization-window,.lesson-planner-panel,#presentations-tool) .profile-tool-back{width:34px;padding:7px;gap:0}:is(.cs-tool,.organization-window,.lesson-planner-panel,#presentations-tool) .profile-tool-back>strong,.cs-tool .profile-tool-back>span:last-child{display:none}}
