[data-grouped-number]{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
#feed-order-estimate{margin-block-end:0}
#feed-order-estimate>summary{color:inherit}
#feed-order-estimate>label{max-width:250px;margin-block:10px}
/* Show the approved top lockup from the original design comparison. */
.metakit-brand{display:block;flex:none;max-width:100%;background:#f4f4f3;border-radius:6px}
.metakit-lockup{position:relative;display:block;direction:ltr;aspect-ratio:1395 / 243;overflow:hidden}
.metakit-lockup img{
 position:absolute;top:-22.63374%;left:-14.33692%;height:365.02058%;width:auto;max-width:none;display:block
}
.theme-picker {
 display:inline-flex;align-items:center;gap:5px;margin:0;padding:4px 8px;
 border:1px solid currentColor;border-radius:9px;font-size:.87rem;white-space:nowrap;
}
.theme-picker [data-theme-icon]{font-size:1.05rem;line-height:1}
.theme-picker select{
 width:auto;min-width:0;min-height:30px;padding:3px 5px;margin:0;cursor:pointer;
 color:inherit;border:0;border-radius:5px;background:transparent;font:inherit;
}
.theme-picker option{background:white;color:#162a27}
.site-head{flex-wrap:wrap}
.site-head .theme-picker{color:white;border-color:#557169}
.welcome-theme{position:absolute;inset-block-start:14px;inset-inline-end:16px;z-index:1}
.password-page .theme-picker{margin-block-end:8px}
@media(max-width:690px){
 .welcome-theme{position:static;display:flex;width:min(100%,390px);margin:0 auto 10px}
 .theme-picker select{min-height:36px}
}
:root[data-theme="light"]{color-scheme:light}

@media screen{
 [data-theme="light"] :is(body.manager-page,body.team-page){background:#fff}
 :root[data-theme="dark"]{
  color-scheme:dark;
  --page:#101513;
  --surface:#19231f;
  --surface-raised:#202e28;
  --subtle:#23352c;
  --input:#131c18;
  --line:#3a5146;
  --ink:#edf5ef;
  --brand:#a7dfba;
  --muted:#b9ccc0;
  --focus:#9edeb2;
  --link:#a5dfb7;
  --success:#a9e3b5;
  --warning:#ffdfa0;
  --danger:#ffb5ad;
  color:var(--ink);
  background:var(--page);
 }
 [data-theme="dark"] body{background:var(--page);color:var(--ink)}
 [data-theme="dark"] :is(.site-head,.mobile-nav){background:#112019;border-color:var(--line)}
 [data-theme="dark"] :is(.theme-picker option,select option){background:var(--surface);color:var(--ink)}
 [data-theme="dark"] #flock-tour{background:transparent;border:0}
 [data-theme="dark"] :is(.card,.panel,.scope-entry,.nav-group,dialog,.trend,.medicine-item,.quick-metric,.reminder-card),
 [data-theme="dark"] body.team-page main>section{background:var(--surface);color:var(--ink);border-color:var(--line)}
 [data-theme="dark"] :is(.quick-card,.loss-house,.loss-curve-scroll,.worker-card,.history-card,.feed-order-card,
   .period-profit-card,.profit-scenario-result,.weighing-editor .weighing-inputs,.weighing-snapshot dl div,
   .medicine-overview>div,.payroll-figures .card,.today-summary .card,.jalali-panel,.water-entry){
  background:var(--surface-raised);border-color:var(--line)
 }
 [data-theme="dark"] :is(.last-weight,.today-fcr,.period-profit-total,.weighing-header,.weighing-reminder,
   .worker-medicine-choice,.sale-preview,.payroll-figures .card:last-child){
  background:var(--subtle);border-color:var(--line)
 }
 [data-theme="dark"] :is(label,.payroll-head p,.jalali-days span,.fcr-inputs b){color:var(--muted)}
 [data-theme="dark"] a{color:var(--link)}
 [data-theme="dark"] :is(input,select,textarea){background:var(--input);border-color:#496456;color:var(--ink)}
 [data-theme="dark"] :is(input,select,textarea):disabled{opacity:.65}
 [data-theme="dark"] :is(input,textarea)::placeholder{color:#92aa9c}
 [data-theme="dark"] :is(input,button,select,textarea,a,summary):focus-visible{outline-color:var(--focus)}
 [data-theme="dark"] input::file-selector-button{color:var(--ink);background:var(--surface-raised);border:1px solid var(--line);border-radius:5px}
 [data-theme="dark"] button{background:var(--surface-raised);color:var(--ink);border-color:var(--line)}
 [data-theme="dark"] button:hover{background:#304237}
 [data-theme="dark"] :is(button.primary,body.team-page main>section button,.welcome-page form button,.password-page form button,.jalali-days button.selected){
  background:#265b43;color:#fff;border-color:#4e8264
 }
 [data-theme="dark"] :is(button.primary,body.team-page main>section button,.welcome-page form button,.password-page form button,.jalali-days button.selected):hover{background:#30694f}
 [data-theme="dark"] .site-head :is(.account a,button){background:transparent;color:white;border-color:#557169}
 [data-theme="dark"] .site-head :is(.account a,button):hover{background:#2c4036}
 [data-theme="dark"] .theme-picker select{background:transparent;border-color:transparent}
 [data-theme="dark"] .hero .primary{background:#b9ed79;color:#172f21;border-color:#b9ed79}
 [data-theme="dark"] .hero .primary:hover{background:#ccf396}
 [data-theme="dark"] .hero .actions button:not(.primary){color:white;background:#ffffff22}
 [data-theme="dark"] :is(.mobile-nav>button,.mobile-nav summary,.mobile-more-panel){
  background:#192720;color:var(--ink);border-color:var(--line)
 }
 [data-theme="dark"] :is(.tabs .on,.mobile-nav [aria-current="page"],.mobile-more[open]>summary,
   .party-role:has(input:checked),.reminder-filters button[aria-pressed="true"],.quick-status.complete,
   .sync-status strong,.medicine-badge.good,.message:not(.error):not(:empty)){
  background:#253d30;color:var(--success);border-color:#547961
 }
 [data-theme="dark"] :is(.sync-status a,.ingredient-inline summary,.weighing-average strong,
   .mortality-decrease,.period-profit-value[data-tone="profit"],.profit-scenario-value[data-tone="profit"],.profit-scenario-best){
  color:var(--success)
 }
 [data-theme="dark"] :is(.notice,.quick-status:not(.complete),.water-alert-message,.weighing-reminder.due,
   .quick-water.water-drop,#worker-stock-warning,.medicine-overview .soon,.medicine-badge.soon){
  background:#372d1c;color:var(--warning);border-color:#715935
 }
 [data-theme="dark"] :is(.error,.danger,#editor-delete,.scope-entry .danger,.mortality-increase,
   .farm-connection[data-stale="true"],.period-profit-value[data-tone="loss"],.profit-scenario-value[data-tone="loss"]){
  color:var(--danger)
 }
 [data-theme="dark"] :is(.danger,#editor-delete,.scope-entry .danger,.feed-alerts li){border-color:#75564d}
 [data-theme="dark"] :is(.message.error:not(:empty),.medicine-overview .expired,.medicine-badge.expired){
  background:#3c2626;color:var(--danger);border-color:#715050
 }
 [data-theme="dark"] .medicine-badge{background:var(--subtle);color:var(--ink)}
 [data-theme="dark"] .medicine-badge.good{color:var(--success)}
 [data-theme="dark"] .medicine-badge.soon{background:#372d1c;color:var(--warning)}
 [data-theme="dark"] .medicine-badge.expired{background:#3c2626;color:var(--danger)}
 [data-theme="dark"] .quick-water:not(.water-drop){background:#1d3036;border-color:#385861}
 [data-theme="dark"] .quick-water h4{color:#b6e4eb}
 [data-theme="dark"] .fields .party-role:not(:has(input:checked)){background:var(--input);color:var(--ink);border-color:var(--line)}
 [data-theme="dark"] :is(th,#trade-preview tfoot,.feed-stock-table thead){background:#293d32;color:var(--ink)}
 [data-theme="dark"] :is(tbody tr:nth-child(even),.feed-stock-table tbody tr:nth-child(even)){background:#1e2c25}
 [data-theme="dark"] tbody tr:hover{background:#26392e}
 [data-theme="dark"] :is(td,th){border-color:var(--line)}
 [data-theme="dark"] :is(.track,.loss-track,.trend-track){background:#34483c}
 [data-theme="dark"] .loss-curve-svg{fill:var(--muted)}
 [data-theme="dark"] .loss-curve-gridline{stroke:#3e574b}
 [data-theme="dark"] .loss-curve-line{filter:brightness(1.7) saturate(.9)}
 [data-theme="dark"] .loss-curve-dot{filter:brightness(1.45)}
 [data-theme="dark"] #daily-print-content .trade-heading p{color:var(--muted)}
 [data-theme="dark"] .brand-logo,[data-theme="dark"] .welcome-logo,[data-theme="dark"] .report-logo{
  background:#f4f4f3;border-radius:6px
 }
 [data-theme="dark"] .welcome-page::before{opacity:.19;filter:grayscale(1) invert(1)}
 [data-theme="dark"] :is(.welcome-panel,.password-page main){
  background:var(--surface);border-color:var(--line);color:var(--ink)
 }
 [data-theme="dark"] .demo-panel{background:#173a2c;border-color:#345b46}
 [data-theme="dark"] :is(.intro,.field-note,.password-page label){color:var(--muted)}
 [data-theme="dark"] :is(.account-cta,.demo-link){background:#d6edcf;color:#143022;border-color:#a7d1a8}
 [data-theme="dark"] :is(.account-cta,.demo-link):hover{background:#c1e6b9}
 [data-theme="dark"] .account-links a:not(.welcome-action){color:var(--link)}
 [data-theme="dark"] :is(.auth-error,.password-page [role="alert"]){color:var(--danger)}
 [data-theme="dark"] .welcome-page [role="status"]{color:var(--success)}
}
@media print{
 :root{color-scheme:light;background:white}
 body{background:white}
 .theme-picker{display:none!important}
}
