/* The current task comes first; personal tools remain available on demand. */
:root .page-profile{--nm-setup-width:960px}
:root .nm-profile-start-heading{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  max-width:var(--nm-setup-width);margin:0 0 18px;
}
:root .nm-profile-start-heading h1{margin:0;font-size:30px!important;line-height:1.25!important;background:none;padding:0}
:root .nm-profile-start-status{max-width:480px;color:var(--exp-muted);font-size:var(--nm-readable-small,14px);line-height:1.5}
:root .nm-profile-start-status strong{
  display:inline-block;padding:5px 10px;border:1px solid var(--exp-line);border-radius:20px;
  background:var(--exp-surface);color:var(--exp-ink);font-size:inherit;font-weight:700;
}
:root .nm-profile-start-status[data-profile-state=photos] strong{background:var(--exp-yellow)}
:root .nm-profile-start-status[data-profile-state=visible] strong{background:var(--exp-lilac);border-color:var(--exp-purple);color:var(--exp-purple)}
:root .nm-profile-start-status p{margin:6px 0 0;font-size:inherit;line-height:1.5}
:root .page-profile .profile-editor-layout:has(.nm-start-form){grid-template-columns:minmax(0,1fr);max-width:var(--nm-setup-width)}
:root .page-profile .profile-editor-main:focus{outline:none}
:root .nm-start-form{display:block;padding:24px!important;margin:0!important;box-shadow:none!important;min-width:0}
:root .nm-start-current{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 8px}
:root .nm-start-current>div{min-width:0}
:root .nm-start-current .eyebrow{font-size:var(--nm-readable-small,13px);line-height:1.4;letter-spacing:.04em;color:var(--exp-muted);margin:0 0 4px}
:root .nm-start-current h2{font-size:26px!important;line-height:1.25!important;margin:0;color:var(--exp-ink)}
:root .nm-start-current h2:focus{outline:none}
:root .nm-start-primary{flex:0 1 auto;min-height:46px;padding:10px 16px;white-space:normal;font-size:var(--nm-readable-control,15px);line-height:1.5}
:root .nm-start-form :is(.nm-start-step-picker,.nm-start-optional-facts,.nm-start-search-options){border:0;border-top:1px solid var(--exp-line);background:transparent;padding:0;margin:12px 0}
:root .nm-start-form .nm-start-step-picker{border-top:0;margin:0 0 14px}
:root .nm-start-form :is(.nm-start-step-picker,.nm-start-optional-facts,.nm-start-search-options,.nm-optional-fields)>summary{
  min-height:44px;padding:11px 0;font-size:var(--nm-readable-control,15px);line-height:1.5;
  font-weight:600;color:var(--exp-ink);cursor:pointer;
}
:root .nm-start-form details:not([open])>:not(summary){display:none}
:root .nm-start-steps{margin:0 0 16px;gap:8px;flex-wrap:wrap}
:root .nm-start-steps button{
  color:var(--nm-control-ink);background:var(--nm-control-surface);border:1px solid var(--nm-control-line);
  border-radius:var(--nm-control-radius);font-size:var(--nm-readable-control,15px);line-height:1.5;min-width:0;
}
:root .nm-start-steps button[aria-current=step]{background:var(--nm-control-primary);color:#fff;border-color:var(--nm-control-primary);box-shadow:inset 0 -3px 0 var(--nm-control-accent)}
:root .nm-start-steps button span{background:transparent;color:inherit;border:1px solid currentColor}
:root .nm-start-section fieldset{min-width:0;margin:14px 0}
:root .nm-start-section legend{font-size:var(--nm-readable-body,17px);line-height:1.5;color:var(--exp-ink)}
:root .nm-start-section :is(p,label){line-height:1.6}
:root .nm-start-section .nm-journey-note{background:var(--exp-lilac);color:var(--exp-ink)}
:root .nm-start-section input:not([type=checkbox]),:root .nm-start-section :is(select,textarea){background:var(--exp-surface);color:var(--exp-ink);border-color:var(--exp-line)}
:root .nm-start-intents{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:root .nm-start-intents label{color:var(--exp-ink);background:var(--exp-surface);border-color:var(--exp-line);min-width:0}
:root .nm-start-intents label:has(input:checked){border-color:var(--exp-purple);background:var(--exp-lilac)}
:root .nm-start-intents input,:root .nm-start-visibility input{accent-color:var(--nm-control-primary)}
:root .nm-start-section .nm-start-visibility{color:var(--exp-ink);border-color:var(--exp-line);background:var(--exp-surface)}
:root .nm-start-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-top:20px}
:root .nm-start-actions>div{display:flex;flex-wrap:wrap;gap:8px}
:root .nm-start-actions button{min-height:46px;white-space:normal;font-size:var(--nm-readable-control,15px);line-height:1.5}
:root .nm-start-save-state{font-size:var(--nm-readable-small,13px);color:var(--exp-muted);line-height:1.5}
:root :is(.nm-profile-sections-disclosure,.nm-profile-space-tools){
  max-width:var(--nm-setup-width);margin:14px 0 0;border:1px solid var(--exp-line);
  border-radius:var(--nm-control-radius);background:var(--exp-surface);min-width:0;
}
:root :is(.nm-profile-sections-disclosure,.nm-profile-space-tools)>summary{
  display:flex;align-items:center;gap:10px;min-height:50px;padding:12px 16px;list-style:none;
  color:var(--exp-ink);font-size:var(--nm-readable-control,15px);line-height:1.5;font-weight:650;cursor:pointer;
}
:root :is(.nm-profile-sections-disclosure,.nm-profile-space-tools)>summary::-webkit-details-marker{display:none}
:root :is(.nm-profile-sections-disclosure,.nm-profile-space-tools)[open]>summary>.nm-disclosure-icon{transform:rotate(180deg)}
:root :is(.nm-profile-sections-disclosure,.nm-profile-space-tools):not([open])>:not(summary){display:none}
:root .nm-profile-sections-disclosure>.nm-profile-navigation{border:0;border-top:1px solid var(--exp-line);border-radius:0;margin:0;background:transparent}
:root .nm-profile-space-content{padding:12px 16px;border-top:1px solid var(--exp-line);min-width:0}
:root .nm-profile-space-content :is(.exp-sections,.exp-toolbar){padding:0;flex-wrap:wrap;gap:8px;background:transparent;border:0;margin:0 0 12px;overflow:visible}
:root .nm-profile-space-content .exp-sections button{flex:0 1 auto;white-space:normal}
:root .nm-profile-space-content .exp-toolbar>button{margin:0}
:root .nm-profile-space-content .exp-toolbar>button:nth-child(3){font-size:var(--nm-readable-control,15px)}
:root .nm-profile-space-content .exp-toolbar>button:nth-child(3)::after{content:none}
:root .nm-profile-space-content .deep-ai-entry{margin:0}
@media(max-width:760px){
  :root .app-main:has(>.page-profile)>.topbar{min-height:64px!important;padding:4px 12px!important}
  :root .app-main:has(>.page-profile)>.topbar .nm-topbar-brand{width:54px!important;height:54px!important}
  :root .app-main:has(>.page-profile)>.demo-ribbon{gap:2px 10px;padding:4px 12px!important}
  :root .app-main:has(>.page-profile)>.demo-ribbon>button{min-height:44px;padding-block:6px}
  :root .page-profile{padding-top:16px!important}
  :root .nm-profile-start-heading{display:block;margin-bottom:14px}
  :root .nm-profile-start-heading h1{font-size:26px!important;margin-bottom:10px}
  :root .nm-profile-start-status{max-width:none}
  :root .nm-start-form{padding:18px 14px!important}
  :root .nm-start-current{gap:12px;flex-wrap:wrap}
  :root .nm-start-current h2{font-size:23px!important}
  :root .nm-start-primary{max-width:100%;padding:10px 12px}
  :root .nm-start-intents{grid-template-columns:minmax(0,1fr)}
  :root .nm-start-intents label{padding:12px}
  :root .nm-start-steps{flex-direction:column}
  :root .nm-start-actions{align-items:stretch}
  :root .nm-profile-space-content .exp-toolbar>button:nth-child(2){width:auto;flex:1 1 100%;order:0}
}
@media(max-width:360px){
  :root .nm-start-current{display:block}
  :root .nm-start-primary{margin-top:12px;width:100%}
  :root .nm-profile-start-status p{font-size:var(--nm-readable-small,13px)}
}
