:root{--ai-bg:#031f12;--ai-card:rgba(5,45,24,.86);--ai-card2:rgba(9,63,35,.78);--ai-border:rgba(92,210,116,.28);--ai-green:#22c55e;--ai-green2:#15803d;--ai-text:#f3fff3;--ai-soft:#b8d5bd;--ai-warn:#facc15;--ai-red:#ef4444;--ai-blue:#38bdf8;--ai-shadow:0 22px 70px rgba(0,0,0,.34)}
*{box-sizing:border-box}.smart-plant-page{background:radial-gradient(circle at 26% 0%,#0f5130 0,#062817 34%,#03150d 100%);color:var(--ai-text);min-height:100vh}.smart-plant-page .navbar-wrap{position:sticky!important;top:0!important;left:0!important;width:100%!important;z-index:1000!important;margin:0!important;padding:10px 0!important;background:rgba(3,31,18,.86)!important;backdrop-filter:blur(16px)}.smart-plant-page .navbar-wrap .container{max-width:1500px!important}.smart-plant-page .navbar{margin:0!important}.ai-farm-shell{padding:12px 14px 18px;min-height:calc(100vh - 74px)}.ai-glass{background:linear-gradient(180deg,rgba(9,61,34,.92),rgba(3,32,18,.9));border:1px solid var(--ai-border);box-shadow:var(--ai-shadow);backdrop-filter:blur(16px)}
.ai-category-strip{max-width:1920px;margin:0 auto 12px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.ai-cat-card{min-height:78px;border:1px solid rgba(92,210,116,.22);border-radius:16px;background:linear-gradient(135deg,rgba(7,50,28,.92),rgba(4,30,17,.82));box-shadow:0 16px 40px rgba(0,0,0,.22);display:flex;align-items:center;gap:13px;padding:13px 16px;color:#ecfff0;cursor:pointer;transition:.2s}.ai-cat-card:hover,.ai-cat-card.active{transform:translateY(-2px);border-color:rgba(54,230,99,.62);box-shadow:0 18px 45px rgba(34,197,94,.18)}.ai-cat-card .emoji{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:rgba(34,197,94,.14);font-size:26px}.ai-cat-card b{display:block;font-size:17px}.ai-cat-card small{color:#b8d5bd;font-weight:800}
.ai-dashboard{max-width:1920px;margin:0 auto;display:grid;grid-template-columns:330px minmax(560px,1fr) 340px;gap:12px}.ai-side{border-radius:16px;overflow:hidden;padding:16px}.ai-brand-card{display:flex;align-items:center;gap:12px;padding-bottom:14px}.ai-logo{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#1d7c3c,#062b17);font-size:28px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.ai-brand-card h1{font-size:20px;line-height:1.1;margin:0;color:#fff;font-weight:950}.ai-brand-card p{margin:4px 0 0;color:var(--ai-soft)}.ai-tabs{display:grid;grid-template-columns:repeat(3,1fr);margin:0 -16px 18px;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}.ai-tabs button{border:0;background:transparent;color:#b7cdbb;text-transform:uppercase;font-weight:900;font-size:12px;padding:13px 8px;cursor:pointer}.ai-tabs button.active{background:linear-gradient(135deg,#15803d,#22c55e);color:#fff}.ai-section-title{margin:16px 0 12px;text-transform:uppercase;letter-spacing:.08em;color:#b8d5bd;font-weight:950;font-size:14px}.ai-field{display:grid;gap:8px;margin-bottom:13px;color:#fff;font-weight:850}.ai-field select,.ai-chat-input input,.ai-analysis-form input{width:100%;border:1px solid rgba(148,220,158,.18);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;padding:13px 15px;outline:0}.ai-field select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#d7f8dd 50%),linear-gradient(135deg,#d7f8dd 50%,transparent 50%);background-position:calc(100% - 21px) 20px,calc(100% - 15px) 20px;background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:40px}.ai-field option{background:#0b2e1b;color:#fff}.ai-add,.ai-calc-btn{width:100%;border:0;border-radius:10px;padding:15px 18px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-weight:950;text-transform:uppercase;box-shadow:0 14px 28px rgba(34,197,94,.24);cursor:pointer}.ai-add span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.8);margin-right:8px}.ai-reset{width:100%;margin-top:10px;border:1px solid rgba(104,210,123,.34);border-radius:10px;padding:13px;background:rgba(255,255,255,.04);color:#d8f7dc;text-transform:uppercase;font-weight:900;cursor:pointer}.ai-divider{height:1px;background:rgba(255,255,255,.08);margin:18px 0 4px}.ai-stats{display:grid;gap:9px}.ai-muted-card,.ai-stat-row{border-radius:10px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.07);padding:12px;color:#c5dbc8}.ai-stat-row{display:flex;justify-content:space-between;gap:12px}.ai-stat-row b{color:#fff}.ai-stat-row span:last-child{text-align:right;color:#eefcef;font-weight:850}
.ai-main{display:grid;grid-template-rows:minmax(430px,1fr) auto;gap:12px;min-width:0;position:relative}.ai-topbar{border-radius:0 0 16px 0;display:flex;align-items:center;gap:14px;padding:13px 16px;width:max-content;max-width:calc(100% - 16px);position:absolute;z-index:5;left:0;top:0}.ai-weather{min-width:112px}.ai-weather strong{display:block;font-size:19px;color:#fff}.ai-weather small{display:block;color:#b8d5bd}.ai-view-buttons{display:flex;gap:7px;margin-left:8px}.ai-view-buttons button{border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#d9f4de;font-weight:950;padding:13px 17px;cursor:pointer}.ai-view-buttons button.active{background:#22c55e;color:#fff}.ai-farm-stage{position:relative;border-radius:16px;overflow:hidden;min-height:560px;border:1px solid rgba(92,210,116,.22);background:linear-gradient(#83c4dc 0 32%,#3f8d45 32% 44%,#6b4b22 44% 100%);box-shadow:var(--ai-shadow)}.ai-hills{position:absolute;inset:0;background:radial-gradient(ellipse at 25% 24%,#416f39 0 14%,transparent 15%),radial-gradient(ellipse at 70% 24%,#375f33 0 18%,transparent 19%),linear-gradient(to bottom,rgba(255,255,255,.24),transparent 24%)}.ai-sun{position:absolute;left:70px;top:78px;width:72px;height:72px;border-radius:50%;background:#f8d84b;box-shadow:0 0 40px rgba(250,216,75,.45)}.ai-farm-lines{position:absolute;inset:39% 0 0;background:repeating-linear-gradient(105deg,rgba(255,255,255,.06) 0 3px,transparent 3px 68px),repeating-linear-gradient(0deg,rgba(15,65,28,.22) 0 10px,rgba(109,74,32,.18) 10px 22px);transform:perspective(780px) rotateX(42deg) scale(1.24);transform-origin:50% 0}.ai-crop-field{position:absolute;inset:42% 6% 6%;display:grid;grid-template-columns:repeat(12,1fr);gap:10px;transform:perspective(900px) rotateX(45deg);transform-origin:50% 0;align-content:end}.view-2d .ai-crop-field{inset:16% 5% 7%;transform:none;grid-template-columns:repeat(10,1fr);align-content:stretch}.view-2d .ai-farm-stage,.ai-farm-stage.view-2d{background:#6d4a24}.view-2d .ai-hills,.view-2d .ai-sun{display:none}.crop-cell{display:grid;place-items:center;min-height:48px;border-radius:12px;background:rgba(7,54,24,.24);font-size:28px;animation:cropPop .32s ease both}.view-2d .crop-cell{min-height:54px;border:1px solid rgba(255,255,255,.08);background:rgba(20,90,35,.42)}@keyframes cropPop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}.ai-empty-field{position:absolute;left:50%;top:54%;transform:translate(-50%,-50%);padding:14px 18px;border-radius:14px;background:rgba(0,0,0,.38);color:#effff1;text-align:center}.has-crop .ai-empty-field{display:none}.ai-bottom-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.ai-metric{border-radius:14px;padding:18px;min-height:190px}.ai-metric h3{margin:0 0 14px;text-transform:uppercase;letter-spacing:.04em;font-size:15px;color:#effff1}.ai-metric p{color:#c2dbc6;line-height:1.55}.ai-metric .big{font-size:27px;line-height:1.25;color:#fff;font-weight:950;margin:10px 0}.ai-ring{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#22c55e var(--score,85%),rgba(255,255,255,.14) 0);margin:12px auto;position:relative}.ai-ring:after{content:"";position:absolute;inset:15px;border-radius:50%;background:#07351e}.ai-ring span{position:relative;z-index:1;font-size:25px;font-weight:950;color:#fff}.risk-medium{color:var(--ai-warn)!important}.risk-low{color:#86efac!important}.risk-high{color:#ff7a7a!important}.ai-placeholder{color:#9db9a2!important;font-weight:800}
.ai-info-column{display:grid;grid-template-rows:auto minmax(260px,1fr);gap:12px}.ai-plant-card,.ai-chat{border-radius:16px;padding:16px}.ai-result-empty{min-height:280px;display:grid;place-items:center;text-align:center;color:#c3dbc7}.ai-card-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}.ai-card-head .icon{width:92px;height:92px;border-radius:24px;display:grid;place-items:center;font-size:62px;background:radial-gradient(circle,#22c55e22,#092f1a)}.ai-card-head h2{margin:0;color:#fff}.ai-badge{display:inline-block;margin-top:7px;background:#17883f;color:#fff;border-radius:8px;padding:7px 16px;font-weight:900}.ai-detail-list{display:grid;gap:9px}.ai-detail-row{display:grid;grid-template-columns:27px 1fr auto;gap:10px;border-bottom:1px solid rgba(255,255,255,.07);padding:9px 0;align-items:center;color:#e8f9ea}.ai-detail-row small{color:#b7d2bc;text-align:right}.ai-detail-row b{font-size:13px}.ai-stars{letter-spacing:1px;color:#facc15}.ai-drops{letter-spacing:1px;color:#38bdf8}.ai-detail-button{display:block;margin-top:16px;text-align:center;text-decoration:none;border-radius:10px;padding:14px;background:rgba(255,255,255,.10);color:#fff;font-weight:950;text-transform:uppercase}.ai-chat{display:grid;grid-template-rows:auto 1fr auto;min-height:310px}.ai-chat header{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.08)}.ai-chat header span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#0f7a3c}.ai-chat header button{margin-left:auto;border:0;background:transparent;color:#fff;font-size:20px}.ai-chat-body{padding:14px 0;display:grid;align-content:start;gap:12px;overflow:auto;max-height:340px}.ai-chat-body p{margin:0;border-radius:10px;background:rgba(255,255,255,.08);padding:12px;color:#e9ffed;line-height:1.45}.ai-chat-input{display:flex;gap:8px}.ai-chat-input button{border:0;border-radius:9px;background:#16a34a;color:#fff;width:48px;font-weight:900}.footer{margin-top:12px;padding:10px 0!important;background:rgba(3,31,18,.75)!important}.footer .bottom{padding:10px 0!important;border-top:1px solid rgba(255,255,255,.08)}
.ai-modal{position:fixed;inset:0;display:none;z-index:3000}.ai-modal.open{display:block}.ai-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62);backdrop-filter:blur(5px)}.ai-modal-panel{position:relative;max-width:860px;max-height:88vh;overflow:auto;margin:5vh auto;border-radius:20px;padding:22px}.ai-modal-close{position:absolute;right:17px;top:13px;border:0;background:rgba(255,255,255,.08);color:#fff;width:38px;height:38px;border-radius:50%;font-size:25px;cursor:pointer}.ai-modal-head{display:flex;gap:16px;align-items:center;margin-bottom:16px}.ai-modal-head span{width:68px;height:68px;border-radius:20px;display:grid;place-items:center;font-size:44px;background:rgba(34,197,94,.16)}.ai-modal-head h2{margin:0;color:#fff;font-size:26px}.ai-modal-head p{margin:5px 0 0;color:#b8d5bd}.ai-formula-note{border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.055);padding:14px;margin-bottom:15px;color:#d9f6dd;line-height:1.55}.ai-analysis-form{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.ai-analysis-form label{font-weight:850;color:#fff}.ai-analysis-form input{margin-top:7px}.ai-analysis-loading{display:none;margin-top:14px;color:#bff7c8;font-weight:900}.ai-analysis-loading.show{display:block}.ai-analysis-results{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.ai-result-chip{border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);padding:14px}.ai-result-chip small{color:#b8d5bd}.ai-result-chip b{display:block;color:#fff;font-size:22px;margin-top:7px}.ai-ai-comment{grid-column:1/-1;border-radius:14px;background:rgba(34,197,94,.10);border:1px solid rgba(34,197,94,.24);padding:14px;color:#eaffed;line-height:1.55}.ai-timeline{display:grid;gap:12px}.ai-time-row{display:grid;grid-template-columns:120px 1fr;gap:14px;padding:13px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}.ai-time-row b{color:#fff}.ai-time-row span{color:#b8d5bd}
@media(max-width:1500px){.ai-dashboard{grid-template-columns:310px minmax(500px,1fr) 320px}.ai-bottom-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:1180px){.ai-dashboard{grid-template-columns:1fr}.ai-category-strip{grid-template-columns:repeat(2,1fr)}.ai-info-column{grid-template-columns:1fr}.ai-topbar{position:relative;width:100%;border-radius:16px;margin-bottom:12px;justify-content:space-between}.ai-main{display:block}.ai-farm-stage{margin-bottom:12px}.ai-bottom-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.ai-farm-shell{padding:10px}.ai-category-strip{grid-template-columns:1fr}.ai-topbar{overflow:auto}.ai-weather{min-width:95px}.ai-farm-stage{min-height:500px}.ai-crop-field{grid-template-columns:repeat(6,1fr);gap:7px}.crop-cell{min-height:40px;font-size:24px}.ai-bottom-grid,.ai-analysis-form,.ai-analysis-results{grid-template-columns:1fr}.ai-detail-row{grid-template-columns:25px 1fr}.ai-detail-row small{grid-column:2;text-align:left}.ai-modal-panel{margin:2vh 10px;max-height:96vh}.ai-time-row{grid-template-columns:1fr}}

/* 20260709 datafix overrides */
.smart-plant-page{padding-top:0!important}.smart-plant-page .navbar-wrap{position:sticky!important;top:0!important;margin-top:0!important;padding-top:8px!important;padding-bottom:8px!important}.smart-plant-page .navbar-wrap::before,.smart-plant-page::before{display:none!important}.ai-farm-shell{padding-top:10px!important}.ai-plant-search{width:100%;border:1px solid rgba(92,210,116,.22);background:rgba(255,255,255,.06);color:#fff;border-radius:12px;padding:12px 14px;outline:0;margin-bottom:8px}.ai-plant-search::placeholder{color:rgba(232,255,235,.58)}.ai-plant-search:focus{border-color:rgba(34,197,94,.75);box-shadow:0 0 0 3px rgba(34,197,94,.12)}.crop-cell{border:0;background:rgba(17,84,43,.34);border-radius:14px;min-height:38px;font-size:28px;cursor:pointer;display:grid;place-items:center;transition:.18s}.crop-cell:hover{transform:translateY(-3px) scale(1.06);filter:drop-shadow(0 8px 14px rgba(34,197,94,.28))}.ai-farm-stage.view-2d .crop-cell{border-radius:8px;background:rgba(18,93,44,.5)}.ai-plant-summary{color:#d9f5dc;line-height:1.55;margin:10px 0 14px}.ai-detail-row small em{color:#8df0a8;font-style:normal;display:block;margin-top:5px}.ai-detail-button{width:100%;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;border:1px solid rgba(112,231,139,.22);background:linear-gradient(135deg,rgba(34,197,94,.25),rgba(255,255,255,.06));color:#fff;border-radius:12px;padding:14px 16px;font-weight:950;cursor:pointer}.ai-detail-button:hover{border-color:rgba(34,197,94,.7);color:#fff}.ai-detail-button.secondary{background:rgba(255,255,255,.06)}.ai-detail-modal-panel{width:min(980px,94vw);max-height:88vh;overflow:auto}.ai-detail-popup-head{margin-bottom:18px}.ai-detail-popup-head>span{width:64px;height:64px;border-radius:18px;background:rgba(34,197,94,.14);display:grid;place-items:center;font-size:38px;flex:0 0 auto}.ai-detail-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.ai-detail-quick>div{background:rgba(255,255,255,.055);border:1px solid rgba(92,210,116,.18);border-radius:14px;padding:13px}.ai-detail-quick b{display:block;color:#fff;margin-bottom:8px}.ai-detail-quick span{color:#d7efd9;line-height:1.55}.ai-detail-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ai-detail-section{background:rgba(0,0,0,.14);border:1px solid rgba(92,210,116,.16);border-radius:14px;padding:14px}.ai-detail-section h4{margin:0 0 8px;color:#fff}.ai-detail-section p{margin:0;color:#d5efd8;line-height:1.6}.ai-detail-links{margin-top:16px;background:rgba(255,255,255,.045);border:1px solid rgba(92,210,116,.16);border-radius:14px;padding:14px}.ai-detail-links h4{margin:0 0 10px}.ai-detail-links a{display:inline-flex;margin:5px 6px 0 0;padding:8px 10px;border-radius:999px;background:rgba(34,197,94,.13);border:1px solid rgba(34,197,94,.22);color:#eaffed;text-decoration:none;font-weight:800;font-size:13px}.ai-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.ai-modal.open{display:flex}.ai-modal{display:none}.ai-modal-panel{max-height:88vh;overflow:auto}@media(max-width:900px){.ai-detail-quick,.ai-detail-sections,.ai-detail-actions{grid-template-columns:1fr}.ai-category-strip{grid-template-columns:repeat(2,1fr)}.ai-dashboard{grid-template-columns:1fr}.ai-info-column{grid-template-columns:1fr}}

/* 20260709 assistant polish */
:root{--ai-bg:#eef8ee;--ai-card:rgba(255,255,255,.86);--ai-card2:rgba(243,251,244,.92);--ai-border:rgba(39,137,76,.2);--ai-text:#12301e;--ai-soft:#557562;--ai-shadow:0 18px 44px rgba(19,73,38,.14)}
.smart-plant-page{background:linear-gradient(180deg,#f4fbf2 0,#dff1df 46%,#cfe7d5 100%);color:#173622}
.smart-plant-page .navbar-wrap{background:rgba(244,251,242,.9)!important;border-bottom:1px solid rgba(39,137,76,.16)!important}
.smart-plant-page .ai-farm-shell{padding-top:72px!important}
.ai-glass{background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(235,248,237,.9));border-color:var(--ai-border);box-shadow:var(--ai-shadow);color:#173622}
.ai-category-strip{gap:10px;margin-bottom:10px}.ai-cat-card{min-height:64px;border-radius:14px;padding:10px 14px;background:linear-gradient(135deg,#fafff8,#dff3e2);color:#12301e;box-shadow:0 10px 24px rgba(33,99,55,.1)}.ai-cat-card .emoji{width:38px;height:38px;border-radius:12px;background:#d5f2da;font-size:24px}.ai-cat-card b{font-size:15px}.ai-cat-card small{color:#376548}.ai-cat-card.active{border-color:#18a84d;background:linear-gradient(135deg,#e7fae8,#c8efd0)}
.ai-side .ai-category-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 12px;max-width:none}.ai-side .ai-cat-card{min-height:54px;border-radius:10px;padding:7px 8px;gap:7px;box-shadow:0 6px 16px rgba(33,99,55,.08)}.ai-side .ai-cat-card .emoji{width:30px;height:30px;border-radius:9px;font-size:18px;flex:0 0 auto}.ai-side .ai-cat-card b{font-size:12px;line-height:1.1}.ai-side .ai-cat-card small{font-size:11px;line-height:1.1}
.ai-notice-bar{max-width:1920px;min-height:42px;margin:0 auto 14px;overflow:hidden;border:1px solid rgba(29,128,68,.22);border-radius:12px;background:linear-gradient(90deg,#ffffff,#e8f8e9);color:#244c32;padding:0 12px;white-space:nowrap;display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:16px}.ai-notice-bar>span{position:relative;z-index:2;font-weight:950;color:#13783c;background:#fff;padding-right:4px}.ai-notice-track{display:block;min-width:0;overflow:hidden;font-weight:900}.ai-notice-track b{display:inline-block;font-size:13px;color:#315a3d;animation:aiTickerTrack 15s linear infinite}@keyframes aiTickerTrack{from{transform:translateX(100%)}to{transform:translateX(-100%)}}
.ai-brand-card h1,.ai-card-head h2,.ai-metric h3,.ai-stat-row b,.ai-field,.ai-modal-head h2,.ai-detail-section h4,.ai-detail-quick b{color:#143520}.ai-brand-card p,.ai-section-title,.ai-weather small,.ai-metric p,.ai-result-empty,.ai-muted-card,.ai-detail-row small,.ai-detail-section p,.ai-detail-quick span,.ai-modal-head p,.ai-time-row span{color:#557562}
.ai-tabs{border-color:rgba(28,111,58,.12)}.ai-tabs button{color:#40634c}.ai-tabs button.active,.ai-view-buttons button.active{background:linear-gradient(135deg,#199447,#2fbd62);color:#fff}.ai-field select,.ai-chat-input input,.ai-analysis-form input,.ai-plant-search{background:#fff!important;color:#153621!important;border-color:rgba(31,127,65,.22)!important}.ai-field option{background:#fff;color:#153621}.ai-add,.ai-calc-btn{background:linear-gradient(135deg,#22a952,#16813c)}.ai-reset,.ai-view-buttons button{background:#f6fff6;color:#1c5a35;border-color:rgba(31,127,65,.18)}
.ai-mini-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 12px}.ai-mini-plant{border:1px solid rgba(34,139,70,.18);border-radius:12px;background:#f8fff7;color:#173622;min-height:70px;padding:8px 6px;display:grid;place-items:center;gap:3px;cursor:pointer;transition:.18s}.ai-mini-plant span{font-size:25px;line-height:1}.ai-mini-plant b{font-size:11px;line-height:1.1;text-align:center}.ai-mini-plant:hover,.ai-mini-plant.active{border-color:#22a952;background:#e8f9e9;transform:translateY(-1px)}.ai-mini-empty{grid-column:1/-1;border-radius:12px;background:#f8fff7;color:#557562;padding:10px;text-align:center}
.ai-farm-stage{background:linear-gradient(#bce8ff 0 29%,#86c77e 29% 42%,#8a6333 42% 100%);border-color:rgba(39,137,76,.24);min-height:540px}.ai-hills{background:radial-gradient(ellipse at 18% 28%,#76b76f 0 17%,transparent 18%),radial-gradient(ellipse at 58% 26%,#5ea461 0 19%,transparent 20%),radial-gradient(ellipse at 86% 31%,#83bd6f 0 14%,transparent 15%),linear-gradient(to bottom,rgba(255,255,255,.42),transparent 26%)}.ai-farm-lines{background:repeating-linear-gradient(105deg,rgba(255,255,255,.14) 0 4px,transparent 4px 56px),repeating-linear-gradient(0deg,rgba(54,122,47,.26) 0 12px,rgba(123,82,36,.18) 12px 25px)}.ai-farm-stage:after{content:"";position:absolute;inset:38% 0 0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent);pointer-events:none}.ai-farm-watermark{position:absolute;right:24px;bottom:18px;color:rgba(255,255,255,.55);font-size:36px;font-weight:950;letter-spacing:.02em;text-shadow:0 2px 16px rgba(31,83,44,.35);pointer-events:none}.crop-cell{background:rgba(36,139,58,.22);box-shadow:0 10px 16px rgba(73,45,18,.08)}
.ai-topbar{border-radius:0 0 16px 0}.ai-weather strong,.ai-metric .big,.ai-ring span,.ai-card-head h2{color:#143520}.ai-ring:after{background:#f4fbf2}.ai-detail-row{border-color:rgba(30,111,58,.12);color:#173622}.ai-detail-button{background:linear-gradient(135deg,#ddf6df,#ffffff);color:#17532f;border-color:rgba(34,139,70,.2)}.ai-detail-button.secondary{background:#fff}.ai-chat header{border-color:rgba(30,111,58,.12)}.ai-chat-body p{background:#eef9ef;color:#173622}.ai-action-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ai-action-row .ai-detail-button{margin-top:12px}.ai-bottom-grid{align-items:stretch}.ai-metric{min-height:160px}.ai-stat-row{background:#f8fff7;border-color:rgba(34,139,70,.14)}.ai-stat-row span:last-child{color:#234d33}
.ai-stat-row span em{display:block;margin-top:6px;color:#33c968;font-style:normal;font-weight:900}
.ai-detail-modal-panel{background:linear-gradient(180deg,#f7fff6,#eaf6ec)!important;color:#143520!important;border-color:rgba(31,127,65,.22)!important}.ai-detail-section,.ai-detail-quick>div{background:#eef7ef!important;border-color:rgba(31,127,65,.18)!important}.ai-detail-section h4,.ai-detail-quick b,.ai-detail-links h4{color:#143520!important}.ai-detail-section p,.ai-detail-quick span,.ai-detail-popup-head p{color:#456a52!important}.ai-detail-links{background:#f5fff5!important;border-color:rgba(31,127,65,.18)!important}.ai-detail-links a{background:#dff6e2!important;border-color:rgba(34,139,70,.28)!important;color:#176033!important}.ai-detail-links a:hover{background:#1f9b4d!important;border-color:#1f9b4d!important;color:#fff!important}.ai-detail-actions{grid-template-columns:1fr!important}.ai-detail-actions .ai-detail-button,.ai-action-row .ai-detail-button{background:linear-gradient(135deg,#e3f8e5,#ffffff)!important;color:#17532f!important;border-color:rgba(34,139,70,.24)!important}.ai-detail-actions .ai-detail-button:hover,.ai-action-row .ai-detail-button:hover{background:linear-gradient(135deg,#1f9b4d,#28bf63)!important;color:#fff!important;border-color:#1f9b4d!important}.ai-modal-close{background:#e6f5e7!important;color:#17452b!important}.ai-modal-close:hover{background:#1f9b4d!important;color:#fff!important}
.ai-bottom-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.ai-modal-panel:not(.ai-detail-modal-panel){background:linear-gradient(180deg,#fbfffb,#edf8ee)!important;color:#143520!important;border:1px solid rgba(31,127,65,.22)!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-modal-head h2{color:#143520!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-modal-head p{color:#54715d!important}.ai-timeline{gap:10px}.ai-time-row{background:#f4fbf3!important;border:1px solid rgba(31,127,65,.14)!important;border-radius:14px!important;box-shadow:0 8px 20px rgba(28,103,55,.06)}.ai-time-row b{color:#18512f!important;font-weight:950!important}.ai-time-row span{color:#446b51!important;line-height:1.55!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-modal-close{color:#17452b!important;background:#e7f5e8!important;text-shadow:none!important}
.ai-modal-panel:not(.ai-detail-modal-panel) .ai-formula-note{background:#f4fbf3!important;border-color:rgba(31,127,65,.14)!important;color:#446b51!important;font-weight:800!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-analysis-form label{color:#18512f!important;font-weight:950!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-analysis-form input{background:#fff!important;color:#173622!important;border-color:rgba(31,127,65,.22)!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-analysis-results small{color:#54715d!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-analysis-results b{color:#143520!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-ai-comment{background:#e5f8e8!important;border-color:rgba(31,127,65,.2)!important;color:#173622!important}
.ai-modal-panel:not(.ai-detail-modal-panel){padding:26px 24px!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-modal-head{padding-right:48px!important;margin-bottom:20px!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-modal-head span{background:#d8f4dc!important;color:#143520!important;box-shadow:inset 0 0 0 1px rgba(31,127,65,.12)}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-modal-head h2{font-size:26px!important;line-height:1.15!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-modal-head p{font-size:15px!important;line-height:1.4!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-formula-note{font-size:14px!important;line-height:1.6!important;border-radius:14px!important;padding:14px 16px!important;margin-bottom:18px!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-analysis-form{gap:14px!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-analysis-form label{font-size:14px!important;line-height:1.25!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-analysis-form input{height:52px!important;border-radius:12px!important;font-size:15px!important;margin-top:8px!important;padding:12px 14px!important;box-shadow:0 8px 18px rgba(28,103,55,.05)}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-calc-btn{height:54px!important;margin-top:2px!important;border-radius:12px!important;background:linear-gradient(135deg,#22a952,#15843e)!important;color:#fff!important;letter-spacing:.02em!important;box-shadow:0 14px 28px rgba(31,127,65,.2)!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-calc-btn:hover{background:linear-gradient(135deg,#15843e,#0f6f33)!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-analysis-loading{color:#18512f!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-result-chip{background:#f8fff8!important;border-color:rgba(31,127,65,.16)!important;box-shadow:0 8px 18px rgba(28,103,55,.06)!important}.ai-modal-panel:not(.ai-detail-modal-panel) .ai-ai-comment{border-radius:14px!important;line-height:1.55!important}
.ai-stats{gap:8px}.ai-stat-row{padding:10px!important;gap:8px!important;align-items:flex-start!important}.ai-stat-row b{font-size:13px!important;line-height:1.25!important;min-width:72px!important;font-weight:900!important}.ai-stat-row span:last-child{font-size:14px!important;line-height:1.38!important;font-weight:800!important;text-align:right!important}.ai-stat-row span em{font-size:13px!important;line-height:1.25!important;margin-top:5px!important}
.ai-dashboard{align-items:start!important}.ai-main{grid-template-rows:520px auto!important}.ai-farm-stage{height:520px!important;min-height:0!important}.ai-info-column{align-self:start!important}.ai-plant-card{max-height:620px!important;overflow:hidden!important}.ai-plant-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ai-detail-row small{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:right!important}.ai-detail-row small em{display:block!important;-webkit-line-clamp:unset!important}.ai-detail-row{min-height:54px!important}.ai-metric p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.ai-metric .big{font-size:25px!important;line-height:1.22!important}
.ai-main,.ai-farm-stage{max-height:none!important}.ai-farm-stage{flex:0 0 520px!important}.ai-info-column{max-height:760px!important;overflow:hidden!important}.ai-detail-list{max-height:360px!important;overflow:hidden!important}.ai-bottom-grid{min-height:160px!important}.ai-metric{height:180px!important;overflow:hidden!important}
@media(max-width:1180px){.ai-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:680px){.ai-bottom-grid{grid-template-columns:1fr!important}}
@media print{.navbar-wrap,.ai-category-strip,.ai-notice-bar,.ai-side,.ai-chat,.footer,.ai-view-buttons,.ai-modal{display:none!important}.ai-farm-shell{padding:0!important}.ai-dashboard{display:block!important}.ai-topbar{position:relative!important;width:100%!important}.ai-farm-stage{min-height:360px;box-shadow:none}.ai-bottom-grid{grid-template-columns:repeat(2,1fr)!important}.ai-info-column{display:block}.ai-plant-card,.ai-metric,.ai-glass{box-shadow:none!important;background:#fff!important;color:#12301e!important}.smart-plant-page{background:#fff!important}}
@media(max-width:680px){.ai-mini-gallery{grid-template-columns:repeat(2,1fr)}.ai-action-row{grid-template-columns:1fr}.ai-notice-bar b{animation-duration:14s}.ai-view-buttons{min-width:max-content}}

/* 20260709 compact single-screen pass */
.smart-plant-page .ai-farm-shell{padding-top:14px!important}
.ai-notice-bar{display:none!important}
.ai-dashboard{align-items:start!important;grid-template-columns:330px minmax(540px,1fr) 340px!important}
.ai-main{grid-template-rows:390px auto auto!important;gap:10px!important}
.ai-farm-stage{height:390px!important;min-height:0!important;flex:0 0 390px!important}
.ai-topbar{padding:9px 14px!important}
.ai-weather{min-width:95px!important}.ai-weather strong{font-size:16px!important}.ai-weather small{font-size:12px!important}
.ai-view-buttons button{padding:10px 14px!important}
.ai-mini-gallery{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.ai-mini-plant{min-height:62px!important}
.ai-mini-plant:nth-child(n+4){display:none!important}
.ai-bottom-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;min-height:132px!important}
.ai-metric{height:136px!important;min-height:0!important;padding:14px!important}
.ai-metric h3{font-size:13px!important;margin-bottom:8px!important}
.ai-metric .big{font-size:22px!important;margin:6px 0!important}
.ai-metric p{font-size:13px!important;line-height:1.35!important;-webkit-line-clamp:3!important}
.ai-ring{width:78px!important;height:78px!important;margin:5px auto!important}.ai-ring:after{inset:11px!important}.ai-ring span{font-size:19px!important}
.ai-live-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ai-live-strip .ai-stat-row{min-height:82px!important;padding:10px 12px!important;display:grid!important;grid-template-columns:96px 1fr!important;align-items:start!important}
.ai-live-strip .ai-stat-row b{min-width:0!important;font-size:13px!important;font-weight:700!important;line-height:1.25!important;color:#18512f!important}
.ai-live-strip .ai-stat-row span:last-child{font-size:13px!important;font-weight:500!important;line-height:1.35!important;text-align:left!important;color:#315a3d!important}
.ai-live-strip .ai-stat-row span em{font-size:12px!important;font-weight:700!important;color:#22a952!important}
.ai-info-column{max-height:none!important;overflow:visible!important;grid-template-rows:auto 220px!important}
.ai-plant-card{max-height:486px!important;overflow:hidden!important}
.ai-detail-list{max-height:285px!important}
.ai-chat{min-height:220px!important;height:220px!important}
.ai-chat-body{max-height:112px!important}
@media(max-width:1500px){.ai-dashboard{grid-template-columns:300px minmax(500px,1fr) 320px!important}.ai-main{grid-template-rows:360px auto auto!important}.ai-farm-stage{height:360px!important;flex-basis:360px!important}.ai-metric{height:128px!important}.ai-live-strip .ai-stat-row{min-height:76px!important}}
@media(max-width:1180px){.ai-dashboard{grid-template-columns:1fr!important}.ai-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ai-live-strip{grid-template-columns:1fr!important}.ai-info-column{grid-template-rows:auto auto!important}}
@media(max-width:680px){.ai-bottom-grid{grid-template-columns:1fr!important}.ai-mini-gallery{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ai-live-strip{grid-template-columns:1fr!important}.ai-farm-stage{height:320px!important;flex-basis:320px!important}}
.smart-plant-page .footer{display:block!important;margin-top:10px!important;padding:8px 0!important;background:rgba(244,251,242,.92)!important;border-top:1px solid rgba(31,127,65,.14)!important;color:#315a3d!important}
.smart-plant-page .footer .container{max-width:1920px!important}
.smart-plant-page .footer .bottom{padding:6px 14px!important;border-top:0!important;font-size:12px!important;color:#315a3d!important}

/* 20260709 right panel fit */
.ai-info-column{grid-template-rows:auto 190px!important}
.ai-plant-card{max-height:430px!important;padding:12px!important}
.ai-card-head{gap:10px!important;margin-bottom:10px!important}
.ai-card-head .icon{width:70px!important;height:70px!important;border-radius:18px!important;font-size:44px!important;flex:0 0 auto!important}
.ai-card-head h2{font-size:28px!important;line-height:1.05!important}
.ai-badge{font-size:14px!important;padding:8px 12px!important;border-radius:8px!important;margin-top:7px!important;white-space:nowrap!important}
.ai-plant-summary{font-size:13px!important;line-height:1.35!important;margin:8px 0 10px!important;-webkit-line-clamp:2!important}
.ai-detail-list{gap:0!important;max-height:250px!important}
.ai-detail-row{grid-template-columns:22px 64px minmax(0,1fr)!important;gap:8px!important;min-height:46px!important;padding:7px 0!important}
.ai-detail-row>span{font-size:16px!important}
.ai-detail-row b{font-size:12px!important;line-height:1.18!important;font-weight:800!important}
.ai-detail-row small{font-size:12px!important;line-height:1.32!important;-webkit-line-clamp:2!important;text-align:right!important;color:#456a52!important}
.ai-action-row{gap:8px!important}.ai-action-row .ai-detail-button{font-size:13px!important;padding:10px 8px!important;margin-top:10px!important}
.ai-chat{height:190px!important;min-height:190px!important;padding:12px!important}
.ai-chat-body{max-height:82px!important}

/* 20260709 header/footer and final sizing tune */
.smart-plant-page.has-shell-ticker{padding-top:104px!important}
.smart-plant-page .shell-ticker{display:none!important}
.smart-plant-page .navbar-wrap{
  top:8px!important;
  background:transparent!important;
  border-bottom:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  padding:0!important;
  overflow:visible!important;
}
.smart-plant-page .navbar-wrap::before,
.smart-plant-page .navbar-wrap::after,
.smart-plant-page .navbar::before,
.smart-plant-page .navbar::after{
  content:none!important;
  display:none!important;
}
.smart-plant-page .navbar{
  position:relative!important;
  margin:0 auto!important;
  background:linear-gradient(135deg,#2d5b3a 0%,#163d28 100%)!important;
  border:1px solid rgba(229,255,235,.18)!important;
  box-shadow:0 16px 42px rgba(18,56,34,.22)!important;
}
.smart-plant-page .ai-farm-shell{padding-top:10px!important}
.smart-plant-page .footer{
  margin-top:22px!important;
  padding:58px 0 24px!important;
  background:#04140b!important;
  border-top:0!important;
  color:#fff!important;
}
.smart-plant-page .footer .container{width:min(1180px,calc(100% - 36px))!important;max-width:none!important;margin:auto!important}
.smart-plant-page .footer-grid{display:grid!important;grid-template-columns:1.35fr .8fr .8fr 1fr!important;gap:36px!important}
.smart-plant-page .footer h4{color:#fff!important;margin:0 0 14px!important;font-weight:900!important}
.smart-plant-page .footer p{color:#b9cbbf!important;line-height:1.7!important;margin:14px 0!important;font-size:15px!important}
.smart-plant-page .footer a{display:block!important;color:#cce7d1!important;margin:10px 0!important;font-weight:700!important;text-decoration:none!important}
.smart-plant-page .footer a:hover{color:#fff!important}
.smart-plant-page .footer .brand{display:flex!important;align-items:center!important;gap:12px!important;min-width:220px!important;color:#fff!important}
.smart-plant-page .footer .brand b{font-size:23px!important;line-height:1.1!important;color:#fff!important}
.smart-plant-page .footer .brand small{font-size:11px!important;color:#cfe9d5!important}
.smart-plant-page .footer .brand-icon{width:46px!important;height:46px!important;border-radius:16px!important;font-size:25px!important}
.smart-plant-page .footer .store{display:flex!important;gap:10px!important;flex-wrap:wrap!important;margin-top:18px!important}
.smart-plant-page .footer .store img{height:42px!important;background:#fff!important;border-radius:10px!important}
.smart-plant-page .footer .store .soon{opacity:.55!important;filter:grayscale(1)!important}
.smart-plant-page .footer .bottom{
  border-top:1px solid rgba(255,255,255,.1)!important;
  margin-top:36px!important;
  padding:18px 0 0!important;
  display:flex!important;
  justify-content:space-between!important;
  gap:16px!important;
  color:#aebfb4!important;
  font-size:13px!important;
  flex-wrap:wrap!important;
}
.ai-bottom-grid{min-height:150px!important}
.ai-metric{height:152px!important;padding:16px!important}
.ai-metric h3{font-size:14px!important;margin-bottom:10px!important}
.ai-metric .big{font-size:25px!important;margin:7px 0!important}
.ai-metric p{font-size:14px!important;line-height:1.42!important;-webkit-line-clamp:3!important}
.ai-ring{width:88px!important;height:88px!important;margin:4px auto 7px!important}
.ai-ring:after{inset:12px!important}
.ai-ring span{font-size:21px!important}
.ai-info-column{grid-template-rows:auto 255px!important}
.ai-chat{height:255px!important;min-height:255px!important}
.ai-chat-body{max-height:145px!important}
.ai-crop-field{
  inset:47% 8% 8%!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:8px 14px!important;
  align-content:end!important;
}
.crop-cell{
  min-height:34px!important;
  font-size:24px!important;
  border-radius:13px!important;
}
.view-2d .ai-crop-field{
  inset:18% 7% 8%!important;
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
  gap:8px!important;
}
@media(max-width:1500px){
  .ai-metric{height:144px!important}
  .ai-info-column{grid-template-rows:auto 235px!important}
  .ai-chat{height:235px!important;min-height:235px!important}
  .ai-chat-body{max-height:126px!important}
}
@media(max-width:1050px){
  .smart-plant-page .footer-grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:640px){
  .smart-plant-page.has-shell-ticker{padding-top:92px!important}
  .smart-plant-page .footer-grid{grid-template-columns:1fr!important}
  .smart-plant-page .footer .bottom{flex-direction:column!important}
.smart-plant-page .footer{padding-top:42px!important}
}

/* 20260709 top alignment and readable plant text */
.smart-plant-page.site-shell-page{padding-top:84px!important}
.smart-plant-page.has-shell-ticker{padding-top:84px!important}
.smart-plant-page .navbar-wrap{
  position:fixed!important;
  top:6px!important;
}
.smart-plant-page .ai-farm-shell{padding-top:0!important}
.ai-plant-summary{
  color:#476b54!important;
  font-weight:750!important;
  opacity:1!important;
}
.ai-result-empty{
  color:#456a52!important;
  font-weight:700!important;
}
@media(max-width:640px){
  .smart-plant-page.site-shell-page,
  .smart-plant-page.has-shell-ticker{padding-top:76px!important}
  .smart-plant-page .navbar-wrap{top:6px!important}
}

/* 20260718 Smart Farm additions */
.ai-tabs{grid-template-columns:repeat(4,1fr)!important}
.ai-growth{margin:14px 0;padding:12px;border:1px solid rgba(34,197,94,.2);border-radius:16px;background:rgba(34,197,94,.06)}
.ai-growth-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px}.ai-growth-head b{font-weight:900}.ai-growth-head span{color:#159447;font-weight:900}
.ai-growth-track{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-bottom:7px}.ai-growth-track span{height:7px;border-radius:20px;background:rgba(19,75,42,.12)}.ai-growth-track span.done{background:#22b95f}.ai-growth small{display:block;color:#6b8574;font-size:10px;line-height:1.4}
.ai-farm-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0}.ai-farm-stats span{padding:9px 10px;border:1px solid rgba(23,106,55,.12);border-radius:12px;background:rgba(245,255,247,.72)}.ai-farm-stats small{display:block;color:#718479;font-size:10px}.ai-farm-stats b{display:block;color:#173b26;font-size:13px;margin-top:2px}
.ai-month-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:10px 0 16px}.ai-month-grid article{padding:12px;border-radius:14px;border:1px solid rgba(34,197,94,.22);background:rgba(34,197,94,.07)}.ai-month-grid b{display:block;color:#188843;margin-bottom:5px}.ai-month-grid span{font-size:13px;line-height:1.45;color:#4f6758}
.ai-journal-form{display:grid;grid-template-columns:180px 1fr;gap:10px;margin:12px 0}.ai-journal-form select,.ai-journal-form textarea{width:100%;border:1px solid rgba(30,110,60,.22);border-radius:12px;padding:11px;background:#fff;color:#173b26}.ai-journal-form textarea{grid-column:2}.ai-journal-form .ai-calc-btn{grid-column:2;justify-self:start;margin:0}.ai-journal-insight{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:rgba(34,197,94,.08);border:1px solid rgba(34,197,94,.2);margin:12px 0}.ai-journal-insight b{white-space:nowrap;color:#117a38}.ai-journal-insight span{color:#506b58;font-size:13px;line-height:1.5}.ai-journal-list{display:grid;gap:9px;max-height:330px;overflow:auto}.ai-journal-item{padding:12px 14px;border-radius:14px;background:#fff;border:1px solid rgba(30,110,60,.13)}.ai-journal-item b{color:#167f3d}.ai-journal-item time{float:right;color:#8a9b90;font-size:11px}.ai-journal-item p{clear:both;margin:7px 0 0;color:#43594a;line-height:1.5}
@media(max-width:700px){.ai-month-grid{grid-template-columns:1fr}.ai-journal-form{grid-template-columns:1fr}.ai-journal-form textarea,.ai-journal-form .ai-calc-btn{grid-column:1}.ai-tabs{grid-template-columns:repeat(2,1fr)!important}.ai-farm-stats{grid-template-columns:1fr 1fr}}

/* v7 premium bakım paneli iyileştirmeleri */
.ai-detail-row.ai-detail-featured{background:linear-gradient(135deg,#effff1,#dff6e4);border:1px solid rgba(31,155,77,.28);box-shadow:0 8px 22px rgba(31,155,77,.08);padding:12px 14px;border-radius:14px}
.ai-detail-row.ai-detail-featured>span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#fff;box-shadow:0 4px 12px rgba(31,155,77,.12);font-size:18px}
.ai-detail-row.ai-detail-featured b{font-size:14px;color:#164b2c}.ai-detail-row.ai-detail-featured small{margin-left:auto}.ai-detail-row.ai-detail-featured small em{display:inline-flex!important;align-items:center;padding:6px 10px;border-radius:999px;background:#1f9b4d;color:#fff!important;font-weight:900;font-style:normal!important;box-shadow:0 4px 12px rgba(31,155,77,.18)}

.ai-growth{background:linear-gradient(180deg,#f4fff5,#eaf8ed);border-color:rgba(31,155,77,.2);box-shadow:inset 0 1px 0 #fff}
.ai-growth-timeline{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;align-items:start;margin:8px 0 12px;position:relative}
.ai-growth-timeline>div{position:relative;text-align:center;padding-top:1px;color:#789181;font-size:9px}.ai-growth-timeline>div:before{content:"";position:absolute;top:7px;left:-50%;right:50%;height:3px;background:#d6e7da;z-index:0}.ai-growth-timeline>div:first-child:before{display:none}.ai-growth-timeline i{display:block;width:14px;height:14px;border-radius:50%;background:#d6e7da;margin:0 auto 6px;position:relative;z-index:1;border:3px solid #f4fff5;box-shadow:0 0 0 1px #c9decf}.ai-growth-timeline .done i,.ai-growth-timeline .current i{background:#1fb95b;box-shadow:0 0 0 2px rgba(31,185,91,.18)}.ai-growth-timeline .done:before,.ai-growth-timeline .current:before{background:#1fb95b}.ai-growth-timeline .current small{color:#14753b;font-weight:900}.ai-growth-timeline .current i{transform:scale(1.18)}
.ai-sow-date{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px dashed rgba(31,155,77,.22);font-size:11px;font-weight:800;color:#315b40}.ai-sow-date input{border:1px solid rgba(31,155,77,.22);background:#fff;color:#17452b;border-radius:9px;padding:7px 9px;font-weight:800;max-width:145px}
.ai-farm-stats span em{display:block;margin-top:3px;color:#789181;font-size:8px;font-style:normal;line-height:1.25}

.ai-risk-head{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.ai-risk-badge{display:inline-flex;align-items:center;justify-content:center;min-width:54px;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:950;letter-spacing:.4px}.ai-risk-badge.low{background:#dff7e6;color:#117a3d}.ai-risk-badge.medium{background:#fff2c8;color:#9a6800}.ai-risk-badge.high{background:#ffe0e0;color:#c73d3d}.ai-inline-status,.ai-card-status{display:inline-flex;align-items:center;border-radius:999px;font-weight:900}.ai-inline-status{padding:2px 7px;margin-right:5px;font-size:9px}.ai-card-status{padding:5px 9px;font-size:9px;margin:2px 0 8px}.ai-inline-status.ok,.ai-card-status.ok{background:#dff7e6;color:#117a3d}.ai-inline-status.soon,.ai-card-status.soon{background:#fff2c8;color:#9a6800}.ai-inline-status.urgent,.ai-card-status.urgent{background:#ffe0e0;color:#c73d3d}.ai-estimate-note{display:block;color:#789181;font-size:9px;margin-top:4px}

.ai-stat-row{min-height:88px;align-items:flex-start}.ai-stat-row>span{line-height:1.45}.ai-stat-row em{margin-top:5px}.ai-last-journal{grid-column:1/-1;background:linear-gradient(135deg,#f8fff8,#edf8ef)}
.ai-panel-journal{margin:12px 0;padding:11px 12px;border:1px solid rgba(31,155,77,.18);border-radius:13px;background:#f4fbf5}.ai-panel-journal b{display:block;color:#17452b;margin-bottom:4px}.ai-panel-journal span{font-size:10px;font-weight:800;color:#1f8d4a}.ai-panel-journal p{margin:5px 0 0;color:#5d7865;font-size:11px;line-height:1.4}
.ai-assistant-quick{margin:12px 0;padding:11px;border-radius:13px;background:linear-gradient(135deg,#f7fff8,#edf8ef);border:1px solid rgba(31,155,77,.16)}.ai-assistant-quick>b{display:block;font-size:11px;color:#315b40;margin-bottom:8px}.ai-assistant-quick>div{display:flex;gap:6px;flex-wrap:wrap}.ai-assistant-quick button{border:1px solid rgba(31,155,77,.2);background:#fff;color:#176033;border-radius:999px;padding:7px 9px;font-size:9px;font-weight:900;cursor:pointer}.ai-assistant-quick button:hover{background:#1f9b4d;color:#fff;border-color:#1f9b4d}

.ai-crop-field.crop-fruit{grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 14px;align-items:end}.ai-crop-field.crop-fruit .crop-cell{background:transparent!important;min-height:58px;position:relative;overflow:visible}.crop-tree{font-size:34px;filter:drop-shadow(0 8px 5px rgba(33,72,29,.18))}.crop-fruit{position:absolute;font-size:15px;top:8px;left:50%;transform:translateX(-50%)}.ai-crop-field.crop-field .crop-cell{background:rgba(87,117,45,.18);border-radius:6px}.ai-crop-field.crop-field .crop-plant{font-size:28px}.ai-crop-field.crop-vegetable .crop-cell,.ai-crop-field.crop-ornamental .crop-cell{background:rgba(33,112,55,.22)}

@media(max-width:1100px){.ai-growth-timeline small{display:none}.ai-crop-field.crop-fruit{grid-template-columns:repeat(8,minmax(0,1fr))}}

/* v8 - kalan 2,4,7,12: detay erişimi, bitki görsel ayrımı, okunabilir kartlar, ferah hiyerarşi */
.ai-result-panel{padding:16px!important}.ai-card-head{gap:12px}.ai-card-head .icon{width:58px!important;height:58px!important;font-size:34px!important;border-radius:16px!important;box-shadow:0 8px 22px rgba(19,91,46,.14)}
.ai-plant-summary{position:relative;margin:10px 0 12px!important;padding:10px 12px;border-radius:12px;background:#f7fbf7;border:1px solid rgba(28,115,60,.1);line-height:1.5!important}
.ai-action-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px;position:sticky;bottom:0;padding-top:9px;background:linear-gradient(180deg,rgba(247,252,247,0),#f7fcf7 30%);z-index:3}.ai-action-row .ai-detail-button{min-height:34px}
.ai-detail-button{box-shadow:0 5px 14px rgba(20,126,59,.12)}
.ai-live-cards,.ai-live-cards-wide{gap:10px!important}.ai-stat-row{padding:12px 14px!important;border-radius:13px!important;overflow:hidden}.ai-stat-row>b{min-width:88px;line-height:1.3}.ai-stat-row>span{min-width:0}.ai-stat-row em{display:block;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.ai-metric{padding:14px 16px!important;overflow:hidden}.ai-metric h3{letter-spacing:.2px}.ai-metric p{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.ai-metric .big{line-height:1.1}
.ai-detail-list{display:grid;gap:7px}.ai-detail-row{min-height:48px!important;padding:8px 10px!important;border-radius:11px}.ai-detail-row small{min-width:0;text-align:right}.ai-detail-row small em{max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.ai-detail-featured small em{max-width:160px!important}
.ai-crop-field .crop-cell{transition:transform .18s ease,filter .18s ease}.ai-crop-field .crop-cell:hover{transform:translateY(-3px) scale(1.04);filter:drop-shadow(0 7px 6px rgba(25,75,32,.2))}
.ai-crop-field.crop-fruit .crop-cell:nth-child(3n){transform:scale(.92)}.ai-crop-field.crop-fruit .crop-cell:nth-child(4n){transform:scale(1.06)}
.ai-crop-field.crop-vegetable .crop-plant{font-size:25px;filter:drop-shadow(0 5px 4px rgba(24,75,31,.18))}.ai-crop-field.crop-field .crop-plant{font-size:30px}.ai-crop-field.crop-ornamental .crop-plant{font-size:27px;filter:drop-shadow(0 4px 4px rgba(24,75,31,.16))}
.ai-detail-popup-head{padding-bottom:12px;border-bottom:1px solid rgba(27,112,57,.12)}.ai-detail-sections{display:grid;gap:10px}.ai-detail-section{padding:13px 14px;border-radius:13px;background:#f8fcf8;border:1px solid rgba(27,112,57,.11)}.ai-detail-section p{line-height:1.58}.ai-detail-links{padding:13px;border-radius:13px;background:#f1faf3}.ai-detail-links a{display:inline-flex;margin:4px;padding:7px 10px;border-radius:999px;background:#fff;border:1px solid rgba(31,155,77,.17)}
@media(max-width:1500px){.ai-result-panel{padding:13px!important}.ai-growth{margin:9px 0!important;padding:10px!important}.ai-farm-stats{margin:8px 0!important}.ai-plant-summary{margin:7px 0 9px!important}.ai-action-row{margin-top:8px}}


/* 20260718 v10 — final requested layout / background / modal / card tune */
.smart-plant-page{
  background:
    linear-gradient(rgba(242,250,241,.82),rgba(242,250,241,.88)),
    url('../img/akilli-bitki-asistani-bg.png') center top / cover fixed no-repeat!important;
}
/* Header bağımsız; ana uygulama header'a yapışmaz. */
.smart-plant-page .ai-farm-shell{padding-top:22px!important}
.smart-plant-page .navbar-wrap{z-index:1200!important}

/* Modal içerik alanında kalır; headerı örtmez/üstüne çıkmaz. */
.smart-plant-page .ai-modal{
  position:fixed!important;
  inset:84px 0 0 0!important;
  z-index:1100!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:18px 12px!important;
}
.smart-plant-page .ai-modal-backdrop{inset:0!important}
.smart-plant-page .ai-modal-panel{
  margin:0 auto!important;
  max-height:calc(100vh - 122px)!important;
}

/* Ana metrik kartları: daha yüksek, metinler kesilmez ve aynı hizada. */
.smart-plant-page .ai-bottom-grid{align-items:stretch!important;gap:12px!important}
.smart-plant-page .ai-metric{
  height:auto!important;
  min-height:176px!important;
  overflow:visible!important;
  display:flex!important;
  flex-direction:column!important;
}
.smart-plant-page .ai-metric h3{min-height:20px!important;margin-bottom:10px!important}
.smart-plant-page .ai-metric p{
  display:block!important;
  -webkit-line-clamp:unset!important;
  overflow:visible!important;
  margin:7px 0 0!important;
  line-height:1.5!important;
}
.smart-plant-page .ai-metric .big{margin:8px 0!important}
.smart-plant-page .ai-estimate-note{display:block!important;margin-top:auto!important;padding-top:8px!important;line-height:1.35!important}

/* Alt bilgi şeridi: eşit kartlar, uzun açıklamalar rahat sığar. */
.smart-plant-page .ai-live-strip{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
.smart-plant-page .ai-live-strip .ai-stat-row{
  min-height:112px!important;
  height:auto!important;
  align-items:flex-start!important;
  padding:14px!important;
}
.smart-plant-page .ai-live-strip .ai-stat-row span:last-child{
  text-align:left!important;
  line-height:1.45!important;
}
.smart-plant-page .ai-live-strip .ai-stat-row em{margin-top:6px!important;line-height:1.45!important}

/* Sağ bakım paneli: gelişim çizgisi ve hasat kartı görünür kalır. */
.smart-plant-page .ai-info-column{max-height:none!important;overflow:visible!important}
.smart-plant-page .ai-plant-card{max-height:none!important;overflow:visible!important;padding:16px!important}
.smart-plant-page .ai-detail-list{max-height:none!important;overflow:visible!important}
.smart-plant-page .ai-plant-summary{-webkit-line-clamp:3!important}
.smart-plant-page .ai-growth{overflow:visible!important}
.smart-plant-page .ai-growth-timeline{gap:4px!important}
.smart-plant-page .ai-growth-timeline small{font-size:9px!important;white-space:normal!important;line-height:1.1!important}
.smart-plant-page .ai-farm-stats{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.smart-plant-page .ai-farm-stats>span{min-height:76px!important;padding:10px!important}
.smart-plant-page .ai-farm-stats em{display:block!important;margin-top:4px!important;font-size:10px!important;line-height:1.25!important}

/* Ekim Zamanı vurgusu */
.smart-plant-page .ai-detail-featured{
  border:1px solid rgba(27,154,73,.28)!important;
  background:linear-gradient(135deg,#ecfaee,#ffffff)!important;
  border-radius:12px!important;
  padding:11px 12px!important;
  margin-top:8px!important;
  box-shadow:0 8px 22px rgba(24,111,54,.08)!important;
}
.smart-plant-page .ai-detail-featured b{font-size:14px!important}
.smart-plant-page .ai-detail-featured small em{
  display:inline-flex!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#dff6e3!important;
  color:#16713a!important;
  font-weight:900!important;
}

@media(max-width:1500px){
  .smart-plant-page .ai-metric{min-height:165px!important}
  .smart-plant-page .ai-live-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
  .smart-plant-page .ai-modal{inset:76px 0 0!important}
  .smart-plant-page .ai-modal-panel{max-height:calc(100vh - 105px)!important}
  .smart-plant-page .ai-live-strip{grid-template-columns:1fr!important}
}

/* 20260718 v11 — okunabilirlik, sade sağ panel, gerçek 2D/3D tarla ve istatistik yerleşimi */
.smart-plant-page{
  background:
    linear-gradient(rgba(244,250,242,.72),rgba(244,250,242,.82)),
    url('../img/akilli-bitki-asistani-bg.webp') center center / cover fixed no-repeat!important;
}
/* Sağdaki ikinci AI kartı kaldırıldı; yüzen site AI asistanı kalır. */
.smart-plant-page .ai-info-column>.ai-chat{display:none!important}
.smart-plant-page .ai-info-column{grid-template-rows:auto!important}

/* Sağ bakım panelindeki değerler daha koyu ve okunur. */
.smart-plant-page .ai-detail-row small,
.smart-plant-page .ai-detail-row small em{color:#245d3b!important;font-weight:800!important}
.smart-plant-page .ai-detail-featured small em{color:#135f32!important}
.smart-plant-page .ai-plant-summary{
  color:#355f45!important;
  font-weight:650!important;
  font-size:13px!important;
  line-height:1.65!important;
  min-height:86px!important;
  max-height:none!important;
  display:block!important;
  overflow:visible!important;
  -webkit-line-clamp:unset!important;
}

/* 2D / 3D tarla görselleri */
.smart-plant-page .ai-farm-stage{
  background-image:url('../img/tarla-3d.webp')!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}
.smart-plant-page .ai-farm-stage.view-2d{
  background-image:url('../img/tarla-2d.webp')!important;
  background-size:cover!important;
  background-position:center center!important;
}
.smart-plant-page .ai-farm-stage .ai-hills,
.smart-plant-page .ai-farm-stage .ai-sun,
.smart-plant-page .ai-farm-stage .ai-farm-lines{display:none!important}

/* Bitkiler yalnızca sürülmüş toprak alanında kalır. */
.smart-plant-page .ai-farm-stage.view-3d .ai-crop-field{
  inset:53% 8% 14% 9%!important;
  transform:perspective(1000px) rotateX(24deg)!important;
  transform-origin:50% 0!important;
  align-content:stretch!important;
  overflow:hidden!important;
}
.smart-plant-page .ai-farm-stage.view-2d .ai-crop-field{
  inset:55% 7% 16% 8%!important;
  transform:none!important;
  align-content:stretch!important;
  overflow:hidden!important;
}
.smart-plant-page .ai-crop-field .crop-cell{min-height:32px!important;background:transparent!important}
.smart-plant-page .ai-crop-field .crop-plant{font-size:24px!important}
.smart-plant-page .ai-farm-stage.view-3d .ai-crop-field .crop-plant{transform:scale(.9)}

/* Tarla istatistikleri artık Canlı Risk'in yanındaki ana kartta 4 bilgi olarak görünür. */
.smart-plant-page .ai-metric-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:2px}
.smart-plant-page .ai-metric-stats>span{display:block;min-height:60px;padding:9px 10px;border-radius:11px;background:rgba(244,252,246,.9);border:1px solid rgba(25,116,59,.12)}
.smart-plant-page .ai-metric-stats small{display:block;color:#587364;font-size:10px;line-height:1.2}
.smart-plant-page .ai-metric-stats b{display:block;margin-top:4px;color:#163d27;font-size:14px;line-height:1.2}
.smart-plant-page .ai-metric-stats em{display:block;margin-top:3px;color:#71887a;font-size:8px;font-style:normal;line-height:1.2}

@media(max-width:900px){
  .smart-plant-page .ai-farm-stage.view-3d .ai-crop-field{inset:54% 6% 14% 7%!important}
  .smart-plant-page .ai-farm-stage.view-2d .ai-crop-field{inset:56% 5% 15% 6%!important}
}

/* 20260718 v12 — arka plan görünürlüğü, güvenli ekim alanı ve günlük modal düzeltmesi */
body.smart-plant-page,
.smart-plant-page{
  background-color:#eef7ed!important;
  background-image:
    linear-gradient(rgba(244,250,242,.16),rgba(244,250,242,.24)),
    url('../img/akilli-bitki-asistani-bg.webp')!important;
  background-position:center top!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
}
.smart-plant-page .ai-farm-shell{
  background:transparent!important;
}
/* 3D ve 2D'de tabela/çit bölgelerini dışarıda bırak; sadece ekilebilir kahverengi toprağa yerleş. */
.smart-plant-page .ai-farm-stage.view-3d .ai-crop-field{
  inset:48% 7% 17% 29%!important;
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
  gap:7px 10px!important;
  transform:perspective(1000px) rotateX(20deg)!important;
  transform-origin:50% 0!important;
  overflow:hidden!important;
}
.smart-plant-page .ai-farm-stage.view-2d .ai-crop-field{
  inset:50% 6% 15% 28%!important;
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
  gap:7px 10px!important;
  transform:none!important;
  overflow:hidden!important;
}
.smart-plant-page .ai-crop-field .crop-cell{
  min-width:0!important;
  min-height:26px!important;
  padding:0!important;
}
.smart-plant-page .ai-crop-field .crop-plant,
.smart-plant-page .ai-crop-field .crop-fruit{
  font-size:21px!important;
  line-height:1!important;
}
.smart-plant-page .ai-crop-field .crop-tree{font-size:20px!important;line-height:1!important}

@media(max-width:900px){
  .smart-plant-page .ai-farm-stage.view-3d .ai-crop-field{inset:50% 5% 16% 25%!important}
  .smart-plant-page .ai-farm-stage.view-2d .ai-crop-field{inset:52% 5% 15% 24%!important}
}

/* 20260718 — arka plan matlık ayarı */
.smart-plant-page{
  background:
    linear-gradient(rgba(242,250,241,.58), rgba(242,250,241,.64)),
    url('../img/akilli-bitki-asistani-bg.png') center top / cover fixed no-repeat !important;
}

/* 20260718 — arka plan daha mat */
.smart-plant-page{
  background:
    linear-gradient(rgba(242,250,241,.76), rgba(242,250,241,.80)),
    url('../img/akilli-bitki-asistani-bg.png') center top / cover fixed no-repeat !important;
}