:root{--bg:#fbf7f0;--surface:#fff;--text:#2b2118;--muted:#6b5d50;--accent:#c2600f;--line:#d9c7b0;--chip:#e8dfd2;--error:#b3261e;color:var(--text);background:var(--bg);font-family:Zen Maru Gothic,system-ui,Hiragino Sans,Noto Sans JP,sans-serif}*{box-sizing:border-box}body{margin:0}.app{flex-direction:column;max-width:480px;height:100dvh;margin:0 auto;display:flex;overflow-x:hidden}.content{flex-direction:column;flex:1;min-height:0;padding:16px;display:flex;overflow-y:auto}.placeholder{color:var(--muted)}.tabbar{background:var(--surface);padding-bottom:env(safe-area-inset-bottom);border-top:1px solid #e8dfd2;grid-template-columns:repeat(4,1fr);display:grid;position:sticky;bottom:0}.tab{min-height:64px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:11px;text-decoration:none;display:flex}.tab.active{color:#b4560b;font-weight:700}.login{text-align:center;padding-top:48px}.login .primary{padding:0 32px}button.primary{background:var(--accent);color:#fff;border:none;border-radius:28px;min-height:56px;font-family:inherit;font-size:17px;font-weight:700}button.primary:disabled{opacity:.6}button.secondary{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text);border-radius:22px;padding:0 20px;font-family:inherit;font-size:15px}.signup{flex-direction:column;gap:14px;padding-top:8px;display:flex}.signup h1{margin:0;font-size:22px;font-weight:900}.signup .note{color:var(--muted);margin:4px 0 0;font-size:13px}.signup .note.tight{margin-top:-8px;font-size:12px}.signup .primary{margin-top:8px}.field{border:none;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.field label,.field legend{padding:0;font-size:13px;font-weight:700}.field legend{margin-bottom:6px}.row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.field input,.field textarea,.field select{border:1px solid var(--line);background:var(--surface);width:100%;min-width:0;height:44px;color:var(--text);border-radius:10px;padding:0 12px;font-family:inherit;font-size:16px}.field textarea{resize:none;height:88px;padding:10px 12px}.with-unit{align-items:center;gap:6px;display:flex}.with-unit span{font-size:15px}.icon-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.icon-choice{border:1px solid var(--line);background:var(--chip);border-radius:28px;justify-content:center;align-items:center;height:56px;padding:0;display:flex}.icon-choice img{width:44px;height:44px}.icon-choice.selected{border:3px solid var(--accent);background:#fff0e0}.error{color:var(--error);margin:0;font-size:14px}.home{flex-direction:column;gap:12px;display:flex}.home-error{text-align:center;padding-top:48px}.home-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.status-chip{color:#8a4108;background:#fff0e0;border-radius:22px;align-items:center;gap:6px;min-height:44px;padding:0 14px;font-size:15px;font-weight:700;text-decoration:none;display:inline-flex}.status-chip .dot{background:var(--accent);border-radius:4px;width:8px;height:8px}.status-chip.chirami{color:#6b4e12;background:#f3ead8}.status-chip.chirami .dot{background:#b8860b}.status-chip.misogi{color:#2f4b5e;background:#e3ecf2}.status-chip.misogi .dot{background:#4a7391}.me{min-width:0;color:var(--muted);align-items:center;gap:8px;font-size:14px;display:flex}.me span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.me img{flex:none}.days{align-items:center;gap:8px;display:flex}.days-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.days-caption{color:var(--muted);font-size:15px;font-weight:500}.days-number{align-items:baseline;gap:4px;display:flex}.days-big{font-size:88px;font-weight:900;line-height:1}.days-unit{font-size:22px;font-weight:700}.bucket-chip{background:var(--text);color:var(--bg);border-radius:12px;align-self:flex-start;margin-top:6px;padding:4px 10px;font-size:12px;font-weight:500}.days-monk{flex:none;width:128px;height:128px}.card{background:var(--surface);border:1px solid #e8dfd2;border-radius:16px;flex-direction:column;gap:4px;padding:14px 16px;display:flex}.card-caption{color:var(--muted);font-size:13px}.savings-amount{color:#b4560b;font-size:32px;font-weight:700}.everyone{flex-direction:column;gap:10px;display:flex}.everyone h2{margin:0;font-size:14px;font-weight:700}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.stat{background:var(--surface);border:1px solid #e8dfd2;border-radius:12px;justify-content:space-between;align-items:baseline;gap:8px;padding:10px 12px;display:flex}.stat-label{color:var(--muted);font-size:12px}.stat-value{font-size:20px;font-weight:700}.stat-value small{font-size:12px}.stat.same-bucket{color:#8a4108;background:#fff0e0;border-color:#f2c9a0}.stat.same-bucket .stat-label{color:#8a4108;font-size:13px;font-weight:700}.stat.same-bucket .stat-value{font-size:22px}.advice{border-style:dashed;border-color:var(--line);gap:8px}.advice-from{color:var(--muted);font-size:12px;font-weight:700}.advice-body{margin:0;font-size:15px;line-height:1.6}.advice-rate{justify-content:flex-end;gap:8px;display:flex}.advice-rate button{background:var(--bg);width:44px;height:44px;color:var(--text);border:1px solid #e8dfd2;border-radius:22px;justify-content:center;align-items:center;display:flex}.advice-rate button[aria-pressed=true]{border:2px solid var(--accent);color:#8a4108;background:#fff0e0}.status-page{flex-direction:column;flex:1;gap:14px;display:flex}.page-head{align-items:center;gap:4px;display:flex}.page-head h1{margin:0;font-size:18px;font-weight:900}.back{width:44px;height:44px;color:var(--text);justify-content:center;align-items:center;margin-left:-12px;display:flex}.status-now{color:var(--muted);margin:0;font-size:14px}.status-now strong{color:#8a4108}.status-question{margin:0;font-size:15px;font-weight:700;line-height:1.6}.status-options{flex-direction:column;gap:14px;display:flex}.status-option{background:var(--surface);color:var(--text);text-align:left;border:1px solid #e8dfd2;border-radius:16px;flex-direction:column;align-items:flex-start;gap:4px;padding:16px;font-family:inherit;display:flex}.status-option:disabled{opacity:.6}.status-option.selected{border:3px solid var(--accent);background:#fff0e0;padding:14px}.status-option.misogi.selected{background:#f4f7f9;border-color:#5f7f96}.option-title{font-size:17px;font-weight:700}.option-title small{color:var(--muted);margin-left:4px;font-size:12px;font-weight:500}.option-text{color:var(--muted);font-size:13px;line-height:1.6}.option-note{color:#8a4108;font-size:12px;line-height:1.6}.misogi-warning{background:#fff4e5;border:1px solid #f2c9a0;border-radius:14px;gap:10px;padding:14px;font-size:13px;line-height:1.7;display:flex}.misogi-warning svg{flex:none;margin-top:2px}.misogi-warning ul{margin:6px 0;padding-left:1.2em}.misogi-warning .muted{color:var(--muted)}.status-page .primary{margin-top:auto}button.primary.misogi{background:#3d5a70}.misogi-screen{color:#1f2a33;background:#eef3f6;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:28px;margin:-16px;padding:32px 28px;display:flex}.misogi-label{color:#3d5a70;letter-spacing:.1em;font-size:14px;font-weight:700}.misogi-message{text-align:center;flex-direction:column;align-items:center;margin:0;font-size:22px;font-weight:700;line-height:1.7;display:flex}.misogi-screen .primary{width:100%}.dialog-backdrop{z-index:10;background:#2b211880;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.dialog{background:var(--bg);border-radius:20px;flex-direction:column;gap:12px;width:100%;max-width:360px;padding:20px;display:flex}.dialog h2{margin:0;font-size:18px;font-weight:900}.dialog p{margin:0;font-size:14px;line-height:1.7}.dialog-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:4px;display:grid}.dialog-actions .primary{min-height:48px;font-size:15px}.posts-page{flex-direction:column;flex:1;gap:14px;min-height:0;display:flex}.post-scroll{flex-direction:column;flex:1;gap:12px;min-height:0;margin:0 -16px -16px;padding:0 16px 16px;display:flex;overflow-y:auto}.posts-page h1,.placer h1{margin:4px 0 0;font-size:22px;font-weight:900}.composer{background:var(--surface);border:1px solid #e8dfd2;border-radius:16px;flex-direction:column;gap:8px;padding:14px;display:flex}.composer label{font-size:13px;font-weight:700}.composer textarea{border:1px solid var(--line);background:var(--bg);width:100%;color:var(--text);font:inherit;resize:none;border-radius:12px;padding:10px 12px;font-size:15px;line-height:1.6}.composer-foot{justify-content:space-between;align-items:center;gap:12px;display:flex}.counter{color:var(--muted);white-space:nowrap;flex:none;font-size:12px}button.primary.small{min-height:40px;padding:0 20px;font-size:15px}.composer-note,.empty{background:var(--chip);color:var(--muted);border-radius:12px;margin:0;padding:12px 14px;font-size:13px}.post-list{flex-direction:column;gap:12px;display:flex}.post{background:var(--surface);border:1px solid #e8dfd2;border-radius:16px;flex-direction:column;gap:10px;padding:14px;display:flex;position:relative}.post-head{align-items:center;gap:10px;padding-right:32px;display:flex}.post-head img,.icon-blank{background:var(--chip);border-radius:50%;flex:none;width:36px;height:36px}.post-who{flex-direction:column;min-width:0;display:flex}.post-name{overflow-wrap:anywhere;font-size:14px;font-weight:700}.post-meta{color:var(--muted);font-size:12px}.post-menu{width:36px;height:36px;color:var(--muted);background:0 0;border:none;place-items:center;display:grid;position:absolute;top:10px;right:6px}.post-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:15px;line-height:1.7}.post-hidden{color:#8a4108;margin:0;font-size:12px}.stamp-area{touch-action:manipulation;background:#f6efe4;border-radius:10px;height:112px;position:relative;overflow:hidden}.placed-stamp{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:56px;height:56px;position:absolute}.stamp-area.faded .placed-stamp{opacity:.35}.stamp-more{color:#fff;background:#2b2118cc;border-radius:10px;padding:2px 8px;font-size:11px;font-weight:700;position:absolute;bottom:6px;right:6px}.post-foot{justify-content:space-between;align-items:center;gap:8px;display:flex}.stamp-button{border:1px solid var(--line);background:var(--surface);min-height:36px;color:var(--accent);font:inherit;border-radius:18px;align-items:center;gap:4px;padding:0 14px;font-size:13px;font-weight:700;display:inline-flex}.cheer-count{color:var(--muted);font-size:12px}button.secondary.more{align-self:center}.sheet-backdrop{align-items:flex-end;padding:0}.sheet{width:100%;max-width:480px;max-height:85dvh;padding:8px 16px calc(20px + env(safe-area-inset-bottom));background:var(--bg);border-radius:24px 24px 0 0;flex-direction:column;gap:10px;display:flex;overflow-y:auto}.sheet-grip{background:var(--line);border-radius:2px;align-self:center;width:40px;height:4px;margin-bottom:4px}.sheet-head{justify-content:space-between;align-items:center;display:flex}.sheet h2{margin:0;font-size:17px;font-weight:900}.sheet h3{color:var(--muted);margin:6px 0 0;font-size:13px}.icon-button{width:40px;height:40px;color:var(--text);background:0 0;border:none;place-items:center;display:grid}.sheet-note{color:var(--muted);margin:0;font-size:13px;line-height:1.7}.sheet-note.small{font-size:11px}.stamp-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.stamp-grid.locked{grid-template-columns:repeat(5,minmax(0,1fr))}.stamp-choice{background:var(--surface);color:var(--text);font:inherit;border:1px solid #e8dfd2;border-radius:12px;flex-direction:column;align-items:center;gap:4px;padding:8px 2px;font-size:11px;line-height:1.3;display:flex}.stamp-choice.special{background:#fff8ec;border-color:#e5b878}.stamp-locked{color:var(--muted);text-align:center;flex-direction:column;align-items:center;gap:4px;font-size:10px;line-height:1.3;display:flex}.silhouette{width:52px;height:52px;position:relative}.silhouette img{filter:brightness(0);opacity:.85}.silhouette span{width:22px;height:22px;color:var(--text);background:#fff;border-radius:50%;place-items:center;margin:auto;font-size:13px;font-weight:900;display:grid;position:absolute;inset:0}.menu-item{min-height:52px;color:var(--text);font:inherit;text-align:left;background:0 0;border:none;border-bottom:1px solid #e8dfd2;font-size:16px}.menu-item.cancel{color:var(--muted);text-align:center;border-bottom:none}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.placer{flex-direction:column;gap:14px;display:flex}.placer-hint{color:#fff;background:#2b2118;border-radius:12px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;line-height:1.5;display:flex}.placer-area{cursor:crosshair;position:relative}.placing{border:2px dashed var(--accent);border-radius:12px;place-items:center;width:72px;height:72px;display:grid;position:absolute}.placing img{-webkit-user-select:none;user-select:none;width:56px;height:56px}.knob-stem{background:var(--accent);width:2px;height:14px;position:absolute;top:-14px;left:50%}.knob{background:var(--accent);color:#fff;touch-action:none;border:none;border-radius:50%;place-items:center;width:32px;height:32px;margin-left:-16px;display:grid;position:absolute;top:-44px;left:50%}.placer-area .stamp-area{overflow:visible}.angle-badge{background:var(--accent);color:#fff;border-radius:10px;padding:2px 8px;font-size:12px;font-weight:700;position:absolute;bottom:6px;left:6px}.placer-note{color:var(--muted);margin:0;font-size:12px;line-height:1.6}.placer-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.toast{left:50%;bottom:calc(80px + env(safe-area-inset-bottom));z-index:20;color:#fff;background:#2b2118eb;border-radius:20px;width:max-content;max-width:calc(100% - 32px);padding:10px 16px;font-size:13px;line-height:1.5;position:fixed;transform:translate(-50%)}.celebration{flex-direction:column;flex:1;align-items:center;gap:16px;padding:32px 8px 0;display:flex}.celebration-label{color:#8a4108;letter-spacing:.1em;font-size:14px;font-weight:700}.celebration-text{text-align:center;flex-direction:column;align-items:center;gap:6px;display:flex}.celebration-text h1{margin:0;font-size:26px;font-weight:900}.celebration-text p{color:var(--muted);margin:0;font-size:14px;line-height:1.7}.cheer-box{background:var(--surface);border:1px solid #e8dfd2;border-radius:18px;flex-direction:column;gap:10px;width:100%;padding:16px;display:flex}.cheer-box label{font-size:15px;font-weight:700;line-height:1.6}.cheer-box p{margin:0;font-size:14px;line-height:1.7}.cheer-box .cheer-note{color:var(--muted);margin-top:-4px;font-size:12px}.cheer-box textarea{background:var(--bg);width:100%;color:var(--text);font:inherit;resize:none;border:1px solid #e8dfd2;border-radius:10px;padding:10px 12px;font-size:14px;line-height:1.6}.cheer-foot{justify-content:space-between;align-items:center;gap:8px;display:flex}.cheer-gift{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.cheer-box.sent{text-align:center;align-items:center}.cheer-box.sent .cheer-gift{color:var(--text);font-size:14px}.celebration-actions{flex-direction:column;gap:4px;width:100%;margin-top:auto;display:flex}.text-button{min-height:44px;color:var(--muted);font:inherit;background:0 0;border:none;font-size:14px}.history{flex-direction:column;flex:1;gap:14px;min-height:0;display:flex}.history h1{margin:4px 0 0;font-size:22px;font-weight:900}.history h2{margin:0;font-size:14px;font-weight:700}.history-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.history-stats .stat-label{font-size:11px}.history-stats .stat-value{font-size:22px}.history-list{background:var(--surface);border:1px solid #e8dfd2;border-radius:16px;flex:0 auto;min-height:0;margin:0;padding:0;list-style:none;overflow-y:auto}.history-row{border-bottom:1px solid #f0e8dc;align-items:center;gap:12px;padding:14px 16px;display:flex}.history-row:last-child{border-bottom:none}.history-row.misogi{background:#f4f7f9}.history-dot{background:var(--accent);border-radius:50%;flex:none;width:10px;height:10px}.history-row.misogi .history-dot{background:#5f7f96}.history-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.history-title{font-size:15px;font-weight:700}.history-sub{color:var(--muted);font-size:12px}.history-row.misogi .history-sub{color:#4f5d68}.history-nums{flex-direction:column;flex:none;align-items:flex-end;gap:2px;display:flex}.history-days{font-size:18px;font-weight:700}.history-row.current .history-days{color:#8a4108}.history-stats .stat{flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:2px;padding:12px 10px}.more,.subpage{flex-direction:column;gap:14px;display:flex}.more h1,.subpage h1{margin:4px 0 0;font-size:22px;font-weight:900}.more-profile{background:var(--surface);border:1px solid #e8dfd2;border-radius:16px;align-items:center;gap:12px;padding:14px 16px;display:flex}.more-profile img{flex:none}.more-profile div{flex-direction:column;gap:2px;min-width:0;display:flex}.more-name{overflow-wrap:anywhere;font-size:16px;font-weight:700}.more-vow{color:var(--muted);overflow-wrap:anywhere;font-size:12px}.menu-group{background:var(--surface);border:1px solid #e8dfd2;border-radius:16px;flex-direction:column;display:flex;overflow:hidden}.menu-group a,.menu-group button{min-height:52px;color:var(--text);font:inherit;text-align:left;background:0 0;border:none;border-bottom:1px solid #f0e8dc;justify-content:space-between;align-items:center;gap:8px;padding:0 16px;font-size:15px;text-decoration:none;display:flex}.menu-group>:last-child{border-bottom:none}.menu-group .danger{color:#b42318}.menu-chevron{color:var(--muted)}button.primary.danger{background:#b42318}.back-link{min-height:36px;color:var(--muted);align-self:flex-start;align-items:center;gap:2px;margin-left:-6px;font-size:14px;text-decoration:none;display:inline-flex}.subpage h1{margin-top:0}.subpage-form{flex-direction:column;gap:14px;display:flex}.subpage-note{color:var(--muted);margin:0;font-size:13px;line-height:1.7}.subpage .primary{margin-top:4px}.reset-list{margin:0;padding-left:1.2em;font-size:14px;line-height:1.8}.mute-list{background:var(--surface);border:1px solid #e8dfd2;border-radius:16px;margin:0;padding:0;list-style:none;overflow:hidden}.mute-list li{border-bottom:1px solid #f0e8dc;align-items:center;gap:12px;padding:10px 16px;display:flex}.mute-list li:last-child{border-bottom:none}.mute-name{overflow-wrap:anywhere;flex:1;min-width:0;font-size:15px;font-weight:700}.mute-list .secondary{min-height:36px;padding:0 14px;font-size:13px}.doc{flex-direction:column;gap:18px;font-size:14px;line-height:1.8;display:flex}.doc section{flex-direction:column;gap:6px;display:flex}.doc h2{margin:0;font-size:16px;font-weight:900}.doc p,.doc ul,.doc dl{margin:0}.doc ul{padding-left:1.2em}.doc dt{font-weight:700}.doc dd{color:var(--muted);margin:0 0 8px}.doc-draft{color:#8a4108;background:#fff4e5;border-radius:10px;padding:8px 12px;font-size:13px}.doc-stamps{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;display:grid;padding:0!important}.doc-stamps li{color:var(--muted);flex-direction:column;align-items:center;gap:2px;font-size:12px;display:flex}.doc-stamps img{filter:brightness(0);opacity:.85}.tab-icon{display:inline-flex;position:relative}.tab-badge{border:2px solid var(--surface);background:var(--error);color:#fff;text-align:center;border-radius:9px;min-width:18px;height:18px;padding:0 5px;font-size:10px;font-weight:700;line-height:14px;position:absolute;top:-6px;left:14px}.login{flex-direction:column;align-items:center;gap:16px;display:flex}.login h1{margin:0}.consent{text-align:left;align-items:flex-start;gap:10px;max-width:320px;font-size:14px;line-height:1.6;display:flex}.consent input{width:22px;height:22px;accent-color:var(--accent);flex:none;margin:0}.consent a{color:#8a4108}.post-icon-button{background:0 0;border:none;border-radius:50%;flex:none;padding:0;line-height:0}.toast-link{color:#ffd9a8;font:inherit;background:0 0;border:none;padding:0;font-weight:700;text-decoration:underline}.person{flex-direction:column;flex:1;gap:16px;min-height:0;display:flex}button.back-link{font:inherit;background:0 0;border:none;padding:0;font-size:14px}.person-head{align-items:center;gap:14px;display:flex}.person-head img{background:var(--chip);border-radius:50%;flex:none}.person-head div{flex-direction:column;gap:4px;min-width:0;display:flex}.person-head h1{overflow-wrap:anywhere;margin:0;font-size:22px;font-weight:900}.person-vow{color:var(--muted);overflow-wrap:anywhere;margin:0;font-size:14px;line-height:1.6}.person-muted{color:#2f4b5e;background:#f4f7f9;border-radius:12px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;line-height:1.6;display:flex}.person-muted span{flex:1}.person-muted .secondary{flex:none;min-height:36px;padding:0 14px;font-size:13px}.person-now{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.person-now .status-chip{min-height:36px;font-size:14px}.person-now .bucket-chip{align-self:center;margin-top:0}.person-day{font-size:15px}.person-day strong{font-size:24px;font-weight:900}.person-section{flex-direction:column;gap:10px;display:flex}.person-section h2{margin:0;font-size:14px;font-weight:700}.person-record{flex:1;min-height:0}.person-mute{min-height:44px;color:var(--muted);font:inherit;background:0 0;border:none;align-self:center;padding:0 12px;font-size:13px;text-decoration:underline}.composer-open{color:#8a4108;min-height:48px;font:inherit;background:#fff8ec;border:1.5px dashed #e5b878;border-radius:16px;justify-content:center;align-items:center;gap:6px;font-size:15px;font-weight:700;display:flex}.composer-foot .counter{margin-right:auto}.composer-cancel{min-height:40px;color:var(--muted);font:inherit;background:0 0;border:none;padding:0 8px;font-size:14px}
