@import url('./gifts.css');
.online-badge{font-size:10px;color:#83947d;white-space:nowrap}.home-cloud{text-align:center;margin-top:22px}.online-status{max-width:480px;margin:auto;padding:8px 24px;background:#fff2cf;font-size:12px;display:flex;align-items:center;gap:10px}.online-status[hidden]{display:none}.online-status button{margin-left:auto;min-height:32px}.online-task-card h2{margin:12px 0 8px;font-size:17px}.online-task-card>.m-spread:last-child{margin-top:15px}.online-task-card>small{display:block;margin-top:8px}.online-task-head{margin:14px 0 22px}.online-task-head h1{margin:16px 0 9px}.online-task-head>strong{display:block;margin-top:14px;font-size:22px;color:#8e733d}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.online-terms{border-block:1px solid var(--line);padding:12px 0;margin:20px 0;font-size:13px;overflow-wrap:anywhere}.online-terms summary{min-height:36px;cursor:pointer;font-weight:600;display:flex;align-items:center;gap:8px}.online-terms summary:after{content:'＋';margin-left:auto;color:var(--muted)}.online-terms[open] summary:after{content:'−'}.online-terms h3{margin:15px 0 7px;font-size:13px}.online-terms p{margin:10px 0;font-size:12px;line-height:1.9}.online-search{display:flex;gap:8px;align-items:center;margin-bottom:20px;padding:10px 12px;background:#edf3e8;border-radius:12px}.online-search input{flex:1;width:100%;border:0;background:transparent;padding:7px}.online-search button{min-height:32px}.online-menu{display:flex;gap:14px;align-items:center;width:100%;text-align:left;padding:17px 4px;border-bottom:1px solid var(--line)}.online-menu>span{flex:1}.online-menu strong,.online-menu small{display:block}.online-menu strong{font-size:14px;font-weight:500}.online-profile-hero{text-align:center;margin-bottom:24px}.online-profile-hero .profile-character{--character-width:140px;width:var(--character-width);height:calc(var(--character-width)*4/3);margin:0 auto;aspect-ratio:3/4}.online-profile-hero p{margin:12px auto;font-size:12px;color:var(--muted);max-width:280px}.online-days{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 24px}.online-days label{display:flex;align-items:center;gap:5px;min-height:44px}.online-messages{max-height:420px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:16px;padding:14px;margin:14px 0;scrollbar-width:thin}.online-message{max-width:91%;margin:0 0 16px}.online-message.mine{margin-left:auto}.online-message small{display:block;font-size:10px;line-height:1.6;margin:0 0 4px}.online-message p{padding:10px 12px;border-radius:12px;background:#edf0e7;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}.online-message.mine p{background:#e1ebd9}.online-message.mine small{text-align:right}.online-chat>h2{font-size:17px}.online-chat form textarea{min-height:80px}.online-chat form>button{min-width:100px}.online-chat>small{display:block;margin-top:10px;line-height:1.8}.online-file{display:flex;align-items:center;gap:10px;padding:12px;background:#edf3e8;border-radius:10px;margin:8px 0;text-decoration:none;overflow-wrap:anywhere}.online-file>span{flex:1;min-width:0;font-size:12px}.online-file small{display:block}.online-file button{min-height:32px;flex-shrink:0}.upload-button{display:flex;position:relative;align-items:center;justify-content:center;gap:9px;min-height:48px;border:1px dashed #bdcbb1;border-radius:12px;color:var(--green);cursor:pointer}.upload-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.online-money{display:flex;flex-direction:column;gap:8px;padding:28px 22px;border-radius:16px;background:#edf3e8;margin-bottom:20px}.online-money strong{font-size:32px;font-weight:500}.online-money span{font-size:12px;color:var(--muted)}.online-auth{text-align:center;padding:70px 20px}.online-auth img{width:160px;margin-bottom:34px}.online-auth h1{margin-bottom:12px}.online-auth p{margin-bottom:28px;color:var(--muted);font-size:13px}.online-auth a.btn{display:flex;justify-content:center;text-decoration:none}.online-notice{border-left:3px solid #b69d5d;padding:12px;font-size:12px;background:#f9f2e1;margin-bottom:20px}.m-tabs{display:flex;gap:8px;margin:15px 0 22px}.m-tabs button{min-height:44px;padding:8px 14px;border-radius:12px;color:var(--muted)}.m-tabs button.active{background:#e4ecd9;color:var(--green)}.m-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;text-align:center;margin:0 0 25px}.m-stat-grid strong,.m-stat-grid span{display:block}.m-stat-grid strong{font-size:24px}.m-stat-grid span{font-size:11px;color:var(--muted)}.m-section>h2{margin:18px 0 12px}.m-card details summary{min-height:38px;display:flex;align-items:center;font-size:12px;color:var(--muted);cursor:pointer}.m-card details p{margin:6px 0 10px}.npc-greeting{display:flex;align-items:center;gap:20px;margin:20px 0 30px}.npc-greeting>div{flex:1}.npc-greeting h2{margin:5px 0 10px}.npc-greeting p{font-size:13px;line-height:1.9}.npc-portrait{display:block;position:relative;width:95px;height:120px;flex-shrink:0}.npc-portrait .npc-sprite{width:95px;height:120px}.online-task-head,.m-card,.m-note{overflow-wrap:anywhere}.online-auth .m-caption{font-size:11px;margin-top:18px}form[aria-busy=true]{opacity:.75}form[aria-busy=true] button{pointer-events:none}.btn{min-height:44px}.m-input{font-size:16px}.m-input::placeholder{font-size:13px}.m-field textarea{font-size:14px}.online-pending{font-size:12px;color:#786a40;line-height:1.8}.reward-character-stage .reward-character{--character-width:150px;margin:auto;width:var(--character-width);height:calc(var(--character-width)*4/3);aspect-ratio:3/4}.online-message p a{word-break:break-all}@media(max-width:359px){.page{padding-left:16px;padding-right:16px}.topbar{padding-left:16px;padding-right:16px}.online-badge{font-size:9px}.online-days{gap:8px}.npc-greeting{gap:12px}.npc-portrait{width:75px}.m-tabs button{padding:8px 10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.m-field[hidden]{display:none!important}
.team-start-card{padding:18px;margin:22px 0;border:1px solid var(--line);border-radius:16px;background:#f1f4eb}.team-start-card p{font-size:12px;line-height:1.8;margin:8px 0 14px}.team-heading{display:flex;gap:12px;align-items:flex-start;margin:20px 0}.team-heading>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e6eddc;color:var(--green);flex-shrink:0}.team-heading h2{font-size:18px;margin:0 0 7px}.team-heading p{font-size:12px;line-height:1.8;color:var(--muted)}.team-roster{display:grid;gap:12px;margin-bottom:18px}.team-part{border:1px solid var(--line);border-radius:16px;padding:15px;background:#fff}.team-part.is-mine{border-color:#b9c8a7;background:#f5f7ef}.team-person{display:flex;gap:10px;align-items:center}.team-person>.map-character,.team-person>.team-mini{--map-character-size:42px;width:42px;height:42px;flex:0 0 42px;margin:0;aspect-ratio:1}.team-person>div:not(.map-character):not(.team-mini){flex:1;min-width:0}.team-person strong{font-size:13px}.team-person small{display:block;font-size:10px;margin-top:5px;color:var(--muted)}.team-person>span:last-child{text-align:right;font-size:14px;color:#8e733d;flex-shrink:0}.team-part h3{font-size:14px;margin:14px 0 6px}.team-part details summary{font-size:12px;min-height:36px;display:flex;align-items:center;cursor:pointer;color:var(--muted)}.team-part p{font-size:12px;line-height:1.8;margin:8px 0}.team-part .m-actions{gap:14px;margin:6px 0 0;flex-wrap:wrap}.team-deliver{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.team-deliver h2{font-size:18px;margin:8px 0 18px}.team-panel>.m-actions{margin:16px 0;flex-wrap:wrap;gap:10px}.team-invitation h1{margin:12px 0 16px}.team-invitation .m-card h2{font-size:18px;margin:16px 0 10px}.team-invitation .m-card p{font-size:13px;line-height:1.9;margin:12px 0}.team-share{display:block;margin-top:18px;color:#8e733d;font-size:24px}.team-share small{font-size:11px;font-weight:400}.team-revise-list{border:0;padding:0;margin:15px 0 20px}.team-revise-list legend{font-size:13px;margin-bottom:10px}.team-revise-list label{display:flex;gap:12px;padding:12px 0;min-height:48px;align-items:center}.team-revise-list label strong{font-size:13px}.team-revise-list small{display:block;font-size:11px;margin-top:5px;color:var(--muted)}.team-revise-list input{width:18px;height:18px;flex-shrink:0}.nav-pending{display:inline-grid;place-items:center;background:#b78549;color:white;border-radius:8px;font-size:9px;min-width:14px;height:14px;margin-left:3px}.team-panel .m-note{line-height:1.9}.team-panel .btn[disabled]{opacity:.45;cursor:default}

.change-menu,.change-record{margin:22px 0;padding:15px;border:1px solid var(--line);border-radius:14px;background:#f8f9f5}.change-menu summary,.change-record summary{font-size:13px;min-height:28px;cursor:pointer;line-height:1.8}.change-options{display:grid;gap:10px;margin-top:14px}.change-pending{border:1px solid #dac6a5;background:#fbf6ed;border-radius:16px;padding:18px;margin:0 0 24px}.change-pending h2{margin:10px 0 16px;font-size:19px}.change-pending p,.change-record p,.change-outcome p{font-size:13px;line-height:1.9;margin:10px 0}.change-pending .m-actions{flex-wrap:wrap;gap:10px;margin:16px 0}.change-pending>.btn,.change-pending>.quiet-link,.change-record>.btn{margin-top:12px;width:100%}.change-votes{list-style:none;margin:14px 0;padding:0;border-top:1px solid #e8dfcf}.change-votes li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:11px 0;border-bottom:1px solid #e8dfcf;font-size:12px}.change-votes small{color:var(--muted)}.change-votes p{flex-basis:100%;margin:4px 0 0;font-size:12px}.change-amounts{padding:12px 0;margin:10px 0}.change-amounts p{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:1.8;margin:8px 0}.change-amounts strong{white-space:nowrap;color:#8e733d}.change-amounts small{font-size:11px;color:var(--muted)}.change-outcome{padding:18px;background:#eef1e8;border-radius:14px;margin:20px 0}.change-outcome h2{font-size:19px;margin-bottom:12px}.team-handoff{padding:10px;border-left:3px solid #bac7aa;background:#f0f3eb;margin-top:12px}.team-handoff small{font-size:11px;line-height:1.8}

/* Account pages only: keep the approved home and town unchanged. */
.auth-entry{max-width:440px;margin:auto;padding:48px 24px 40px;text-align:left}.auth-entry>img{display:block;width:145px;margin:0 auto 36px}.auth-entry h1{font-size:25px;line-height:1.45}.auth-entry>p{line-height:1.8;margin-bottom:24px}.auth-entry form{margin:26px 0 8px}.auth-entry footer{text-align:center;line-height:1.9;margin-top:34px}.auth-entry .m-field{margin-bottom:18px}.auth-links{display:flex;justify-content:space-between;gap:16px;margin-top:12px}.auth-password{position:relative}.auth-password .m-input{padding-right:66px}.auth-password>button{position:absolute;right:8px;bottom:3px;min-width:48px;min-height:44px;z-index:1;font-size:12px}.auth-entry .auth-password-hint{margin:-8px 0 18px;font-size:11px}.auth-error{background:#fff0e9;border-radius:12px;padding:14px;color:#914b32!important;font-size:13px;line-height:1.7;margin:18px 0!important}.auth-error[hidden]{display:none}.auth-secret{overflow-wrap:anywhere;word-break:break-all;font-size:15px;line-height:1.7;resize:vertical}.auth-key{display:block;color:var(--green);margin-bottom:16px}.auth-session,.auth-invite-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.auth-session span,.auth-invite-row span{flex:1;min-width:0}.auth-session strong,.auth-session small,.auth-invite-row strong,.auth-invite-row small{display:block;overflow-wrap:anywhere}.auth-session strong,.auth-invite-row strong{font-size:13px;font-weight:500}.auth-session small,.auth-invite-row small{margin-top:5px;line-height:1.6}.auth-invite-row button{flex-shrink:0;min-height:44px}.auth-entry>button{margin-top:10px}.auth-entry :focus-visible{outline:2px solid var(--green);outline-offset:3px}@media(max-width:360px){.auth-entry{padding:28px 20px}.auth-entry h1{font-size:23px}}

/* v0.13 — native card links, proportional characters, and compact work plans. */
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.modal-head h2{margin:0;font-size:20px}.modal-head>.icon-btn{flex:0 0 44px}#modal-feedback[hidden]{display:none}
.task-card-link{display:block;text-decoration:none;color:inherit;cursor:pointer;-webkit-tap-highlight-color:rgba(59,91,76,.1);transition:border-color .15s,background .15s}
.task-card-link:hover{border-color:#8caa96;background:#f5f8f2}.task-card-link:focus-visible{outline:3px solid #547d65;outline-offset:4px}.task-card-open{display:inline-flex;align-items:center;gap:6px}
.work-plan{margin:22px 0;padding:20px 0;border-top:1px solid #dce3d8;border-bottom:1px solid #dce3d8}.work-plan h2{display:flex;align-items:center;gap:8px;margin:0;font-size:18px}
.work-step-list{list-style:none;margin:18px 0 0;padding:0}.work-step{display:flex;gap:12px;padding:0 0 22px;position:relative}.work-step:last-child{padding-bottom:0}.work-step:not(:last-child):before{content:'';position:absolute;left:15px;top:36px;bottom:4px;width:1px;background:#d4ded2}.step-number{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border:1px solid #d4ded2;border-radius:50%;font-size:13px}.work-step>div{flex:1;min-width:0}.work-step .m-spread{align-items:flex-start;gap:10px}.work-step .m-spread small{flex-shrink:0}.work-step p{margin:5px 0;font-size:13px;color:#707b6e}.work-step small{font-size:12px;color:#707b6e}.work-step button{display:flex;margin:10px 0 0;min-height:44px}.is-done .step-number{background:#54745f;border-color:#54745f;color:white}.is-doing .step-number{border-color:#ad8542;color:#886222;background:#fbf3df}.step-wait{padding:7px 10px;background:#f1f3eb;border-radius:6px}.plan-editor fieldset{border:1px solid #dce3d8;border-radius:14px;padding:16px;margin:18px 0}.plan-editor legend{padding:0 6px;font-weight:600}.plan-editor input:disabled,.plan-editor select:disabled{opacity:.7;color:#566052;-webkit-text-fill-color:#566052}.step-tools{display:flex;gap:12px;justify-content:flex-end;margin-top:10px}.step-tools button{min-width:60px;min-height:44px}.step-dependencies summary{padding:12px 0}.step-dependencies .m-check{font-size:14px;min-height:44px}.plan-editor .m-field{margin-bottom:14px}.plan-editor+button{min-height:48px}
.checkout-total{display:flex;align-items:center;text-align:center;flex-direction:column;gap:10px;padding:16px 0}.checkout-total strong{font-size:36px}.checkout-total small,.checkout-total span{color:#707b6e}.payment-channels{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.payment-channel{min-height:64px;padding:12px;border:1px solid #dce3d8;border-radius:12px;background:#fafbf7;display:flex;align-items:center;gap:8px;color:inherit;font:inherit;flex-wrap:wrap}.payment-channel small{width:100%;text-align:left;color:#707b6e;font-size:12px}.payment-record summary{display:flex;align-items:center;gap:8px}.payment-record summary small{margin-left:auto;color:#707b6e}.payment-record .m-caption{overflow-wrap:anywhere}.payment-totals{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:16px 0}.payment-totals span{font-size:12px;color:#707b6e}.payment-totals strong{display:block;font-size:20px;color:#253f31;margin-top:4px}.payment-events{list-style:none;padding:0}.payment-events li{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e1e7dd;padding:14px 0;font-size:13px}.payment-events small{display:block;margin-top:4px;color:#707b6e}.payment-events b{white-space:nowrap}
@media(max-width:380px){.plan-editor fieldset{padding:12px}.step-tools{gap:6px}.work-step{gap:8px}.work-step .m-spread{flex-wrap:wrap}.payment-channel{font-size:13px}}

/* Keep translated filters inside narrow screens without changing normal rows. */
.m-tabs{flex-wrap:wrap}.m-tabs>button{min-width:0}

/* v0.26: scoped additions; existing page and NPC layouts retained. */
.work-estimate-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line,#e2e6dc)}
.work-estimate-entry small{display:block;margin-top:5px;color:var(--muted,#71796d)}
.work-estimate-entry svg,.proof-checked svg{vertical-align:middle}
.work-estimate-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:18px 0}
.work-estimate-numbers small,.work-estimate-numbers strong{display:block;overflow-wrap:anywhere}
.work-estimate-numbers small{font-size:12px;color:var(--muted,#71796d)}
.work-estimate-numbers strong{font-size:20px;margin-top:6px}
[data-form="proof-estimate"] [data-estimate-result]{position:sticky;top:0;z-index:2;background:var(--paper,#f9faf6);border-bottom:1px solid var(--line,#e2e6dc)}
.work-estimate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.work-estimate-fields input{min-width:0;width:100%}
.work-proof-facts dt{font-size:12px;color:var(--muted,#71796d);margin-top:14px}
.work-proof-facts dd{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.work-proof-summary{padding:0 0 14px;margin-bottom:12px;border-bottom:1px solid var(--line,#e2e6dc)}
.work-proof-contribution{margin:8px 0}
.work-proof-summary .quiet-link{padding:12px 0}
.work-proof-public{padding:12px 0;border-bottom:1px solid var(--line,#e2e6dc)}
.work-proof-public p{margin:6px 0}
