/* Adapted from kurji-cvek-ui AppLayout, HomePage, PromptInput, PromptSuggestions,
   AnswerPage and FooterSection. Original artwork is used without alteration. */
:root{--green:#00553e;--text:#131415;--border:#dfdfdf;--muted:#646566}
.embedded .perutnina-brand{visibility:hidden}
*{box-sizing:border-box}html{background:#fff;color-scheme:light}body{margin:0;min-height:100dvh;color:var(--text);font:400 16px/1.5 Poppins,Arial,sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #58a633;outline-offset:3px}img{display:block;max-width:100%}h1,h2,h3,h4,p{margin:0;overflow-wrap:anywhere}h1{font-size:28px;line-height:40px;color:var(--green)}h2{font-size:20px}h3{font-size:18px}h4{font-size:16px}button{color:inherit}.background{position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(357deg,#fff,rgba(255,255,255,.63) 6%,rgba(255,255,255,0)),url('/brand/answer-background.svg') right center/contain no-repeat;filter:blur(8px)}.home .background{filter:none;background:url('/brand/landscape-desktop.svg') center/cover no-repeat}.app-header{width:min(1280px,90%);margin:0 auto;height:122px;display:flex;align-items:center;justify-content:space-between;gap:20px}.perutnina-brand img{width:105px;height:80px;object-fit:contain}.language-control{position:relative;width:280px}.language-control img{width:20px;height:15px;flex:0 0 20px}.picker{position:relative}.picker-button{width:100%;height:50px;display:flex;align-items:center;gap:18px;padding:0 16px 0 14px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#20252a;text-align:left}.picker-button span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-button::after{content:"";flex:0 0 auto;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .16s ease}.picker-button[aria-expanded="true"]::after{transform:translateY(2px) rotate(-135deg)}.picker-button:hover{border-color:var(--green)}.picker-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:50;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 30px #0002;max-height:320px;overflow:auto;overscroll-behavior:contain}.picker-menu.upward{top:auto;bottom:calc(100% + 4px)}.picker-menu button{width:100%;display:flex;align-items:center;gap:18px;padding:10px 8px;border:0;border-radius:6px;background:none;color:#20252a;text-align:left}.picker-menu button:hover{background:#f2f6ef}.picker-menu button:focus-visible{outline-offset:-2px}.picker-menu button[aria-current="true"]{color:var(--green);font-weight:600}#product-picker .picker-button{height:48px;gap:12px;padding-left:10px}#product-thumb{width:38px;height:30px;object-fit:contain;flex:0 0 38px}.picker-option{gap:12px!important}.picker-option img{width:48px;height:38px;object-fit:contain;flex:0 0 48px}.picker-option small{display:block;margin-top:2px;color:var(--muted);font-size:12px;font-weight:400}.lot-option{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px;border-radius:6px;cursor:pointer}.lot-option strong{font-weight:500}.lot-option span{color:var(--muted);font-size:13px;white-space:nowrap}.lot-option:hover,.lot-option[aria-selected="true"]{background:#f2f6ef}#lot-picker input{width:100%}.kind-tabs{display:flex;flex-wrap:wrap;gap:8px}.kind-tabs button{border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--text);padding:9px 16px;font-size:14px;transition:background .16s ease,color .16s ease,border-color .16s ease}.kind-tabs button:hover{border-color:var(--green)}.kind-tabs button[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff}main{width:100%;padding:0 24px 92px}.view{display:none}.view.active{display:block}#chat-view{max-width:1040px;margin:auto}.home #chat-view{max-width:628px}.home-heading{display:none;align-items:center;flex-direction:column;padding-top:16px}.home .home-heading{display:flex}.chicken{width:75px;height:75px}.home-heading h1{font-weight:700}.composer-area{width:100%;margin:24px auto 0}.home .composer-area{margin-top:32px}#chat-form{display:flex;align-items:center;width:100%;min-height:72px;border-radius:100px;border:1px solid var(--border);padding:8px 10px 8px 24px;background:#fff}#question{flex:1;min-width:0;resize:none;height:48px;max-height:120px;border:0;padding:12px 10px 10px 24px;background:transparent;line-height:24px;color:var(--text)}#question:focus{outline:0}#chat-form:focus-within{outline:2px solid var(--green);outline-offset:2px}#send{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;background:none;border:0;padding:6px}#send img{width:23px;height:23px}.suggestions{display:flex;gap:8px;margin-top:24px}.suggestions button{flex:1;padding:14px 16px;border-radius:8px;border:1px solid var(--border);background:#fff;font-size:14px;text-align:center}.suggestions button:hover{background:#f6f6f6}.home .suggestions{display:grid;gap:8px}.home .suggestions button{padding:16px;font-size:16px}.chat-toolbar{display:flex;justify-content:space-between;align-items:center;margin:8px 0 24px;gap:12px}.chat-toolbar>div{display:flex;gap:18px}.home .chat-toolbar{display:none}.text-button{border:0;background:transparent;color:var(--green);padding:8px 0;display:inline-flex;align-items:center;gap:8px;text-align:left;font-size:14px;text-decoration:underline;text-underline-offset:4px}.text-button img{width:18px;height:18px}.message{margin:0 0 24px;overflow-wrap:anywhere;white-space:pre-line}.message.user{padding:16px 20px;background:#fff;border:1px solid var(--border);border-radius:8px;font-weight:500;display:flex;align-items:center;gap:14px}.message.assistant{background:rgba(255,255,255,.94);border-radius:8px;padding:24px}.response-label{display:flex;align-items:center;gap:10px;margin-bottom:16px;color:var(--green);font-weight:700}.response-label img{width:38px;height:38px}.farm-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin:-4px 0 20px}.farm-photo{display:block;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;color:var(--text);text-decoration:none}.farm-photo img{width:100%;height:190px;object-fit:cover}.farm-photo span{display:block;padding:8px 12px;font-size:13px;font-weight:500}a.farm-photo:hover{border-color:var(--green)}.asset-image{width:100%;max-height:280px;object-fit:contain;border-radius:8px;margin:12px 0 4px;background:#fff}.trace{display:grid;grid-template-columns:1fr 1fr 2fr;gap:16px;border-block:1px solid var(--border);padding:16px 0;margin:20px 0}.trace small{display:block;color:var(--muted);font-size:12px}.trace strong{font-size:15px;font-weight:500}.source-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.source-button{color:var(--green);border:1px solid var(--border);background:#fff;border-radius:6px;padding:8px 12px;font-size:13px}.source-button:hover{border-color:var(--green)}#product-panel{padding:24px;background:#fff;border:1px solid var(--border);border-radius:8px;margin:24px 0}#product-panel h2{color:var(--green);margin-bottom:20px}.product-fields{display:grid;grid-template-columns:2fr 1.3fr auto;gap:16px;align-items:end}label{display:block;font-size:14px;margin-bottom:6px}input,select{border:1px solid var(--border);border-radius:8px;background:#fff;padding:12px;min-width:0;max-width:100%}.product-fields select,.product-fields input{width:100%}.primary{border:1px solid var(--green);background:var(--green);color:white;border-radius:8px;min-height:50px;padding:12px 18px}#product-preview{display:flex;align-items:center;gap:16px;margin-top:16px;font-size:14px}#product-preview:empty{display:none}#product-preview img{width:95px;height:80px;object-fit:contain}.field-help{font-size:13px;color:var(--muted);margin-top:10px}.recipe-mini{border:1px solid var(--border);border-radius:8px;padding:20px;margin-top:16px;white-space:normal}.recipe-mini p,.card-content p{font-size:14px;margin-top:10px;white-space:pre-line}.recipe-mini>img{height:160px;width:100%;object-fit:contain;margin-bottom:16px}details{margin-top:14px}summary{cursor:pointer;color:var(--green);font-size:14px}details a{display:inline-block;margin-top:12px}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.knowledge-card{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}.knowledge-card>img{width:100%;height:200px;object-fit:contain}.card-content{padding:24px}#explorer-view{max-width:1100px;margin:auto}.explorer-heading{margin-bottom:24px}.explorer-heading h1{margin:16px 0}.explorer-tools{display:flex;flex-direction:column;gap:12px}.explorer-tools input{flex:1}footer{display:flex;align-items:center;justify-content:center;gap:3px;padding:16px 24px;position:fixed;bottom:0;left:0;right:0;background:linear-gradient(0deg,#fff 70%,rgba(255,255,255,0));font-size:14px;font-weight:500;line-height:16px;min-height:54px}.home footer{background:linear-gradient(0deg,rgba(0,70,42,.3),transparent);color:#fff}footer a img{width:90px;max-height:22px}#about-assistant{position:absolute;left:48px;bottom:20px;width:28px;height:28px;font-weight:700;border:2px solid currentColor;border-radius:50%;padding:0;background:transparent;color:inherit}dialog{width:min(760px,calc(100% - 32px));border:0;border-radius:12px;box-shadow:0 20px 80px #0003;padding:24px;color:var(--text);max-height:85dvh;overflow:auto}dialog::backdrop{background:#003b2bb3}.dialog-head{display:flex;align-items:center;justify-content:space-between;color:var(--green);font-size:14px;margin-bottom:16px}#close-source{background:none;border:0;font-size:30px;line-height:1;padding:8px}#source-content{overflow-wrap:anywhere}#source-content h2{font-size:21px;color:var(--green)}#source-content dl{display:grid;grid-template-columns:130px 1fr;gap:8px;font-size:14px}#source-content dt{color:var(--muted)}#source-content dd{margin:0}.source-facts{margin-top:16px;border-top:1px solid var(--border);padding-top:16px}.source-facts p{font-size:14px;white-space:pre-line;margin-bottom:12px}.error{color:#a22}.empty{padding:32px;background:#fff;border-radius:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(max-width:1024px){.home .background{background-image:url('/brand/landscape-mobile.svg');background-position:bottom}.background{background-size:cover}.app-header{height:112px}.home-heading{padding-top:8px}.product-fields{grid-template-columns:1fr 1fr}.primary{grid-column:1/-1}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body{font-size:14px}.app-header{height:100px;width:calc(100% - 32px);gap:12px}.perutnina-brand img{width:80px;height:62px}.language-control{width:190px}#language-button{height:46px;font-size:14px;padding-left:12px;gap:12px}.picker-menu button{font-size:14px;gap:12px}.picker-menu{max-height:260px}main{padding:0 16px 82px}.home-heading{padding-top:18px}h1{font-size:24px;line-height:32px}.home .composer-area{margin-top:30px}#chat-form{min-height:64px;padding-left:12px}#question{padding-left:10px;font-size:16px}.home .suggestions{margin-top:16px}.home .suggestions button{font-size:14px;padding:13px 10px}.suggestions{flex-direction:column;margin-top:16px}.chat-toolbar{align-items:flex-start;margin-bottom:16px}.chat-toolbar>div{flex-direction:column;gap:2px;align-items:flex-end}.text-button{font-size:12px;padding:6px 0}.message.assistant{padding:18px 14px}.message.user{padding:14px}.trace{grid-template-columns:1fr 1fr;gap:12px}.trace>div:last-child{grid-column:1/-1}#product-panel{padding:18px 14px}.product-fields{grid-template-columns:1fr;gap:14px}.product-fields input,.product-fields select{font-size:16px}.card-grid{grid-template-columns:1fr}.explorer-tools{flex-wrap:wrap}.explorer-tools input{width:100%}.card-content{padding:20px}.recipe-mini{padding:14px}#about-assistant{left:20px;width:25px;height:25px}footer{font-size:12px}dialog{padding:20px}#source-content dl{grid-template-columns:1fr}#source-content dd{margin-bottom:8px}}
.asset-tabs{display:flex;gap:8px;border-bottom:1px solid var(--border);margin:20px 0}.asset-tabs button{border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);padding:12px 16px;font-size:14px}.asset-tabs button.selected{color:var(--green);border-bottom-color:var(--green);font-weight:500}.asset-kind{color:var(--green);font-size:13px;margin-bottom:12px}.asset-copy{white-space:pre-line;margin:16px 0;font-size:14px}.asset-content h3{margin-top:20px}.related-assets{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.asset-graph{width:100%;background:#f7faf6;border-radius:10px;margin:12px 0;min-height:220px}.asset-graph [role=button]{cursor:pointer}.asset-graph [role=button]:hover rect{fill:#eff7e8}.graph-kind{font-size:12px;fill:#00553e;font-weight:700}.graph-name{font-size:11px;fill:#131415}.proof-status{padding:18px;background:#f7faf6;border-radius:8px;font-size:14px}.proof-button.checking{opacity:.75}.proof-button.ok{background:#e8f3ec;color:var(--green);font-weight:600}.proof-button.ok::before{content:"✓ "}.proof-button.bad{background:#fdecea;border-color:#b3261e;color:#b3261e;font-weight:600}.proof-button.bad::before{content:"✗ "}.proof-button.unknown{background:#fff;color:var(--green)}.source-button img{display:inline-block;width:17px;height:17px;vertical-align:middle;margin-right:6px}@media(max-width:600px){.asset-tabs{gap:0}.asset-tabs button{padding:10px 12px;font-size:12px}.asset-graph{min-width:0}.asset-content{overflow-x:auto}.asset-content>p,.asset-content>dl,.asset-content>details{overflow-wrap:anywhere}}

/* Source cards extend the existing answer layout; the chat shell stays unchanged. */
.knowledge-sources{margin:0 0 28px;white-space:normal}.knowledge-sources h3{font-size:15px;font-weight:600;color:var(--green);margin-bottom:14px}.knowledge-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:820px}.knowledge-source-card{position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:80px;padding:10px 22px 10px 8px;border:1px solid var(--green);border-radius:8px;background:#fff;color:var(--text);text-decoration:none;transition:background .15s,border-color .15s}.knowledge-source-card:hover{background:#f4f8ef;border-color:#59a733}.knowledge-hexagon{width:54px;height:54px;flex:0 0 54px;object-fit:contain}.knowledge-source-text{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px}.knowledge-source-title{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.knowledge-source-issuer{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.knowledge-source-number{position:absolute;right:8px;top:7px;color:var(--green);font-size:10px}.knowledge-show-all{display:block;margin:14px 0 0 auto;padding:4px 0;background:none;border:0;text-decoration:underline;text-underline-offset:3px;font-size:12px;color:var(--green)}.knowledge-citation{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:23px;height:23px;padding:0 5px;margin:0 3px;border:1px solid var(--green);border-radius:50%;color:var(--green);font-size:11px;line-height:1;text-decoration:none;white-space:normal}.knowledge-citation:hover{background:var(--green);color:#fff}.record-citations{display:flex;gap:4px;margin-top:12px}.answer-text p{margin:0 0 8px}.answer-text>:last-child{margin-bottom:0}.answer-text ul{margin:0 0 8px;padding-left:20px}.answer-text li{margin:3px 0}@media(max-width:600px){.knowledge-source-grid{grid-template-columns:1fr;gap:8px}.knowledge-source-card{min-height:72px}.knowledge-hexagon{width:48px;height:48px;flex-basis:48px}.knowledge-source-text{font-size:12px}.knowledge-sources{margin-bottom:22px}}
/* Graph and assistant remain side by side within the Perutnina shell. */
#dkg-view{max-width:1440px;margin:auto}.dkg-heading{padding:0 0 20px}.dkg-heading-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.dkg-eyebrow{font-size:11px;letter-spacing:.14em;color:var(--muted);margin:10px 0 3px}.dkg-heading h1{font-size:27px;line-height:1.3}.dkg-workspace{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:24px;align-items:start}.dkg-record-panel{min-width:0}.dkg-asset-content{padding:24px;background:#fff;border:1px solid var(--border);border-radius:12px;min-width:0}.dkg-asset-content h2{font-size:22px;color:var(--green)}.dkg-asset-content dl{font-size:14px;overflow-wrap:anywhere}.dkg-asset-content dt{color:var(--muted);margin-top:12px}.dkg-asset-content dd{margin:4px 0}.dkg-chat{position:sticky;top:18px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:20px;display:flex;flex-direction:column;max-height:calc(100dvh - 90px);min-width:0}.dkg-chat .response-label{margin-bottom:0}.dkg-chat h2{font-size:18px}.dkg-chat-context{display:grid;gap:4px;margin:16px 0;padding:12px;background:#f5f8f1;border-radius:8px;font-size:12px;overflow-wrap:anywhere}.dkg-chat-context small{color:var(--muted)}.dkg-chat-context strong{font-size:13px;color:var(--green);font-weight:500}#dkg-chat-messages{overflow:auto;overscroll-behavior:contain;min-height:120px;max-height:48dvh;scrollbar-width:thin}#dkg-chat-messages:empty{min-height:30px}.dkg-chat .message{margin-bottom:16px;font-size:14px}.dkg-chat .message.user{display:block;padding:12px;font-size:13px}.chat-turn-context{display:block;font-weight:400;color:var(--muted);font-size:11px;margin-top:8px}.dkg-chat .message.assistant{padding:12px 0}.dkg-chat .trace{grid-template-columns:1fr;font-size:12px}.dkg-chat .knowledge-source-grid{grid-template-columns:1fr}.dkg-chat .knowledge-source-card{max-width:100%;min-width:0}.dkg-chat .knowledge-sources h3{font-size:13px}.dkg-chat .recipe-mini{padding:12px}.dkg-chat-prompts{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.dkg-chat-prompts .source-button{font-size:11px;padding:7px 10px;text-align:left}#dkg-chat-form{display:flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:20px;padding:8px 10px;background:#fff;margin-top:8px}#dkg-chat-form:focus-within{outline:2px solid var(--green);outline-offset:2px}#dkg-question{width:100%;min-width:0;flex:1;resize:vertical;max-height:130px;border:0;background:transparent;font-size:14px;padding:8px;line-height:1.5}#dkg-question:focus{outline:0}#dkg-send{border:0;background:none;padding:8px;flex:0 0 36px}#dkg-send img{width:22px}.graph-workspace{min-width:0}.graph-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}.graph-toolbar .field-help{margin:0}.graph-canvas{height:480px;min-height:0!important;position:relative;overflow:hidden;border:1px solid #e1e8db;border-radius:12px;background:#f5f8f1}.graph-canvas canvas{display:block}.graph-status{padding:24px}.graph-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--muted)}.graph-legend-item{display:inline-flex;gap:6px;align-items:center}.graph-dot{display:inline-block;width:12px;height:12px;border-radius:50%}.graph-dot-batch{background:#00553e}.graph-dot-product{background:#58a633}.graph-dot-farm{background:#b6a232}.graph-dot-recipe{background:#df9b49}.graph-dot-certificate{background:#6b9594}.graph-dot-reference{background:#8e9d85}.graph-dot-facility{background:#8e9d85}.graph-dot-organization{background:#153e30}.graph-record-list{margin-top:18px}.graph-record-list .related-assets{max-height:180px;overflow:auto}.graph-canvas .scene-tooltip{font:12px Poppins,sans-serif;color:#153e30!important;background:#fff!important;border:1px solid #cad9c4;border-radius:8px;padding:10px!important;max-width:240px;white-space:normal!important}
@media(min-width:1001px){#dkg-ask-focus{display:none}}
@media(max-width:1000px){.dkg-workspace{grid-template-columns:1fr}.dkg-chat{position:static;max-height:none}#dkg-chat-messages{max-height:480px}.graph-canvas{height:400px}.dkg-chat .knowledge-source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.dkg-heading h1{font-size:22px}.dkg-asset-content{padding:16px}.dkg-asset-content h2{font-size:18px}.dkg-chat{padding:16px}.graph-canvas{height:320px}.graph-toolbar{align-items:flex-start}.graph-toolbar .field-help{font-size:11px}.dkg-chat .knowledge-source-grid{grid-template-columns:1fr}#dkg-question{font-size:16px}.dkg-heading-row .source-button{font-size:11px;max-width:130px}}

body.exploring footer{position:relative;background:transparent}body.exploring main{padding-bottom:32px}
/* Motion: content fades in as it appears; removals fade out first (app.js). Off for reduced-motion visitors. */
@keyframes fade-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes fade-out{to{opacity:0;transform:translateY(-4px)}}@keyframes menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}@keyframes fade-in-plain{from{opacity:0}}
@media(prefers-reduced-motion:no-preference){.view.active,#product-panel:not([hidden]),.message,.message.assistant>*,#dkg-asset-content>*,.asset-content>*,.dkg-chat-context>*,#dkg-chat-prompts>*,.chat-toolbar,.home-heading,dialog[open],.fading-in{animation:fade-in .24s ease-out both}.message.assistant>:nth-child(2){animation-delay:.05s}.message.assistant>:nth-child(3){animation-delay:.1s}.message.assistant>:nth-child(n+4){animation-delay:.15s}.picker-menu:not([hidden]){animation:menu-in .16s ease-out both}dialog[open]::backdrop{animation:fade-in-plain .2s ease-out both}.background.fading-in{animation:fade-in-plain .5s ease-out both}.fading-out{animation:fade-out .18s ease-in both!important}}
/* Information tab: a hero, GS1 facts, and the linked records with their photos. */
.asset-hero{display:grid;grid-template-columns:minmax(0,220px) 1fr;gap:20px;align-items:start;margin:4px 0 18px}.asset-hero img{width:100%;max-height:220px;object-fit:contain;border-radius:10px;background:#fff;border:1px solid var(--border)}.asset-hero.photo img{object-fit:cover;height:200px}.asset-hero h3{font-size:20px;line-height:1.3;color:var(--green);margin:2px 0 8px}.asset-hero .lead{font-size:14px;white-space:pre-line}.asset-hero .asset-kind{margin-bottom:4px}
.fact-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:0 0 8px}.fact{background:#f5f8f1;border-radius:8px;padding:10px 12px;margin:0}.fact dt{color:var(--muted);font-size:12px}.fact dd{margin:2px 0 0;font-size:15px;font-weight:600;overflow-wrap:anywhere}
.info-section{margin:22px 0 0}.info-section h3{font-size:16px;margin:0 0 10px;color:var(--green)}
.record-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.record-card{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#fff;color:var(--text);text-decoration:none}a.record-card:hover{border-color:var(--green)}.record-card img{width:100%;height:130px;object-fit:cover;background:#f5f8f1}.record-card.product img{object-fit:contain;padding:8px;background:#fff}.record-card span{display:block;padding:9px 12px 0;font-weight:600;font-size:14px}.record-card small{display:block;padding:3px 12px 12px;color:var(--muted);font-size:12px;line-height:1.45}
.lot-rows{display:grid;gap:8px}.lot-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);text-decoration:none}a.lot-row:hover{border-color:var(--green)}.lot-row strong{font-weight:600;font-size:14px}.lot-row small{color:var(--muted);font-size:12px}
.gs1-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;background:#f5f8f1;padding:8px 10px;border-radius:6px;overflow-wrap:anywhere}
@media(max-width:600px){.asset-hero{grid-template-columns:1fr}.asset-hero img,.asset-hero.photo img{height:auto;max-height:220px}.record-cards{grid-template-columns:1fr 1fr}.record-card img{height:100px}}
.asset-hero.no-image{grid-template-columns:1fr}
/* Relationship graph: round photo nodes on a quiet background. */
.graph-svg{display:block;width:100%;height:100%;cursor:grab;user-select:none}.graph-svg.panning{cursor:grabbing}.graph-zoom{display:flex;gap:6px}.graph-zoom .source-button{min-width:36px}
.graph-link{stroke:#9aad91;stroke-width:1.6}.graph-link-label{font:500 10.5px Poppins,Arial,sans-serif;fill:#5c7a68;text-anchor:middle;dominant-baseline:middle;paint-order:stroke;stroke:#f5f8f1;stroke-width:4px;stroke-linejoin:round}
.graph-node-label{font:500 12.5px Poppins,Arial,sans-serif;fill:#153e30;paint-order:stroke;stroke:#f5f8f1;stroke-width:4px;stroke-linejoin:round}.graph-node.root .graph-node-label{font-weight:700}
.graph-node-label:not([text-anchor]){text-anchor:middle}.graph-node-tag{font:700 11px Poppins,Arial,sans-serif;fill:#fff;text-anchor:middle;pointer-events:none}.graph-node.linked{cursor:pointer}.graph-node-ring{transition:stroke-width .15s ease}.graph-node.linked:hover .graph-node-ring,.graph-node.linked:focus-visible .graph-node-ring{stroke-width:6}.graph-node:focus{outline:none}
.thinking{display:inline-flex;align-items:center;gap:12px;max-width:100%;padding:8px 18px 8px 8px;border-radius:999px;background:#eaf4ee;color:var(--green);font-weight:600;font-size:15px}
.thinking-spinner{position:relative;display:inline-grid;place-items:center;flex:none;width:36px;height:36px}
.thinking-spinner img{width:26px;height:26px}
.thinking-spinner::before{content:"";position:absolute;inset:0;border-radius:50%;border:3px solid rgba(0,85,62,.16);border-top-color:var(--green)}
.thinking-dots{display:inline-flex;gap:4px;flex:none}
.thinking-dots i{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.4}
@media(prefers-reduced-motion:no-preference){
 .message.assistant>.thinking{animation:fade-in .24s ease-out both,thinking-glow 1.8s ease-out .24s infinite}
 .thinking-spinner::before{animation:thinking-spin .9s linear infinite}
 .thinking-dots i{animation:thinking-dot 1.2s ease-in-out infinite}
 .thinking-dots i:nth-child(2){animation-delay:.15s}
 .thinking-dots i:nth-child(3){animation-delay:.3s}
 .thinking-text{animation:fade-in-plain .35s ease-out both}
}
@keyframes thinking-spin{to{transform:rotate(360deg)}}
@keyframes thinking-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}
@keyframes thinking-glow{0%{box-shadow:0 0 0 0 rgba(0,85,62,.3)}70%{box-shadow:0 0 0 10px rgba(0,85,62,0)}100%{box-shadow:0 0 0 0 rgba(0,85,62,0)}}
.answer-feedback{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;font-size:13px;color:#5b6670}
.feedback-button{display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--border);border-radius:50%;background:#fff;font-size:16px;line-height:1;cursor:pointer}
.feedback-button:hover:not(:disabled){border-color:var(--green)}
.feedback-button:disabled{opacity:.4;cursor:default}
.feedback-button.chosen{opacity:1;border-color:var(--green);background:#eaf4ee}
.graph-dot-method{background:#2f6f4f}.graph-dot-step{background:#7fb069}.graph-dot-claim{background:#b5543c}.graph-dot-video{background:#3b6ea5}.graph-dot-clip{background:#8fb3d9}.graph-dot-term{background:#8c6bb1}.graph-dot-figure{background:#5f8f8a}.graph-dot-place{background:#c2a83e}.graph-dot-value{background:#a5ae9f}
.record-parts{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:13px;color:var(--muted)}
.asset-video{display:block;width:auto;max-width:100%;max-height:70vh;border-radius:10px;background:#000}.media-link{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;margin:0 12px 0 0}.media-meta{color:var(--muted);font-size:13px}.media-check{color:var(--green);font-size:13px;margin:8px 0 0}.media-check::before{content:"✓ "}
.media-figures{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.media-figures figure{margin:0}.media-figures img{display:block;width:100%;border:1px solid var(--border);border-radius:8px;background:#fff}.media-figures figcaption{color:var(--muted);font-size:12px;margin-top:4px}
.answer-media{margin:20px 0 4px;white-space:normal}.answer-media h3{font-size:15px;font-weight:600;color:var(--green);margin-bottom:12px}.answer-videos{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px;scrollbar-width:thin}.answer-video{flex:0 0 auto;width:180px;margin:0;scroll-snap-align:start}.answer-video video{display:block;width:100%;aspect-ratio:9/16;object-fit:contain;border-radius:10px;background:#000}.answer-video.wide{width:min(320px,100%)}.answer-video.wide video{aspect-ratio:16/9}.answer-video figcaption{margin-top:6px;font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.answer-video figcaption a{text-decoration:none}.answer-video figcaption a:hover{text-decoration:underline}.answer-document{display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;margin-top:12px}
@media(max-width:600px){.answer-video{width:150px}}
