:root {
  --paper: #fbf8ef;
  --paper-deep: #f2eee2;
  --ink: #33443b;
  --muted: #74837b;
  --line: #d8d9c8;
  --mint: #dceee5;
  --mint-line: #a8c6b6;
  --butter: #f7e7ad;
  --butter-line: #d4b66a;
  --coral: #f5d1c4;
  --coral-line: #d39e91;
  --sky: #d9edf0;
  --sky-line: #9bc5cb;
  --lavender: #e8e1f1;
  --lavender-line: #b9abcf;
  --green: #5b9472;
  --green-deep: #47795d;
  --shadow: rgba(73, 101, 84, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #dfeee9;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: #dfeee9;
  font-family: "Nunito", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #6ca493;
  outline-offset: 3px;
}

button:disabled,
button[disabled] {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.font-rounded {
  font-family: "Nunito", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.min-h-0 {
  min-height: 0;
}

.shrink-0 {
  flex-shrink: 0;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-stage {
  display: grid;
  min-height: 100svh;
  place-items: center;
}

.app-shell {
  position: relative;
  display: flex;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  max-width: 560px;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
}

.app-shell::before,
.app-shell::after {
  position: absolute;
  z-index: 0;
  display: block;
  height: 5px;
  border-radius: 999px;
  content: "";
  opacity: 0.58;
}

.app-shell::before {
  top: 15px;
  left: 12%;
  width: 82px;
  background: #d9b09f;
  transform: rotate(-4deg);
}

.app-shell::after {
  top: 28px;
  right: 14%;
  width: 44px;
  background: #9dc9c0;
  transform: rotate(5deg);
}

.page-header {
  position: relative;
  z-index: 2;
  min-height: 82px;
  padding: 20px 18px 8px;
}

.title-lockup {
  min-width: 0;
  padding-top: 2px;
}

.brand-eyebrow,
.eyebrow-label,
.setting-help,
.group-description,
.custom-subtitle,
.reset-help,
.form-hint {
  margin: 0;
}

.brand-eyebrow,
.eyebrow-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.page-title {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid #b5cbbd;
  border-radius: 18px 21px 17px 22px;
  background: var(--mint);
  box-shadow: 3px 4px 0 rgba(89, 135, 108, 0.12);
}

.back-glyph {
  color: var(--green-deep);
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.header-doodle {
  position: relative;
  width: 48px;
  height: 48px;
  color: #77a98e;
}

.doodle-spark {
  position: absolute;
  top: 4px;
  left: 4px;
  color: #cfaa5c;
  font-size: 20px;
  transform: rotate(-10deg);
}

.doodle-loop {
  position: absolute;
  right: 3px;
  bottom: 3px;
  font-size: 37px;
  line-height: 0.6;
  transform: rotate(-23deg);
}

.app-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 17px 116px;
  scrollbar-color: #bbd5c9 transparent;
  scrollbar-width: thin;
}

.app-content::-webkit-scrollbar {
  width: 6px;
}

.app-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #bbd5c9;
}

.page-intro {
  padding: 8px 3px 17px;
}

.intro-title,
.section-title,
.setting-label,
.group-title,
.custom-title,
.reset-title {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.intro-title {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.08;
}

.save-state,
.group-count,
.section-sticker {
  flex-shrink: 0;
}

.save-state,
.group-count {
  padding: 7px 10px;
  border: 1.5px solid #c5d8ca;
  border-radius: 13px 11px 14px 12px;
  color: var(--green-deep);
  background: #eef7ee;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  transform: rotate(1deg);
}

.save-state[data-state="offline"] {
  border-color: var(--coral-line);
  color: #a66b5d;
  background: #fff0e9;
}

.settings-panel {
  padding: 16px 15px 7px;
  border: 2px solid var(--line);
  border-radius: 29px 25px 31px 27px;
  background: #fffdf7;
  box-shadow: 0 5px 0 var(--shadow);
}

.settings-panel::after,
.custom-trigger::after,
.custom-form::after,
.reset-section::after {
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(75, 96, 82, 0.14);
  border-radius: 23px 19px 25px 20px;
  content: "";
  pointer-events: none;
}

.settings-panel,
.custom-trigger,
.custom-form,
.reset-section {
  position: relative;
}

.section-heading {
  min-height: 38px;
}

.section-title {
  margin-top: 3px;
  font-size: 19px;
  line-height: 1.1;
}

.section-sticker {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--butter-line);
  border-radius: 13px 10px 14px 12px;
  color: #af8548;
  background: var(--butter);
  font-size: 21px;
  transform: rotate(5deg);
}

.setting-row {
  min-height: 71px;
  padding: 12px 0;
  border-bottom: 1.5px dashed #d9ded1;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row-stack {
  display: block;
  padding-top: 14px;
  padding-bottom: 14px;
}

.setting-copy-row {
  min-width: 0;
}

.setting-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  place-items: center;
  border: 1.5px solid;
  border-radius: 14px 12px 15px 13px;
  font-size: 19px;
  line-height: 1;
  transform: rotate(-3deg);
}

.icon-yellow {
  border-color: var(--butter-line);
  color: #af8748;
  background: var(--butter);
}

.icon-coral {
  border-color: var(--coral-line);
  color: #ae7164;
  background: var(--coral);
}

.icon-sky {
  border-color: var(--sky-line);
  color: #5c98a0;
  background: var(--sky);
}

.icon-lavender {
  border-color: var(--lavender-line);
  color: #8879a4;
  background: var(--lavender);
}

.icon-mint {
  border-color: var(--mint-line);
  color: #589071;
  background: var(--mint);
}

.setting-copy {
  min-width: 0;
}

.setting-label {
  font-size: 14px;
  line-height: 1.15;
}

.setting-help {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.range-control {
  display: grid;
  width: 156px;
  min-width: 132px;
  flex-shrink: 0;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}

.range-input {
  width: 100%;
  height: 34px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.range-input::-webkit-slider-runnable-track {
  height: 9px;
  border: 1.5px solid #bed1c1;
  border-radius: 999px;
  background: #e3eee2;
}

.range-input::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  margin-top: -9px;
  border: 2px solid #6fa481;
  border-radius: 50% 48% 53% 46%;
  background: #f9fff3;
  box-shadow: 1px 2px 0 rgba(68, 95, 75, 0.14);
  -webkit-appearance: none;
}

.range-input::-moz-range-track {
  height: 9px;
  border: 1.5px solid #bed1c1;
  border-radius: 999px;
  background: #e3eee2;
}

.range-input::-moz-range-progress {
  height: 9px;
  border-radius: 999px;
  background: #afd1b5;
}

.range-input::-moz-range-thumb {
  width: 21px;
  height: 21px;
  border: 2px solid #6fa481;
  border-radius: 50% 48% 53% 46%;
  background: #f9fff3;
  box-shadow: 1px 2px 0 rgba(68, 95, 75, 0.14);
}

.range-value {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1.5px solid #c4d6c6;
  border-radius: 13px 11px 14px 12px;
  color: var(--green-deep);
  background: #eef7ee;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.mode-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 10px;
  padding: 4px;
  border: 1.5px solid #d0d8ca;
  border-radius: 17px 15px 18px 16px;
  background: #f4f8f0;
}

.mode-option {
  min-height: 42px;
  border-radius: 13px 11px 14px 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.mode-option.is-active {
  color: var(--green-deep);
  background: var(--mint);
  box-shadow: 2px 2px 0 rgba(88, 139, 105, 0.13);
}

.toggle-control {
  position: relative;
  display: grid;
  min-width: 58px;
  min-height: 44px;
  flex-shrink: 0;
  place-items: center;
}

.toggle-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-track {
  position: relative;
  display: block;
  width: 54px;
  height: 32px;
  border: 2px solid #c7d1c8;
  border-radius: 999px 985px 999px 990px;
  background: #e6e9df;
  transition: background 160ms ease, border-color 160ms ease;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  display: block;
  width: 22px;
  height: 22px;
  border: 1.5px solid #bec7bc;
  border-radius: 50% 48% 53% 46%;
  background: #fffdf8;
  box-shadow: 1px 2px 0 rgba(68, 95, 75, 0.12);
  transition: transform 160ms ease, border-color 160ms ease;
}

.toggle-control input:checked + .toggle-track {
  border-color: #8db89e;
  background: #a9d0b5;
}

.toggle-control input:checked + .toggle-track .toggle-thumb {
  border-color: #73a887;
  transform: translateX(22px) rotate(5deg);
}

.toggle-control input:focus-visible + .toggle-track {
  outline: 3px solid #6ca493;
  outline-offset: 3px;
}

.groups-section {
  padding-top: 26px;
}

.groups-section .section-heading {
  padding: 0 3px 13px;
}

.group-count {
  border-color: #ddc98f;
  color: #9c7840;
  background: #fff5ca;
  transform: rotate(-2deg);
}

.group-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.group-item {
  position: relative;
  display: grid;
  min-height: 98px;
  grid-template-columns: 28px 49px minmax(0, 1fr) 67px;
  gap: 9px;
  align-items: center;
  padding: 12px 10px 12px 9px;
  border: 2px solid var(--line);
  border-radius: 24px 21px 26px 22px;
  background: #fffdf7;
  box-shadow: 0 4px 0 rgba(73, 101, 84, 0.08);
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.group-item:nth-child(2n) {
  transform: rotate(0.35deg);
}

.group-item:nth-child(3n) {
  transform: rotate(-0.3deg);
}

.group-item[data-accent="yellow"] {
  border-color: var(--butter-line);
  background: #fff9df;
}

.group-item[data-accent="mint"] {
  border-color: var(--mint-line);
  background: #f2faf4;
}

.group-item[data-accent="sky"] {
  border-color: var(--sky-line);
  background: #f0fafb;
}

.group-item[data-accent="coral"] {
  border-color: var(--coral-line);
  background: #fff6f1;
}

.group-item[data-accent="butter"] {
  border-color: #dbc788;
  background: #fff9e7;
}

.group-item[data-accent="lavender"] {
  border-color: var(--lavender-line);
  background: #faf7ff;
}

.group-item[data-accent="wow"] {
  border-color: #dbb852;
  background: #fff3b9;
}

.group-item[data-enabled="false"] {
  opacity: 0.62;
  filter: saturate(0.62);
}

.group-item.is-dragging {
  opacity: 0.4;
  border-style: dashed;
  transform: rotate(0deg) scale(0.985);
}

.group-item.is-drop-target {
  border-color: var(--green);
  box-shadow: 0 6px 0 rgba(91, 148, 114, 0.2);
}

.group-item.is-drop-target::before,
.group-item.is-drop-target::after {
  position: absolute;
  left: 19px;
  right: 19px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.group-item.is-drop-target::before {
  top: -7px;
}

.group-item.is-drop-target::after {
  display: none;
  bottom: -7px;
}

.group-item.is-drop-target.drop-after::before {
  display: none;
}

.group-item.is-drop-target.drop-after::after {
  display: block;
}

.drag-handle {
  display: flex;
  width: 28px;
  min-height: 59px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 13px 11px 14px 12px;
  color: #83a58d;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-glyph {
  font-size: 21px;
  line-height: 0.78;
}

.drag-number {
  margin-top: 5px;
  color: #91a498;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
}

.group-icon {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 17px 14px 18px 15px;
  color: #ae8749;
  background: var(--butter);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transform: rotate(-3deg);
}

.group-item[data-accent="mint"] .group-icon {
  color: #5b9472;
  background: var(--mint);
}

.group-item[data-accent="sky"] .group-icon {
  color: #5c98a0;
  background: var(--sky);
}

.group-item[data-accent="coral"] .group-icon {
  color: #ae7164;
  background: var(--coral);
}

.group-item[data-accent="butter"] .group-icon,
.group-item[data-accent="wow"] .group-icon {
  color: #ad8445;
  background: var(--butter);
}

.group-item[data-accent="lavender"] .group-icon {
  color: #8879a4;
  background: var(--lavender);
}

.group-copy {
  min-width: 0;
}

.group-title-line {
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
}

.group-title {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.18;
}

.group-tag {
  flex-shrink: 0;
  padding: 3px 6px;
  border: 1px solid rgba(108, 148, 117, 0.35);
  border-radius: 8px 7px 9px 7px;
  color: #6e9175;
  background: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.group-description {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.group-tools {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.group-switch {
  min-height: 37px;
}

.group-switch .toggle-track {
  width: 50px;
  height: 29px;
}

.group-switch .toggle-thumb {
  width: 19px;
  height: 19px;
}

.group-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(19px) rotate(5deg);
}

.move-actions {
  justify-content: center;
}

.move-button {
  display: grid;
  width: 30px;
  height: 27px;
  place-items: center;
  border: 1.5px solid #c8d9ca;
  border-radius: 9px 8px 10px 8px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.move-button:hover:not(:disabled) {
  background: #e5f2e7;
}

.move-button:disabled {
  border-color: #dfe5da;
  color: #b8c2b8;
  background: rgba(255, 255, 255, 0.32);
}

.empty-groups {
  padding: 21px 16px;
  border: 2px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.6);
  font-size: 12px;
  text-align: center;
}

.custom-section {
  padding-top: 19px;
}

.custom-trigger {
  width: 100%;
  min-height: 70px;
  padding: 12px 14px;
  border: 2px dashed var(--mint-line);
  border-radius: 25px 22px 27px 23px;
  color: var(--green-deep);
  background: var(--mint);
  box-shadow: 0 4px 0 rgba(73, 101, 84, 0.08);
  text-align: left;
}

.custom-trigger.is-open {
  border-style: solid;
  border-color: #86b399;
}

.custom-trigger-copy {
  min-width: 0;
}

.custom-plus {
  display: grid;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  place-items: center;
  border: 1.5px solid #8fb89b;
  border-radius: 14px 12px 15px 13px;
  color: #5b9170;
  background: #f4fff2;
  font-size: 24px;
  line-height: 1;
}

.custom-title,
.custom-subtitle {
  display: block;
}

.custom-title {
  font-size: 14px;
  line-height: 1.15;
}

.custom-subtitle {
  margin-top: 4px;
  color: #6f9077;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.custom-chevron {
  padding: 3px 5px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease;
}

.custom-trigger.is-open .custom-chevron {
  transform: rotate(180deg);
}

.custom-form {
  margin-top: 10px;
  padding: 16px 14px 14px;
  border: 2px solid var(--mint-line);
  border-radius: 25px 22px 27px 23px;
  background: #f5fbf3;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.custom-form-row {
  align-items: stretch;
}

.custom-input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 13px;
  border: 1.5px solid #c2d8c6;
  border-radius: 15px 13px 16px 14px;
  outline: 0;
  color: var(--ink);
  background: #fffdf8;
  font-size: 13px;
  font-weight: 800;
}

.custom-input::placeholder {
  color: #a1b0a5;
}

.custom-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(91, 148, 114, 0.13);
}

.primary-button,
.outline-button,
.quiet-button,
.confirm-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px 12px 15px 13px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.primary-button {
  padding: 0 14px;
  border: 1.5px solid #8fb89b;
  color: #fffdf7;
  background: var(--green);
  box-shadow: 0 3px 0 rgba(63, 111, 81, 0.15);
}

.primary-button:hover {
  background: var(--green-deep);
}

.form-hint {
  min-height: 16px;
  margin-top: 7px;
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 800;
}

.form-hint[data-tone="warning"] {
  color: #b06e5f;
}

.reset-section {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 12px;
  border: 2px solid var(--coral-line);
  border-radius: 25px 22px 27px 23px;
  background: #fff3ed;
  box-shadow: 0 4px 0 rgba(112, 80, 69, 0.07);
}

.reset-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.reset-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  place-items: center;
  border: 1.5px solid var(--coral-line);
  border-radius: 14px 12px 15px 13px;
  color: #ae7164;
  background: var(--coral);
  font-size: 22px;
}

.reset-title {
  font-size: 14px;
  line-height: 1.15;
}

.reset-help {
  margin-top: 4px;
  color: #9c7c73;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.outline-button {
  flex-shrink: 0;
  padding: 0 11px;
  border: 1.5px solid #cf978b;
  color: #a6665a;
  background: rgba(255, 255, 255, 0.48);
}

.outline-button:hover {
  background: #ffe7dc;
}

.reset-confirm {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 8px;
  left: 10px;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px 7px 11px;
  border: 1.5px solid #d4a194;
  border-radius: 15px 13px 16px 14px;
  background: #fffdf8;
  box-shadow: 0 4px 10px rgba(110, 76, 64, 0.09);
}

.confirm-copy {
  margin: 0;
  color: #865d54;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.quiet-button,
.confirm-button {
  min-height: 37px;
  padding: 0 10px;
}

.quiet-button {
  border: 1.5px solid #d6ddd2;
  color: var(--muted);
  background: #f5f7f0;
}

.confirm-button {
  border: 1.5px solid #ce9385;
  color: #fffdf7;
  background: #c47c6b;
}

.page-notice {
  margin: 14px 2px 0;
  padding: 12px 14px;
  border: 1.5px solid #a9c7b3;
  border-radius: 17px 15px 18px 16px;
  color: var(--green-deep);
  background: #edf8ed;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.page-notice[data-tone="warning"] {
  border-color: #d8a092;
  color: #a36357;
  background: #fff0e9;
}

.bottom-nav {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 82px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 8px 7px calc(8px + env(safe-area-inset-bottom));
  border-top: 2px solid #dce6da;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 -7px 18px rgba(92, 119, 98, 0.06);
}

.bottom-nav-item {
  display: flex;
  min-width: 0;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 17px 15px 18px 16px;
  color: #809187;
  background: transparent;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.bottom-nav-item.is-active {
  color: var(--green-deep);
  background: #e6f2e6;
}

.bottom-nav-item:disabled {
  opacity: 0.42;
}

.bottom-nav-icon {
  height: 24px;
  color: currentColor;
  font-size: 21px;
  line-height: 1;
}

.bottom-nav-item:nth-child(2) .bottom-nav-icon {
  color: #b68e49;
}

.bottom-nav-item:nth-child(3) .bottom-nav-icon {
  font-size: 20px;
}

@media (min-width: 640px) {
  .app-stage {
    padding: 22px;
  }

  .app-shell {
    width: min(430px, 94vw, calc((100svh - 44px) * 9 / 16));
    height: auto;
    min-height: 0;
    aspect-ratio: 9 / 16;
    border: 2px solid #d5e3db;
    border-radius: 38px;
    box-shadow: 0 18px 45px rgba(71, 108, 91, 0.15);
  }

  .app-content {
    padding-right: 19px;
    padding-left: 19px;
  }
}

@media (max-width: 370px) {
  .app-content {
    padding-right: 13px;
    padding-left: 13px;
  }

  .page-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .settings-panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .setting-copy-row {
    gap: 8px;
  }

  .setting-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .setting-label {
    font-size: 13px;
  }

  .setting-help {
    font-size: 9px;
  }

  .range-control {
    width: 128px;
    min-width: 118px;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 6px;
  }

  .range-value {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .group-item {
    grid-template-columns: 24px 44px minmax(0, 1fr) 62px;
    gap: 7px;
    padding-right: 7px;
    padding-left: 6px;
  }

  .group-icon {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }

  .drag-handle {
    width: 24px;
  }

  .group-title {
    font-size: 13px;
  }

  .group-description {
    font-size: 9px;
  }

  .group-switch {
    min-width: 54px;
  }

  .group-switch .toggle-track {
    width: 46px;
  }

  .group-switch input:checked + .toggle-track .toggle-thumb {
    transform: translateX(15px) rotate(5deg);
  }

  .move-button {
    width: 28px;
  }

  .reset-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .outline-button {
    align-self: flex-end;
  }

  .reset-confirm {
    right: 8px;
    bottom: 8px;
    left: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .confirm-actions {
    align-self: flex-end;
  }

  .bottom-nav-item {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
