/* Profile workspace: compact rows, original editable fields, responsive writing room. */
#ll2-app .ll-profile-shell{--profile-line:#d5e2dc;--profile-ink:#173e3c;max-width:1120px;margin:0 auto 24px;color:var(--profile-ink)}
#ll2-app .ll-profile-shell .page-title{display:flex;align-items:center;margin:16px 0 12px;padding:0;min-height:0}
#ll2-app .ll-profile-shell .page-title h1{font-size:clamp(26px,3vw,36px);line-height:1.15;letter-spacing:-.05em;margin:0}
#ll2-app .ll-profile-shell button,#ll2-app .ll-profile-shell summary{font-size:calc(.875rem * var(--lab-text-scale,1));line-height:1.35;min-height:40px;padding:9px 13px;border-radius:10px;white-space:normal}
#ll2-app .ll-profile-shell button:focus-visible,#ll2-app .ll-profile-shell summary:focus-visible,#ll2-app .ll-profile-shell input:focus-visible,#ll2-app .ll-profile-shell textarea:focus-visible,#ll2-app .ll-profile-shell select:focus-visible{outline:3px solid #308c83;outline-offset:3px}
#ll2-app .ll-profile-shell .profile-details{position:relative;margin:0 0 18px;padding:18px 22px;border:1px solid #bdd4cb;border-radius:22px;background:radial-gradient(ellipse at 95% 0,#e9f6c8 0,transparent 55%),linear-gradient(120deg,#fff,#f3f9f5);box-shadow:0 8px 28px #153c3507;overflow:visible}
#ll2-app .ll-profile-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
#ll2-app .ll-profile-shell .profile-identity{gap:14px;min-width:0;margin:0}
#ll2-app .ll-profile-shell .profile-identity>div{min-width:0}
#ll2-app .ll-profile-shell .profile-identity h2{font-size:clamp(23px,2.8vw,32px);line-height:1.2;letter-spacing:-.04em;margin:0;overflow-wrap:anywhere}
#ll2-app .ll-profile-shell .profile-avatar{flex:0 0 60px;min-width:60px;height:60px;border-radius:18px;font-size:32px;background:#fff;box-shadow:0 3px 12px #18463c0d;border:1px solid #dce9d4}
#ll2-app .ll-profile-shell .ll-profile-subtitle{font-size:calc(.8125rem * var(--lab-text-scale,1));line-height:1.5;color:#526e63;margin:5px 0 0}
#ll2-app .ll-profile-tools{display:flex;align-items:center;gap:6px;flex-shrink:0}
#ll2-app .ll-profile-editor{margin:10px 0 0;border:0;background:transparent;padding:0}
#ll2-app .ll-profile-editor>summary{width:max-content;max-width:100%;color:#235e52;font-weight:650;cursor:pointer;list-style:none;padding:6px 0;min-height:36px}
#ll2-app .ll-profile-editor>summary::-webkit-details-marker,#ll2-app .ll-profile-chapter>summary::-webkit-details-marker{display:none}
#ll2-app .ll-profile-editor>summary::after{content:'+';display:inline-block;margin-left:12px}
#ll2-app .ll-profile-editor[open]>summary::after{content:'−'}
#ll2-app .ll-profile-shell .profile-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;padding-top:12px;border-top:1px solid var(--profile-line);margin-top:5px}
#ll2-app .ll-profile-shell .profile-fields label{font-size:calc(.8125rem * var(--lab-text-scale,1));gap:5px;min-width:0;margin:0}
#ll2-app .ll-profile-shell .profile-fields input,#ll2-app .ll-profile-shell .profile-fields select{min-height:42px;padding:9px 11px;font:inherit;font-size:calc(1rem * var(--lab-text-scale,1));border:1px solid #bbcec4;border-radius:9px;background:#ffffffdd;margin:0}
#ll2-app .ll-profile-emoji{grid-column:1/-1;display:flex;align-items:end;gap:14px;flex-wrap:wrap}
#ll2-app .ll-profile-emoji>label{flex:0 1 150px}
#ll2-app .ll-profile-shell .emoji-choices{gap:4px;flex:1 1 260px;align-items:center}
#ll2-app .ll-profile-shell .emoji-choices button{font-size:21px;min-width:38px;width:38px;height:38px;min-height:38px;padding:4px;border-radius:10px;background:#fff;border:1px solid #d6e3dc;box-shadow:none}
#ll2-app .ll-profile-save{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
#ll2-app .ll-profile-shell [data-profile-status]:empty{display:none}
#ll2-app .ll-profile-shell .assigned-profile{margin:0;border:0;padding:0;font-size:calc(.875rem * var(--lab-text-scale,1))}
#ll2-app .ll-profile-shell .assigned-profile small{display:block;line-height:1.5;margin-top:8px}
#ll2-app .ll-profile-workspace{border:1px solid var(--profile-line);border-radius:22px;background:#fff;padding:18px 22px;box-shadow:0 8px 28px #153c3505}
#ll2-app .ll-profile-shell .survey-view{align-items:center;gap:8px;margin:0;display:flex;flex-wrap:wrap}
#ll2-app .ll-profile-section-title{font-size:calc(1.125rem * var(--lab-text-scale,1));letter-spacing:-.025em;line-height:1.3;margin:0 auto 0 0}
#ll2-app .ll-profile-progress{font-size:calc(.75rem * var(--lab-text-scale,1));border:0;border-radius:7px;padding:5px 8px;margin:0;background:#eef4e7;color:#41604f;white-space:nowrap}
#ll2-app .ll-profile-modes{display:flex;gap:2px;padding:3px;border:1px solid #dce5df;border-radius:12px;background:#f0f5f2}
#ll2-app .ll-profile-modes button{border:0;background:transparent;box-shadow:none;min-height:34px;padding:7px 10px;border-radius:8px}
#ll2-app .ll-profile-modes button.selected{background:#fff;color:#123f36;box-shadow:0 1px 4px #2141321a}
#ll2-app .ll-profile-shell [data-do="survey-export"]{background:transparent;border:1px solid #c8d9d1;box-shadow:none}
#ll2-app .ll-profile-shell .survey-intro{font-size:calc(.8125rem * var(--lab-text-scale,1));line-height:1.5;margin:10px 0 16px;color:#567065}
#ll2-app .ll-profile-shell .curiosity-layout{display:block;margin:0}
#ll2-app .ll-profile-shell .curiosity-chapters{display:flex;flex-direction:row;flex-wrap:wrap;gap:5px;margin:0 0 18px;border-bottom:1px solid var(--profile-line);padding:0 0 12px}
#ll2-app .ll-profile-shell .curiosity-chapters button{gap:7px;align-items:center;flex:0 1 auto;font-size:calc(.875rem * var(--lab-text-scale,1))!important;padding:8px 12px!important;min-width:0;border:1px solid transparent;background:transparent;border-radius:9px;box-shadow:none}
#ll2-app .ll-profile-shell .curiosity-chapters button.selected{color:#fff;background:#194c42;border-color:#194c42}
#ll2-app .ll-profile-shell .curiosity-chapters span{display:inline;font-size:.8em;color:inherit;opacity:.7}
#ll2-app .ll-profile-shell .curiosity-card{position:relative;border:0;border-radius:0;background:transparent;padding:0;box-shadow:none;animation:none}
#ll2-app .ll-profile-shell .card-kicker{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:calc(.75rem * var(--lab-text-scale,1));color:#567065;letter-spacing:.02em;margin:0 0 10px}
#ll2-app .ll-profile-shell .card-kicker>span{margin-left:auto}
#ll2-app .ll-profile-shell .curiosity-card h2{font-size:clamp(22px,2.3vw,29px)!important;line-height:1.3!important;letter-spacing:-.025em;margin:0 0 14px;max-width:38ch}
#ll2-app .ll-profile-shell .curiosity-card textarea,#ll2-app .ll-profile-shell .survey-overview-question textarea{display:block;width:100%;min-height:120px;resize:vertical;max-width:100%;padding:14px 16px;font-size:calc(1rem * var(--lab-text-scale,1));line-height:1.6;border:1px solid #bdcfc6;border-radius:13px;background:#f8fbf8!important;color:#173e3c;box-shadow:inset 0 2px 4px #23452f03;margin:0}
#ll2-app .ll-profile-charcount{display:block;text-align:right;font-size:calc(.6875rem * var(--lab-text-scale,1));font-variant-numeric:tabular-nums;color:#5a7165;margin:5px 2px 0}
#ll2-app .ll-profile-shell .curiosity-card .actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:10px 0 0}
#ll2-app .ll-profile-save-note{flex:1 1 auto;margin:0 10px 0 0;font-size:calc(.75rem * var(--lab-text-scale,1));color:#536c60}
#ll2-app .ll-profile-shell .primary{background:#194c42;color:#fff;border:1px solid #194c42;box-shadow:0 2px 5px #193c3510}
#ll2-app .ll-profile-shell .primary:hover{background:#103d34}
#ll2-app .ll-profile-popout{padding:0;margin:0;border:0;background:transparent}
#ll2-app .ll-profile-popout>summary{list-style:none;border:1px solid #c8d9cf;background:#ffffffa8;color:#315d4e;cursor:pointer;font-weight:600}
#ll2-app .ll-profile-popout>summary::-webkit-details-marker{display:none}
#ll2-app .ll-profile-popout>summary::after{content:'⌄';margin-left:7px}
#ll2-app .ll-profile-popout .curiosity-example{font-size:calc(.9375rem * var(--lab-text-scale,1));line-height:1.6;margin:0!important;color:#36564a}
#ll2-app .ll-profile-chapter{margin:8px 0;border:1px solid #d5e2d9;border-radius:13px;background:#fff;padding:0}
#ll2-app .ll-profile-chapter>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:12px 14px}
#ll2-app .ll-profile-chapter>summary h2{font-size:calc(1rem * var(--lab-text-scale,1));margin:0;line-height:1.3}
#ll2-app .ll-profile-chapter-number{font:500 .75rem ui-monospace,monospace;color:#537264}
#ll2-app .ll-profile-chapter-count{margin-left:auto;font-size:calc(.75rem * var(--lab-text-scale,1));color:#537264;white-space:nowrap}
#ll2-app .ll-profile-chapter>summary::after{content:'+';font-size:18px;color:#426d5b}
#ll2-app .ll-profile-chapter[open]>summary::after{content:'−'}
#ll2-app .ll-profile-chapter[open]>summary{background:#eff5eb;border-radius:12px 12px 0 0}
#ll2-app .ll-profile-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px}
#ll2-app .ll-profile-shell .survey-overview-question{padding:0;border:0;margin:0;background:transparent;min-width:0;display:flex;flex-direction:column;border-radius:0}
#ll2-app .ll-profile-shell .survey-overview-question b{font-size:calc(.9375rem * var(--lab-text-scale,1));line-height:1.45}
#ll2-app .ll-profile-shell .survey-overview-question>span{font-size:calc(.8125rem * var(--lab-text-scale,1));line-height:1.5;margin:6px 0 10px;color:#536f60}
#ll2-app .ll-profile-shell .survey-overview-question textarea{min-height:100px;margin-top:auto;padding:10px 12px}
#ll2-app .ll-profile-shell .survey-save{position:static;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;border:0;border-top:1px solid var(--profile-line);border-radius:0;background:transparent;padding:14px 0 0;margin-top:14px;font-size:calc(.75rem * var(--lab-text-scale,1))}
@media(max-width:640px){#ll2-app .ll-profile-shell .profile-details,#ll2-app .ll-profile-workspace{padding:15px;border-radius:17px}#ll2-app .ll-profile-top{flex-wrap:wrap;gap:10px}#ll2-app .ll-profile-shell .profile-fields{grid-template-columns:1fr}#ll2-app .ll-profile-section-title{flex:1 1 60%}#ll2-app .ll-profile-modes{order:1}#ll2-app .ll-profile-shell [data-do="survey-export"]{order:2;margin-left:auto}#ll2-app .ll-profile-shell .curiosity-chapters{gap:4px}#ll2-app .ll-profile-shell .curiosity-chapters button{padding:8px!important;flex:1 1 40%;justify-content:flex-start}#ll2-app .ll-profile-save-note{flex-basis:100%;margin-bottom:4px}#ll2-app .ll-profile-answer-grid{grid-template-columns:1fr;padding:12px}#ll2-app .ll-profile-shell .curiosity-card .actions button{flex:1 1 auto}#ll2-app .ll-profile-shell .card-kicker{gap:7px}}
@media(prefers-reduced-motion:no-preference){#ll2-app .ll-profile-shell{animation:llProfileReveal .22s ease-out}#ll2-app .ll-profile-editor[open] .profile-fields,#ll2-app .ll-profile-answer-grid{animation:llProfileReveal .16s ease-out}@keyframes llProfileReveal{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}}
@media print{#ll2-app .ll-profile-shell .survey-view,#ll2-app .ll-profile-shell .survey-save,#ll2-app .ll-profile-shell .actions,#ll2-app .ll-profile-tools{display:none}#ll2-app .ll-profile-answer-grid{display:block}}

/* Match the accessibility scale while overriding the core's global important typography. */
#ll2-app .ll-profile-shell .page-title h1{font-size:calc(2rem * var(--lab-text-scale,1))!important;line-height:1.15!important}
#ll2-app .ll-profile-shell .ll-profile-section-title{font-size:calc(1.125rem * var(--lab-text-scale,1))!important}
#ll2-app .ll-profile-shell .ll-profile-subtitle,#ll2-app .ll-profile-shell .survey-intro{font-size:calc(.8125rem * var(--lab-text-scale,1))!important;line-height:1.5!important}
#ll2-app .ll-profile-shell .ll-profile-save-note{font-size:calc(.75rem * var(--lab-text-scale,1))!important;line-height:1.5!important}
#ll2-app .ll-profile-shell .curiosity-card textarea,#ll2-app .ll-profile-shell .survey-overview-question textarea{font-size:calc(1rem * var(--lab-text-scale,1))!important;line-height:1.6!important}
#ll2-app .ll-profile-shell .curiosity-example{font-size:calc(.9375rem * var(--lab-text-scale,1))!important;line-height:1.6!important}
@media(max-width:640px){
 #ll2-app .ll-profile-shell .profile-details{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px}
 #ll2-app .ll-profile-top{display:contents}
 #ll2-app .ll-profile-shell .profile-identity{grid-column:1/-1;grid-row:1}
 #ll2-app .ll-profile-tools{grid-column:2;grid-row:2;align-self:start;margin-top:10px;z-index:1}
 #ll2-app .ll-profile-editor{grid-column:1/-1;grid-row:2}
 #ll2-app .ll-profile-editor>summary{max-width:calc(100% - 130px)}
 #ll2-app .ll-profile-shell .survey-view{gap:6px}
 #ll2-app .ll-profile-modes button{font-size:calc(.75rem * var(--lab-text-scale,1));padding:7px 8px}
 #ll2-app .ll-profile-shell [data-do="survey-export"]{font-size:calc(.75rem * var(--lab-text-scale,1));padding:8px}
 #ll2-app .ll-profile-shell .curiosity-card h2{font-size:calc(1.25rem * var(--lab-text-scale,1))!important}
}

#ll2-app .ll-profile-shell .survey-view button{font-size:calc(.8125rem * var(--lab-text-scale,1))!important;padding:8px!important}
#ll2-app .ll-profile-shell .ll-profile-chapter>summary h2{font-size:calc(1rem * var(--lab-text-scale,1))!important}
/* 9.1.5: related fields, deliberate groups, one answer action strip. */
#ll2-app .ll-profile-shell .page-title[hidden]{display:none!important}
#ll2-app .ll-profile-shell .profile-details,#ll2-app .ll-profile-workspace{padding:14px 18px;margin-bottom:12px;border-radius:16px}
#ll2-app .ll-profile-shell .profile-details{background:radial-gradient(circle at 100% 0,#eaf3cc 0,transparent 32%),#fbfdfa;border-top:3px solid #537e69}
#ll2-app .ll-profile-shell .profile-identity h2{font-size:calc(1.15rem * var(--lab-text-scale,1))!important;letter-spacing:-.02em}
#ll2-app .ll-profile-shell .profile-avatar{width:44px;height:44px;min-width:44px;flex-basis:44px;font-size:26px;border-radius:14px;transform:rotate(-5deg)}
#ll2-app .ll-profile-shell .profile-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:10px}
#ll2-app .ll-profile-context{grid-column:1/-1;display:grid;grid-template-columns:1fr 2fr;gap:10px}
#ll2-app .ll-profile-shell .profile-fields input,#ll2-app .ll-profile-shell .profile-fields select{padding:7px 10px;min-height:38px}
#ll2-app .ll-profile-shell .ll-profile-emoji{gap:8px}
#ll2-app .ll-profile-save{margin-top:10px}
#ll2-app .ll-profile-shell .survey-view{display:grid;grid-template-columns:auto minmax(120px,1fr) auto auto auto;gap:8px;align-items:center}
#ll2-app .ll-profile-shell .survey-intro{margin:0!important;font-size:calc(.75rem * var(--lab-text-scale,1))!important;line-height:1.35!important}
#ll2-app .ll-profile-section-title{margin:0;white-space:nowrap}
#ll2-app .ll-profile-shell .curiosity-chapters{margin:10px 0;padding-bottom:8px;gap:4px}
#ll2-app .ll-profile-shell .curiosity-chapters button{padding:6px 9px!important;min-height:34px}
#ll2-app .ll-profile-shell .curiosity-card h2{max-width:none;font-size:calc(1.3rem * var(--lab-text-scale,1))!important;margin-bottom:10px}
#ll2-app .ll-profile-shell .curiosity-card textarea{min-height:100px;padding:10px 12px}
#ll2-app .ll-profile-shell .curiosity-card .actions{display:flex;gap:5px;align-items:flex-start;margin-top:6px}
#ll2-app .ll-profile-shell .actions .writing-tools{flex:1 1 auto;margin:0;min-width:0}
#ll2-app .ll-profile-shell .actions .writing-tools-bar{gap:4px;margin:0;padding:0;flex-wrap:wrap}
#ll2-app .ll-profile-shell .actions :is(button,summary){font-size:calc(.75rem * var(--lab-text-scale,1))!important;min-height:34px;padding:6px 8px!important;line-height:1.3}
#ll2-app .ll-profile-shell .actions .writing-tools :is(.voice-status:empty,[data-voice-playback]:empty){display:none}
#ll2-app .ll-save-group{display:flex;flex-direction:column;gap:4px;align-items:stretch;margin-left:auto}
#ll2-app .ll-profile-shell .ll-profile-save-note{margin:0;max-width:16em;text-align:center;font-size:calc(.65rem * var(--lab-text-scale,1))!important}
#ll2-app .ll-profile-shell .ll-profile-charcount{font-size:.65rem;margin:2px}
@media(max-width:1000px){#ll2-app .ll-profile-shell .survey-view{grid-template-columns:auto 1fr auto}#ll2-app .ll-profile-modes{grid-column:1/3;order:0}#ll2-app .ll-profile-shell [data-do=survey-export]{order:0;margin:0} }
@media(max-width:640px){#ll2-app .ll-profile-shell .profile-fields{grid-template-columns:1fr}#ll2-app .ll-profile-context{grid-template-columns:1fr}#ll2-app .ll-profile-shell .profile-details,#ll2-app .ll-profile-workspace{padding:12px}#ll2-app .ll-profile-shell .curiosity-card .actions .writing-tools{flex-basis:100%;margin-bottom:4px}#ll2-app .ll-profile-shell .actions button{flex:0 1 auto}#ll2-app .ll-profile-shell .survey-view{grid-template-columns:auto 1fr}#ll2-app .ll-profile-progress{grid-column:1}#ll2-app .ll-profile-modes{grid-column:2;grid-row:2}#ll2-app .ll-profile-shell [data-do=survey-export]{grid-column:2;justify-self:end}#ll2-app .ll-profile-shell .survey-intro{min-width:0} }
/* Profile shares the same Data tabs as Dashboard and Grades & feedback. */
@media(pointer:coarse){#ll2-app .ll-profile-shell .actions :is(button,summary){min-height:40px}}

