:root{color-scheme:light;--ink:#193138;--muted:#60727a;--line:#dce6e4;--bg:#f5f8f7;--accent:#146f65;--deep:#153e46;--paper:#fff;--soft:#edf3f1;--shadow:0 8px 26px #1b3a3914;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:16px}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);-webkit-text-size-adjust:100%}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #43a8ab;outline-offset:2px}.hidden,[hidden]{display:none!important}
.app-shell{max-width:520px;margin:0 auto;min-height:100vh;padding-bottom:calc(100px + env(safe-area-inset-bottom))}.app-header{background:var(--deep);color:#fff;padding:calc(24px + env(safe-area-inset-top)) 20px 18px}.brand-row{display:flex;align-items:center;gap:12px}.brand-mark{height:43px;width:43px;border:1px solid #73999f7c;display:grid;place-items:center;border-radius:14px;flex:none}.brand-mark svg{width:31px;height:31px}.brand-title{min-width:0;flex:1}.eyebrow{font-size:9px;letter-spacing:.16em;color:#a8d4ce;display:block;font-weight:750}.brand-title h1{font-size:20px;margin:3px 0 0;font-weight:800;letter-spacing:-.04em}.version{align-self:flex-start;font-size:10px;background:#ffffff24;color:#e4efef;border:1px solid #ffffff22;padding:5px 7px;border-radius:9px;white-space:nowrap}.connection-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:19px;flex-wrap:wrap}.connection-chip{display:flex;gap:7px;align-items:center;background:#ffffff15;border:1px solid #ffffff29;border-radius:100px;padding:8px 10px;font-weight:650;font-size:12px}.connection-dot{background:#eeaa59;border-radius:50%;height:8px;width:8px;display:inline-block}.connection-chip.offline .connection-dot{background:#f6bd79}.connection-chip.online .connection-dot{background:#78d7bd}.connection-caption{font-size:11px;color:#d1e0df}
main{padding:18px 18px 0}.stage-banner{display:flex;gap:10px;align-items:start;padding:14px;background:#fff6e7;border:1px solid #efdab1;border-radius:15px;margin-bottom:24px}.stage-banner-icon{border:2px solid #986622;border-radius:50%;color:#986622;display:grid;place-items:center;flex:none;font-weight:800;width:21px;height:21px;font-family:serif;margin-top:1px}.stage-banner strong{color:#805b27;font-size:13px}.stage-banner p{margin:4px 0 0;color:#735b39;font-size:12px;line-height:1.7}.error-banner{color:#902f30;background:#fff1f1;border:1px solid #efc4c1;padding:12px 14px;border-radius:12px;margin-bottom:14px;font-size:13px;line-height:1.6}.toast{position:relative;background:#e1f5ee;border:1px solid #a6d6c8;color:#12554a;padding:13px;border-radius:12px;margin:0 0 18px;font-size:13px;font-weight:650;line-height:1.6}
.section-heading{margin:0 2px 18px}.section-heading h2{font-size:20px;font-weight:820;letter-spacing:-.04em;margin:0 0 5px}.section-heading p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.status-grid{display:grid;gap:10px}.status-tile{width:100%;display:flex;align-items:center;text-align:left;gap:14px;border:1.5px solid transparent;border-radius:16px;padding:16px;background:var(--paper);min-height:79px;box-shadow:0 2px 7px #173a3609;color:var(--ink)}.status-tile .status-symbol{flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:13px;font-size:24px;font-weight:750}.status-tile strong{display:block;font-weight:800;font-size:17px;letter-spacing:-.03em}.status-tile small{display:block;margin-top:4px;font-size:11px;color:#6c7c7f}.status-tile>span:nth-child(2){flex:1}.status-tile .tile-chevron{color:#92a4a4;font-size:23px}.safe .status-symbol{background:#e1f4e9;color:#11704c}.evacuating .status-symbol{background:#fff0d8;color:#a2631a}.help .status-symbol{background:#ffebec;color:#b83841}.info .status-symbol{background:#eaf1fc;color:#4265a0}.status-tile[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 2px #146f6520}.status-tile[aria-pressed="true"] .tile-chevron{color:var(--accent)}
.post-form{background:#fff;border:1px solid var(--line);border-radius:17px;margin:15px 0 0;padding:19px;box-shadow:var(--shadow)}.form-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px}.form-header h3{margin:0;font-size:16px}.selected-label{font-size:11px;color:var(--accent);font-weight:750;background:#e6f4ef;border-radius:20px;padding:7px 10px}.post-form label,.settings-card label{display:block;margin:16px 0 8px;font-weight:700;font-size:13px}.optional{font-weight:450;color:var(--muted);font-size:11px}.post-form input,.post-form textarea,.post-form select,.settings-card input{width:100%;border:1px solid #cbd8d6;background:#fff;color:var(--ink);border-radius:11px;padding:13px 12px;min-height:48px;font-size:15px}.post-form textarea{resize:vertical;min-height:95px}.post-form input::placeholder,.post-form textarea::placeholder{color:#879695}.field-footnote{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);gap:8px;margin-top:7px}.primary-action{margin-top:21px;background:var(--accent);color:#fff;border:0;border-radius:12px;min-height:55px;width:100%;padding:12px 15px;font-weight:800;font-size:15px;display:flex;justify-content:space-between;align-items:center}.primary-action:disabled{opacity:.5}.submit-note{font-size:11px;color:var(--muted);line-height:1.6;text-align:center;margin:10px 0 0}
.overview-panel{margin-top:22px;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:18px}.overview-title{display:flex;justify-content:space-between;align-items:center;gap:6px}.overview-title h2{font-size:15px;margin:0;font-weight:800}.pill-neutral{font-size:10px;color:#607279;background:#eef3f3;padding:6px 9px;border-radius:20px;white-space:nowrap}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:19px 0}.metric-grid>div{background:#f6f9f8;border-radius:12px;padding:13px}.metric-label{display:block;color:var(--muted);font-size:11px}.metric-grid strong{display:block;font-size:29px;letter-spacing:-.05em;margin-top:5px}.metric-grid small{font-size:12px;font-weight:550;color:var(--muted)}.last-entry{border-top:1px solid var(--line);padding-top:14px;font-size:12px;color:var(--muted);line-height:1.65}.text-action{border:0;background:none;color:var(--accent);padding:15px 0 0;text-align:left;font-size:13px;font-weight:750}.emergency-note{font-size:11px;color:#6b6766;line-height:1.8;margin:20px 4px 0}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.count-label{font-size:12px;color:var(--muted)}.small-action{background:#fff;color:var(--accent);padding:8px 12px;font-size:12px;border:1px solid var(--line);border-radius:9px}.history-list{display:grid;gap:11px}.empty-state{background:#fff;border:1px dashed #c6d5d4;color:var(--muted);border-radius:16px;padding:36px 18px;text-align:center;font-size:13px;line-height:1.8}.entry-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}.entry-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.entry-type{font-size:13px;font-weight:750}.entry-type.safe{color:#187353}.entry-type.evacuating{color:#a36a2c}.entry-type.help{color:#ab3646}.entry-type.info{color:#48699d}.entry-time{color:var(--muted);font-size:11px;white-space:nowrap}.entry-author{color:var(--muted);font-size:11px;margin:8px 0}.entry-detail{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}.entry-detail strong{font-weight:750}.entry-flag{border-top:1px solid var(--line);margin-top:13px;padding-top:11px;color:#85612d;font-size:11px;font-weight:700}.info-strip{color:#546b75;background:#eaf3f5;font-size:11px;line-height:1.8;padding:13px;border-radius:12px;margin-top:18px}
.settings-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:13px}.settings-card h3{font-size:15px;margin:0 0 10px}.settings-card label{font-size:12px;color:var(--muted);margin:0 0 9px}.settings-card button{margin-top:12px}.settings-line{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:11px 0;border-bottom:1px solid #eef2f1;font-size:12px}.settings-line:last-child{border-bottom:0}.settings-line span{color:var(--muted);flex:1}.settings-line strong{font-size:12px;text-align:right;max-width:55%;overflow-wrap:anywhere}.settings-description,.small-print{font-size:12px;line-height:1.8;color:var(--muted);margin:5px 0 2px}.small-print{font-size:11px;margin-top:11px}.secondary-action,.danger-action{background:#f0f6f4;color:#146f65;border:1px solid #bcd7cd;border-radius:10px;padding:12px 15px;font-size:13px;font-weight:750;min-height:44px;width:100%}.danger-action{background:#fff4f3;color:#a34044;border-color:#e4c3c1}
.bottom-nav{background:#fff;border-top:1px solid var(--line);position:fixed;left:50%;transform:translateX(-50%);bottom:0;max-width:520px;width:100%;display:grid;grid-template-columns:repeat(3,1fr);padding:9px 10px calc(9px + env(safe-area-inset-bottom));z-index:10;box-shadow:0 -5px 30px #112a270c}.nav-button{background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 10px;color:#7a898d;font-weight:750;font-size:11px;min-height:49px}.nav-button svg{width:23px;height:23px}.nav-button.active{color:var(--accent)}
@media(min-width:520px){body{padding-top:25px}.app-shell{border-radius:22px 22px 0 0;overflow:hidden;border-left:1px solid #e2e9e8;border-right:1px solid #e2e9e8;box-shadow:0 8px 40px #18353011}.app-header{padding-top:24px}}@media(prefers-reduced-motion:no-preference){.status-tile{transition:border-color .15s,transform .15s}.status-tile:active{transform:scale(.992)}}
