.g-root {
  color: #20382e;
  margin: 0 auto;
  width: min(100%, 1180px);
  padding: clamp(16px, 3vw, 40px);
  box-sizing: border-box;
}
.g-root h1,
.g-root h2,
.g-root h3,
.g-detail h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #193e30;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
}
.g-root h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}
.g-root h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}
.g-root h3,
.g-detail h3 {
  font-size: 1.35rem;
}
.g-head,
.g-tools,
.g-row,
.g-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.g-head,
.g-tools {
  flex-wrap: wrap;
}
.g-head p,
.g-card p,
.g-empty p,
.g-entry p,
.g-detail p {
  margin: 8px 0;
  line-height: 1.55;
}
.g-root button,
.g-detail button,
.g-form button {
  font: inherit;
  cursor: pointer;
}
.g-root .g-primary,
.g-form .g-primary,
.g-detail .g-primary,
.g-outline,
.g-actions button,
.g-choices button,
.g-symptoms button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid #c9d6ce;
  background: #fff;
  color: #204b38;
  font-weight: 600;
  line-height: 1.25;
}
.g-root .g-primary,
.g-form .g-primary,
.g-detail .g-primary {
  color: #fff;
  background: #245744;
  border-color: #245744;
}
.g-tabs,
.g-actions,
.g-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g-tabs {
  padding: 18px 0;
  border-bottom: 1px solid #d7dfd9;
}
.g-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 20px;
  background: #fff;
  color: #264335;
  border: 1px solid #c9d6ce;
  padding: 8px 12px;
  min-height: 40px;
}
.g-tabs button[aria-pressed="true"],
.g-symptoms button[aria-pressed="true"],
.g-choices button[aria-pressed="true"] {
  background: #dcece2;
  color: #123e2c;
  border-color: #7ba58b;
}
.g-tabs small {
  font-size: 0.77em;
  min-width: 16px;
}
.g-tools {
  margin: 24px 0 16px;
}
.g-grid,
.g-symptoms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 14px;
}
.g-card,
.g-empty,
.g-plant,
.g-row,
.g-entry {
  border: 1px solid #d6dfd8;
  background: #fff;
  border-radius: 13px;
  color: #213b2d;
  padding: 18px;
}
.g-empty {
  padding: 32px;
  text-align: center;
  background: #f1f6f1;
}
.g-empty p {
  max-width: 48ch;
  margin: 10px auto 16px;
}
.g-card .g-actions {
  margin-top: 12px;
}
.g-plant {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left !important;
}
.g-thumb {
  border-radius: 11px;
  width: 62px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  background: #dcebe1;
}
.g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g-monogram {
  font:
    2rem Georgia,
    serif;
  color: #306447;
}
.g-plant strong,
.g-plant em,
.g-plant small,
.g-entry strong,
.g-entry small,
.g-row small,
.g-identity i,
.g-identity small,
.g-ident i {
  display: block;
}
.g-plant em,
.g-identity i,
.g-ident i {
  font-size: 0.95rem;
  color: #486556;
  margin: 3px 0;
}
.g-plant small,
.g-row small,
.g-entry small,
.g-identity small {
  color: #4b6556;
  font-size: 0.85rem;
}
.g-due {
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid #94b5a2;
  background: #e4f0e7;
  color: #244737;
  border-radius: 8px;
}
.g-form,
.g-detail {
  display: grid;
  gap: 15px;
  min-width: 0;
  color: #233f31;
}
.g-form [hidden] {
  display: none !important;
}
.g-form [data-newspace]:not([hidden]) {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #cfddd1;
  border-radius: 10px;
}
.g-field {
  text-align: left;
  display: grid;
  gap: 5px;
  margin: 0;
  min-width: 0;
}
.g-field span {
  font-weight: 600;
  font-size: 0.88rem;
  color: #345342;
}
.g-field input,
.g-field select,
.g-field textarea {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid #b7c8bb;
  background: #fff;
  border-radius: 8px;
  color: #183a26;
  min-height: 42px;
  width: 100%;
  box-sizing: border-box;
}
.g-field textarea {
  min-height: 84px;
  resize: vertical;
}
.g-form .g-primary {
  justify-self: start;
}
.g-form p,
.g-detail p {
  margin: 0;
}
.g-detail .g-identity {
  justify-content: start;
}
.g-rows {
  display: grid;
  gap: 9px;
  margin: 12px 0 20px;
}
.g-row {
  padding: 13px;
  flex-wrap: wrap;
}
.g-row p {
  margin: 5px 0;
  white-space: pre-line;
}
.g-entry {
  display: grid;
  gap: 4px;
  padding: 14px;
}
.g-entry p {
  white-space: pre-line;
}
.g-photo {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  justify-self: start;
  border-radius: 8px;
}
.g-remove {
  justify-self: start;
  color: #81352c;
  border: 0;
  background: transparent;
  padding: 10px 0;
  text-decoration: underline;
}
.g-symptoms {
  margin: 22px 0;
}
.g-symptoms button {
  padding: 16px;
  justify-content: flex-start;
}
.g-choices {
  margin: 16px 0;
}
.g-finding {
  background: #eef6ee;
  border-radius: 10px;
  padding: 16px;
  line-height: 1.5;
}
.g-finding a {
  font-size: 0.88rem;
  color: #235440;
  text-decoration: underline;
}
.g-root button:focus-visible,
.g-detail button:focus-visible,
.g-form button:focus-visible {
  outline: 3px solid #918149;
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .g-root {
    padding: 16px;
  }
  .g-tabs {
    gap: 5px;
  }
  .g-tabs button {
    font-size: 0.86rem;
    padding: 7px 10px;
  }
  .g-empty {
    padding: 23px 15px;
  }
  .g-head {
    gap: 8px;
  }
  .g-actions button {
    font-size: 0.9rem;
  }
  .g-plant {
    padding: 12px;
  }
  .g-tools {
    margin: 18px 0 12px;
  }
}
.g-head {
  background: transparent;
  border: 0;
}
.g-error {
  background: #fff1e9;
  color: #732e23;
  padding: 10px;
  border-radius: 8px;
}
