*{box-sizing:border-box}html,body{margin:0;background:#f5f6f7;color:#171b1f;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}body{display:flex;justify-content:center}#app{width:100%;max-width:520px;min-height:100vh;background:#fff;position:relative;padding-bottom:82px;box-shadow:0 0 30px rgba(0,0,0,.05)}.topbar{height:86px;padding:16px 18px 10px;display:grid;grid-template-columns:34px 1fr 34px;align-items:center;position:sticky;top:0;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);z-index:20;border-bottom:1px solid #f1f1f1}.brand-wrap{grid-column:2}.brand{font-size:28px;font-weight:800;letter-spacing:-1.1px}.brand span{color:#2da65a}.tagline{margin-top:2px;font-size:12px;color:#59636b}.icon-btn,.back-btn{border:0;background:#fff;font-size:21px}.back-btn{font-size:34px;line-height:1}.hidden{display:none!important}.page{padding:14px 18px 22px}.home-page{padding-top:12px}.hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hero-card{border:0;color:#fff;border-radius:15px;padding:14px 10px;display:flex;min-height:105px;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(0,0,0,.07)}.hero-card.green{background:linear-gradient(135deg,#33ad5e,#278b4b)}.hero-card.blue{background:linear-gradient(135deg,#3a7488,#315d6e)}.hero-card strong{font-size:28px}.hero-card b{font-size:19px;margin-top:5px}.hero-card span{font-size:11px;opacity:.92;margin-top:3px}.search-box{width:100%;margin:12px 0;border:1px solid #e7ebed;background:#fff;border-radius:12px;padding:12px 13px;display:flex;justify-content:space-between;color:#6f7880;text-align:left}.search-box b{color:#2d8850;white-space:nowrap}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:12px}.quick-grid button{border:0;background:#fff;padding:8px 2px;border-radius:10px;color:#284936;font-size:19px}.quick-grid span{display:block;color:#30373d;font-size:11px;margin-top:5px}.section-head,.results-head{display:flex;align-items:center;justify-content:space-between}.section-head h2{font-size:18px;margin:8px 0 10px}.section-head button,.section-head span{border:0;background:none;color:#737c84;font-size:12px}.card-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.property-card{border:1px solid #eceff0;border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.04);cursor:pointer}.property-card img{width:100%;height:92px;object-fit:cover;background:#eef2ef}.property-card .body{padding:8px 9px}.property-card .title{font-weight:700;font-size:13px}.price{font-size:18px;font-weight:800;margin-top:4px}.price small{font-size:11px;font-weight:600}.meta{font-size:11px;color:#68727a;margin-top:4px;line-height:1.45}.badge{display:inline-block;color:#278b4b;background:#eaf8ee;padding:3px 7px;border-radius:999px;font-size:10px;margin-top:6px}.safety-banner{width:100%;border:1px solid #e5ebea;background:#fff;border-radius:13px;padding:11px 12px;margin-top:12px;display:grid;grid-template-columns:34px 1fr 16px;align-items:center;text-align:left}.safety-banner small{display:block;color:#727c83;margin-top:3px;font-size:11px}.shield{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#e4f7e9;color:#24844a;font-weight:bold}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:520px;height:70px;padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.98);border-top:1px solid #e9ecec;display:grid;grid-template-columns:repeat(5,1fr);z-index:30}.nav-item{border:0;background:none;color:#626d74;font-size:19px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.nav-item span{font-size:10px}.nav-item.active{color:#279151}.publish-btn{font-size:27px;color:#299854}.page-title{font-size:23px;margin:4px 0 14px}.search-input-wrap{display:flex;gap:8px}.search-input-wrap input{flex:1;border:1px solid #e3e7e8;border-radius:12px;padding:12px;background:#f8f9f9}.search-input-wrap button,.filter-row button{border:1px solid #e5e8ea;background:#fff;border-radius:11px;padding:10px 11px}.filter-row{display:flex;gap:7px;overflow:auto;padding:11px 0}.results-head{font-size:12px;color:#5e686f;margin:3px 0 10px}.results-head select{border:0;background:#fff}.property-list{display:flex;flex-direction:column;gap:11px}.property-row{display:grid;grid-template-columns:124px 1fr;gap:11px;border-bottom:1px solid #f0f1f2;padding-bottom:11px;position:relative;cursor:pointer}.property-row img{width:124px;height:96px;object-fit:cover;border-radius:11px;background:#edf2ee}.property-row .heart{position:absolute;right:0;top:0;border:0;background:none;font-size:21px;z-index:2}.property-row h3{font-size:14px;margin:1px 30px 4px 0}.property-row .price{font-size:18px}.form-page .subtle,.subtle{color:#758087;font-size:12px}.form-card{display:flex;flex-direction:column;gap:13px;background:#fff}.form-card label{font-size:12px;color:#515b62}.form-card input,.form-card select,.form-card textarea,.modal-card input,.modal-card select{width:100%;margin-top:6px;padding:12px;border:1px solid #dfe4e5;border-radius:11px;background:#fafbfb}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:9px}.primary-btn,.secondary-btn{border-radius:11px;padding:13px;font-weight:700;width:100%}.primary-btn{border:0;background:#2b9b54;color:#fff}.secondary-btn{border:1px solid #d8dfdb;background:#fff;color:#2b7045}.success-box{margin-top:13px;padding:13px;background:#eaf8ee;border:1px solid #cdebd6;border-radius:12px;color:#216e3d}.owner-match-box{margin-top:18px}.renter-card{border:1px solid #e6ebe8;border-radius:12px;padding:11px;display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:9px;margin-bottom:8px}.renter-card .avatar{width:38px;height:38px}.match-switch{display:grid;grid-template-columns:1fr 1fr;background:#f0f3f2;border-radius:12px;padding:4px}.match-switch button{border:0;background:transparent;padding:10px;border-radius:9px}.match-switch .active{background:#fff;color:#258d4c;box-shadow:0 2px 8px rgba(0,0,0,.07)}.match-summary{margin:13px 0;padding:13px;border:1px solid #e4e9e6;border-radius:13px;display:flex;flex-direction:column;gap:5px}.match-summary span{font-size:12px;color:#667169}.match-summary button{align-self:flex-end;border:0;background:none;color:#298b4e}.profile-card{display:grid;grid-template-columns:50px 1fr auto;align-items:center;gap:10px;border:1px solid #e8ebec;border-radius:14px;padding:13px}.avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#e9f7ed;color:#258b4b;font-size:20px;font-weight:800}.profile-card span{display:block;font-size:11px;color:#7a848a;margin-top:3px}.profile-card button{border:0;background:#2b9a54;color:white;border-radius:9px;padding:8px 10px}.menu-card{margin-top:13px;border:1px solid #e8ebec;border-radius:14px;overflow:hidden}.menu-card button{width:100%;border:0;border-bottom:1px solid #f0f2f2;background:#fff;padding:14px;display:flex;justify-content:space-between;text-align:left}.menu-card button:last-child{border-bottom:0}.future-card{margin-top:13px;background:#f3faf5;border-radius:14px;padding:15px}.future-card p{font-size:12px;color:#5d6d63;line-height:1.55}.detail-page{padding-bottom:22px}.detail-hero{width:100%;height:250px;object-fit:cover;background:#edf2ef}.detail-body{padding:15px 18px}.detail-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.detail-title-row h1{font-size:22px;margin:0 0 4px}.round-action{width:40px;height:40px;border-radius:50%;border:1px solid #e3e7e4;background:#fff;font-size:22px}.detail-price{font-size:25px;font-weight:800;margin-top:12px}.detail-section{margin-top:17px;padding-top:15px;border-top:1px solid #eff1f1}.detail-section h3{font-size:16px;margin:0 0 10px}.detail-section p{font-size:13px;line-height:1.7;color:#59646a}.chips{display:flex;flex-wrap:wrap;gap:7px}.chip{padding:7px 9px;border-radius:99px;background:#f1f6f2;color:#2c6944;font-size:12px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.info-grid div{background:#f8faf9;border-radius:11px;padding:10px}.info-grid span{display:block;font-size:11px;color:#7a8480}.info-grid b{display:block;margin-top:3px;font-size:14px}.detail-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:9px;margin-top:18px}.sheet,.modal{position:fixed;inset:0;z-index:100}.sheet-backdrop,.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.3)}.sheet-panel{position:absolute;left:0;right:0;bottom:0;max-width:520px;margin:auto;background:#fff;border-radius:22px 22px 0 0;padding:10px 18px 23px}.sheet-handle{width:46px;height:5px;border-radius:99px;background:#d9dddd;margin:0 auto 14px}.sheet-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:15px}.sheet-options button{border:1px solid #e1e5e4;background:#fff;border-radius:11px;padding:11px}.sheet-options button.active{background:#eaf8ee;border-color:#8bcfa2;color:#247743}.modal-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 36px);max-width:420px;background:#fff;border-radius:16px;padding:18px}.modal-card h3{margin-top:0}.modal-card label{display:block;font-size:12px;margin-top:11px;color:#566168}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.toast{position:fixed;left:50%;bottom:86px;transform:translateX(-50%) translateY(20px);background:#1f2923;color:white;padding:10px 15px;border-radius:10px;opacity:0;pointer-events:none;transition:.25s;z-index:200;font-size:12px}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.empty-box{padding:18px;text-align:center;color:#778078;font-size:13px}@media(min-width:700px){body{padding:24px 0}#app{border-radius:26px;overflow:hidden;min-height:900px}.bottom-nav{bottom:24px;border-radius:0 0 26px 26px}}
/* V1.2 */
.page,.detail-page{padding-bottom:96px}
.home-page{padding-bottom:105px}
.need-form{margin:0 0 16px;padding:14px;border:1px solid #e5ebe7;border-radius:14px;background:#fbfcfb}
.need-checks{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.need-checks label{display:flex;align-items:center;gap:7px;padding:10px;background:#f5f8f6;border-radius:10px}
.need-checks input{width:auto!important;margin:0!important}
.match-empty{padding:22px 12px;text-align:center;background:#f7faf8;border-radius:13px;color:#68756d;font-size:13px;line-height:1.6}
@media(max-height:750px){.hero-card{min-height:94px}.property-card img{height:82px}}

/* V1.3 */
.large-modal{max-height:82vh;overflow:auto}
.modal-close-wide{margin-top:14px}
.owner-listing-card{border:1px solid #e4e9e6;border-radius:13px;padding:11px;margin-bottom:10px}
.owner-listing-card.inactive{opacity:.58}
.owner-listing-head{display:flex;justify-content:space-between;gap:8px}
.owner-listing-head b{font-size:14px}
.status-pill{font-size:10px;padding:3px 7px;border-radius:999px;background:#eaf8ee;color:#237742;white-space:nowrap}
.status-pill.off{background:#f0f1f1;color:#6d7570}
.owner-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}
.owner-actions button{border:1px solid #dde4df;background:#fff;border-radius:9px;padding:8px;font-size:11px}
.owner-actions .danger{color:#b44343}
.verify-list{display:flex;flex-direction:column;gap:10px;margin:12px 0 16px}
.verify-list div{padding:12px;background:#f6f9f7;border-radius:10px}
.verify-list span{display:block;font-size:11px;color:#758079;margin-top:3px}
.need-card{border:1px solid #e5ebe7;border-radius:13px;padding:13px}
.need-card b{font-size:14px}
.need-card p{font-size:12px;color:#667168;line-height:1.6;margin:7px 0}
.need-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.booking-item{border:1px solid #e7ebe8;border-radius:12px;padding:11px;margin-bottom:8px;display:grid;grid-template-columns:1fr auto;gap:8px}
.booking-item .meta{margin-top:4px}
.booking-item button{border:0;background:#fff;color:#b24a4a}
.message-preview{padding:12px;border:1px solid #e7ebe8;border-radius:12px;margin-bottom:8px}
.message-preview b{font-size:13px}.message-preview p{font-size:11px;color:#68736b;margin:5px 0 0}

/* V1.4 Firebase / Auth */
.modal-label{display:block;font-size:12px;color:#566168;margin-top:10px}
.auth-message{min-height:20px;margin-top:8px;font-size:12px;color:#b24a4a}
.link-btn{width:100%;margin-top:10px;border:0;background:none;color:#65736a;padding:8px}
.cloud-state{font-size:10px;padding:3px 7px;border-radius:999px;background:#f0f1f1;color:#68706b}
.cloud-state.online{background:#eaf8ee;color:#237742}
.profile-actions{display:flex;gap:6px;align-items:center}
.profile-actions button{white-space:nowrap}
.sync-note{margin-top:10px;padding:10px;border-radius:10px;background:#f7faf8;font-size:11px;color:#657169;line-height:1.5}

/* V1.6 */
.field-hint{display:block;margin-top:6px;color:#7b8580;font-size:11px;line-height:1.5}
.image-preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.image-preview-grid img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:9px;border:1px solid #e5e9e6}
.upload-progress{margin-top:10px;padding:10px;border-radius:10px;background:#f4faf6;color:#2e6d45;font-size:12px}
.cloud-warning{margin-top:10px;padding:10px;border-radius:10px;background:#fff8e7;color:#8a651d;font-size:12px;line-height:1.5}
