/* The three public entry points should read as a compact set of choices. */
html body #main nav.growth-first-actions {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch!important;
  justify-content:stretch!important;
  gap:12px;
  min-height:0!important;
  height:auto!important;
  margin:22px 0 28px;
  padding:22px;
  border-radius:24px;
}
html body #main nav.growth-first-actions h2 {
  grid-column:1/-1;
  margin:0 0 5px;
  font-size:clamp(19px,2vw,25px);
  text-align:left;
}
html body #main nav.growth-first-actions>p {
  grid-column:1/-1;
  margin:0 0 4px;
  color:var(--gh-muted,#6c606d);
  font-size:13px;
  line-height:1.5;
}
html body #main nav.growth-first-actions a {
  display:flex;
  width:100%;
  min-width:0;
  min-height:72px;
  justify-content:space-between;
  align-items:center;
  padding:16px 18px;
  border:1px solid #ae829e;
  border-radius:16px;
  background:#5b354e;
  color:#fff;
  font-size:14px;
  line-height:1.4;
  text-align:left;
  box-shadow:0 8px 20px #21132217;
}
html body #main nav.growth-first-actions a span {flex:none;font-size:20px}
html body #main nav.growth-first-actions a:hover {transform:translateY(-2px)}
html body #main nav.growth-first-actions a:not(:first-of-type) {
  border-color:#d5bdd0;
  background:transparent;
  color:#593b50;
  box-shadow:none;
}
html[data-theme=dark] body #main nav.growth-first-actions a {
  border-color:#efc9e2;
  background:#efc9e2!important;
  color:#302333!important;
}
html[data-theme=dark] body #main nav.growth-first-actions a:not(:first-of-type) {
  border-color:#80617a;
  background:#342837!important;
  color:#f7e8f4!important;
}
@media(max-width:850px){
  html body #main nav.growth-first-actions{grid-template-columns:1fr;gap:9px;padding:18px}
  html body #main nav.growth-first-actions a{min-height:54px}
}
@media(max-width:560px){
  html body #main nav.growth-first-actions{margin:12px 0 18px;padding:16px}
  html body #main nav.growth-first-actions h2{margin:0;font-size:21px}
  html body #main nav.growth-first-actions>p{font-size:12px}
}
/* The first action must be visible before the large editorial image on phones. */
@media(max-width:640px){
  html body #main .studio-hero:has(.studio-photo){gap:0}
  html body #main .studio-hero>div:first-child{padding:22px 23px 20px}
  html body #main .studio-hero h1{margin:13px 0 12px;font-size:clamp(31px,8vw,37px);line-height:1.12}
  html body #main .studio-hero p{font-size:13px;line-height:1.55}
  html body #main .studio-hero .primary-button{
    display:flex;
    width:100%;
    min-height:52px;
    margin-top:17px;
    border:1px solid #f0c8a9;
    border-radius:14px;
    background:#f1c6a6!important;
    color:#342130!important;
    font-size:13px;
    font-weight:800;
    box-shadow:0 7px 20px #1c0e1926;
  }
  html body #main .studio-hero .studio-footnote{display:block;margin-top:10px;font-size:11px}
  html body #main .studio-hero .studio-photo>img{display:block;height:160px;min-height:0;object-fit:cover;object-position:center 38%}
  html body #main .studio-hero .studio-photo .art-sticker,
  html body #main .studio-hero .studio-photo .portrait-credit{display:none}
  html[data-theme=dark] body #main .studio-hero .primary-button{background:#f1c6a6!important;color:#342130!important}
  html:not([data-theme=dark]) body:not(.business-dashboard) #main .studio-hero .primary-button{
    background:#f1c6a6!important;
    color:#342130!important;
    border-color:#f1c6a6!important;
  }
  body:has(#main .studio-hero) .assistant-launcher{display:none}
}

/* The agenda dialog previously left native select and textarea styling visible. */
html body #modal-overlay .modal:has(#schedule-form) {
  width:min(680px,calc(100vw - 32px));
  max-width:680px;
  max-height:calc(100dvh - 40px);
  padding:30px clamp(20px,3vw,36px);
  border:1px solid #dbc8d6;
  border-radius:24px;
  background:#fffafc;
  color:#3d2d3b;
}
html body #modal-overlay .modal:has(#schedule-form) h2 {
  margin:7px 0 18px;
  font-size:clamp(25px,2.6vw,32px);
  line-height:1.2;
}
html body #modal-overlay #schedule-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 16px;
}
html body #modal-overlay #schedule-form label {
  margin:14px 0 7px;
  color:#5a4052;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
}
html body #modal-overlay #schedule-form :is(input,select,textarea) {
  width:100%;
  min-width:0;
  min-height:46px;
  margin:0;
  padding:11px 13px;
  border:1px solid #cbb8c7;
  border-radius:12px;
  background:#fff;
  color:#3d2d3b;
  font:inherit;
  font-size:15px;
  line-height:1.4;
  box-sizing:border-box;
}
html body #modal-overlay #schedule-form textarea {min-height:86px;resize:vertical}
html body #modal-overlay #schedule-form :is(input,select,textarea):focus-visible {
  outline:3px solid #ac77a0;
  outline-offset:2px;
}
html body #modal-overlay #schedule-form label[for=schedule-profile] {grid-area:1/1}
html body #modal-overlay #schedule-profile {grid-area:2/1}
html body #modal-overlay #schedule-form label[for=schedule-routine] {grid-area:1/2}
html body #modal-overlay #schedule-routine {grid-area:2/2}
html body #modal-overlay #schedule-form label[for=schedule-title] {grid-area:3/1}
html body #modal-overlay #schedule-title {grid-area:4/1}
html body #modal-overlay #schedule-form label[for=schedule-date] {grid-area:3/2}
html body #modal-overlay #schedule-date {grid-area:4/2}
html body #modal-overlay #schedule-form>.form-note:first-of-type {grid-area:5/1/auto/3;margin:7px 0 0}
html body #modal-overlay #schedule-form label[for=schedule-repeat] {grid-area:6/1}
html body #modal-overlay #schedule-repeat {grid-area:7/1}
html body #modal-overlay #schedule-form label[for=schedule-reminder] {grid-area:6/2}
html body #modal-overlay #schedule-reminder {grid-area:7/2}
html body #modal-overlay #schedule-form label[for=schedule-notes] {grid-area:8/1/auto/3}
html body #modal-overlay #schedule-notes {grid-area:9/1/auto/3}
html body #modal-overlay #schedule-form>.form-note:nth-of-type(2) {grid-area:10/1/auto/3;margin:10px 0 0}
html body #modal-overlay #schedule-form>.notice,
html body #modal-overlay #schedule-form>.form-error,
html body #modal-overlay #schedule-form>.primary-button {grid-column:1/-1}
html body #modal-overlay #schedule-form>.primary-button {
  min-height:50px;
  margin-top:18px;
  border-radius:13px;
  font-size:14px;
  font-weight:750;
}
html[data-theme=dark] body #modal-overlay .modal:has(#schedule-form) {
  border-color:#65536a;
  background:#2d2531!important;
  color:#f5ecf4;
}
html[data-theme=dark] body #modal-overlay #schedule-form label {color:#f0e2ee}
html[data-theme=dark] body #modal-overlay #schedule-form :is(input,select,textarea) {
  border-color:#76647a;
  background:#211b26!important;
  color:#fff6fc!important;
  color-scheme:dark;
}
@media(max-width:620px){
  html body #modal-overlay .modal:has(#schedule-form){max-height:calc(100dvh - 20px);padding:22px 18px}
  html body #modal-overlay #schedule-form{display:block}
  html body #modal-overlay #schedule-form label{margin-top:13px}
  html body #modal-overlay #schedule-form>.form-note:first-of-type{margin:7px 0}
}

/* Routine filters stay calm when the goal catalogue grows. */
.routine-filters{margin:20px 0 14px}
.routine-filter-pills,.routine-filters-extra{display:flex;flex-wrap:wrap;gap:9px}
.routine-filters-extra{margin-top:9px}
.routine-filter-more{border-style:dashed!important}
.routine-filter-mobile{display:none}
@media(max-width:640px){
 .routine-filter-pills,.routine-filters-extra{display:none}
 .routine-filter-mobile{display:grid;gap:7px;max-width:100%;font-size:12px;font-weight:650;color:var(--text)}
 .routine-filter-mobile select{width:100%;min-height:46px;padding:10px 40px 10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--text);font:inherit}
}

/* Recipe search: one clear control, with tappable ingredient keywords. */
html body #main .recipe-search-wrap{min-width:0;margin:25px 0 8px}
html body #main .recipe-search-wrap .library-toolbar{display:flex;align-items:center;gap:12px;margin:0}
html body #main .recipe-search-wrap .search-field{display:flex;align-items:center;gap:13px;min-width:0;min-height:56px;flex:1;padding:0 17px;border:1px solid #d8c3d2;border-radius:17px;background:var(--paper,#fffaf6);color:#806b7c;box-shadow:0 5px 18px #38233b0a;transition:border-color .18s,box-shadow .18s}
html body #main .recipe-search-wrap .search-field:focus-within{border-color:#a56f98;outline:3px solid #a56f9826;outline-offset:2px;box-shadow:0 6px 20px #38233b12}
html body #main .recipe-search-wrap .search-field-icon{display:grid;place-items:center;flex:0 0 23px;color:#725d70}
html body #main .recipe-search-wrap .search-field-icon svg{width:21px;height:21px}
html body #main .recipe-search-wrap .search-field input{display:block;flex:1;width:100%;min-width:0;min-height:50px;margin:0;padding:12px 0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;outline:0!important;color:var(--text,#352c42);font:inherit;font-size:15px}
html body #main .recipe-search-wrap .search-field input::placeholder{color:#897888;opacity:1}
html body #main .recipe-search-wrap .quick-toggle{display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:56px;margin:0;padding:0 18px;border:1px solid #ead8ad;border-radius:17px;background:#fff4d5;color:#916b27;font-size:13px;font-weight:650;white-space:nowrap}
html body #main .recipe-search-wrap .quick-toggle.active{border-color:#a56f98;background:#f0e2ef;color:#563d53}
html body #main .recipe-search-wrap .recipe-keywords{display:flex;align-items:center;gap:8px;min-width:0;margin-top:11px;overflow-x:auto;scrollbar-width:none}
html body #main .recipe-search-wrap .recipe-keywords::-webkit-scrollbar{display:none}
html body #main .recipe-search-wrap .recipe-keywords>span{flex:0 0 auto;margin-right:2px;color:var(--muted,#776e80);font-size:11px;font-weight:650}
html body #main .recipe-search-wrap .recipe-keywords button{flex:0 0 auto;min-height:31px;padding:5px 12px;border:1px solid #ddcbd9;border-radius:999px;background:transparent;color:#695568;font:inherit;font-size:11px;cursor:pointer}
html body #main .recipe-search-wrap .recipe-keywords button:hover,html body #main .recipe-search-wrap .recipe-keywords button.active{border-color:#a56f98;background:#f0e2ef;color:#563d53}
html[data-theme=dark] body #main .recipe-search-wrap .search-field{border-color:#514352;background:#2c2530;color:#d5c4d2}
html[data-theme=dark] body #main .recipe-search-wrap .search-field-icon{color:#d0b8ce}
html[data-theme=dark] body #main .recipe-search-wrap .search-field input{color:#fbf4fa}
html[data-theme=dark] body #main .recipe-search-wrap .search-field input::placeholder{color:#b9a9b8}
html[data-theme=dark] body #main .recipe-search-wrap .quick-toggle.active,html[data-theme=dark] body #main .recipe-search-wrap .recipe-keywords button:hover,html[data-theme=dark] body #main .recipe-search-wrap .recipe-keywords button.active{border-color:#906a8d;background:#493547;color:#fff3fb}
html[data-theme=dark] body #main .recipe-search-wrap .recipe-keywords button{border-color:#514352;color:#d9cad8}
@media(max-width:640px){
 html body #main .recipe-search-wrap{margin:20px 0 6px}
 html body #main .recipe-search-wrap .library-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}
 html body #main .recipe-search-wrap .search-field{min-height:50px;gap:9px;padding:0 12px;border-radius:15px}
 html body #main .recipe-search-wrap .search-field input{min-height:46px;padding:10px 0;font-size:13px}
 html body #main .recipe-search-wrap .search-field-icon{flex-basis:19px}
 html body #main .recipe-search-wrap .search-field-icon svg{width:18px;height:18px}
 html body #main .recipe-search-wrap .quick-toggle{min-height:50px;padding:0 11px;border-radius:15px;font-size:11px}
 html body #main .recipe-search-wrap .quick-toggle svg{width:16px;height:16px}
 html body #main .recipe-search-wrap .recipe-keywords{gap:7px;margin-top:9px;margin-right:-18px;padding:1px 18px 4px 0}
}

/* Give each recipe a plain language purpose, visible both in cards and details. */
html body #main .recipe-purpose-inline{display:block;margin:12px 0 6px;padding:9px 11px;border-left:3px solid #b87f9e;border-radius:0 9px 9px 0;background:#f8f0f4;color:#625263;font-size:11px;line-height:1.55}
html body #main .recipe-purpose-inline strong{color:#593a54;letter-spacing:.05em;text-transform:uppercase}
html body #main .recipe-rhythm{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:18px}
html body #main .recipe-rhythm .recipe-purpose{padding-right:16px;border-right:1px solid #e4d6df}
html body #main .recipe-rhythm .recipe-purpose p{margin-top:7px}
html[data-theme=dark] body #main .recipe-purpose-inline{border-left-color:#ba80aa;background:#332a35!important;color:#e1d4e0!important}
html[data-theme=dark] body #main .recipe-purpose-inline strong{color:#f0c39e!important}
html[data-theme=dark] body #main .recipe-rhythm .recipe-purpose{border-color:#514653}
@media(max-width:850px){html body #main .recipe-rhythm{grid-template-columns:1fr}html body #main .recipe-rhythm .recipe-purpose{padding:0 0 15px;border-right:0;border-bottom:1px solid #e4d6df}}
