/* Olea tablet comfort layer: readable at normal zoom from phone to wide desktop. */
:root{font:18px/1.55 "Plus Jakarta Sans",sans-serif}
body{font-size:18px}
small{font-size:16px}
.sidebar{width:260px;padding:26px 16px}
.workspace{margin-left:260px}
.brand-icon{width:48px;height:48px;font-size:26px}
.brand strong{font-size:36px}
.brand small{font-size:15px;letter-spacing:.08em;line-height:1.25}
.estate-card{margin:26px 2px;padding:15px;gap:12px}
.estate-symbol{width:48px;height:48px;font-size:16px}
.estate-card strong{font-size:17px}
.estate-card small{font-size:15px;line-height:1.3}
.nav-label{font-size:15px;letter-spacing:.06em;margin:0 10px 9px}
.field-label{margin-top:25px}
.side-nav{gap:5px}
.side-nav a{min-height:56px;padding:8px 13px;gap:13px;font-size:17px;line-height:1.25}
.side-nav a span{font-size:23px;width:25px}
.side-footer{font-size:20px;line-height:1.25}
.side-footer small{font-size:15px;line-height:1.3}
.topbar{height:82px;gap:18px;padding:0 30px}
.top-title{min-width:150px}
.eyebrow{font-size:15px;line-height:1.3;letter-spacing:.07em}
.top-title strong{font-size:23px}
.global-search{max-width:480px;height:56px;padding:0 17px}
.global-search input{font-size:17px}
.year-wrap select{min-height:56px;font-size:16px;padding:10px 32px 10px 15px}
.icon-button{width:56px;height:56px;font-size:25px}
.profile-badge{width:48px;height:48px;font-size:16px}
.page-content{max-width:1500px;padding:32px 34px 80px}
.page-heading{gap:24px;margin-bottom:24px}
.page-heading h1{font-size:clamp(36px,3vw,48px);line-height:1.1}
.lead{font-size:18px;line-height:1.5;max-width:760px}
.button{min-height:56px;padding:12px 20px;font-size:17px;line-height:1.25;border-radius:11px}
.button.large{min-height:64px;font-size:18px}
.quick-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.quick-actions .button{min-width:170px}
.card-heading h2{font-size:30px;line-height:1.15}
.text-link,.table-link{font-size:16px}
.stats-grid,.stats-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}
.stat-card{min-height:172px;padding:24px}
.stat-top{font-size:16px;line-height:1.3;letter-spacing:.02em}
.stat-top i{font-size:26px}
.stat-card>strong{font-size:clamp(36px,3vw,48px);margin:19px 0 7px;white-space:normal}
.stat-card>small{font-size:16px;line-height:1.3}
.overview-grid{grid-template-columns:1fr;gap:20px;margin-bottom:20px}
.chart-card,.activity-card,.block-card{padding:26px}
.activity-card{display:block}
.activity-row{min-height:74px;padding:12px 0;gap:15px}
.activity-icon{width:52px;height:52px;font-size:24px}
.activity-row strong{font-size:18px}
.activity-row small{font-size:15px;margin-top:3px}
.activity-row b{font-size:19px}
.month-chart{height:230px;gap:8px}
.month-track{height:190px}
.month-bar{width:min(100%,38px)}
.month-column span{height:28px;font-size:15px}
.chart-caption{font-size:16px}
.records-card,.gallery-preview,.tree-directory,.report-preview{padding:26px;margin-bottom:22px}
.data-table{font-size:17px;min-width:850px}
.data-table th{font-size:15px;letter-spacing:.03em;padding:16px 13px}
.data-table td{padding:18px 13px}
.data-table td strong{font-size:17px}
.data-table td small{font-size:15px}
.status{padding:7px 12px;font-size:15px}
.preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.preview-photo{height:240px}
.preview-photo span{font-size:16px;padding:26px 15px 15px}
.page-footer{font-size:15px}
.loading,.empty-state{padding:50px 22px}
.empty-state>span{font-size:36px}
.empty-state h3{font-size:28px}
.empty-state p{font-size:16px}
.filter-row{gap:12px;padding:24px 24px 17px}
.filter-row select,.filter-row input{height:56px;font-size:17px;padding:0 15px}
.filter-row .filter-search{min-width:250px}
.table-summary{font-size:16px;padding:0 24px 16px}
.tree-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tree-tile{min-height:86px;gap:14px;padding:16px}
.tree-icon{width:52px;height:52px;font-size:25px}
.tree-tile strong{font-size:18px}
.tree-tile small{font-size:15px}
.tree-tile b{font-size:19px}
.back-row{font-size:17px}
.detail-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:22px}
.tree-cover{height:270px}
.tree-cover-id{font-size:16px;padding:8px 12px}
.profile-content,.timeline-card,.record-summary,.record-media{padding:26px}
.profile-facts,.record-facts{gap:21px}
.profile-facts small,.record-facts small,.saved-facts small{font-size:15px;letter-spacing:.03em}
.profile-facts strong,.record-facts strong,.saved-facts strong{font-size:19px}
.muted{font-size:16px}
.timeline-row{min-height:88px;padding:18px 0;gap:16px}
.timeline-row small{font-size:15px}
.timeline-row strong{font-size:19px}
.timeline-row span span{font-size:16px}
.record-summary h3{font-size:27px}
.record-summary p{font-size:18px}
.record-image-grid{gap:14px}
.record-image-grid img{height:210px}
.field-layout{max-width:760px}
.scan-hero{min-height:164px;padding:28px}
.scan-hero .scan-symbol{width:76px;height:76px;font-size:42px}
.scan-hero strong{font-size:34px}
.scan-hero small{font-size:17px}
.manual-link{min-height:100px;padding:20px;gap:17px}
.manual-link>span:first-child{width:58px;height:58px;font-size:29px}
.manual-link strong{font-size:20px}
.manual-link small{font-size:16px}
.field-recent{padding:24px}
.field-record{min-height:78px;padding:13px 0;gap:15px}
.field-record strong{font-size:18px}
.field-record small{font-size:15px}
.field-record b{font-size:17px}
.sync-note{font-size:16px}
.scan-card{padding:24px}
.camera-frame{height:390px}
.scan-status{font-size:17px}
.scan-photo-button{display:flex;justify-content:center;align-items:center;width:100%;min-height:60px;margin-bottom:20px;font-size:18px;cursor:pointer}
.manual-form label{font-size:17px}
.manual-form input{min-height:56px;padding:11px 15px;font-size:18px}
.entry-form{gap:20px}
.form-card{padding:26px}
.field{gap:9px;margin-bottom:18px}
.field span{font-size:16px}
.field input,.field select,.field textarea{min-height:56px;padding:13px 16px;font-size:18px}
.field textarea{min-height:130px}
.form-row{gap:16px}
.kg-input input{font-size:36px}
.kg-input b{font-size:18px}
.match-pill,.tree-context span{font-size:15px;padding:8px 12px}
.photo-count{font-size:16px}
.photo-actions{gap:12px}
.photo-previews{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.photo-preview{height:130px}
.photo-preview button{width:42px;height:42px;font-size:25px}
.sticky-save{padding:13px}
.form-error{font-size:16px}
.saved-card{padding:38px}
.saved-icon{width:82px;height:82px;font-size:42px}
.saved-card h1{font-size:48px}
.saved-card>p:not(.eyebrow){font-size:18px}
.saved-facts{gap:13px;padding:20px}
.block-row>div{font-size:17px}
.block-row{margin:24px 0}
.progress-track{height:12px}
.tree-yields a{min-height:78px;align-items:center;padding:16px 0}
.tree-yields strong{font-size:19px}
.tree-yields small{font-size:15px}
.tree-yields b{font-size:17px}
.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:14px 26px 28px}
.photo-card img{height:245px}
.photo-card>div{padding:17px}
.photo-card strong{font-size:19px}
.photo-card small{font-size:15px}
.photo-card div a{font-size:16px}
.report-card{padding:28px}
.report-controls>.field{width:260px}
.report-controls strong{font-size:44px}
.report-controls small{font-size:16px}
.report-actions{gap:13px}
.modal{width:min(100%,620px);padding:32px}
.modal h2{font-size:36px}
.modal-close{width:48px;height:48px;font-size:28px}
.toast{font-size:16px;padding:15px 22px}
@media(max-width:1250px){
  .sidebar{width:222px}
  .workspace{margin-left:222px}
  .topbar{gap:12px;padding:0 22px}
  .top-title{min-width:120px}
  .page-content{padding:28px 24px 75px}
  .data-table,.data-table tbody{display:block;min-width:0}
  .data-table thead{display:none}
  .data-table tbody{display:grid;gap:16px}
  .data-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
  .data-table td{padding:0;border:0;min-width:0}
  .data-table td:nth-child(1){grid-column:2;grid-row:1;text-align:right}
  .data-table td:nth-child(2){grid-column:1;grid-row:1}
  .data-table td:nth-child(3){grid-column:1;grid-row:2}
  .data-table td:nth-child(4){grid-column:2;grid-row:2}
  .data-table td:nth-child(5){grid-column:1;grid-row:3}
  .data-table td:nth-child(6){grid-column:2;grid-row:3}
  .data-table td:nth-child(7){grid-column:1/-1;grid-row:4}
  .data-table td:nth-child(n+3):not(:last-child)::before{content:attr(data-label);display:block;color:var(--muted);font-size:15px;font-weight:700;margin-bottom:3px}
  .data-table td:nth-child(7) .table-link{min-height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px}
  .data-table .numeric{text-align:right}
  .activity-card{display:block}
}
@media(max-width:900px){
  .sidebar{display:none}
  .workspace{margin-left:0}
  .topbar{height:78px;padding:0 22px}
  .top-title{display:none}
  .mobile-brand{display:flex;align-items:center;gap:10px}
  .mobile-brand .brand-icon{width:43px;height:43px;font-size:24px}
  .mobile-brand strong{font-size:30px;color:var(--olive)}
  .global-search{max-width:none}
  .page-content{padding:28px 22px 110px}
  .mobile-nav{position:fixed;display:flex;align-items:center;justify-content:space-around;bottom:0;left:0;right:0;min-height:calc(78px + env(safe-area-inset-bottom));padding:7px 8px env(safe-area-inset-bottom);background:#fffefaed;backdrop-filter:blur(12px);border-top:1px solid var(--line);z-index:40}
  .mobile-nav a{min-width:56px;min-height:56px;display:grid;place-items:center;color:#64745e;font-size:14px;font-weight:700;line-height:1.1}
  .mobile-nav a span{font-size:25px}
  .mobile-nav a.mobile-add{width:60px;height:60px;border-radius:16px;transform:translateY(-10px)}
  .mobile-nav a.mobile-add span{font-size:30px}
  .mobile-nav a.active{color:var(--olive)}
  .toast{bottom:95px}
  .detail-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .topbar{height:72px;padding:0 16px;gap:9px}
  .mobile-brand .brand-icon{width:38px;height:38px;font-size:21px}
  .mobile-brand strong{font-size:27px}
  .top-controls{gap:8px}
  .global-search{display:none}
  .year-wrap select{min-height:48px;max-width:115px;padding:8px 20px 8px 9px;font-size:15px}
  .icon-button{width:48px;height:48px}
  .profile-badge{display:none}
  .page-content{padding:25px 16px 112px}
  .page-heading{gap:17px}
  .page-heading h1{font-size:38px}
  .lead{font-size:17px}
  .page-heading>.button{width:100%}
  .quick-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .quick-actions .button{min-width:0;width:100%;padding:10px;font-size:16px}
  .stats-grid,.stats-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .stat-card{min-height:150px;padding:16px}
  .stat-top{font-size:15px}
  .stat-card>strong{font-size:30px}
  .stat-card>small{font-size:15px}
  .chart-card,.activity-card,.block-card,.records-card,.gallery-preview,.tree-directory{padding:20px}
  .month-chart{gap:2px;height:180px}
  .month-track{height:135px}
  .month-column span{font-size:13px;height:24px}
  .preview-grid,.photo-gallery{grid-template-columns:1fr}
  .preview-photo{height:220px}
  .tree-grid{grid-template-columns:1fr}
  .filter-row{padding:18px;gap:10px}
  .filter-row .filter-search{min-width:100%}
  .filter-row select{max-width:none}
  .table-scroll{overflow:visible}
  .data-table{min-width:0}
  .scan-hero{min-height:145px;padding:20px}
  .scan-hero .scan-symbol{width:63px;height:63px;font-size:35px}
  .scan-hero strong{font-size:30px}
  .form-card{padding:20px}
  .photo-previews{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photo-gallery{gap:14px;padding:7px 17px 20px}
  .photo-card img{height:220px}
  .mobile-nav{min-height:calc(76px + env(safe-area-inset-bottom))}
  .mobile-nav a{min-width:53px;font-size:12px}
  .mobile-nav a span{font-size:23px}
  .report-controls{align-items:start;flex-direction:column}
  .report-controls>.field{width:100%}
  .report-controls>div:nth-child(2){text-align:left}
}
@media(max-width:430px){
  .quick-actions{grid-template-columns:1fr}
  .stats-grid,.stats-grid.two{grid-template-columns:1fr}
  .stat-card{min-height:130px}
  .form-row{grid-template-columns:1fr}
  .mobile-nav a{min-width:48px;font-size:11px}
}
@media print{
  .sidebar,.topbar,.mobile-nav,.quick-actions,.page-heading>.button,.report-actions,.page-footer{display:none!important}
  .workspace{margin:0}
  .page-content{padding:0}
  .data-table{display:table;min-width:0}
  .data-table thead{display:table-header-group}
  .data-table tbody{display:table-row-group}
  .data-table tr{display:table-row;border:0}
  .data-table td{display:table-cell}
  .data-table td::before{display:none!important}
}

/* Five large tablet destinations; secondary screens live in More. */
.mobile-nav .mobile-more{appearance:none;border:0;background:none;color:#64745e;font-family:inherit;font-weight:700;cursor:pointer}
.mobile-nav .mobile-more.active{color:var(--olive)}
.more-menu{display:grid;gap:10px;margin-top:18px}
.more-menu a{min-height:64px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--olive);font-size:19px;font-weight:700}
.more-menu a span{font-size:24px}
@media(max-width:900px){
  .mobile-nav a,.mobile-nav .mobile-more{min-width:56px;min-height:56px;display:grid;place-items:center;font-size:15px;line-height:1.1}
  .mobile-nav .mobile-more span{font-size:28px}
}
@media(max-width:430px){
  .mobile-nav a,.mobile-nav .mobile-more{min-width:52px;font-size:15px}
}

@media(max-width:1250px) and (min-width:901px){
  .top-title{display:none}
}

.match-pill{white-space:nowrap}
@media(max-width:900px){
  .sticky-save{position:static;bottom:auto}
}

@media(max-width:1250px){
  .detail-grid{grid-template-columns:1fr}
}

@media(max-width:430px){
  .saved-card{margin-top:16px;padding:24px}
  .saved-icon{width:68px;height:68px;font-size:36px;margin-bottom:12px}
  .saved-card h1{font-size:38px;line-height:1.05}
  .saved-card>p:not(.eyebrow){font-size:17px;line-height:1.4}
  .saved-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:14px 10px;margin:16px 0}
  .saved-facts small{font-size:15px;line-height:1.2}
  .saved-facts strong{font-size:17px;line-height:1.25}
  .saved-card>.button{min-height:56px;margin-top:8px}
}
@media(max-width:700px){.camera-frame{height:220px}}

/* Tree photo management */
.tree-photos-section{margin-top:20px;padding:26px}
.tree-photos-section .card-heading{gap:16px;flex-wrap:wrap}
.tree-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tree-photo-grid a{display:block;position:relative;overflow:hidden;border-radius:12px;background:var(--sage-wash)}
.tree-photo-grid img{display:block;width:100%;height:200px;object-fit:cover}
.tree-photo-grid span{position:absolute;left:12px;bottom:12px;padding:7px 11px;border-radius:8px;background:#fff;color:var(--olive);font-size:15px;font-weight:800}
.tree-photo-upload{display:inline-flex;cursor:pointer;margin:8px 0}
.tree-photo-manager-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.tree-photo-item{overflow:hidden;border:1px solid var(--line);border-radius:12px}
.tree-photo-item img{display:block;width:100%;height:170px;object-fit:cover}
.tree-photo-item>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;flex-wrap:wrap}
.tree-photo-item strong{font-size:16px;color:var(--olive)}
.tree-photo-item .button{min-height:44px;padding:8px 12px;font-size:15px}
@media(max-width:700px){
  .tree-photos-section{padding:18px}
  .tree-photo-grid,.tree-photo-manager-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .tree-photo-grid img,.tree-photo-item img{height:150px}
  .tree-photo-item>div{display:grid}
}

/* Language control and Greek typography */
.language-wrap select{min-height:56px;min-width:68px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--olive);font:700 16px "Plus Jakarta Sans",sans-serif;cursor:pointer}
:lang(el) body,:lang(el) button,:lang(el) input,:lang(el) select,:lang(el) textarea{font-family:"Noto Sans","Plus Jakarta Sans",sans-serif}
:lang(el) h1,:lang(el) h2,:lang(el) h3,:lang(el) .brand strong,:lang(el) .scan-hero strong,:lang(el) .saved-card h1{font-family:"Noto Sans","Plus Jakarta Sans",sans-serif}
@media(max-width:700px){.language-wrap select{min-height:48px;min-width:55px;padding:7px 8px;font-size:14px}}
@media(max-width:400px){.top-controls{gap:5px}.language-wrap select{min-width:48px;padding:6px 4px;font-size:13px}.mobile-brand strong{font-size:19px}}
.harvest-entry-row { display:flex; align-items:center; gap:1rem; border-bottom:1px solid var(--line, #e7e7dc); padding:.45rem 0; }
.harvest-entry-row:last-child { border-bottom:0; }
.harvest-entry-row > a:first-child { flex:1; min-width:0; display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.55rem 0; }
.harvest-entry-row > a:first-child span { display:flex; flex-direction:column; gap:.25rem; }
.harvest-entry-row > a:first-child small { color:var(--muted, #66705e); }
.harvest-entry-row .quick-actions { flex:none; display:flex; gap:.5rem; }
.harvest-entry-row .button { flex:none; min-height:44px; padding:.65rem 1rem; border:1px solid var(--line, #d9ddce); display:inline-flex; align-items:center; justify-content:center; }
@media (max-width:600px) { .harvest-entry-row { gap:.5rem; flex-wrap:wrap; } .harvest-entry-row .quick-actions { width:100%; } .harvest-entry-row > a:first-child { flex-direction:column; align-items:flex-start; gap:.3rem; } }

/* UI/UX pass 2026-11-14 */
/* Sidebar: scroll when the nav is taller than the viewport (768 px tablets). */
.sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff33 transparent}
.sidebar .side-footer{flex:none}

/* Tablet record cards: keep ID, token and block on separate lines. */
.data-table .record-id small{display:block;margin-top:2px;color:var(--muted);font-weight:500}
.data-table td:nth-child(4){white-space:nowrap}

/* Reserved QR labels collapse into one summary instead of a wall of tiles. */
.reserved-labels{margin-top:16px;border:1px dashed var(--line);border-radius:14px;background:var(--stone)}
.reserved-labels summary{display:flex;align-items:center;gap:16px;min-height:72px;padding:14px 18px;cursor:pointer;list-style:none}
.reserved-labels summary::-webkit-details-marker{display:none}
.reserved-labels summary>span:nth-child(2){flex:1;min-width:0}
.reserved-labels summary strong{display:block;color:var(--olive);font-size:18px}
.reserved-labels summary small{display:block;color:var(--muted);font-size:15px;margin-top:2px}
.reserved-count{display:grid;place-items:center;flex:none;min-width:52px;height:52px;padding:0 10px;border-radius:12px;background:var(--sage-wash);color:var(--olive);font-size:20px;font-weight:800}
.reserved-toggle{flex:none;color:var(--olive);font-weight:700;font-size:15px}
.reserved-toggle::after{content:" ▾"}
.reserved-labels[open] .reserved-toggle::after{content:" ▴"}
.reserved-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 16px}
.reserved-chips a{min-height:44px;display:inline-flex;align-items:center;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--olive);font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}
.reserved-labels>.button{margin:0 18px 18px}
@media(max-width:700px){.reserved-labels summary{flex-wrap:wrap}.reserved-toggle{width:100%;padding-left:68px}}

/* Feedback button: compact round button below desktop width so it stops covering content. */
.page-content{padding-bottom:110px}
@media(max-width:1250px){
  .feedback-button{width:60px;height:60px;min-height:0;padding:0;justify-content:center;border-radius:50%}
  .feedback-button span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .feedback-button span:first-child{font-size:26px}
}
@media(max-width:900px){.feedback-button{width:54px;height:54px;right:14px}.page-content{padding-bottom:calc(170px + env(safe-area-inset-bottom))}}

/* Phone/tablet bottom nav: five equal columns so labels never run together. */
@media(max-width:900px){
  .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));justify-items:center;gap:2px}
  .mobile-nav a,.mobile-nav .mobile-more{min-width:0;width:100%;gap:2px;font-size:13px;white-space:nowrap}
  .mobile-nav a.mobile-add{width:60px}
}
@media(max-width:430px){
  .mobile-nav{padding-left:4px;padding-right:4px}
  .mobile-nav a,.mobile-nav .mobile-more{font-size:11.5px;letter-spacing:-.01em}
}

/* Field Home: one-line sync status with a state colour, and tiles for secondary shortcuts. */
.field-home-wide .sync-note{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;margin:0 0 4px;min-height:56px;padding:10px 16px;text-align:left;color:var(--ink);font-size:16px}
.field-home-wide .sync-note>span:first-child{flex:none;font-size:14px;color:#4e9a46}
.field-home-wide .sync-note.pending>span:first-child{color:var(--gold)}
.field-home-wide .sync-note.offline{background:#fbf3e6;border-color:#ecd9b5}
.field-home-wide .sync-note.offline>span:first-child{color:var(--clay)}
.field-home-wide .sync-note .sync-text{flex:1;min-width:0}
.field-home-wide .sync-note .button{flex:none;min-height:48px}
.field-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.field-secondary .button{width:100%;min-height:60px;justify-content:center;text-align:center;border-radius:14px;background:var(--surface)}
@media(max-width:600px){.field-secondary{grid-template-columns:1fr;gap:8px}.field-secondary .button{justify-content:space-between;text-align:left}.field-secondary .button::after{content:"→";color:var(--muted)}}

/* Compact record cards: name + ID, then four facts on one row. */
@media(max-width:1250px){
  .records-table tr{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px;padding:16px 18px}
  .records-table td:nth-child(1){grid-column:3/5;grid-row:1}
  .records-table td:nth-child(2){grid-column:1/3;grid-row:1}
  .records-table td:nth-child(3){grid-column:1;grid-row:2}
  .records-table td:nth-child(4){grid-column:2;grid-row:2}
  .records-table td:nth-child(5){grid-column:3;grid-row:2}
  .records-table td:nth-child(6){grid-column:4;grid-row:2;text-align:right}
  .records-table td:nth-child(7){grid-column:1/-1;grid-row:3}
  .records-table td.numeric{text-align:left}
  .records-table td:nth-child(7) .table-link{min-height:44px}
}
@media(max-width:520px){
  .records-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  .records-table td:nth-child(1){grid-column:2;grid-row:1}
  .records-table td:nth-child(2){grid-column:1;grid-row:1}
  .records-table td:nth-child(3){grid-column:1;grid-row:2}
  .records-table td:nth-child(4){grid-column:2;grid-row:2;text-align:right}
  .records-table td:nth-child(5){grid-column:1;grid-row:3}
  .records-table td:nth-child(6){grid-column:2;grid-row:3}
  .records-table td:nth-child(7){grid-row:4}
}
.field-home-wide .sync-note .sync-text{color:var(--ink)}
@media(max-width:700px){
  .tree-directory .card-heading{flex-direction:column;align-items:stretch;gap:14px}
  .tree-directory .quick-actions{grid-template-columns:1fr}
  .filter-row>label:not(.filter-search){flex:1 1 100%}
  .filter-row>label select{width:100%}
}

/* Mill receipt reading */
.receipt-reader{display:grid;gap:10px;margin:4px 0 16px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--sage-wash)}
.receipt-reader-head strong{display:block;color:var(--olive);font-size:18px}
.receipt-reader-head small{display:block;color:var(--muted);font-size:15px;line-height:1.4;margin-top:3px}
.receipt-consent{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.4;cursor:pointer}
.receipt-consent input{width:22px;height:22px;margin-top:1px;flex:none}
.receipt-reader>.button{justify-self:start;min-height:52px}
.receipt-result{display:grid;gap:8px;padding:14px;border-radius:10px;background:var(--surface);font-size:15px;line-height:1.4}
.receipt-result p{margin:0}
.receipt-checks{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.receipt-checks li.ok{color:#3f6d38}
.receipt-checks li.warn,.receipt-warning{color:#8a4a12;font-weight:700}
.mill-form .field.from-receipt>span:first-child::after{content:attr(data-source);margin-left:8px;padding:2px 8px;border-radius:99px;background:var(--sage-wash);color:var(--olive);font-size:12px;font-weight:700;white-space:nowrap}
.mill-form .field.from-receipt input,.mill-form .field.from-receipt select{border-color:var(--sage);box-shadow:0 0 0 2px #7d927633}
@media(max-width:600px){.receipt-reader>.button{justify-self:stretch}}
/* Mill form sits in a narrow column on tablets: let paired fields stack instead of squeezing the oil amount. */
.mill-form .form-row{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.mill-form .field.from-receipt>span:first-child::after{display:inline-block;margin-top:2px}

/* Overview briefing: weather decisions, coming up, tip, prices, official announcements */
.overview-main-grid.overview-activity-only{grid-template-columns:1fr}
.weather-brief{margin-bottom:18px}
.weather-brief-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.weather-brief-head h2{margin:4px 0 0}
.weather-brief-now{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-top:4px}
.weather-brief-now>span{font-size:34px;line-height:1}
.weather-brief-now strong{font-size:42px;line-height:1;color:var(--olive)}
.weather-brief-now small{font-size:16px;color:var(--muted)}
.weather-signals{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.weather-signals li{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;font-size:17px;line-height:1.35;background:var(--sage-wash);color:var(--ink)}
.weather-signals li>span{flex:none;width:22px;text-align:center;font-weight:800}
.weather-signals li.warn{background:#fbefe2;color:#6d3a10}
.weather-signals li.good{background:#e6f1e1;color:#2f5528}
.weather-brief-days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}
.weather-brief-days>div{display:grid;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.weather-brief-days small{font-size:14px;color:var(--muted)}
.weather-brief-days b{font-size:17px}
.briefing-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px;align-items:start;margin-bottom:20px}
.briefing-grid .card{margin:0}
.coming-list{list-style:none;margin:0;padding:0;display:grid}
.coming-list li a{display:flex;align-items:center;gap:14px;min-height:64px;padding:10px 4px;border-bottom:1px solid var(--line);color:var(--ink)}
.coming-list li:last-child a{border-bottom:0}
.coming-list li a>span:first-child{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;background:var(--sage-wash);color:var(--olive);font-size:20px}
.coming-list li.warn a>span:first-child{background:#fbefe2;color:#8a4a12}
.coming-list li a>span:nth-child(2){flex:1;min-width:0}
.coming-list strong{display:block;font-size:17px}
.coming-list small{display:block;font-size:15px;color:var(--muted);margin-top:2px}
.coming-list b{color:var(--muted)}
.briefing-tip{padding:20px}
.briefing-tip p:last-child{margin:6px 0 0;font-size:17px;line-height:1.45}
.briefing-tip.good{border-color:#bcd7b2}
.briefing-tip.warn{border-color:#ecd1ad;background:#fdf7ef}
.briefing-market{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin-bottom:20px}
.briefing-market .card{margin:0}
.price-list,.news-list{list-style:none;margin:0;padding:0;display:grid}
.price-list li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.price-list li:last-child,.news-list li:last-child a{border-bottom:0}
.price-list strong{display:block;font-size:17px}
.price-list small{display:block;font-size:14px;color:var(--muted)}
.price-value{text-align:right;white-space:nowrap}
.price-value b{display:block;font-size:18px;color:var(--olive)}
.price-value .up{color:#2f6d28}
.price-value .down{color:#9a3d14}
.news-list li a{display:grid;gap:3px;padding:10px 0;border-bottom:1px solid var(--line);color:var(--ink)}
.news-list small{font-size:14px;color:var(--muted)}
.news-list em{margin-left:8px;padding:1px 8px;border-radius:99px;background:var(--sage-wash);color:var(--olive);font-style:normal;font-weight:700;font-size:12px}
.news-list strong{font-size:16px;line-height:1.35}
.briefing-source{margin:12px 0 0;font-size:13px;line-height:1.45;color:var(--muted)}
.briefing-source a{color:var(--olive);text-decoration:underline}
@media(max-width:900px){.briefing-grid,.briefing-market{grid-template-columns:1fr}}
@media(max-width:600px){.weather-brief-head{flex-direction:column}.weather-brief-head .button{width:100%}.weather-brief-days{grid-template-columns:repeat(2,minmax(0,1fr))}}
.coming-up,.oil-prices,.official-news{padding:24px}
.briefing-tip{padding:22px}
@media(max-width:700px){.coming-up,.oil-prices,.official-news,.briefing-tip{padding:18px}}
.region-picker{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin:4px 0 12px}
.region-picker label{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--olive)}
.region-picker select{min-height:48px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font:inherit;font-weight:600;color:var(--ink)}
.region-picker small{color:var(--muted);font-size:14px}
.news-region,.news-national{display:grid;gap:4px}
.news-region{padding:12px 14px;margin-bottom:12px;border-radius:12px;background:var(--sage-wash)}
.news-region h3,.news-national h3{margin:0;font-size:15px;color:var(--olive)}
.local-badge{margin-left:8px;padding:1px 8px;border-radius:99px;background:var(--sage-wash);color:var(--olive);font-style:normal;font-weight:700;font-size:12px}
@media(max-width:600px){.region-picker label{flex-direction:column;align-items:stretch;width:100%}.region-picker select{width:100%}}
/* Version and What's new */
.whats-new-button{appearance:none;border:0;background:none;padding:6px 0;min-height:44px;font:inherit;font-size:14px;color:var(--olive);text-decoration:underline;cursor:pointer}
.whats-new-dot{margin-left:8px;padding:1px 8px;border-radius:99px;background:var(--clay);color:#fff;font-size:12px;text-decoration:none;display:inline-block}
.whats-new-dialog{width:min(640px,calc(100vw - 32px));max-height:min(80vh,760px);padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink)}
.whats-new-dialog::backdrop{background:#1a221766}
.whats-new-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.whats-new-head h2{margin:0;font-size:26px}
.whats-new-release{border-top:1px solid var(--line);padding:10px 0}
.whats-new-release summary{display:flex;justify-content:space-between;gap:12px;align-items:baseline;min-height:44px;cursor:pointer;list-style:none}
.whats-new-release summary::-webkit-details-marker{display:none}
.whats-new-release summary small{color:var(--muted);white-space:nowrap}
.whats-new-release ul{margin:6px 0 0;padding-left:20px;display:grid;gap:8px;font-size:16px;line-height:1.45}
/* Keep the version and What's new reachable on phones, where the footer was hidden. */
@media(max-width:700px){.page-footer{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:20px;font-size:13px}.page-footer>span:last-child{display:none}}
@media print{.whats-new{display:none}}
