:root{color:#24322f;background:#f7f4ee;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#ffffffd1,#f7f4eeeb),#f7f4ee}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}h1,h2,h3,p{margin:0}.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px clamp(16px,4vw,44px);border-bottom:1px solid rgba(62,83,76,.14);background:#f7f4eee6;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.brand-button{display:inline-flex;align-items:center;gap:10px;min-width:0;border:0;color:inherit;background:transparent;text-align:left}.brand-mark{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border-radius:8px;background:#2f7d59;color:#fff;font-size:.8rem;font-weight:800}.brand-name,.brand-subtitle{display:block}.brand-name{font-weight:800}.brand-subtitle{color:#697771;font-size:.78rem}.top-actions{display:flex;align-items:center;gap:8px}.main-content{width:min(1120px,100%);margin:0 auto;padding:28px clamp(16px,4vw,44px) 56px}.page-stack,.detail-page,.form-page,.settings-page{display:grid;gap:22px}.hero-band,.project-title-band{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:180px;padding:clamp(24px,5vw,42px);border-radius:8px;background:linear-gradient(135deg,#2f7d5921,#de6f501f),#fffdf8;box-shadow:0 20px 70px #1f332d14}.hero-band h1,.project-title-band h1,.form-header h1{max-width:720px;color:#17211f;font-size:clamp(2rem,4vw,4rem);line-height:1.04;letter-spacing:0}.project-title-band p{max-width:680px;margin-top:12px;color:#52615c;font-size:1.04rem}.eyebrow{margin-bottom:8px;color:#2f7d59;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.section-block{display:grid;gap:16px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}.section-heading h2{color:#1f2d29;font-size:1.35rem}.section-heading p{color:#6f7e78;font-size:.94rem}.primary-button,.secondary-button,.ghost-button,.danger-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:8px;border:1px solid transparent;padding:0 16px;font-weight:800;transition:transform .14s ease,box-shadow .14s ease,background .14s ease}.primary-button{background:#2f7d59;color:#fff;box-shadow:0 12px 26px #2f7d5938}.primary-button.large{min-height:50px}.secondary-button{border-color:#2f7d593d;background:#fff;color:#2f7d59}.ghost-button{border-color:#3e534c1f;background:#ffffffa3;color:#40504a}.danger-button{border-color:#c4454533;background:#fff4f1;color:#b43d34}.icon-button{width:42px;padding:0;background:#f6f1e8;color:#52615c}.primary-button:hover,.secondary-button:hover,.ghost-button:hover,.danger-button:hover,.icon-button:hover,.project-card:hover,.checkin-row:hover,.calendar-cell:hover{transform:translateY(-1px)}.count-pill,.genre-pill,.status-badge{display:inline-flex;align-items:center;min-height:30px;border-radius:999px;padding:0 10px;font-size:.78rem;font-weight:800;white-space:nowrap}.count-pill,.genre-pill{background:#e7f2ed;color:#2f7d59}.checkin-list{display:grid;gap:10px}.checkin-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;border:1px solid rgba(62,83,76,.12);border-radius:8px;padding:14px;background:#fffdf8;color:inherit;text-align:left}.checkin-main{display:grid;min-width:0}.checkin-main span{color:#6f7e78;font-size:.82rem}.checkin-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.project-card{display:grid;gap:14px;min-height:250px;border:1px solid rgba(62,83,76,.12);border-radius:8px;padding:18px;background:#fffdf8;color:inherit;text-align:left;box-shadow:0 12px 40px #1f332d0f}.project-card-header,.project-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.project-card h3{color:#1f2d29;font-size:1.18rem}.project-card p{display:-webkit-box;min-height:48px;overflow:hidden;color:#62716b;-webkit-box-orient:vertical;-webkit-line-clamp:2}.rate-text{color:#de6f50;font-weight:900}.project-meta{color:#6f7e78;font-size:.85rem}.mini-calendar{display:grid;grid-template-columns:repeat(auto-fill,minmax(12px,1fr));gap:5px;min-height:46px}.mini-cell{aspect-ratio:1;min-width:12px;border-radius:3px}.status-dot{display:inline-block;width:12px;height:12px;flex:0 0 auto;border-radius:50%}.status-none{background:#e7e1d6;color:#5f6d67}.status-done{background:#2f7d59;color:#fff}.status-minimum{background:#83b874;color:#173a28}.status-missed{background:#de6f50;color:#fff}.status-skip{background:#8aa4b8;color:#112735}.status-badge.status-none{background:#eee8de}.status-badge.status-done,.status-badge.status-missed{color:#fff}.status-badge.status-minimum,.status-badge.status-skip{color:#173a28}.empty-state,.loading-state{display:grid;justify-items:center;gap:14px;padding:42px 18px;border:1px dashed rgba(62,83,76,.2);border-radius:8px;background:#fffdf8b3;color:#52615c;text-align:center}.empty-state.compact{padding:24px 18px}.empty-state h1,.empty-state h3{color:#1f2d29}.empty-actions,.form-actions,.detail-header{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.form-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px;border:1px solid rgba(62,83,76,.12);border-radius:8px;background:#fffdf8}.field{display:grid;gap:9px;min-width:0;border:0;margin:0;padding:0}.field.span-2{grid-column:span 2}.field span,.field legend{color:#33443e;font-weight:800}.field input,.field textarea{width:100%;min-height:44px;border:1px solid rgba(62,83,76,.18);border-radius:8px;padding:11px 12px;background:#fff;color:#24322f;outline:none}.field textarea{resize:vertical}.field input:focus,.field textarea:focus{border-color:#2f7d59;box-shadow:0 0 0 3px #2f7d5921}.inline-notice{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-radius:8px;padding:12px 14px;background:#f0f6f2;color:#52615c;font-size:.9rem}.text-button{border:0;padding:0;background:transparent;color:#2f7d59;font-weight:800;text-decoration:underline}.segmented-grid,.segmented-row{display:flex;flex-wrap:wrap;gap:8px}.segment-option{display:inline-flex}.segment-option input,.status-option input{position:absolute;opacity:0;pointer-events:none}.segment-option span{display:inline-flex;align-items:center;min-height:40px;border:1px solid rgba(62,83,76,.14);border-radius:8px;padding:0 12px;background:#fff;color:#40504a;font-weight:800}.segment-option input:checked+span{border-color:#2f7d59;background:#e7f2ed;color:#2f7d59}.score-ring{--score-rate: 0%;display:grid;width:132px;height:132px;flex:0 0 auto;place-items:center;border-radius:50%;background:radial-gradient(circle at center,#fffdf8 58%,transparent 59%),conic-gradient(#2f7d59 0 var(--score-rate),#e7e1d6 var(--score-rate) 100%);color:#1f2d29;text-align:center}.score-ring.is-empty{background:radial-gradient(circle at center,#fffdf8 58%,transparent 59%),conic-gradient(#e7e1d6 0,#e7e1d6)}.score-ring strong,.score-ring span{grid-area:1 / 1}.score-ring strong{align-self:center;margin-bottom:18px;font-size:1.55rem}.score-ring span{align-self:center;margin-top:34px;color:#697771;font-size:.78rem;font-weight:800}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(142px,1fr));gap:10px}.stat-item{display:grid;gap:6px;min-height:92px;border:1px solid rgba(62,83,76,.12);border-radius:8px;padding:14px;background:#fffdf8}.stat-item span{color:#6f7e78;font-size:.82rem;font-weight:800}.stat-item strong{color:#1f2d29;font-size:1.5rem}.calendar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:8px}.calendar-cell{position:relative;display:grid;aspect-ratio:1;min-height:74px;border:1px solid rgba(62,83,76,.14);border-radius:8px;padding:8px;color:#23332d;text-align:left}.calendar-cell.is-today{outline:3px solid rgba(47,125,89,.25)}.cell-index{color:currentColor;font-size:1rem;font-weight:900}.cell-date{align-self:end;color:currentColor;font-size:.8rem;font-weight:800;opacity:.78}.memo-mark{position:absolute;top:6px;right:8px;font-size:1.4rem;line-height:1}.legend-row{display:flex;flex-wrap:wrap;gap:12px;color:#607069;font-size:.86rem}.legend-row span{display:inline-flex;align-items:center;gap:6px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:18px;background:#1f2d2957}.modal-panel{display:grid;gap:18px;width:min(560px,100%);max-height:min(760px,90vh);overflow:auto;border-radius:8px;padding:20px;background:#fffdf8;box-shadow:0 30px 90px #121c193d}.modal-header{display:flex;align-items:start;justify-content:space-between;gap:16px}.status-picker{display:grid;gap:8px}.status-option{display:grid;grid-template-columns:auto minmax(76px,auto) 1fr;align-items:center;gap:10px;min-height:52px;border:1px solid rgba(62,83,76,.14);border-radius:8px;padding:10px 12px;background:#fff}.status-option:has(input:checked){border-color:#2f7d59;background:#f0f8f4}.status-option small{color:#697771}.settings-list{display:grid;gap:10px}.settings-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;border:1px solid rgba(62,83,76,.12);border-radius:8px;padding:14px;background:#fffdf8}.settings-row-main{display:grid;gap:7px;min-width:0}.settings-row-main input{width:100%;min-height:42px;border:1px solid rgba(62,83,76,.18);border-radius:8px;padding:9px 11px;background:#fff;color:#24322f;font-weight:800;outline:none}.settings-row-main input:focus{border-color:#2f7d59;box-shadow:0 0 0 3px #2f7d5921}.settings-meta{display:flex;gap:10px;flex-wrap:wrap;color:#697771;font-size:.82rem}.settings-add{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;border:1px solid rgba(62,83,76,.12);border-radius:8px;padding:16px;background:#fffdf8}@media(max-width:760px){.topbar{align-items:flex-start;gap:8px;padding:12px 14px}.brand-button>span:last-child,.top-actions .ghost-button:first-child{display:none}.primary-button,.secondary-button,.ghost-button,.danger-button{padding:0 12px}.main-content{padding-top:18px}.hero-band,.project-title-band,.form-header{align-items:stretch;flex-direction:column}.hero-band h1,.project-title-band h1,.form-header h1{font-size:2.2rem}.project-title-band{min-height:auto}.score-ring{width:108px;height:108px}.form-grid{grid-template-columns:1fr;padding:16px}.field.span-2{grid-column:auto}.checkin-row{grid-template-columns:auto minmax(0,1fr)}.checkin-row .status-badge{grid-column:2;width:max-content}.calendar-grid{grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:6px}.calendar-cell{min-height:58px;padding:7px}.status-option{grid-template-columns:auto 1fr}.status-option small{grid-column:2}.settings-row{grid-template-columns:1fr}.settings-row>.secondary-button,.settings-row>.danger-button{width:max-content}.settings-add{grid-template-columns:1fr}}
