/* Shared mobile shell: Growth Orchard, Fruit Words/EasyWords and Fruit Action. */

/* Fruit Action ---------------------------------------------------------- */
body.minimal-task-active .minimal-task-app {
  grid-template-rows: auto minmax(0,1fr) auto !important;
  container-type: inline-size;
}
html body.orchard-active.minimal-task-active .study-view > #accountMenuButton { display: none !important; }
html body.minimal-task-active #minimalTaskView {
  position: fixed !important; inset: 0 !important; z-index: 170 !important;
  box-sizing: border-box !important; width: 100vw !important; height: 100dvh !important;
  min-height: 0 !important; padding: 0 !important; overflow: hidden !important;
}
body.minimal-task-active .minimal-task-header {
  grid-template-columns: 42px minmax(0,1fr) 42px !important;
}
body.minimal-task-active .minimal-task-header::after { display: none !important; }
body.minimal-task-active .minimal-task-home {
  display: grid !important; place-items: center !important;
  width: 42px !important; height: 42px !important;
  padding: 0 !important; border: 0 !important; border-radius: 50% !important;
  background: transparent !important; color: #547665 !important;
}
body.minimal-task-active .minimal-task-home .minimal-task-home-icon {
  display: block !important; width: 31px !important; height: 31px !important;
  overflow: visible; fill: none; stroke: currentColor; stroke-width: 3.6;
  stroke-linecap: round; stroke-linejoin: round;
}
body.minimal-task-active .minimal-task-home .minimal-task-home-product-icon {
  display: block !important; width: 28px !important; height: 28px !important; overflow: visible; color: #657970;
}
body.minimal-task-active .minimal-task-home-product-apple {
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
body.minimal-task-active .minimal-task-current {
  justify-self: center !important; width: min(100%,520px) !important; min-height: 42px !important; padding: 0 20px !important;
  display: grid !important; place-items: center !important;
  border: 1px solid rgba(53,86,72,.14) !important; border-radius: 17px !important;
  background: rgba(255,255,255,.76) !important; box-shadow: none !important;
}
body.minimal-task-active .minimal-task-current strong {
  width: 100%; min-width: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; text-overflow: ellipsis; white-space: nowrap; transform: none !important;
}
.minimal-task-title-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; color: #587666; }
.minimal-task-title-icon svg,.minimal-task-list-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.minimal-task-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.minimal-task-active .minimal-task-records-toggle {
  grid-column: 3; display: grid !important; place-items: center !important;
  width: 42px !important; height: 42px !important; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #657970 !important;
}
body.minimal-task-active .minimal-task-records-toggle svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.55;
  stroke-linecap: round; stroke-linejoin: round;
}
body.minimal-task-active .minimal-task-shell { position: relative; padding: 0 22px !important; }
body.minimal-task-active .minimal-task-workspace {
  position: relative !important; display: block !important;
  width: 100% !important; min-height: 0 !important; height: 100% !important;
}
body.minimal-task-active .minimal-task-stage {
  --task-control-size: clamp(260px,min(82vw,49dvh),420px);
  --task-control-offset: clamp(130px,min(41vw,24.5dvh),210px);
  position: absolute !important; inset: 0 !important;
  width: auto !important; min-height: 0 !important; height: auto !important;
  padding: 0 !important; display: block !important;
}
.minimal-task-control {
  --task-progress: 4deg;
  position: absolute; left: 50%; top: 50%; z-index: 1; isolation: isolate;
  width: var(--task-control-size); aspect-ratio: 1; transform: translate(-50%,-50%);
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  color: #26483a; background: conic-gradient(#d66f4e var(--task-progress), #d8e2d9 0);
  box-shadow: 0 32px 82px rgba(47,71,57,.2),0 6px 20px rgba(47,71,57,.1); cursor: pointer;
  transition: box-shadow .2s ease,filter .2s ease;
}
.minimal-task-control::before {
  content: ""; position: absolute; inset: 12px; z-index: -1; border-radius: inherit;
  background: radial-gradient(circle at 48% 36%,#fff 0 34%,#faf8f1 64%,#ebefe8 100%);
  box-shadow: inset 0 0 0 1px rgba(63,91,77,.05);
}
.minimal-task-control > span { font-size: clamp(36px,5.5dvh,54px); font-weight: 560; letter-spacing: .1em; transform: translateX(.1em); }
.minimal-task-control[data-state="running"] { box-shadow: 0 36px 92px rgba(207,102,70,.28),0 8px 24px rgba(92,62,48,.12); }
.minimal-task-control[data-state="running"] > span { color: #b75d43; }
.minimal-task-clock {
  position: absolute; left: 50%; top: calc(50% + var(--task-control-offset) + 14px); z-index: 2;
  color: #304b40; font-size: clamp(25px,3.7dvh,36px); font-weight: 430; font-variant-numeric: tabular-nums;
  letter-spacing: .04em; transform: translateX(-50%);
}
.minimal-task-completion {
  position: absolute; left: 50%; top: calc(50% + var(--task-control-offset) + 62px); z-index: 2;
  display: grid; justify-items: center; gap: 11px; transform: translateX(-50%);
}
.minimal-task-completion label { position: relative; width: min(210px,66vw); }
.minimal-task-completion input {
  box-sizing: border-box; width: 100%; min-height: 50px; padding: 0 50px 0 16px; border: 1px solid rgba(58,87,74,.16);
  border-radius: 17px; outline: 0; background: rgba(255,255,255,.82); color: #294339; font-size: 22px; text-align: center;
}
.minimal-task-completion label span { position: absolute; right: 14px; top: 50%; color: #7f8d86; transform: translateY(-50%); }
.minimal-task-completion > button {
  min-width: 118px; min-height: 42px; padding: 8px 22px; border: 0; border-radius: 21px;
  color: #fff; background: #d66f4e; font-weight: 650;
}
.minimal-task-result {
  position: absolute; left: 50%; top: calc(50% + var(--task-control-offset) + 16px); z-index: 2;
  margin: 0; color: #718078; font-size: 14px; font-variant-numeric: tabular-nums; transform: translateX(-50%);
}
body.minimal-task-active .minimal-task-footer {
  min-height: 48px !important; padding: 4px max(16px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)) !important;
  border-top: 1px solid rgba(48,75,63,.09) !important; color: #6d7d75 !important;
  background: rgba(247,246,241,.94) !important; backdrop-filter: blur(16px) !important;
}
body.orchard-active .growth-orchard-footer {
  min-height: 48px !important; padding: 4px max(16px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)) !important;
  border-top: 1px solid rgba(255,255,255,.1) !important; color: rgba(245,249,252,.9) !important;
  background: rgba(20,66,98,.97) !important; backdrop-filter: blur(16px) !important;
}
body.minimal-task-active .minimal-task-footer button {
  width: 40px !important; min-width: 40px !important; color: #65766e !important;
}
body.minimal-task-active #minimalTaskAccountText { display: none !important; }
body.minimal-task-active .minimal-task-brand,
body.minimal-task-active .minimal-task-brand small { color: #718078 !important; }
body.minimal-task-active .minimal-task-brand { font-size: 12px !important; }
body.minimal-task-active .minimal-task-brand small { font-size: 10px !important; }
body.orchard-active .growth-orchard-footer span,
body.orchard-active .growth-orchard-footer small { color: rgba(245,249,252,.82) !important; }
.minimal-task-list,
.minimal-task-records {
  position: absolute; z-index: 12; top: calc(62px + env(safe-area-inset-top)); left: 50%;
  box-sizing: border-box; width: min(520px,calc(100% - 32px)); max-height: min(68dvh,580px); padding: 10px;
  overflow: auto; border: 1px solid rgba(55,82,70,.1); border-radius: 20px;
  background: rgba(255,255,252,.98); box-shadow: 0 22px 65px rgba(35,53,44,.18);
  backdrop-filter: blur(18px); transform: translateX(-50%);
}
.minimal-task-list { right: auto; width: min(520px,calc(100% - 108px)); }
.minimal-task-records { left: auto; right: 16px; width: min(420px,calc(100% - 32px)); transform: none; }
.minimal-task-new {
  width: 100%; min-height: 41px; margin-top: 5px; padding: 0 11px; border: 0; border-radius: 12px;
  background: transparent; color: #b75f45; text-align: left; font-size: 14px; font-weight: 560;
}
.minimal-task-record-row {
  display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 7px;
  min-height: 44px; padding: 0 11px; border-radius: 12px; color: #52645b;
}
.minimal-task-record-row + .minimal-task-record-row { border-top: 1px solid rgba(58,83,72,.07); }
.minimal-task-record-row time { overflow: hidden; color: #7a8881; font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.minimal-task-record-row strong { min-width: 0; overflow: hidden; color: #385246; font-size: 12.5px; font-weight: 520; font-variant-numeric: tabular-nums; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.minimal-task-record-empty { margin: 0; padding: 18px 10px; color: #89948e; font-size: 14px; text-align: center; }
.standalone-account-menu {
  position: absolute; left: max(12px,env(safe-area-inset-left)); bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 330;
  width: 224px; padding: 8px; display: grid; gap: 3px; border: 1px solid rgba(49,74,62,.1); border-radius: 18px;
  background: rgba(255,255,252,.98); box-shadow: 0 20px 58px rgba(27,46,38,.2); backdrop-filter: blur(18px);
}
.standalone-account-menu > button,.standalone-account-menu > a,.standalone-account-settings > button,.standalone-account-help > button { box-sizing: border-box; width: 100%; min-height: 43px; padding: 0 12px; border: 0; display: grid; grid-template-columns: 23px minmax(0,1fr); align-items: center; gap: 10px; border-radius: 12px; background: transparent; color: #3f564b; text-align: left; text-decoration: none; font-size: 14px; }
.standalone-account-menu > button > span,.standalone-account-menu > a > span,.standalone-account-settings > button > span,.standalone-account-help > button > span { width: 21px; height: 21px; display: grid; place-items: center; color: #65766d; }
.standalone-account-menu svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.standalone-account-menu :is(a,button) > b { font: inherit; font-weight: 520; }
.standalone-account-menu.is-wide { width: min(440px,calc(100% - 24px)); }
.standalone-account-menu.is-topic {
  position: absolute; left: 0; right: 0; width: auto; max-height: none; padding: 0; overflow: auto;
  border-radius: 0; transform: none; box-shadow: 0 14px 36px rgba(27,46,38,.12);
}
.standalone-account-menu-header { min-height: 42px; padding: 0 8px; display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; border-bottom: 1px solid rgba(54,79,67,.08); }
.standalone-account-menu-header button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #62736b; font-size: 22px; }
.standalone-account-menu-header strong { text-align: center; font-size: 14px; font-weight: 580; }
.standalone-account-menu-form { padding: 10px 8px 6px; display: grid; gap: 8px; }
.standalone-account-menu-form input,.standalone-account-menu-form select { box-sizing: border-box; width: 100%; height: 42px; padding: 0 12px; border: 1px solid rgba(58,85,72,.14); border-radius: 11px; outline: 0; background: #f6f8f4; color: #31473e; font-size: 14px; }
.standalone-account-menu-form button { height: 42px; border: 0; border-radius: 11px; background: #5f7e6e; color: #fff; font-weight: 580; }
.standalone-account-menu-links { min-height: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.standalone-account-menu-links button { width: auto; height: 28px; padding: 0; background: transparent; color: #64766d; font-size: 12px; font-weight: 450; }
.standalone-account-menu-links i { width: 1px; height: 11px; background: rgba(64,86,75,.18); }
.standalone-account-menu-legal { min-height: 20px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #6c7b74; font-size: 11px; }
.standalone-account-menu-legal button,.standalone-account-consent button { width: auto; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; text-decoration: none; }
.standalone-account-register-form { padding-top: 14px; }
.standalone-account-register-identity { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 42px; align-items: center; gap: 8px; }
.standalone-account-register-identity > input { min-width: 0; }
.standalone-account-register-avatar { width: 42px; height: 42px; display: grid; place-items: center; }
.standalone-account-register-avatar-picker { position: relative; width: 42px; height: 42px; display: block; }
.standalone-account-register-avatar-toggle { position: relative; box-sizing: border-box; width: 42px; height: 42px !important; padding: 0 !important; border: 1px solid rgba(83,112,94,.22); border-radius: 9px !important; display: grid; place-items: center; background: rgba(255,255,255,.42) !important; }
.standalone-account-register-avatar-toggle:is(:hover,:focus-visible),.standalone-account-register-avatar-toggle[aria-expanded="true"] { border-color: rgba(83,112,94,.5); background: #e4ece1 !important; }
.standalone-account-register-avatar-toggle i,.standalone-account-register-avatar-option { box-sizing: border-box; width: 36px !important; height: 36px !important; min-height: 36px !important; padding: 0 !important; border: 0; border-radius: 50% !important; display: grid; place-items: center; background-color: transparent; background-position: center; background-repeat: no-repeat; background-size: 28px 28px; }
.standalone-account-register-avatar-toggle i.is-image { background-position: center; background-size: cover; }
.standalone-account-register-avatar-menu { box-sizing: border-box; position: absolute; left: 50%; top: 46px; z-index: 4; width: 52px; max-height: 272px; padding: 6px 7px; display: grid; justify-items: center; gap: 3px; overflow-y: auto; border: 1px solid rgba(54,80,67,.1); border-radius: 24px; background: rgba(247,249,245,.98); box-shadow: 0 12px 30px rgba(35,54,45,.16); transform: translateX(-50%); }
.standalone-account-register-avatar-menu[hidden] { display: none !important; }
.standalone-account-register-avatar-option { padding: 0 !important; background-color: transparent !important; }
.standalone-account-register-avatar-option:is(:hover,:focus-visible),.standalone-account-register-avatar-option.is-selected { background-color: #dce9d8 !important; }
.standalone-account-register-avatar-option.is-upload { cursor: pointer; color: #4e6559; font-size: 24px; font-weight: 350; line-height: 1; }
.standalone-account-edit-avatar-field { min-height: 42px; display: grid; place-items: center; }
.standalone-account-register-avatar [data-flat-fruit="🍎"] { background-image: url("assets/avatar-apple-flat.svg"); }
.standalone-account-register-avatar [data-flat-fruit="🍑"] { background-image: url("assets/avatar-peach-flat.svg"); }
.standalone-account-register-avatar [data-flat-fruit="🍐"] { background-image: url("assets/avatar-pear-flat.svg"); }
.standalone-account-register-avatar [data-flat-fruit="🍊"] { background-image: url("assets/avatar-orange-flat.svg"); }
.standalone-account-register-avatar [data-flat-fruit="🍒"] { background-image: url("assets/avatar-cherry-flat.svg"); }
.standalone-account-register-avatar [data-flat-fruit="🍋"] { background-image: url("assets/avatar-lemon-flat.svg"); }
.standalone-account-register-avatar [data-flat-fruit="🥥"] { background-image: url("assets/avatar-coconut-flat.svg"); }
.standalone-account-register-avatar [data-flat-fruit="🥭"] { background-image: url("assets/avatar-mango-flat.svg"); }
.standalone-account-consent { min-height: 30px; display: flex; align-items: center; gap: 8px; color: #6c7b74; font-size: 11px; line-height: 1.35; }
.standalone-account-consent input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: #5f7e6e; }
.standalone-account-menu-message { min-height: 18px; margin: 0; color: #b35648; font-size: 12px; text-align: center; }
.standalone-account-confirm { padding: 14px 10px 8px; }
.standalone-account-confirm p { margin: 0 0 14px; color: #4a5e54; font-size: 14px; text-align: center; }
.standalone-account-confirm > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.standalone-account-confirm button { min-height: 39px; border: 0; border-radius: 11px; background: #eef2ed; color: #56685f; }
.standalone-account-confirm button[data-account-action="signout"] { background: #f8e7e4; color: #b65349; }
.standalone-account-settings button,.standalone-account-help button { grid-template-columns: 23px minmax(0,1fr) auto; }
.standalone-account-settings small { color: #8a948f; font-size: 12px; }
.standalone-account-plan-grid { padding: 8px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.standalone-account-plan-grid article { padding: 11px; border-radius: 13px; background: #f3f6f0; color: #41564c; }
.standalone-account-plan-grid article strong { display: block; font-size: 14px; }
.standalone-account-plan-grid article span { display: block; margin-top: 4px; color: #708078; font-size: 12px; }
.standalone-account-topic { position: relative; min-height: min(52dvh,420px); padding: clamp(28px,5vw,48px); color: #3d5148; }
.standalone-account-topic > button { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 11px; background: transparent; color: #708078; font-size: 25px; }
.standalone-account-topic h3 { margin: 0 42px 22px 0; font-size: clamp(20px,3vw,27px); font-weight: 610; }
.standalone-account-topic p { margin: 0; max-width: 62ch; color: #63736b; font-size: clamp(14px,1.8vw,17px); line-height: 1.85; }
@media (max-width:580px) {
  .standalone-account-topic { min-height: 58dvh; padding: 34px 22px 26px; }
}
.minimal-task-form > #minimalTaskNewLink { min-height: 42px; padding: 0 12px; border: 1px solid rgba(61,89,76,.15); border-radius: 13px; background: #f7f8f4; color: #31473e; font-size: 16px; }
.minimal-task-view,.minimal-task-view button,.minimal-task-view input,.minimal-task-view select {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Helvetica Neue",Arial,sans-serif !important;
}
.minimal-task-form-kind select,
.minimal-task-form-kind input,
.minimal-task-form-plan input,
.minimal-task-form-plan select {
  box-sizing: border-box; min-width: 0; height: 48px; min-height: 48px; padding: 0 11px; border: 1px solid rgba(61,89,76,.15);
  border-radius: 14px; outline: 0; background: #f7f8f4; color: #31473e; font-size: 18px;
}
.minimal-task-form-kind { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(0,.78fr); gap: 8px; }
.minimal-task-form { min-width: 0; padding-top: 0; border-top: 0; }
.minimal-task-form > :is(.minimal-task-form-kind,.minimal-task-form-plan) { box-sizing: border-box; width: 100%; min-width: 0; }
.minimal-task-form-kind label {
  position: relative; min-width: 0; min-height: 48px; box-sizing: border-box;
  display: block;
}
.minimal-task-form-kind select,.minimal-task-form-kind input {
  width: 100%; padding: 0 30px 0 14px; font-size: 17px; font-weight: 560; text-align: center; text-align-last: center;
}
.minimal-task-form-kind input { position: absolute; inset: 0; z-index: 2; padding: 0 14px; background: #f7f8f4; text-align: center; }
.minimal-task-form-plan {
  display: grid; grid-template-columns: auto minmax(62px,1fr) 82px 18px auto minmax(62px,.8fr) 24px;
  align-items: center; gap: 7px; padding: 10px 11px; border-radius: 6px; background: rgba(238,242,235,.74);
  color: #64766d; font-size: 15px; font-weight: 540; white-space: nowrap;
}
.minimal-task-form-plan::before { content: ""; grid-column: 4; grid-row: 1; width: 1px; height: 24px; justify-self: center; background: rgba(73,99,87,.15); }
.minimal-task-form-plan > :nth-child(1) { grid-column: 1; grid-row: 1; }
.minimal-task-form-plan > :nth-child(2) { grid-column: 2; grid-row: 1; }
.minimal-task-form-plan > :nth-child(3) { grid-column: 3; grid-row: 1; }
.minimal-task-form-plan > :nth-child(4) { grid-column: 5; grid-row: 1; }
.minimal-task-form-plan > :nth-child(5) { grid-column: 6; grid-row: 1; }
.minimal-task-form-plan > :nth-child(6) { grid-column: 7; grid-row: 1; }
.minimal-task-form-plan input { text-align: center; font-size: 22px; font-weight: 520; font-variant-numeric: tabular-nums; }
.minimal-task-form-plan select { font-size: 18px; font-weight: 540; text-align: center; text-align-last: center; }
.minimal-task-form-plan input,.minimal-task-form-plan select {
  align-self: center; margin: 0; border-radius: 0; line-height: 1;
}
.minimal-task-form-plan > span { align-self: center; display: flex; align-items: center; height: 48px; line-height: 1; }
.minimal-task-fixed-unit { text-align: center; font-size: 18px; }
body.orchard-active #minimalTaskView .minimal-task-footer #minimalTaskAccount { display: none !important; }
body.orchard-active #minimalTaskView .minimal-task-footer { justify-content: flex-end !important; }
body[data-task-standalone="true"] #minimalTaskAccount {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  visibility: visible !important; opacity: 1 !important;
}
.minimal-task-user-mark.has-avatar {
  width: 28px !important; height: 28px !important; display: grid; place-items: center; overflow: hidden;
  border: 0 !important; border-radius: 50% !important; background-color: #e6ede7; background-position: center; background-size: cover;
  color: #456557; font-size: 15px; font-weight: 560; line-height: 1;
}
.minimal-task-user-mark.has-avatar::after { content: none !important; }
.minimal-task-user-mark:not(.has-avatar) { width: 24px !important; height: 24px !important; border: 0 !important; border-radius: 0 !important; }
.minimal-task-user-mark:not(.has-avatar)::after { content: none !important; }
.minimal-task-user-mark:not(.has-avatar) svg {
  display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.minimal-task-list-mark { width: 23px; height: 23px; display: grid; place-items: center; color: #60786c; }

@media (max-width:580px) and (orientation:portrait) {
  body.minimal-task-active .minimal-task-list { width: calc(100% - 108px); padding: 9px; }
  .minimal-task-form-kind { gap: 7px; }
  .minimal-task-form-plan {
    grid-template-columns: 42px minmax(72px,1fr) 64px; grid-template-rows: repeat(2,44px);
    column-gap: 6px; row-gap: 8px; padding: 9px;
  }
  .minimal-task-form-plan::before { display: none; }
  .minimal-task-form-plan > :nth-child(1) { grid-column: 1; grid-row: 1; text-align: center; }
  .minimal-task-form-plan > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .minimal-task-form-plan > :nth-child(3) { grid-column: 3; grid-row: 1; }
  .minimal-task-form-plan > :nth-child(4) { grid-column: 1; grid-row: 2; text-align: center; }
  .minimal-task-form-plan > :nth-child(5) { grid-column: 2; grid-row: 2; }
  .minimal-task-form-plan > :nth-child(6) { grid-column: 3; grid-row: 2; }
  .minimal-task-form-plan input,.minimal-task-form-plan select { height: 44px; min-height: 44px; }
  .minimal-task-form-plan input { font-size: 20px; }
  .minimal-task-form-plan select,.minimal-task-fixed-unit { font-size: 16px; }
}

@container (max-width:580px) {
  .minimal-task-form-plan {
    grid-template-columns: 42px minmax(72px,1fr) 64px; grid-template-rows: repeat(2,44px);
    column-gap: 6px; row-gap: 8px; padding: 9px;
  }
  .minimal-task-form-plan::before { display: none; }
  .minimal-task-form-plan > :nth-child(1) { grid-column: 1; grid-row: 1; justify-content: center; }
  .minimal-task-form-plan > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .minimal-task-form-plan > :nth-child(3) { grid-column: 3; grid-row: 1; }
  .minimal-task-form-plan > :nth-child(4) { grid-column: 1; grid-row: 2; justify-content: center; }
  .minimal-task-form-plan > :nth-child(5) { grid-column: 2; grid-row: 2; }
  .minimal-task-form-plan > :nth-child(6) { grid-column: 3; grid-row: 2; }
  .minimal-task-form-plan input,.minimal-task-form-plan select { height: 44px; min-height: 44px; }
  .minimal-task-form-plan input { font-size: 20px; }
  .minimal-task-form-plan select,.minimal-task-fixed-unit { font-size: 16px; }
}

body.minimal-task-active #accountPanel.main-account-panel {
  position: fixed !important; z-index: 340 !important; bottom: calc(58px + env(safe-area-inset-bottom)) !important;
}
body.minimal-task-active .minimal-task-footer > button {
  min-height: 38px !important; padding: 0 9px !important; border-radius: 10px !important;
  transition: color .14s ease,background-color .14s ease !important;
}

/* Learning shell -------------------------------------------------------- */
.day-record-option {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}
.day-record-summary {
  min-width: 0;
  display: inline-flex !important;
  align-items: baseline; gap: 7px;
}
.day-record-day,.day-record-resources,.day-record-result { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.day-record-day b,.day-record-resources b,.day-record-result b { font-variant-numeric: tabular-nums; }
.day-record-resources em,.day-record-result em { opacity: .44; font-style: normal; }
.day-record-result {
  width: auto; min-width: 0; margin-left: 0;
  flex: 0 0 auto; justify-content: flex-start;
}
body:not(.orchard-active):not(.minimal-task-active) .day-select-popover {
  width: min(280px,calc(100vw - 24px)) !important;
  min-width: min(280px,calc(100vw - 24px)) !important;
}
@media (max-width:580px) and (orientation:portrait) {
  body:not(.orchard-active):not(.minimal-task-active) .mode-bar {
    box-sizing: border-box !important; width: 100vw !important; min-width: 0 !important; max-width: 100vw !important;
    display: grid !important; grid-template-columns: 42px minmax(0,1fr) 66px 42px !important;
    align-items: center !important; justify-content: center !important; gap: 6px !important; margin-inline: calc(50% - 50vw) !important; padding-inline: 10px !important;
  }
  body:not(.orchard-active):not(.minimal-task-active) .mode-bar > .top-settings,
  body:not(.orchard-active):not(.minimal-task-active) .mode-bar > .garden-home-button { grid-column: 1; width: 42px !important; min-width: 42px !important; }
  body:not(.orchard-active):not(.minimal-task-active) .mode-bar > .list-day-current {
    grid-column: 2; width: 100% !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; justify-content: center !important;
  }
  body:not(.orchard-active):not(.minimal-task-active) .mode-bar > .list-day-current > .nav-list-current { min-width: 0 !important; }
  body:not(.orchard-active):not(.minimal-task-active) .mode-bar > .group-picker {
    grid-column: 3; width: 66px !important; min-width: 66px !important; max-width: 66px !important; grid-template-columns: 66px !important;
  }
  body:not(.orchard-active):not(.minimal-task-active) .mode-bar > .group-picker .card-menu-label { width: 66px !important; min-width: 66px !important; }
  body:not(.orchard-active):not(.minimal-task-active) .mode-bar > .mobile-mode-menu,
  body:not(.orchard-active):not(.minimal-task-active) .mode-bar > .mobile-mode-menu > summary { grid-column: 4; width: 42px !important; min-width: 42px !important; }
  body:not(.orchard-active):not(.minimal-task-active) .mode-bar > .mode-button { display: none !important; }
  body:not(.orchard-active):not(.minimal-task-active) .mobile-mode-popover { width: 132px !important; min-width: 132px !important; right: 0 !important; left: auto !important; }
  body:not(.orchard-active):not(.minimal-task-active) .day-select-popover {
    position: fixed !important; left: auto !important; right: 10px !important; transform: none !important;
    width: min(280px,calc(100vw - 20px)) !important; min-width: min(280px,calc(100vw - 20px)) !important;
  }
  body:not(.orchard-active):not(.minimal-task-active) .day-record-option { gap: 5px !important; }
  body:not(.orchard-active):not(.minimal-task-active) .day-record-summary { gap: 6px !important; }
  body:not(.orchard-active):not(.minimal-task-active) .day-record-result { width: auto !important; }
  html,body { overflow-x: hidden !important; }
  html,body,body:not(.orchard-active):not(.minimal-task-active) .app-shell { width: 100vw !important; max-width: 100vw !important; height: 100dvh !important; min-height: 100dvh !important; max-height: 100dvh !important; }
  body:not(.orchard-active):not(.minimal-task-active) .study-view:not(.keyboard-open) > #accountMenuButton {
    position: fixed !important; inset: auto auto 0 max(10px,env(safe-area-inset-left)) !important; margin: 0 !important; transform: none !important;
  }
  body:not(.orchard-active):not(.minimal-task-active) .study-view #cardView .card-footer-meta,
  body:not(.orchard-active):not(.minimal-task-active) .study-view .practice-footer-meta {
    position: fixed !important; inset: auto 10px 0 54px !important; box-sizing: border-box !important; width: auto !important; min-width: 0 !important;
    height: 32px !important; min-height: 32px !important; margin: 0 !important; transform: none !important;
  }
  body:not(.orchard-active):not(.minimal-task-active) .study-view #cardView .card-footer-meta > .inline-progress { min-width: 0 !important; }
  body:not(.orchard-active):not(.minimal-task-active) .study-view #cardView .card-footer-meta > :is(.card-autoplay-controls,.card-count) { flex: 0 0 auto !important; }
}

/* Growth Orchard mobile portrait -------------------------------------- */
body.orchard-active .growth-orchard-footer { justify-content: flex-end !important; }
body.orchard-active .growth-orchard-footer img { display: none !important; }
body.orchard-active #accountMenuButton {
  bottom: calc(3px + env(safe-area-inset-bottom)) !important; left: max(11px,env(safe-area-inset-left)) !important;
  height: 42px !important; color: rgba(245,249,252,.9) !important; z-index: 101 !important;
}
body.orchard-active #accountMenuButton .main-account-identity-text { color: rgba(245,249,252,.9) !important; }
body.orchard-active .main-account-panel { bottom: calc(55px + env(safe-area-inset-bottom)) !important; }
body.orchard-active #growthView { padding-bottom: calc(52px + env(safe-area-inset-bottom)) !important; }
.growth-calendar-day.is-adjacent-month { opacity: .32; filter: saturate(.45); }
.growth-calendar-day.is-adjacent-month .growth-calendar-date { font-weight: 480; }

@media (max-width:580px) and (orientation:portrait) {
  body.orchard-active .growth-orchard-footer { padding-left: 48% !important; }
  body.orchard-active .growth-orchard-footer span { text-align: right; white-space: nowrap; }

  body.orchard-active .growth-current-activity,
  body.orchard-active .growth-current-activity.is-planting-open { height: 470px !important; min-height: 470px !important; overflow: hidden !important; }
  body.orchard-active .growth-current-activity.is-planting-open .growth-current-tree-label {
    inset: 16px 14px auto !important; width: calc(100% - 28px) !important; max-width: none !important;
    display: grid !important; grid-template-columns: auto minmax(0,1fr) !important; align-items: center !important; gap: 11px 9px !important;
  }
  body.orchard-active .growth-current-activity.is-planting-open .growth-current-tree-label > span:first-child,
  body.orchard-active .growth-current-activity.is-planting-open .growth-current-status-tabs { display: flex !important; }
  body.orchard-active .growth-current-activity.is-planting-open .growth-current-tree-label > span:first-child { grid-column: 1; }
  body.orchard-active .growth-current-activity.is-planting-open .growth-current-status-tabs { grid-column: 2; min-width: 0; }
  body.orchard-active .growth-current-activity.is-planting-open .growth-current-tree-label > i,
  body.orchard-active .growth-current-activity.is-planting-open .growth-current-tree-label > b,
  body.orchard-active .growth-current-activity.is-planting-open .growth-current-tree-switcher { display: none !important; }
  body.orchard-active .growth-current-activity.is-planting-open .growth-current-tree-label > .growth-plant-card {
    grid-column: 1 / -1 !important; position: relative !important; inset: auto !important; justify-self: start !important;
    width: max-content !important; max-width: 100% !important; height: 34px !important; min-height: 34px !important; margin: 12px 0 0 !important;
  }
  body.orchard-active .growth-current-activity.is-planting-open .growth-tree-stage { display: none !important; }
  body.orchard-active .growth-current-activity.is-planting-open .growth-hero-copy {
    position: absolute !important; top: 68px !important; left: 14px !important; right: 14px !important;
    width: auto !important; height: 36px !important; margin: 0 !important; display: grid !important; justify-items: start !important;
  }
  body.orchard-active .growth-current-activity.is-planting-open .growth-hero-copy > :not(.growth-plant-card) { display: none !important; }
  body.orchard-active .growth-current-activity.is-planting-open .growth-hero-copy > .growth-plant-card {
    position: relative !important; inset: auto !important; width: max-content !important; max-width: 100% !important;
    height: 34px !important; min-height: 34px !important; margin: 0 !important;
  }
  body.orchard-active .growth-current-activity.is-planting-open > :is(.growth-plant-species,.growth-plant-categories,.growth-plant-targets,.growth-plant-intent) {
    position: absolute !important; top: 118px !important; left: 14px !important; right: 14px !important; width: auto !important; max-width: none !important; margin: 0 !important;
  }
  body.orchard-active .growth-current-activity.is-planting-open .growth-plant-species-grid { justify-content: flex-start !important; }
  body.orchard-active .growth-current-activity.is-planting-open .growth-plant-intent { align-items: start !important; }

  body.orchard-active .growth-forest-section { position: relative; margin-top: 46px !important; overflow: visible !important; }
  body.orchard-active .growth-forest-section::before {
    content: "" !important; position: absolute !important; left: 0 !important; right: 0 !important; top: -35px !important; height: 27px !important;
    background:
      linear-gradient(rgba(130,117,86,.21),rgba(130,117,86,.21)) 0 8px/100% 2px no-repeat,
      linear-gradient(rgba(130,117,86,.16),rgba(130,117,86,.16)) 0 19px/100% 2px no-repeat,
      repeating-linear-gradient(90deg,transparent 0 32px,rgba(130,117,86,.25) 32px 35px,transparent 35px 64px) 0 0/100% 27px no-repeat !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; opacity: 1 !important;
  }
  body.orchard-active .growth-forest { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px 8px !important; }
  body.orchard-active .growth-forest-card { min-width: 0 !important; }
  body.orchard-active .growth-forest.is-compact-display { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 8px 5px !important; }
  body.orchard-active .growth-forest.is-compact-display .growth-forest-card,
  body.orchard-active .growth-forest.is-compact-display .growth-forest-card.is-current,
  body.orchard-active .growth-forest.is-compact-display .growth-forest-card.is-selected,
  body.orchard-active .growth-forest.is-compact-display .growth-forest-card.is-flipped { height: 88px !important; min-height: 88px !important; }
  body.orchard-active .growth-forest.is-compact-display .growth-forest-visual { height: 88px !important; grid-template-rows: 58px 28px !important; }
  body.orchard-active .growth-forest.is-compact-display .growth-forest-compact-details { width: calc(100% - 4px) !important; height: 27px !important; grid-template-rows: 12px 13px !important; row-gap: 1px !important; }
  body.orchard-active .growth-forest.is-compact-display .growth-forest-compact-name { font-size: 8px !important; }
  body.orchard-active .growth-forest.is-compact-display .growth-forest-compact-results { width: 64px !important; gap: 1px !important; }
  body.orchard-active .growth-forest-species-label {
    min-width: 0 !important; height: 18px !important; min-height: 18px !important; padding: 1px 7px !important;
    border-radius: 10px !important; font-size: 8px !important; line-height: 16px !important; transform: translateY(-2px) !important;
  }
  body.orchard-active .growth-calendar-card .growth-stats-row { width: 100% !important; }
  body.orchard-active .growth-effort-show-all { margin-left: auto !important; }
}

@media (hover:hover) and (pointer:fine) {
  .standalone-account-menu :is(a,button):hover { background: #e8eee8; }
  body.minimal-task-active .minimal-task-footer > button:hover { color: #315444 !important; background: #e8eee8 !important; }
  body.minimal-task-active .minimal-task-current:hover { background: #e7eee7 !important; }
  body.minimal-task-active .minimal-task-home:hover { background: rgba(83,116,98,.09) !important; }
  body.minimal-task-active .minimal-task-records-toggle:hover,
  body.minimal-task-active .minimal-task-records-toggle[aria-expanded="true"] { color: #315444 !important; background: #e8eee8 !important; }
  .minimal-task-new:hover,.minimal-task-record-row:hover { background: #e8eee8; }
  .minimal-task-control:hover { filter: brightness(1.025); box-shadow: 0 38px 94px rgba(47,71,57,.23),0 8px 22px rgba(47,71,57,.12); }
}
@media (prefers-reduced-motion:reduce) {
  .minimal-task-control { transition: none; }
}

@media (max-height:650px) {
  body.minimal-task-active .minimal-task-stage {
    --task-control-size: clamp(210px,min(66vw,48dvh),280px);
    --task-control-offset: clamp(105px,min(33vw,24dvh),140px);
  }
  .minimal-task-control > span { font-size: clamp(31px,7dvh,42px); }
}

/* Orchard planting hover: keep every anchor fixed. The invitation is part of
   the scenery rather than a card, so hover changes only its ink colour. */
html body.orchard-active .growth-plant-card:hover,
html body.orchard-active .growth-plant-card:focus-visible {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
html body.orchard-active .growth-plant-card:hover::before,
html body.orchard-active .growth-plant-card:hover::after,
html body.orchard-active .growth-plant-card:focus-visible::before,
html body.orchard-active .growth-plant-card:focus-visible::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.orchard-active .growth-plant-card:hover :is(.growth-plant-card-icon,.growth-plant-card-arrow),
html body.orchard-active .growth-plant-card:focus-visible :is(.growth-plant-card-icon,.growth-plant-card-arrow) {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
html body.orchard-active .growth-plant-card:hover .growth-plant-card-copy strong,
html body.orchard-active .growth-plant-card:focus-visible .growth-plant-card-copy strong,
html body.orchard-active .growth-plant-card:hover .growth-plant-card-arrow,
html body.orchard-active .growth-plant-card:focus-visible .growth-plant-card-arrow {
  color: #315f40 !important;
}
html body.orchard-active .growth-current-activity > .growth-plant-species
  .growth-plant-species-grid button:hover > span,
html body.orchard-active .growth-current-activity > .growth-plant-species
  .growth-plant-species-grid button:focus-visible > span {
  transform: translateY(-3px) !important;
  filter: saturate(1.07) brightness(1.03) !important;
}
html body.orchard-active .growth-current-activity.is-empty > .growth-plant-species
  .growth-plant-species-grid button:hover > span,
html body.orchard-active .growth-current-activity.is-empty > .growth-plant-species
  .growth-plant-species-grid button:focus-visible > span,
html body.orchard-active .growth-view.has-current-tree .growth-current-activity
  > .growth-plant-species .growth-plant-species-grid button:hover > span,
html body.orchard-active .growth-view.has-current-tree .growth-current-activity
  > .growth-plant-species .growth-plant-species-grid button:focus-visible > span {
  transform: translate(-50%,-50%) !important;
}
html body.orchard-active .growth-current-activity > .growth-plant-species
  .growth-plant-species-grid button[data-species="apple"]:hover > span,
html body.orchard-active .growth-current-activity > .growth-plant-species
  .growth-plant-species-grid button[data-species="apple"]:focus-visible > span {
  transform: translate(-50%,calc(-50% - 2px)) !important;
  filter: none !important;
}
