: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;
}

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;
    gap: 12px;
    flex-wrap: wrap;
}

.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-body p {
    margin: 8px 0 0;
    color: var(--bt-muted);
    font-size: 13px;
    line-height: 1.7;
}

.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;
}

.bt-auth-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--bt-border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--bt-shadow);
    backdrop-filter: blur(18px);
}

.bt-auth-intro {
    padding: 36px;
    background: linear-gradient(135deg, rgba(49, 95, 67, 0.94), rgba(123, 168, 142, 0.82));
    color: #fff;
}

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

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

.bt-auth-forms {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.bt-auth-form {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.78);
}

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

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

.bt-captcha-row strong {
    display: grid;
    min-height: 48px;
    place-items: center;
    border: 1px dashed rgba(49, 95, 67, 0.32);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245, 236, 215, 0.9), rgba(255, 255, 255, 0.82));
    color: var(--bt-green-deep);
    font-size: 20px;
    letter-spacing: 0.18em;
    user-select: none;
}

.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-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;
    }

    .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-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;
    }
}
