/* AviTrack 0.2 · Fun-tastic farm colors. Original photographs stay untouched. */
:root{--forest:#155d48;--paper:#f3f8fc;--card:#fff;--line:#dce6ed;--ink:#173d39;--muted:#52676c;background:var(--paper);color:var(--ink)}
.avi-farm{--f-ink:#173d39;--f-dark:#176d51;--f-lime:#b9e781;--f-paper:#f3f8fc;--f-card:#fff;--f-line:#d3e2e5;--f-muted:#52676c;--f-tint:#e4f4ec}[hidden]{display:none!important}.avi-farm .fa-box{background:#fff;border-color:#d3e2e5}.avi-farm .fa-primary{background:#177552;border-color:#177552;color:white}.avi-farm .fa-secondary{background:#fff;border-color:#c9dce1}.fa-search{margin-top:16px!important}
.fun-welcome a.fa-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 16px;font-size:16px;font-weight:750;text-decoration:none;border:1px solid #177552;background:#177552;color:#fff;border-radius:12px}
.shell-header{background:#176d51;border-bottom:4px solid #aee768}.brand{letter-spacing:-.045em}.brand img{background:#fff;border:2px solid #d9f6b6;border-radius:12px}
.tools button{border-color:#73a98c;background:#116044;border-radius:12px;font-size:14px;min-height:44px}.tools button:hover{background:#094e37}.tools button>span{color:#fff4ba}
.rail{background:#fff;border-right:1px solid #dce6ed}.rail a{font-size:14px;min-height:46px;border-radius:13px}.rail a.active{background:#dff5e9;color:#11513c;box-shadow:inset 4px 0 #26ae76}.rail .nav-ico{width:26px;height:26px;padding:3px;border-radius:7px;background:#e2f5ed;color:#168b63}
.rail a[href="#pedigree"] .nav-ico,.rail a[href="#reports"] .nav-ico{background:#eee7fc;color:#7a48bb}.rail a[href="#breeding"] .nav-ico,.rail a[href="#supplies"] .nav-ico{background:#fff0d4;color:#a6610b}.rail a[href="#care"] .nav-ico{background:#ffe6ee;color:#b83264}.rail a[href="#finance"] .nav-ico,.rail a[href="#inbox"] .nav-ico{background:#e0efff;color:#2468aa}
.fa-box,.panel,.co-card{background:#fff;border-color:#dce6ed;border-radius:19px;box-shadow:0 3px 0 #e6edf3}.fa-heading h1,.co-head h1{color:#175641}.fa-primary,.primary{background:#167451;border-color:#167451;color:white;border-radius:12px;min-height:46px}.fa-secondary,.secondary{border-radius:12px;border-color:#c9dce1;background:#fff;min-height:44px}.fa-primary:hover,.primary:hover{background:#105d40}.fa-field input,.fa-field select,.fa-field textarea{border-radius:11px;border-color:#aabfc5;min-height:46px}.fa-field input:focus,.fa-field select:focus{border-color:#1b936a}.fa-disclose>summary{color:#285c55;min-height:44px;align-content:center}
.fun-icon{display:block;width:48px;height:48px;flex:none}.fun-welcome{background:#e2f7eb;border:1px solid #c4e8d5;border-radius:24px;padding:24px;margin:12px 0 22px;display:flex;align-items:center;gap:24px;position:relative;overflow:hidden}.fun-welcome .fun-icon{width:100px;height:100px}.fun-welcome h2{font:760 clamp(28px,4vw,40px)/1.1 Bric,DM,sans-serif;margin:4px 0 8px;letter-spacing:-.045em;color:#115d42}.fun-welcome p{margin:5px 0;color:#315e50}.fun-kicker{color:#266e50;font-size:14px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.fun-welcome .fa-btn{margin-top:12px}
.fun-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 28px}.fun-tile{--tile:#e6f7ed;--edge:#c3e9d5;display:flex;flex-direction:column;align-items:flex-start;text-decoration:none;border:1px solid var(--edge);border-bottom:4px solid var(--edge);border-radius:20px;padding:16px 13px;gap:7px;background:var(--tile);color:#23443b;min-width:0;transition:transform .15s,box-shadow .15s}.fun-tile:hover{transform:translateY(-3px);box-shadow:0 7px 0 #17473b0b}.fun-tile:active{transform:translateY(1px)}.fun-tile strong{font:750 19px/1.15 Bric,DM,sans-serif;letter-spacing:-.025em}.fun-tile>span:last-child{font-size:14px;line-height:1.35}.fun-tile-icon{display:grid;place-items:center;width:60px;height:60px;background:#ffffffae;border-radius:17px;margin-bottom:4px}.purple{--tile:#f0e9fc;--edge:#dbcbf2}.orange,.amber{--tile:#fff2d9;--edge:#f2d8aa}.pink{--tile:#ffeaf1;--edge:#f2cbd9}.blue{--tile:#e5f1ff;--edge:#c5dcf3}.teal{--tile:#dff7f3;--edge:#b6e4da}.violet{--tile:#eeedff;--edge:#d2d0f0}
.fun-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:20px 0}.fun-metrics article{background:#e5f5ee;border:1px solid #c5e4d5;padding:18px;border-radius:18px;display:flex;flex-direction:column;gap:5px}.fun-metrics article:nth-child(2){background:#fff1dd;border-color:#f0dab6}.fun-metrics article:nth-child(3){background:#e8edff;border-color:#d2daf3}.fun-metrics strong{font:760 clamp(23px,4vw,31px)/1.2 Bric,DM,sans-serif;overflow-wrap:anywhere}.fun-metrics span{font-size:14px}.fun-metrics .fun-icon{width:34px;height:34px}.fun-stock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fun-stock-grid .fa-box{margin:0}.fun-stock-grid h2{font-size:22px}.stock-total{font:750 36px/1.2 Bric,DM,sans-serif;margin:8px 0}.stock-total small{font:500 16px DM,sans-serif}.stock-low,.fun-alert{color:#834207;background:#fff0da;border:1px solid #edc887;border-radius:10px;padding:8px 12px}.fun-alert{padding:14px}.fun-small-icon{float:right}.fun-small-icon .fun-icon{width:42px;height:42px}.fun-profile h2,.fun-analysis h2{display:flex;align-items:center;gap:10px}.fun-profile h2 .fun-icon,.fun-analysis h2 .fun-icon{width:32px;height:32px}.photo-progress{background:#e8f4ff;color:#255b86;padding:12px;border-radius:12px}.blood-shares{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.blood-shares span{border-radius:12px;background:#eee9fb;color:#593583;padding:10px 14px;font-size:16px}.blood-shares strong{font-size:23px}.relationship-alert{border:2px solid #d84d64;background:#fff2f4;color:#80263b}.relationship-alert h2{color:#80263b}
.fa-bird,.fa-bird-id{border-radius:15px}.fa-bird:hover{background:#ecf9f1}.fa-bird-avatar{background:#e6f3e9}.fa-tip,.fa-key,.lc-notes{font-size:14px}.fa-head small,.co-kicker{font-size:14px}.phone-nav{border-top:2px solid #c9e3d7;background:#fff}.phone-nav a.active{color:#126843;background:#e5f8ed;border-radius:12px}.phone-nav .nav-ico{width:23px;height:23px}
.av-dialog{border:1px solid #c7ded6;border-radius:22px;box-shadow:0 20px 80px #183d4340}.dialog-head{background:#e6f6ed}.dialog-x{border-radius:50%;background:#fff;width:42px;height:42px}.av-dialog .fa-form{padding:0}.breeder-page .fa-label small:empty{display:none}.fa-field{display:grid;gap:6px;margin:12px 0;font-size:16px;font-weight:650}.fa-field input,.fa-field select{max-width:100%;width:100%;padding:10px;font:inherit;background:#fff;border:1px solid #aabfc5;color:#173d39}.fa-pair{min-width:0}.fa-pair>*{min-width:0}.fa-pair input{min-width:0}
/* Hero photographs stay fully opaque. Only the bottom 5% of other photos fades into their card background. */
.co-hero-img,.fa-portrait img{opacity:1!important;mask-image:none!important;-webkit-mask-image:none!important}.co-hero{padding:0;overflow:hidden}.co-hero-img{width:100%;display:block}.co-media:not(.co-media-hero) img,.fa-thumbs img{mask-image:linear-gradient(to bottom,#000 0%,#000 95%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 95%,transparent 100%)}
@media(max-width:900px){.fun-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.fun-welcome{padding:19px;gap:12px}.fun-welcome .fun-icon{width:74px;height:74px}}
@media(max-width:540px){.fun-tiles{gap:10px}.fun-tile{padding:13px 11px;border-radius:17px}.fun-tile strong{font-size:19px}.fun-tile-icon{width:52px;height:52px}.fun-icon{width:42px;height:42px}.fun-welcome{align-items:flex-start;border-radius:18px}.fun-welcome>.fun-icon{width:54px;height:54px}.fun-welcome h2{font-size:28px}.fun-metrics{grid-template-columns:1fr 1fr}.fun-metrics article:last-child:nth-child(3){grid-column:1/-1}.fun-stock-grid{grid-template-columns:1fr}.fun-metrics article{padding:14px}.top-wrap{padding-left:12px;padding-right:12px}.brand{font-size:25px}.tools{gap:4px}.tools button{padding:5px 7px;font-size:13px}.tools #profile-link{width:36px}.brand img{width:29px;height:29px}.fa-box{padding:16px}.fa-head h1{font-size:34px}.fa-details{gap:10px}.fun-profile h2,.fun-analysis h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.fun-tile{transition:none}.fun-tile:hover{transform:none}}
@media print{.fun-icon{display:none}.blood-shares span{border:1px solid #999;background:white;color:black}.fun-welcome,.fun-tiles{display:none}}

/* Keep the complete gamefowl stance and tail visible at every width. */
.co-hero-img{height:auto;aspect-ratio:3/2;object-fit:contain;object-position:center}

/* AviTrack: gamefowl emblem and two-tone wordmark. */
.brand{gap:9px;letter-spacing:-.045em}.brand img{width:42px;height:42px;border-radius:11px}.brand-wordmark{white-space:nowrap}.brand-wordmark>span{color:#f2d58d}@media(max-width:760px){.brand{gap:6px;font-size:23px}.brand img{width:34px;height:34px}}@media(max-width:350px){.brand{font-size:19px;gap:4px}.brand img{width:29px;height:29px}}

/* Requested 30% lighter green surfaces: sRGB 70% original + 30% white.
   Preserve dark text and data/status colors for legibility. */
.shell-header{background:#5d9985;color:#071b13;border-bottom-color:#c6ee95}
.brand{color:#092c1f}.brand-wordmark>span{color:#422e0b}
.tools button{background:#58907c;color:#020a06;border-color:#426e5d}.tools button>span{color:#020a06}.tools button:hover{background:#538373}
.avi-farm .fa-primary,.fa-primary,.primary,.fun-welcome a.fa-btn{background:#5d9e86;border-color:#5d9e86;color:#071b13}
.avi-farm .fa-primary:hover,.fa-primary:hover,.primary:hover,.fun-welcome a.fa-btn:hover{background:#588e79;color:#071b13}
.co .co-btn.forest,.co .co-chip.on,.co .co-av{background:#598174;border-color:#598174;color:#020a06}
.avi-lifecycle .lc-active,.avi-farm .fa-round-tabs button[aria-pressed='true'],.section-tabs button[aria-pressed=true]{background:#5d9985;border-color:#5d9985;color:#071b13}
.fun-welcome{background:#ebf9f1;border-color:#d6efe2}.rail a.active{background:#e9f8f0}.rail .nav-ico{background:#ebf8f2}
.fun-tile.green{--tile:#eef9f2;--edge:#d5f0e2}.fun-metrics article:first-child{background:#edf8f3;border-color:#d6ece2}
.phone-nav a.active{background:#edfaf2}.dialog-head{background:#eef9f2}

/* Persistent farm connection status and device draft review. */
.offline-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px max(12px,calc((100% - 1152px)/2));background:#ebf9f1;color:#173d39;font-size:13px;border-top:1px solid #548e75}.offline-status a{display:inline-flex;align-items:center;min-height:34px;white-space:nowrap;font-weight:750;color:#15553d}.offline-status span{min-width:0;overflow-wrap:anywhere}.offline-draft{display:grid;width:100%;gap:5px;text-align:left;background:#f6fbf8;border:1px solid #b8cfc3;border-radius:12px;margin:10px 0;padding:14px;color:#173d39;overflow-wrap:anywhere}.offline-draft small{font-size:13px}.offline-draft strong{font-size:16px}.offline-status[hidden]{display:none}@media(max-width:400px){.offline-status{font-size:12px;padding:4px 10px}}
.av-dialog .offline-compare{padding:10px;border:1px solid #c5dbce;border-radius:10px;overflow-wrap:anywhere}.av-dialog .offline-compare input[type=checkbox]{width:22px;min-height:22px;vertical-align:middle;margin-right:8px}.offline-compare small{display:block;font-size:14px;font-weight:450}
.offline-copy-note{padding:12px;border:1px solid #b5d5c6;border-radius:12px;background:#edf9f2;color:#173d39;font-size:14px;line-height:1.45}
.rail{top:var(--header-height,61px);max-height:calc(100vh - var(--header-height,61px) - 8px)}#content{scroll-margin-top:var(--header-height,61px)}

/* Original transparent hero: natural alpha only, complete bird, no presentation fade. */
.co-gamefowl-cutout{background:#eaf7ef}.co-gamefowl-cutout .co-hero-img{width:100%;height:auto;aspect-ratio:auto;max-height:620px;object-fit:contain;object-position:center;opacity:1;mask-image:none;-webkit-mask-image:none}

.co-welcome-bird{width:clamp(78px,12vw,138px);height:auto;flex:0 0 auto;align-self:center;object-fit:contain;opacity:1;mask-image:none;-webkit-mask-image:none}

/* Give the inventory tagline the full width on small farm phones. */
.fun-welcome h2{text-wrap:balance}
@media(max-width:600px){
 .fun-welcome{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:12px;padding:20px}
 .fun-welcome>div{display:contents}
 .fun-welcome .co-welcome-bird{grid-column:2;grid-row:1;width:72px;margin:0;align-self:center}
 .fun-welcome .fun-kicker{grid-column:1;grid-row:1;align-self:center;margin:0}
 .fun-welcome h2,.fun-welcome p,.fun-welcome .fa-btn{grid-column:1/-1;margin:0}
 .fun-welcome .fa-btn{justify-self:start}
}

.fun-welcome h2 span{display:inline-block}

/* Approved Kasabong lockup, including overlapping wordmark and upward bolt. */
.shell-header .brand img{width:128px;height:auto;border:0;border-radius:0;background:transparent;object-fit:contain}.shell-header .brand{flex:none}.rail{top:105px;max-height:calc(100dvh - 112px)}@media(max-width:760px){.shell-header .brand img{width:112px}.top-wrap{padding-top:5px;padding-bottom:5px}}@media(max-width:380px){.shell-header .brand img{width:96px}.tools button{font-size:12px;padding:5px}.top-wrap{gap:5px;padding-left:8px;padding-right:8px}}
