:root {
    --bt-green: #7BA88E;
    --bt-green-deep: #315f43;
    --bt-cream: #F5ECD7;
    --bt-pink: #F4A7A7;
    --bt-brown: #C4956A;
    --bt-ink: #263326;
    --bt-muted: #667763;
    --bt-card: rgba(255, 255, 255, 0.78);
    --bt-border: rgba(83, 119, 90, 0.16);
    --bt-shadow: 0 18px 42px rgba(45, 70, 44, 0.14);
}

* {
    box-sizing: border-box;
}

body.bt-page {
    min-height: 100vh;
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--bt-ink);
    background:
        radial-gradient(circle at 12% 12%, rgba(244, 167, 167, 0.24), transparent 26%),
        radial-gradient(circle at 86% 8%, rgba(123, 168, 142, 0.24), transparent 28%),
        linear-gradient(135deg, #f8f1df, #eaf3e7 58%, #f5ecd7);
    position: static !important;
}

body.bt-page .floating-chat-entry {
    position: fixed !important;
    right: 24px !important;
    bottom: 130px !important;
    z-index: 1500 !important;
}

body.bt-page .flower-chat-widget {
    position: fixed !important;
    right: 24px !important;
    bottom: 186px !important;
    z-index: 1600 !important;
    display: none !important;
}

body.bt-page .flower-chat-widget.is-open {
    display: flex !important;
}

a {
    color: inherit;
}

.bt-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 28px auto 64px;
}

.bt-narrow {
    width: min(920px, calc(100% - 32px));
}

.bt-add-shell {
    width: min(1380px, calc(100% - 32px));
}

.bt-hero,
.bt-detail-hero,
.bt-panel,
.bt-form-card,
.bt-empty,
.bt-stats > div,
.bt-plant-card,
.bt-status-card {
    border: 1px solid var(--bt-border);
    border-radius: 24px;
    background: var(--bt-card);
    box-shadow: var(--bt-shadow);
    backdrop-filter: blur(18px);
}

.bt-hero,
.bt-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(49, 95, 67, 0.92), rgba(123, 168, 142, 0.82));
    color: #fff;
}

.bt-kicker {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.bt-hero h1,
.bt-detail-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.bt-hero p,
.bt-detail-title p {
    max-width: 680px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

.bt-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 640px;
}

.bt-user-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 900;
}

.bt-primary-btn,
.bt-ghost-btn,
.bt-search button,
.bt-copy-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.bt-primary-btn {
    background: linear-gradient(135deg, var(--bt-pink), var(--bt-brown));
    color: #fff;
    box-shadow: 0 12px 26px rgba(196, 149, 106, 0.26);
}

.bt-ghost-btn,
.bt-copy-id {
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.bt-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid rgba(123, 168, 142, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--bt-green-deep);
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.bt-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.bt-stats > div {
    padding: 18px;
}

.bt-stats strong {
    display: block;
    color: var(--bt-green-deep);
    font-size: 25px;
}

.bt-stats span {
    display: block;
    margin-top: 5px;
    color: var(--bt-muted);
}

.bt-value-panel {
    margin: 18px 0;
    padding: 24px;
    border: 1px solid rgba(123, 168, 142, 0.18);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(245, 236, 215, 0.58));
    box-shadow: var(--bt-shadow);
    backdrop-filter: blur(18px);
}

.bt-value-panel .bt-kicker {
    color: var(--bt-brown);
}

.bt-value-panel h2 {
    max-width: 860px;
    margin: 0 0 10px;
    color: var(--bt-green-deep);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.22;
}

.bt-value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.bt-value-grid article {
    padding: 17px;
    border: 1px solid rgba(83, 119, 90, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.66);
}

.bt-value-grid strong,
.bt-value-grid span {
    display: block;
}

.bt-value-grid strong {
    color: var(--bt-green-deep);
    font-size: 17px;
}

.bt-value-grid span {
    margin-top: 8px;
    color: var(--bt-muted);
    line-height: 1.65;
}

.bt-value-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(123, 168, 142, 0.12);
    color: var(--bt-green-deep);
    font-weight: 900;
}

.bt-search {
    display: flex;
    gap: 10px;
    margin: 18px 0 24px;
}

.bt-garden-filters {
    display: grid;
    grid-template-columns: 1.7fr repeat(4, minmax(120px, 1fr)) auto;
    align-items: center;
}

.bt-search input,
.bt-search select,
.bt-form-card input,
.bt-form-card select,
.bt-form-card textarea,
.bt-log-form input,
.bt-log-form select,
.bt-log-form textarea {
    width: 100%;
    border: 1px solid rgba(83, 119, 90, 0.18);
    border-radius: 16px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--bt-ink);
    font: inherit;
    outline: none;
}

.bt-form-card input[type="date"],
.bt-form-card input[type="datetime-local"],
.bt-form-card input[type="time"],
.bt-log-form input[type="date"],
.bt-log-form input[type="datetime-local"],
.bt-log-form input[type="time"] {
    min-height: 52px;
    padding: 14px 48px 14px 16px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 236, 215, 0.52));
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.bt-log-form input[data-date-picker="datetime"] {
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 236, 215, 0.52));
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.bt-form-card input[type="date"]::-webkit-calendar-picker-indicator,
.bt-form-card input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.bt-form-card input[type="time"]::-webkit-calendar-picker-indicator,
.bt-log-form input[type="date"]::-webkit-calendar-picker-indicator,
.bt-log-form input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.bt-log-form input[type="time"]::-webkit-calendar-picker-indicator {
    width: 24px;
    height: 24px;
    padding: 7px;
    margin-right: -34px;
    border-radius: 50%;
    background-color: rgba(123, 168, 142, 0.18);
    cursor: pointer;
}

.bt-search input:focus,
.bt-form-card input:focus,
.bt-form-card select:focus,
.bt-form-card textarea:focus,
.bt-log-form input:focus,
.bt-log-form select:focus,
.bt-log-form textarea:focus {
    border-color: var(--bt-green);
    box-shadow: 0 0 0 4px rgba(123, 168, 142, 0.16);
}

.bt-search button {
    min-width: 100px;
    background: var(--bt-green-deep);
    color: #fff;
}

.bt-garden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.bt-plant-card {
    display: block;
    width: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bt-plant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(45, 70, 44, 0.2);
}

.bt-plant-card img,
.bt-detail-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.bt-plant-card img {
    height: 128px;
}

.bt-plant-emoji {
    height: 112px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(123, 168, 142, 0.24), rgba(244, 167, 167, 0.18));
    font-size: 44px;
}

.bt-plant-card-body {
    padding: 12px 14px;
}

.bt-plant-card-body strong {
    display: block;
    color: var(--bt-green-deep);
    font-size: 18px;
}

.bt-plant-card-body span {
    display: block;
    margin-top: 5px;
    color: var(--bt-brown);
    font-weight: 800;
}

.bt-plant-card-id {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(49, 95, 67, 0.08);
    color: #315f43;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.bt-flash-ok {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(49, 95, 67, 0.12);
    color: #214530;
    font-size: 13px;
}

.bt-flash-ok p {
    margin: 0;
}

.bt-id-hint {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.bt-plant-card-body p {
    margin: 8px 0 0;
    color: var(--bt-muted);
    font-size: 13px;
    line-height: 1.7;
}

.bt-plant-card-stage {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(123, 168, 142, 0.16);
    color: var(--bt-green-deep);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.bt-plant-card-next {
    display: block;
    margin-top: 8px;
    color: var(--bt-brown);
    font-size: 12px;
    font-weight: 800;
}

.bt-hero-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-hero-actions .bt-user-pill,
.bt-hero-actions .bt-ghost-btn,
.bt-hero-actions .bt-primary-btn,
.bt-hero-links a,
.bt-hero-actions .language-switcher,
.bt-hero-actions .language-switcher select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    box-shadow: none;
    white-space: nowrap;
}

.bt-hero-actions .bt-user-pill {
    cursor: default;
    background: rgba(255, 255, 255, 0.12);
}

.bt-hero-links a:hover,
.bt-hero-actions .bt-ghost-btn:hover,
.bt-hero-actions .language-switcher:hover,
.bt-hero-actions .language-switcher select:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
}

.bt-hero-actions .bt-primary-btn {
    border-color: rgba(255, 255, 255, 0.92);
    background: #fff;
    color: var(--bt-green-deep);
}

.bt-hero-actions .bt-primary-btn:hover {
    background: #f5ecd7;
    color: var(--bt-green-deep);
}

.bt-hero-actions .language-switcher {
    padding: 0;
    overflow: hidden;
}

.bt-hero-actions .language-switcher select {
    min-width: 92px;
    padding: 0 28px 0 12px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='white' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.bt-hero-actions .language-switcher select option {
    color: var(--bt-ink);
}

.bt-garden-list {
    display: grid;
    gap: 8px;
}

.bt-garden-list-head,
.bt-garden-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) 0.7fr 0.8fr 0.8fr 0.9fr 1.1fr;
    gap: 12px;
    align-items: center;
}

.bt-garden-list-head {
    padding: 0 16px 6px;
    color: var(--bt-muted);
    font-size: 12px;
    font-weight: 900;
}

.bt-garden-row {
    padding: 12px 16px;
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(83, 119, 90, 0.12);
    box-shadow: 0 14px 34px rgba(45, 70, 44, 0.08);
}

.bt-garden-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(45, 70, 44, 0.14);
}

.bt-garden-row > span {
    color: var(--bt-muted);
    font-size: 13px;
}

.bt-garden-flower {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 12px;
}

.bt-garden-flower img,
.bt-garden-flower em {
    grid-row: span 2;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
}

.bt-garden-flower em {
    display: grid;
    place-items: center;
    background: rgba(123, 168, 142, 0.16);
    font-size: 28px;
    font-style: normal;
}

.bt-garden-flower strong {
    color: var(--bt-green-deep);
    font-size: 17px;
}

.bt-garden-flower small {
    color: var(--bt-brown);
    font-weight: 800;
}

.bt-empty {
    padding: 46px 28px;
    text-align: center;
}

.bt-empty div {
    font-size: 50px;
}

.bt-empty h2 {
    margin: 12px 0 8px;
}

.bt-empty p {
    color: var(--bt-muted);
}

.bt-empty-small {
    padding: 26px 18px;
}

.bt-floating-add {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bt-pink), var(--bt-brown));
    color: #fff;
    text-decoration: none;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(196, 149, 106, 0.34);
}

.bt-form-card {
    padding: 26px;
}

.bt-add-shell .bt-form-card {
    padding: 24px;
}

.bt-form-card section + section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(83, 119, 90, 0.12);
}

.bt-add-shell .bt-form-card section + section {
    margin-top: 18px;
    padding-top: 18px;
}

.bt-form-card h2,
.bt-section-heading h2 {
    margin: 0 0 16px;
    color: var(--bt-green-deep);
}

.bt-form-card label,
.bt-log-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: #36563b;
    font-weight: 900;
}

.bt-add-shell .bt-form-card label {
    margin-bottom: 8px;
}

.bt-compact-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bt-compact-section h2 {
    grid-column: 1 / -1;
}

.bt-form-card small {
    color: var(--bt-muted);
    font-weight: 500;
}

.bt-identify-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bt-inline-status {
    color: var(--bt-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.bt-identify-result {
    grid-column: 1 / -1;
    padding: 14px 16px;
    border: 1px solid rgba(83, 119, 90, 0.16);
    border-radius: 18px;
    background: rgba(123, 168, 142, 0.12);
    color: var(--bt-green-deep);
    line-height: 1.65;
}

.bt-identify-result[hidden] {
    display: none;
}

.bt-identify-result strong {
    display: block;
    margin-bottom: 4px;
}

.bt-identify-result p {
    margin: 4px 0 0;
}

.bt-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.bt-form-card .bt-choice-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 10px;
    align-items: start;
    margin: 0;
    padding: 15px;
    border: 1px solid rgba(123, 168, 142, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.bt-choice-card input {
    margin-top: 4px;
    accent-color: var(--bt-green);
}

.bt-choice-card span {
    color: var(--bt-green-deep);
    font-weight: 950;
}

.bt-choice-card small {
    grid-column: 2;
    line-height: 1.6;
}

.bt-form-grid,
.bt-log-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bt-add-shell .bt-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
}

.bt-full,
.bt-submit {
    grid-column: 1 / -1;
}

.bt-weather-prefill {
    padding: 12px 14px;
    border: 1px solid rgba(83, 119, 90, 0.16);
    border-radius: 16px;
    background: rgba(123, 168, 142, 0.12);
    color: var(--bt-green-deep);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.bt-preview-note {
    padding: 18px;
    border-radius: 18px;
    background: rgba(245, 236, 215, 0.58);
}

.bt-alert {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(244, 167, 167, 0.2);
    color: #8a3838;
    font-weight: 800;
}

.bt-success {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(123, 168, 142, 0.18);
    color: var(--bt-green-deep);
    font-weight: 900;
}

.bt-form-tip {
    margin: 10px 0 0;
    color: var(--bt-muted);
    line-height: 1.7;
}

.bt-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.bt-submit-row .bt-primary-btn {
    min-width: 180px;
}

.bt-submit-row .bt-secondary-btn {
    min-width: 190px;
}

.bt-submit-row .bt-submit:disabled,
.bt-submit-row button:disabled {
    background: rgba(244, 167, 167, 0.3);
    color: rgba(54, 86, 59, 0.72);
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
    transform: none;
}

.bt-auth-shell {
    min-height: calc(100vh - 56px);
    display: grid;
    place-items: center;
}

body.bt-auth-page {
    background:
        radial-gradient(ellipse at 8% 92%, rgba(123, 168, 142, 0.34), transparent 42%),
        radial-gradient(ellipse at 92% 6%, rgba(244, 167, 167, 0.26), transparent 34%),
        radial-gradient(ellipse at 74% 78%, rgba(196, 149, 106, 0.16), transparent 40%),
        linear-gradient(165deg, #eef6ea 0%, #f7f1df 48%, #e7f0e4 100%);
}

body.bt-auth-page .bt-auth-shell {
    width: min(1080px, calc(100% - 28px));
    min-height: calc(100vh - 36px);
    margin: 18px auto;
}

.bt-auth-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
    width: 100%;
    min-height: min(720px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 28px 72px rgba(38, 70, 48, 0.18);
    backdrop-filter: blur(22px);
}

.bt-auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 36px 32px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at 86% 88%, rgba(244, 167, 167, 0.22), transparent 32%),
        linear-gradient(160deg, #244f2b 0%, #3d7a52 58%, #7ba88e 100%);
    color: #fff;
    overflow: hidden;
}

.bt-auth-intro::after {
    content: "";
    position: absolute;
    inset: auto -40px -80px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(245, 236, 215, 0.12);
    pointer-events: none;
}

.bt-auth-intro .bt-kicker {
    margin: 0 0 10px;
}

.bt-auth-intro h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
}

.bt-auth-intro h1 + p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

.bt-auth-points {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.bt-auth-points li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    line-height: 1.6;
}

.bt-auth-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f4a7a7;
    box-shadow: 0 0 0 4px rgba(244, 167, 167, 0.18);
}

.bt-auth-scene {
    display: flex;
    gap: 10px;
    margin: 28px 0 auto;
}

.bt-auth-scene span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 26px;
}

.bt-auth-intro .bt-ghost-btn {
    align-self: flex-start;
    margin-top: 28px;
}

.bt-auth-forms {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 28px 26px 26px;
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(244, 248, 236, 0.88));
}

.bt-auth-panel {
    position: relative;
    display: grid;
    gap: 16px;
}

.bt-auth-mode {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
}

.bt-auth-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 999px;
    background: rgba(49, 95, 67, 0.08);
}

.bt-auth-switch label {
    margin: 0;
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--bt-muted);
    font-weight: 900;
    cursor: pointer;
}

#authLogin:checked ~ .bt-auth-switch label[for="authLogin"],
#authRegister:checked ~ .bt-auth-switch label[for="authRegister"] {
    background: #fff;
    color: var(--bt-green-deep);
    box-shadow: 0 8px 18px rgba(45, 70, 44, 0.08);
}

.bt-auth-form {
    display: none;
    box-shadow: none;
    background: transparent;
    padding: 8px 4px 0;
}

#authLogin:checked ~ .bt-auth-login,
#authRegister:checked ~ .bt-auth-register {
    display: block;
}

.bt-auth-form h2 {
    margin: 0 0 6px;
}

.bt-auth-lead {
    margin: 0 0 18px;
    color: var(--bt-muted);
    font-weight: 600;
    line-height: 1.7;
}

.bt-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.bt-auth-form .bt-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
}

.bt-captcha-row {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 10px;
    align-items: center;
}

.bt-captcha-row strong {
    display: grid;
    min-height: 50px;
    place-items: center;
    border: 1px solid rgba(49, 95, 67, 0.16);
    border-radius: 16px;
    background:
        repeating-linear-gradient(-18deg, rgba(123, 168, 142, 0.08), rgba(123, 168, 142, 0.08) 8px, transparent 8px, transparent 16px),
        linear-gradient(135deg, #eef6ea, #f7f1df);
    color: var(--bt-green-deep);
    font-size: 20px;
    letter-spacing: 0.18em;
    user-select: none;
}

body.bt-auth-page input:-webkit-autofill,
body.bt-auth-page input:-webkit-autofill:hover,
body.bt-auth-page input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f7faf4 inset;
    -webkit-text-fill-color: var(--bt-ink);
    caret-color: var(--bt-ink);
    transition: background-color 9999s ease-out;
}

.bt-detail-hero {
    align-items: stretch;
}

.bt-detail-image {
    width: 190px;
    min-height: 190px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.bt-detail-image img {
    height: 100%;
}

.bt-detail-image span {
    font-size: 72px;
}

.bt-detail-title {
    flex: 1;
}

.bt-copy-id {
    margin-top: 16px;
}

.bt-status-grid,
.bt-two-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.bt-two-col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.bt-status-card,
.bt-panel {
    padding: 22px;
}

.bt-preview-panel {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid rgba(123, 168, 142, 0.24);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 236, 215, 0.42));
    box-shadow: 0 14px 34px rgba(53, 90, 64, 0.1);
}

.bt-preview-panel[hidden] {
    display: none;
}

.bt-preview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 6px;
}

.bt-preview-stats div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(83, 119, 90, 0.12);
}

.bt-preview-stats span {
    display: block;
    margin-bottom: 7px;
    color: var(--bt-muted);
    font-size: 12px;
    font-weight: 900;
}

.bt-preview-stats strong {
    color: var(--bt-green-deep);
    line-height: 1.45;
}

.bt-preview-timeline {
    margin-top: 18px;
}

.bt-status-card span {
    color: var(--bt-muted);
    font-weight: 900;
}

.bt-status-card strong {
    display: block;
    margin: 8px 0;
    color: var(--bt-green-deep);
    font-size: 24px;
}

.bt-status-card p,
.bt-section-heading p {
    margin: 0;
    color: var(--bt-muted);
    line-height: 1.7;
}

.bt-status-card em {
    display: block;
    margin-top: 10px;
    color: var(--bt-green-deep);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.bt-soil-panel .bt-soil-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.bt-soil-panel .bt-soil-grid div {
    padding: 16px 18px;
    border: 1px solid rgba(83, 119, 90, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.bt-soil-panel .bt-soil-grid span {
    display: block;
    color: var(--bt-muted);
    font-size: 12px;
}

.bt-soil-panel .bt-soil-grid strong {
    display: block;
    margin: 6px 0 8px;
    font-size: 18px;
    color: var(--bt-green-deep);
}

.bt-soil-panel .bt-soil-grid p,
.bt-soil-panel .bt-soil-grid em {
    display: block;
    color: var(--bt-muted);
    font-size: 13px;
    line-height: 1.55;
    font-style: normal;
}

.bt-log-form .bt-soil-fields[hidden] {
    display: none;
}

.bt-timeline {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 24px 0 0;
    padding: 6px 4px 8px;
    overflow-x: auto;
}

.bt-timeline-item {
    display: grid;
    grid-template-rows: 24px 1fr;
    gap: 10px;
    min-width: 158px;
    max-width: 190px;
    position: relative;
    padding: 0;
}

.bt-timeline-item::before {
    content: "";
    position: absolute;
    left: 20px;
    right: -14px;
    top: 10px;
    height: 2px;
    background: rgba(123, 168, 142, 0.22);
}

.bt-timeline-item:last-child::before {
    display: none;
}

.bt-timeline-dot {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dfe8d9;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px rgba(123, 168, 142, 0.28);
}

.bt-timeline-item.is-completed .bt-timeline-dot {
    background: var(--bt-green);
}

.bt-timeline-item.is-current .bt-timeline-dot {
    background: var(--bt-pink);
    box-shadow: 0 0 0 6px rgba(244, 167, 167, 0.22);
}

.bt-timeline-item strong {
    color: var(--bt-green-deep);
}

.bt-timeline-item span {
    display: block;
    margin: 4px 0 0;
    color: var(--bt-brown);
    font-size: 12px;
    font-weight: 800;
}

.bt-timeline-item p {
    margin: 7px 0 0;
    color: var(--bt-muted);
    font-size: 12px;
    line-height: 1.5;
}

.bt-log-list {
    display: grid;
    gap: 12px;
}

.bt-calendar {
    display: grid;
    gap: 12px;
}

.bt-calendar-title,
.bt-calendar-toolbar strong {
    color: var(--bt-green-deep);
    font-size: 18px;
    font-weight: 950;
}

.bt-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bt-calendar-toolbar div {
    display: grid;
    text-align: center;
}

.bt-calendar-toolbar span {
    color: var(--bt-muted);
    font-size: 12px;
}

.bt-calendar-nav {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(123, 168, 142, 0.16);
    color: var(--bt-green-deep);
    font-weight: 900;
    cursor: pointer;
}

.bt-calendar-year {
    display: block;
}

.bt-calendar-month {
    padding: 12px;
    border: 1px solid rgba(83, 119, 90, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
}

.bt-calendar-month.is-hidden {
    display: none;
}

.bt-calendar-month h3 {
    margin: 0 0 8px;
    color: var(--bt-green-deep);
    font-size: 15px;
}

.bt-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.bt-calendar-weekdays div {
    color: var(--bt-muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.bt-calendar-day {
    min-height: 44px;
    padding: 5px;
    border: 1px solid rgba(83, 119, 90, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: #36563b;
    font: inherit;
    text-align: left;
}

button.bt-calendar-day {
    cursor: pointer;
}

.bt-calendar-day.is-empty {
    background: transparent;
    border-color: transparent;
}

.bt-calendar-day.is-today {
    border-color: rgba(244, 167, 167, 0.7);
    box-shadow: 0 10px 26px rgba(244, 167, 167, 0.18);
}

.bt-calendar-day.has-logs {
    background: rgba(245, 236, 215, 0.68);
}

.bt-calendar-tooltip {
    position: fixed;
    z-index: 1000;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(38, 79, 54, 0.94);
    color: #fff;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-line;
    box-shadow: 0 18px 38px rgba(45, 70, 44, 0.22);
    pointer-events: none;
}

.bt-calendar-date,
.bt-calendar-day strong,
.bt-calendar-day small,
.bt-calendar-day em {
    display: block;
}

.bt-calendar-date {
    color: var(--bt-green-deep);
    font-weight: 950;
}

.bt-calendar-day strong {
    margin-top: 3px;
    color: var(--bt-brown);
    font-size: 10px;
}

.bt-calendar-day small,
.bt-calendar-day em {
    margin-top: 2px;
    color: var(--bt-muted);
    font-size: 10px;
    font-style: normal;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bt-log-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(83, 119, 90, 0.12);
}

.bt-log-card.is-text-only {
    grid-template-columns: 1fr;
}

.bt-log-card img {
    width: 86px;
    height: 86px;
    border-radius: 14px;
    object-fit: cover;
}

.bt-log-card strong,
.bt-log-card span {
    display: block;
}

.bt-log-card strong {
    color: var(--bt-green-deep);
}

.bt-log-card span {
    margin-top: 4px;
    color: var(--bt-brown);
    font-size: 13px;
    font-weight: 800;
}

.bt-log-card .bt-weather-line {
    color: var(--bt-green-deep);
}

.bt-log-card p {
    margin: 8px 0 0;
    color: var(--bt-muted);
    line-height: 1.6;
}

.bt-date-popover {
    position: fixed;
    z-index: 5000;
    width: min(430px, calc(100vw - 24px));
    padding: 18px;
    border: 1px solid rgba(83, 119, 90, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 70px rgba(37, 65, 43, 0.26);
}

.bt-date-popover[hidden] {
    display: none;
}

.bt-date-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.bt-date-title {
    color: var(--bt-green-deep);
    font-size: 20px;
    font-weight: 950;
}

.bt-date-nav,
.bt-date-day,
.bt-date-action {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.bt-date-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(123, 168, 142, 0.16);
    color: var(--bt-green-deep);
    font-size: 22px;
    font-weight: 950;
}

.bt-date-week,
.bt-date-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.bt-date-week span {
    color: var(--bt-muted);
    font-size: 13px;
    font-weight: 950;
    text-align: center;
}

.bt-date-grid {
    margin-top: 8px;
}

.bt-date-day {
    min-height: 48px;
    border-radius: 16px;
    background: rgba(245, 236, 215, 0.6);
    color: var(--bt-ink);
    font-weight: 900;
}

.bt-date-day:hover {
    background: rgba(123, 168, 142, 0.2);
}

.bt-date-day.is-muted {
    color: rgba(102, 119, 99, 0.42);
}

.bt-date-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(123, 168, 142, 0.55);
}

.bt-date-day.is-selected {
    background: linear-gradient(135deg, var(--bt-green), var(--bt-green-deep));
    color: #fff;
}

.bt-date-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.bt-date-time label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--bt-muted);
    font-size: 13px;
    font-weight: 900;
}

.bt-date-time input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(83, 119, 90, 0.16);
    border-radius: 14px;
    padding: 10px 12px;
    color: var(--bt-ink);
    font: inherit;
}

.bt-date-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.bt-date-action {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(123, 168, 142, 0.16);
    color: var(--bt-green-deep);
    font-weight: 950;
}

.bt-date-action.is-primary {
    background: linear-gradient(135deg, var(--bt-pink), var(--bt-brown));
    color: #fff;
}

@media (max-width: 860px) {
    .bt-hero,
    .bt-detail-hero {
        display: grid;
    }

    .bt-stats,
    .bt-status-grid,
    .bt-preview-stats,
    .bt-two-col,
    .bt-value-grid,
    .bt-choice-grid,
    .bt-compact-section,
    .bt-form-grid,
    .bt-add-shell .bt-form-grid,
    .bt-log-form {
        grid-template-columns: 1fr;
    }

    .bt-garden-grid {
        grid-template-columns: 1fr;
    }

    .bt-garden-filters,
    .bt-garden-list-head,
    .bt-garden-row {
        grid-template-columns: 1fr;
    }

    .bt-garden-list-head {
        display: none;
    }

    .bt-calendar-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .bt-detail-image {
        width: 100%;
        min-height: 220px;
    }

    .bt-auth-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .bt-auth-intro {
        padding: 28px 24px 24px;
    }

    .bt-auth-intro .bt-ghost-btn {
        margin-top: 20px;
    }

    .bt-auth-grid,
    .bt-captcha-row {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .bt-garden-list-head {
        display: none;
    }

    .bt-garden-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .bt-garden-row > div {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .bt-garden-row > div::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 12px;
        color: #666;
        min-width: 60px;
        flex-shrink: 0;
    }

    .bt-garden-filters {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .bt-garden-filter-item {
        padding: 8px 12px;
        font-size: 13px;
    }

    .bt-detail-hero {
        padding: 16px;
    }

    .bt-detail-image {
        width: 100%;
        min-height: 180px;
        border-radius: 12px;
    }

    .bt-detail-info {
        padding: 12px;
    }

    .bt-detail-name {
        font-size: 20px;
    }

    .bt-detail-species {
        font-size: 13px;
    }

    .bt-status-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 12px;
    }

    .bt-status-card {
        padding: 10px;
    }

    .bt-status-value {
        font-size: 18px;
    }

    .bt-status-label {
        font-size: 11px;
    }

    .bt-calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }

    .bt-calendar-day {
        aspect-ratio: 1;
        font-size: 12px;
        padding: 4px;
    }

    .bt-calendar-day.has-log {
        font-size: 10px;
    }

    .bt-log-form {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .bt-form-group label {
        font-size: 13px;
    }

    .bt-form-group input,
    .bt-form-group select,
    .bt-form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 40px;
    }

    .bt-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    .bt-btn-primary {
        padding: 12px 24px;
        font-size: 15px;
    }

    .bt-garden-add-shell {
        padding: 10px;
    }

    .bt-step-nav {
        flex-direction: column;
        gap: 8px;
    }

    .bt-step-item {
        padding: 8px 12px;
        font-size: 13px;
    }

    .bt-preview-panel {
        padding: 12px;
    }

    .bt-preview-title {
        font-size: 16px;
    }

    .bt-timeline-item {
        padding: 10px;
        gap: 8px;
    }

    .bt-timeline-dot {
        width: 10px;
        height: 10px;
    }

    .bt-timeline-line {
        width: 2px;
    }

    .bt-login-card {
        padding: 20px;
        margin: 20px 12px;
    }

    .bt-login-form {
        gap: 12px;
    }

    .bt-auth-card {
        grid-template-columns: 1fr;
    }

    .bt-profile-header {
        padding: 16px;
    }

    .bt-profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .bt-profile-stat-value {
        font-size: 18px;
    }

    .bt-profile-stat-label {
        font-size: 11px;
    }

    .bt-user-detail {
        padding: 12px;
    }

    .bt-user-detail dt {
        font-size: 12px;
    }

    .bt-user-detail dd {
        font-size: 14px;
    }

    .bt-calendar-toolbar {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .bt-calendar-nav {
        justify-content: space-between;
    }

    .bt-page .floating-chat-entry {
        right: 14px;
        bottom: 100px;
        padding: 11px 14px;
        font-size: 13px;
    }

    .bt-page .flower-chat-widget {
        right: 10px;
        bottom: 156px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 196px);
        border-radius: 20px;
    }

    .bt-page .flower-chat-messages {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .bt-status-grid {
        grid-template-columns: 1fr;
    }

    .bt-soil-panel .bt-soil-grid {
        grid-template-columns: 1fr;
    }

    .bt-calendar-grid {
        gap: 1px;
    }

    .bt-calendar-day {
        font-size: 11px;
        padding: 2px;
    }

    .bt-detail-name {
        font-size: 18px;
    }

    .bt-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

html:has(body.bt-garden-home),
body.bt-garden-home {
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(123, 168, 142, 0.22), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(244, 167, 167, 0.18), transparent 24%),
        linear-gradient(180deg, #eef6ea 0%, #f7f1df 42%, #eaf3e4 100%);
}

body.bt-garden-home .bt-shell {
    display: flex;
    flex-direction: column;
    width: min(1180px, calc(100% - 28px));
    height: 100vh;
    max-height: 100vh;
    margin: 0 auto;
    padding: 14px 0 16px;
    overflow: hidden;
}

body.bt-garden-home .bt-hero {
    flex-shrink: 0;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 18%, rgba(244, 167, 167, 0.22), transparent 26%),
        linear-gradient(135deg, rgba(36, 79, 43, 0.96), rgba(123, 168, 142, 0.88));
}

body.bt-garden-home .bt-kicker {
    margin: 0 0 4px;
    font-size: 12px;
}

body.bt-garden-home .bt-hero h1 {
    font-size: clamp(24px, 3vw, 34px);
}

body.bt-garden-home .bt-hero > div > p:not(.bt-kicker) {
    display: none;
}

body.bt-garden-home .bt-hero-actions {
    gap: 8px;
    justify-content: flex-end;
    max-width: 720px;
}

body.bt-garden-home .bt-value-panel {
    display: none;
}

body.bt-garden-home .bt-stats {
    flex-shrink: 0;
    gap: 12px;
    margin: 12px 0;
}

body.bt-garden-home .bt-stats > div {
    padding: 14px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(238, 245, 228, 0.92));
    box-shadow: 0 10px 24px rgba(45, 70, 44, 0.08);
}

body.bt-garden-home .bt-stats strong {
    font-size: 22px;
    color: var(--bt-green-deep);
}

body.bt-garden-home .bt-water-due {
    flex-shrink: 0;
    margin: 0 0 12px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 248, 236, 0.96), rgba(244, 236, 214, 0.9));
    border: 1px solid rgba(176, 122, 48, 0.22);
}

body.bt-garden-home .bt-notif-wrap {
    position: relative;
}

body.bt-garden-home .bt-notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(62, 92, 58, 0.22);
    border-radius: 999px;
    background: rgba(255, 253, 247, 0.92);
    color: var(--bt-green-deep);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

body.bt-garden-home .bt-notif-btn:hover {
    background: #fff;
    border-color: rgba(62, 92, 58, 0.4);
}

body.bt-garden-home .bt-notif-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #b45309;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 600;
}

body.bt-garden-home .bt-notif-badge.is-empty {
    display: none;
}

body.bt-garden-home .bt-notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    width: min(360px, calc(100vw - 32px));
    max-height: min(420px, 70vh);
    overflow: auto;
    padding: 12px;
    border-radius: 16px;
    background: #fffdf8;
    border: 1px solid rgba(62, 92, 58, 0.16);
    box-shadow: 0 16px 40px rgba(45, 70, 44, 0.16);
}

body.bt-garden-home .bt-notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px 8px;
    border-bottom: 1px solid rgba(62, 92, 58, 0.1);
}

body.bt-garden-home .bt-notif-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #5b6b55;
}

body.bt-garden-home .bt-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

body.bt-garden-home .bt-notif-item {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(238, 245, 228, 0.55);
}

body.bt-garden-home .bt-notif-item.is-unread {
    background: linear-gradient(180deg, rgba(255, 248, 236, 0.98), rgba(255, 241, 214, 0.9));
    border: 1px solid rgba(176, 122, 48, 0.2);
}

body.bt-garden-home .bt-notif-item-main strong {
    display: block;
    font-size: 14px;
    color: var(--bt-green-deep);
}

body.bt-garden-home .bt-notif-item-main p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #4d5c48;
}

body.bt-garden-home .bt-notif-item-main time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #7a8774;
}

body.bt-garden-home .bt-notif-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

body.bt-garden-home .bt-notif-item-actions button,
body.bt-garden-home .bt-notif-item-actions a {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(62, 92, 58, 0.25);
    background: #fff;
    color: var(--bt-green-deep);
    text-decoration: none;
    cursor: pointer;
}

body.bt-garden-home .bt-notif-water-done {
    background: var(--bt-green-deep) !important;
    color: #fff !important;
    border-color: transparent !important;
}

body.bt-garden-home .bt-notif-done-label {
    font-size: 12px;
    color: #5b6b55;
    font-style: normal;
}

body.bt-garden-home .bt-notif-empty {
    padding: 16px 8px;
    text-align: center;
    color: #6b7a66;
    font-size: 13px;
    list-style: none;
}

body.bt-garden-home .bt-water-due .bt-section-heading {
    margin-bottom: 12px;
}

body.bt-garden-home .bt-water-due h2 {
    margin: 4px 0 6px;
    font-size: 20px;
    color: #5a3a12;
}

body.bt-garden-home .bt-water-due p {
    margin: 0;
    color: #6d5638;
    font-size: 14px;
}

body.bt-garden-home .bt-water-due-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

body.bt-garden-home .bt-water-due-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 253, 247, 0.92);
    border: 1px solid rgba(176, 122, 48, 0.18);
}

body.bt-garden-home .bt-water-due-item:hover {
    border-color: rgba(176, 122, 48, 0.4);
}

body.bt-garden-home .bt-water-due-item strong {
    color: #3d6b45;
}

body.bt-garden-home .bt-water-due-item span,
body.bt-garden-home .bt-water-due-item em {
    font-style: normal;
    font-size: 13px;
    color: #6d5638;
}

body.bt-garden-home .bt-garden-board {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 16px 18px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(238, 245, 228, 0.88));
    border: 1px solid rgba(83, 119, 90, 0.14);
    box-shadow: 0 18px 40px rgba(45, 70, 44, 0.1);
}

body.bt-garden-home .bt-search {
    flex-shrink: 0;
    margin: 0 0 14px;
}

body.bt-garden-home .bt-garden-filters input,
body.bt-garden-home .bt-garden-filters select,
body.bt-garden-home .bt-garden-filters button {
    min-height: 40px;
    border-radius: 14px;
}

body.bt-garden-home .bt-garden-grid,
body.bt-garden-home .bt-empty {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

body.bt-garden-home .bt-garden-grid {
    align-content: start;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    padding: 2px 2px 8px;
}

body.bt-garden-home .bt-plant-card {
    background: linear-gradient(180deg, #fffdf8, #f4f8ec);
}

body.bt-garden-home .bt-plant-card img,
body.bt-garden-home .bt-plant-emoji {
    height: 168px;
}

body.bt-garden-home .bt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.bt-garden-home .bt-empty div {
    font-size: 48px;
}

body.bt-garden-home .bt-empty h2 {
    color: var(--bt-green-deep);
}

body.bt-garden-home .bt-empty p {
    max-width: 360px;
}

body.bt-garden-home .bt-floating-add {
    display: none;
}

body.bt-garden-home .floating-chat-entry {
    bottom: 22px !important;
}

body.bt-garden-home .flower-chat-widget {
    bottom: 78px !important;
}

@media (max-width: 860px) {
    body.bt-garden-home .bt-hero {
        align-items: flex-start;
        padding: 14px 16px;
    }

    body.bt-garden-home .bt-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    body.bt-garden-home .bt-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.bt-auth-page .bt-auth-scene {
        margin-top: 22px;
    }
}

body.bt-garden-detail .bt-shell,
body.bt-garden-profile .bt-shell {
    width: min(1180px, calc(100% - 28px));
}

body.bt-garden-detail .bt-detail-hero {
    padding: 18px 20px;
    border-radius: 24px;
    align-items: center;
}

body.bt-garden-detail .bt-detail-image {
    width: 220px;
    min-height: 220px;
    border-radius: 22px;
}

body.bt-garden-detail .bt-detail-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

body.bt-garden-detail .bt-status-card {
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(238, 245, 228, 0.9));
}

body.bt-garden-detail .bt-status-card .bt-secondary-btn {
    margin-top: 10px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.bt-city-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.bt-week-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    overflow-x: auto;
}

.bt-week-days li {
    min-width: 120px;
    padding: 12px 12px 10px;
    border-radius: 16px;
    background: rgba(238, 246, 234, 0.8);
}

.bt-week-days strong {
    display: block;
    color: var(--bt-green-deep);
    font-size: 13px;
}

.bt-week-days span,
.bt-week-days p {
    display: block;
    margin: 6px 0 0;
    color: var(--bt-muted);
    font-size: 12px;
    line-height: 1.6;
}

.bt-week-days p {
    color: var(--bt-ink);
}

@media (max-width: 860px) {
    .bt-week-days {
        grid-template-columns: repeat(7, minmax(140px, 1fr));
    }

    .bt-city-row {
        grid-template-columns: 1fr;
    }
}

.bt-timeline-progress {
    height: 8px;
    margin: 8px 0 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(123, 168, 142, 0.16);
}

.bt-timeline-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--bt-green-deep);
}

.bt-timeline-item.is-current {
    background: rgba(244, 167, 167, 0.12);
    border-radius: 16px;
    padding: 8px 10px 10px;
}

.bt-timeline-item.is-today .bt-timeline-dot {
    box-shadow: 0 0 0 6px rgba(49, 95, 67, 0.16);
}

.bt-plant-ai {
    padding: 22px 22px 18px;
}

.bt-plant-ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.bt-plant-ai-chips button {
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid rgba(83, 119, 90, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--bt-green-deep);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.bt-plant-ai-messages {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
    margin: 0 0 12px;
}

.bt-plant-ai-msg {
    width: fit-content;
    max-width: min(640px, 92%);
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.7;
}

.bt-plant-ai-msg.is-user {
    margin-left: auto;
    background: rgba(49, 95, 67, 0.9);
    color: #fff;
}

.bt-plant-ai-msg.is-bot {
    background: rgba(245, 236, 215, 0.7);
    color: var(--bt-ink);
}

.bt-plant-ai-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.bt-plant-ai-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(83, 119, 90, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--bt-ink);
    font: inherit;
    resize: vertical;
}

body.bt-garden-profile .bt-hero {
    padding: 18px 22px;
}

body.bt-garden-profile .bt-form-card {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(238, 245, 228, 0.9));
}

@media (max-width: 860px) {
    body.bt-garden-detail .bt-detail-image,
    body.bt-garden-detail .bt-detail-image img {
        width: 100%;
        min-height: 180px;
        height: 180px;
    }

    .bt-plant-ai-form {
        grid-template-columns: 1fr;
    }
}

body.bt-garden-home .bt-plant-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.bt-garden-home .bt-plant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(45, 70, 44, 0.16);
}

body.bt-garden-home .bt-plant-card-stage {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(49, 95, 67, 0.1);
    color: var(--bt-green-deep);
    font-style: normal;
    font-size: 12px;
}

html:has(body.bt-garden-profile),
body.bt-garden-profile,
html:has(body.bt-garden-detail),
body.bt-garden-detail {
    background:
        radial-gradient(circle at 8% 0%, rgba(123, 168, 142, 0.2), transparent 26%),
        radial-gradient(circle at 92% 6%, rgba(244, 167, 167, 0.16), transparent 22%),
        linear-gradient(180deg, #eef6ea 0%, #f7f1df 46%, #eaf3e4 100%);
}

body.bt-garden-profile .bt-hero {
    background:
        radial-gradient(circle at 86% 16%, rgba(244, 167, 167, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(36, 79, 43, 0.96), rgba(123, 168, 142, 0.88));
}

body.bt-garden-profile .bt-profile-stats > div {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(238, 245, 228, 0.92));
}

body.bt-garden-profile .bt-form-card {
    padding: 22px 22px 20px;
    border-radius: 24px;
}

body.bt-garden-profile .bt-form-card .bt-kicker {
    color: var(--bt-green-deep);
    letter-spacing: 0.14em;
}

body.bt-garden-profile .bt-password-card {
    background: linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(247, 236, 226, 0.9));
}

body.bt-garden-detail .bt-hero-actions {
    position: relative;
}

.bt-share-toast {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 8;
    width: min(360px, 78vw);
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(36, 79, 43, 0.94);
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 12px 28px rgba(36, 79, 43, 0.22);
}

body.bt-garden-detail .bt-plant-ai {
    background:
        radial-gradient(circle at 96% 8%, rgba(244, 167, 167, 0.16), transparent 22%),
        linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(236, 245, 228, 0.94));
}

.bt-plant-ai-msg {
    white-space: pre-wrap;
}

body.bt-garden-detail .bt-timeline {
    padding: 16px 8px 12px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(238, 246, 234, 0.7), rgba(255, 253, 247, 0.4));
}

body.bt-garden-detail .bt-timeline-item.is-current {
    background: rgba(244, 167, 167, 0.18);
    box-shadow: inset 0 0 0 1px rgba(196, 149, 106, 0.18);
}

/* ============================================================
   花卉档案页严格一屏仪表盘 v5（?v=20260825-layout-v5）
   桌面端（≥1200px）：整页高度锁定（shell = 100vh - 24px，overflow
   hidden，body 不滚），hero 压缩 + 全宽三卡状态横排 + 三列布局
   （左列：配土/周简报；中列：时间线/日历/日志；右列：聊天面板），
   超高内容只在列内滚动，页面整体永不出现纵向滚动条；
   ≥1500px 右栏加宽到 500px；中屏/手机回退正常页面滚动。
   所有规则挂在 body.bt-garden-detail 下，不影响其他页面。
   ============================================================ */

/* v4：保持满宽 shell（覆盖上面的 1180px 限制）；高度锁定见下方 ≥1200px 块 */
body.bt-garden-detail .bt-shell {
    width: min(1920px, calc(100% - 24px));
}

/* 布局骨架（默认单栏，桌面端展开为三列）：左/中内容列 + 右侧聊天 */
body.bt-garden-detail .bt-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

/* 内容列：纵向堆叠，间距由容器 gap 统一（桌面端列内滚动） */
body.bt-garden-detail .bt-detail-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

body.bt-garden-detail .bt-detail-col > .bt-panel,
body.bt-garden-detail .bt-detail-col > .bt-two-col,
body.bt-garden-detail .bt-detail-col > .bt-alert {
    margin: 0;
}

body.bt-garden-detail .bt-detail-aside {
    min-width: 0;
}

/* —— 压缩策略（通吃，detail 作用域）：panel 内边距 / 标题 / 正文 / 间距 —— */
body.bt-garden-detail .bt-panel,
body.bt-garden-detail .bt-status-card {
    padding: 14px 16px;
    font-size: 13px;
}

body.bt-garden-detail .bt-section-heading h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

body.bt-garden-detail .bt-section-heading p,
body.bt-garden-detail .bt-status-card p {
    font-size: 13px;
    line-height: 1.55;
}

body.bt-garden-detail .bt-status-card strong {
    margin: 4px 0 6px;
    font-size: 18px;
}

body.bt-garden-detail .bt-status-card em {
    margin-top: 6px;
    font-size: 11px;
}

body.bt-garden-detail .bt-week-days {
    margin: 10px 0 0;
}

body.bt-garden-detail .bt-soil-panel .bt-soil-grid {
    gap: 12px;
    margin-top: 4px;
}

body.bt-garden-detail .bt-soil-panel .bt-soil-grid div {
    padding: 10px 12px;
    border-radius: 14px;
}

body.bt-garden-detail .bt-soil-panel .bt-soil-grid strong {
    margin: 4px 0 6px;
    font-size: 16px;
}

body.bt-garden-detail .bt-timeline {
    margin: 12px 0 0;
    padding: 12px 6px 8px;
}

body.bt-garden-detail .bt-calendar {
    gap: 10px;
}

body.bt-garden-detail .bt-calendar-toolbar strong {
    font-size: 15px;
}

body.bt-garden-detail .bt-calendar-nav {
    padding: 6px 12px;
}

body.bt-garden-detail .bt-calendar-month {
    padding: 10px;
    border-radius: 14px;
}

body.bt-garden-detail .bt-calendar-day {
    min-height: 40px;
    padding: 4px;
}

body.bt-garden-detail .bt-log-list {
    gap: 10px;
}

body.bt-garden-detail .bt-log-card {
    padding: 10px;
    border-radius: 14px;
}

body.bt-garden-detail .bt-plant-ai {
    padding: 14px 16px;
}

body.bt-garden-detail .bt-plant-ai-chips {
    margin: 0 0 10px;
}

body.bt-garden-detail .bt-plant-ai-chips button {
    min-height: 30px;
    padding: 5px 12px;
}

body.bt-garden-detail .bt-detail-aside {
    min-width: 0;
}

/* 聊天面板头：标题 + 清空按钮 */
body.bt-garden-detail .bt-plant-ai-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.bt-garden-detail .bt-plant-ai-head .bt-section-heading {
    flex: 1;
    min-width: 0;
}

.bt-plant-ai-clear {
    flex: none;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid rgba(83, 119, 90, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: #8a957f;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.bt-plant-ai-clear:hover {
    border-color: rgba(176, 87, 79, 0.42);
    color: #b0574f;
}

.bt-plant-ai-clear:disabled {
    opacity: 0.55;
    cursor: default;
}

/* 消息时间戳：气泡内小号灰色文字 */
.bt-plant-ai-msg-time {
    display: block;
    margin-top: 4px;
    color: #8a957f;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.bt-plant-ai-msg.is-user .bt-plant-ai-msg-time {
    color: rgba(255, 255, 255, 0.72);
}

/* ---- Image upload UI ---- */
.bt-plant-ai-form {
    display: block !important;
}

.bt-plant-ai-composer-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.bt-plant-ai-upload-btn {
    flex: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(83, 119, 90, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--bt-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.bt-plant-ai-upload-btn:hover {
    background: rgba(123, 168, 142, 0.15);
    color: var(--bt-green-deep);
    border-color: var(--bt-green);
}

.bt-plant-ai-upload-btn svg {
    width: 20px;
    height: 20px;
}

/* 拍照识病按钮 */
.bt-plant-ai-diagnose-btn {
    flex: none;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(180, 83, 83, 0.35);
    border-radius: 12px;
    background: rgba(253, 236, 236, 0.9);
    color: #b45353;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
}

.bt-plant-ai-diagnose-btn:hover {
    background: #fdecec;
    color: #8f3b3b;
    border-color: #b45353;
}

.bt-plant-ai-diagnose-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bt-plant-ai-diagnose-btn svg {
    width: 18px;
    height: 18px;
}

.bt-plant-ai-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    max-height: 120px;
    overflow-y: auto;
    padding: 4px;
}

.bt-plant-ai-image-preview[hidden] {
    display: none;
}

.bt-plant-ai-preview-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    flex: none;
}

.bt-plant-ai-preview-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(83, 119, 90, 0.15);
    display: block;
}

.bt-plant-ai-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    border: 2px solid #fff;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bt-plant-ai-preview-remove:hover {
    background: #c0392b;
}

.bt-message-image {
    display: block;
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin: 6px 0;
    cursor: pointer;
    object-fit: cover;
}

.bt-plant-ai-composer-row .bt-primary-btn {
    flex: none;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .bt-plant-ai-composer-row {
        flex-wrap: wrap;
    }

    .bt-plant-ai-composer-row .bt-primary-btn {
        width: 100%;
    }
}

/* 聊天面板改为 flex 纵向，消息区占满剩余高度 */
body.bt-garden-detail .bt-plant-ai {
    display: flex;
    flex-direction: column;
}

body.bt-garden-detail .bt-plant-ai-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

body.bt-garden-detail .bt-plant-ai-form {
    flex: none;
}

body.bt-garden-detail .bt-plant-ai-form textarea {
    min-height: 64px;
}

body.bt-garden-detail .bt-plant-ai .bt-form-tip {
    flex: none;
}

/* 中屏（768-1199px）：单栏，聊天面板不 sticky、固定约 560px 高 */
@media (min-width: 768px) and (max-width: 1199px) {
    body.bt-garden-detail .bt-plant-ai {
        height: 560px;
    }
}

/* 手机（<768px）：单栏，聊天区约 70vh（最小 480px） */
@media (max-width: 767px) {
    body.bt-garden-detail .bt-plant-ai {
        height: 70vh;
        min-height: 480px;
    }
}

/* —— 桌面端（≥1200px）：严格一屏仪表盘，整页高度锁定 —— */
@media (min-width: 1200px) {
    /* 页面级滚动彻底关闭：body 不滚，shell 钉死一屏 */
    body.bt-garden-detail {
        height: 100vh;
        overflow: hidden;
    }

    body.bt-garden-detail .bt-shell {
        width: min(1920px, calc(100% - 24px));
        height: calc(100vh - 24px);
        margin: 12px auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* hero 压缩：目标高度 ≤110px */
    body.bt-garden-detail .bt-detail-hero {
        flex: none;
        gap: 16px;
        padding: 12px 16px;
        border-radius: 18px;
    }

    body.bt-garden-detail .bt-detail-image {
        width: 84px;
        min-height: 84px;
        border-radius: 14px;
    }

    body.bt-garden-detail .bt-detail-image img {
        height: 84px;
    }

    body.bt-garden-detail .bt-detail-image span {
        font-size: 40px;
    }

    body.bt-garden-detail .bt-kicker {
        margin: 0 0 4px;
        font-size: 12px;
    }

    body.bt-garden-detail .bt-detail-title h1 {
        font-size: clamp(22px, 2vw, 28px);
        line-height: 1.2;
    }

    body.bt-garden-detail .bt-detail-title p {
        margin: 4px 0 0;
        font-size: 13px;
        line-height: 1.5;
    }

    body.bt-garden-detail .bt-copy-id {
        min-height: 30px;
        margin-top: 8px;
        padding: 4px 12px;
        font-size: 12px;
    }

    /* 编号使用提示在一屏模式下让位（小屏与打印仍显示） */
    body.bt-garden-detail .bt-id-hint {
        display: none;
    }

    body.bt-garden-detail .bt-user-pill {
        min-height: 32px;
        padding: 5px 12px;
    }

    /* 三卡状态：提升到 layout 之外，全宽一行，目标高度 ≤130px */
    body.bt-garden-detail .bt-shell > .bt-status-grid {
        flex: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin: 14px 0 0;
    }

    /* 状态卡说明文字最多两行，避免状态行被长文案撑高 */
    body.bt-garden-detail .bt-status-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* 天气卡的「定位城市」按钮挪到卡片右上角，省一行高度 */
    body.bt-garden-detail .bt-status-card {
        position: relative;
    }

    body.bt-garden-detail .bt-status-card .bt-secondary-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        margin: 0;
        min-height: 26px;
        padding: 0 10px;
        font-size: 12px;
        white-space: nowrap;
        max-width: 48%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.bt-garden-detail .bt-shell > .bt-alert {
        flex: none;
        margin: 14px 0 0;
    }

    /* 布局区：吃掉剩余高度，三列等高（grid 拉伸） */
    body.bt-garden-detail .bt-detail-layout {
        flex: 1 1 auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 460px;
        gap: 14px;
        margin-top: 14px;
        align-items: stretch;
    }

    /* 列内滚动：内容超高只在列里滚，页面整体永不滚动 */
    body.bt-garden-detail .bt-detail-col {
        min-height: 0;
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
    }

    /* 养护日志在中列宽度下纵向堆叠：表单在上、历史列表在下 */
    body.bt-garden-detail .bt-two-col {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    /* 历史列表封顶 + 内部滚动，避免日志把中列无限撑长 */
    body.bt-garden-detail .bt-log-list {
        max-height: 300px;
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
    }

    /* 聊天面板：高度由列高决定（不再 sticky / 不再固定 vh），消息区内部滚动 */
    body.bt-garden-detail .bt-detail-aside {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
    }

    body.bt-garden-detail .bt-detail-aside .bt-plant-ai {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        max-height: none;
    }
}

/* 宽屏（≥1500px）：右栏聊天面板加宽到 500px */
@media (min-width: 1500px) {
    body.bt-garden-detail .bt-detail-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 500px;
    }
}

/* —— 养护小贴士（知识库卡片） —— */
.bt-knowledge-section {
    padding: 14px 16px;
}

.bt-knowledge-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.bt-knowledge-tab {
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(83, 119, 90, 0.18);
    border-radius: 6px;
    background: rgba(245, 236, 215, 0.5);
    color: var(--bt-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bt-knowledge-tab:hover {
    background: rgba(123, 168, 142, 0.18);
    color: var(--bt-green-deep);
}

.bt-knowledge-tab.is-active {
    background: var(--bt-green-deep);
    color: #fff;
    border-color: var(--bt-green-deep);
}

.bt-knowledge-content {
    height: 300px;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
}

.bt-knowledge-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.bt-knowledge-item:last-child {
    border-bottom: none;
}

.bt-knowledge-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex: none;
    line-height: 1.4;
}

.bt-knowledge-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--bt-green-deep);
    margin-bottom: 2px;
}

.bt-knowledge-desc {
    display: block;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.bt-knowledge-tip {
    font-size: 13px;
    padding: 6px 0;
    border-left: 3px solid #487043;
    padding-left: 10px;
    color: var(--bt-ink);
    line-height: 1.6;
    margin-bottom: 6px;
}

.bt-knowledge-tip:last-child {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .bt-knowledge-content {
        height: auto;
        max-height: 360px;
    }
}

/* 打印：解除一屏锁定，回退正常文档流 */
@media print {
    body.bt-garden-detail {
        height: auto;
        overflow: visible;
    }

    body.bt-garden-detail .bt-shell {
        display: block;
        height: auto;
        overflow: visible;
        margin: 0 auto;
    }

    body.bt-garden-detail .bt-detail-hero {
        padding: 18px 20px;
    }

    body.bt-garden-detail .bt-detail-image {
        width: 190px;
        min-height: 190px;
        border-radius: 22px;
    }

    body.bt-garden-detail .bt-detail-image img {
        height: 100%;
    }

    body.bt-garden-detail .bt-detail-title h1 {
        font-size: clamp(30px, 4vw, 46px);
    }

    body.bt-garden-detail .bt-id-hint {
        display: block;
    }

    body.bt-garden-detail .bt-shell > .bt-status-grid {
        margin: 18px 0;
    }

    body.bt-garden-detail .bt-status-card {
        position: static;
    }

    body.bt-garden-detail .bt-status-card .bt-secondary-btn {
        position: static;
        max-width: none;
        white-space: normal;
    }

    body.bt-garden-detail .bt-status-card p {
        display: block;
        -webkit-line-clamp: none;
    }

    body.bt-garden-detail .bt-detail-layout {
        display: block;
        margin-top: 18px;
    }

    body.bt-garden-detail .bt-detail-col {
        display: block;
        overflow: visible;
        padding-right: 0;
    }

    body.bt-garden-detail .bt-detail-col > .bt-panel,
    body.bt-garden-detail .bt-detail-col > .bt-two-col {
        margin: 18px 0;
    }

    body.bt-garden-detail .bt-two-col {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    body.bt-garden-detail .bt-log-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    body.bt-garden-detail .bt-detail-aside {
        display: block;
        height: auto;
    }

    body.bt-garden-detail .bt-plant-ai {
        flex: none;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    body.bt-garden-detail .bt-plant-ai-messages {
        max-height: none;
        overflow: visible;
    }
}

/* 3.3 成就徽章墙 */
.bt-badge-wall {
    margin: 8px 0 20px;
    padding: 18px 20px 8px;
    border-radius: 20px;
    background: linear-gradient(160deg, #f7faf3 0%, #eef4e8 100%);
    border: 1px solid rgba(72, 112, 67, 0.12);
}

.bt-badge-wall .bt-section-heading {
    margin-bottom: 12px;
}

.bt-badge-wall .bt-section-heading h2 {
    margin: 4px 0;
    font-size: 20px;
    color: #213923;
}

.bt-badge-wall .bt-section-heading p:not(.bt-kicker) {
    margin: 0;
    color: #60705c;
    font-size: 14px;
}

.bt-badge-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.bt-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 16px;
    background: #fffcf6;
    border: 1px solid rgba(72, 112, 67, 0.1);
    min-height: 132px;
}

.bt-badge-item .bt-badge-icon {
    font-size: 28px;
    line-height: 1;
}

.bt-badge-item strong {
    font-size: 14px;
    color: #213923;
}

.bt-badge-item > span:last-child {
    font-size: 12px;
    color: #60705c;
    line-height: 1.4;
}

.bt-badge-item.is-off {
    opacity: 0.48;
    filter: grayscale(0.7);
}

.bt-badge-item.is-on {
    box-shadow: 0 8px 18px rgba(47, 95, 58, 0.08);
    border-color: rgba(47, 95, 58, 0.22);
}

/* 3.4 生长对比 */
.bt-garden-compare .bt-compare-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.bt-garden-compare .bt-compare-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #51624d;
}

.bt-garden-compare .bt-compare-form select {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(72, 112, 67, 0.2);
    padding: 8px 12px;
    background: #fffcf6;
    color: #213923;
}

.bt-compare-pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.bt-compare-pair figure {
    margin: 0;
    background: #fffcf6;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(72, 112, 67, 0.12);
}

.bt-compare-pair img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #e8f0e4;
}

.bt-compare-pair figcaption {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bt-compare-pair figcaption strong {
    color: #213923;
    font-size: 15px;
}

.bt-compare-pair figcaption span {
    color: #60705c;
    font-size: 13px;
}

.bt-compare-span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    color: #2f5f3a;
}

.bt-compare-span em {
    font-style: normal;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.bt-compare-span span {
    font-size: 13px;
    color: #60705c;
}

.bt-compare-bullets {
    margin: 0 0 16px;
    padding-left: 18px;
    color: #51624d;
    line-height: 1.7;
}

.bt-compare-stages {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-compare-stages li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #edf4e6;
    min-width: 100px;
}

.bt-compare-stages strong {
    color: #213923;
    font-size: 14px;
}

.bt-compare-stages span {
    color: #60705c;
    font-size: 12px;
}

.bt-compare-meta {
    margin: 0;
    color: #8a9685;
    font-size: 12px;
}

@media (max-width: 720px) {
    .bt-garden-compare .bt-compare-form {
        grid-template-columns: 1fr;
    }
    .bt-compare-pair {
        grid-template-columns: 1fr;
    }
    .bt-compare-span {
        flex-direction: row;
        gap: 6px;
        padding: 4px 0;
    }
}

/* 3.5 品种推荐 */
.bt-recommend-form fieldset {
    border: 0;
    margin: 0 0 18px;
    padding: 0;
}

.bt-recommend-form legend {
    font-weight: 700;
    color: #213923;
    margin-bottom: 10px;
}

.bt-recommend-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-recommend-option {
    cursor: pointer;
}

.bt-recommend-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bt-recommend-option span {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(72, 112, 67, 0.2);
    background: #fffcf6;
    color: #36563b;
    font-size: 14px;
}

.bt-recommend-option input:checked + span {
    background: #2f5f3a;
    border-color: #2f5f3a;
    color: #f6f8f1;
}

.bt-recommend-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.bt-recommend-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #fffcf6;
    border: 1px solid rgba(72, 112, 67, 0.12);
    text-decoration: none;
    color: inherit;
    min-height: 120px;
}

.bt-recommend-card img,
.bt-recommend-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: #e8f0e4;
}

.bt-recommend-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.bt-recommend-card strong {
    display: block;
    color: #213923;
    font-size: 16px;
}

.bt-recommend-card em {
    display: block;
    font-style: normal;
    color: #60705c;
    font-size: 12px;
    margin: 4px 0 6px;
}

.bt-recommend-card p {
    margin: 0 0 6px;
    color: #51624d;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bt-recommend-card ul {
    margin: 0;
    padding-left: 16px;
    color: #2f5f3a;
    font-size: 12px;
}

/* 4.6 月度排行榜 */
.bt-board-filter {
    margin-bottom: 14px;
    color: #51624d;
    font-size: 14px;
}

.bt-board-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bt-board-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fffcf6;
    border: 1px solid rgba(72, 112, 67, 0.12);
}

.bt-board-item.is-demo {
    border-style: dashed;
}

.bt-board-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf4e6;
    color: #2f5f3a;
    font-weight: 700;
}

.bt-board-main strong {
    display: block;
    color: #213923;
}

.bt-board-main em {
    font-style: normal;
    font-size: 12px;
    color: #8a9685;
    margin-left: 6px;
}

.bt-board-main span {
    color: #60705c;
    font-size: 13px;
}

.bt-board-stats {
    text-align: right;
}

.bt-board-stats strong {
    display: block;
    font-size: 20px;
    color: #2f5f3a;
}

.bt-board-stats span,
.bt-board-stats em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #60705c;
}

.bt-board-empty {
    color: #60705c;
}

.bt-demo-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf4e6;
    color: #36563b;
    font-size: 12px;
}
