/* YasReady Studio v0.9.1 — UX polish layer
   Focus: clearer hierarchy, fewer repeated actions, denser usable layouts,
   consistent light/dark surfaces, and obvious next steps. */
:root{
  --ux-sidebar:228px;
  --ux-main:1160px;
  --ux-r-sm:10px;
  --ux-r-md:14px;
  --ux-r-lg:18px;
  --ux-shadow:0 12px 34px rgba(0,0,0,.10);
}
:root[data-theme="light"]{--ux-shadow:0 10px 28px rgba(33,38,50,.065)}

/* ---------- shared shell ---------- */
.yr-app{grid-template-columns:var(--ux-sidebar) minmax(0,1fr)}
.yr-sidebar{padding:18px 13px 15px;background:color-mix(in srgb,var(--yr-panel) 94%,transparent)}
.yr-brand{padding:0 8px 16px;gap:10px}
.yr-logo{width:42px;height:42px;border-radius:13px;font-size:20px;box-shadow:0 10px 26px rgba(22,129,92,.18)}
.yr-brand strong{font-size:16px}.yr-brand span{font-size:10px}
.yr-profile-switcher{margin:0 0 13px}.yr-profile-trigger{min-height:52px;border-radius:13px;padding:7px 9px;background:var(--yr-panel)}
.yr-profile-trigger small{font-size:7.5px}.yr-profile-trigger b{font-size:10.5px}
.yr-nav{gap:2px}
.yr-nav-label{padding:13px 12px 5px;color:var(--yr-muted);font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;opacity:.72}
.yr-nav a{min-height:40px;padding:0 11px;border-radius:10px;font-size:12px;font-weight:730;gap:9px}
.yr-nav .icon{width:19px;font-size:13px}
.yr-nav a.active{box-shadow:0 8px 20px rgba(22,129,92,.14)}
.workspace-mini{display:none}
.yr-sidebar-bottom{gap:9px}.theme-button{min-height:38px;border-radius:10px;font-size:10px}.yr-version{font-size:8px;opacity:.7}
.yr-main{width:min(var(--ux-main),calc(100% - 40px));padding:28px 0 64px}
.yr-top{align-items:center;gap:18px;margin-bottom:22px}.yr-top>div:first-child{max-width:760px}
.yr-top h1{margin:5px 0 5px;font-size:clamp(30px,3.8vw,44px);line-height:1.02;letter-spacing:-.038em}
.yr-top p{font-size:13px;line-height:1.45;max-width:680px}
.yr-top-actions{justify-content:flex-end}.yr-btn{min-height:40px;padding:0 13px;border-radius:10px;font-size:11px;font-weight:800}
.eyebrow{font-size:9px;letter-spacing:.13em}
.section-head{margin:26px 0 10px}.section-head h2{font-size:18px}.section-head p{font-size:10.5px;margin-top:2px}
.panel,.status-card,.settings-section,.profile-card,.recent-card,.tool-card{box-shadow:none}
.status-row{gap:9px;margin-top:18px}.status-card{padding:14px;border-radius:14px}.status-card strong{font-size:17px;margin-top:5px}.status-card span{font-size:9.5px}
.tool-grid{gap:10px}.tool-card{min-height:150px;padding:16px;border-radius:16px}.tool-card .tool-icon{width:38px;height:38px;border-radius:11px;font-size:17px}.tool-card h3{margin:14px 0 4px;font-size:15px}.tool-card.featured h3{font-size:17px}.tool-card p{font-size:10.5px;line-height:1.42}.tool-card .arrow{right:14px;top:14px;font-size:16px}
.panel{padding:16px;border-radius:16px}.panel h3{font-size:14px;margin-bottom:10px}
.notice{font-size:10.5px;border-radius:11px;padding:11px 12px}

/* ---------- Home: one obvious next step ---------- */
.home-page .yr-main{padding-top:24px}
.home-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--yr-line)}
.home-head h1{margin:4px 0 3px;font-size:clamp(30px,3.8vw,42px);letter-spacing:-.04em;line-height:1}
.home-head p{margin:0;color:var(--yr-muted);font-size:12px}
.home-head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.home-primary{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:22px;padding:20px 22px;border:1px solid var(--yr-line);border-radius:18px;background:linear-gradient(125deg,color-mix(in srgb,var(--yr-panel) 94%,var(--yr-accent) 6%),var(--yr-panel));box-shadow:var(--ux-shadow)}
.home-primary.live{border-color:rgba(42,201,130,.34);background:linear-gradient(125deg,rgba(22,129,92,.10),rgba(42,201,130,.07)),var(--yr-panel)}
.home-state{display:flex;align-items:flex-start;gap:13px}.home-state-dot{width:11px;height:11px;margin-top:5px;border-radius:50%;background:#7a8290;box-shadow:0 0 0 5px rgba(122,130,144,.09)}
.home-primary.live .home-state-dot{background:#ff4f7d;box-shadow:0 0 0 5px rgba(255,79,125,.10),0 0 18px rgba(255,79,125,.22)}
.home-state small{display:block;color:#9588ff;font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.home-state h2{margin:4px 0 4px;font-size:22px;letter-spacing:-.025em}.home-state p{margin:0;color:var(--yr-muted);font-size:11px;line-height:1.45}
.home-primary-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.home-glance{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:9px;margin-top:12px}
.home-glance article{min-height:82px;padding:13px 14px;border:1px solid var(--yr-line);border-radius:14px;background:var(--yr-panel)}
.home-glance small,.home-glance strong,.home-glance span{display:block}.home-glance small{color:var(--yr-muted);font-size:8px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.home-glance strong{margin-top:6px;font-size:15px}.home-glance span{margin-top:3px;color:var(--yr-muted);font-size:9px}
.home-actions-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.home-action{display:flex;align-items:center;gap:11px;min-height:82px;padding:13px;border:1px solid var(--yr-line);border-radius:14px;background:var(--yr-panel);color:var(--yr-text);text-decoration:none;transition:.15s ease}
.home-action:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--yr-accent) 40%,var(--yr-line));background:color-mix(in srgb,var(--yr-panel) 96%,var(--yr-accent) 4%)}
.home-action i{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:var(--yr-panel2);font-style:normal;font-size:17px}
.home-action b,.home-action small{display:block}.home-action b{font-size:12px}.home-action small{margin-top:3px;color:var(--yr-muted);font-size:9px;line-height:1.3}
.home-section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:24px 0 9px}.home-section-title h2{margin:0;font-size:17px}.home-section-title p{margin:2px 0 0;color:var(--yr-muted);font-size:10px}.home-section-title a{color:var(--yr-muted);font-size:10px;text-decoration:none}.home-section-title a:hover{color:var(--yr-text)}
.recent-grid{gap:9px}.recent-card{padding:14px;border-radius:14px}.recent-card h3{font-size:14px;margin:4px 0 3px}.recent-card p{font-size:9.5px}
.home-help{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding:12px 14px;border:1px solid var(--yr-line);border-radius:13px;background:var(--yr-panel2);color:var(--yr-muted);font-size:10px}.home-help b{color:var(--yr-text)}

/* ---------- Settings: simple by default, technical only when requested ---------- */
.settings-grid{gap:10px}.settings-section{padding:18px;border-radius:16px}.settings-section h2{font-size:16px}.settings-section>p{margin-bottom:12px;font-size:10.5px}.field{margin-top:10px}.field label{font-size:8px}.field input,.field textarea,.field select{padding:10px 11px;border-radius:10px;font-size:12px}.field textarea{min-height:78px}
.settings-identity-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.settings-identity-grid .full{grid-column:1/-1}
.settings-advanced{padding:0;overflow:hidden}.settings-advanced>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer}.settings-advanced>summary::-webkit-details-marker{display:none}.settings-advanced>summary h2{margin:0}.settings-advanced>summary span{color:var(--yr-muted);font-size:10px}.settings-advanced[open]>summary{border-bottom:1px solid var(--yr-line)}.settings-advanced-body{padding:16px 18px}
.howto-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}.howto-step{position:relative;padding:14px;border:1px solid var(--yr-line);border-radius:13px;background:var(--yr-panel2)}.howto-step>span{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:linear-gradient(135deg,var(--yr-accent),var(--yr-accent2));color:#fff;font-size:10px;font-weight:900}.howto-step h3{margin:10px 0 3px;font-size:12px}.howto-step p{margin:0;color:var(--yr-muted);font-size:9.5px;line-height:1.4}.howto-step a{display:inline-block;margin-top:9px;color:#9688ff;font-size:9.5px;font-weight:800;text-decoration:none}
.howto-scenarios{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.howto-scenario{padding:12px 13px;border:1px solid var(--yr-line);border-radius:12px}.howto-scenario b{display:block;font-size:11px}.howto-scenario span{display:block;margin-top:4px;color:var(--yr-muted);font-size:9.5px;line-height:1.4}

/* ---------- People / Templates / Profiles ---------- */
.participant-editor{gap:9px;margin:12px 0}.participant-edit-row{gap:9px;padding:12px;border-radius:14px}.participant-edit-row .field{margin:0}.empty-editor{padding:15px;border-radius:14px;font-size:11px}.people-autosave{display:inline-flex;align-items:center;gap:6px;color:var(--yr-muted);font-size:10px}.people-autosave i{width:7px;height:7px;border-radius:50%;background:var(--yr-teal)}
.profile-account-strip{margin-top:14px;gap:8px}.profile-account-strip>div{padding:12px;border-radius:13px}.profile-grid{gap:10px}.profile-card{padding:16px;border-radius:16px}.profile-card-head{grid-template-columns:42px minmax(0,1fr) auto}.profile-card-avatar{width:42px;height:42px;font-size:17px}.profile-meta code{display:none}.profile-meta{font-size:9px;margin-top:10px;padding-top:10px}.profile-module-pills{margin-top:11px}.profile-card-actions{margin-top:12px}
.profile-dialog{border-radius:18px}.profile-dialog form{padding:18px}

/* ---------- Guest Hub: task first, marketing/tutorial copy out of the way ---------- */
body[data-yasready-admin="true"] .experience,body[data-yasready-admin="true"] .value-row{display:none!important}
body[data-yasready-admin="true"] .content{padding-bottom:48px}
body[data-yasready-admin="true"] .page-top{margin-bottom:12px}
body[data-yasready-admin="true"] .page-top h1{font-size:clamp(30px,4vw,44px)!important;letter-spacing:-.04em!important;margin-bottom:4px!important}
body[data-yasready-admin="true"] .page-top p{max-width:620px!important;font-size:12px!important}
body[data-yasready-admin="true"] .quick-grid{margin-top:10px!important}

/* ---------- Control Room / Prepare ---------- */
body .topbar{padding-top:10px;padding-bottom:10px}
body .stage-nav{display:flex;gap:5px;padding:5px;margin:0 0 18px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--panel) 92%,transparent)}
body .stage-nav button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:7px 11px;border:0;border-radius:10px;background:transparent;text-align:center}
body .stage-nav button span{display:grid;width:25px;height:25px;border-radius:8px;grid-row:auto;font-size:10px}body .stage-nav button small{display:none}body .stage-nav button b{font-size:11px}
body .stage-nav button.active{background:var(--panel2);box-shadow:inset 0 0 0 1px rgba(22,129,92,.28)}
body main{padding-top:16px}.page-head,.control-head{margin:4px 0 14px;align-items:center}.page-head h1,.control-head h1{font-size:clamp(28px,4vw,42px);margin-top:4px}.page-head p,.control-head p{font-size:12px;line-height:1.42;margin-top:6px}.card{padding:17px;border-radius:17px;box-shadow:none}.grid{gap:11px}.grid.two{gap:11px}.card-head-flex{gap:12px}.card-head-flex p{font-size:10.5px}.field{gap:5px}.input,.textarea{padding:11px 12px;border-radius:11px;font-size:12px}.textarea{min-height:84px}.form-grid{gap:8px}.btn{padding:9px 12px;border-radius:10px;font-size:11px;min-height:38px}.btn.large{padding:11px 15px;font-size:12px}.participant-grid{gap:8px;margin:11px 0}.participant-card{padding:11px;border-radius:14px}.list{gap:7px;margin-top:10px}.item,.segment-edit,.check{border-radius:11px;padding:8px}.prepare-side{align-content:start}.prepare-action-card{position:sticky;top:78px;border-color:rgba(22,129,92,.25);background:linear-gradient(145deg,rgba(22,129,92,.08),rgba(42,201,130,.035)),var(--panel)}.prepare-action-card h2{font-size:18px}.prepare-action-card .btn.primary{width:100%;margin-top:10px}.optional-production details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px}.optional-production details>summary::-webkit-details-marker{display:none}.optional-production details>summary span{color:#9588ff;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}.optional-production .optional-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px;padding-top:13px;border-top:1px solid var(--line)}
.confidence-strip{gap:6px;padding:7px;border-radius:13px}.confidence-primary,.confidence-item{min-height:46px;padding:7px 9px;border-radius:10px}.confidence-primary small,.confidence-item small{font-size:7.5px}.confidence-primary b,.confidence-item b{font-size:10.5px}.operator-shortcuts{margin-bottom:9px}
.live-layout{gap:11px}.record-main{padding:22px}.timer{font-size:clamp(58px,9vw,112px)}.marker-grid{gap:7px;margin-top:16px}.marker{min-height:72px;border-radius:13px}.marker em{font-size:20px}.participant-strip{padding-bottom:10px}.participant-live{min-width:170px;border-radius:13px;padding:8px 10px}

/* ---------- responsive ---------- */
@media(max-width:980px){
  .yr-app{grid-template-columns:1fr}.yr-sidebar{position:sticky;top:0;height:auto;z-index:80;padding:10px 12px;border-right:0;border-bottom:1px solid var(--yr-line)}
  .yr-brand{display:none}.yr-profile-switcher{display:none}.yr-nav{display:flex;gap:4px;overflow:auto;padding:0}.yr-nav-label{display:none}.yr-nav a{min-height:38px;white-space:nowrap}.yr-sidebar-bottom{display:none}.yr-main{width:min(100% - 24px,var(--ux-main));padding-top:20px}
  .home-glance{grid-template-columns:1fr 1fr}.home-actions-grid{grid-template-columns:1fr 1fr}.howto-flow{grid-template-columns:1fr 1fr}.howto-scenarios{grid-template-columns:1fr}.settings-identity-grid{grid-template-columns:1fr}.settings-identity-grid .full{grid-column:auto}
}
@media(max-width:760px){
  .home-head,.home-primary{grid-template-columns:1fr;display:grid}.home-head-actions,.home-primary-actions{justify-content:flex-start}.home-primary-actions .yr-btn{flex:1}.home-glance,.home-actions-grid,.howto-flow{grid-template-columns:1fr}.yr-main{width:min(100% - 18px,var(--ux-main))}.yr-top{display:block}.yr-top-actions{margin-top:12px;justify-content:flex-start}.yr-top h1{font-size:32px}.status-row{grid-template-columns:1fr 1fr}.grid.two{grid-template-columns:1fr}.prepare-action-card{position:static}.optional-production .optional-grid{grid-template-columns:1fr}
}
@media(max-width:520px){.status-row{grid-template-columns:1fr}.home-primary-actions,.home-head-actions{display:grid;grid-template-columns:1fr;width:100%}.yr-btn{width:auto}.stage-nav button span{display:none}.stage-nav button{padding:8px 6px}.home-help{align-items:flex-start;flex-direction:column}}
/* Guest Hub removes duplicate invite entry; the primary Invite Guest button stays in the header. */
body[data-yasready-admin="true"] .quick-grid .quick-card:first-child{display:none!important}
body[data-yasready-admin="true"] .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:620px){body[data-yasready-admin="true"] .quick-grid{grid-template-columns:1fr!important}}
