@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans','Noto Sans KR',sans-serif;color:#183b34;background:#f5f8f6;font-size:16px;line-height:1.55;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #87cdb1;outline-offset:2px}
.app-shell{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr)}.sidebar{background:#123f37;color:#fff;padding:28px 18px;display:flex;flex-direction:column;gap:36px}.brand{display:flex;align-items:center;gap:12px;padding:2px 9px}.brand-mark{width:37px;height:37px;border-radius:13px;background:#b8e2bc;color:#123f37;display:grid;place-items:center;font-weight:800;font-size:23px;line-height:1}.brand-name{font-weight:800;letter-spacing:-.045em;font-size:19px}.brand-small{display:block;font-size:12px;color:#abcfc0;font-weight:500;letter-spacing:.04em;margin-top:-2px}.nav{display:grid;gap:7px}.nav button{border:0;background:none;color:#c3d9d0;border-radius:11px;text-align:left;padding:12px 14px;font-size:15px;font-weight:600}.nav button:hover{background:#20564a;color:#fff}.nav button.active{background:#e0f1e7;color:#164d41}.sidebar-foot{margin-top:auto;border-top:1px solid #3b675b;padding:18px 10px;color:#b4d2c5;font-size:13px}.sidebar-foot strong{display:block;color:#fff;font-size:15px;margin-bottom:3px}
.main{min-width:0;padding:28px clamp(20px,4vw,60px) 60px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;max-width:1320px;margin:auto}.crumb{font-size:13px;color:#729087;font-weight:700;letter-spacing:.04em}.top-user{display:flex;align-items:center;gap:12px;font-size:14px;color:#4d6a61}.avatar{width:34px;height:34px;display:grid;place-items:center;background:#d7e9dd;color:#215a46;border-radius:50%;font-weight:800}.top-user button{border:0;background:none;color:#547368;font-size:13px;text-decoration:underline}.content{max-width:1320px;margin:30px auto 0}.eyebrow{color:#27805c;font-size:13px;font-weight:800;letter-spacing:.07em;margin:0 0 7px;text-transform:uppercase}.page-title{font-size:clamp(26px,3vw,38px);line-height:1.26;letter-spacing:-.055em;margin:0;color:#123f37}.sub{color:#688079;margin:10px 0 0;font-size:15px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}.head-actions{display:flex;flex-wrap:wrap;gap:9px}.btn{border:1px solid #d2e1d7;background:#fff;color:#164a3b;border-radius:10px;padding:10px 16px;font-size:14px;font-weight:700;min-height:43px;white-space:nowrap}.btn:hover{background:#eff7f1}.btn.primary{background:#17634d;border-color:#17634d;color:#fff}.btn.primary:hover{background:#0e4c3b}.btn.ghost{border:none;background:transparent}.btn.danger{color:#a33d34;border-color:#e9c9c4}.btn.small{min-height:34px;padding:6px 10px;font-size:13px}.btn:disabled{opacity:.5;cursor:not-allowed}
.hero{background:#e1efe6;border:1px solid #d3e8d8;border-radius:20px;padding:28px 32px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;overflow:hidden;position:relative}.hero:after{content:'';position:absolute;width:240px;height:240px;border:1px solid #c1dccb;border-radius:50%;right:-55px;top:-80px;box-shadow:0 0 0 38px #e6f3e9,0 0 0 39px #c1dccb;opacity:.65}.hero>*{position:relative;z-index:1}.hero h2{font-size:22px;line-height:1.35;letter-spacing:-.04em;margin:0;color:#154d3c}.hero p{color:#557767;margin:8px 0 0;font-size:14px}.hero .hero-number{font-size:48px;font-weight:800;line-height:1;color:#175d47;letter-spacing:-.07em;white-space:nowrap}.hero-number small{font-size:16px;letter-spacing:0;margin-left:4px}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0 26px}.metric{background:#fff;border:1px solid #e3ebe6;border-radius:16px;padding:20px 22px;min-height:112px}.metric-label{font-size:13px;color:#6b837a;font-weight:700}.metric-value{font-size:28px;font-weight:800;line-height:1.2;color:#173f35;margin-top:9px;letter-spacing:-.04em}.metric-value span{font-size:14px;font-weight:600;color:#748d81;margin-left:4px}.metric.warn .metric-value{color:#bb6c39}
.card{background:#fff;border:1px solid #e2ebe5;border-radius:18px;box-shadow:0 4px 22px rgba(31,68,51,.035)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 24px 16px}.section-head h2{font-size:18px;letter-spacing:-.035em;margin:0}.section-head p{margin:3px 0 0;color:#82978e;font-size:13px}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;min-width:640px}.data-table th{text-align:left;color:#7d9188;background:#f8fbf9;font-size:13px;font-weight:700;padding:13px 22px;border-top:1px solid #eaf0ec;border-bottom:1px solid #eaf0ec}.data-table td{padding:15px 22px;border-bottom:1px solid #edf2ef;font-size:14px;white-space:nowrap}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfdfb}.dog-name{font-weight:800;color:#214b3e}.muted{color:#789084}.balance{font-weight:800;color:#145744;font-size:16px}.balance.low{color:#b26b3a}.pill{display:inline-flex;align-items:center;gap:7px;border-radius:99px;padding:5px 10px;background:#eaf6ef;color:#237b55;font-size:12px;font-weight:800}.pill.gray{background:#f0f3f1;color:#71867c}.pill.amber{background:#fff1df;color:#ae6d24}.pill:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.link-btn{background:none;border:0;color:#15674e;font-size:14px;font-weight:800;text-decoration:underline;text-underline-offset:3px}.empty{padding:46px 24px;text-align:center;color:#82978d}.empty strong{color:#335b4d;display:block;font-size:16px;margin-bottom:5px}
.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.input,.select{background:#fff;border:1px solid #d5e2d9;border-radius:10px;padding:10px 13px;min-height:44px;color:#1c4639}.input.search{min-width:240px}.toolbar label{font-size:14px;color:#577166;font-weight:700}.date-input{width:165px}.list-cards{display:grid;gap:12px}.attendance-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px}.attendance-row h3{margin:0;font-size:16px}.attendance-row p{margin:3px 0 0;font-size:13px;color:#789084}.segmented{display:flex;gap:4px;background:#f2f6f3;padding:4px;border-radius:10px}.segmented button{border:0;background:transparent;border-radius:7px;padding:7px 13px;color:#6d877a;font-weight:700;font-size:13px}.segmented button.selected{background:#fff;color:#17553e;box-shadow:0 1px 5px #d8e3da}.segmented button.selected.absent{color:#ad6e30}.notice{border:1px solid #f0ddbd;background:#fff8ed;color:#8f642f;padding:12px 16px;border-radius:11px;font-size:14px;margin-bottom:18px}
.detail-back{border:0;background:none;color:#3a8064;font-weight:800;padding:0;margin-bottom:22px;font-size:14px}.detail-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:17px}.detail-grid .card{min-width:0}.purchase-list{display:grid;gap:10px;padding:0 22px 22px}.purchase{border:1px solid #e6eee8;border-radius:13px;padding:16px;display:flex;justify-content:space-between;gap:12px}.purchase strong{font-size:16px}.purchase p{font-size:13px;color:#7a9185;margin:4px 0 0}.purchase-actions{display:flex;flex-direction:column;align-items:end;gap:8px}.timeline{padding:0 22px 22px;display:grid;gap:0}.event{display:flex;gap:14px;padding:11px 0;border-top:1px solid #edf2ef}.event:first-child{border-top:0}.event-date{min-width:92px;color:#7c9187;font-size:13px}.event-main{font-size:14px;flex:1}.event-main strong{display:block;color:#31584a}.event-main small{display:block;color:#83978e;margin-top:2px}.event-delta{font-weight:800;color:#196948}.event-delta.negative{color:#a96834}
.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,45%);background:#fff}.auth-art{background:#164d40;color:#fff;padding:clamp(32px,5vw,80px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-art:before,.auth-art:after{content:'';position:absolute;border:1px solid #488675;border-radius:50%;width:600px;height:600px;right:-300px;top:20%;box-shadow:0 0 0 70px #1d5748,0 0 0 71px #488675}.auth-art:after{width:280px;height:280px;right:15%;top:-140px;box-shadow:none}.auth-art>*{position:relative;z-index:1}.auth-art .brand{padding:0}.auth-copy{max-width:520px}.auth-copy .small-cap{font-size:13px;color:#b8dcca;font-weight:800;letter-spacing:.08em}.auth-copy h1{font-size:clamp(34px,4vw,54px);line-height:1.25;letter-spacing:-.07em;margin:16px 0 18px}.auth-copy p{color:#c0dace;font-size:16px}.auth-art-foot{font-size:13px;color:#a9cdbd}.auth-content{display:grid;place-items:center;padding:40px 24px}.auth-box{width:min(100%,420px)}.auth-box h2{font-size:29px;letter-spacing:-.06em;margin:0 0 8px}.auth-box>p{color:#748b7e;font-size:15px;margin:0 0 32px}.field{display:grid;gap:8px;margin-bottom:17px}.field label{font-size:14px;font-weight:800;color:#355d4c}.field input,.field select,.field textarea{width:100%;border:1px solid #cfdfd5;border-radius:10px;background:#fff;color:#214b3c;padding:11px 13px;min-height:46px}.field textarea{min-height:95px;resize:vertical}.field small{color:#82988c;font-size:12px}.auth-box .btn{width:100%;margin-top:8px;min-height:48px}.auth-note{color:#869b91;font-size:13px;margin-top:24px}.error{background:#fff0ed;color:#a9473c;border:1px solid #f2d1cc;border-radius:10px;padding:10px 12px;font-size:14px;margin-bottom:15px}
.modal-backdrop{position:fixed;inset:0;background:rgba(11,36,27,.5);display:grid;place-items:center;padding:18px;z-index:10}.modal{background:#fff;width:min(100%,510px);max-height:90vh;overflow:auto;border-radius:19px;padding:28px;box-shadow:0 18px 50px #113a2e33}.modal h2{margin:0 0 5px;font-size:23px;letter-spacing:-.04em}.modal-intro{font-size:14px;color:#789084;margin:0 0 22px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.modal-error{margin-top:12px}.check-list{display:flex;flex-wrap:wrap;gap:8px}.check-chip{border:1px solid #d8e5dc;border-radius:9px;padding:7px 10px;font-size:14px}.check-chip input{margin-right:5px}.invite-box{background:#f3f8f4;border:1px dashed #bdd9c4;border-radius:10px;padding:13px;word-break:break-all;font-size:13px;color:#245a40;margin-top:14px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#173f34;color:#fff;border-radius:10px;padding:10px 16px;box-shadow:0 8px 25px #173f3440;z-index:30;display:none;max-width:90vw;text-align:center}#toast.show{display:block}
@media(max-width:1000px){.metric-grid{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr}.app-shell{grid-template-columns:190px minmax(0,1fr)}.main{padding:25px 24px 48px}.auth-page{grid-template-columns:1fr 1fr}.auth-art{padding:32px}}
@media(max-width:720px){.app-shell{display:block}.sidebar{padding:14px 16px;gap:14px}.brand{padding:0}.nav{display:flex;overflow:auto;gap:6px}.nav button{white-space:nowrap;padding:8px 11px;font-size:13px}.sidebar-foot{display:none}.main{padding:20px 16px 40px}.content{margin-top:25px}.page-head{align-items:start;flex-direction:column}.head-actions{width:100%}.head-actions .btn{flex:1}.metric-grid{gap:10px}.metric{padding:16px;min-height:95px}.metric-value{font-size:24px}.hero{padding:22px}.hero h2{font-size:18px}.hero-number{font-size:36px!important}.topbar{align-items:start}.top-user{gap:6px}.top-user span.name{display:none}.attendance-row{align-items:start;flex-direction:column}.segmented{width:100%;justify-content:space-between}.segmented button{flex:1}.auth-page{display:block}.auth-art{min-height:225px;padding:24px}.auth-copy h1{font-size:27px;margin:8px 0}.auth-copy p,.auth-art-foot{display:none}.auth-content{padding:30px 22px 60px}.purchase{flex-direction:column}.purchase-actions{align-items:start;flex-direction:row}}
