:root{--ink:#203c3b;--muted:#6d7b76;--green:#1e6657;--line:#dae3dc;--paper:#fff;--bg:#f3f5f0;--red:#b13445;--blue:#196599}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:11px 18px;min-height:48px;font-weight:650}button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #dba850;outline-offset:3px}.primary{background:var(--green);color:white;border-color:var(--green)}.male{background:var(--blue);color:white;border:0}.female{background:var(--red);color:white;border:0}.subtle{background:transparent}.danger{color:var(--red)}a{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:.02em;font-weight:700}h2{font-size:21px;margin-bottom:16px}h3{font-size:17px}.eyebrow{font-size:11px;letter-spacing:.19em;color:var(--muted);font-weight:700}small,.muted{color:var(--muted)}small{display:block;font-size:12px}#shell{display:flex;min-height:100vh}aside{width:240px;background:#fff;border-right:1px solid var(--line);padding:34px 20px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:700;padding:0 8px 36px}.brand small{font-weight:400;font-size:11px}.crest{font-family:Georgia,serif;font-size:28px;background:var(--green);color:white;border-radius:8px 8px 16px 16px;width:42px;height:49px;text-align:center;line-height:49px}nav{display:grid;gap:10px}nav button{text-align:left;border:0;background:none;font-size:15px}nav .active{background:#e8f1eb;color:var(--green)}.local-note{margin-top:auto;padding:20px 8px 0;font-size:12px;color:var(--muted)}.local-note i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#529d69;margin-right:5px}.local-note span{display:inline-block;margin-top:10px;padding:1px 8px;border:1px solid var(--line);border-radius:5px;font-size:10px}main{margin-left:240px;padding:38px 42px 70px;width:calc(100% - 240px);max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:20px}.badge{background:#e5eee8;color:var(--green);border-radius:30px;padding:7px 14px;font-size:12px;white-space:nowrap}#notice:not(:empty){border:1px solid #d4c6a4;background:#fff9e9;padding:12px 18px;border-radius:10px;margin-bottom:20px}#notice.error{background:#fff1f1;color:#962638;border-color:#edc6cc}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:22px;flex-wrap:wrap}.toolbar input{max-width:430px;flex:1}.toolbar .spacer{flex:1}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:26px;margin-bottom:22px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:20px}.dog-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;text-align:left;padding:0;font-weight:400}.dog-card .image{height:195px;background:#e8ede5;display:flex;align-items:center;justify-content:center}.dog-card img{height:100%;max-width:100%;object-fit:contain}.dog-card .no-photo{font-size:12px;letter-spacing:.06em;color:#82978a}.dog-card .card-body{padding:19px}.dog-card h3{font-size:19px;overflow-wrap:anywhere}.dog-card small{margin-top:4px}.tag{font-size:11px;border-radius:5px;padding:3px 8px;display:inline-block}.tag.Male{background:#e6f0f7;color:var(--blue)}.tag.Female{background:#fae9ed;color:var(--red)}.card-meta{display:flex;justify-content:space-between;margin-top:12px;align-items:center;font-size:12px;color:var(--muted)}.empty{padding:55px 25px;text-align:center;background:white;border:1px dashed #b9cbbd;border-radius:16px}.empty h2{margin-bottom:10px}.empty p{color:var(--muted);margin-bottom:22px}.split{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(340px,1.2fr);gap:24px}.split>.panel{min-width:0}.photo-box{background:#f4f5f2;border:1px solid var(--line);border-radius:12px;min-height:360px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:18px 0}.photo-box img{max-width:100%;max-height:650px;object-fit:contain;display:block}.photo-box .placeholder{text-align:center;color:var(--muted);font-size:14px}.upload-actions{display:flex;gap:10px;flex-wrap:wrap}.upload-actions button{flex:1;white-space:nowrap}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:block;font-size:13px;font-weight:600;color:#526a60}label input,label select,label textarea{margin-top:6px}input,select,textarea{display:block;width:100%;border:1px solid #cbd9d0;border-radius:8px;background:white;padding:11px 12px;color:var(--ink);min-height:47px}input:focus,select:focus,textarea:focus{outline:2px solid #83b5a2;outline-offset:1px}.full{grid-column:1/-1}textarea{min-height:95px;resize:vertical}.actions{display:flex;gap:10px;align-items:center;margin-top:24px;flex-wrap:wrap}.hint{font-size:13px;color:var(--muted);margin:10px 0 18px}.reading{color:var(--green);background:#e8f1eb;padding:12px;border-radius:8px;margin-top:14px}.parents{display:grid;grid-template-columns:1fr 1fr;gap:22px}.parent-panel{border-top:4px solid var(--blue)}.parent-panel.dam{border-top-color:var(--red)}.search-row{display:flex;gap:10px}.search-row input{min-width:90px}.selected{padding:18px 0 0}.selected dl{display:grid;grid-template-columns:80px 1fr;gap:6px;font-size:14px}.selected dt{color:var(--muted)}.selected dd{margin:0;overflow-wrap:anywhere}.search-result{display:block;width:100%;text-align:left;margin-top:10px;font-size:14px}.checks{display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px;margin:20px 0}.check{background:#fff;border:1px solid var(--line);padding:16px;border-radius:10px;font-size:13px}.check h3{font-size:14px;margin-bottom:10px}.check p{margin-bottom:7px}.check .error{color:var(--red);font-weight:600}.ack{display:flex;align-items:flex-start;gap:10px;margin:12px 0}.ack input{min-height:24px;width:22px;margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}td,th{text-align:left;border-bottom:1px solid var(--line);padding:14px 10px;white-space:nowrap}th{color:var(--muted);font-size:12px;font-weight:500}td button{font-size:12px;padding:6px 12px;min-height:38px}.application{display:flex;justify-content:space-between;align-items:center;gap:20px}.application h3{margin-bottom:6px}.application a{display:inline-block;padding:10px 16px;border:1px solid var(--green);border-radius:8px;text-decoration:none;white-space:nowrap}.backup-path{overflow-wrap:anywhere;background:#f4f5f2;padding:15px;margin:16px 0;border-radius:8px;font-family:monospace;font-size:13px}#login{position:fixed;inset:0;background:var(--bg);z-index:10;padding:10vh 20px}#login[hidden]{display:none}#login form{max-width:450px;margin:auto}#login p,#login label{margin:18px 0}.steps{display:flex;gap:8px;color:var(--muted);font-size:12px;margin-bottom:20px}.steps span{background:#e5ece5;padding:5px 10px;border-radius:5px}details summary{cursor:pointer;color:var(--muted);margin:10px 0}.working-dot{display:inline-block;width:8px;height:8px;background:#629780;border-radius:50%;margin-right:6px;animation:pulse 1.3s infinite}@keyframes pulse{50%{opacity:.25}}[hidden]{display:none!important}
@media(max-width:1100px){aside{width:195px;padding:28px 13px}main{margin-left:195px;width:calc(100% - 195px);padding:30px 24px}.split{grid-template-columns:1fr}.photo-box{min-height:220px}.photo-box img{max-height:450px}.checks{grid-template-columns:1fr}}
@media(max-width:650px){aside{position:static;width:100%;padding:16px;border-right:0;border-bottom:1px solid var(--line)}#shell{display:block}.brand{padding:0 4px 15px}.crest{width:32px;height:37px;line-height:37px;font-size:23px}nav{display:flex;overflow:auto;gap:6px}nav button{flex-shrink:0;font-size:13px;padding:10px 12px}.local-note{display:none}main{margin:0;width:100%;padding:24px 16px 60px}header{margin-bottom:22px}h1{font-size:25px}.badge{font-size:10px;padding:6px 9px}.panel{padding:20px 16px}.fields{gap:13px}.fields .mobile-full{grid-column:1/-1}.parents{grid-template-columns:1fr}.toolbar input{max-width:none;flex-basis:100%}.toolbar .spacer{display:none}.toolbar button{flex:1}.cards{grid-template-columns:1fr 1fr;gap:12px}.dog-card .image{height:140px}.dog-card .card-body{padding:12px}.dog-card h3{font-size:16px}.dog-card small{font-size:10px}.application{flex-wrap:wrap}.application a{width:100%;text-align:center}.split{gap:0}.checks{gap:10px}.photo-box img{max-height:510px}}
textarea.dog-name{min-height:76px;line-height:1.5;resize:vertical}
.check-summary-error{margin:16px 0 0;padding:12px 16px;border:2px solid var(--red);border-radius:8px;background:#fff1f1;color:#962638;font-weight:700}
.camera-control{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 18px;border:1px solid var(--green);border-radius:10px;font-weight:650;cursor:pointer;overflow:hidden;text-align:center}.camera-control input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:100px}.camera-control:focus-within{outline:3px solid #dba850;outline-offset:3px}@media(max-width:650px){.upload-actions .camera-control{width:100%}}
.age-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:0 0 18px;padding:12px 15px;border-radius:9px;background:#e8f1eb;color:var(--green);font-weight:650}.age-summary strong{font-size:21px}.age-summary small{margin-left:auto;font-weight:400}.dog-card-age{margin-top:3px}.dog-card-age strong{color:var(--green)}#mother-history{display:grid;gap:24px;margin-top:24px}
.history-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.history-slot{min-width:0;min-height:220px;padding:17px;border:1px solid var(--line);border-radius:12px;background:#f8faf7}.history-slot h3{font-size:19px;margin-bottom:12px;color:var(--green)}.history-slot dl{display:grid;grid-template-columns:84px minmax(0,1fr);gap:5px 10px;margin:0 0 14px;font-size:13px}.history-slot dt{color:var(--muted)}.history-slot dd{margin:0;overflow-wrap:anywhere}.history-slot button{width:100%;margin-top:7px}.empty-slot{display:flex;flex-direction:column;justify-content:space-between;background:#fff;border-style:dashed}.empty-slot p{margin-bottom:auto}.empty-slot button{margin-top:20px}@media(max-width:650px){.history-slots{grid-template-columns:1fr}.history-slot{min-height:0}}
.puppy-details{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:#f8faf7}.puppy-row{border-top:1px solid var(--line);padding:15px 0}.puppy-row h4{margin:0 0 10px;color:var(--ink)}.puppy-row .fields{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}
