@import url("/planttalk-icons.css?v=1");

/* PlantTalk 2026 reference-aligned production UI */
:root {
  --pt3-deep: #073e2d;
  --pt3-green: #0f7b4b;
  --pt3-leaf: #18a05f;
  --pt3-mint: #dff5e6;
  --pt3-pale: #f2fbf4;
  --pt3-bg: #f6fbf5;
  --pt3-card: #fff;
  --pt3-ink: #103d2e;
  --pt3-muted: #668176;
  --pt3-line: #dcebe0;
  --pt3-warn: #f2a51a;
  --pt3-danger: #db4f54;
  --pt3-shadow: 0 12px 30px rgba(8, 62, 42, 0.08);
  --pt3-radius: 20px;
}
html {
  background: var(--pt3-bg);
}
body {
  color: var(--pt3-ink) !important;
  background: radial-gradient(circle at 95% 0, #dff5e5 0, transparent 26rem),
    linear-gradient(180deg, #fbfefb 0, #eff9f1 100%) !important;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;
}
body:before {
  display: none !important;
}
.page,
.app {
  max-width: 1120px !important;
  width: min(100% - 28px, 1120px) !important;
  padding-top: 76px !important;
  padding-bottom: 118px !important;
}
.card,
.hero,
.care-card,
.care-history-card,
.identify-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid var(--pt3-line) !important;
  border-radius: var(--pt3-radius) !important;
  box-shadow: var(--pt3-shadow) !important;
}
h1,
h2,
h3 {
  color: var(--pt3-deep) !important;
  letter-spacing: -0.035em !important;
}
.muted {
  color: var(--pt3-muted) !important;
}
.eyebrow,
.care-heading small,
.identify-card small {
  color: var(--pt3-green) !important;
  letter-spacing: 0.13em !important;
}
.primary-button,
.btn:not(.secondary) {
  background: linear-gradient(135deg, var(--pt3-green), #198e55) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 9px 20px rgba(15, 123, 75, 0.19) !important;
}
.secondary-button,
.btn.secondary {
  background: #fff !important;
  color: var(--pt3-green) !important;
  border: 1px solid #cce3d2 !important;
  border-radius: 14px !important;
}
.primary-button,
.secondary-button,
.btn {
  min-height: 46px;
  padding: 11px 16px !important;
  font-weight: 800 !important;
}
.primary-button:hover,
.btn:not(.secondary):hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}
input,
select,
textarea {
  background: #f8fbf7 !important;
  border: 1px solid #d9e7dc !important;
  border-radius: 13px !important;
  color: var(--pt3-ink) !important;
  min-height: 48px !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #62ab7f !important;
  box-shadow: 0 0 0 4px rgba(24, 160, 95, 0.1) !important;
  outline: 0;
}
.metric,
.stat,
.step,
.principle,
.rd-section,
.run,
.score-card,
.care-guide-item,
.card2 {
  background: #fff !important;
  border: 1px solid var(--pt3-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 7px 18px rgba(8, 62, 42, 0.045) !important;
}
.pt3-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.pt3-logo {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #f2fbeb;
  box-shadow: 0 8px 20px rgba(8, 62, 42, 0.12);
  overflow: hidden;
}
.pt3-logo img {
  width: 42px;
  height: 42px;
  display: block;
}
.pt3-wordmark strong {
  display: block;
  color: var(--pt3-deep);
  font-size: 22px;
  line-height: 1;
}
.pt3-wordmark small {
  display: block;
  margin-top: 4px;
  color: var(--pt3-green);
  font-size: 8px;
  letter-spacing: 0.14em;
  font-weight: 900;
}
.pt3-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.pt3-user {
  display: flex;
  gap: 9px;
  align-items: center;
}
.pt3-avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pt3-deep);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 14px rgba(7, 62, 45, 0.16);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.pt3-avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(7, 62, 45, 0.22);
}
.pt3-avatar:focus-visible {
  outline: 3px solid rgba(24, 160, 95, 0.28);
  outline-offset: 3px;
}
.pt3-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt3-avatar-fallback {
  line-height: 1;
}
.pt3-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #eef7f0;
  border: 1px solid #d5e8da;
  border-radius: 999px;
  margin: 8px 0 15px;
}
.pt3-mode a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #416756;
  font-size: 13px;
  font-weight: 800;
}
.pt3-mode a.active {
  background: linear-gradient(135deg, var(--pt3-green), #21945a);
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 123, 75, 0.18);
}
.personal-welcome {
  position: relative;
  overflow: hidden;
  padding: 22px !important;
  background: linear-gradient(
    135deg,
    #fff 5%,
    #effbf2 68%,
    #c9f1d6 100%
  ) !important;
}
.personal-welcome:after {
  content: "\eea3";
  font-family: "remixicon";
  position: absolute;
  right: 18px;
  bottom: -11px;
  font-size: 92px;
  opacity: 0.14;
  transform: rotate(-10deg);
}
.personal-welcome h1 {
  font-size: clamp(25px, 6vw, 38px) !important;
  margin: 6px 0 !important;
}
.personal-welcome p {
  max-width: 640px !important;
}
.quick-strip {
  grid-template-columns: repeat(4, 1fr) !important;
}
.quick-strip a {
  min-height: 88px !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 7px !important;
  padding: 12px 8px !important;
  border-radius: 17px !important;
  background: #fff !important;
  border: 1px solid var(--pt3-line) !important;
  color: var(--pt3-deep) !important;
}
.quick-strip i {
  font-size: 25px !important;
}
.stats {
  grid-template-columns: repeat(4, 1fr) !important;
}
.stat b {
  color: var(--pt3-deep) !important;
}
.plant {
  border-color: var(--pt3-line) !important;
  border-radius: 17px !important;
  box-shadow: 0 7px 18px rgba(8, 62, 42, 0.04);
}
.plant-thumb {
  border-radius: 14px !important;
}
.plant button {
  background: var(--pt3-mint) !important;
  color: var(--pt3-green) !important;
}
.agent {
  background: linear-gradient(135deg, #073e2d, #128153) !important;
  border-radius: 20px !important;
}
.section-head a {
  color: var(--pt3-green);
  font-weight: 800;
  text-decoration: none;
}
.hero {
  padding: 24px !important;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 48px) !important;
}
.research-actions {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}
.flow {
  grid-template-columns: repeat(4, 1fr) !important;
}
.integrity-strip,
.notice,
.pt-research-note {
  border-radius: 15px !important;
}
.table-wrap {
  border-radius: 15px;
  border: 1px solid var(--pt3-line);
}
.table th {
  background: #f1f8f3;
}
.badge {
  background: var(--pt3-mint) !important;
  color: var(--pt3-green) !important;
}
.plantalk-bottom-nav {
  font-family: inherit !important;
}
.menu-button {
  background: #fff !important;
  color: var(--pt3-deep) !important;
  border: 1px solid var(--pt3-line) !important;
  box-shadow: 0 7px 18px rgba(8, 62, 42, 0.1) !important;
}
.sidebar {
  background: #fbfefb !important;
}
.sidebar-brand {
  color: var(--pt3-deep) !important;
}
.plantalk-mode-switch {
  background: #eff8f1 !important;
  border-color: var(--pt3-line) !important;
}
.plantalk-upgrade-cta {
  background: linear-gradient(135deg, var(--pt3-green), #1b9258) !important;
}
@media (max-width: 760px) {
  .page,
  .app {
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-top: 68px !important;
  }
  .quick-strip {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .quick-strip a {
    font-size: 10px !important;
    min-height: 82px !important;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .stats .stat:nth-child(n + 4) {
    display: none;
  }
  .flow {
    grid-template-columns: 1fr 1fr !important;
  }
  .research-actions {
    grid-template-columns: 1fr !important;
  }
  .hero {
    border-radius: 19px !important;
    padding: 20px !important;
  }
  .section {
    margin-top: 16px !important;
  }
  .table {
    min-width: 720px !important;
  }
}
@media (max-width: 430px) {
  .pt3-wordmark strong {
    font-size: 20px;
  }
  .pt3-logo {
    width: 43px;
    height: 43px;
  }
  .pt3-mode a {
    font-size: 12px;
  }
  .quick-strip a {
    padding: 9px 4px !important;
  }
  .personal-welcome h1 {
    font-size: 25px !important;
  }
  .grid,
  .principles {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 900px) {
  .page,
  .app {
    padding-left: 34px !important;
    padding-right: 34px !important;
  }
  .plant-list {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .plant {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }
  .plant-main {
    min-width: calc(100% - 62px) !important;
  }
  .plant button {
    margin-left: 60px;
  }
  .section > .grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.pt3-research-visuals {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.pt3-chart-card {
  background: #fff;
  border: 1px solid var(--pt3-line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--pt3-shadow);
}
.pt3-chart-card h2 {
  margin: 0;
  font-size: 18px;
}
.pt3-chart-card p {
  font-size: 10px;
  color: var(--pt3-muted);
  line-height: 1.45;
}
.pt3-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pt3-chart-head span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--pt3-mint);
  color: var(--pt3-green);
  font-size: 10px;
  font-weight: 800;
}
.pt3-chart-card svg {
  display: block;
  width: 100%;
  height: 150px;
}
.pt3-axis {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 9px;
  color: var(--pt3-muted);
  text-align: center;
}
.pt3-donut-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 170px;
}
.pt3-donut {
  --angle: 0deg;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#0f7b4b var(--angle), #9bd5ae 0);
  position: relative;
}
.pt3-donut:after {
  content: \"\";
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
}
.pt3-donut span {
  position: relative;
  z-index: 1;
  font-size: 25px;
  font-weight: 850;
  color: var(--pt3-deep);
}
.pt3-legend {
  display: grid;
  gap: 12px;
}
.pt3-legend span {
  display: grid;
  grid-template-columns: 11px 1fr auto;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.pt3-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9bd5ae;
}
.pt3-legend i.locked {
  background: #0f7b4b;
}
.pt3-chart-empty {
  padding: 45px 10px;
  text-align: center;
  color: var(--pt3-muted);
}
@media (max-width: 720px) {
  .pt3-research-visuals {
    grid-template-columns: 1fr;
  }
  .pt3-chart-card {
    padding: 17px;
  }
}

/* Saved appearance preference from Settings. */
html[data-plantalk-theme="dark"] {
  --pt3-deep: #dff4e6;
  --pt3-green: #5fc58b;
  --pt3-leaf: #79d79f;
  --pt3-mint: #193426;
  --pt3-pale: #14261d;
  --pt3-bg: #0e1713;
  --pt3-card: #16231c;
  --pt3-ink: #e8f1eb;
  --pt3-muted: #a8b9af;
  --pt3-line: #30453a;
  --pt3-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  background: var(--pt3-bg);
}
html[data-plantalk-theme="dark"] body {
  color: var(--pt3-ink) !important;
  background: radial-gradient(circle at 95% 0, #183226 0, transparent 26rem),
    linear-gradient(180deg, #111c16 0, #0e1713 100%) !important;
}
html[data-plantalk-theme="dark"] .card,
html[data-plantalk-theme="dark"] .hero,
html[data-plantalk-theme="dark"] .care-card,
html[data-plantalk-theme="dark"] .care-history-card,
html[data-plantalk-theme="dark"] .identify-card {
  background: rgba(22, 35, 28, 0.97) !important;
  border-color: var(--pt3-line) !important;
}
html[data-plantalk-theme="dark"] input,
html[data-plantalk-theme="dark"] select,
html[data-plantalk-theme="dark"] textarea {
  background: #1a2a21 !important;
  border-color: #395247 !important;
  color: var(--pt3-ink) !important;
}
html[data-plantalk-theme="dark"] .secondary-button,
html[data-plantalk-theme="dark"] .btn.secondary {
  background: #1a2a21 !important;
  border-color: #395247 !important;
  color: #8fd2aa !important;
}
html[data-plantalk-theme="dark"] .sidebar {
  background: #121f18 !important;
  border-color: var(--pt3-line) !important;
}
html[data-plantalk-theme="dark"] .sidebar-brand {
  color: #e8f1eb !important;
}
html[data-plantalk-theme="dark"] .plantalk-mode-switch {
  background: #182b20 !important;
  border-color: #30453a !important;
}
html[data-plantalk-theme="dark"] .sidebar-chat-list,
html[data-plantalk-theme="dark"] .plantalk-research-case {
  background: #17261e !important;
  border-color: #30453a !important;
}

.pt3-history-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.pt3-filter {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d7e7dc;
  border-radius: 12px;
  background: #eef6f0;
}
.pt3-filter button {
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #61766b;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.pt3-filter button.active {
  background: #fff;
  color: #185c3d;
  box-shadow: 0 3px 10px rgba(18, 63, 45, 0.08);
}
.pt3-scroll-hint {
  color: #71847b;
  font-size: 10px;
}
.pt3-favorite {
  display: inline-grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0 !important;
  border: 1px solid #d7e7dc !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #71847b !important;
  cursor: pointer;
}
.pt3-favorite[aria-pressed="true"] {
  border-color: #e1ba55 !important;
  background: #fff9e8 !important;
  color: #ba7a00 !important;
}
.pt3-favorite:focus-visible,
.pt3-filter button:focus-visible {
  outline: 3px solid rgba(27, 138, 85, 0.24);
  outline-offset: 2px;
}

/* Shared reference-screen composition */
.pt3-research-visuals {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.pt3-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 13px;
  padding: 0 2px;
}
.pt3-back {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pt3-line);
  border-radius: 13px;
  background: #fff;
  color: var(--pt3-deep);
  text-decoration: none;
  font-size: 21px;
  box-shadow: 0 7px 18px rgba(8, 62, 42, 0.06);
}
.pt3-screen-title {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 850;
  color: var(--pt3-deep);
}
.pt3-research-pill {
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--pt3-green);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}
.pt3-tool-page {
  max-width: 820px !important;
}
.pt3-tool-page > .card,
.pt3-tool-page > .care-card,
.pt3-tool-page > .care-history-card {
  border-radius: 20px !important;
}
@media (max-width: 720px) {
  .pt3-tool-page > .card,
  .pt3-tool-page > .care-card,
  .pt3-tool-page > .care-history-card {
    border-left: 1px solid var(--pt3-line) !important;
    border-right: 1px solid var(--pt3-line) !important;
    border-radius: 20px !important;
  }
  .pt3-tool-page {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
