:root{
  --lib-bg:#f3f8ef;
  --lib-surface:#ffffff;
  --lib-surface-soft:#f8fbf4;
  --lib-text:#13291d;
  --lib-muted:#607164;
  --lib-line:rgba(32,104,58,.16);
  --lib-green:#229d51;
  --lib-lime:#d9f879;
  --lib-amber:#f4b740;
  --lib-blue:#3b82c4;
  --lib-shadow:0 18px 46px rgba(20,82,46,.11);
}
[data-theme="dark"], body.dark-mode{
  --lib-bg:#07140d;
  --lib-surface:#101f16;
  --lib-surface-soft:#0d1a13;
  --lib-text:#f4fff7;
  --lib-muted:#b6c8bb;
  --lib-line:rgba(178,245,197,.16);
  --lib-green:#58dc86;
  --lib-shadow:0 20px 54px rgba(0,0,0,.32);
}
.agri-library-page{background:var(--lib-bg);color:var(--lib-text);}
.library-hero{padding:34px 0 22px;background:linear-gradient(180deg,rgba(34,157,81,.12),transparent 70%),var(--lib-bg);}
.library-hero__grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:stretch;}
.library-hero__copy,.library-hero__panel,.library-search-results,.library-card,.library-topic,.library-detail-hero__body,.library-ai-panel{border:1px solid var(--lib-line);background:var(--lib-surface);box-shadow:var(--lib-shadow);border-radius:8px;}
.library-hero__copy{padding:24px;}
.library-kicker{display:inline-flex;border:1px solid var(--lib-line);background:rgba(34,157,81,.09);color:var(--lib-green);border-radius:8px;padding:8px 12px;font-size:13px;font-weight:900;}
.library-hero h1{margin:14px 0 10px;max-width:820px;font-size:42px;line-height:1.06;letter-spacing:0;color:var(--lib-text);font-weight:950;}
.library-hero p{max-width:760px;color:var(--lib-muted);line-height:1.58;font-size:16px;margin:0;}
.library-search{margin-top:18px;display:grid;grid-template-columns:1fr 108px;gap:10px;}
.library-search input{min-height:50px;border:1px solid var(--lib-line);background:var(--lib-surface-soft);border-radius:8px;padding:0 16px;color:var(--lib-text);outline:none;}
.library-search input:focus{border-color:rgba(34,157,81,.55);box-shadow:0 0 0 4px rgba(34,157,81,.12);}
.library-search button,.library-card a,.library-back{border:0;border-radius:8px;background:linear-gradient(135deg,var(--lib-green),#7de59b);color:#062713;font-weight:950;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;}
.library-search button{min-height:50px;}
.library-quick{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;}
.library-quick button{border:1px solid var(--lib-line);background:var(--lib-surface-soft);color:var(--lib-text);border-radius:8px;padding:9px 11px;font-weight:850;cursor:pointer;}
.library-hero__panel{padding:14px;display:grid;align-content:start;gap:12px;}
.library-hero__panel img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;border:1px solid var(--lib-line);}
.library-hero__panel strong{display:block;color:var(--lib-text);font-size:20px;}
.library-hero__panel span{display:block;color:var(--lib-muted);margin-top:4px;}
.library-panel-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:12px;padding:0 14px;border-radius:8px;background:linear-gradient(135deg,var(--lib-green),#7de59b);color:#062713;font-weight:950;text-decoration:none;}
.library-search-results{margin-top:18px;padding:16px;display:grid;gap:10px;}
.library-search-result{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;border:1px solid var(--lib-line);background:var(--lib-surface-soft);border-radius:8px;padding:14px;}
.library-search-result strong{display:block;color:var(--lib-text);}
.library-search-result p{margin:5px 0 0;color:var(--lib-muted);line-height:1.55;}
.library-search-result a{color:var(--lib-green);font-weight:950;text-decoration:none;white-space:nowrap;}
.library-sections{padding:18px 0 70px;}
.library-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px;}
.library-section-head h2{margin:10px 0 0;font-size:38px;color:var(--lib-text);}
.library-section-head p{max-width:520px;margin:0;color:var(--lib-muted);line-height:1.6;}
.library-card-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;}
.library-card{overflow:hidden;display:flex;flex-direction:column;min-height:520px;}
.library-card img{width:100%;height:128px;object-fit:cover;border-bottom:1px solid var(--lib-line);}
.library-card__body{padding:14px;display:flex;flex-direction:column;gap:11px;flex:1;}
.library-card small{color:var(--lib-green);font-weight:950;}
.library-card h3{margin:0;color:var(--lib-text);font-size:22px;line-height:1.18;}
.library-card p{margin:0;color:var(--lib-muted);line-height:1.55;font-size:14px;}
.library-card__topics{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:1fr;gap:6px;}
.library-card__topics li{display:block;}
.library-card__topics a{border:1px solid var(--lib-line);background:var(--lib-surface-soft);border-radius:8px;padding:7px 8px;font-size:12px;font-weight:800;color:var(--lib-muted);line-height:1.25;text-decoration:none;display:flex;align-items:center;min-height:38px;}
.library-card__topics a:hover{border-color:rgba(34,157,81,.4);color:var(--lib-green);}
.library-card a{min-height:44px;margin-top:auto;}
.library-detail-hero{padding:42px 0 24px;background:linear-gradient(180deg,rgba(59,130,196,.09),transparent 70%),var(--lib-bg);}
.library-detail-hero__body{display:grid;grid-template-columns:1fr 330px;gap:24px;padding:24px;align-items:center;}
.library-detail-hero h1{font-size:48px;line-height:1.05;margin:14px 0;color:var(--lib-text);}
.library-detail-hero p{color:var(--lib-muted);line-height:1.7;margin:0;}
.library-detail-hero img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;border:1px solid var(--lib-line);}
.library-back{min-height:42px;padding:0 14px;margin-top:18px;}
.library-topics{padding:26px 0 70px;}
.library-topic-shell{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px;align-items:start;}
.library-topic-list{display:grid;gap:16px;}
.library-topic{padding:18px;}
.library-topic h2{margin:0 0 8px;color:var(--lib-text);font-size:26px;}
.library-topic>p{margin:0 0 14px;color:var(--lib-muted);line-height:1.6;}
.library-subtopic-detail .container{display:grid;gap:28px;}
.library-topic-intro{max-width:840px;}
.library-topic-intro .library-kicker,.library-topic-specs .library-kicker{margin-bottom:12px;}
.library-topic-intro h2,.library-topic-specs h2{margin-top:0;}
.library-topic-intro p{font-size:17px;line-height:1.8;margin-bottom:0;}
.library-topic-specs{margin-top:18px;}
.library-tech-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.library-tech{border:1px solid var(--lib-line);background:var(--lib-surface-soft);border-radius:8px;padding:12px;}
.library-tech b{display:block;color:var(--lib-text);margin-bottom:6px;}
.library-tech span{display:block;color:var(--lib-muted);font-size:13px;line-height:1.55;}
.library-subtopic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.library-subtopic{border:1px solid var(--lib-line);background:var(--lib-surface-soft);border-radius:8px;padding:13px;text-decoration:none;display:grid;gap:7px;min-height:116px;}
.library-subtopic strong{color:var(--lib-text);font-size:16px;line-height:1.2;}
.library-subtopic span{color:var(--lib-muted);font-size:13px;line-height:1.45;}
.library-subtopic:hover{border-color:rgba(34,157,81,.45);box-shadow:0 12px 28px rgba(20,82,46,.1);transform:translateY(-1px);}
.library-ai-panel{padding:16px;position:sticky;top:88px;display:grid;gap:13px;}
.library-ai-panel h3{margin:0;color:var(--lib-text);font-size:22px;line-height:1.2;}
.library-ai-tips{display:grid;gap:10px;}
.library-ai-tips div{border:1px solid var(--lib-line);background:var(--lib-surface-soft);border-radius:8px;padding:11px;}
.library-ai-tips strong{display:block;color:var(--lib-green);font-size:14px;margin-bottom:5px;}
.library-ai-tips p,.library-ai-question{margin:0;color:var(--lib-muted);font-size:13px;line-height:1.55;}
.library-ai-link{min-height:42px;border-radius:8px;background:linear-gradient(135deg,var(--lib-green),#7de59b);color:#062713;font-weight:950;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:0 12px;text-align:center;}
.library-ai-followup{border:1px solid var(--lib-line);background:var(--lib-surface-soft);border-radius:8px;overflow:hidden;}
.library-ai-followup__toggle{width:100%;border:0;background:transparent;color:var(--lib-text);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;text-align:left;font-weight:950;cursor:pointer;}
.library-ai-followup__toggle span{line-height:1.25;}
.library-ai-followup__toggle b{width:24px;height:24px;border-radius:50%;background:rgba(34,157,81,.12);color:var(--lib-green);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;}
.library-ai-followup__body{border-top:1px solid var(--lib-line);padding:12px;display:grid;gap:12px;}
.library-ai-followup__body ol{margin:0;padding-left:18px;display:grid;gap:9px;color:var(--lib-muted);font-size:13px;line-height:1.5;}
.library-ai-followup__body a{min-height:38px;border-radius:8px;background:var(--lib-green);color:#fff;font-weight:950;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;text-align:center;}
.library-ai-answer{display:grid;gap:6px;color:var(--lib-muted);font-size:12px;font-weight:850;}
.library-ai-answer input{min-height:42px;border:1px solid var(--lib-line);border-radius:8px;background:var(--lib-surface-soft);color:var(--lib-text);padding:0 12px;outline:none;}
.library-ai-answer input:focus{border-color:rgba(34,157,81,.55);box-shadow:0 0 0 4px rgba(34,157,81,.12);}
.library-empty{border:1px dashed var(--lib-line);border-radius:8px;padding:24px;text-align:center;color:var(--lib-muted);}
@media(max-width:1399px){.library-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.library-card{min-height:500px;}.library-card__topics{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:1199px){.library-hero__grid,.library-detail-hero__body,.library-topic-shell{grid-template-columns:1fr;}.library-ai-panel{position:static;}.library-subtopic-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:767px){.library-hero{padding-top:36px}.library-hero__copy{padding:20px}.library-hero h1{font-size:36px;line-height:1.08}.library-search{grid-template-columns:1fr}.library-section-head{display:block}.library-card-grid,.library-tech-grid,.library-subtopic-grid{grid-template-columns:1fr}.library-card{min-height:auto}.library-card__topics{grid-template-columns:1fr}.library-detail-hero h1{font-size:34px}.library-detail-hero__body{padding:18px}}

.library-sources{margin-top:18px;padding:14px 16px;border:1px solid rgba(24,89,50,.16);border-radius:12px;background:rgba(255,255,255,.62)}
.library-sources ul{margin:8px 0 0;padding-left:18px;color:#42584a;font-size:14px;line-height:1.6}
.library-sources li{margin-bottom:4px}

/* Sebze bilgi kartları ve açılır detay penceresi */
.library-vegetable-block{margin-top:22px;padding-top:18px;border-top:1px solid rgba(15,23,42,.08)}
.library-vegetable-block h3{margin:0 0 6px;font-size:1.25rem;color:#14351f}
.library-vegetable-block>p{margin:0 0 16px;color:#52605a;line-height:1.65}
.library-vegetable-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.library-vegetable-card{border:1px solid rgba(15,23,42,.1);border-radius:18px;background:#fff;overflow:hidden;text-align:left;box-shadow:0 10px 24px rgba(15,23,42,.07);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;font:inherit;color:inherit;padding:0}
.library-vegetable-card:hover{transform:translateY(-3px);box-shadow:0 16px 30px rgba(15,23,42,.11);border-color:rgba(45,128,75,.35)}
.library-vegetable-card img{width:100%;height:125px;object-fit:cover;background:#eef6ed;display:block}
.library-vegetable-card__body{padding:13px 14px 15px}
.library-vegetable-card small{display:block;color:#2f7d45;font-weight:700;margin-bottom:5px}
.library-vegetable-card strong{display:block;color:#14351f;font-size:1.05rem;margin-bottom:6px}
.library-vegetable-card span{display:block;color:#5e6b63;font-size:.92rem;line-height:1.45}
.library-veg-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(8,17,12,.62);backdrop-filter:blur(4px)}
.library-veg-modal.is-open{display:flex}
.library-veg-modal__dialog{position:relative;width:min(980px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.3)}
.library-veg-modal__close{position:absolute;top:14px;right:14px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.9);box-shadow:0 6px 18px rgba(0,0,0,.16);font-size:24px;line-height:1;cursor:pointer;color:#15351f;z-index:2}
.library-veg-modal__back{position:absolute;top:50%;left:12px;transform:translateY(-50%);width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(0,0,0,.18);font-size:22px;line-height:1;cursor:pointer;color:#15351f;z-index:2}
.library-veg-modal__back[hidden]{display:none!important}
.library-veg-modal__hero{display:grid;grid-template-columns:1.05fr .95fr;gap:0;background:#f4fbf4;border-radius:24px 24px 0 0;overflow:hidden}
.library-veg-modal__hero img{width:100%;height:100%;min-height:310px;object-fit:cover;background:#edf5ed}
.library-veg-modal__intro{padding:34px 34px 28px;display:flex;flex-direction:column;justify-content:center}
.library-veg-modal__intro small{color:#2f7d45;font-weight:800;letter-spacing:.02em;text-transform:uppercase}
.library-veg-modal__intro h2{margin:8px 0 12px;color:#12351d;font-size:clamp(1.8rem,3vw,2.55rem)}
.library-veg-modal__intro p{color:#4e5d54;line-height:1.75;margin:0}
.library-veg-modal__body{padding:26px 34px 34px}
.library-veg-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:24px}
.library-veg-quick div{background:#f6faf6;border:1px solid rgba(15,23,42,.08);border-radius:14px;padding:11px 12px}
.library-veg-quick b{display:block;color:#183923;font-size:.82rem;margin-bottom:3px}
.library-veg-quick span{color:#55645b;font-size:.92rem}
.library-veg-quick-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,250px);gap:10px;align-items:start;margin-bottom:18px}
.library-veg-quick-shell .library-veg-quick{margin-bottom:0;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.library-veg-side{display:grid;gap:10px;align-content:start}
.library-veg-quick--single{display:block!important}
.library-veg-quick--single div{min-height:auto}
.library-veg-note{border:1px solid rgba(194,116,30,.22);background:#fff8ed;border-radius:12px;padding:10px 11px;display:flex;flex-direction:column;justify-content:flex-start;min-height:auto}
.library-veg-note b{color:#7a3f09;font-size:11.5px;line-height:1.25}
.library-veg-note p{margin:6px 0 0;color:#5d4630;line-height:1.45;font-size:12.5px}
.library-veg-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.library-veg-sections section{border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:15px 16px;background:#fff}
.library-veg-sections h3{margin:0 0 8px;color:#173922;font-size:1.02rem}
.library-veg-sections p,.library-veg-sections li{color:#536258;line-height:1.62;font-size:.95rem}
.library-veg-sections ul{margin:0;padding-left:18px}
.library-veg-related{margin-top:24px;padding:16px;border-radius:18px;background:#f7fbf6;border:1px solid rgba(45,128,75,.16)}
.library-veg-related h3{margin:0 0 10px;color:#173922}
.library-veg-related a{display:inline-flex;margin:4px 6px 4px 0;padding:8px 11px;border-radius:999px;background:#fff;color:#2f7d45;text-decoration:none;border:1px solid rgba(45,128,75,.22);font-weight:700;font-size:.9rem}
@media (max-width:760px){.library-veg-modal{padding:10px}.library-veg-modal__hero{grid-template-columns:1fr}.library-veg-modal__hero img{min-height:200px}.library-veg-modal__intro,.library-veg-modal__body{padding:22px}.library-veg-modal__dialog{border-radius:18px}.library-veg-modal__hero{border-radius:18px 18px 0 0}.library-veg-quick-shell{grid-template-columns:1fr}.library-veg-quick-shell .library-veg-quick{grid-template-columns:1fr}.library-veg-note{min-height:auto}.library-veg-modal__back{top:14px;left:14px;transform:none}}

/* Bitki yetiştiriciliği: aramalı yatay kayan kart sistemi */
.library-plant-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}
.library-plant-head p{margin:6px 0 0;color:#52605a;line-height:1.65}
.library-plant-count{min-width:74px;border:1px solid rgba(45,128,75,.18);background:#f4fbf4;border-radius:14px;padding:10px;text-align:center;color:#173922}
.library-plant-count strong{display:block;font-size:1.45rem;line-height:1;color:#2f7d45}
.library-plant-count span{font-size:.78rem;font-weight:800;color:#5e6b63}
.library-plant-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:end;margin:0 0 14px}
.library-plant-toolbar label{display:grid;gap:6px;flex:1;color:#52605a;font-size:.83rem;font-weight:800}
.library-plant-toolbar input{min-height:46px;border:1px solid rgba(15,23,42,.11);background:#fff;border-radius:12px;padding:0 14px;color:#14351f;outline:none}
.library-plant-toolbar input:focus{border-color:rgba(45,128,75,.45);box-shadow:0 0 0 4px rgba(45,128,75,.1)}
.library-plant-arrows{display:flex;gap:8px}
.library-plant-arrows button{width:46px;height:46px;border:1px solid rgba(45,128,75,.22);border-radius:12px;background:#fff;color:#2f7d45;font-size:28px;font-weight:900;cursor:pointer;line-height:1}
.library-plant-arrows button:hover{background:#f4fbf4;border-color:rgba(45,128,75,.45)}
.library-plant-rail{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 14px;grid-template-columns:none;scrollbar-width:thin}
.library-plant-card{flex:0 0 304px;scroll-snap-align:start}
.library-plant-card[hidden]{display:none!important}
@media(max-width:760px){.library-plant-head,.library-plant-toolbar{display:block}.library-plant-count{display:none}.library-plant-arrows{margin-top:10px}.library-plant-card{flex-basis:260px}}

/* Güncelleme: kart tasarımı bozulmadan arama + oklar + SEO detay sayfası */
.library-plant-toolbar{position:relative;display:flex!important;align-items:flex-end;gap:12px;width:100%;}
.library-plant-toolbar label{min-width:0;}
.library-plant-arrows{display:flex!important;align-items:center;gap:8px;flex:0 0 auto;position:sticky;right:0;z-index:3;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 28%);padding-left:18px;}
.library-plant-arrows button{display:inline-flex!important;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(15,23,42,.08);}
.library-plant-rail{display:flex!important;grid-template-columns:none!important;overflow-x:auto;scroll-behavior:smooth;scroll-padding-left:2px;}
.library-plant-card{display:flex;flex-direction:column;justify-content:space-between;min-height:236px;flex:0 0 304px;padding:0;}
.library-plant-preview{display:block;width:100%;border:0;background:transparent;text-align:left;color:inherit;font:inherit;padding:0;cursor:pointer;}
.library-plant-preview img{height:118px;}
.library-plant-placeholder{height:118px;background:linear-gradient(135deg,#edf7ec,#f8fcf7);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-bottom:1px solid rgba(15,23,42,.06);}
.library-plant-placeholder b{font-size:30px;line-height:1;}
.library-plant-placeholder em{font-style:normal;font-weight:900;color:#173922;font-size:.95rem;}
.library-plant-card__actions{display:flex;gap:8px;padding:0 14px 14px;margin-top:auto;}
.library-plant-card__actions button,.library-plant-card__actions a{flex:1;min-height:36px;border-radius:10px;border:1px solid rgba(45,128,75,.22);display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:900;font-size:.86rem;cursor:pointer;}
.library-plant-card__actions button{background:#f6fbf5;color:#2f7d45;font:inherit;font-weight:900;}
.library-plant-card__actions a{background:#2f7d45;color:#fff;}
.library-detail-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px;}
.library-back--ghost{border:1px solid rgba(45,128,75,.26)!important;background:#fff!important;color:#2f7d45!important;cursor:pointer;font:inherit;}
.library-plant-detail-page .library-topic{margin-bottom:18px;}
.library-plant-detail-hero img{background:#edf7ec;}
@media(max-width:760px){.library-plant-toolbar{display:block!important}.library-plant-arrows{position:static;background:transparent;padding-left:0;margin-top:10px}.library-plant-card{flex-basis:260px}.library-plant-card__actions{display:grid;grid-template-columns:1fr;}}

/* Düzeltme: bitki yetiştiriciliği görünümü, oklar, modal detay ve taşma sorunları */
.library-detail-hero__body{align-items:center;overflow:hidden;}
.library-detail-hero__body>img,.library-detail-hero img{width:100%;max-width:360px;height:220px;object-fit:cover;border-radius:14px;justify-self:end;background:#edf7ec;}
.library-topics .container{max-width:1200px;margin-left:auto;margin-right:auto;overflow:hidden;}
.library-topic{overflow:hidden;}
.library-growing-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:16px 0 18px;}
.library-plant-collection{overflow:hidden;}
.library-plant-rail{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;}
.library-plant-card{min-width:280px;max-width:304px;}
.library-plant-preview img{width:100%;height:118px;object-fit:cover;display:block;background:#edf7ec;}
.library-veg-modal__dialog{max-width:980px;width:min(980px,calc(100vw - 32px));}
.library-veg-modal__hero img{max-width:none;height:auto;min-height:260px;object-fit:cover;border-radius:0;}
.library-plant-card__actions a[data-plant-detail-link]{background:#2f7d45;color:#fff;}
@media(max-width:900px){.library-detail-hero__body>img,.library-detail-hero img{justify-self:start;max-width:100%;height:190px}.library-plant-card{min-width:250px}}

/* BioKeşif genişletilmiş bitki veritabanı ve akıllı asistan ekleri */
.library-ai-result{margin-top:18px;padding:18px;border:1px solid rgba(20,83,45,.16);border-radius:18px;background:rgba(240,253,244,.72)}
.library-ai-result h3{margin:14px 0 8px;color:#14532d}.library-ai-result ul{margin:0 0 10px 20px}.library-detail-actions{display:flex;gap:12px;flex-wrap:wrap}.library-back--ghost{border:0;cursor:pointer}.library-plant-rail{scroll-snap-type:x mandatory}.library-plant-card{scroll-snap-align:start}.library-veg-quick div b{display:block}.library-topic-specs h3{margin-top:22px}.library-plant-preview img{background:#f1f5f9}
@media(max-width:720px){.library-detail-actions{flex-direction:column}.library-plant-toolbar{gap:10px}.library-plant-rail{overflow-x:auto;-webkit-overflow-scrolling:touch}}

/* Kullanıcı isteği: yeşil tikler kaldırıldı, kategori teknik kartları eşitlendi */
.library-subtopic--compact{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:14px 16px;
}
.library-subtopic--compact strong{font-size:16px;line-height:1.25;}
.library-subtopic--compact span{display:none!important;}
.library-subtopic--compact strong::before{content:"";}
.library-topic .library-subtopic-grid{align-items:stretch;}

/* Bitki kartı tamamen tıklanabilir; hızlı bak kaldırıldı */
.library-plant-preview{
  display:flex!important;
  flex-direction:column;
  min-height:100%;
  text-decoration:none;
  color:inherit;
}
.library-plant-preview:hover{text-decoration:none;}
.library-plant-detail-pill{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:34px;
  margin:0 14px 14px;
  border-radius:10px;
  background:#2f7d45;
  color:#fff!important;
  font-weight:900;
  font-size:.86rem!important;
}
.library-plant-card__actions{display:none!important;}
.library-plant-rail{user-select:auto;touch-action:pan-x;}

/* Görseldeki dağınıklığı azaltmak için kategori sayfası kartlarını eşitle */
.library-topic[id*="sebze"],.library-topic[id*="meyve"],.library-topic[id*="tarla"],.library-topic[id*="sus"]{padding:18px 18px 22px;}
.library-topic[id*="sebze"] .library-subtopic-grid,
.library-topic[id*="meyve"] .library-subtopic-grid,
.library-topic[id*="tarla"] .library-subtopic-grid,
.library-topic[id*="sus"] .library-subtopic-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px;}
@media(max-width:900px){
  .library-topic[id*="sebze"] .library-subtopic-grid,
  .library-topic[id*="meyve"] .library-subtopic-grid,
  .library-topic[id*="tarla"] .library-subtopic-grid,
  .library-topic[id*="sus"] .library-subtopic-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:560px){
  .library-topic[id*="sebze"] .library-subtopic-grid,
  .library-topic[id*="meyve"] .library-subtopic-grid,
  .library-topic[id*="tarla"] .library-subtopic-grid,
  .library-topic[id*="sus"] .library-subtopic-grid{grid-template-columns:1fr;}
}


/* Son düzeltme: kategori teknik başlıkları tek parça, küçük ve açıklamasız */
.library-topic[id*="sebze"] .library-subtopic-grid,
.library-topic[id*="meyve"] .library-subtopic-grid,
.library-topic[id*="tarla"] .library-subtopic-grid,
.library-topic[id*="sus"] .library-subtopic-grid{
  display:flex!important;
  flex-wrap:wrap;
  gap:10px;
  margin:10px 0 18px!important;
}
.library-topic[id*="sebze"] .library-subtopic,
.library-topic[id*="meyve"] .library-subtopic,
.library-topic[id*="tarla"] .library-subtopic,
.library-topic[id*="sus"] .library-subtopic,
.library-subtopic--compact{
  min-height:44px!important;
  width:auto;
  min-width:132px;
  padding:10px 14px!important;
  border-radius:10px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:0!important;
  background:#f8fcf7;
}
.library-topic[id*="sebze"] .library-subtopic span,
.library-topic[id*="meyve"] .library-subtopic span,
.library-topic[id*="tarla"] .library-subtopic span,
.library-topic[id*="sus"] .library-subtopic span,
.library-subtopic--compact span{display:none!important;}
.library-topic[id*="sebze"] .library-subtopic strong,
.library-topic[id*="meyve"] .library-subtopic strong,
.library-topic[id*="tarla"] .library-subtopic strong,
.library-topic[id*="sus"] .library-subtopic strong,
.library-subtopic--compact strong{font-size:14px!important;line-height:1.15!important;}

/* Bitki kartlarında her türün kendi ikonu öne çıksın */
.library-plant-placeholder b{font-size:42px!important;}
.library-plant-placeholder em{font-size:1rem!important;}
.library-plant-detail-pill{pointer-events:none;}
.library-plant-preview{cursor:pointer;}
.library-plant-preview:focus-visible{outline:3px solid rgba(45,128,75,.35);outline-offset:3px;border-radius:18px;}

/* Tarım Kütüphanesi: yetiştiricilik teknik bağlantıları en fazla iki sıra */
.library-topic[id*="sebze"] .library-growing-topic-grid,
.library-topic[id*="meyve"] .library-growing-topic-grid,
.library-topic[id*="tarla"] .library-growing-topic-grid,
.library-topic[id*="sus"] .library-growing-topic-grid{
  display:grid!important;
  grid-auto-flow:column;
  grid-template-rows:repeat(2,44px);
  grid-auto-columns:minmax(178px,1fr);
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:8px;
  scroll-snap-type:x proximity;
  margin-top:18px;
  margin-bottom:0!important;
}
.library-topic[id*="sebze"] .library-growing-topic-grid--short,
.library-topic[id*="meyve"] .library-growing-topic-grid--short,
.library-topic[id*="tarla"] .library-growing-topic-grid--short,
.library-topic[id*="sus"] .library-growing-topic-grid--short{
  grid-auto-flow:row;
  grid-template-rows:none;
  grid-template-columns:repeat(4,minmax(0,1fr));
  overflow-x:visible;
}

/* Hızlı teknik kartlar: eski ikonlu, okunaklı stile dönüş */
.library-veg-quick-shell .library-veg-quick,
.library-topic .library-veg-quick{
  gap:12px;
}
.library-veg-quick div{
  min-height:96px;
  border-radius:12px;
  padding:12px 13px;
}
.library-veg-quick b{
  display:flex!important;
  align-items:center;
  gap:7px;
  color:#173922;
  font-size:13px!important;
  line-height:1.25;
  margin-bottom:7px;
}
.library-quick-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  flex:0 0 22px;
  border-radius:50%;
  background:#eaf6ea;
  font-size:14px;
}
.library-veg-quick span{
  color:#536258;
  font-size:13px!important;
  line-height:1.48;
}
.library-veg-note{min-height:auto;}
.library-topic[id*="sebze"],
.library-topic[id*="meyve"],
.library-topic[id*="tarla"],
.library-topic[id*="sus"]{
  padding-bottom:12px!important;
}
.library-topic[id*="sebze"] .library-growing-topic-grid--short,
.library-topic[id*="meyve"] .library-growing-topic-grid--short,
.library-topic[id*="tarla"] .library-growing-topic-grid--short,
.library-topic[id*="sus"] .library-growing-topic-grid--short{
  margin-bottom:0!important;
}
.library-topic[id*="sebze"] .library-growing-topic-grid .library-subtopic,
.library-topic[id*="meyve"] .library-growing-topic-grid .library-subtopic,
.library-topic[id*="tarla"] .library-growing-topic-grid .library-subtopic,
.library-topic[id*="sus"] .library-growing-topic-grid .library-subtopic{
  width:auto;
  min-width:0;
  min-height:44px!important;
  scroll-snap-align:start;
}
@media(min-width:1180px){
  .library-topic[id*="sebze"] .library-growing-topic-grid,
  .library-topic[id*="meyve"] .library-growing-topic-grid,
  .library-topic[id*="tarla"] .library-growing-topic-grid,
  .library-topic[id*="sus"] .library-growing-topic-grid{
    grid-template-rows:repeat(2,44px);
    grid-auto-columns:minmax(190px,1fr);
  }
}
@media(max-width:560px){
  .library-topic[id*="sebze"] .library-growing-topic-grid,
  .library-topic[id*="meyve"] .library-growing-topic-grid,
  .library-topic[id*="tarla"] .library-growing-topic-grid,
  .library-topic[id*="sus"] .library-growing-topic-grid{
    grid-template-rows:repeat(2,42px);
    grid-auto-columns:minmax(156px,72vw);
  }
  .library-topic[id*="sebze"] .library-growing-topic-grid--short,
  .library-topic[id*="meyve"] .library-growing-topic-grid--short,
  .library-topic[id*="tarla"] .library-growing-topic-grid--short,
  .library-topic[id*="sus"] .library-growing-topic-grid--short{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
