@font-face{font-family:Resource;src:url('assets/resource-rounded-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Resource;src:url('assets/resource-rounded-500.woff2') format('woff2');font-weight:500 800;font-display:swap}
@font-face{font-family:Geist;src:url('assets/geist-ui-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Geist;src:url('assets/geist-ui-500.woff2') format('woff2');font-weight:500 800;font-display:swap}
:root{--ink:#292d28;--muted:#596054;--faint:#6b7065;--line:rgba(65,71,57,.16);--paper:rgba(255,255,252,.68);--yellow:#f2d572;--sage:#b5bea9;--ice:#c1d0d1;--rose:#d6bfb6;--radius:24px;--small-radius:14px;--shadow:0 2px 2px rgba(48,53,44,.025);--font:Resource,'Microsoft YaHei',sans-serif}
*{box-sizing:border-box}
[x-cloak]{display:none!important}
body{margin:0;color:var(--ink);font:14px/1.6 var(--font);background:#e9eae4;letter-spacing:0;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;letter-spacing:0;color:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{border:0;cursor:pointer;background:none;padding:0}
button:disabled{cursor:default;opacity:.45}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
svg{width:18px;height:18px;stroke-width:1.65;flex-shrink:0;vertical-align:middle}
button:focus-visible,a:focus-visible{outline:2px solid #7b7549;outline-offset:4px}
input:focus,select:focus,textarea:focus{outline:2px solid #b4ac7c;outline-offset:2px}
h1,h2,h3,p{margin:0}
h1{font-size:32px;line-height:1.3;font-weight:500}
h2{font-size:18px;line-height:1.5;font-weight:500}
h3{font-size:16px;line-height:1.5;font-weight:500}
small{font-size:13px}
strong,b{font-weight:500}
input[type=checkbox]{appearance:none;display:inline-grid;place-content:center;width:17px;height:17px;padding:0;margin:0;border:1px solid #a2a797;border-radius:5px;background:rgba(255,255,255,.5);vertical-align:middle;flex-shrink:0}
input[type=checkbox]:checked{background:var(--ink);border-color:var(--ink)}
input[type=checkbox]:checked:before{content:'';width:7px;height:4px;transform:rotate(-45deg) translateY(-1px);border-left:1.5px solid white;border-bottom:1.5px solid white}
.canvas{position:relative;max-width:1488px;width:calc(100% - 80px);min-height:850px;margin:38px auto;padding:24px;border:1px solid rgba(255,255,255,.65);border-radius:36px;background:linear-gradient(126deg,#e4e7e9 3%,#e8e9e3 35%,#f5efcf 67%,#fff0b7 100%);box-shadow:0 32px 42px -24px rgba(37,42,47,.57);isolation:isolate}
.canvas:before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;opacity:.2;background:url('assets/grain.png') repeat}
.site-header{display:flex;align-items:center;gap:20px;height:52px;margin-bottom:28px}
.brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;min-width:192px;font-size:24px;line-height:1.2;font-weight:500}
.brand img{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.6);object-fit:cover}
.main-nav{display:flex;align-items:center;background:rgba(255,255,255,.66);border:1px solid rgba(255,255,255,.6);padding:5px;border-radius:32px;margin:0 auto;gap:4px;box-shadow:inset 0 1px 0 white}
.main-nav>a,.main-nav>.menu-wrap>button{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;border-radius:24px;min-height:40px;padding:8px 19px;transition:background .16s ease,color .16s ease}
.main-nav .active{color:#fffef5;background:var(--ink);box-shadow:0 1px 1px rgba(0,0,0,.1)}
.main-nav>a:hover:not(.active),.main-nav>.menu-wrap>button:hover:not(.active){background:rgba(45,49,40,.06)}
.main-nav svg{width:14px;height:14px}
.nav-count{font:13px/1.4 Geist,var(--font);background:rgba(101,106,90,.1);padding:0 5px;border-radius:6px;min-width:19px}
.active .nav-count{background:rgba(255,255,255,.16)}
.header-actions{display:flex;gap:8px;align-items:center;min-width:192px;justify-content:flex-end}
.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,252,.66);transition:background .14s ease;flex-shrink:0}
.header-actions .icon-button{height:40px;width:40px}
.icon-button:hover{background:#fffef4}
.avatar-button{width:40px;height:40px;border-radius:50%;padding:3px;background:rgba(255,255,255,.7);border:1px solid rgba(63,65,54,.15)}
.avatar-button img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.menu-wrap{position:relative}
.menu{position:absolute;right:0;top:calc(100% + 12px);width:234px;padding:9px;background:#fafaf3;border:1px solid rgba(71,75,61,.13);border-radius:18px;box-shadow:0 18px 32px rgba(47,51,42,.14);z-index:30}
.menu a{display:flex;gap:12px;align-items:center;padding:11px 13px;border-radius:10px;white-space:nowrap}
.menu a:hover{background:#eeeee4}
.menu a>svg:last-child{margin-left:auto;width:14px;height:14px;color:var(--muted)}
.account-menu>strong,.account-menu>span{display:block;padding:4px 13px}
.account-menu>span{font-size:13px;color:var(--muted);margin-bottom:8px}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;min-height:68px}
.page-head p{font-size:14px;color:var(--muted);margin-top:8px;line-height:1.6}
.title-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#baa344;margin-left:12px;vertical-align:middle}
.head-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:10px 19px;min-height:42px;border-radius:25px;border:1px solid transparent;white-space:nowrap;font-size:14px;line-height:1.4;transition:background .16s ease,box-shadow .16s ease}
.button svg{width:16px;height:16px}
.button.primary{background:var(--ink);color:#fffef4;border-color:var(--ink)}
.button.primary:hover{background:#45483e}
.button.light{background:rgba(255,255,251,.72);border-color:rgba(74,80,61,.17)}
.button.light:hover{background:#fffff7}
.button.yellow{background:var(--yellow)}
.button.outline{border-color:rgba(68,75,56,.25)}
.button.danger{background:#a04a41;color:white}
.button.small{padding:7px 14px;min-height:34px;font-size:13px}
.text-button{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;line-height:1.5}
.text-button:hover{color:var(--ink)}
.text-button svg{width:14px;height:14px}
.breadcrumb{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin:0 0 12px}
.breadcrumb svg{height:14px;width:14px}
.surface{background:var(--paper);border:1px solid rgba(255,255,255,.68);border-radius:var(--radius);box-shadow:var(--shadow)}
.padded{padding:22px}
.two-columns>*,.pet-layout>*,.records-layout>*,.transfer-layout>*,.nfc-layout>*,.data-layout>*{min-width:0}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.section-head>span{font-size:13px;color:var(--muted)}
.section-head .icon-button{width:32px;height:32px}
.label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:13px}
.dot{width:6px;height:6px;background:var(--sage);border-radius:50%;display:inline-block;flex-shrink:0}
.dot.yellow{background:#bb9d3e}.dot.sage{background:#849675}.dot.blue{background:#829a9e}.dot.rose{background:#b48b7d}.dot.neutral{background:#70776d}
.badge{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px;line-height:1.5;padding:4px 10px;border-radius:18px;background:rgba(98,111,86,.1);color:#4f5e45;white-space:nowrap}
.badge.yellow{background:#f0e5b9;color:#66572c}
.badge.rose{background:#eee0d9;color:#805647}
.badge.blue{background:#e1e8e7;color:#50666a}
.badge.neutral{background:rgba(95,103,84,.09);color:var(--muted)}
.digits{font-family:Geist,var(--font);font-variant-numeric:tabular-nums}
.separator{padding:0 10px;color:#73786b}
.tabs{display:flex;gap:24px;align-items:center;border-bottom:1px solid var(--line);margin-bottom:21px}
.tabs>button{display:flex;align-items:center;gap:8px;padding:0 2px 12px;position:relative;color:var(--muted);white-space:nowrap}
.tabs>button.active{color:var(--ink);font-weight:500}
.tabs>button.active:after{position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--ink);content:'';border-radius:2px}
.tabs small{font:13px/1.3 Geist,var(--font);background:rgba(82,93,67,.1);padding:2px 6px;border-radius:7px}
.segmented{display:inline-flex;gap:4px;background:rgba(103,110,89,.09);padding:4px;border-radius:25px}
.segmented button{padding:7px 17px;min-height:34px;border-radius:21px;font-size:13px;color:var(--muted);white-space:nowrap}
.segmented .active{background:#fffef8;color:var(--ink);box-shadow:0 1px 3px rgba(67,72,58,.09)}
.toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}
.toolbar-left,.toolbar-right{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.search-box{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.66);border:1px solid var(--line);border-radius:22px;padding:8px 13px;min-height:42px}
.search-box svg{width:16px;height:16px;color:var(--muted)}
.search-box input{background:none;border:0;outline:0;width:232px;min-width:0}
input::placeholder,textarea::placeholder{color:#686f62;opacity:1}
.field{display:flex;flex-direction:column;gap:8px;min-width:0}
.field>label,.field>span{font-size:13px;color:var(--muted)}
.field input,.field select,.field textarea,.filter-select{border:1px solid rgba(72,78,61,.2);background:rgba(255,255,252,.75);border-radius:12px;min-height:42px;padding:10px 12px;width:100%;min-width:0}
.filter-select{border-radius:22px;width:auto;padding:9px 34px 9px 15px}
.field textarea{resize:vertical;min-height:100px;line-height:1.7}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.form-grid .full{grid-column:1/-1}
.help{font-size:13px;color:var(--muted);line-height:1.7}
.check-label{display:inline-flex;gap:8px;align-items:center;font-size:13px;color:var(--muted);cursor:pointer}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:14px}
th{font-weight:400;color:var(--muted);font-size:13px;padding:13px 14px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.14)}
td{padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:rgba(255,255,255,.34)}
.check-column{width:42px;padding-right:0}
.row-pet{display:flex;align-items:center;gap:12px;text-align:left;min-width:148px}
.row-pet img{height:40px;width:46px;object-fit:contain;background:#ebece4;border-radius:11px}
.row-pet strong{display:block}.row-pet small{display:block;color:var(--muted);font:13px/1.5 Geist,var(--font)}
.table-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 18px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.pagination{display:flex;gap:6px;align-items:center}
.pagination button{width:30px;height:30px;display:grid;place-items:center;border-radius:50%}
.pagination button.active{background:var(--ink);color:#fffef2}
.pagination svg{width:14px;height:14px}
.empty-state{padding:60px 20px;text-align:center;color:var(--muted);display:grid;justify-items:center;gap:12px}
.empty-state>svg{width:32px;height:32px}
.site-footer{display:flex;justify-content:space-between;align-items:center;margin:22px 5px 0;font-size:13px;color:var(--muted)}
.site-footer>div{display:flex;gap:22px;align-items:center}
.site-footer button{display:flex;gap:6px;align-items:center;font-size:13px}
.site-footer svg{width:13px;height:13px}
.modal-backdrop{position:fixed;inset:0;background:rgba(42,47,44,.28);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:90;overflow:auto}
.dialog{width:min(100%,540px);max-height:calc(100vh - 48px);overflow:auto;padding:28px;background:#f7f7ed;border:1px solid rgba(255,255,255,.9);border-radius:28px;box-shadow:0 24px 100px rgba(32,40,31,.18)}
.dialog.wide-dialog{width:min(100%,860px)}
.modal-backdrop[data-closing]{pointer-events:none}
@keyframes dialog-appear{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}
.dialog-head h2{font-size:24px}
.dialog-head p{margin-top:7px;font-size:13px;color:var(--muted)}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;align-items:center;flex-wrap:wrap}
.dialog-actions>.help{margin-right:auto}
.dialog-note{font-size:13px;line-height:1.7;color:var(--muted);margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);z-index:120;display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);background:var(--ink);color:#fffef4;padding:13px 22px;border-radius:24px;box-shadow:0 6px 24px rgba(30,35,29,.2);font-size:14px}
.toast svg{color:#ead37c}
@media(min-width:1700px){.canvas{margin-top:52px}}
@media(max-width:1280px){.canvas{width:calc(100% - 48px);padding:23px}.brand{min-width:165px;font-size:22px}.header-actions{min-width:145px}.main-nav>a,.main-nav>.menu-wrap>button{padding:8px 14px}.site-header{gap:10px}.page-head{margin-bottom:22px}h1{font-size:29px}.padded{padding:20px}}
@media(max-width:1000px){.canvas{width:calc(100% - 32px);margin:16px auto;padding:20px;border-radius:28px}.site-header{height:auto;flex-wrap:wrap;margin-bottom:26px}.brand{flex:1}.header-actions{order:2;min-width:0}.main-nav{order:3;width:100%;justify-content:center;margin-top:10px}.page-head{align-items:flex-start}.head-actions{flex-wrap:wrap;justify-content:flex-end}.site-footer{margin-top:22px}.toolbar{flex-wrap:wrap}.table-scroll table{min-width:880px}}
@media(max-width:600px){body{font-size:14px}.canvas{width:calc(100% - 20px);padding:16px;margin:10px auto;border-radius:25px;min-height:0}.brand{font-size:23px;min-width:0}.brand img{width:34px;height:34px}.header-actions{gap:5px}.header-actions .icon-button,.avatar-button{width:34px;height:34px}.main-nav{gap:0;padding:4px;justify-content:space-between}.main-nav>a,.main-nav>.menu-wrap>button{padding:8px 10px;min-height:36px;font-size:13px}.main-nav .nav-count{display:none}.main-nav svg{width:12px}.menu{width:215px}.main-nav .menu{right:0}.site-header{gap:8px;margin-bottom:25px}.page-head{flex-wrap:wrap;gap:16px;margin-bottom:22px;min-height:0}h1{font-size:27px}.page-head p{font-size:13px}.head-actions{gap:8px;width:100%;justify-content:flex-start}.button{min-height:39px;padding:9px 16px;font-size:13px}.button svg{width:15px;height:15px}.padded{padding:18px}.section-head{margin-bottom:16px}.toolbar{gap:12px}.toolbar-left,.toolbar-right{gap:9px}.search-box{width:100%}.search-box input{width:100%}.toolbar-left{width:100%}.tabs{gap:20px;overflow:auto;white-space:nowrap;margin-bottom:18px}.tabs>button{font-size:14px}.table-scroll{margin-right:-1px}.table-footer{align-items:flex-start;gap:12px;padding:14px;flex-wrap:wrap}.site-footer{align-items:flex-start;gap:12px;font-size:13px}.site-footer>div{justify-content:flex-end;flex-wrap:wrap;gap:8px}.site-footer>div>span{display:none}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.dialog{padding:22px;border-radius:24px}.modal-backdrop{padding:14px}.dialog-head h2{font-size:22px}.dialog-actions{gap:8px}.dialog-actions>.help{width:100%}.breadcrumb{margin-bottom:9px}.segmented button{padding:6px 12px}.toast{font-size:13px;padding:12px 18px;width:max-content}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
