@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url('fonts/dm-sans.woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('fonts/manrope.woff2')}
:root{--cg-ink:#26362d;--cg-green:#264735;--cg-muted:#718078;--cg-line:#e6eae5;--cg-yellow:#f1cd55;--cg-bg:#f7f8f5;--cg-sidebar:#183f30}
.cg-body{margin:0;background:var(--cg-bg);color:var(--cg-ink);font-family:'DM Sans',system-ui,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
#cg-app,#cg-app *,.cg-login,.cg-login *{box-sizing:border-box}
#cg-app button,#cg-app input,#cg-app select,#cg-app textarea{font:inherit}
#cg-app button,#cg-app a,#cg-app input,#cg-app select,#cg-app textarea{ -webkit-tap-highlight-color:transparent}
#cg-app button{cursor:pointer;color:inherit}
#cg-app button:disabled{opacity:.5;cursor:wait}
#cg-app a{color:inherit;text-decoration:none}
#cg-app h1,#cg-app h2,#cg-app h3,#cg-app p{margin:0}
#cg-app h1,#cg-app h2,#cg-app h3{font-family:'Manrope',system-ui,sans-serif}
#cg-app button:focus-visible,#cg-app a:focus-visible,#cg-app input:focus-visible,#cg-app select:focus-visible,#cg-app textarea:focus-visible{outline:3px solid #b59320;outline-offset:3px}
#cg-app .cg-icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle;display:inline-block}
#cg-app .cg-sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:var(--cg-sidebar);color:#ebf0e9;padding:35px 23px 20px;z-index:20;display:flex;flex-direction:column;overflow-y:auto}
#cg-app .cg-brand{display:flex;gap:11px;align-items:center;margin:0 0 43px 9px;font-family:'Manrope',sans-serif;font-size:32px;font-weight:750;letter-spacing:-1.2px;line-height:1.15}
#cg-app .cg-brand-mark{background:var(--cg-yellow);color:#1e3d2b;border-radius:13px;width:41px;height:45px;display:grid;place-items:center;transform:rotate(-5deg)}
#cg-app .cg-brand-mark .cg-icon{width:28px;height:28px;transform:rotate(5deg)}
#cg-app .cg-brand-dot{color:var(--cg-yellow)}
#cg-app .cg-brand small{display:block;font:500 9px 'DM Sans',sans-serif;letter-spacing:2px;margin-top:6px;color:#b0c0b5}
#cg-app .cg-aviary-label{font-size:10px;letter-spacing:1.8px;color:#a4b9ab;margin:0 12px 8px}
#cg-app .cg-aviary-name{font-size:14px;margin:0 12px 25px;font-weight:500;overflow-wrap:anywhere;color:#f5f7f1}
#cg-app .cg-nav-item{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:13px 14px;margin-bottom:6px;border:0;background:none;border-radius:8px;color:#bbcdbf;font-size:14px;font-weight:500;transition:background .15s,color .15s}
#cg-app .cg-nav-item:hover{background:#ffffff0d;color:white}
#cg-app .cg-nav-item.is-active{background:#f1cd55;color:#283b25;font-weight:650}
#cg-app .cg-nav-item .cg-icon{width:19px;height:19px}
#cg-app .cg-count{margin-left:auto;font-size:12px;background:#f1cd5526;color:#f7db78;padding:1px 7px;border-radius:5px}
#cg-app .is-active .cg-count{background:#183f3020;color:var(--cg-sidebar)}
#cg-app .cg-sidebar-bottom{margin-top:auto;padding-top:35px}
#cg-app .cg-season-card{background:#ffffff07;border:1px solid #ffffff12;border-radius:9px;margin-bottom:22px;padding:15px 13px;font-size:13px;color:#e5eee3}
#cg-app .cg-season-card small{display:block;font-size:11px;color:#a9bcaf;margin-top:5px}
#cg-app .cg-season-dot{display:inline-block;width:6px;height:6px;background:var(--cg-yellow);border-radius:50%;margin:0 5px 2px 0}
#cg-app .cg-profile{display:flex;align-items:center;gap:10px;border-top:1px solid #ffffff16;padding:19px 4px 0;margin-top:16px}
#cg-app .cg-profile strong{font-size:13px;display:block;max-width:135px;overflow-wrap:anywhere}
#cg-app .cg-profile small{display:block;font-size:11px;color:#a9bcb0;margin-top:2px}
#cg-app .cg-profile a{margin-left:auto}
#cg-app .cg-avatar{height:37px;width:37px;border-radius:50%;display:grid;place-items:center;background:#d4dfc9;color:#2d4835;font-weight:650;flex-shrink:0;font-size:14px}
#cg-app .cg-avatar-small{width:33px;height:33px;font-size:12px}
#cg-app .cg-workspace{margin-left:250px;min-height:100vh;display:flex;flex-direction:column}
#cg-app .cg-topbar{height:79px;border-bottom:1px solid var(--cg-line);display:flex;align-items:center;justify-content:space-between;padding:0 39px;background:#fff;gap:15px}
#cg-app .cg-breadcrumb{display:flex;align-items:center;gap:13px;font-size:13px;color:#859087}
#cg-app .cg-breadcrumb strong{font-weight:500;color:#435348}
#cg-app .cg-slash{color:#c8cec8}
#cg-app .cg-top-actions{display:flex;gap:22px;align-items:center}
#cg-app .cg-year-label{font-size:13px;display:flex;gap:9px;align-items:center;color:#7a877d}
#cg-app .cg-year-label select{font-size:13px;padding:5px;border:0;background:transparent;font-weight:600;color:#324636}
#cg-app .cg-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;min-height:42px;border:1px solid #dce3dc;border-radius:7px;background:white;font-size:14px;font-weight:550;line-height:1.4;text-decoration:none;transition:background .15s,box-shadow .15s}
#cg-app .cg-button:hover{background:#f0f4ed}
#cg-app .cg-button.cg-primary{background:var(--cg-green);border-color:var(--cg-green);color:#fff;box-shadow:0 2px 3px #19352908}
#cg-app .cg-button.cg-primary:hover{background:#1d3727}
#cg-app .cg-button.cg-primary .cg-icon{width:18px;height:18px}
#cg-app .cg-icon-button{position:relative;min-height:38px;height:38px;width:38px;padding:7px;border:0;background:none;border-radius:50%}
#cg-app .cg-notification-dot{position:absolute;top:7px;right:8px;width:5px;height:5px;background:#bf8845;border-radius:50%;outline:2px solid white}
#cg-app .cg-mobile-menu{display:none}
#cg-app .cg-main{width:100%;max-width:1600px;margin:0 auto;padding:25px 39px 40px;flex:1}
#cg-app .cg-demo-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;background:#ecefe8;border:1px solid #e1e6da;border-radius:5px;font-size:12px;color:#5d6b55;margin-bottom:27px}
#cg-app .cg-demo-banner button{border:0;background:none;white-space:nowrap;text-decoration:underline;font-size:12px;font-weight:600}
#cg-app .cg-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}
#cg-app .cg-eyebrow{font-size:10px;letter-spacing:1.8px;color:#71816e;font-weight:600;margin-bottom:10px}
#cg-app h1{font-size:clamp(25px,2.25vw,34px);letter-spacing:-1.2px;font-weight:650;line-height:1.25;color:#253c2d}
#cg-app .cg-page-heading p{font-size:14px;color:var(--cg-muted);margin-top:9px}
#cg-app .cg-page-heading>.cg-button{flex-shrink:0}
#cg-app .cg-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:26px}
#cg-app .cg-stat{position:relative;background:#fff;border:1px solid var(--cg-line);border-radius:10px;padding:21px 20px 18px}
#cg-app .cg-stat p{font-size:13px;color:#68766a;margin:1px 35px 12px 0;line-height:1.4}
#cg-app .cg-stat strong{display:block;font-family:'Manrope',sans-serif;font-size:35px;line-height:1.2;font-weight:650;letter-spacing:-1px;color:#283e2d}
#cg-app .cg-stat small{display:block;font-size:11px;color:#8a9388;margin-top:11px}
#cg-app .cg-stat-icon{position:absolute;right:16px;top:18px;background:#f1f4ed;color:#6e8563;padding:7px;border-radius:8px;display:grid;place-items:center}
#cg-app .cg-stat:nth-child(2) .cg-stat-icon{background:#faf4dd;color:#b19647}
#cg-app .cg-stat:nth-child(3) .cg-stat-icon{background:#edf3ee;color:#789777}
#cg-app .cg-stat:nth-child(4) .cg-stat-icon{background:#f1f1fa;color:#8e89ac}
#cg-app .cg-stat-icon .cg-icon{width:20px;height:20px}
#cg-app .cg-dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;margin-bottom:32px}
#cg-app .cg-panel{background:#fff;border:1px solid var(--cg-line);border-radius:10px;min-width:0;overflow:hidden}
#cg-app .cg-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px 16px}
#cg-app h2{font-size:17px;font-weight:650;letter-spacing:-.35px;line-height:1.5}
#cg-app h3{font-size:16px;font-weight:650;letter-spacing:-.2px}
#cg-app .cg-small-count{display:inline-block;vertical-align:middle;font:500 11px 'DM Sans',sans-serif;padding:3px 6px;background:#f0f2ea;border-radius:5px;margin-left:6px;color:#738065}
#cg-app .cg-text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:none;font-size:12px;font-weight:550;color:#5b6f50;padding:4px;min-height:32px}
#cg-app .cg-text-button .cg-icon{width:15px;height:15px}
#cg-app .cg-task-row{width:100%;display:flex;text-align:left;align-items:center;gap:13px;padding:16px 22px;border:0;border-top:1px solid #f0f2ee;background:#fff;min-height:79px}
#cg-app .cg-task-row:hover{background:#f8faf5}
#cg-app .cg-task-icon{width:37px;height:37px;border-radius:9px;flex-shrink:0;display:grid;place-items:center;background:#f5f2e5;color:#a59553}
#cg-app .cg-task-ring{background:#f0edf7;color:#8c7ba9}
#cg-app .cg-task-hatch{background:#edf3e9;color:#7d9666}
#cg-app .cg-task-row>.cg-icon{width:15px;height:15px;color:#b6bdb2}
#cg-app .cg-task-text{flex:1;min-width:0}
#cg-app .cg-task-row strong{font-size:13px;font-weight:550;display:block}
#cg-app .cg-task-row small{font-size:11px;color:#899184;display:block;margin-top:4px}
#cg-app .cg-task-date{font-size:12px;color:#59694e;text-align:right;white-space:nowrap}
#cg-app .cg-task-date small{font-size:10px;color:#999f94}
#cg-app .cg-task-date.is-late,#cg-app .cg-task-date.is-late small{color:#ad6451}
#cg-app .cg-season-panel{padding-bottom:18px;background:linear-gradient(125deg,#fff,#fbfcf7)}
#cg-app .cg-muted{font-size:13px;color:#859080}
#cg-app .cg-season-total{display:flex;gap:12px;align-items:center;padding:0 23px 13px}
#cg-app .cg-season-total>strong{font-family:'Manrope',sans-serif;font-size:42px;font-weight:650;line-height:1.2;letter-spacing:-1px}
#cg-app .cg-season-total>span{font-size:11px;line-height:1.6;color:#8a9384}
#cg-app .cg-season-total .cg-season-egg{margin-left:auto;color:#d2c385;transform:rotate(25deg)}
#cg-app .cg-season-egg .cg-icon{width:44px;height:44px;stroke-width:1}
#cg-app .cg-status-bar{display:flex;margin:0 23px 17px;height:8px;background:#f0f3eb;gap:3px;border-radius:4px;overflow:hidden}
#cg-app .cg-bar-incubating{background:#d8ba62}
#cg-app .cg-bar-chicks{background:#648e64}
#cg-app .cg-bar-nest{background:#bbc9aa}
#cg-app .cg-bar-rest{background:#dddeda}
#cg-app .cg-bar-laying{background:#a8bfd2}
#cg-app .cg-status-legend{display:grid;grid-template-columns:1fr 1fr;gap:9px 20px;margin:0 23px}
#cg-app .cg-status-legend>span{font-size:11px;color:#7b8876;display:flex;gap:6px;align-items:center}
#cg-app .cg-status-legend i{width:6px;height:6px;border-radius:2px;flex-shrink:0}
#cg-app .cg-status-legend b{margin-left:auto;font-size:12px;font-weight:550;color:#516247}
#cg-app .cg-section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
#cg-app .cg-section-heading p{font-size:12px;color:#8b9486;margin-top:5px}
#cg-app .cg-pair-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#cg-app .cg-pair-card{display:block;min-width:0;text-align:left;padding:18px 18px 0;background:#fff;border:1px solid var(--cg-line);border-radius:10px;transition:transform .15s,box-shadow .15s}
#cg-app .cg-pair-card:hover{transform:translateY(-2px);box-shadow:0 7px 22px #283c2b0b;border-color:#c4cebb}
#cg-app .cg-card-top{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:16px;flex-wrap:wrap}
#cg-app .cg-cage{font-size:10px;letter-spacing:.7px;font-weight:550;color:#86907f;display:inline-flex;align-items:center;gap:5px}
#cg-app .cg-cage .cg-icon{height:13px;width:13px;color:#8d9c83}
#cg-app .cg-cage-number{font-size:36px;font-weight:800;line-height:1.1;letter-spacing:-1px;color:var(--cg-text);margin-left:4px}
#cg-app .cg-badge{display:inline-block;font-size:10px;font-weight:500;border-radius:5px;padding:4px 7px;line-height:1.35;white-space:nowrap;background:#eff1ed;color:#72806b}
#cg-app .cg-badge.cg-incubating,#cg-app .cg-badge.cg-unchecked{background:#faf2d8;color:#9a7b27}
#cg-app .cg-badge.cg-chicks,#cg-app .cg-badge.cg-hatched{background:#edf3e8;color:#62804a}
#cg-app .cg-badge.cg-nest{background:#f1f1e6;color:#8b8755}
#cg-app .cg-badge.cg-laying,#cg-app .cg-badge.cg-fertile{background:#edf2f7;color:#62839c}
#cg-app .cg-badge.cg-dead,#cg-app .cg-badge.cg-broken{background:#f9eae5;color:#a86c5d}
#cg-app .cg-pair-card h3{font-size:16px;font-weight:650;overflow-wrap:anywhere}
#cg-app .cg-parent-rings{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:#7f8979;margin-top:8px}
#cg-app .cg-parent-rings b{font-size:13px;font-weight:500;margin-right:2px}
#cg-app .cg-male{color:#7196ad}#cg-app .cg-female{color:#b18e9c}
#cg-app .cg-pair-eggs{display:flex;align-items:center;gap:4px;min-height:47px;margin:10px 0 0;flex-wrap:wrap}
#cg-app .cg-pair-eggs>span:last-child:not(.cg-mini-egg){font-size:11px;color:#959d8d;margin-left:5px}
#cg-app .cg-mini-egg{color:#cec6ac;line-height:1}
#cg-app .cg-mini-egg .cg-icon{width:13px;height:16px;fill:#f9f7ef;stroke-width:1.3}
#cg-app .cg-mini-egg.cg-hatched .cg-icon,#cg-app .cg-mini-egg.cg-dead .cg-icon{width:20px;height:20px}
#cg-app .cg-mini-egg.cg-fertile{color:#b9b591}#cg-app .cg-mini-egg.cg-fertile .cg-icon{fill:#eae4bd}
#cg-app .cg-mini-egg.cg-hatched{color:#9db089}#cg-app .cg-mini-egg.cg-hatched .cg-icon{fill:#dfebd2}
#cg-app .cg-mini-egg.cg-clear{color:#d4d6d0}
#cg-app .cg-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:7px;border-top:1px solid #f0f2eb;padding:12px 0;color:#8a9481;font-size:10px;min-height:41px}
#cg-app .cg-card-bottom .cg-icon{width:14px;height:14px}
#cg-app .cg-footer{display:flex;justify-content:space-between;gap:15px;padding:14px 39px 23px;font-size:10px;color:#9ca395}
#cg-app .cg-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}
#cg-app .cg-search{display:flex;align-items:center;gap:9px;border:1px solid #dfe5da;background:white;padding:0 12px;border-radius:7px;color:#939e8c;max-width:340px;width:100%}
#cg-app .cg-search input{border:0;outline:0;background:transparent;padding:11px 0;width:100%;min-width:0;color:#354632;font-size:14px}
#cg-app .cg-search .cg-icon{width:17px;height:17px}
#cg-app .cg-filters{display:flex;gap:10px}
#cg-app .cg-filters select{max-width:230px;padding:10px;border:1px solid #dfe5da;background:#fff;border-radius:6px;font-size:13px;color:#53644b;min-width:0}
#cg-app .cg-empty{text-align:center;padding:36px 25px;width:100%;grid-column:1/-1;color:#8c9981}
#cg-app .cg-empty>.cg-icon{width:33px;height:33px;margin-bottom:10px;color:#a9b69b}
#cg-app .cg-empty h3{font-size:15px;color:#56674b;margin-bottom:6px}
#cg-app .cg-empty p{font-size:13px;max-width:390px;margin:0 auto 15px}
#cg-app .cg-clutch-row{display:flex;align-items:center;gap:18px;border:0;border-bottom:1px solid var(--cg-line);background:#fff;padding:20px 24px;width:100%;text-align:left}
#cg-app .cg-clutch-row:hover{background:#f9faf6}
#cg-app .cg-clutch-row>span:nth-child(2){flex:1}
#cg-app .cg-clutch-row strong{font-size:14px;font-weight:600}
#cg-app .cg-clutch-row small{display:block;font-size:12px;color:#7d8a74;margin-top:3px}
#cg-app .cg-clutch-count{font-size:14px;margin-right:25px}
#cg-app .cg-task-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}
#cg-app .cg-table-wrap{overflow:auto;position:relative}
#cg-app table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:14px}
#cg-app th{font-weight:500;background:#fafbf7;color:#89957e;font-size:12px;padding:15px 20px;border-bottom:1px solid var(--cg-line)}
#cg-app td{padding:17px 20px;border-bottom:1px solid #edf0e8}
#cg-app td small{display:block;font-size:11px;color:#839077;margin-top:4px}
#cg-app .cg-zone-panel{margin-bottom:22px}
#cg-app .cg-panel-heading p{font-size:12px;color:#89957e;margin-top:5px}
#cg-app .cg-cage-scroll{overflow:auto;padding:8px 22px 22px}
#cg-app .cg-cage-grid{display:grid;gap:13px;min-width:100%;width:max-content}
#cg-app .cg-cage-cell{display:flex;flex-direction:column;text-align:left;padding:17px;border:1px dashed #d4ddc9;border-radius:8px;background:#fafcf7;min-height:127px;gap:9px;min-width:125px}
#cg-app .cg-cage-cell>span:first-child{font-size:10px;letter-spacing:1px;color:#8d9b81}
#cg-app .cg-cage-cell strong{font-size:13px;max-width:160px;overflow-wrap:anywhere}
#cg-app .cg-cage-cell small{font-size:11px;color:#93a087}
#cg-app .cg-cage-cell.is-occupied{border:1px solid #dbe3d2;background:#fff}
#cg-app .cg-cage-cell .cg-badge{align-self:flex-start}
#cg-app .cg-settings-form,#cg-app .cg-data-panel{max-width:800px;padding:26px;margin-bottom:22px}
#cg-app .cg-settings-form h2{margin-bottom:16px}
#cg-app .cg-settings-form>h2:not(:first-child){margin-top:30px}
#cg-app .cg-settings-form>p,#cg-app .cg-data-panel>p{font-size:14px;color:#849079;margin:8px 0 22px}
#cg-app .cg-field{display:flex;flex-direction:column;gap:7px;font-size:14px;color:#506348;font-weight:500;margin:0 0 17px;min-width:0}
#cg-app .cg-field input,#cg-app .cg-field select,#cg-app .cg-field textarea{width:100%;min-width:0;font-size:16px;line-height:1.5;padding:10px 12px;border:1px solid #d7dfcf;border-radius:6px;background:#fff;color:#30452b;font-weight:400;box-shadow:none}
#cg-app .cg-field textarea{resize:vertical}
#cg-app .cg-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
#cg-app .cg-actions{display:flex;gap:12px;flex-wrap:wrap}
#cg-app .cg-dialog{box-sizing:border-box;max-width:min(580px,calc(100vw - 32px));width:580px;max-height:calc(100dvh - 48px);border:1px solid #d8dfd2;border-radius:14px;padding:0;background:#fff;color:#30452b;box-shadow:0 25px 100px #15342333;overflow:auto}
#cg-app .cg-dialog::backdrop{background:#15251baa;backdrop-filter:blur(3px)}
#cg-app .cg-dialog-wide{width:790px;max-width:min(790px,calc(100vw - 32px))}
#cg-app .cg-dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-bottom:1px solid var(--cg-line);gap:15px;background:#fff;position:sticky;top:0;z-index:1}
#cg-app .cg-dialog-heading h2{font-size:20px;overflow-wrap:anywhere}
#cg-app .cg-dialog-body{padding:24px}
#cg-app .cg-dialog-body>p{font-size:15px;color:#728465}
#cg-app .cg-dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--cg-line);padding-top:18px;margin-top:24px}
#cg-app .cg-form-error{color:#a34135;font-size:14px;margin:12px 0;white-space:normal}
#cg-app .cg-form-hint{font-size:13px;color:#87977a;margin:0 0 20px}
#cg-app .cg-danger{color:#a75e50;border:0;font-size:13px;padding-left:0;background:none}
#cg-app .cg-detail-meta{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:13px;color:#85947a;margin-bottom:20px;flex-wrap:wrap}
#cg-app .cg-detail-parents{display:flex;align-items:center;gap:20px;background:#f7f9f3;padding:17px;border-radius:8px;margin-bottom:25px;flex-wrap:wrap}
#cg-app .cg-detail-parents>span{font-size:14px;overflow-wrap:anywhere}
#cg-app .cg-detail-parents b{display:block;font-size:11px;color:#8e9d82;margin-bottom:4px}
#cg-app .cg-detail-parents .cg-button{margin-left:auto;font-size:12px}
#cg-app .cg-notes{font-size:14px;white-space:pre-wrap;padding-bottom:20px;overflow-wrap:anywhere}
#cg-app .cg-clutch-detail{border:1px solid #e1e7da;border-radius:9px;margin-top:15px;padding:19px}
#cg-app .cg-clutch-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:15px;flex-wrap:wrap}
#cg-app .cg-clutch-heading span{font-size:12px;color:#87977a}
#cg-app .cg-clutch-tools{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
#cg-app .cg-clutch-tools .cg-button{font-size:12px;min-height:35px;padding:7px 10px}
#cg-app .cg-eggs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(94px,1fr));gap:9px}
#cg-app .cg-egg-card{padding:15px 6px;border:1px solid #e4e7dc;border-radius:8px;background:#fafbf6;display:flex;align-items:center;flex-direction:column;gap:4px;color:#8d956e;min-width:0}
#cg-app .cg-egg-card>.cg-icon{width:27px;height:33px;margin-bottom:4px;fill:#f5f1dd;color:#c8bc87}
#cg-app .cg-egg-card strong{font-size:13px}
#cg-app .cg-egg-card span{font-size:11px}
#cg-app .cg-egg-card small{font-size:10px;overflow-wrap:anywhere;max-width:100%;color:#8c987f}
#cg-app .cg-egg-card.cg-hatched{background:#f1f7eb;border-color:#dce9cf}
#cg-app .cg-egg-card.cg-hatched>.cg-icon{fill:#dceacb;color:#9fbb7f}
#cg-app .cg-egg-card.cg-dead,#cg-app .cg-egg-card.cg-broken{background:#f8ece7}
#cg-app .cg-clutch-actions{display:flex;gap:10px;margin-top:17px;flex-wrap:wrap}
#cg-app .cg-clutch-actions .cg-button{font-size:11px;padding:5px 9px;min-height:33px}
#cg-app .cg-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#214632;color:#fff;padding:13px 22px;border-radius:9px;max-width:calc(100vw - 32px);font-size:14px;z-index:100;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 4px 20px #143b3025}
#cg-app .cg-toast.is-visible{opacity:1;transform:translate(-50%,0)}
#cg-app .cg-toast.is-error{background:#923e32}
#cg-app .cg-error-banner{padding:15px;margin-bottom:20px;border:1px solid #dbb1a7;background:#fff2ee;color:#933f2c;font-size:14px}
#cg-app .cg-skip{position:fixed;top:-100px;left:15px;padding:10px;background:#fff;z-index:100}
#cg-app .cg-skip:focus{top:15px}
#cg-app .cg-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}
#cg-app .cg-loading,#cg-app .cg-load-error{margin:10vh auto;text-align:center;max-width:600px;padding:30px}
#cg-app .cg-load-error p{margin:15px 0}
.cg-login{max-width:480px;margin:12vh auto;padding:45px;background:#fff;border:1px solid #e1e7d9;border-radius:15px;text-align:center}
.cg-login h1{font-family:Manrope,system-ui,sans-serif;font-size:28px;letter-spacing:-1px;line-height:1.25;margin:35px 0 16px}
.cg-login p{color:#74836a;font-size:15px}
.cg-wordmark{font:750 43px Manrope,system-ui,sans-serif;color:#264735;letter-spacing:-2px}
.cg-wordmark span{color:#d7b842;font-size:12px}
.cg-login a{display:block;color:#375732;font-size:14px;margin:22px 0}
.cg-login .cg-login-button{background:#264735;color:white;border-radius:7px;text-decoration:none;padding:13px}
/* Regular labels stay readable; secondary metadata is deliberately quieter. */
#cg-app .cg-nav-item,#cg-app .cg-task-row strong,#cg-app .cg-stat p,#cg-app .cg-field,#cg-app .cg-cage-cell strong{font-size:14px}
#cg-app .cg-badge,#cg-app .cg-parent-rings,#cg-app .cg-card-bottom,#cg-app .cg-cage,#cg-app .cg-task-row small,#cg-app .cg-status-legend>span,#cg-app .cg-stat small{font-size:12px}
#cg-app .cg-page-heading p,#cg-app .cg-settings-form>p,#cg-app .cg-data-panel>p{font-size:16px}
@media(min-width:1600px){#cg-app .cg-main{padding-top:34px}#cg-app .cg-pair-card{padding:23px 23px 0}#cg-app .cg-pair-eggs{min-height:58px}}
@media(max-width:1200px){#cg-app .cg-sidebar{width:225px;padding:30px 16px 18px}#cg-app .cg-workspace{margin-left:225px}#cg-app .cg-topbar{padding:0 26px}#cg-app .cg-main{padding:24px 26px 35px}#cg-app .cg-stat{padding:18px 15px}#cg-app .cg-stat-icon{right:12px;top:14px;padding:5px}#cg-app .cg-pair-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#cg-app .cg-dashboard-grid{grid-template-columns:1.25fr 1fr;gap:17px}#cg-app .cg-task-row{padding:14px;gap:9px}#cg-app .cg-panel-heading{padding:18px 16px 15px}#cg-app .cg-stat p{min-height:40px}#cg-app .cg-status-legend{grid-template-columns:1fr;gap:7px}#cg-app .cg-season-panel{padding-bottom:15px}#cg-app .cg-task-columns{grid-template-columns:1fr}#cg-app .cg-season-total{padding-bottom:8px}}
@media(max-width:980px){#cg-app .cg-sidebar{width:200px;padding:25px 12px 16px}#cg-app .cg-workspace{margin-left:200px}#cg-app .cg-brand{font-size:27px;gap:8px;margin-left:6px}#cg-app .cg-brand-mark{width:33px;height:39px}#cg-app .cg-nav-item{padding:12px 9px;gap:9px;font-size:13px}#cg-app .cg-main{padding:20px}#cg-app .cg-topbar{padding:0 20px;height:69px}#cg-app .cg-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}#cg-app .cg-stat p{min-height:0}#cg-app .cg-dashboard-grid{grid-template-columns:1fr}#cg-app .cg-status-legend{grid-template-columns:1fr 1fr}#cg-app .cg-page-heading{align-items:flex-start}#cg-app .cg-page-heading h1{font-size:28px}#cg-app .cg-page-heading p{font-size:14px}#cg-app .cg-breadcrumb>span:first-of-type{display:none}#cg-app .cg-slash{display:none}#cg-app .cg-toolbar{flex-wrap:wrap}#cg-app .cg-search{max-width:none}#cg-app .cg-demo-banner{align-items:flex-start}#cg-app .cg-demo-banner span{font-size:11px}#cg-app .cg-card-top{gap:9px}#cg-app .cg-clutch-count{margin-right:0}#cg-app .cg-clutch-row{padding:16px;gap:10px}#cg-app .cg-panel-heading h2{font-size:16px}}
@media(max-width:700px){#cg-app .cg-sidebar{transform:translateX(-100%);width:250px;padding:28px 22px;transition:transform .2s;z-index:41}#cg-app .cg-sidebar.is-open{transform:translateX(0)}#cg-app .cg-workspace{margin-left:0}#cg-app .cg-overlay{position:fixed;inset:0;border:0;background:#122b1b88;z-index:40}#cg-app .cg-mobile-menu{display:inline-flex}#cg-app .cg-topbar{height:65px;padding:0 16px}#cg-app .cg-top-actions{gap:10px}#cg-app .cg-year-label{font-size:12px;gap:4px}#cg-app .cg-top-actions>.cg-avatar{display:none}#cg-app .cg-breadcrumb{gap:7px;font-size:13px}#cg-app .cg-main{padding:18px 17px 30px}#cg-app .cg-demo-banner{font-size:11px;padding:8px 10px;margin-bottom:23px}#cg-app .cg-demo-banner button{font-size:11px}#cg-app .cg-page-heading{flex-wrap:wrap;gap:18px;margin-bottom:23px}#cg-app h1,#cg-app .cg-page-heading h1{font-size:28px;letter-spacing:-1px}#cg-app .cg-eyebrow{font-size:10px}#cg-app .cg-page-heading>.cg-button{width:auto;padding:10px 13px;font-size:13px}#cg-app .cg-stats{gap:11px;margin-bottom:18px}#cg-app .cg-stat{padding:15px 13px}#cg-app .cg-stat p{font-size:12px;margin-right:22px;min-height:35px}#cg-app .cg-stat strong{font-size:30px}#cg-app .cg-stat small{font-size:11px;line-height:1.5}#cg-app .cg-stat-icon{right:10px;top:13px;padding:4px;border-radius:5px}#cg-app .cg-stat-icon .cg-icon{width:16px;height:16px}#cg-app .cg-dashboard-grid{gap:18px;margin-bottom:27px}#cg-app .cg-task-row{padding:15px 14px;gap:10px}#cg-app .cg-task-row strong{font-size:13px}#cg-app .cg-task-row small{font-size:11px}#cg-app .cg-task-date{font-size:11px}#cg-app .cg-task-icon{width:32px;height:35px}#cg-app .cg-section-heading{align-items:flex-start}#cg-app .cg-section-heading h2{font-size:18px}#cg-app .cg-section-heading .cg-text-button{font-size:11px;max-width:110px;line-height:1.5;text-align:right}#cg-app .cg-pair-grid{grid-template-columns:1fr;gap:14px}#cg-app .cg-pair-card{padding:19px 19px 0}#cg-app .cg-pair-card h3{font-size:18px}#cg-app .cg-parent-rings{gap:17px;font-size:12px}#cg-app .cg-pair-eggs{min-height:46px}#cg-app .cg-card-top{margin-bottom:16px}#cg-app .cg-card-bottom{font-size:12px;padding:13px 0}#cg-app .cg-cage{font-size:11px}#cg-app .cg-badge{font-size:11px}#cg-app .cg-footer{padding:10px 18px 22px;flex-wrap:wrap;font-size:10px}#cg-app .cg-filters{width:100%;gap:8px}#cg-app .cg-filters select{width:50%;font-size:13px;max-width:none}#cg-app .cg-form-grid{grid-template-columns:1fr}#cg-app .cg-dialog{max-height:calc(100dvh - 24px);max-width:calc(100vw - 20px);border-radius:12px}#cg-app .cg-dialog-heading{padding:14px 17px}#cg-app .cg-dialog-body{padding:18px}#cg-app .cg-dialog-heading h2{font-size:19px}#cg-app .cg-detail-parents{gap:15px;padding:13px}#cg-app .cg-detail-parents .cg-button{margin-left:0}#cg-app .cg-clutch-detail{padding:13px}#cg-app .cg-eggs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#cg-app .cg-clutch-row{flex-wrap:wrap;gap:12px}#cg-app .cg-clutch-row>span:nth-child(2){flex:1;min-width:160px}#cg-app .cg-clutch-row>.cg-icon{margin-left:auto}#cg-app .cg-clutch-count{margin-left:49px}#cg-app .cg-settings-form,#cg-app .cg-data-panel{padding:20px}#cg-app .cg-settings-form>p{font-size:14px}#cg-app .cg-cage-scroll{padding:8px 15px 18px}.cg-login{margin:8vh 16px;padding:30px 22px}}
@media(prefers-reduced-motion:reduce){#cg-app *{transition:none!important;scroll-behavior:auto!important}}
/* Keep secondary information legible on smaller screens and low-contrast displays. */
#cg-app .cg-muted,#cg-app .cg-stat small,#cg-app .cg-card-bottom,#cg-app .cg-parent-rings,#cg-app .cg-cage,#cg-app .cg-task-row small,#cg-app .cg-task-date small,#cg-app .cg-status-legend>span,#cg-app .cg-pair-eggs>span:last-child:not(.cg-mini-egg),#cg-app .cg-section-heading p,#cg-app .cg-footer,#cg-app .cg-form-hint,#cg-app .cg-clutch-heading span,#cg-app .cg-detail-meta,#cg-app .cg-egg-card small{color:#64705e}
#cg-app .cg-badge.cg-incubating,#cg-app .cg-badge.cg-unchecked{color:#795d16}
#cg-app .cg-badge.cg-chicks,#cg-app .cg-badge.cg-hatched{color:#496235}
#cg-app .cg-badge.cg-nest{color:#69652d}
#cg-app .cg-badge.cg-rest{color:#58614f}
#cg-app .cg-footer,#cg-app .cg-eyebrow,#cg-app .cg-aviary-label,#cg-app .cg-season-card small,#cg-app .cg-profile small,#cg-app .cg-task-date small,#cg-app .cg-task-row small,#cg-app .cg-stat small,#cg-app .cg-section-heading p,#cg-app .cg-detail-parents b,#cg-app .cg-egg-card small,#cg-app .cg-egg-card span{font-size:12px}
@media(max-width:700px){#cg-app .cg-sidebar{visibility:hidden}#cg-app .cg-sidebar.is-open{visibility:visible}#cg-app .cg-toast{bottom:15px}#cg-app .cg-footer{font-size:12px}}
@media print{#cg-app .cg-sidebar,#cg-app .cg-topbar,#cg-app .cg-demo-banner,#cg-app .cg-button,#cg-app .cg-text-button,#cg-app .cg-footer{display:none!important}#cg-app .cg-workspace{margin:0}#cg-app .cg-main{padding:0}#cg-app .cg-panel,#cg-app .cg-pair-card,#cg-app .cg-stat{break-inside:avoid}#cg-app .cg-pair-grid{grid-template-columns:repeat(2,1fr)}.cg-body{background:#fff}}

/* Aviary workspace, version 1.1. */
:root{--cg-ink:#233b35;--cg-green:#17624b;--cg-muted:#60766d;--cg-line:#e0e8e4;--cg-yellow:#d9ef9c;--cg-bg:#f3f6f5;--cg-sidebar:#142f29}
#cg-app .cg-sidebar{background:linear-gradient(165deg,#17372f,#102820);border-right:1px solid #2c443c}
#cg-app .cg-nav-item.is-active{background:#d9ef9c;box-shadow:0 3px 10px #071d1526;color:#244028}
#cg-app .cg-season-card{border-color:#3b5241;background:#213b30}
#cg-app .cg-topbar{height:76px;background:#ffffffed}
#cg-app .cg-main{padding-top:24px}
#cg-app .cg-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.5px;color:#56736b}
#cg-app h1{font-size:clamp(28px,2.5vw,39px);font-weight:750;letter-spacing:-1.4px;color:#163b2e}
#cg-app .cg-page-heading{margin-bottom:27px}
#cg-app .cg-heading-actions{display:flex;gap:10px;flex-shrink:0}
#cg-app .cg-button{min-height:44px;border-radius:9px;font-weight:600}
#cg-app .cg-button.cg-primary{box-shadow:0 4px 9px #1b4c3420}
#cg-app .cg-demo-banner{border:0;background:#e7eeea;margin-bottom:24px;padding:8px 12px;color:#4e695e}
#cg-app .cg-stat{border-radius:14px;border:1px solid #e0e8e4;padding:22px;box-shadow:0 3px 10px #1d3a2903}
#cg-app .cg-stat strong{font-size:38px;font-weight:750;color:#203e32}
#cg-app .cg-stat p{font-size:14px;color:#536f63;margin-bottom:14px}
#cg-app .cg-stat small{font-size:12px;color:#5f776b;margin-top:12px}
#cg-app .cg-stat-icon{width:35px;height:35px;background:#e9f3ed;color:#39715a;border-radius:10px;right:18px;top:19px}
#cg-app .cg-stat:nth-child(2) .cg-stat-icon{background:#fff2d7;color:#a77c26}
#cg-app .cg-stat:nth-child(3) .cg-stat-icon{background:#e9f3ff;color:#5583ac}
#cg-app .cg-stat:nth-child(4) .cg-stat-icon{background:#f0eafd;color:#8b6bad}
#cg-app .cg-overview-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(290px,1fr);gap:22px;margin-bottom:22px}
#cg-app .cg-panel{border-radius:14px;border-color:#e0e8e4;box-shadow:0 3px 10px #1d3a2903}
#cg-app .cg-panel-heading{padding:22px 23px 18px}
#cg-app .cg-panel-heading .cg-eyebrow{display:block;font-size:10px;margin-bottom:7px}
#cg-app .cg-panel-heading h2{font-size:18px;font-weight:750;color:#24463a}
#cg-app #cg-map-zone{background:#f7faf8;border:1px solid #dce7e0;border-radius:7px;padding:9px 10px;font:500 13px 'DM Sans',sans-serif;max-width:180px;color:#47675a;min-width:0}
#cg-app .cg-map-legend{display:flex;flex-wrap:wrap;gap:10px 15px;padding:0 23px 18px;font-size:11px;color:#526e60}
#cg-app .cg-map-legend>span{display:flex;align-items:center;gap:6px}
#cg-app .cg-map-dot{width:7px;height:7px;border-radius:50%;display:inline-block}
#cg-app .cg-dot-rest{background:#9eaca5}#cg-app .cg-dot-nest{background:#a4ac52}#cg-app .cg-dot-laying{background:#7ca6cf}#cg-app .cg-dot-incubating{background:#d9ad50}#cg-app .cg-dot-chicks{background:#5a9e7c}
#cg-app .cg-cage-scroll{padding:3px 22px 22px;position:relative}
#cg-app .cg-cage-grid{width:auto;gap:12px}
#cg-app .cg-cage-cell{padding:15px 13px;gap:8px;min-height:156px;border-radius:10px;border:1px solid #e2e8e4;background:#f7faf8;transition:box-shadow .15s,border-color .15s}
#cg-app .cg-cage-cell:hover{border-color:#80a391;box-shadow:0 3px 10px #123f2b12}
#cg-app .cg-cage-cell.is-occupied{border-top:3px solid #a3b5a9;background:#fff}
#cg-app .cg-cage-cell.cg-map-incubating{border-top-color:#d9ad50;background:linear-gradient(#fffaf0,#fff 70%)}
#cg-app .cg-cage-cell.cg-map-chicks{border-top-color:#5a9e7c;background:linear-gradient(#f0f8f0,#fff 70%)}
#cg-app .cg-cage-cell.cg-map-nest{border-top-color:#b8bd78;background:linear-gradient(#f8f9ef,#fff 70%)}
#cg-app .cg-cage-cell.cg-map-laying{border-top-color:#7ca6cf;background:linear-gradient(#f0f6fc,#fff 70%)}
#cg-app .cg-cage-cell>span.cg-map-number{display:flex;justify-content:space-between;width:100%;align-items:center;font:750 25px 'Manrope',sans-serif;color:#325044;letter-spacing:-.8px}
#cg-app .cg-map-number .cg-icon{width:15px;height:15px;color:#759382}
#cg-app .cg-cage-cell strong{font-size:13px;color:#2f4e40;line-height:1.45;max-width:none}
#cg-app .cg-cage-cell .cg-badge{font-size:11px;padding:3px 6px;border-radius:4px}
#cg-app .cg-cage-cell small{font-size:11px;color:#5d7769}
#cg-app .cg-cage-cell .cg-map-next{font-size:10px;line-height:1.5;letter-spacing:0;color:#6c7e69;margin-top:auto;padding-top:8px;border-top:1px solid #e6ece6;width:100%}
#cg-app .cg-map-empty{justify-content:center;border-style:dashed;background:#f8faf8}
#cg-app .cg-map-empty .cg-map-number{color:#a3b4a9!important}
#cg-app .cg-attention-heading{display:flex;gap:12px;align-items:center;padding:23px 21px;background:#f5f9ef;border-bottom:1px solid #e5ecd9}
#cg-app .cg-attention-heading .cg-eyebrow{font-size:10px;color:#6b7e4d;margin-bottom:5px}
#cg-app .cg-attention-heading h2{font-size:18px;font-weight:750}
#cg-app .cg-attention-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#e6efce;color:#617d37;flex-shrink:0}
#cg-app .cg-attention-panel .cg-task-row{padding:17px 18px;gap:10px}
#cg-app .cg-attention-panel .cg-task-row strong{font-size:13px;line-height:1.4}
#cg-app .cg-attention-panel .cg-task-row small{font-size:11px;line-height:1.5}
#cg-app .cg-attention-panel .cg-task-row>.cg-icon{display:none}
#cg-app .cg-agenda-link{display:flex;justify-content:space-between;align-items:center;padding:15px 22px;background:#fafcf8;border:0;border-top:1px solid #e4ebe1;width:100%;font-size:12px;font-weight:600;color:#397153}
#cg-app .cg-agenda-link .cg-icon{width:17px;height:17px}
#cg-app .cg-week-panel{margin-bottom:28px}
#cg-app .cg-week-range{font-size:12px;color:#5f7a6b;white-space:nowrap}
#cg-app .cg-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:0 22px 22px;gap:10px}
#cg-app .cg-week button{background:#f8faf9;border:1px solid #e3eae5;border-radius:10px;padding:13px 8px;text-align:center;display:flex;flex-direction:column;gap:5px;align-items:center;color:#546c60}
#cg-app .cg-week button:hover{border-color:#70a083;background:#eff5eb}
#cg-app .cg-week button.is-today{background:#1d5743;color:#fff;border-color:#1d5743}
#cg-app .cg-week span{font-size:12px;text-transform:capitalize}
#cg-app .cg-week strong{font:750 23px 'Manrope',sans-serif}
#cg-app .cg-week small{font-size:11px;color:#718573;white-space:nowrap}
#cg-app .cg-week .is-today small{color:#d3e7b4}
#cg-app .cg-scope-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}
#cg-app .cg-scope-tabs button{border:1px solid #dce6df;background:white;border-radius:8px;padding:11px 14px;font-size:13px;color:#4d6b5d;display:flex;align-items:center;gap:8px}
#cg-app .cg-scope-tabs button.is-active{background:#234e3f;color:white;border-color:#234e3f}
#cg-app .cg-scope-tabs span{border-radius:5px;background:#e8efe7;padding:1px 6px;color:#436245;font-size:11px}
#cg-app .cg-agenda-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
#cg-app .cg-day-selection{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;color:#395f4a}
#cg-app .cg-agenda-group .cg-panel-heading{background:#f8faf7;padding:17px 20px}
#cg-app .cg-agenda-group .cg-panel-heading h2{font-size:15px;text-transform:capitalize}
#cg-app .cg-bottom-nav{display:none}
#cg-app .cg-timeline{list-style:none;display:flex;position:relative;overflow:auto;gap:0;padding:8px 0 17px;margin:5px 0 12px;border-bottom:1px solid #e7ede6}
#cg-app .cg-timeline li{position:relative;display:flex;flex:1;min-width:85px;align-items:center;flex-direction:column;text-align:center;gap:6px;color:#6c8073}
#cg-app .cg-timeline li:not(:last-child):after{content:'';position:absolute;height:2px;background:#e4eae2;left:calc(50% + 15px);right:calc(-50% + 15px);top:14px}
#cg-app .cg-timeline-node{height:29px;width:29px;display:grid;place-items:center;border:1px solid #dbe5d6;border-radius:50%;background:#f4f7f0;font-size:11px;z-index:1}
#cg-app .cg-timeline strong{font-size:11px;font-weight:600}
#cg-app .cg-timeline time{font-size:11px;color:#667d66}
#cg-app .cg-timeline .cg-icon{height:14px;width:14px}
#cg-app .cg-timeline .is-done .cg-timeline-node{background:#e6f0db;color:#3f733f;border-color:#c7dab5}
#cg-app .cg-timeline .is-next .cg-timeline-node{background:#245b43;color:#fff;border-color:#245b43;box-shadow:0 0 0 3px #edf3e4}
#cg-app .cg-timeline .is-next strong{color:#214c32}
#cg-app .cg-batch-actions{display:flex;gap:9px;margin-bottom:15px;flex-wrap:wrap}
#cg-app .cg-batch-actions .cg-button{font-size:12px;min-height:36px;padding:7px 11px;border-color:#cfdfd0;color:#416b4c;background:#f9fcf7}
#cg-app .cg-batch-actions .cg-icon{width:16px;height:16px}
#cg-app .cg-review-row{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #e4ece1;font-size:14px}
#cg-app .cg-review-row>span{display:flex;align-items:center;gap:9px}
#cg-app .cg-review-row small{font-size:12px;color:#75856c}
#cg-app .cg-review-row .cg-icon{color:#b7a462}
#cg-app .cg-review-row select{border:1px solid #d6e0cf;border-radius:7px;font-size:14px;padding:10px;background:#fff;color:#37583d;max-width:52%}
#cg-app .cg-pair-card{border-radius:13px;border-color:#dfe8e1}
#cg-app .cg-pair-card:hover{box-shadow:0 8px 26px #163a2910}
@media(max-width:1350px){#cg-app .cg-overview-layout{grid-template-columns:minmax(0,1.65fr) minmax(285px,1fr)}#cg-app .cg-page-heading{flex-wrap:wrap}#cg-app .cg-cage-cell{padding:13px 11px}#cg-app .cg-panel-heading{flex-wrap:wrap}}
@media(max-width:1150px){#cg-app .cg-overview-layout{grid-template-columns:1fr}#cg-app .cg-attention-panel{display:block}#cg-app .cg-attention-panel .cg-task-row{padding:16px 22px}#cg-app .cg-agenda-groups{grid-template-columns:1fr}#cg-app .cg-week{gap:6px;padding:0 16px 18px}#cg-app .cg-week small{font-size:10px}#cg-app .cg-stat{padding:18px}#cg-app .cg-stat-icon{right:12px;top:16px}#cg-app .cg-heading-actions{flex-wrap:wrap}}
@media(max-width:700px){#cg-app .cg-main{padding:20px 16px 28px}#cg-app .cg-workspace{padding-bottom:70px}#cg-app .cg-topbar{height:64px;position:sticky;top:0;z-index:15;backdrop-filter:blur(10px)}#cg-app .cg-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:25;background:#fff;border-top:1px solid #dce6de;padding:7px 10px max(7px,env(safe-area-inset-bottom));box-shadow:0 -4px 20px #12392305;gap:5px}#cg-app .cg-bottom-nav button{flex:1;display:flex;align-items:center;flex-direction:column;gap:4px;padding:7px 4px;border:0;border-radius:8px;background:none;color:#6b8375;min-height:48px;font-size:11px}#cg-app .cg-bottom-nav button[aria-current]{background:#eff5e7;color:#24543b;font-weight:650}#cg-app .cg-bottom-nav .cg-icon{height:20px;width:20px}#cg-app h1,#cg-app .cg-page-heading h1{font-size:30px;line-height:1.18}#cg-app .cg-heading-actions{width:100%;gap:8px}#cg-app .cg-heading-actions .cg-button{flex:1;padding:10px;font-size:12px;min-height:44px}#cg-app .cg-page-heading p{font-size:14px;line-height:1.6}#cg-app .cg-stat{padding:15px 13px}#cg-app .cg-stat p{font-size:12px;min-height:36px;margin-right:28px}#cg-app .cg-stat strong{font-size:31px}#cg-app .cg-stat-icon{width:27px;height:27px;right:10px;top:13px;padding:4px;border-radius:7px}#cg-app .cg-stat small{font-size:11px;line-height:1.5}#cg-app .cg-panel-heading{padding:19px 17px 16px;gap:12px}#cg-app .cg-panel-heading h2{font-size:17px}#cg-app .cg-panel-heading .cg-eyebrow{font-size:10px}#cg-app #cg-map-zone{max-width:100%;font-size:13px}#cg-app .cg-map-legend{padding:0 17px 16px;gap:8px 12px;font-size:10px}#cg-app .cg-cage-scroll{padding:3px 16px 18px}#cg-app .cg-week{grid-template-columns:repeat(7,minmax(65px,1fr));overflow:auto;position:relative;gap:6px;padding:0 16px 17px}#cg-app .cg-week button{padding:11px 4px}#cg-app .cg-week-range{font-size:11px}#cg-app .cg-week-panel .cg-panel-heading p{font-size:12px}#cg-app .cg-week-panel{margin-bottom:25px}#cg-app .cg-attention-panel .cg-task-row{padding:16px}#cg-app .cg-attention-heading{padding:20px 17px}#cg-app .cg-scope-tabs{gap:6px}#cg-app .cg-scope-tabs button{font-size:12px;padding:10px;flex-grow:1}#cg-app .cg-agenda-group .cg-task-row{gap:9px}#cg-app .cg-footer{font-size:11px}#cg-app .cg-toast{bottom:85px}#cg-app .cg-review-row{gap:8px}#cg-app .cg-review-row>span{gap:5px}#cg-app .cg-review-row small{display:none}#cg-app .cg-dialog{max-height:calc(100dvh - 24px)}#cg-app .cg-timeline{margin-top:12px}#cg-app .cg-timeline li{min-width:82px}}
@media print{#cg-app .cg-bottom-nav{display:none!important}}
#cg-app .cg-dot-fertile{background:#9b89c4}
#cg-app .cg-cage-cell.cg-map-fertile{border-top-color:#9b89c4;background:linear-gradient(#f5f0fb,#fff 70%)}
#cg-app .cg-badge.cg-fertile{background:#f0eafa;color:#725497}
#cg-app .cg-view-tabs{margin-bottom:0}
#cg-app .cg-calendar-controls{display:flex;align-items:center;gap:8px}
#cg-app .cg-calendar .cg-panel-heading h2{text-transform:none}
#cg-app .cg-calendar .cg-panel-heading h2::first-letter{text-transform:uppercase}
#cg-app .cg-calendar-weekdays,#cg-app .cg-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
#cg-app .cg-calendar-weekdays{background:#f7faf7;border-top:1px solid #e2eae0;border-bottom:1px solid #e2eae0}
#cg-app .cg-calendar-weekdays span{padding:12px;text-align:center;font-size:12px;color:#69816b}
#cg-app .cg-calendar-days button{min-width:0;min-height:116px;background:white;border:0;border-right:1px solid #e7eee4;border-bottom:1px solid #e7eee4;padding:9px;text-align:left;display:flex;flex-direction:column;gap:4px;align-items:flex-start;color:#47624b}
#cg-app .cg-calendar-days button:nth-child(7n){border-right:0}
#cg-app .cg-calendar-days button:hover{background:#f4f8ec}
#cg-app .cg-calendar-days button.is-outside{background:#fafcf8;color:#7b8b71}
#cg-app .cg-calendar-days button>strong{font-size:13px;display:grid;place-items:center;width:27px;height:27px;margin-bottom:4px;font-weight:500}
#cg-app .cg-calendar-days button.is-today>strong{background:#2b6545;color:white;border-radius:50%}
#cg-app .cg-calendar-event{display:block;width:100%;background:#f5edd4;color:#77602b;border-radius:4px;font-size:10px;padding:4px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-left:2px solid #c8a951}
#cg-app .cg-calendar-event small{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;color:inherit}
#cg-app .cg-event-hatch{background:#e9f3e1;border-color:#8cac65;color:#526e37}
#cg-app .cg-event-ring{background:#f0eafb;border-color:#a88cca;color:#785998}
#cg-app .cg-event-separate,#cg-app .cg-event-wean{background:#e8f1f7;border-color:#7ca4b7;color:#476c7b}
#cg-app .cg-calendar-days button>small{font-size:10px;color:#647b59}
#cg-app .cg-calendar-note{font-size:12px;color:#607659;padding:17px 20px}
#cg-app .cg-calendar-mobile-count{display:none}
@media(max-width:700px){#cg-app .cg-calendar-days button{min-height:72px;padding:5px;align-items:center}#cg-app .cg-calendar-event,#cg-app .cg-calendar-days button>small{display:none}#cg-app .cg-calendar-days button>strong{font-size:12px;margin-bottom:0}#cg-app .cg-calendar-weekdays span{font-size:11px;padding:10px 3px}#cg-app .cg-calendar-mobile-count{display:block;font-size:10px;font-style:normal;background:#e6efdb;border-radius:4px;padding:1px 6px;color:#456333}#cg-app .cg-calendar .cg-panel-heading{padding:16px;gap:10px}#cg-app .cg-calendar .cg-panel-heading h2{font-size:16px}#cg-app .cg-calendar-controls .cg-button{min-height:36px;padding:6px 10px}#cg-app .cg-calendar .cg-icon-button{width:30px}#cg-app .cg-calendar-note{font-size:12px;padding:15px}#cg-app .cg-view-tabs button{flex:0 1 auto}}

/* Compact pair cards: keep breeding details in the pair dialog. */
#cg-app .cg-pair-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px;align-items:start}
#cg-app .cg-pair-card{padding:12px 12px 0;border-radius:10px}
#cg-app .cg-pair-card .cg-card-top{margin-bottom:7px;gap:6px}
#cg-app .cg-pair-card .cg-cage{font-size:10px;gap:3px}
#cg-app .cg-pair-card .cg-cage>.cg-icon{display:none}
#cg-app .cg-pair-card .cg-cage-number{font-size:36px;color:var(--cg-ink)}
#cg-app .cg-pair-card .cg-badge{font-size:11px;padding:3px 5px}
#cg-app .cg-pair-card h3{font-size:15px;line-height:1.3}
#cg-app .cg-pair-card .cg-pair-eggs{min-height:28px;margin:6px 0;gap:3px}
#cg-app .cg-pair-card .cg-card-bottom{padding:7px 0;min-height:32px;font-size:11px;line-height:1.35}
#cg-app .cg-pair-card .cg-card-bottom>.cg-icon{display:none}
@media(max-width:700px){
#cg-app .cg-pair-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,155px),1fr));gap:8px}
#cg-app .cg-pair-card{padding:10px 10px 0}
#cg-app .cg-pair-card .cg-card-top{align-items:flex-start}
#cg-app .cg-pair-card .cg-badge{white-space:normal}
}

/* Cards and legend share the same phase colours. */
#cg-app .cg-pair-card.cg-rest,#cg-app .cg-phase-legend .cg-rest{background:#eff1ed}
#cg-app .cg-pair-card.cg-nest,#cg-app .cg-phase-legend .cg-nest{background:#f1f1e6}
#cg-app .cg-pair-card.cg-laying,#cg-app .cg-phase-legend .cg-laying{background:#edf2f7}
#cg-app .cg-pair-card.cg-incubating,#cg-app .cg-phase-legend .cg-incubating{background:#faf2d8}
#cg-app .cg-pair-card.cg-fertile,#cg-app .cg-phase-legend .cg-fertile{background:#f0eafa}
#cg-app .cg-pair-card.cg-chicks,#cg-app .cg-phase-legend .cg-chicks{background:#edf3e8}
#cg-app .cg-pair-card .cg-card-bottom{border-top-color:#26362d18}
#cg-app .cg-phase-legend{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 12px;font-size:12px;color:var(--cg-ink)}
#cg-app .cg-phase-legend .cg-badge{border:1px solid #26362d18;padding:4px 7px}
#cg-app .cg-pair-card .cg-badge{border:1px solid currentColor;font-weight:600}
#cg-app .cg-task-cage{font-weight:800;color:var(--cg-ink)}
#cg-app .cg-zone-cards{--cg-zone-card-width:240px;display:grid;gap:10px;width:max-content}
#cg-app .cg-empty-cage{background:#f7faf8;border-style:dashed}
@media(max-width:700px){#cg-app .cg-zone-cards{--cg-zone-card-width:165px;gap:8px}}

/* Later breeding phases, shared by cards, badges and the aviary map. */
#cg-app .cg-pair-card.cg-incubating,#cg-app .cg-phase-legend .cg-incubating,#cg-app .cg-badge.cg-incubating{background:#fbe1df}
#cg-app .cg-badge.cg-incubating{color:#963d36}
#cg-app .cg-pair-card.cg-ringed,#cg-app .cg-phase-legend .cg-ringed,#cg-app .cg-badge.cg-ringed{background:#bcefa5}
#cg-app .cg-badge.cg-ringed{color:#245b21}
#cg-app .cg-pair-card.cg-separated,#cg-app .cg-phase-legend .cg-separated,#cg-app .cg-badge.cg-separated{background:#ccecf2}
#cg-app .cg-badge.cg-separated{color:#215c6b}
#cg-app .cg-dot-incubating{background:#d56a60}
#cg-app .cg-dot-ringed{background:#53b83e}
#cg-app .cg-dot-separated{background:#4097ab}
#cg-app .cg-cage-cell.cg-map-incubating{border-top-color:#d56a60;background:#fbe1df}
#cg-app .cg-cage-cell.cg-map-ringed{border-top-color:#53b83e;background:#bcefa5}
#cg-app .cg-cage-cell.cg-map-separated{border-top-color:#4097ab;background:#ccecf2}
#cg-app .cg-pair-card.cg-chicks,#cg-app .cg-phase-legend .cg-chicks,#cg-app .cg-badge.cg-chicks{background:#fff3bf}
#cg-app .cg-badge.cg-chicks{color:#766015}
#cg-app .cg-dot-chicks{background:#d4b340}
#cg-app .cg-cage-cell.cg-map-chicks{border-top-color:#d4b340;background:#fff3bf}
#cg-app .cg-failed-egg{position:relative;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
#cg-app .cg-failed-egg .cg-egg-cross{position:absolute;inset:0;width:100%;height:100%;color:#c62828;stroke-width:3;fill:none}
#cg-app .cg-egg-card>.cg-failed-egg{width:32px;height:38px;margin:0 auto}
#cg-app .cg-egg-card>.cg-failed-egg>.cg-icon:not(.cg-egg-cross){width:28px;height:34px}
#cg-app .cg-stock-notes{max-width:260px;white-space:normal;overflow-wrap:anywhere}
#cg-app .cg-source-rings{max-height:240px;overflow-y:auto;border:1px solid #dce3d6;border-radius:10px;margin-top:-8px}
#cg-app .cg-source-ring{display:block;width:100%;text-align:left;padding:12px 16px;border:0;border-bottom:1px solid #e4e9df;background:#fff;color:inherit;cursor:pointer}
#cg-app .cg-source-ring small{display:block;margin-top:4px;overflow-wrap:anywhere}
#cg-app .cg-source-ring:hover,#cg-app .cg-source-ring:focus-visible{background:#edf4e7}
#cg-app .cg-source-ring:disabled{opacity:.6;cursor:default}
#cg-app .cg-source-rings>p{padding:12px 16px;margin:0}
#cg-app #cg-stock-results table{margin:0;font-size:13px}
#cg-app #cg-stock-results th,#cg-app #cg-stock-results td{padding:3px 8px;line-height:1.2;vertical-align:middle}
#cg-app #cg-stock-results td small{margin-top:1px;line-height:1.2}
#cg-app #cg-stock-results .cg-button{min-height:26px;padding:2px 8px;font-size:12px;line-height:1.2}
#cg-app #cg-stock-results td:nth-child(4){min-width:180px;max-width:300px;white-space:normal}
/* Compact annual offspring register. */
#cg-app .cg-creation-table{width:auto;font-size:13px}
#cg-app .cg-creation-table th,#cg-app .cg-creation-table td{padding:5px 10px;line-height:1.25}
#cg-app .cg-creation-table td small{margin-top:2px;font-size:11px}
#cg-app .cg-creation-table .cg-chick-sex{width:138px;min-height:32px;padding:4px 6px;font-size:12px;border:1px solid var(--cg-line);border-radius:6px;background:#fff;color:inherit}
#cg-app .cg-creation-table .cg-badge{padding:3px 6px;font-size:11px}
#cg-app .cg-creation-table .cg-text-button{padding:4px;min-height:32px}
#cg-app .cg-creation-table tbody tr{cursor:pointer}
#cg-app .cg-creation-table tbody tr:hover,#cg-app .cg-creation-table tbody tr:focus-within{background:#f2f6ed}
.cg-access{border-top:1px solid #e1e7d9;padding-top:20px;margin-top:24px}
.cg-access summary{cursor:pointer;color:#264735;font-weight:700;padding:12px;border:1px solid #264735;border-radius:7px}
.cg-access label{display:block;text-align:left;margin:14px 0;color:#264735}
.cg-access input{display:block;width:100%;padding:12px;margin-top:6px;border:1px solid #cdd7c6;border-radius:6px;font:inherit}
.cg-access button{width:100%;border:0;cursor:pointer;font:inherit;margin-top:12px}
.cg-access [role=alert]{color:#a82828}
#cg-app #cg-type-options .cg-source-ring{white-space:normal;overflow-wrap:anywhere;min-height:44px}
@media(max-width:700px){#cg-app #cg-type-options{max-height:180px}#cg-app #cg-stock-form input[type=search]{font-size:16px}}

#cg-app .cg-pair-card .cg-parent-rings{gap:2px 8px;margin-top:4px;font-size:11px;line-height:1.3}
#cg-app .cg-pair-card .cg-parent-rings span{min-width:0;overflow-wrap:anywhere}

#cg-app .cg-pedigree{margin:6px 0 12px;font-size:12px;overflow-wrap:anywhere}
#cg-app .cg-pedigree summary{cursor:pointer;font-weight:600;padding:6px 0}
#cg-app .cg-pedigree ul{list-style:none;margin:4px 0;padding-left:12px;border-left:1px solid #a9b8ad}
#cg-app .cg-pedigree li{margin:4px 0}
#cg-app .cg-pedigree small{display:block}

/* Keep the overview cards as tall as their content. */
#cg-app .cg-map-compact{gap:6px;align-items:start}
#cg-app .cg-map-compact .cg-cage-cell{padding:8px;gap:3px;min-height:0;line-height:1.2}
#cg-app .cg-map-compact .cg-map-number{line-height:1.1}
#cg-app .cg-map-compact .cg-cage-cell strong,#cg-app .cg-map-compact .cg-cage-cell small{line-height:1.2}
#cg-app .cg-map-compact .cg-badge{padding:2px 4px;line-height:1.2}
#cg-app .cg-map-compact .cg-map-next{margin-top:0;padding-top:4px;line-height:1.2}

/* Reflow cage cards on phones instead of retaining the physical column count. */
@media(max-width:700px){
#cg-app .cg-cage-scroll{padding:3px 10px 12px}
#cg-app .cg-cage-grid,#cg-app .cg-zone-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr))!important;width:100%;min-width:0;gap:6px}
#cg-app .cg-cage-cell{min-width:0;min-height:0;padding:9px;gap:4px;line-height:1.2;overflow-wrap:anywhere}
#cg-app .cg-cage-cell strong{font-size:12px;line-height:1.2}
#cg-app .cg-cage-cell small{line-height:1.2}
#cg-app .cg-cage-cell .cg-badge{white-space:normal;line-height:1.2;padding:2px 4px}
#cg-app .cg-cage-cell .cg-map-next{padding-top:4px;line-height:1.2}
#cg-app .cg-pair-card{min-width:0;padding:9px 9px 0;overflow-wrap:anywhere}
#cg-app .cg-pair-card .cg-card-top{margin-bottom:4px;flex-wrap:wrap}
#cg-app .cg-pair-card h3{font-size:13px;line-height:1.2}
#cg-app .cg-pair-card .cg-pair-eggs{min-height:0;margin:4px 0;line-height:1.2;flex-wrap:wrap}
#cg-app .cg-pair-card .cg-card-bottom{min-height:0;padding:5px 0;line-height:1.2}
#cg-app .cg-pair-card .cg-cage-number{font-size:28px}
#cg-app .cg-empty-cage{min-height:0}
}

#cg-app .cg-card-family{display:flex;flex-direction:column;gap:2px;margin:3px 0;font-size:11px;line-height:1.2;color:var(--cg-ink);min-width:0;overflow-wrap:anywhere}

#cg-app .cg-pair-card .cg-card-top{flex-wrap:wrap}
#cg-app .cg-pair-card .cg-badge,#cg-app .cg-cage-cell .cg-badge{white-space:normal;max-width:100%}

.cg-sign-in label{display:block;text-align:left;margin:12px 0;color:#264735}
.cg-sign-in input:not([type=checkbox]){display:block;box-sizing:border-box;width:100%;padding:12px;margin-top:5px;border:1px solid #cdd7c6;border-radius:6px;font:inherit}
.cg-sign-in .cg-remember{display:flex;align-items:center;gap:8px;font-size:14px}
.cg-sign-in button{width:100%;border:0;cursor:pointer;font:inherit}
.cg-login [role=alert]{color:#a82828}
.cg-access h2{font-size:21px;margin:0}
.cg-access input{box-sizing:border-box}
