/* TozaFerma: soft glass surfaces inspired by the user's September references.
   Layout and business components remain in app.css; this is the visual theme. */
:root {
  --ink: #192e35;
  --ink-soft: #435e65;
  --muted: #61767d;
  --canvas: #edf3f2;
  --paper: #f6f9f8;
  --card: #fff;
  --line: #d4e1e0;
  --amber: #24a69a;
  --amber-dark: #08766d;
  --danger: #b53649;
  --glass-shadow: 0 12px 30px #234e5310, 0 2px 5px #234e5306, inset 0 1px 0 #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
body {
  background:
    radial-gradient(ellipse at 0% 15%, #b4e3dba8, transparent 48%),
    radial-gradient(ellipse at 95% 5%, #fbd8c4b0, transparent 43%),
    radial-gradient(ellipse at 70% 100%, #c7dae994, transparent 48%), #eef3f2;
  background-attachment: fixed;
}
button, input, select, textarea { font-family: inherit; }
button { transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, summary:focus-visible { outline: 3px solid #1e918e; outline-offset: 3px; }
.app-shell { padding: 16px; gap: 24px; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 16px; align-self: start; height: calc(100dvh - 32px);
  padding: 24px 12px 16px; gap: 24px; border: 1px solid #ffffffd9;
  border-radius: 28px; background: linear-gradient(145deg, #ffffffad, #f0f8f5a6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow); z-index: 30;
}
.sidebar-top { gap: 20px; min-width: 0; }
.sidebar .wordmark { padding: 0 12px; font-size: 24px; letter-spacing: -.9px; font-weight: 720; }
.farm-menu summary { background: #ffffffa3; border: 1px solid #ffffff; color: #35565b; box-shadow: 0 2px 5px #234e5308; border-radius: 14px; min-height: 46px; }
.farm-menu-panel { background: #f8fcfbf5; backdrop-filter: blur(24px); border: 1px solid #fff; border-radius: 20px; box-shadow: 0 20px 55px #244c5133; }
.farm-menu-option { min-height: 42px; }
.farm-menu-option.selected { background: #dcefe9; color: #14645e; }
.farm-menu-panel { width: 330px; }
.farm-menu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid #dbe7e3; padding: 4px 0; }
.farm-menu-actions { display: grid; gap: 2px; }
.farm-menu-actions button { border: 0; background: transparent; color: #246b63; padding: 7px; border-radius: 8px; font-size: 11px; text-align: left; }
.farm-menu-actions button:hover { background: #e2eeea; }
.farm-menu-actions .danger-action { color: #a43446; }
.farm-profile-form { margin-top: 16px; }
.profile-status { color: #176a59; margin: 0; }
.farm-removal-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.farm-removal-dialog p { color: #425e65; font-size: 14px; line-height: 1.5; }
.farm-removal-dialog .form-error { color: var(--danger); }
.download-check { display: flex; gap: 10px; align-items: start; margin-top: 18px; line-height: 1.5; }
.download-check input { width: 19px; min-height: 19px; margin: 2px 0; flex-shrink: 0; }
.button-danger { background: #a63547; color: white; }
.button-danger:hover { background: #8c2435; }
.nav { gap: 4px; padding: 2px; min-height: 0; }
.nav-button { padding: 9px 10px; border-radius: 13px; color: #4f656b; font-size: 13px; font-weight: 550; gap: 10px; }
.finance-redesign .finance-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; padding:24px; }
.finance-redesign .finance-controls .module-tabs { flex:0 1 auto; margin:0; flex-wrap:wrap; }
.finance-redesign .finance-controls .period-fields { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin-left:auto; min-width:0; }
.finance-redesign .finance-controls .period-fields label { flex:1 1 140px; min-width:0; }
.finance-redesign .finance-controls .period-fields input { width:100%; min-width:0; }
.finance-redesign .finance-controls #finance-apply { flex:0 0 auto; min-height:44px; }
@media(max-width:640px) {
  .finance-redesign .finance-controls { align-items:stretch; padding:18px; }
  .finance-redesign .finance-controls .period-fields { margin-left:0; width:100%; }
  .finance-redesign .finance-controls #finance-apply { width:100%; }
}
[data-journal]:not([hidden]) { display:grid; gap:20px; margin-top:18px; min-width:0; text-align:left; }
[data-journal] > .panel { margin:0; padding:22px; }
[data-journal] > .period-fields { display:flex; flex-wrap:wrap; justify-content:flex-start; align-items:flex-end; gap:14px; }
[data-journal] > .period-fields label { gap:7px; font-size:12px; }
[data-journal] > .period-fields input { width:180px; min-height:44px; padding:10px 12px; }
[data-journal] > .period-fields .button { min-height:44px; }
[data-journal] > [data-feeding-metrics] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:0; }
[data-feeding-metrics] > .panel { margin:0; padding:22px; min-width:0; min-height:112px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:10px; }
[data-feeding-metrics] h2 { margin:0; font-size:26px; line-height:1.2; }
[data-feeding-rows] > p { margin:0; padding:12px 0; color:#526d73; }
@media(max-width:640px) {
  [data-journal]:not([hidden]) { gap:14px; }
  [data-journal] > [data-feeding-metrics] { grid-template-columns:1fr; gap:12px; }
  [data-journal] > .period-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  [data-journal] > .period-fields input { width:100%; min-width:0; }
  [data-journal] > .period-fields .button { grid-column:1 / -1; }
}
.nav-icon { width: 19px; height: 19px; color: currentColor; }
.layer-panels { display:grid; gap:20px; }
.layer-panels .panel { margin:0; }
.nav-icon-image { object-fit: contain; }
.nav-button .nav-icon { box-sizing: content-box; padding: 6px; border-radius: 10px; background: #ffffffad; color: #50727b; box-shadow: 0 2px 3px #1d55590a; }
.nav-button[data-module='eggs'] .nav-icon, .nav-button[data-module='health'] .nav-icon { color: #158578; background: #dff3eb; }
.nav-button[data-module='birds'] .nav-icon, .nav-button[data-module='sales'] .nav-icon { color: #b65c36; background: #fbeddf; }
.nav-button[data-module='incubation'] .nav-icon, .nav-button[data-module='chicks'] .nav-icon { color: #317fa1; background: #e0f1f7; }
.nav-button[data-module='customers'] .nav-icon, .nav-button[data-module='reports'] .nav-icon { color: #7d61a4; background: #eee7f7; }
.nav-button.active { background: linear-gradient(120deg, #fff, #eff9f6); color: #174f4a; font-weight: 700; box-shadow: 0 4px 12px #255b5912, inset 0 1px 0 #fff; }
.nav-button.active::before { display: none; }
.sidebar .nav-button .nav-icon { background: #fff; }
.nav-button.active .nav-icon { color: #188b84; background: #fff; box-shadow: 0 3px 8px #248c7b2b; }
.nav-button:hover { background: #ffffff9c; color: #174f4a; }
.sidebar-footer { padding: 14px 10px 0; gap: 8px; border-color: #ceddda; }
.user-name { color: #29484e; font-size: 13px; }
.role-chip { border: 0; background: transparent; color: #526d73; padding: 0; }
.logout { font-size: 12px; color: #526d73; }
.main { padding: 20px 16px 40px 0; background: transparent; }
.topline { margin-bottom: 30px; }
.farm-name { color: #5b7478; font-size: 12px; }
.workspace-heading { margin-bottom: 24px; gap: 20px; }
.workspace-heading h1 { color: var(--ink); font-size: clamp(28px, 3.1vw, 42px); font-weight: 650; letter-spacing: -1.7px; line-height: 1.12; }
.workspace-heading p:not(.eyebrow) { font-size: 14px; color: #536e75; line-height: 1.5; }
.eyebrow { color: #247e75; font-size: 10px; letter-spacing: 1.65px; font-weight: 700; }
.panel, .module-card, .editor-panel, .auth-card {
  border: 1px solid #ffffffea; border-radius: 24px;
  background: linear-gradient(130deg, #ffffffdf, #ffffffa8);
  box-shadow: var(--glass-shadow);
}
.panel, .editor-panel { padding: 22px; }
.panel h2, .overview-split h2 { font-size: 17px; font-weight: 650; color: var(--ink); letter-spacing: -.35px; }
.editor-heading h2 { font-size: 22px; font-weight: 650; }
.editor-heading p:not(.eyebrow), .panel-heading p { color: #587079; }
.button { border-radius: 999px; min-height: 42px; font-size: 13px; font-weight: 650; padding: 10px 19px; }
.button-primary { background: linear-gradient(160deg, #248f85, #106b65); color: white; box-shadow: 0 6px 14px #197d7526, inset 0 1px 0 #ffffff38; }
.button-primary:hover { background: linear-gradient(160deg, #23877d, #0c5c57); box-shadow: 0 8px 20px #197d7533; }
.button-quiet, .row-action { background: #ffffffbf; border: 1px solid #d6e3e0; color: #355c62; box-shadow: 0 2px 4px #234e5305; }
.button-quiet:hover, .row-action:hover { background: #e9f4ef; }
.row-action { border-radius: 999px; }
input, select, textarea { min-width: 0; border-radius: 13px; border-color: #cdddda; background: #ffffffcf; color: #223b42; box-shadow: inset 0 2px 4px #24545004; font-size: 14px; }
input::placeholder, textarea::placeholder { color: #70868a; font-weight: 400; }
input:focus, select:focus, textarea:focus { border-color: #299d91; box-shadow: 0 0 0 3px #259d911a; }
label, .entity-form > label, .form-grid > label { color: #3d5961; font-weight: 600; }
.form-grid { align-items: start; gap: 16px; }
.form-grid > label { align-content: start; }
.field-optional { color: #667d83; }
.records-toolbar { flex-wrap: wrap; border-color: #dbe7e3; }
.record-row { border-color: #dbe7e3; }
.record-main strong { color: #26474c; }
.record-main span, .record-meta > span:first-child { color: #5d767d; }
.empty { background: transparent; color: #5d767d; }
.empty-state { min-height: 190px; color: #5d767d; gap: 10px; }
.empty-state strong { color: #37565e; font-size: 16px; font-weight: 600; }
.compact-empty { min-height: 100px; }
.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.metric-card, .metric-card.metric-income, .metric-card.metric-warning {
  position: relative; padding: 22px; gap: 8px; border: 1px solid #fffffff0; border-radius: 24px;
  background: linear-gradient(135deg, #ffffffed, #ffffffa6); box-shadow: var(--glass-shadow);
  align-content: start;
}
.metric-card:nth-child(3n + 1) { background: linear-gradient(140deg, #fffdf5ed, #ffffffb0); }
.metric-card:nth-child(3n + 2) { background: linear-gradient(140deg, #f4fffaed, #ffffffb0); }
.metric-card:nth-child(3n) { background: linear-gradient(140deg, #f1f9ffed, #ffffffb0); }
.metric-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 15px; color: #1b8479; background: linear-gradient(145deg, #eefff8, #cbe9dd); border: 1px solid #ffffffbd; box-shadow: 0 4px 8px #2b736218, inset 0 1px 1px #fff; }
.metric-icon[data-icon='birds'], .metric-icon[data-icon='sales'] { color: #b36837; background: linear-gradient(145deg, #fff7ec, #f5deca); }
.metric-icon[data-icon='incubation'], .metric-icon[data-icon='chicks'] { color: #287f9c; background: linear-gradient(145deg, #effbff, #cce5f0); }
.metric-icon .nav-icon { width: 24px; height: 24px; }
.metric-card > span { color: #516b73; font-size: 11px; letter-spacing: .6px; font-weight: 600; }
.metric-card > strong, .metric-card.metric-income > strong { color: #203c42; font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; letter-spacing: -1px; white-space: normal; overflow-wrap: anywhere; }
.metric-card.metric-warning > strong { color: #9b4d2c; }
.metric-card > small { color: #5b747b; font-size: 12px; white-space: normal; line-height: 1.4; }
.overview-controls { padding: 16px 20px; }
.overview-controls strong { font-size: 13px; font-weight: 600; }
.overview-controls span { font-size: 12px; color: #5b747b; }
.period-fields { min-width: 0; }
.overview-controls > div { min-width: 0; }
.period-fields input { width: 140px; }
.overview-split { gap: 16px; }
.insight-list > div { background: #ecf4f1a8; border: 1px solid #ffffff; border-radius: 16px; padding: 16px; }
.insight-list strong { font-size: 24px; color: #2d625d; font-weight: 600; }
.insight-list span { color: #526e75; font-size: 12px; }
.module-tabs { border-radius: 999px; background: #dfe9e5a8; padding: 5px; }
.module-tab { border-radius: 999px; }
.module-tab.active { color: #195e57; background: #fff; box-shadow: 0 3px 8px #30575012; }
.dialog { border: 1px solid #fff; border-radius: 26px; background: #f6faf7f5; box-shadow: 0 28px 90px #183a4140; }
.dialog::backdrop { background: #1a3b493b; backdrop-filter: blur(8px); }
.dialog-card { padding: 24px; }
.icon-button, .editor-close { background: #e6eeeb; color: #526c71; flex-shrink: 0; }
.auth-page { background: transparent; }
.auth-card { padding: 30px; backdrop-filter: blur(20px); }
.auth-heading h1 { font-weight: 650; color: #21433f; }
.auth-link { color: #08766d; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; padding: 12px; }
  .sidebar { top: 12px; height: calc(100dvh - 24px); }
  .main { padding-right: 4px; }
  .overview-controls { flex-direction: column; align-items: stretch; }
  .metric-card { padding: 18px; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 18px; }
  .sidebar { position: relative; top: 0; height: auto; padding: 18px 12px 10px; border-radius: 23px; gap: 16px; }
  .sidebar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .sidebar .wordmark { font-size: 21px; padding: 0 4px; }
  .farm-menu { width: min(55%, 250px); }
  .farm-menu-panel { left: auto; right: 0; }
  .nav { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .nav-button { flex: 0 0 auto; padding: 6px 8px; }
  .nav-button .nav-icon { padding: 4px; }
  .main { padding: 0 2px 28px; }
  .topline { margin-bottom: 18px; padding: 0 4px; }
  .workspace-heading { flex-wrap: wrap; gap: 14px; padding: 0 4px; }
  .workspace-heading h1 { font-size: 32px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .metric-card { padding: 16px; border-radius: 20px; }
  .metric-card > strong { font-size: 26px; }
  .panel, .editor-panel { padding: 18px; border-radius: 22px; }
  .period-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .period-fields input { width: 100%; }
  .period-fields .button { grid-column: 1 / -1; }
  .records-toolbar > label { min-width: 0; flex: 1 1 130px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .record-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .record-meta { grid-column: 1; }
  .editor-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Sales editor stays in the current customer or sales workspace. */
.sales-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(620px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: #eff8f6; color: #203b40; box-shadow: -20px 0 70px #163e4430; }
.sales-drawer::backdrop { background: #102e4266; backdrop-filter: blur(4px); }
.sales-drawer .order-composer { margin: 0; min-height: 100%; border-radius: 0; padding: 26px; }
.sales-drawer .form-grid, .sales-drawer .sales-line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sales-drawer .sales-lines-heading { flex-wrap: wrap; }
.sales-drawer .editor-actions { position: sticky; bottom: -26px; padding: 16px 0; background: #f3faf7; z-index: 2; }
.sales-drawer .line-total { grid-column: 1 / -1; }
.sales-drawer [data-line-balance] { display: block; }
.complete-sale { grid-column: 1 / -1; width: 100%; color: #168b79; }
@media (max-width: 480px) { .sales-drawer .order-composer { padding: 16px; } .sales-drawer .form-grid, .sales-drawer .sales-line-grid { grid-template-columns: 1fr; } }
/* Family dashboard: shared glass surfaces, readable member lists. */
.family-dashboard { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:24px 0; align-items:start; }
.family-dashboard-card { padding:18px; border:1px solid #fff; border-radius:20px; background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(243,252,250,.7)); box-shadow:0 6px 18px rgba(27,75,75,.04); min-width:0; }
.family-card-icon { width:44px; height:44px; border-radius:15px; display:grid; place-items:center; background:#dff5ed; color:#138d82; margin-bottom:18px; }
.family-card-icon svg { width:23px; height:23px; }
.family-compact-title { display:flex; align-items:center; gap:9px; font-size:15px; margin:0 0 14px; font-weight:600; }
.family-compact-title span { font-size:13px; padding:3px 8px; border-radius:9px; background:#e9f3f0; color:#426563; }
.family-dashboard-card > .family-card-icon { display:none; }
.family-member { display:grid; width:100%; text-align:left; gap:5px; padding:11px 0; background:transparent; color:inherit; border:0; border-top:1px solid #dce8e7; cursor:pointer; font-size:13px; }
.family-member span,.family-member small,.family-history-row small { color:#607d84; }
.family-member:hover strong { color:#138d82; }
.family-history-row { display:grid; gap:7px; padding:14px 0; border-bottom:1px solid #dce8e7; }
.family-history { margin-top:26px; padding:20px; border-radius:20px; background:rgba(255,255,255,.55); }
.family-history summary { cursor:pointer; font-weight:650; }
.family-detail-heading { margin-top:24px; }
.family-detail-heading h2 { font-size:24px; }
.family-card-clickable { cursor:pointer; transition:box-shadow .15s,transform .15s; }
.family-card-clickable:hover { box-shadow:0 8px 22px #1b4b4b16; transform:translateY(-1px); }
.family-card-clickable:focus-visible,.family-member:focus-visible { outline:2px solid #138d82; outline-offset:3px; }
.family-egg-form { margin-top:20px; }
@media(max-width:1100px) { .family-dashboard { grid-template-columns:repeat(2,minmax(0,1fr)); } .family-dashboard-card:last-child { grid-column:1/-1; } }
@media(max-width:650px) { .family-dashboard { grid-template-columns:1fr; } }
/* Egg collection workspace */
.egg-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin:24px 0; }
.egg-metric { display:flex; flex-direction:column; gap:9px; padding:20px; border-radius:22px; border:1px solid white; background:linear-gradient(145deg,#ffffffeb,#f3fbfaad); box-shadow:0 8px 24px #1b4b4b09; }
.egg-metric > span:not(.egg-metric-icon) { font-size:12px; color:#527578; }
.egg-metric strong { font-size:24px; font-weight:600; }
.egg-metric small { font-size:11px; color:#64848a; }
.egg-metric-icon { width:35px; height:35px; display:grid; place-items:center; border-radius:12px; background:#dff4ed; color:#158c81; }
.egg-metric-icon svg { width:20px; height:20px; }
.egg-tabs { display:flex; gap:6px; margin-bottom:18px; }
.egg-tabs [aria-selected=true] { background:#17877e; color:white; }
.egg-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin-bottom:18px; padding:18px; }
.egg-filters label { flex:1 1 140px; font-size:12px; display:grid; gap:7px; }
.egg-filters label:first-child { flex:2 1 220px; }
.egg-record-panel { padding:20px; }
.egg-table-scroll { overflow-x:auto; }
.egg-table { width:100%; border-collapse:collapse; font-size:13px; }
.egg-table th { text-align:left; font-size:11px; font-weight:600; color:#56777d; white-space:nowrap; }
.egg-table td,.egg-table th { padding:14px 10px; border-bottom:1px solid #dce8e7; }
.egg-table td { vertical-align:top; }
.egg-table small { display:block; color:#64848a; margin-top:5px; }
.egg-table input { min-width:85px; max-width:130px; }
.egg-analysis-row { display:grid; grid-template-columns:minmax(130px,1fr) 2fr 65px; align-items:center; gap:15px; padding:14px 0; }
.egg-analysis-row progress { width:100%; accent-color:#17877e; height:10px; }
@media(max-width:1000px) { .egg-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) { .egg-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .egg-analysis-row { grid-template-columns:1fr 1fr 40px; } }
.family-summary-banner { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0; }
.family-summary-banner > div { display:grid; gap:7px; padding:14px; background:#eaf3f280; border-radius:15px; }
.family-summary-banner small { color:#66848a; font-size:11px; }
.family-summary-banner strong { font-size:14px; font-weight:600; }
.family-summary-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:20px 0; }
.family-summary-metrics .egg-metric strong { font-size:21px; }
.family-feed-summary { margin-bottom:20px; }
.family-feed-summary h3 { margin-top:0; }
.family-work-tabs { display:flex; flex-wrap:wrap; gap:5px; padding:6px; border:1px solid #fff; border-radius:20px; background:#ffffff80; margin:20px 0; }
.family-work-tabs .button { flex:1 1 auto; padding:10px 13px; border:0; box-shadow:none; }
.family-work-tabs [aria-selected=true] { background:#19877e; color:white; }
.family-work-panels { margin-top:16px; }
.family-composition-dashboard { display:grid; grid-template-columns:1fr 2fr; gap:16px; align-items:start; }
.family-composition-dashboard > details { grid-column:1/-1; margin-top:0; }
.family-work-panels h3 { font-size:17px; }
.family-work-panels .family-history-row { font-size:13px; }
@media(max-width:850px) { .family-summary-metrics,.family-summary-banner { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:550px) { .family-composition-dashboard { grid-template-columns:1fr; } }
.sheep-layout { display: grid; gap: 20px; }
.sheep-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sheep-panel { min-width: 0; }
.sheep-dialog { width: min(760px, calc(100vw - 32px)); }
.sheep-dialog .entity-form { display: grid; gap: 14px; }
.sheep-subjects { display: grid; gap: 8px; border: 1px solid var(--border, #cbdedd); border-radius: 14px; padding: 14px; }
.sheep-subjects input[type=checkbox] { width: auto; min-height: 0; }
.sheep-form-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 12px; }
.sheep-form-row input, .sheep-form-row select { min-width: 0; width: 100%; }
@media(max-width:600px) { .sheep-form-row { grid-template-columns: 1fr; } }
.broiler-guide { width:100%; min-width:0; }
.broiler-guide > header { margin:0 0 24px; }
.broiler-guide > header h2 { margin:0 0 8px; }
.broiler-guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.broiler-guide-card.panel { padding:0; margin:0; overflow:hidden; display:flex; flex-direction:column; }
.broiler-guide-art { position:relative; background:linear-gradient(135deg,#e0f3ed,#fbf3df); height:180px; }
.broiler-guide-art svg { display:block; width:100%; height:100%; }
.broiler-guide-number { position:absolute; left:20px; top:18px; font-size:15px; font-weight:700; color:#227c75; background:#fff; border-radius:12px; padding:7px 11px; }
.broiler-guide-copy { padding:24px; display:flex; flex-direction:column; flex:1; }
.broiler-guide-copy small { color:#227c75; font-weight:700; }
.broiler-guide-copy h3 { margin:8px 0 12px; font-size:23px; }
.broiler-guide-copy p { margin:0 0 14px; line-height:1.6; }
.broiler-guide-copy ul { margin:0 0 20px; padding-left:20px; line-height:1.6; }
.broiler-guide-copy li+li { margin-top:8px; }
.broiler-guide-copy a { margin-top:auto; font-size:12px; color:#427b80; }
.broiler-guide-note.panel { margin:24px 0 0; }
.broiler-guide-note h3 { margin-top:0; }
.broiler-guide-note p { line-height:1.6; }
.broiler-guide-details > summary { cursor:pointer; font-weight:700; padding:4px 0; }
.broiler-guide-details[open] > summary { margin-bottom:20px; }
@media(max-width:700px){.broiler-guide-grid{grid-template-columns:1fr;gap:16px}.broiler-guide-copy{padding:20px}.broiler-guide-art{height:160px}}
.chick-composition-row { display:grid; grid-template-columns:minmax(0,2fr) minmax(90px,1fr) auto; gap:12px; align-items:end; margin-bottom:12px; }
@media(max-width:600px){.chick-composition-row{grid-template-columns:minmax(0,1fr) 90px auto;gap:6px}}
.bird-status-action { cursor:pointer; border:1px solid transparent; font:inherit; font-size:12px; }
.bird-status-action:hover,.bird-status-action:focus-visible { border-color:#218c83; box-shadow:0 0 0 3px #218c8320; }
