:root {
    --gold: #d39a22;
    --gold-dark: #9a6a0d;
    --gold-soft: #fff3d6;
    --green: #496b43;
    --green-dark: #294a34;
    --green-soft: #e8f0e5;
    --ink: #22302a;
    --muted: #68736d;
    --canvas: #f6f5ef;
    --surface: #ffffff;
    --line: #e2e4dc;
    --danger: #a94335;
    --danger-soft: #f9e8e4;
    --shadow: 0 10px 28px rgba(42, 55, 46, 0.08);
    --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.navbar { max-width: 1440px; min-height: 72px; margin: auto; padding: 0 32px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, var(--gold), #b77a0a); font-weight: 800; box-shadow: 0 5px 14px rgba(185,125,13,.25); }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 11px; border-radius: 9px; color: #56615b; font-size: .91rem; font-weight: 600; text-decoration: none; transition: .18s ease; }
.nav-links a:hover { color: var(--green-dark); background: var(--green-soft); }
.nav-links a.active { color: var(--gold-dark); background: var(--gold-soft); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 0; border-radius: 9px; background: var(--green-soft); cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--green-dark); }
.nav-user { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.15; white-space: nowrap; }
.nav-user strong, .nav-user small { display: block; }
.nav-user strong { font-size: .82rem; }
.nav-user small { margin-top: 3px; color: var(--muted); font-size: .65rem; text-transform: capitalize; }
.nav-links .logout-link { color: var(--danger); }

.auth-page { min-height: 100vh; background: linear-gradient(135deg, #fffaf0, var(--canvas) 52%, var(--green-soft)); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(100%, 440px); padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.auth-brand { width: fit-content; margin: 0 0 32px; }
.auth-card h1 { margin: 4px 0 6px; font-size: 2rem; letter-spacing: -.04em; }
.auth-intro { margin: 0 0 24px; color: var(--muted); }
.auth-form { display: grid; gap: 9px; }
.auth-form label { margin-top: 8px; font-size: .8rem; font-weight: 700; }
.auth-form input { width: 100%; padding: 12px 13px; border: 1px solid #cfd4cd; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.auth-form input:focus { outline: 3px solid var(--gold-soft); border-color: var(--gold); }
.auth-form button { margin-top: 14px; padding: 12px 18px; border: 0; border-radius: 9px; color: #fff; background: var(--green-dark); font-weight: 800; cursor: pointer; }
.auth-form button:hover { background: var(--green); }
.form-message { margin: 0 0 16px; padding: 11px 13px; border-radius: 9px; font-size: .84rem; }
.form-error { color: var(--danger); background: var(--danger-soft); }
.form-success { color: var(--green-dark); background: var(--green-soft); }
.auth-back-link { display: block; margin-top: 20px; color: var(--green); font-size: .82rem; font-weight: 700; text-align: center; }

.page-shell { width: min(1380px, calc(100% - 64px)); min-height: calc(100vh - 148px); margin: 0 auto; padding: 36px 0 56px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 26px; padding: 31px 34px; border: 1px solid #e9dfc8; border-radius: 20px; background: linear-gradient(115deg, #fffaf0 0%, #fff 56%, #edf3e9 100%); box-shadow: var(--shadow); }
.hero h1, .module-hero h1 { margin: 2px 0 7px; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -.04em; }
.hero p, .module-hero p { margin: 0; color: var(--muted); }
.eyebrow { margin: 0 !important; color: var(--gold-dark) !important; font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.weather-summary { min-width: 365px; padding: 19px 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border: 1px solid #eee5cf; border-radius: 15px; background: rgba(255,255,255,.82); }
.weather-icon { color: var(--gold); font-size: 2.1rem; line-height: 1; }
.weather-icon-image { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.dashboard-meteocon { width: 66px; height: 66px; display: grid; place-items: center; flex: 0 0 auto; }
.dashboard-meteocon img { width: 100%; height: 100%; object-fit: contain; }
.meteocon-reduced { display: none; color: var(--green-dark); font-size: 3rem; line-height: 1; }
.weather-summary strong, .weather-summary span { display: block; }
.weather-summary strong { font-size: 1.55rem; }
.weather-summary div > span { color: var(--muted); font-size: .82rem; }
.weather-detail { padding-left: 16px; border-left: 1px solid var(--line); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.kpi-card { position: relative; overflow: hidden; padding: 21px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.kpi-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gold); }
.kpi-card.kpi-green::before { background: var(--green); }
.kpi-card.kpi-amber::before { background: #cf7e25; }
.kpi-card.kpi-red::before { background: var(--danger); }
.kpi-heading { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kpi-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-dark); background: var(--gold-soft); }
.kpi-green .kpi-icon { color: var(--green-dark); background: var(--green-soft); }
.kpi-red .kpi-icon { color: var(--danger); background: var(--danger-soft); }
.kpi-card > strong { display: block; margin-top: 10px; font-size: 2rem; line-height: 1; }
.kpi-card p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }

.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel h2 { margin: 3px 0 0; font-size: 1.2rem; letter-spacing: -.02em; }
.panel-header > a { color: var(--green); font-size: .8rem; font-weight: 700; text-decoration: none; }
.panel-header > a:hover { text-decoration: underline; }
.task-list, .schedule-list { margin: 0; padding: 0; list-style: none; }
.task-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); }
.task-list li:first-child, .schedule-list li:first-child { border-top: 0; padding-top: 0; }
.task-list li:last-child, .schedule-list li:last-child { padding-bottom: 0; }
.task-list strong, .task-list span, .schedule-list strong, .schedule-list span { display: block; }
.task-list li div > span, .schedule-list li div > span { margin-top: 2px; color: var(--muted); font-size: .78rem; }
.task-check { width: 21px; height: 21px; border: 2px solid #b6beb8; border-radius: 6px; background: #fff; cursor: pointer; }
.task-list li.completed { opacity: .58; }
.task-list li.completed strong { text-decoration: line-through; }
.task-list li.completed .task-check { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 4px #fff; }
.badge { padding: 4px 8px; border-radius: 20px; color: var(--green-dark); background: var(--green-soft); font-size: .68rem !important; font-weight: 800; }
.badge-high { color: var(--danger); background: var(--danger-soft); }
.badge-medium { color: #996111; background: var(--gold-soft); }
.schedule-list li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.schedule-list time { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-content: center; text-align: center; border-radius: 10px; color: var(--gold-dark); background: var(--gold-soft); line-height: 1.05; }
.schedule-list time strong { font-size: 1.05rem; }
.schedule-list time span { margin-top: 2px; font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.activity-list article { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.activity-list article:first-child { padding-top: 0; border: 0; }
.activity-list p { margin: 2px 0; color: var(--muted); font-size: .82rem; }
.activity-list time { color: #8b948f; font-size: .7rem; }
.status-dot { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.status-watch { background: #cf7e25; box-shadow: 0 0 0 4px var(--gold-soft); }
.project-list article { padding: 12px 0; border-top: 1px solid var(--line); }
.project-list article:first-child { padding-top: 0; border: 0; }
.project-list article > div:first-child, .progress-label { display: flex; justify-content: space-between; gap: 10px; }
.project-list article > div:first-child span, .progress-label { color: var(--muted); font-size: .75rem; }
.progress-label { margin: 8px 0 5px; }
.progress { height: 6px; overflow: hidden; border-radius: 6px; background: #eceee9; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #6e8d60); }
.alert-list { display: grid; gap: 10px; }
.alert-list article { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 13px; border-radius: 11px; }
.alert-list article > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.alert-list p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.alert-critical { background: var(--danger-soft); }
.alert-critical > span { color: #fff; background: var(--danger); }
.alert-warning { background: var(--gold-soft); }
.alert-warning > span { color: #fff; background: #c57b17; }
.alert-urgent { background: #fff0df; }
.alert-urgent > span { color: #fff; background: #d66f17; }
.forecast-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.forecast-grid div { padding: 12px 6px; text-align: center; border-radius: 10px; background: #f6f7f3; }
.forecast-grid span, .forecast-grid strong, .forecast-grid small { display: block; }
.forecast-grid span, .forecast-grid small { color: var(--muted); font-size: .72rem; }
.forecast-grid strong { margin: 4px 0; font-size: 1.35rem; }
.weather-note { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--green); color: var(--muted); background: var(--green-soft); font-size: .8rem; }

.module-hero { padding: 48px 4px 34px; border-bottom: 1px solid var(--line); }
.module-hero p:last-child { max-width: 700px; font-size: 1.02rem; }
.module-hero-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.button-primary, .button-secondary, .button-danger { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: .82rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-primary { color: #fff; background: var(--green-dark); }
.button-primary:hover { background: var(--green); }
.button-secondary { color: var(--green-dark); border-color: var(--line); background: #fff; }
.button-danger { color: var(--danger); border-color: #e7bcb4; background: var(--danger-soft); }
.button-danger:hover { color: #fff; background: var(--danger); }
.button-small { padding: 7px 11px; }
.hero-actions, .record-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 26px 0; }
.record-card, .form-panel, .table-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.record-card-heading { display: flex; justify-content: space-between; gap: 16px; }
.record-card h2 { margin: 4px 0 0; font-size: 1.25rem; }
.record-card > p { min-height: 48px; color: var(--muted); font-size: .85rem; }
.record-meta { display: flex; gap: 18px; margin: 18px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.status-pill { display: inline-flex; height: fit-content; padding: 4px 8px; border-radius: 20px; color: var(--muted); background: #eceee9; font-size: .68rem; font-weight: 800; text-transform: capitalize; }
.status-active { color: var(--green-dark); background: var(--green-soft); }
.status-attention { color: #996111; background: var(--gold-soft); }
.status-critical { color: var(--danger); background: var(--danger-soft); }
.status-inactive { color: #626966; background: #eceee9; }
.module-message { margin-top: 24px; }
.form-panel, .table-panel { margin-top: 26px; }
.form-panel { max-width: 850px; }
.module-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.apiary-form-panel { max-width: 1050px; }
.apiary-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hive-form-panel { max-width: 1050px; }
.hive-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-form label { display: grid; gap: 7px; color: var(--ink); font-size: .8rem; font-weight: 700; }
.module-form input, .module-form select, .module-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd4cd; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
.module-form textarea { resize: vertical; }
.module-form .field-help { color: var(--muted); font-size: .72rem; font-weight: 500; line-height: 1.45; }
.module-form .field-help a { color: var(--green-dark); }
.module-form input:focus, .module-form select:focus, .module-form textarea:focus { outline: 3px solid var(--gold-soft); border-color: var(--gold); }
.module-form .form-wide { grid-column: 1 / -1; }
.module-form .check-label { display: flex; align-items: center; gap: 9px; }
.check-label input { width: auto; }
.responsive-table { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th, .data-table td { padding: 13px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.notes-cell { max-width: 260px; color: var(--muted); }
.record-link { color: var(--green-dark); text-decoration: none; }
.record-link:hover { color: var(--gold-dark); text-decoration: underline; }
.record-card .record-address { min-height: 0; margin-top: -4px; }
.hive-card-list { display: grid; gap: 26px; padding: 28px 0; }
.hive-summary-card { position: relative; overflow: hidden; border: 1px solid rgba(41,74,52,.28); border-radius: 18px; background: var(--surface); box-shadow: 0 14px 36px rgba(34,48,42,.1); }
.hive-summary-card::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; content: ''; background: linear-gradient(90deg,var(--gold),#efc35e 38%,var(--green) 100%); }
.hive-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px 26px 20px; background: linear-gradient(135deg,#fff 55%,rgba(232,240,229,.72)); border-bottom: 1px solid rgba(41,74,52,.14); }
.hive-card-heading .eyebrow { margin-bottom: 3px; }
.hive-card-heading h2 { margin: 0; font-size: 1.42rem; line-height: 1.25; }
.hive-card-heading h2 a:hover { color: var(--gold-dark); }
.hive-card-heading .status-pill { padding: 6px 11px; font-size: .72rem; }
.hive-heading-actions { display: flex; align-items: center; gap: 9px; }
.hive-update-dialog { width: min(680px,calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 70px rgba(18,36,26,.35); }
.hive-update-dialog::backdrop { background: rgba(18,33,24,.56); backdrop-filter: blur(2px); }
.hive-update-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; padding: 27px; }
.hive-update-form label { display: grid; gap: 7px; color: var(--ink); font-size: .8rem; font-weight: 800; }
.hive-update-form input, .hive-update-form select, .hive-update-form textarea { width: 100%; box-sizing: border-box; }
.dialog-heading { display: flex; grid-column: 1 / -1; align-items: start; justify-content: space-between; gap: 15px; }
.dialog-heading h2 { margin: 2px 0 0; }
.dialog-close { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--green-dark); background: var(--green-soft); cursor: pointer; font-size: 1.35rem; line-height: 1; }
.update-urgency { width: fit-content; padding: 5px 9px; border-radius: 20px; font-size: .72rem; font-weight: 800; }
.urgency-green { color: var(--green-dark); background: var(--green-soft); }.urgency-gold { color: var(--gold-dark); background: var(--gold-soft); }.urgency-orange { color: #9c4e0f; background: #fff0df; }.urgency-red { color: var(--danger); background: var(--danger-soft); }
.hive-update-feed .panel-header { margin-bottom: 10px; }
.hive-update-feed article { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.hive-update-feed article:first-child { border-top: 0; }
.hive-update-feed p, .hive-update-feed time { margin: 4px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.update-color-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; }.update-color-dot.green { background: var(--green); }.update-color-dot.gold { background: var(--gold); }.update-color-dot.orange { background: #df7b21; }.update-color-dot.red { background: var(--danger); }
.hive-card-content { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, .8fr); gap: 24px; padding: 24px 26px; }
.hive-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 1px; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.hive-facts div { min-height: 82px; padding: 14px 15px; background: #fff; }
.hive-facts dt { margin-bottom: 7px; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.hive-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: .88rem; font-weight: 700; }
.hive-facts .hive-fact-count dd { color: var(--green-dark); font-size: 1.45rem; line-height: 1.1; }
.hive-map-preview { position: relative; min-height: 245px; overflow: hidden; border: 1px solid rgba(41,74,52,.24); border-radius: 13px; background: var(--surface-soft); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.hive-map-preview iframe { display: block; width: 100%; height: 245px; border: 0; }
.hive-map-link { position: absolute; right: 12px; bottom: 12px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.45); border-radius: 9px; color: #fff; background: rgba(39,78,55,.94); box-shadow: 0 5px 14px rgba(26,45,32,.22); font-size: .74rem; font-weight: 800; text-decoration: none; }
.hive-map-empty { display: grid; min-height: 230px; place-items: center; color: var(--muted); font-size: .82rem; font-weight: 700; }
.hive-notes { margin: 0 26px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); }
.hive-notes > strong { color: var(--ink); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.hive-notes p { margin: 7px 0 0; }
.hive-card-actions { align-items: center; justify-content: flex-end; padding: 17px 26px 21px; border-top: 1px solid var(--line); background: #fbfcfa; }
.hive-card-actions form { display: inline-flex; }
.hive-card-actions [aria-disabled="true"] { cursor: default; opacity: .72; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.detail-card, .inspection-status-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.detail-card > span, .inspection-status-card > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.detail-card p { margin: 0; color: var(--muted); }
.detail-wide { grid-column: 1 / -1; }
.hive-context-card { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr); overflow: hidden; margin-top: 26px; border: 1px solid rgba(41,74,52,.24); border-radius: 17px; background: #fff; box-shadow: 0 12px 30px rgba(34,48,42,.08); }
.hive-context-info { padding: 24px 26px; }
.hive-context-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.hive-context-heading h2 { margin: 2px 0 0; font-size: 1.25rem; }
.hive-context-info dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 22px; margin: 4px 0 0; }
.hive-context-info dl div { padding: 14px 0; border-bottom: 1px solid #eceee8; }
.hive-context-info dt, .hive-context-notes span { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.hive-context-info dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: .84rem; font-weight: 700; }
.hive-context-notes { padding-top: 17px; }
.hive-context-notes p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.hive-context-photo { min-height: 100%; margin: 0; overflow: hidden; background: #e9ece5; }
.hive-context-photo img { display: block; width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: center; }
.section-heading { margin: 34px 0 0; }
.section-heading h2 { margin: 4px 0 0; }
.compact-empty { min-height: 240px; }
.inspection-table { margin-top: 16px; }
.inspection-form-panel { max-width: 980px; }
.inspection-workspace { display: grid; gap: 20px; padding: 26px 0 40px; }
.inspection-card { overflow: hidden; border: 1px solid rgba(41,74,52,.25); border-radius: 17px; background: #fff; box-shadow: 0 10px 28px rgba(42,55,46,.07); }
.inspection-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,#fff 55%,rgba(255,243,214,.56)); }
.inspection-card-heading h2 { margin: 2px 0 0; font-size: 1.15rem; }
.inspection-card-heading .eyebrow { margin: 0; }
.inspection-overview-grid, .inspection-field-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; padding: 22px; }
.inspection-workspace label { display: grid; align-content: start; gap: 7px; color: var(--ink); font-size: .78rem; font-weight: 750; }
.inspection-workspace input, .inspection-workspace select, .inspection-workspace textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd4cd; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
.inspection-workspace input[readonly] { color: #4e5d55; background: #f4f6f2; }
.inspection-workspace input:focus, .inspection-workspace select:focus, .inspection-workspace textarea:focus { outline: 3px solid var(--gold-soft); border-color: var(--gold); }
.inspection-workspace textarea { resize: vertical; }
.inspection-workspace small { color: var(--muted); font-size: .68rem; font-weight: 500; }
.inspection-span-2 { grid-column: span 2; }
.inspection-span-all { grid-column: 1 / -1; }
.inspection-checks { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 22px 22px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }
.inspection-checks legend, .inspection-record-groups legend { padding: 0 7px; color: var(--green-dark); font-size: .73rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.inspection-checks label, .inspection-toggle { display: flex; align-items: center; grid-auto-flow: column; justify-content: start; gap: 8px; }
.inspection-checks input, .inspection-toggle input { width: auto; accent-color: var(--green-dark); }
.inline-checks { margin-bottom: 0; }
.inspection-section-gap { padding-top: 17px; }
.inspection-record-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; padding: 22px; }
.inspection-record-groups fieldset { display: grid; align-content: start; gap: 14px; margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; }
.inspection-optional { color: var(--muted); font-size: .72rem; font-weight: 650; }
.inspection-submit-bar { position: sticky; bottom: 14px; display: flex; justify-content: flex-end; gap: 10px; padding: 14px; border: 1px solid rgba(41,74,52,.2); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(34,48,42,.14); backdrop-filter: blur(8px); }
.check-group { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.check-group legend { padding: 0 6px; font-size: .8rem; font-weight: 800; }
.check-group label { display: flex; align-items: center; gap: 7px; }
.check-group input { width: auto; }
.inspection-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.inspection-details { margin-top: 14px; }
.status-healthy { color: var(--green-dark); background: var(--green-soft); }
.status-dot.status-attention { background: #cf7e25; box-shadow: 0 0 0 4px var(--gold-soft); }
.status-dot.status-critical { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.activity-empty { color: var(--muted); font-size: .85rem; }
.inspection-history { display: grid; gap: 14px; margin-top: 16px; }
.inspection-history-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.inspection-history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.inspection-history-heading time, .inspection-history-heading strong { display: block; }
.inspection-history-heading time { color: var(--muted); font-size: .75rem; }
.inspection-history-heading strong { margin-top: 3px; }
.inspection-history-card dl { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 16px 0 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inspection-history-card dl div { min-width: 110px; }
.inspection-history-card dt { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.inspection-history-card dd { margin: 2px 0 0; font-size: .82rem; font-weight: 700; }
.inspection-history-card p { margin: 8px 0; color: var(--muted); font-size: .82rem; }
.inspection-history-card > a { margin-top: 6px; }
.inspection-report { margin: 26px 0 42px; overflow: hidden; border: 1px solid rgba(41,74,52,.3); border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(34,48,42,.1); }
.inspection-report-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 26px; color: #fff; background: var(--green-dark); }
.inspection-report-header > div { display: flex; align-items: center; gap: 12px; }
.inspection-report-header strong, .inspection-report-header small { display: block; }
.inspection-report-header small { margin-top: 2px; color: rgba(255,255,255,.72); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.inspection-report-title { padding: 25px 28px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,#fff 50%,var(--gold-soft)); }
.inspection-report-title p, .inspection-report-title h2 { margin: 0; }
.inspection-report-title p { color: var(--gold-dark); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.inspection-report-title h2 { margin-top: 3px; font-size: 1.55rem; }
.inspection-report-title > span { color: var(--muted); font-size: .82rem; }
.inspection-report-section { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.inspection-report-section:last-child { border-bottom: 0; }
.inspection-report-section h3 { margin: 0 0 16px; color: var(--green-dark); font-size: .82rem; letter-spacing: .075em; text-transform: uppercase; }
.inspection-report-section dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.inspection-report-section dl > div { min-height: 78px; padding: 13px 15px; background: #fff; }
.inspection-report-section dt { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.inspection-report-section dd { margin: 7px 0 0; color: var(--ink); font-size: .84rem; font-weight: 700; }
.inspection-report-section .report-field-wide { grid-column: 1 / -1; min-height: 92px; }
.report-blank, .report-empty { color: #a3aaa6; font-weight: 500; font-style: italic; }
.report-records { display: grid; gap: 9px; }
.report-records > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; }
.report-records span { color: var(--muted); font-size: .8rem; }
.report-empty { margin: 0; padding: 16px; border: 1px dashed #cfd4cd; border-radius: 9px; }
.task-section { margin-top: 28px; }
.task-section .section-heading { margin: 0 0 12px; }
.task-card-list { display: grid; gap: 12px; }
.task-record { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.task-record-main { display: flex; justify-content: space-between; gap: 20px; }
.task-record h3 { margin: 8px 0 3px; }
.task-record p, .section-empty { margin: 0; color: var(--muted); font-size: .84rem; }
.task-record-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.task-record .record-actions form { display: inline-flex; }
.badge-critical { color: var(--danger); background: var(--danger-soft); }
.badge-low { color: var(--muted); background: #eceee9; }
.status-pending { color: #996111; background: var(--gold-soft); }
.status-in_progress { color: var(--green-dark); background: var(--green-soft); }
.status-completed { color: var(--green-dark); background: var(--green-soft); }
.status-cancelled { color: var(--muted); background: #eceee9; }
.dashboard-empty { display: block !important; color: var(--muted); font-size: .84rem; }
.task-check-static { display: block; }
.calendar-panel { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.calendar-month-overview { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.calendar-overview-heading { margin-bottom: 14px; }
.calendar-overview-heading h2 { margin: 3px 0 0; font-size: 1.2rem; }
.calendar-overview-scroll { max-height: 310px; overflow-y: auto; padding-right: 8px; }
.calendar-overview-event { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 14px 2px; border-top: 1px solid var(--line); }
.calendar-overview-event:first-child { padding-top: 2px; border-top: 0; }
.calendar-overview-event time { color: var(--muted); font-size: .72rem; }
.calendar-overview-event h3 { margin: 2px 0 0; font-size: .95rem; }
.calendar-overview-event h3 a { text-decoration: none; }
.calendar-overview-event h3 a:hover { color: var(--gold-dark); text-decoration: underline; }
.calendar-overview-event p { grid-column: 1 / -1; margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.calendar-type { align-self: start; padding: 4px 8px; border-left: 3px solid var(--green); border-radius: 5px; color: var(--green-dark); background: var(--green-soft); font-size: .66rem; font-weight: 800; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; text-align: center; }
.calendar-toolbar h2 { margin: 2px 0 0; font-size: 1.45rem; }
.calendar-today { color: var(--gold-dark); font-size: .72rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-weekdays span { padding: 8px; color: var(--muted); font-size: .68rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.calendar-day { min-height: 128px; padding: 8px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.calendar-day:nth-child(7n) { border-right: 1px solid var(--line); }
.calendar-grid .calendar-day:nth-last-child(-n+7) { border-bottom: 1px solid var(--line); }
.outside-month { background: #f7f7f3; color: #a4aaa6; }
.calendar-current-day { background: #fffaf0; }
.calendar-day-number { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; font-size: .76rem; font-weight: 800; }
.calendar-current-day .calendar-day-number { color: #fff; background: var(--gold); }
.calendar-events { display: grid; gap: 4px; margin-top: 5px; }
.calendar-event { overflow: hidden; padding: 5px 7px; border-left: 3px solid var(--green); border-radius: 5px; background: var(--green-soft); font-size: .68rem; text-decoration: none; }
.calendar-event strong, .calendar-event small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event small { color: var(--muted); }
.event-inspection, .event-apiary { border-color: var(--gold); background: var(--gold-soft); }
.event-maintenance, .event-property { border-color: #7b8b77; background: #edf0eb; }
.event-project { border-color: #7b6d9d; background: #f0edf6; }
.event-personal { border-color: #b06c7d; background: #f7edf0; }
.project-section { margin-top: 28px; }
.project-section .section-heading { margin: 0 0 14px; }
.project-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.project-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.project-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.project-card h3 { margin: 8px 0 0; }
.project-card > p { min-height: 42px; color: var(--muted); font-size: .83rem; }
.project-facts, .project-dates { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .74rem; }
.project-facts { margin: 13px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-dates { margin: 12px 0; }
.project-card .record-actions form { display: inline-flex; }
.status-planned { color: #996111; background: var(--gold-soft); }
.status-on_hold { color: #765924; background: #f2ead8; }
.project-closed { opacity: .88; }
.property-area-section { margin-top: 28px; }
.property-area-section .section-heading { margin: 0 0 14px; }
.property-area-grid { padding-top: 0; }
.property-area-card > p { min-height: 44px; }
.property-area-card .record-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
.inactive-area-section { opacity: .82; }
.weather-summary-unavailable { display: block; min-width: 330px; }
.dashboard-live-weather { display: grid; gap: 14px; }
.dashboard-weather-current { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; }
.dashboard-weather-current > img { width: 66px; height: 66px; border-radius: 12px; object-fit: cover; }
.dashboard-weather-current > div > strong, .dashboard-weather-current > div > span { display: block; }
.dashboard-weather-current > div > strong { font-size: 1.7rem; }
.dashboard-weather-current > div > span { color: var(--muted); font-size: .8rem; }
.dashboard-weather-current dl { display: flex; justify-content: flex-end; gap: 18px; margin: 0; }
.dashboard-weather-current dt { color: var(--muted); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.dashboard-weather-current dd { margin: 2px 0 0; font-size: .78rem; font-weight: 700; }
.dashboard-bee-condition { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); }
.dashboard-bee-condition span { color: var(--green-dark); font-size: .74rem; font-weight: 700; }
.dashboard-bee-condition strong { color: var(--green-dark); }
.dashboard-weather-unavailable { padding: 18px; border-radius: 11px; background: #f6f7f3; }
.dashboard-weather-unavailable p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.weather-source-small { margin: 9px 0 0; color: var(--muted); font-size: .66rem; }
.dashboard-weather-location, .weather-static-location { margin: -10px 0 14px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.weather-static-location { margin: 24px 0 -14px; }
.weather-unavailable { margin-top: 26px; padding: 54px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.weather-unavailable-mark { width: 40px; height: 40px; display: grid; place-items: center; margin: auto; border-radius: 50%; color: #fff; background: var(--gold); font-weight: 900; }
.weather-unavailable h2 { margin: 15px 0 5px; }
.weather-unavailable p { margin: 3px 0; color: var(--muted); }
.weather-hero { position: relative; overflow: hidden; margin-top: 26px; padding: 38px; border: 1px solid #e9dfc8; border-radius: 24px; background: linear-gradient(115deg,#fff7e5 0%,#fff 56%,#e8f2e5 100%); box-shadow: var(--shadow); }
.weather-hero::after { content: ''; position: absolute; width: 240px; height: 240px; right: -90px; top: -100px; border-radius: 50%; background: rgba(211,154,34,.1); animation: weather-glow 5s ease-in-out infinite; pointer-events: none; }
.weather-hero-content { position: relative; z-index: 2; }
.weather-hero.weather-theme-clear { background: linear-gradient(120deg,#fff5cf 0%,#fffdf5 52%,#e8f4ee 100%); }
.weather-hero.weather-theme-clear-night { color: #f8f7ed; border-color: #44576e; background: linear-gradient(120deg,#17283b 0%,#263d56 58%,#344d54 100%); }
.weather-hero.weather-theme-partly-cloudy { background: linear-gradient(120deg,#eff7fb 0%,#fffaf0 55%,#e6efe7 100%); }
.weather-hero.weather-theme-cloudy { background: linear-gradient(120deg,#e8eef1 0%,#f8f9f7 55%,#e5ede7 100%); }
.weather-hero.weather-theme-overcast { background: linear-gradient(120deg,#dce4e8 0%,#edf0ee 55%,#dfe8e2 100%); }
.weather-hero.weather-theme-rain { color: #f7fbff; border-color: #72899a; background: linear-gradient(120deg,#40596d 0%,#60798b 58%,#506d68 100%); }
.weather-hero.weather-theme-storm { color: #fff; border-color: #60687d; background: linear-gradient(120deg,#242c3b 0%,#414b60 58%,#394d4d 100%); }
.weather-hero.weather-theme-snow { background: linear-gradient(120deg,#f5fbff 0%,#fff 54%,#e4eef0 100%); }
.weather-hero.weather-theme-fog { background: linear-gradient(120deg,#e6ebea 0%,#f6f5ef 54%,#dde6e2 100%); }
.weather-hero.weather-theme-wind { background: linear-gradient(120deg,#e7f3f2 0%,#fbfcf6 54%,#e1ede3 100%); }
.weather-theme-clear-night .eyebrow, .weather-theme-rain .eyebrow, .weather-theme-storm .eyebrow,
.weather-theme-clear-night .weather-current-metrics span, .weather-theme-rain .weather-current-metrics span, .weather-theme-storm .weather-current-metrics span,
.weather-theme-clear-night .weather-detail-copy, .weather-theme-rain .weather-detail-copy, .weather-theme-storm .weather-detail-copy { color: rgba(255,255,255,.82); }
.weather-theme-clear-night .weather-current-metrics, .weather-theme-rain .weather-current-metrics, .weather-theme-storm .weather-current-metrics { border-color: rgba(255,255,255,.22); }
.meteocon-frame { width: 168px; height: 168px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.52); border-radius: 28px; background: rgba(255,255,255,.34); box-shadow: 0 16px 34px rgba(42,55,46,.13); backdrop-filter: blur(4px); }
.weather-hero-primary .meteocon-frame img { width: 156px; height: 156px; border-radius: 0; object-fit: contain; box-shadow: none; }
.weather-atmosphere { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.weather-atmosphere span { position: absolute; display: none; width: 190px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.24); filter: blur(2px); }
.weather-theme-partly-cloudy .weather-atmosphere span, .weather-theme-cloudy .weather-atmosphere span, .weather-theme-overcast .weather-atmosphere span { display: block; animation: weather-cloud-drift 18s linear infinite; }
.weather-atmosphere span:nth-child(1) { top: 18%; left: -15%; }
.weather-atmosphere span:nth-child(2) { top: 48%; left: -28%; width: 260px; animation-delay: -8s; animation-duration: 24s; }
.weather-atmosphere span:nth-child(3) { top: 76%; left: -20%; width: 145px; animation-delay: -13s; animation-duration: 21s; }
.weather-theme-clear .weather-atmosphere::before { content: ''; position: absolute; width: 250px; height: 250px; right: -40px; top: -80px; border-radius: 50%; background: radial-gradient(circle,rgba(255,205,72,.42),rgba(255,205,72,0) 68%); animation: weather-sun-breathe 6s ease-in-out infinite; }
.weather-theme-clear-night .weather-atmosphere::before { content: ''; position: absolute; inset: 0; opacity: .42; background-image: radial-gradient(circle at 14% 18%,#fff 0 1px,transparent 2px),radial-gradient(circle at 62% 28%,#fff 0 1px,transparent 2px),radial-gradient(circle at 84% 72%,#fff 0 1px,transparent 2px); background-size: 170px 120px,220px 160px,260px 190px; animation: weather-stars 5s ease-in-out infinite; }
.weather-theme-rain .weather-atmosphere::before, .weather-theme-storm .weather-atmosphere::before { content: ''; position: absolute; inset: -80px 0 0; opacity: .18; background: repeating-linear-gradient(105deg,transparent 0 20px,rgba(255,255,255,.7) 21px 22px,transparent 23px 42px); background-size: 160px 160px; animation: weather-rainfall .85s linear infinite; }
.weather-theme-snow .weather-atmosphere::before { content: ''; position: absolute; inset: -60px 0 0; opacity: .5; background-image: radial-gradient(circle,#fff 0 3px,transparent 4px),radial-gradient(circle,#fff 0 2px,transparent 3px); background-size: 85px 85px,125px 125px; animation: weather-snowfall 8s linear infinite; }
.weather-theme-fog .weather-atmosphere::before { content: ''; position: absolute; inset: 12% -30%; opacity: .42; background: repeating-linear-gradient(0deg,transparent 0 38px,rgba(255,255,255,.8) 40px 58px,transparent 60px 92px); filter: blur(6px); animation: weather-fog-drift 14s ease-in-out infinite alternate; }
.weather-theme-wind .weather-atmosphere::before { content: ''; position: absolute; inset: 12% -20%; opacity: .25; background: repeating-linear-gradient(0deg,transparent 0 58px,rgba(255,255,255,.9) 60px 64px,transparent 66px 110px); transform: rotate(-5deg); animation: weather-wind-drift 7s ease-in-out infinite; }
.weather-hero-primary { display: flex; align-items: center; gap: 20px; }
.weather-hero-primary img { width: 150px; height: 150px; border-radius: 24px; object-fit: cover; box-shadow: 0 12px 28px rgba(42,55,46,.16); animation: weather-float 4s ease-in-out infinite; }
.weather-temperature { margin-top: 6px; font-size: clamp(3.7rem,8vw,6rem); font-weight: 850; line-height: .95; letter-spacing: -.07em; }
.weather-hero h2 { margin: 10px 0 0; font-size: clamp(1.35rem,3vw,1.8rem); }
.weather-current-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 24px 0 16px; }
.weather-current-metrics div { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.84); }
.weather-current-metrics span, .weather-current-metrics strong { display: block; }
.weather-current-metrics span { color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.weather-current-metrics strong { margin-top: 5px; font-size: 1.25rem; }
.weather-detail-copy { max-width: 1050px; margin: 0; color: #4f5d56; font-size: 1.08rem; line-height: 1.7; }
.guidance-note { margin: 7px 0 0; color: var(--muted); font-size: .95rem; }
.weather-hero ~ .section-heading h2 { font-size: 1.65rem; }
.bee-condition-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.bee-condition-card { min-height: 145px; padding: 0; border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; }
.bee-condition-card:hover { transform: translateY(-3px); box-shadow: 0 15px 34px rgba(42,55,46,.12); }
.bee-condition-card summary { display: block; min-height: 139px; padding: 24px; cursor: pointer; list-style: none; }
.bee-condition-card summary::-webkit-details-marker { display: none; }
.bee-condition-card summary::after { content: '+'; position: absolute; top: 16px; right: 17px; color: var(--green); font-size: 1.25rem; font-weight: 800; }
.bee-condition-card { position: relative; }
.bee-condition-card[open] summary::after { content: '−'; }
.bee-condition-card span, .bee-condition-card strong { display: block; }
.bee-condition-card span { min-height: 48px; color: #526058; font-size: .93rem; font-weight: 750; line-height: 1.35; }
.bee-condition-card strong { margin-top: 10px; font-size: 1.55rem; }
.bee-condition-card small { display: block; margin-top: 7px; color: var(--green); font-size: .72rem; font-weight: 800; }
.rating-excellent { border-color: var(--green); }
.rating-good { border-color: #789362; }
.rating-fair { border-color: var(--gold); }
.rating-poor { border-color: var(--danger); }
.weather-alerts { margin-top: 17px; padding: 18px; border: 1px solid #e4c574; border-left: 6px solid var(--gold); border-radius: 16px; background: var(--gold-soft); }
.weather-alerts h2 { margin: 0 0 10px; font-size: 1.15rem; }
.weather-alert { padding: 13px 0; border-top: 1px solid rgba(154,106,13,.22); }
.weather-alert:first-of-type { border-top: 0; }
.weather-alert p { margin: 6px 0; color: #5c594e; font-size: .9rem; line-height: 1.45; white-space: pre-line; }
.weather-alert a, .condition-links a { color: var(--green); font-size: .82rem; font-weight: 800; }
.weather-alert.severity-severe, .weather-alert.severity-extreme { color: #8f241b; }
.condition-evidence { padding: 0 24px 21px; border-top: 1px solid var(--line); }
.condition-evidence > p:first-child { margin: 15px 0 12px; color: #59635e; font-size: .86rem; line-height: 1.45; }
.condition-evidence dl { margin: 0; }
.condition-evidence dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .76rem; }
.condition-evidence dt { color: var(--muted); }
.condition-evidence dd { margin: 0; text-align: right; font-weight: 700; }
.condition-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0 0; }
.inspection-window-panel { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 30px; margin-top: 28px; padding: 30px 32px; border-left: 7px solid var(--gold); border-radius: 19px; background: var(--gold-soft); box-shadow: 0 9px 24px rgba(154,106,13,.09); }
.inspection-window-panel h2 { margin: 3px 0 0; }
.inspection-window-panel > div:last-child > strong { font-size: 1.65rem; line-height: 1.25; }
.inspection-window-panel p { margin: 8px 0 0; color: #59635e; font-size: 1rem; line-height: 1.55; }
.hourly-weather-scroll { display: flex; gap: 12px; margin-top: 15px; padding: 2px 2px 14px; overflow-x: auto; }
.hourly-weather-card { min-width: 220px; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.hourly-weather-card:hover { transform: translateY(-3px); border-color: #d9c99f; }
.hourly-weather-card time, .hourly-weather-card > strong, .hourly-weather-card > span { display: block; }
.hourly-weather-card time { color: var(--muted); font-size: .9rem; font-weight: 800; }
.hourly-weather-card img { width: 88px; height: 88px; margin: 12px 0; border-radius: 14px; object-fit: cover; animation: weather-float-small 5s ease-in-out infinite; }
.hourly-weather-card > strong { font-size: 2rem; }
.hourly-weather-card > span { min-height: 52px; color: #58645e; font-size: .9rem; line-height: 1.4; }
.hourly-weather-card dl { margin: 10px 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hourly-weather-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-size: .82rem; }
.hourly-weather-card dt { color: var(--muted); }
.hourly-weather-card dd { margin: 0; font-weight: 700; }
.rating-label { display: inline-flex; padding: 5px 10px; border-radius: 20px; color: var(--green-dark); background: var(--green-soft); font-size: .8rem; font-style: normal; font-weight: 800; }
.rating-label.rating-fair { color: var(--gold-dark); background: var(--gold-soft); }
.rating-label.rating-poor { color: var(--danger); background: var(--danger-soft); }
.weather-outlook-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 11px; margin-top: 15px; }
.weather-outlook-card { min-height: 255px; padding: 21px 15px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.weather-outlook-card:hover { transform: translateY(-3px); box-shadow: 0 15px 34px rgba(42,55,46,.12); }
.weather-outlook-card span, .weather-outlook-card small { display: block; }
.weather-outlook-card span { font-size: 1rem; font-weight: 800; }
.weather-outlook-card small { color: var(--muted); font-size: .82rem; }
.weather-outlook-card img { width: 92px; height: 92px; margin: 13px 0; border-radius: 15px; object-fit: cover; animation: weather-float-small 5.5s ease-in-out infinite; }
.weather-outlook-card > strong { display: block; font-size: 1.8rem; }
.weather-outlook-card p { min-height: 50px; margin: 8px 0; color: #58645e; font-size: .86rem; line-height: 1.35; }
.weather-attribution { margin: 30px 0 0; color: var(--muted); font-size: .88rem; }
.weather-attribution a { color: var(--green); font-weight: 700; }
.property-area-thumbnail { width: calc(100% + 42px); height: 185px; display: block; margin: -21px -21px 18px; object-fit: cover; border-radius: 18px 18px 0 0; }
.photo-management-panel, .project-file-explorer { padding: 24px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.photo-management-panel { margin-top: 24px; }
.photo-management-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 15px; margin-top: 17px; }
.photo-management-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.photo-management-grid img { width: 100%; height: 135px; display: block; object-fit: cover; }
.photo-management-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px; }
.photo-management-grid strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.text-button-danger { padding: 0; border: 0; color: var(--danger); background: transparent; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 800; }
.edit-project-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(310px,.55fr); align-items: start; gap: 24px; }
.project-file-explorer { position: sticky; top: 20px; }
.project-file-explorer .panel-header { align-items: start; }
.project-file-list { display: grid; gap: 10px; margin-top: 14px; }
.project-file-list article { display: grid; grid-template-columns: 60px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.project-file-preview { width: 60px; height: 52px; overflow: hidden; border-radius: 7px; background: var(--green-soft); }
.project-file-preview img { width: 100%; height: 100%; object-fit: cover; }
.project-file-list strong, .project-file-list span, .project-file-list a { display: block; }
.project-file-list strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.project-file-list span { margin: 3px 0; color: var(--muted); font-size: .69rem; }
.project-file-list a { color: var(--green); font-size: .72rem; font-weight: 800; }
.radar-section-heading { margin-bottom: 14px; }
.radar-section-heading > p:last-child { margin: 8px 0 0; color: var(--muted); }
.radar-panel { overflow: hidden; border: 1px solid #e3dfd2; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.weather-radar-map { width: 100%; height: 500px; background: linear-gradient(135deg,#e9f0ec,#f5f1e6); }
.weather-radar-map.is-unavailable { display: grid; place-items: center; min-height: 300px; height: auto; }
.weather-radar-map.is-unavailable::after { content: 'Map unavailable'; color: var(--muted); font-weight: 700; }
.radar-meta { min-height: 70px; padding: 13px 18px; display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: .8rem; }
.radar-meta > p { margin: 0; }
.radar-meta > p:last-child { margin-left: auto; text-align: right; }
.radar-meta a { color: var(--green); font-weight: 700; }
.radar-status { color: var(--green-dark); font-weight: 700; }
.radar-status.is-unavailable, .radar-unavailable { color: #9b3d30; }
.radar-legend { display: flex; align-items: center; gap: 9px; }
.radar-legend span { font-weight: 700; white-space: nowrap; }
.radar-legend img { display: block; max-width: 210px; max-height: 44px; object-fit: contain; }
.radar-unavailable { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); background: #fff7f4; font-weight: 700; }
.weather-radar-map .leaflet-control-zoom a, .weather-radar-map .leaflet-control-layers-toggle { color: var(--green-dark); }
.weather-radar-map .leaflet-bar, .weather-radar-map .leaflet-control-layers { border: 1px solid rgba(39,78,55,.22); border-radius: 10px; box-shadow: 0 8px 20px rgba(35,52,41,.14); }
.weather-radar-map .leaflet-bar a:first-child { border-radius: 9px 9px 0 0; }
.weather-radar-map .leaflet-bar a:last-child { border-radius: 0 0 9px 9px; }
.weather-radar-map .leaflet-control-attribution { color: #59655e; background: rgba(255,255,255,.88); }
.weather-radar-map .leaflet-control-attribution a { color: var(--green-dark); }
.property-radar-marker-wrap { background: transparent; border: 0; }
.property-radar-marker { position: relative; display: block; width: 28px; height: 28px; border: 4px solid #fff; border-radius: 50% 50% 50% 0; background: var(--gold); box-shadow: 0 4px 12px rgba(28,44,34,.35); transform: rotate(-45deg); }
.property-radar-marker::after { content: 'H'; position: absolute; inset: 2px; display: grid; place-items: center; color: #fff; font-size: .68rem; font-weight: 900; transform: rotate(45deg); }
.weather-radar-map .leaflet-popup-content-wrapper { border-radius: 12px; color: var(--ink); box-shadow: 0 10px 28px rgba(35,52,41,.2); }
@keyframes weather-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes weather-float-small { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes weather-glow { 0%,100% { transform: scale(.95); opacity: .55; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes weather-cloud-drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 360px)); } }
@keyframes weather-sun-breathe { 0%,100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes weather-stars { 0%,100% { opacity: .25; } 50% { opacity: .55; } }
@keyframes weather-rainfall { from { transform: translateY(-80px); } to { transform: translateY(80px); } }
@keyframes weather-snowfall { from { transform: translate3d(0,-50px,0); } to { transform: translate3d(45px,100px,0); } }
@keyframes weather-fog-drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@keyframes weather-wind-drift { 0%,100% { transform: translateX(-5%) rotate(-5deg); } 50% { transform: translateX(5%) rotate(-5deg); } }
.empty-state { min-height: 340px; display: grid; place-content: center; justify-items: center; padding: 60px 20px; text-align: center; }
.empty-state > span { padding: 7px 11px; border-radius: 7px; color: var(--gold-dark); background: var(--gold-soft); font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.empty-state h2 { margin: 18px 0 8px; font-size: 1.6rem; letter-spacing: -.03em; }
.empty-state p { max-width: 540px; margin: 0; color: var(--muted); }
.site-footer { width: min(1380px, calc(100% - 64px)); margin: auto; padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.site-footer p { margin: 0; }

@media (max-width: 1080px) {
    .navbar { padding: 0 22px; }
    .nav-toggle { display: block; }
    .nav-links { position: absolute; top: 71px; right: 22px; width: 230px; display: none; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
    .nav-links.open { display: grid; }
    .nav-links a { padding: 10px 12px; }
    .nav-user { margin: 5px 8px 0; padding: 10px 4px 5px; border-top: 1px solid var(--line); border-left: 0; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bee-condition-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .weather-outlook-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .page-shell, .site-footer { width: min(100% - 32px, 1380px); }
    .page-shell { padding-top: 20px; }
    .hero { align-items: stretch; flex-direction: column; padding: 24px; }
    .weather-summary { min-width: 0; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; }
    .module-hero-actions { align-items: flex-start; flex-direction: column; }
    .record-grid, .module-form { grid-template-columns: 1fr; }
    .hive-card-content { grid-template-columns: 1fr; }
    .hive-update-form { grid-template-columns: 1fr; }
    .hive-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-card-grid { grid-template-columns: 1fr; }
    .detail-grid, .inspection-summary { grid-template-columns: 1fr; }
    .hive-context-card { grid-template-columns: 1fr; }
    .hive-context-photo { max-height: 340px; }
    .hive-context-info dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .inspection-overview-grid, .inspection-field-grid, .inspection-record-groups { grid-template-columns: 1fr; }
    .inspection-span-2, .inspection-span-all { grid-column: auto; }
    .inspection-card-heading { align-items: flex-start; flex-direction: column; }
    .inspection-report-section dl { grid-template-columns: 1fr; }
    .inspection-report-section .report-field-wide { grid-column: auto; }
    .module-form .form-wide { grid-column: auto; }
    .bee-condition-grid, .weather-outlook-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .edit-project-layout { grid-template-columns: 1fr; }
    .project-file-explorer { position: static; }
    .inspection-window-panel { grid-template-columns: 1fr; }
    .dashboard-weather-current { grid-template-columns: auto 1fr; }
    .dashboard-weather-current dl { grid-column: 1 / -1; justify-content: flex-start; }
    .weather-radar-map { height: 420px; }
    .radar-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
    .radar-meta > p:last-child { margin-left: 0; text-align: left; }
    .calendar-panel { padding: 12px; overflow-x: auto; }
    .calendar-weekdays, .calendar-grid { min-width: 760px; }
}

@media (max-width: 480px) {
    .hive-facts { grid-template-columns: 1fr; }
    .hive-card-actions { align-items: stretch; flex-direction: column; }
    .hive-card-actions > *, .hive-card-actions form, .hive-card-actions button { width: 100%; text-align: center; }
}

@media print {
    @page { size: letter portrait; margin: .38in; }
    body { background: #fff; color: #111; }
    .site-header, .site-footer, .module-hero, .module-message, .report-screen-actions { display: none !important; }
    .page-shell { width: 100%; max-width: none; padding: 0; }
    .inspection-report { margin: 0; overflow: visible; border: 1px solid #9aa29c; border-radius: 0; box-shadow: none; font-size: 9pt; }
    .inspection-report-header { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .inspection-report-title { padding: 15px 20px; }
    .inspection-report-title h2 { font-size: 16pt; }
    .inspection-report-section { break-inside: avoid; padding: 11px 15px 13px; }
    .inspection-report-section h3 { margin-bottom: 8px; padding-left: 8px; border-left: 3px solid var(--gold); font-size: 8pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .inspection-report-section dl { grid-template-columns: repeat(3,minmax(0,1fr)) !important; border-radius: 5px; }
    .inspection-report-section dl > div { min-height: 48px; padding: 8px 10px; }
    .inspection-report-section .report-field-wide { grid-column: 1 / -1 !important; min-height: 54px; }
    .inspection-report-section dt { font-size: 6.5pt; }
    .inspection-report-section dd { margin-top: 4px; font-size: 8.5pt; }
    .report-blank { color: transparent; }
    .report-records { gap: 5px; }
    .report-records > div, .report-empty { padding: 7px 10px; }
}

@media (max-width: 500px) {
    .navbar { min-height: 64px; padding: 0 16px; }
    .brand strong { font-size: .92rem; }
    .brand small { font-size: .6rem; }
    .nav-links { top: 63px; right: 16px; left: 16px; width: auto; }
    .page-shell, .site-footer { width: min(100% - 24px, 1380px); }
    .hero h1, .module-hero h1 { font-size: 2rem; }
    .weather-summary { grid-template-columns: auto 1fr; }
    .weather-detail { grid-column: 1 / -1; padding: 10px 0 0; display: flex; justify-content: space-between; border-left: 0; border-top: 1px solid var(--line); }
    .kpi-grid { grid-template-columns: 1fr; }
    .panel { padding: 19px; }
    .panel-header { align-items: flex-end; }
    .forecast-grid { grid-template-columns: repeat(2, 1fr); }
    .task-list li { grid-template-columns: auto 1fr; }
    .task-list .badge { grid-column: 2; justify-self: start; }
    .weather-current-metrics { grid-template-columns: 1fr; }
    .weather-hero-primary { align-items: flex-start; }
    .weather-hero { padding: 25px; }
    .weather-hero-primary img { width: 100px; height: 100px; }
    .meteocon-frame { width: 112px; height: 112px; border-radius: 20px; }
    .weather-hero-primary .meteocon-frame img { width: 104px; height: 104px; }
    .weather-radar-map { height: 360px; }
    .radar-legend { width: 100%; align-items: flex-start; flex-direction: column; }
    .radar-legend img { max-width: 100%; }
    .bee-condition-grid, .weather-outlook-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .weather-hero::after, .weather-hero-primary img, .hourly-weather-card img, .weather-outlook-card img, .weather-atmosphere, .weather-atmosphere::before, .weather-atmosphere span { animation: none; }
    .weather-atmosphere { display: none; }
    .meteocon-animated { display: none; }
    .meteocon-reduced { display: block; }
    .bee-condition-card, .hourly-weather-card, .weather-outlook-card { transition: none; }
}
