.garden-main { width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 38px 0 52px; }
.garden-main .garden-heading { align-items: center; margin-bottom: 24px; }
.garden-main .garden-heading h1 { margin: 0 0 6px; font-size: 44px; }
.garden-intro { margin: 0 0 16px; color: #758371; font-size: 13px; }
.garden-role { padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); }
.garden-heading-tools { display: flex; align-items: center; gap: 10px; }
.garden-heading-tools select { width: 154px; background: #fff; font-size: 13px; }
.garden-heading-tools button { min-height: 45px; padding: 10px 17px; white-space: nowrap; }
.garden-main > .result { display: none; min-height: 0; margin: 0 0 18px; padding: 12px 15px; border-radius: 8px; background: #f0f5ed; }
.garden-main > .result.visible { display: block; }
.garden-main > .result[data-tone="error"] { background: #fbefeb; }
.garden-layout { display: grid; grid-template-columns: minmax(0, 1fr) 266px; gap: 24px; align-items: start; }
.garden-world { min-width: 0; overflow: hidden; border: 1px solid #d7e1d3; border-radius: 18px; background: #eaf0e5; }
.garden-world-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 23px 14px; }
.garden-world-header > div:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.garden-world-header strong { font-size: 14px; font-weight: 500; }
.garden-world-dot { width: 7px; height: 7px; border-radius: 50%; background: #70965a; }
#garden-sync { margin-left: 7px; color: #7d8d77; font-size: 11px; font-variant-numeric: tabular-nums; }
.garden-mode { display: flex; flex-shrink: 0; padding: 3px; border: 1px solid #d3ddcd; border-radius: 8px; background: #e0e8da; }
.garden-mode button { min-height: 32px; padding: 5px 13px; border: 0; border-radius: 5px; background: transparent; color: #73826b; font-size: 11px; }
.garden-mode button[aria-pressed="true"] { color: #37532d; background: #fcfef8; box-shadow: 0 2px 5px #3b54320c; }
.garden-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 23px; }
.garden-filters button { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 5px 11px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #7b8972; font-size: 11px; }
.garden-filters button span { min-width: 12px; font-variant-numeric: tabular-nums; }
.garden-filters button:hover { background: #dfe8d8; }
.garden-filters button[aria-pressed="true"] { border-color: #b7c9ac; color: #395b2e; background: #f5f9ef; }
.garden-stage { position: relative; height: 490px; isolation: isolate; }
.garden-canvas { position: absolute; inset: 0; }
.garden-canvas canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.garden-canvas canvas:active { cursor: grabbing; }
.garden-stage-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 35px; color: #728868; font-size: 13px; text-align: center; background: #eaf0e5; }
.garden-stage-message strong { color: #49633c; font-size: 18px; font-weight: 500; }
.garden-empty-flower { color: #91ad7b; font-size: 70px; }
.garden-camera { position: absolute; right: 20px; bottom: 22px; display: flex; gap: 7px; }
.garden-camera button { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #d1ddc8; border-radius: 8px; background: #fbfdf5ed; color: #526e40; font-size: 23px; line-height: 1; }
.garden-gesture { position: absolute; bottom: 23px; left: 23px; margin: 0; color: #73846b; font-size: 10px; pointer-events: none; }
.garden-world-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 23px; border-top: 1px solid #d9e2d1; color: #8a9581; font-size: 10px; }
.garden-legend { display: flex; flex-wrap: wrap; gap: 16px; color: #6f7e64; }
.garden-legend span { display: flex; align-items: center; gap: 5px; }
.plot-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #93939e; }
.plot-dot.ready { background: #cf9941; }
.plot-dot.growing { background: #608956; }
.plot-dot.thirsty { background: #6099b6; }
.plot-dot.empty { background: #ab947d; }
.garden-sidebar { display: grid; gap: 20px; }
.garden-summary { padding: 23px 22px 0; border: 1px solid #e0e5d9; border-radius: 14px; background: #fbfcf7; }
.garden-summary h2 { margin: 0; font-size: 16px; font-weight: 500; }
.garden-summary-lead { min-height: 42px; margin: 11px 0 14px; color: #8a927d; font-size: 12px; line-height: 1.8; }
.garden-summary dl { margin: 0; }
.garden-summary dl > div { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #e9edde; }
.garden-summary dl > div:last-child { border: 0; }
.garden-summary dt { display: flex; align-items: center; gap: 9px; color: #758269; font-size: 12px; }
.garden-summary dd { margin: 0; color: #3c5732; font-size: 23px; font-weight: 500; font-variant-numeric: tabular-nums; }
.garden-summary dd small { color: #9aa18d; font-size: 10px; font-weight: 400; }
.garden-summary-foot { margin: 13px -22px 0; padding: 13px 22px; border-top: 1px solid #e7ebdd; color: #929c86; font-size: 10px; }
.garden-detail { min-height: 187px; padding: 21px 22px; border: 1px solid #e0e6da; border-radius: 14px; background: #f1f5eb; }
.garden-detail-flower { margin-bottom: 10px; color: #95ad79; font-size: 30px; line-height: 1; }
.garden-detail h2 { margin: 0 0 9px; font-size: 15px; font-weight: 500; }
.garden-detail > p { margin: 0; color: #89947d; font-size: 11px; line-height: 1.85; }
.garden-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 17px; color: #849075; font-size: 10px; }
.plot-state { padding: 4px 8px; border-radius: 5px; color: #6f7381; background: #e8e8ec; font-size: 10px; }
.plot-state.ready, .plot-state-icon.ready { color: #9b762b; background: #f2e7cb; }
.plot-state.growing, .plot-state-icon.growing { color: #60834d; background: #e1ebd6; }
.plot-state.thirsty, .plot-state-icon.thirsty { color: #5186a1; background: #dcebf0; }
.plot-state.empty, .plot-state-icon.empty { color: #98846c; background: #eae4d7; }
.garden-detail .garden-detail-time { color: #5a7845; font-size: 17px; font-variant-numeric: tabular-nums; }
.garden-detail dl { margin: 16px 0 0; }
.garden-detail dl > div { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 10px; }
.garden-detail dt { color: #8d987f; }
.garden-detail dd { margin: 0; color: #697a58; }
.garden-outlook { margin-top: 31px; }
.garden-outlook > header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 17px; }
.garden-outlook h2 { margin: 0; font-size: 17px; font-weight: 500; }
.garden-outlook header p { margin: 0; color: #919b87; font-size: 11px; }
#garden-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.garden-bloom { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 16px 18px; border: 1px solid #dfe6d7; border-radius: 10px; background: #fdfef9; }
.garden-bloom > div { min-width: 0; flex: 1; }
.garden-bloom strong { display: block; overflow: hidden; margin-bottom: 5px; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.garden-bloom span { color: #94a087; font-size: 10px; }
.garden-bloom b { color: #67834f; font-size: 13px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.garden-plot-list { height: 490px; overflow-y: auto; padding: 20px 23px; }
.garden-plot-row { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 69px; padding: 11px 14px; margin-bottom: 8px; border: 1px solid #dce4d3; border-radius: 9px; background: #f8fbf3; text-align: left; }
.garden-plot-row:hover, .garden-plot-row[aria-pressed="true"] { border-color: #88a970; background: #fafff3; }
.plot-state-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px; color: #8e939d; background: #e8e8ec; font-size: 24px; }
.garden-plot-row > span:nth-child(2) { flex: 1; min-width: 0; }
.garden-plot-row strong { display: block; overflow: hidden; margin-bottom: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.garden-plot-row small { color: #8c977e; font-size: 10px; }
.garden-plot-row > span:last-child { color: #7f906e; font-size: 11px; font-variant-numeric: tabular-nums; }
.garden-list-empty { padding: 65px 20px; color: #829176; font-size: 13px; text-align: center; }
.garden-stage[hidden], .garden-plot-list[hidden], .garden-stage-message[hidden] { display: none; }
@media (min-width: 1500px) { .garden-stage, .garden-plot-list { height: 530px; } }
@media (max-width: 1050px) {
  .garden-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; }
  .garden-world-header { align-items: start; }
  #garden-sync { margin-left: 15px; width: 100%; }
  .garden-world-footer { flex-direction: column; align-items: start; }
  #garden-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .garden-bloom { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .garden-main { width: calc(100% - 32px); padding: 25px 0 36px; }
  .garden-main .garden-heading { align-items: start; flex-direction: column; gap: 18px; }
  .garden-main .garden-heading h1 { font-size: 37px; }
  .garden-heading-tools { width: 100%; }
  .garden-heading-tools select { width: auto; flex: 1; }
  .garden-layout { grid-template-columns: minmax(0, 1fr); }
  .garden-world-header { padding: 16px 15px 12px; }
  .garden-filters { padding: 0 12px; gap: 2px; }
  .garden-filters button { padding: 5px 8px; gap: 6px; }
  .garden-stage { height: 375px; }
  .garden-gesture { left: 15px; bottom: 17px; font-size: 9px; }
  .garden-camera { right: 13px; bottom: 38px; }
  .garden-world-footer { gap: 12px; padding: 14px 16px; }
  .garden-legend { gap: 14px; }
  .garden-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .garden-summary { padding: 18px 15px 0; }
  .garden-summary h2 { font-size: 14px; }
  .garden-summary-lead { min-height: 42px; font-size: 10px; }
  .garden-summary dt { font-size: 10px; gap: 5px; }
  .garden-summary dd { font-size: 20px; }
  .garden-summary dl > div { padding: 7px 0; }
  .garden-summary-foot { margin-left: -15px; margin-right: -15px; padding: 12px 15px; font-size: 9px; }
  .garden-detail { padding: 18px 15px; }
  .garden-detail dl > div { flex-direction: column; gap: 4px; }
  .garden-outlook > header { flex-direction: column; gap: 7px; }
  #garden-timeline { grid-template-columns: minmax(0, 1fr); }
  .garden-plot-list { padding: 15px; height: 375px; }
  .garden-plot-row { gap: 10px; padding: 10px; }
  .garden-plot-row > span:last-child { max-width: 90px; font-size: 10px; }
}
