/* Full website visual system. Existing domain and workflow modules remain authoritative. */
/* Population-only repairs; shared photo cards and the document scroll owner stay unchanged. */
.ui-refresh .population-workspace{--population-ink:#30382e;--population-muted:#55604f;--population-paper:#fffdf8;min-width:0;color:var(--population-ink);letter-spacing:0}
.ui-refresh .population-workspace .category-tabs{gap:4px;overflow:visible}
.ui-refresh .population-workspace .category-tabs>.tab-highlight{display:none}
.ui-refresh .population-workspace .category-tabs>button{min-height:40px;color:#42503b;background:#eef1e8!important;border-radius:6px;transition-property:none}
.ui-refresh .population-workspace .category-tabs>button small{background:#dce4d3;color:#39462f}
.ui-refresh .population-workspace .category-tabs>button:hover{background:#dce4d3!important;color:#303d28}
.ui-refresh .population-workspace .category-tabs>button.active{background:#35412f!important;color:#fffdf8;box-shadow:none}
.ui-refresh .population-workspace .category-tabs>button.active small{background:#526348;color:#fffdf8}
.ui-refresh .population-workspace .category-tabs>button.active:hover{background:#283423!important;color:#fffdf8}
.ui-refresh .population-workspace .card-toolbar{gap:12px;flex-wrap:wrap}
.ui-refresh .population-workspace .card-filter-group{flex-wrap:wrap;gap:10px;min-width:0}
.ui-refresh .population-workspace .filter-select,.ui-refresh .population-workspace .search-box input{color:var(--population-ink);background:var(--population-paper);font-size:14px}
.ui-refresh .population-workspace .search-box input::placeholder{color:var(--population-muted);opacity:1}
.ui-refresh .population-workspace .check-label{color:var(--population-muted);font-size:13px}
.ui-refresh .population-workspace .selection-bar{color:#5d4e35;background:#f3ead8;border-color:#dfd2bb;flex-wrap:wrap}
.ui-refresh .population-workspace .selection-bar .text-button{color:#5d4e35}
.ui-refresh .population-workspace .population-card-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;overflow:visible}
.ui-refresh .population-workspace .population-pet-card{aspect-ratio:auto;border-radius:8px;background:var(--population-paper);border-color:#dce1d5;overflow:visible;box-shadow:0 2px 8px #30382e08}
.ui-refresh .population-workspace .population-pet-card .photo-open{display:flex;flex-direction:column;justify-content:flex-start;border-radius:7px;color:var(--population-ink);background:var(--population-paper);height:100%;overflow:hidden;text-shadow:none}
.ui-refresh .population-workspace .population-photo{display:block;position:relative;isolation:isolate;flex:none;width:100%;aspect-ratio:4/3;overflow:hidden;background:#f5f6ef}
.ui-refresh .population-workspace .population-photo-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--population-muted);font-size:13px}
.ui-refresh .population-workspace .population-photo-fallback svg{width:24px;height:24px}
.ui-refresh .population-workspace .population-photo>.pet-full-photo{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#f8f8f3}
.ui-refresh .population-workspace .population-photo>.pet-full-photo[hidden]{display:none}
.ui-refresh .population-workspace .population-photo .photo-top{top:10px;left:10px;right:10px;z-index:1}
.ui-refresh .population-workspace .photo-arrow{background:#fffdf8;color:#35412f;border:1px solid #dce1d5}
.ui-refresh .population-workspace .population-identity{display:flex;flex-direction:column;gap:5px;width:100%;min-width:0;min-height:146px;padding:12px;text-shadow:none;background:var(--population-paper)}
.ui-refresh .population-workspace .population-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;min-height:42px;font-size:15px;font-weight:600;line-height:21px;color:var(--population-ink)}
.ui-refresh .population-workspace .photo-code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px;color:var(--population-muted)}
.ui-refresh .population-workspace .population-metadata{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;font-size:13px;line-height:20px}
.ui-refresh .population-workspace .population-species{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--population-ink)}
.ui-refresh .population-workspace .population-sex{display:inline-flex;align-items:center;gap:4px;flex:none;font-size:12px;line-height:20px;color:var(--population-muted)}
.ui-refresh .population-workspace .sex-token{display:inline-flex;align-items:center;color:inherit}
.ui-refresh .population-workspace .sex-token svg{width:16px;height:16px}
.ui-refresh .population-workspace .sex-token img{width:16px;height:16px;filter:brightness(.35)}
.ui-refresh .population-workspace .population-gene{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:18px;color:var(--population-muted)}
.ui-refresh .population-workspace .card-pagination{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px 0 8px;color:var(--population-muted);font-size:13px;text-align:center}
.ui-refresh .population-workspace .population-page-summary{display:flex;justify-content:center;align-items:center;gap:5px;flex-wrap:wrap}
.ui-refresh .population-workspace .pagination{justify-content:center;flex-wrap:wrap;gap:6px;max-width:100%}
.ui-refresh .population-workspace .pagination button{min-width:36px;min-height:36px;color:#42503b;background:var(--population-paper);border-color:#bac5ae}
.ui-refresh .population-workspace .pagination button.active{background:#35412f;color:#fffdf8;border-color:#35412f}
.ui-refresh .population-workspace .pagination button:disabled{color:#697260;background:#e9ede2;border-color:#dce1d5;opacity:1;cursor:default}
.ui-refresh .population-workspace :is(button,input,select):focus-visible{outline:2px solid #425b34;outline-offset:3px}
.ui-refresh .population-workspace .empty-state{color:var(--population-muted)}
@media(max-width:1279px){.ui-refresh .population-workspace .population-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}}
@media(max-width:1099px){.ui-refresh .population-workspace .population-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:739px){.ui-refresh .population-workspace .population-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ui-refresh .population-workspace .category-tabs>button{padding:7px 9px;gap:5px}.ui-refresh .population-workspace .card-filter-group .filter-select{flex:1;min-width:0!important}.ui-refresh .population-workspace .population-identity{padding:10px}.ui-refresh .population-workspace .population-metadata{gap:4px;font-size:12px}.ui-refresh .population-workspace .pagination button{min-width:40px;min-height:40px}}
@media(max-width:359px){.ui-refresh .population-workspace .population-card-grid{grid-template-columns:minmax(0,1fr)}}
.ui-refresh{--ink:#302d28;--muted:#8a8174;--faint:#9c9384;--line:#eae6dc;--paper:#fff;--yellow:#f3dfc4;--sage:#b3bda6;--ice:#c2d0cc;--rose:#e5c9bb;--radius:16px;--small-radius:9px;--shadow:0 3px 12px #302d2805;--tw-ink:#302d28;--tw-muted:#8a8174;--tw-accent:#f4dec0;--tw-line:#e8e3d7;--tw-radius:16px;--tw-surface:#fff;--tw-soft:#faf9f5;--ui-side:224px;background:#f1f2ec;color:var(--ink)}
html:has(.ui-refresh),body.ui-refresh{height:auto;min-height:100%;overflow:auto;scrollbar-width:thin}
.ui-refresh .workbench{display:block;width:100%;height:auto;min-height:100dvh;overflow:visible;background:#f1f2ec}
.ui-refresh .canvas.tw-shell{--frame-width:100%;--ref-unit:1px;--tw-gap:14px;position:relative;display:block;top:0;max-width:none;width:100%;height:auto;min-height:100dvh;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:linear-gradient(120deg,#f0f2ed,#f5f2eb 60%,#eff2ec)}
.ui-refresh .tw-shell>.site-header{position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;width:var(--ui-side);height:100dvh;min-height:0;margin:0;padding:26px 16px 17px;gap:0;overflow:auto;scrollbar-width:thin;z-index:40;border:0;border-radius:0;background:linear-gradient(160deg,#34332d,#292d27);color:#c8c5b5}
.ui-brand{display:flex;align-items:center;gap:10px;font-size:22px;color:#f7f7ed;font-weight:500;margin:0 4px 25px}.ui-brand img{width:35px;height:35px;object-fit:contain;border-radius:9px}.ui-brand small{display:block;color:#a4a08b;font-size:8px;letter-spacing:.5px;font-weight:400;margin-top:5px}.ui-sidebar-label{font-size:9px;letter-spacing:1px;color:#97967f;margin:0 11px 10px}
.ui-refresh .tw-shell .main-nav{display:flex;flex-direction:column;flex:none;align-items:stretch;justify-content:flex-start;order:0;width:100%;height:auto;min-height:0;gap:4px;padding:0;margin:0;background:none;box-shadow:none;border:0;border-radius:0;overflow:visible;font-size:12px}
.ui-refresh .nav-indicator{display:none}.ui-refresh .tw-shell .main-nav>a,.ui-refresh .tw-shell .main-nav>.menu-wrap>button{display:flex;justify-content:flex-start;align-items:center;gap:9px;width:100%;height:auto;min-height:43px;padding:7px 9px;border-radius:8px;border:1px solid transparent;font-size:12px;color:#bebdac;background:transparent;white-space:normal;flex:none}
.ui-refresh .tw-shell .main-nav>a>svg,.ui-refresh .tw-shell .main-nav>.menu-wrap>button>svg:first-child{box-sizing:content-box;flex:none;width:15px;height:15px;padding:6px;border-radius:7px;background:#d7ddc409;color:#abb49a}
.ui-refresh .tw-shell .main-nav>a.active,.ui-refresh .tw-shell .main-nav>.menu-wrap>button.active{background:#d5dfbd16;border-color:#d5dfbd0a;color:#f4f6e6}.ui-refresh .tw-shell .main-nav>a.active>svg{background:#bfd2a124;color:#e1e9c8}.ui-refresh .tw-shell .main-nav>a:hover{background:#d5dfbd0e}.ui-refresh .tw-shell .nav-count{display:inline-block;margin-left:auto;background:#e9a77b1c;color:#e7bc94;font:10px Geist;padding:2px 5px;min-width:18px;border-radius:5px}
.ui-refresh .tw-shell .main-nav>.menu-wrap{width:100%;height:auto;flex:none}.ui-refresh .main-nav>.menu-wrap>button>svg:last-child{margin-left:auto;width:12px;height:12px}.ui-refresh .main-nav .menu{position:static;inset:auto;min-width:0;width:100%;margin:3px 0 8px;padding:5px 4px 5px 11px;border:0;border-radius:8px;background:#ffffff05;box-shadow:none;color:#c0c6ac;z-index:auto}.ui-refresh .main-nav .menu a{display:flex;gap:8px;align-items:center;padding:10px 9px;border-radius:6px;font-size:11px}.ui-refresh .main-nav .menu a:hover{background:#d5dfbd0d}.ui-refresh .main-nav .menu svg{width:14px;height:14px}.ui-refresh .main-nav .menu a>svg:last-child{margin-left:auto;width:11px}
.ui-refresh .tw-shell .header-actions{display:flex;flex-wrap:wrap;gap:7px;order:2;width:100%;height:auto;padding:16px 4px;margin-top:auto;margin-bottom:9px;border-top:1px solid #ffffff0c;flex:none;justify-content:flex-start}.ui-refresh .tw-shell .header-actions .cloud-state{width:100%;justify-content:flex-start;color:#a6b591;font-size:10px;padding:7px;background:none}.ui-refresh .tw-shell .header-actions .header-settings{color:#bfcaac;background:#d5dfbd0b;width:auto;min-width:70px;height:31px;border-radius:6px;padding:6px 8px;font-size:11px}.ui-refresh .tw-shell .header-actions .icon-button{width:31px;height:31px;border-radius:6px;background:#d5dfbd0b;color:#bfcaac}.ui-refresh .tw-shell .header-actions svg{width:14px;height:14px}
.ui-refresh .tw-shell .identity-user{display:flex;flex-wrap:nowrap;align-items:center;order:3;gap:9px;width:100%;padding:12px 3px 0;border-top:1px solid #ffffff10;margin:0;min-width:0}.ui-refresh .tw-shell .identity-avatar{width:33px;height:33px;border-radius:50%;overflow:hidden;flex:none}.ui-refresh .identity-avatar img{width:100%;height:100%;object-fit:cover}.ui-refresh .identity-line{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}.ui-refresh .tw-shell .identity-id{font-size:11px;color:#e9eadb;max-width:146px;overflow:hidden;text-overflow:ellipsis}.ui-refresh .membership-link{font-size:9px;color:#c9b48b;background:#dbc59612;padding:2px 6px;border-radius:4px}
.ui-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-left:var(--ui-side);min-height:65px;padding:16px 28px;border-bottom:1px solid #deded220;background:#f6f6f166}.ui-breadcrumb{display:flex;align-items:center;gap:9px;font-size:11px;color:#9a9484}.ui-breadcrumb>svg{width:13px;height:13px}.ui-breadcrumb b{font-weight:400;color:#c6bfad}.ui-breadcrumb strong{font-weight:400;color:#746d5c}.ui-topbar-actions{display:flex;align-items:center;gap:8px}.ui-mode{display:flex;align-items:center;gap:5px;padding:4px 7px;background:#e6ecdf;border-radius:4px;font-size:9px;color:#8f9e7a}.ui-mode svg{width:5px;height:5px;fill:currentColor}.ui-quiet{width:29px;height:29px;display:grid;place-items:center;background:#e9ede2;border:1px solid #e0e5d6;border-radius:50%;color:#859572}.ui-quiet svg{width:14px;height:14px}.ui-refresh [data-ui-menu],.ui-nav-shade{display:none}
.ui-refresh .tw-shell>.page-viewport{display:block;position:relative;width:calc(100% - var(--ui-side));height:auto;min-height:calc(100dvh - 65px);margin-left:var(--ui-side);overflow:visible;padding:0}.ui-refresh .page-body{display:block;padding:26px 28px 32px;min-height:0;height:auto;overflow:visible;max-width:none}.ui-refresh .web-sync-notice{margin-left:var(--ui-side);width:calc(100% - var(--ui-side));border-radius:0;background:#fbefda;color:#9d7c48;padding:10px 28px}.ui-refresh .web-compliance-footer{margin-left:var(--ui-side);font-size:10px;color:#a39c8d;background:#f1f2ec;padding:13px 18px}.ui-refresh:has(.web-auth-locked) .web-compliance-footer{margin-left:0}.ui-refresh .tw-source-strip{background:#f9edda;border:1px solid #eedbb8;padding:9px 14px;border-radius:9px;margin:20px 28px 0;color:#92774b;flex-wrap:wrap}
.ui-refresh .page-head,.ui-refresh .tw-page-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:0 0 23px;height:auto;min-height:46px}.ui-refresh .page-head h1,.ui-refresh .tw-page-head h1{font-size:27px;line-height:1.3;font-weight:500;letter-spacing:-.6px}.ui-refresh .page-head p,.ui-refresh .tw-subtitle{font-size:11px;color:#a09785;margin-top:6px}.ui-refresh h2{font-size:17px;font-weight:500;line-height:1.4}.ui-refresh h3{font-weight:500}.ui-refresh .head-actions,.ui-refresh .tw-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ui-refresh .breadcrumb{font-size:11px;color:#9a8d76;margin-bottom:14px;display:inline-flex;align-items:center;gap:6px}.ui-refresh .breadcrumb svg{width:14px;height:14px}
.ui-refresh :is(.button,.tw-button){min-height:36px;height:auto;padding:8px 12px;gap:7px;border:1px solid #e8e4d9;border-radius:8px;background:#fff;color:#82745e;font-size:12px;line-height:1.5;font-weight:400;box-shadow:0 1px 2px #302d2804}.ui-refresh :is(.button,.tw-button).primary{background:#343930;border-color:#343930;color:#f7f8ec}.ui-refresh :is(.button,.tw-button).primary:hover{background:#45513c}.ui-refresh .button.light,.ui-refresh .tw-button.light{background:#faf9f3;border-color:#e8e5d9}.ui-refresh :is(.button,.tw-button).small{min-height:30px;padding:5px 9px;font-size:11px}.ui-refresh :is(.button,.tw-button)>svg{width:15px;height:15px}.ui-refresh .icon-button,.ui-refresh .tw-arrow{width:30px;height:30px;border:1px solid #e9e5d8;border-radius:7px;background:#fafaf4;color:#968771;padding:5px;display:inline-flex;align-items:center;justify-content:center;flex:none}.ui-refresh .icon-button svg,.ui-refresh .tw-arrow svg{width:15px;height:15px}.ui-refresh .text-button,.ui-refresh .tw-text-link{font-size:11px;color:#958269;gap:5px}.ui-refresh .text-button>svg,.ui-refresh .tw-text-link>svg{width:13px;height:13px}
.ui-refresh :is(.surface,.detail-surface,.detail-main.detail-surface,.task-batch,.parent-input,.genetics-species,.genetics-results,.membership-plan,.membership-benefits,.profile-editor,.settings-main,.aside-note,.cw-housing-cabinet,.stock-card,.nfc-card,.transfer-card,.plan-card){border:1px solid #eeece2;border-radius:16px;background:#fff;box-shadow:0 3px 12px #302d2804}.ui-refresh .surface.padded,.ui-refresh .detail-surface{padding:22px}.ui-refresh .section-head,.ui-refresh .panel-title{gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:15px}.ui-refresh .section-head h2{font-size:17px}.ui-refresh .toolbar{gap:10px;flex-wrap:wrap;margin-bottom:18px;padding:14px 16px;background:#fff;border:1px solid #eeece2;border-radius:11px}.ui-refresh .search-box,.ui-refresh .tw-search{border:1px solid #e6e5d9;background:#fafbf6;border-radius:8px;min-height:36px;color:#a5a18c}.ui-refresh .search-box input,.ui-refresh .tw-search input{font-size:12px;background:transparent}.ui-refresh .filter-select,.ui-refresh select,.ui-refresh input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),.ui-refresh textarea{border-color:#e6e2d5;border-radius:7px;background:#fafaf5;color:#6b6351;font-size:12px;line-height:1.5}.ui-refresh .form-stack input,.ui-refresh .field-grid input,.ui-refresh .form-stack select,.ui-refresh .field-grid select{min-height:38px}.ui-refresh label{font-size:12px}.ui-refresh input[type=checkbox],.ui-refresh input[type=radio]{accent-color:#828f68}.ui-refresh :is(button,a,input,select,textarea):focus-visible{outline:2px solid #d69c6f;outline-offset:3px}
.ui-refresh .tabs,.ui-refresh .segmented,.ui-refresh .tw-segment,.ui-refresh .category-tabs{background:#e8ecdf;border:1px solid #e2e6d7;border-radius:8px;padding:3px;gap:3px;display:flex;flex-wrap:wrap}.ui-refresh .tabs button,.ui-refresh .segmented button,.ui-refresh .tw-segment button,.ui-refresh .category-tabs button{font-size:12px;padding:7px 11px;min-height:31px;border-radius:6px;color:#919b80;background:transparent}.ui-refresh .tabs button.active,.ui-refresh .segmented button.active,.ui-refresh .tw-segment button.active,.ui-refresh .category-tabs button.active{background:#fff;color:#5a6949;box-shadow:0 1px 3px #4d5c3710}.ui-refresh .badge{font-size:10px;border-radius:5px;padding:4px 7px;background:#f1f3e9;color:#8f9b78;border:1px solid #e9eddf}.ui-refresh .badge.yellow{background:#faf0dd;color:#b3975e;border-color:#efdfbb}.ui-refresh .badge.rose{background:#faeae4;color:#ba8974;border-color:#efdad1}.ui-refresh .badge.blue{background:#eaf2f0;color:#88a6a1}.ui-refresh .empty-state{color:#a49c88;min-height:130px;padding:30px 20px;border-radius:12px}.ui-refresh .help,.ui-refresh .hint{color:#9b927f;font-size:11px}.ui-refresh .state-error{color:#bd5750;background:#fff2ed;border-radius:7px;padding:9px 11px;font-size:12px}
.ui-refresh table{font-size:12px}.ui-refresh th{font-size:10px;font-weight:400;color:#a59a84;background:transparent;white-space:nowrap}.ui-refresh td{font-size:12px;color:#82745d;border-color:#f0ebdf}.ui-refresh tbody tr:hover{background:#fbfaf4}.ui-refresh .table-wrap,.ui-refresh .table-scroll{overflow-x:auto;max-width:100%;border-radius:10px}.ui-refresh .table-pagination,.ui-refresh .card-pagination{font-size:11px;color:#a0947c}.ui-refresh .pagination button{border-radius:6px;background:#f8f8f1;border:1px solid #e8e6d8;min-height:29px;min-width:29px;color:#9b927e}.ui-refresh .pagination button.active{background:#59674b;color:#fff;border-color:#59674b}
.ui-refresh .modal-backdrop{position:fixed;inset:0;background:#252c235e;backdrop-filter:blur(4px);z-index:100;overflow-y:auto;padding:28px 18px;align-items:center;justify-content:center}.ui-refresh .dialog{background:#fffdf8;border:1px solid #fff9e9;border-radius:18px;box-shadow:0 24px 90px #19221333;max-height:calc(100dvh - 56px);max-width:calc(100vw - 36px);color:#5d594a;padding:24px;overflow:auto}.ui-refresh .dialog-head,.ui-refresh .dialog-header{border-bottom:1px solid #eee7d8;padding-bottom:16px;margin-bottom:18px;gap:12px}.ui-refresh .dialog h2{font-size:21px;color:#3c3d31}.ui-refresh .dialog-actions,.ui-refresh .dialog-footer{padding-top:18px;border-top:1px solid #eee7d8;margin-top:20px;gap:9px}.ui-refresh .dialog .form-stack{gap:15px}.ui-refresh .dialog .field-grid{gap:13px}.ui-refresh .dialog .form-stack>label,.ui-refresh .dialog .field-grid>label{color:#90816a}.ui-refresh .toast{background:#343e2e;color:#edf4df;border:1px solid #cad8af20;border-radius:10px;box-shadow:0 6px 30px #15250c22;font-size:13px}
/* Preserve existing home actions and scopes; only reflow their original DOM. */
.ui-refresh .tw-overview{--ov-unit:1px;--tw-radius:15px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:'head head head' 'population summary preparation' 'journal journal focus' 'tasks tasks housing';gap:14px;height:auto;min-height:0;container-type:normal}.ui-refresh .tw-overview>.tw-page-head{grid-area:head;height:auto;min-height:46px;margin-bottom:5px}.ui-refresh .tw-overview>.tw-page-head>div:first-child{align-items:flex-start;flex-direction:column;gap:0}.ui-refresh .tw-overview .tw-actions .tw-button{min-height:34px;padding:7px 11px;font-size:11px}.ui-refresh .tw-home-grid,.ui-refresh .tw-today{display:contents}.ui-refresh .ui-home-card{position:relative;min-width:0;height:auto;min-height:0;padding:18px;border:0;border-radius:15px;background:#fff;box-shadow:0 2px 8px #302d2803;overflow:hidden}.ui-refresh .tw-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.ui-refresh .tw-panel-head h2{font-size:15px;font-weight:500;color:inherit}.ui-refresh .tw-caption{font-size:10px;color:#a19880}.ui-refresh .ui-home-population{grid-area:population;background:linear-gradient(120deg,#384032,#2d3329);color:#eef4de;overflow:visible;min-height:155px}.ui-refresh .tw-distribution{width:100%;padding:0;margin:0;background:transparent;position:relative}.ui-refresh .tw-category-labels{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.ui-refresh .tw-category-label{display:flex;align-items:center;gap:6px;color:#c6d0b2;font-size:10px;background:none;border:0}.ui-refresh .tw-category-label b{font:12px Geist}.ui-refresh .parent-bars{display:flex;height:6px;border-radius:3px;gap:3px;margin:9px 0 0;overflow:hidden}.ui-refresh .parent-bars>button{padding:0;min-width:0;border:0;border-radius:0;height:6px;background:#dda57c}.ui-refresh .parent-bars>button:nth-child(2){background:#9fae89}.ui-refresh .parent-bars>button:nth-child(3){background:#cad3b5}.ui-refresh .parent-bars>button span{position:absolute;clip:rect(0,0,0,0);height:1px;width:1px;overflow:hidden}.ui-refresh .tw-counts{display:flex;align-items:center;gap:18px;padding:13px 0 0;margin:0;flex-wrap:wrap}.ui-refresh .tw-counts button{display:flex;align-items:center;gap:7px;background:none;border:0;padding:0;color:#c8d2b4}.ui-refresh .tw-counts button>svg{width:16px;height:16px;color:#b8c69d}.ui-refresh .tw-counts strong{font:27px/1.1 Geist;color:#f4f7e6}.ui-refresh .tw-counts small{display:block;font-size:8px;margin-top:4px;color:#a9b997}.ui-refresh .tw-distribution-popover{position:absolute;top:35px;left:0;z-index:25;background:#fffef7;border:1px solid #e5e6d5;border-radius:9px;box-shadow:0 12px 30px #17231022;color:#6c7557;min-width:170px;padding:11px}
.ui-refresh .tw-today-summary{grid-area:summary;min-height:155px}.ui-refresh .tw-today-rate strong{font:32px Geist;color:#3a4132}.ui-refresh .tw-today-status{display:flex;justify-content:space-between;font-size:10px;color:#9e947c;margin-bottom:11px}.ui-refresh .tw-home-kinds{display:flex;gap:6px;flex-wrap:wrap}.ui-refresh .tw-home-kinds button{display:flex;align-items:center;gap:5px;border:1px solid #eee6d4;background:#faf5e9;border-radius:5px;padding:4px 7px;color:#a48f67;font-size:9px}.ui-refresh .tw-home-kinds b{font:10px Geist}.ui-refresh .tw-task-progress{height:4px;margin-top:13px;background:#f2ede1;border-radius:5px;overflow:hidden}.ui-refresh .tw-task-progress>span{height:100%;background:#edaa7c;border-radius:5px}.ui-refresh .tw-overdue-chip{padding:2px 5px;font-size:9px;color:#b39059;background:#faf0dc;border-radius:5px}.ui-refresh .tw-overdue-chip svg{width:12px;height:12px}
.ui-refresh .tw-preparation{grid-area:preparation;min-height:155px;background:#fcf7ee;border:1px solid #f1e5d2}.ui-refresh .tw-preparation-lines{display:flex;flex-direction:column;gap:8px}.ui-refresh .tw-material-line{padding:0;gap:9px;min-height:28px;display:flex;align-items:center}.ui-refresh .tw-material-line>img{width:30px;height:30px;object-fit:contain}.ui-refresh .tw-material-symbol{width:30px;height:30px;display:grid;place-items:center;color:#a3a286}.ui-refresh .tw-material-copy{flex:1;min-width:0}.ui-refresh .tw-material-copy strong{display:block;font-size:12px;font-weight:400;color:#8d7958}.ui-refresh .tw-material-copy small{font-size:9px;color:#b2a083}.ui-refresh .tw-material-quantity{display:flex;align-items:baseline;gap:4px}.ui-refresh .tw-material-quantity b{font:24px Geist;color:#a5895c}.ui-refresh .tw-material-quantity small{font-size:9px;color:#b09c7b}.ui-refresh .tw-preparation>.tw-text-link{display:flex;justify-content:flex-end;margin-top:9px;font-size:10px}
.ui-refresh .tw-growth{grid-area:journal;min-height:279px}.ui-refresh .tw-growth-number{display:flex;align-items:baseline;gap:9px;margin-top:12px}.ui-refresh .tw-growth-number strong{font:37px Geist;color:#3b4133}.ui-refresh .tw-growth-number>span{font-size:11px;color:#a49983}.ui-refresh .tw-growth-number small{display:inline;margin-left:8px;font-size:9px;color:#b8ae98}.ui-refresh .tw-history-bars{height:150px;display:flex;align-items:flex-end;gap:10px;margin-top:13px;width:100%}.ui-refresh .tw-history-bars>button{display:flex;flex-direction:column;align-items:center;gap:7px;flex:1;height:100%;background:none;padding:0}.ui-refresh .tw-history-track{display:flex;align-items:flex-end;width:20px;height:118px;background:#f3f2e9;border-radius:3px;overflow:hidden}.ui-refresh .tw-history-track>span{display:block;width:100%;background:#a9b69b;min-height:0}.ui-refresh .tw-history-track>span.latest{background:#eaaa7f}.ui-refresh .tw-history-dot{display:none}.ui-refresh .tw-history-bars small{font-size:10px;color:#aba085}
.ui-refresh .tw-focus{grid-area:focus;min-height:279px;background:#f0dfc5;color:#554d3d;overflow:hidden}.ui-refresh .tw-focus-content{position:relative;min-height:210px;height:auto}.ui-refresh .tw-focus-image{position:absolute;right:-15px;bottom:0;width:83%;height:200px;object-fit:contain;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse 68% 64% at 50% 55%,#000 48%,transparent 90%)}.ui-refresh .tw-focus-image.is-photo{mix-blend-mode:normal;mask-image:none;border-radius:12px;object-fit:cover;opacity:.8}.ui-refresh .tw-focus .tw-panel-head,.ui-refresh .tw-focus-content>*:not(img){position:relative;z-index:1}.ui-refresh .tw-focus-count{font-size:10px;color:#af9269}.ui-refresh .tw-focus-name{font-size:28px;color:#6d573b}.ui-refresh .tw-focus-reason{background:#fff5de;border:1px solid #e3c79555;border-radius:6px;color:#a6895d;font-size:11px;padding:6px 9px}.ui-home-breeding{position:relative;z-index:2;border-top:1px solid #d9c19a44;margin-top:12px;padding-top:10px}.ui-home-breeding>summary{display:flex;align-items:center;gap:6px;font-size:11px;color:#a28c61;cursor:pointer;list-style:none}.ui-home-breeding>summary::-webkit-details-marker{display:none}.ui-home-breeding>summary svg{width:13px;height:13px}.ui-home-breeding>summary span{margin-left:auto;font-size:10px}.ui-refresh .ui-home-breeding .tw-breeding{background:#fff7e7;padding:15px;border-radius:9px;margin-top:9px;min-height:0}.ui-refresh .ui-home-breeding .tw-stage-ring{width:90px;height:90px}.ui-refresh .ui-home-breeding .tw-stage-ring strong{font-size:24px}.ui-refresh .ui-home-breeding .tw-panel-head h2{font-size:13px}
.ui-refresh .tw-dark-tasks{grid-area:tasks;background:#fff;color:#6b624e;min-height:310px}.ui-refresh .tw-dark-task-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:13px}.ui-refresh .tw-dark-task-head h3{font-size:16px;color:#514d3f}.ui-refresh .tw-dark-task-head>span{font-size:10px;background:#faf0dc;color:#b49a63;border:1px solid #efdfba;border-radius:5px;padding:4px 6px}.ui-refresh .tw-home-task-scroll{height:auto;max-height:310px;overflow-y:auto;scrollbar-width:thin}.ui-refresh .tw-home-task{display:flex;align-items:center;gap:10px;width:100%;padding:12px 0;border-top:1px solid #eee8db;background:transparent;border-radius:0;text-align:left}.ui-refresh .tw-home-task-icon{height:31px;width:31px;display:grid;place-items:center;background:#f1f3e7;color:#98a77a;border-radius:8px}.ui-refresh .tw-home-task-icon svg{height:15px;width:15px}.ui-refresh .tw-home-task-copy{flex:1;min-width:0}.ui-refresh .tw-home-task-copy strong{font-size:12px;font-weight:400;color:#75674f}.ui-refresh .tw-home-task-copy small{display:block;color:#b0a081;font-size:10px;margin-top:4px}.ui-refresh .tw-home-task-state{color:#a6b58c}.ui-refresh .tw-home-task-state svg{height:14px;width:14px}.ui-refresh .tw-dark-all{display:flex;justify-content:flex-end;align-items:center;gap:7px;width:100%;border-top:1px solid #eee8db;font-size:10px;color:#a19275;margin-top:8px;padding-top:11px}.ui-refresh .tw-dark-all svg{height:12px;width:12px}.ui-refresh .tw-dark-empty{color:#9eab88;background:none;min-height:150px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}
.ui-refresh .tw-housing{grid-area:housing;background:linear-gradient(140deg,#59634f,#404e40);color:#ecf1dd;min-height:310px}.ui-refresh .tw-housing-kinds{display:flex;gap:5px}.ui-refresh .tw-housing-kinds button{font-size:9px;padding:4px 5px;border:1px solid #dce8c02b;color:#bccda0;background:#d7e2b80c;border-radius:5px;display:flex;align-items:center;gap:3px}.ui-refresh .tw-housing-kinds button[aria-pressed=true]{background:#e3ebd0;color:#74845d}.ui-refresh .tw-housing-kinds svg{width:12px;height:12px}.ui-refresh .tw-housing .tw-text-link{color:#c5d5ac;font-size:9px}.ui-refresh .tw-home-cabinets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;min-height:0;height:auto;margin-top:14px}.ui-refresh .tw-home-cabinet,.ui-refresh .tw-home-enclosure{background:none;border:0;display:flex;flex-direction:column;width:100%;min-width:0;padding:0;color:#eff3e1;gap:9px}.ui-refresh .tw-home-cabinet-info{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%}.ui-refresh .tw-home-cabinet-info strong{font-size:14px;font-weight:400}.ui-refresh .tw-home-cabinet-info small{font-size:9px;color:#b5c69b}.ui-refresh .tw-home-enclosure>img{height:150px;width:100%;object-fit:contain}.ui-refresh .tw-home-cabinet-preview{height:auto;aspect-ratio:var(--preview-ratio);width:100%}.ui-refresh .tw-home-dialog{border:1px solid #f2ead9;border-radius:16px;background:#fffdf6;box-shadow:0 24px 80px #23301933;max-width:min(600px,calc(100vw - 32px));padding:22px;color:#766a52}.ui-refresh .tw-home-dialog::backdrop{background:#28302366}
/* Page families: preserve native component geometry, style their surrounding UI. */
.ui-refresh .tw-task-controls{background:#fff;border:1px solid #eeebdf;border-radius:13px;padding:16px;margin-bottom:15px}.ui-refresh .tw-task-filters{gap:10px;margin-bottom:20px;flex-wrap:wrap}.ui-refresh .tw-date-trigger{background:#f8f7ee;border:1px solid #e8e4d5;border-radius:7px;padding:8px 10px;font-size:12px;color:#9b8b6c}.ui-refresh .tw-task-row,.ui-refresh .tw-task-day{border-radius:11px;background:#fff;border-color:#eae7d9}.ui-refresh .tw-task-progress{background:#ede8da}.ui-refresh .tw-task-dialog,.ui-refresh .tw-composer{--tw-surface:#fffaf1;--tw-soft:#fff;--tw-accent:#f5dfbd}.ui-refresh .tw-month-popover{background:#fffdf7;border:1px solid #e8deca;border-radius:10px;box-shadow:0 10px 30px #302d2826}.ui-refresh .tw-month-days button.selected{background:#687655;color:#fff}
.ui-refresh .population-controls{margin-bottom:18px}.ui-refresh .population-card-grid{gap:18px;grid-template-columns:repeat(4,minmax(0,1fr))}.ui-refresh .pet-photo-card{border-radius:15px;background:#f8f6ef;border:1px solid #eeeadc;box-shadow:0 2px 10px #302d2807}.ui-refresh .pet-photo-card .photo-open{border-radius:14px;overflow:hidden}.ui-refresh .glass-identity{background:linear-gradient(0deg,#fffdf7f2,#fffdf7bb);backdrop-filter:blur(8px);border-radius:0 0 14px 14px;color:#6b604a}.ui-refresh .photo-name strong{font-size:15px}.ui-refresh .photo-species{font-size:10px;color:#9e9076}.ui-refresh .selection-bar{border-radius:8px;background:#f5ead6;border:1px solid #ebdaba;color:#aa8e5c;font-size:11px;padding:9px 12px}.ui-refresh .detail-layout{gap:20px}.ui-refresh .detail-rail{border-radius:15px;overflow:hidden;background:#f0e5d2;padding:20px;color:#8d7754}.ui-refresh .detail-main{min-width:0}.ui-refresh .pet-overview-grid{gap:12px}.ui-refresh .pet-overview-grid>button{background:#fff;border:1px solid #eee9da;border-radius:12px;color:#8d7c5c}.ui-refresh .pet-followup{background:#f8ebd4;border-radius:11px}
.ui-refresh .cw-housing-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ui-refresh .cw-housing-cabinet{background:#fafaf4;padding:19px}.ui-refresh .cw-cabinet-heading strong{font-size:17px;color:#667050}.ui-refresh .cw-cabinet-controls,.ui-refresh .cw-toolbar{border-radius:10px;background:#fff;border:1px solid #e8e7d7;padding:13px}.ui-refresh .cw-resident-card,.ui-refresh .cw-enclosure-card{border-radius:12px;background:#fff;border-color:#eae6d7}.ui-refresh .cw-placement-list{gap:10px}.ui-refresh .cw-unassigned-grid{gap:16px}.ui-refresh .cw-editor-dialog{background:#fffdf5}
.ui-refresh .plan-grid,.ui-refresh .plan-card-grid,.ui-refresh .breeding-grid{gap:18px}.ui-refresh .plan-card{padding:20px;background:#fff}.ui-refresh .stage-track{border-radius:10px;background:#f6f5ec}.ui-refresh .plan-timeline{border-radius:14px;background:#fff;padding:20px}.ui-refresh .parent-input{overflow:hidden;padding:19px}.ui-refresh .parent-visual{background:#f7f2e7;border-radius:10px}.ui-refresh .genetics-results{padding:22px}.ui-refresh .gene-pick-button{border-radius:8px;background:#f0f2e6;border:1px solid #e2e6d2;color:#8a9870}.ui-refresh .gene-result-table{overflow:auto}.ui-refresh .genetics-actions{gap:12px;align-items:center}
.ui-refresh .page-body[data-view=lineage],.ui-refresh .page-body[data-view=records]{height:auto;min-height:calc(100dvh - 65px)}.ui-refresh .lj-workspace,.ui-refresh .jt-workspace{height:auto;min-height:calc(100dvh - 125px)}.ui-refresh .lj-toolbar{flex-wrap:wrap;gap:11px;padding:14px 16px;background:#fff;border:1px solid #e9e8d8;border-radius:11px;margin-bottom:15px}.ui-refresh .lj-group{max-width:100%}.ui-refresh .lj-modes{background:#e9eddf;border-radius:7px}.ui-refresh .lj-modes button.active{background:#fff;color:#66794c}.ui-refresh .lj-canvas,.ui-refresh .lj-stage,.ui-refresh .lj-viewport{min-height:490px;border-radius:15px;border-color:#e3e6d5;background-color:#f8faf3}.ui-refresh .lj-node{border-radius:11px;border-color:#dce3cc;background:#fffffb}.ui-refresh .jt-toolbar,.ui-refresh .jt-filters{flex-wrap:wrap;gap:10px;background:#fff;border-radius:11px;padding:13px;border:1px solid #e9e7d7}.ui-refresh .jt-layout{gap:18px;min-height:570px}.ui-refresh .jt-sidebar,.ui-refresh .jt-timeline{border-radius:13px;background:#fff;border:1px solid #e9e7d7}.ui-refresh .jt-entry{border-radius:10px;background:#faf9f1;border-color:#ebe6d5}
.ui-refresh .import-stepper,.ui-refresh .import-progress{border-radius:10px;background:#fff;border:1px solid #e9e6d7;padding:15px}.ui-refresh .import-source-card,.ui-refresh .import-method{border-radius:12px;background:#fff;border-color:#e8e4d4}.ui-refresh .import-workspace,.ui-refresh .import-main{min-width:0}.ui-refresh .import-table-wrap{overflow:auto;max-width:100%;border-radius:10px}.ui-refresh .import-review-banner{border-radius:9px;background:#fcf0d9;color:#b0945d}.ui-refresh .import-template-dialog{background:#fffdf6}
.ui-refresh .settings-sidebar{background:#fff;border:1px solid #ece7d9;border-radius:12px;padding:8px}.ui-refresh .settings-sidebar button{border-radius:7px;color:#9a8d72;font-size:12px}.ui-refresh .settings-sidebar button.active{background:#edf1e2;color:#7f915f}.ui-refresh .settings-main{padding:24px}.ui-refresh .settings-room{border-radius:10px;background:#f8f8ef;border-color:#e8e8d8}.ui-refresh .profile-editor{padding:24px;max-width:820px}.ui-refresh .profile-avatar{border-bottom:1px solid #ede7d8;padding-bottom:20px;margin-bottom:20px}.ui-refresh .membership-status{border-radius:14px;background:#e8eedf;border:1px solid #dbe6cb;color:#72845a}.ui-refresh .membership-plan{background:#fffdf5;border-color:#e8dfbd}.ui-refresh .membership-benefits{background:#fff}.ui-refresh .nfc-grid,.ui-refresh .transfer-list,.ui-refresh .stock-grid{gap:16px}.ui-refresh .nfc-card{background:#f6f3e9;border-color:#e6dfc9}.ui-refresh .data-panel,.ui-refresh .sync-card{border-radius:13px;background:#fff;border:1px solid #eae5d4;padding:22px}
.ui-refresh .web-auth-page{background:linear-gradient(130deg,#edf0e7,#f3eee3,#e8eee5)}.ui-refresh .web-auth-shell{background:#fffdf8;border-radius:20px;border:1px solid #eee8d7;box-shadow:0 15px 60px #39402b12}.ui-refresh .web-auth-confirm{background:#343c2d;color:#fff;border-radius:8px}.ui-refresh .web-auth-text-action{color:#9b8967}.ui-refresh .web-auth-error{background:#fff0e7;border-color:#ecd1bd}
@media(min-width:1700px){.ui-refresh{--ui-side:240px}.ui-refresh .page-body{padding:30px 36px 36px}.ui-topbar{padding-left:36px;padding-right:36px}.ui-refresh .population-card-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.ui-refresh .tw-overview{gap:18px}.ui-refresh .ui-home-card{padding:22px}.ui-refresh .tw-growth,.ui-refresh .tw-focus{min-height:305px}.ui-refresh .tw-history-bars{height:169px}.ui-refresh .tw-history-track{height:136px}}
@media(max-width:1250px){.ui-refresh{--ui-side:202px}.ui-brand{font-size:19px}.ui-brand small{font-size:7px}.ui-refresh .page-body{padding:23px 20px 28px}.ui-topbar{padding:14px 20px}.ui-refresh .tw-shell .main-nav>a{font-size:11px}.ui-refresh .tw-overview{gap:12px}.ui-refresh .ui-home-card{padding:15px}.ui-refresh .tw-counts{gap:10px}.ui-refresh .tw-counts strong{font-size:23px}.ui-refresh .tw-counts button>svg{display:none}.ui-refresh .tw-counts small{font-size:8px}.ui-refresh .tw-housing .tw-panel-head{flex-wrap:wrap}.ui-refresh .tw-home-cabinets{gap:9px}.ui-refresh .population-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ui-refresh .cw-housing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-refresh .lj-toolbar{gap:8px}}
@media(min-width:761px) and (max-width:1040px){.ui-refresh{--ui-side:72px}.ui-refresh .tw-shell>.site-header{padding:22px 8px}.ui-brand{justify-content:center;margin:0 0 23px}.ui-brand span,.ui-sidebar-label,.ui-refresh .tw-shell .main-nav>a>span,.ui-refresh .tw-shell .main-nav>.menu-wrap>button>span,.ui-refresh .tw-shell .nav-count,.ui-refresh .identity-line{display:none}.ui-refresh .tw-shell .main-nav>a,.ui-refresh .tw-shell .main-nav>.menu-wrap>button{justify-content:center;padding:7px 3px}.ui-refresh .tw-shell .main-nav>.menu-wrap>button>svg:last-child{display:none}.ui-refresh .main-nav .menu{position:fixed;left:68px;top:320px;width:180px;max-height:calc(100dvh - 340px);overflow:auto;background:#343d2b;padding:9px;box-shadow:0 10px 35px #24301833}.ui-refresh .tw-shell .header-actions{padding:10px 3px;justify-content:center;gap:8px}.ui-refresh .tw-shell .header-actions .cloud-state{justify-content:center;padding:5px}.ui-refresh .header-actions .cloud-state>span,.ui-refresh .header-actions .header-settings>span{display:none}.ui-refresh .tw-shell .header-actions .header-settings{min-width:31px;width:31px;padding:6px}.ui-refresh .tw-shell .identity-user{justify-content:center}.ui-refresh .tw-overview{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'head head' 'population summary' 'preparation preparation' 'journal focus' 'tasks tasks' 'housing housing'}.ui-refresh .tw-preparation{min-height:0}.ui-refresh .tw-preparation-lines{flex-direction:row;flex-wrap:wrap;gap:20px}.ui-refresh .tw-material-line{min-width:180px;flex:1}.ui-refresh .tw-home-cabinets{grid-template-columns:repeat(2,minmax(0,1fr));max-width:610px;margin:auto}.ui-refresh .tw-housing{min-height:0}.ui-refresh .tw-home-cabinet-preview{max-width:210px}.ui-refresh .population-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ui-refresh .detail-layout,.ui-refresh .settings-layout{grid-template-columns:210px minmax(0,1fr)}.ui-refresh .parent-input-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ui-refresh{--ui-side:0px}.ui-refresh .tw-shell>.site-header{display:none;position:fixed;left:8px;top:8px;bottom:8px;width:228px;height:calc(100dvh - 16px);padding:24px 16px 17px;border-radius:12px;box-shadow:12px 0 60px #22301955}.ui-refresh.ui-nav-open .tw-shell>.site-header{display:flex}.ui-refresh.ui-nav-open .ui-nav-shade{display:block;position:fixed;inset:0;background:#24301d44;z-index:35;border:0;border-radius:0}.ui-refresh [data-ui-menu]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:#e5ebdc;border:1px solid #dbe4cc;border-radius:7px;color:#87986c;flex:none}.ui-refresh [data-ui-menu] svg{width:16px;height:16px}.ui-topbar{position:sticky;top:0;z-index:25;min-height:56px;padding:11px 15px;background:#f2f4eced;backdrop-filter:blur(10px);gap:9px}.ui-breadcrumb{flex:1;min-width:0;font-size:10px;gap:6px}.ui-breadcrumb>span{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-topbar-actions{gap:5px}.ui-mode{font-size:8px;padding:3px 5px}.ui-topbar .ui-quiet{width:26px;height:26px}.ui-topbar .ui-quiet:last-child{display:none}.ui-refresh .page-body{padding:20px 15px 26px;overflow-x:clip}.ui-refresh .page-head,.ui-refresh .tw-page-head{gap:13px;align-items:flex-start;margin-bottom:19px}.ui-refresh .page-head h1,.ui-refresh .tw-page-head h1{font-size:25px}.ui-refresh .page-head p,.ui-refresh .tw-subtitle{font-size:11px}.ui-refresh .head-actions,.ui-refresh .tw-actions{gap:6px;flex-wrap:wrap}.ui-refresh .button,.ui-refresh .tw-button{font-size:11px;padding:7px 10px;min-height:34px}.ui-refresh .toolbar{padding:12px;gap:8px}.ui-refresh .search-box,.ui-refresh .tw-search{width:100%;min-width:0}.ui-refresh .filter-select{max-width:100%;flex:1;min-width:110px}.ui-refresh .tabs,.ui-refresh .segmented,.ui-refresh .tw-segment{max-width:100%;flex-wrap:wrap}.ui-refresh .tabs button,.ui-refresh .segmented button,.ui-refresh .tw-segment button{font-size:11px;padding:6px 9px}.ui-refresh .tw-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'head head' 'population summary' 'preparation preparation' 'journal journal' 'focus focus' 'tasks tasks' 'housing housing';gap:12px}.ui-refresh .tw-overview>.tw-page-head>div:first-child{max-width:100%;min-width:0}.ui-refresh .tw-overview>.tw-page-head{flex-wrap:wrap;gap:10px}.ui-refresh .tw-overview .tw-actions .tw-button{font-size:10px;padding:6px 8px}.ui-refresh .ui-home-card{padding:16px}.ui-refresh .ui-home-population,.ui-refresh .tw-today-summary{min-height:180px;padding:14px}.ui-refresh .tw-counts{gap:10px;align-items:flex-start;padding-top:12px}.ui-refresh .tw-counts button{gap:3px}.ui-refresh .tw-counts button:first-child{width:100%}.ui-refresh .tw-counts button:first-child strong{font-size:28px}.ui-refresh .tw-counts strong{font-size:20px}.ui-refresh .tw-counts small{font-size:7px}.ui-refresh .tw-category-labels{gap:7px}.ui-refresh .tw-category-label{font-size:9px}.ui-refresh .tw-today-summary .tw-panel-head{margin-bottom:8px;flex-wrap:wrap}.ui-refresh .tw-today-summary h2{font-size:14px}.ui-refresh .tw-today-rate strong{font-size:25px}.ui-refresh .tw-today-status{font-size:9px}.ui-refresh .tw-home-kinds{gap:4px}.ui-refresh .tw-home-kinds button{font-size:8px;padding:3px 5px}.ui-refresh .tw-home-kinds b{font-size:9px}.ui-refresh .tw-preparation{min-height:0}.ui-refresh .tw-preparation-lines{flex-direction:row;flex-wrap:wrap}.ui-refresh .tw-material-line{min-width:140px;flex:1}.ui-refresh .tw-growth{min-height:280px}.ui-refresh .tw-focus{min-height:290px}.ui-refresh .tw-focus-image{height:217px;width:78%;right:-11px}.ui-refresh .tw-focus-content{min-height:220px}.ui-refresh .tw-dark-tasks{min-height:300px}.ui-refresh .tw-home-task-scroll{max-height:none}.ui-refresh .tw-housing{min-height:300px}.ui-refresh .tw-home-cabinets{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ui-refresh .tw-home-cabinet-preview{max-width:185px}.ui-refresh .tw-home-cabinet-info strong{font-size:13px}.ui-refresh .tw-home-cabinet-info small{font-size:8px}.ui-refresh .tw-housing .tw-panel-head{flex-wrap:wrap}.ui-refresh .tw-panel-head h2{font-size:16px}
.ui-refresh .population-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ui-refresh .pet-photo-card{border-radius:13px}.ui-refresh .photo-name strong{font-size:13px}.ui-refresh .photo-species{font-size:9px}.ui-refresh .population-controls .card-filter-group{width:100%;display:flex;flex-wrap:wrap;gap:8px}.ui-refresh .card-pagination{flex-wrap:wrap;gap:10px}.ui-refresh .detail-layout,.ui-refresh .settings-layout,.ui-refresh .two-columns,.ui-refresh .split-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:15px}.ui-refresh .detail-rail{padding:17px;min-width:0}.ui-refresh .detail-rail>img{max-height:270px;object-fit:contain;margin:auto}.ui-refresh .detail-surface{padding:17px}.ui-refresh .pet-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ui-refresh .cw-housing-grid{grid-template-columns:minmax(0,1fr);gap:15px}.ui-refresh .cw-housing-cabinet{padding:17px}.ui-refresh .cw-cabinet-controls,.ui-refresh .cw-toolbar{flex-wrap:wrap;gap:9px}.ui-refresh .cw-unassigned-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-refresh .plan-grid,.ui-refresh .plan-card-grid,.ui-refresh .breeding-grid{grid-template-columns:minmax(0,1fr);gap:13px}.ui-refresh .parent-input-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ui-refresh .parent-input{padding:12px}.ui-refresh .parent-input h2{font-size:14px}.ui-refresh .parent-visual{height:140px}.ui-refresh .genetics-actions{flex-wrap:wrap}.ui-refresh .genetics-species{padding:15px}.ui-refresh .genetics-results{padding:17px}.ui-refresh .gene-result-table{overflow:auto}.ui-refresh .lj-toolbar{padding:12px;gap:10px}.ui-refresh .lj-group{width:100%;max-width:100%}.ui-refresh .lj-group select{max-width:calc(100vw - 130px)}.ui-refresh .lj-options{display:flex;gap:8px;flex-wrap:wrap}.ui-refresh .lj-canvas,.ui-refresh .lj-stage,.ui-refresh .lj-viewport{min-height:440px;max-width:100%}.ui-refresh .lj-modes{flex-wrap:wrap}.ui-refresh .jt-layout{display:grid;grid-template-columns:1fr;min-height:0}.ui-refresh .jt-sidebar{max-height:270px;overflow:auto}.ui-refresh .jt-timeline{min-height:420px}.ui-refresh .jt-toolbar,.ui-refresh .jt-filters{padding:12px;gap:9px}.ui-refresh .settings-sidebar{display:flex;flex-wrap:wrap;gap:4px}.ui-refresh .settings-sidebar button{flex:1;min-width:95px;padding:8px}.ui-refresh .settings-main,.ui-refresh .profile-editor{padding:18px}.ui-refresh .membership-status{padding:17px;flex-wrap:wrap}.ui-refresh .membership-layout,.ui-refresh .membership-grid,.ui-refresh .nfc-grid,.ui-refresh .stock-grid{grid-template-columns:minmax(0,1fr);gap:14px}.ui-refresh .import-workspace,.ui-refresh .import-layout{display:block;min-width:0}.ui-refresh .import-table-wrap,.ui-refresh .table-wrap{overflow:auto;max-width:100%}.ui-refresh .tw-task-filters{display:flex;flex-wrap:wrap;gap:8px}.ui-refresh .tw-task-controls{padding:13px}.ui-refresh .tw-task-toolbar{flex-wrap:wrap;gap:10px}.ui-refresh .tw-task-list{min-width:0}.ui-refresh .tw-task-row{min-width:0;padding:14px}.ui-refresh .form-stack,.ui-refresh .field-grid{min-width:0}.ui-refresh .field-grid{grid-template-columns:1fr}.ui-refresh .modal-backdrop{padding:12px 10px;align-items:center}.ui-refresh .dialog{padding:18px;max-width:calc(100vw - 20px);width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:15px}.ui-refresh .dialog h2{font-size:20px}.ui-refresh .dialog-actions,.ui-refresh .dialog-footer{position:sticky;bottom:-18px;background:#fffdf8;padding:14px 0 0;flex-wrap:wrap}.ui-refresh .dialog-actions>.button{flex:1}.ui-refresh .web-sync-notice{padding:10px 15px;font-size:11px}.ui-refresh .tw-source-strip{margin:13px 15px 0;font-size:11px}.ui-refresh .web-compliance-footer{font-size:9px;gap:3px 10px;padding:12px}.ui-refresh .toast{max-width:calc(100vw - 26px);font-size:12px}}
@media(max-width:380px){.ui-refresh .page-body{padding-left:12px;padding-right:12px}.ui-breadcrumb{font-size:9px}.ui-topbar .ui-mode{display:none}.ui-refresh .ui-home-population,.ui-refresh .tw-today-summary{padding:11px}.ui-refresh .tw-home-kinds button{padding:3px}.ui-refresh .tw-counts{gap:7px}.ui-refresh .tw-material-copy strong{font-size:11px}.ui-refresh .tw-housing .tw-panel-head h2{font-size:14px}.ui-refresh .photo-name strong{font-size:12px}.ui-refresh .parent-input-grid{grid-template-columns:minmax(0,1fr)}.ui-refresh .lj-group{flex-wrap:wrap}.ui-refresh .tw-panel-head{flex-wrap:wrap}}
.ui-refresh .tw-focus-content>.tw-focus-heading{position:relative;inset:auto;display:flex;align-items:center;justify-content:space-between;z-index:4}.ui-refresh .tw-focus-heading h2{color:#766043;text-shadow:none;font-size:16px;background:none;padding:0;margin:0}.ui-refresh .tw-focus-count{background:#fff6dfaa;border:1px solid #dfc39744;border-radius:14px;padding:4px 7px;color:#a58b60}.ui-refresh .tw-focus-scrim{display:none}.ui-refresh .tw-focus-content>.tw-focus-open{position:absolute;inset:40px 0 0;width:100%;height:calc(100% - 40px);z-index:2}.ui-refresh .tw-focus-caption{position:absolute;left:0;top:2px;bottom:auto;width:100%;gap:5px;color:#806a46}.ui-refresh .tw-focus-caption strong{font-size:27px;font-weight:400;line-height:1.3;color:#55482f;max-width:65%}.ui-refresh .tw-focus-caption small{font-size:11px;color:#aa926a}.ui-refresh .tw-focus-caption>span{align-self:flex-start;max-width:70%;margin-top:65px;font-size:11px;color:#a28758;background:#fff6e1;border:1px solid #e5cea644;border-radius:6px;padding:5px 8px}.ui-refresh .tw-focus-content>.tw-focus-switch{position:absolute;right:0;bottom:7px;display:flex;gap:5px;z-index:3}.ui-refresh .tw-focus-switch button{width:27px;height:27px;border:1px solid #bd9f6f33;background:#fff3dc88;color:#a38a60}.ui-refresh .tw-home-cabinet{container-type:normal;height:auto;justify-content:flex-start}.ui-refresh .tw-home-cabinet-preview{aspect-ratio:auto;height:170px;width:100%;max-width:200px}.ui-refresh .tw-counts{justify-content:flex-start}.ui-refresh .tw-counts button{flex:none}.ui-refresh .ui-home-population{display:flex;flex-direction:column;justify-content:space-between}.ui-refresh .ui-home-population .tw-counts{padding-top:18px}.ui-refresh .ui-home-population .tw-counts button:first-child strong{font-size:38px}.ui-refresh .tw-dark-task-head>span>b{font-size:12px}
@media(max-width:760px){.ui-refresh .tw-home-cabinet-preview{height:145px}.ui-refresh .ui-home-population .tw-counts button:first-child strong{font-size:28px}.ui-refresh .tw-focus-caption>span{margin-top:69px}}
.ui-refresh .tw-counts{height:auto;min-height:0;grid-column:auto;padding-bottom:0}.ui-refresh .tw-focus-image{inset:auto -12px 0 auto}.ui-refresh .dialog input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),.ui-refresh .dialog select,.ui-refresh .dialog textarea{display:block;width:100%;min-width:0;min-height:36px;border:1px solid #e6e0d1;border-radius:7px;padding:8px 10px;background:#faf9f2}.ui-refresh .dialog textarea{min-height:84px;resize:vertical}.ui-refresh .cw-editor-fields>label{display:block;margin-bottom:14px}.ui-refresh .layer-editor-heading{margin:14px 0 8px;font-size:11px;color:#a59980}.ui-refresh .layer-editor-row{margin-bottom:8px;gap:8px}.ui-refresh .layer-editor-row select,.ui-refresh .layer-editor-row input{min-height:33px;padding:6px 8px}.ui-refresh .state-error:empty{display:none}.ui-refresh .tw-counts strong{line-height:1.1}.ui-refresh .tw-counts button>span{display:block;height:auto;min-height:0}.ui-refresh .ui-home-population .tw-counts{margin-bottom:0}.ui-refresh .tw-home-cabinet-info{min-height:0}
.ui-preview-label{font-size:9px;color:#b29a70;background:#f6ead5;border:1px solid #edddbb;padding:4px 7px;border-radius:5px;white-space:nowrap}
@media(max-width:760px){.ui-preview-label{font-size:8px;padding:3px 5px}.ui-topbar-actions:has(.ui-preview-label) .ui-mode{display:none}}
@media(prefers-reduced-motion:reduce){.ui-refresh *,.ui-refresh *:before,.ui-refresh *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
