.life-page{min-height:100vh;background:#10151d;color:#eef1ec}
.life-topbar{height:72px;padding:0 clamp(20px,4vw,64px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12;background:#111720}
.life-topnav{display:flex;align-items:center;gap:clamp(12px,2vw,28px)}
.life-topnav a{color:#aeb7b9;text-decoration:none;font-size:11px}
.life-topnav a:hover,.life-topnav a:focus-visible{color:#f3f0e8}
.life-pwa-status{max-width:1500px;margin:8px auto;padding:0 24px;color:#e1c182;font-size:11px}
.life-prototype,.life-overline{font-size:10px;letter-spacing:.17em;color:#a2adb5}
.life-prototype{color:#c8d5b6}
.life-layout{max-width:1500px;min-height:calc(100vh - 72px);margin:auto;padding:24px;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(350px,.8fr);gap:24px}
.life-stage{position:relative;min-height:680px;overflow:hidden;border:1px solid #ffffff16;border-radius:14px;background:radial-gradient(ellipse at 50% 20%,#354958,#121a21 66%)}
.life-stage canvas{position:absolute;inset:0;width:100%;height:100%}
.life-city-tag{position:absolute;top:24px;left:clamp(24px,5vw,72px);display:flex;align-items:center;gap:8px;color:#e9eadf;font-size:10px;letter-spacing:.16em}
.life-city-tag span:last-child{color:#9ca9aa}
.life-city-dot{width:7px;height:7px;border-radius:50%;background:#c7e198;box-shadow:0 0 12px #c7e198}
.life-stage-tools{position:absolute;top:20px;right:20px;z-index:2;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:65%}
.life-hud-button{min-height:36px;padding:8px 12px;border:1px solid #ffffff35;border-radius:99px;background:#111821c9;color:#f3f0e8;font:inherit;font-size:10px;cursor:pointer}
.life-hud-button:hover,.life-hud-button:focus-visible{border-color:#d0dabd}
.life-camera-modes{position:absolute;top:68px;right:20px;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:5px;max-width:72%;padding:6px 8px;border:1px solid #ffffff24;border-radius:12px;background:#111821b8;color:#b7c1c1;font-size:9px;backdrop-filter:blur(12px)}
.life-camera-modes span{padding:0 4px;letter-spacing:.08em}
.life-camera-modes button{min-height:28px;padding:5px 9px;border:1px solid #ffffff35;border-radius:99px;background:#111821aa;color:#f3f0e8;font:inherit;cursor:pointer}
.life-camera-modes button[aria-pressed="true"]{border-color:#82f0ffb8;box-shadow:0 0 12px #4ad8ff38}
.life-camera-modes button:focus-visible{outline:2px solid #82f0ff}
.life-stage-shade{position:absolute;inset:0;background:linear-gradient(0deg,#0b1018eF 0%,#0b10182e 47%,#0b10180b 100%);pointer-events:none}
.life-stage-copy{position:absolute;left:clamp(24px,5vw,72px);bottom:116px;max-width:480px}
.life-kicker{display:flex;align-items:center;gap:10px;color:#d0dabd;font-size:11px;letter-spacing:.13em}
.life-kicker i,.life-activity li i{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#bbd78a;box-shadow:0 0 12px #bbd78a}
.life-stage-copy .life-overline{display:block;margin-top:26px;color:#bbc6c5}
.life-stage-copy h1{max-width:430px;margin:10px 0;font-size:clamp(42px,6vw,80px);font-weight:400;line-height:.99;letter-spacing:-.055em}
.life-stage-copy>p:last-child{margin:16px 0 0;color:#cad1d3;font-size:15px}
.life-stage-controls{position:absolute;left:clamp(24px,5vw,72px);bottom:48px;display:flex;align-items:center;gap:10px;color:#c1c9cc;font-size:11px}
.life-control{min-width:36px;min-height:36px;border:1px solid #ffffff35;border-radius:99px;background:#111821aa;color:#f3f0e8;cursor:pointer}
.life-control--play{min-width:112px;margin-left:10px}
.life-control:hover,.life-control:focus-visible{border-color:#d0dabd}
.life-control:disabled{opacity:.52;cursor:default}
.life-world-note{position:absolute;right:20px;bottom:17px;color:#a9b0b2;font-size:10px;letter-spacing:.04em}
.life-run-status{position:absolute;left:clamp(24px,5vw,72px);right:24px;bottom:8px;margin:0;color:#d7dec9;font-size:10px;line-height:1.4}
.life-page.life-focus-mode{overflow:hidden}
.life-focus-mode .life-topbar,.life-focus-mode .life-pwa-status,.life-focus-mode .life-sidebar{display:none}
.life-focus-mode .life-layout{display:block;width:100%;max-width:none;height:100dvh;min-height:100dvh;margin:0;padding:0}
.life-focus-mode .life-stage{position:fixed;inset:0;z-index:100;width:100vw;height:100dvh;min-height:0;border:0;border-radius:0}
.life-stage:fullscreen{width:100vw;height:100dvh;min-height:0;border:0;border-radius:0}
.life-dialog{width:min(920px,calc(100vw - 24px));max-width:none;max-height:min(90dvh,840px);padding:24px;border:1px solid #ffffff24;border-radius:16px;background:#111821;color:#eef1ec;box-shadow:0 24px 100px #000b}
.life-dialog::backdrop{background:#070a0dcc;backdrop-filter:blur(8px)}
.life-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid #ffffff17}
.life-dialog-head h2{margin:8px 0 0;font-size:clamp(24px,4vw,34px);font-weight:400}
.life-dialog-close{width:36px;height:36px;border:1px solid #ffffff30;border-radius:50%;background:transparent;color:#eef1ec;font-size:24px;cursor:pointer}
.life-dialog-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-top:18px;overflow-y:auto}
.life-dialog-section{min-width:0;padding:14px;border:1px solid #ffffff17;border-radius:12px;background:#ffffff04}
.life-dialog-section h3{margin:0 0 8px;font-size:15px;font-weight:500}
.life-dialog-section h3:not(:first-child){margin-top:16px}
.life-task-list{display:grid;gap:7px;margin:12px 0 0;padding:0;list-style:none}
.life-task-list button{width:100%;padding:10px;border:1px solid #ffffff1d;border-radius:8px;background:#151e27;color:#e6ebe2;text-align:left;cursor:pointer}
.life-dispatch-panel{grid-column:1/-1}
.dispatch-text-input,.dispatch-matrix input{width:100%;min-width:0;padding:9px;border:1px solid #ffffff24;border-radius:8px;background:#151e27;color:#edf0e8;font:inherit;font-size:12px}
.dispatch-matrix-wrap{width:100%;overflow-x:auto;border:1px solid #ffffff17;border-radius:10px}
.dispatch-matrix{width:100%;min-width:500px;border-collapse:collapse;color:#dfe6df;font-size:10px}
.dispatch-matrix caption{text-align:left;padding:10px;color:#c5cebf;font-size:11px}
.dispatch-matrix th,.dispatch-matrix td{padding:7px 8px;border-top:1px solid #ffffff12;text-align:left}
.dispatch-matrix thead th{color:#aab7b6;font-size:9px;font-weight:500}
.dispatch-matrix th[scope=row]{color:#eceddf;font-weight:500}
.dispatch-matrix select{max-width:190px;padding:7px;border:1px solid #ffffff22;border-radius:7px;background:#151e27;color:#edf0e8;font:inherit;font-size:10px}
.dispatch-remove{padding:6px 8px;font-size:9px}
.dispatch-plan-table{width:100%;min-width:520px;border-collapse:collapse;font-size:9px}
.dispatch-plan-table th,.dispatch-plan-table td{padding:7px 5px;border-top:1px solid #ffffff14;text-align:left;vertical-align:top}
.dispatch-plan-table th{color:#e5d59d;font-weight:500}
.dispatch-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-left:18px}
.dispatch-feedback,.dispatch-audit{margin-top:12px;padding-top:10px;border-top:1px solid #ffffff16}
.dispatch-feedback h4{margin:0;color:#e4e9de;font-size:12px;font-weight:500}
.dispatch-audit summary{color:#dce3d9;font-size:11px;cursor:pointer}
.dispatch-audit ul{display:grid;gap:7px;padding-left:18px;color:#b8c4c0;font-size:10px}
.dispatch-audit li time{display:block;margin-bottom:3px;color:#96a5a6;font-size:9px}
.life-inline-status[data-error="true"]{color:#ffb7a9}
.life-portfolio-map{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;margin-top:12px}
.life-portfolio-map span{padding:9px;border:1px solid #d0dabd24;border-radius:8px;background:#d0dabd08;color:#dce4d2;font-size:10px;line-height:1.35}
.life-portfolio-map i{color:#d0dabd;font-style:normal}
.life-prospect-note{display:grid;gap:5px;margin-top:12px;padding:10px;border-left:2px solid #c7e198;background:#c7e19808;color:#c5d0c1;font-size:10px;line-height:1.45}
.life-prospect-note b{color:#e4e9de;font-weight:500}
.life-business-tool-form{display:grid;gap:10px;margin-top:14px}
.life-business-tool-form label,.life-chat-form label,.life-delete-form label{display:grid;gap:5px;color:#b8c0bd;font-size:10px}
.life-business-tool-form select,.life-business-tool-form textarea,.life-chat-form input,.life-delete-form input{width:100%;padding:9px;border:1px solid #ffffff24;border-radius:8px;background:#151e27;color:#edf0e8;font:inherit;font-size:12px}
.life-business-tool-form textarea{resize:vertical}
.life-business-tool-actions,.life-media-actions{display:flex;flex-wrap:wrap;gap:8px}
.life-scenario-result{margin-top:12px;padding:12px;border:1px dashed #d0dabd55;border-radius:10px;background:#d0dabd08;color:#c5cebf;font-size:11px;line-height:1.5}
.life-scenario-result h4{margin:0 0 7px;color:#edf0e8;font-size:13px}
.life-scenario-result p{margin:6px 0}
.life-scenario-result ol{display:grid;gap:6px;padding-left:19px}
.life-chat-form{display:grid;gap:8px;margin:12px 0}
.life-chat-form button{justify-self:start}
.life-audio-toggle{display:flex;align-items:center;gap:8px;margin:12px 0;color:#c5cebf;font-size:11px}
.life-audio-toggle input{accent-color:#c7e198}
.life-camera-video{display:block;width:100%;max-height:240px;margin-top:12px;aspect-ratio:16/9;border:1px solid #ffffff20;border-radius:10px;background:#090d12;object-fit:cover}
.life-camera-video[hidden]{display:none}
.life-delete-form{display:grid;gap:9px;margin-top:14px}
.life-delete-button{border-color:#d28d8d;background:#8c3d3d;color:#fff}
.life-delete-button:disabled{opacity:.5;cursor:not-allowed}
.life-sidebar{align-self:start;padding:16px 4px 16px 8px}
.life-side-head{display:flex;justify-content:space-between;align-items:end}
.life-profile-head{display:flex;align-items:center;gap:12px}
.life-profile-avatar{display:grid;width:44px;height:44px;place-items:center;border:1px solid #d0dabd66;border-radius:14px;background:linear-gradient(145deg,#456b68,#18262d);color:#e5e9d9;font-size:20px}
.life-side-head h2{margin:9px 0 0;font-size:32px;font-weight:400;letter-spacing:-.035em}
.life-clock{font-size:18px;font-variant-numeric:tabular-nums;color:#d4dbcc}
.life-lede{max-width:440px;margin:14px 0 23px;color:#aeb7b9;font-size:13px;line-height:1.65}
.life-rank-card{display:flex;align-items:center;gap:11px;margin:-7px 0 16px;padding:10px 12px;border:1px solid #d0dabd2c;border-radius:11px;background:linear-gradient(110deg,#d0dabd0d,#ffffff03)}
.life-rank-glyph{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#d0dabd18;color:#d0dabd}
.life-rank-card>span:nth-child(2){flex:1}
.life-rank-card small,.life-rank-card b{display:block}
.life-rank-card small{color:#9ba8a5;font-size:8px;letter-spacing:.12em}
.life-rank-card b{margin-top:3px;color:#e1e6d9;font-size:11px;font-weight:500}
.life-rank-points{text-align:right}
.life-rank-points b{font-size:14px}
.life-panel{padding:15px 0;border-top:1px solid #ffffff17}
.life-panel--leadership{padding-bottom:11px}
.life-avatar-preview{position:relative;margin:12px 0;padding:8px;overflow:hidden;border:1px solid #c9d4ba2c;border-radius:12px;background:radial-gradient(ellipse at 50% 40%,#25424a99,#0c141bd9 72%);box-shadow:inset 0 0 35px #79cfc315}
.life-avatar-preview canvas{display:block;width:100%;height:190px}
.life-avatar-preview figcaption{position:absolute;right:10px;bottom:8px;left:10px;color:#b8c7c4;font-size:9px;text-align:center;text-shadow:0 1px 5px #000}
.life-leader{display:flex;align-items:center;gap:10px;padding:7px 0}
.life-leader>b{display:grid;width:34px;height:28px;place-items:center;border:1px solid #d0dabd44;border-radius:7px;color:#d0dabd;font-size:10px;letter-spacing:.06em}
.life-leader>span{flex:1}
.life-leader strong,.life-leader small{display:block}
.life-leader strong{font-size:11px;font-weight:500}
.life-leader small{margin-top:2px;color:#98a3a6;font-size:9px}
.life-leader>i{color:#b5c49c;font-size:9px;font-style:normal}
.life-avatar-editor summary{cursor:pointer;list-style:none}
.life-avatar-editor summary::-webkit-details-marker{display:none}
.life-avatar-editor summary:after{content:"＋";color:#d0dabd}
.life-avatar-editor[open] summary:after{content:"−"}
.life-editor-intro{margin:0 0 11px;color:#98a3a6;font-size:10px;line-height:1.5}
.life-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.life-editor-grid label{display:grid;gap:5px;color:#b8c0bd;font-size:9px}
.life-editor-grid select{width:100%;min-height:34px;padding:6px 8px;border:1px solid #ffffff24;border-radius:8px;background:#151e27;color:#edf0e8;font:inherit;font-size:10px}
.life-editor-grid select:focus-visible{outline:2px solid #d0dabd;outline-offset:2px}
.life-editor-grid .life-check{display:flex;align-items:center;gap:7px;min-height:30px}
.life-check input{accent-color:#c7e198}
.life-wardrobe{display:grid;gap:7px;margin-top:10px}
.life-outfit-card{display:flex;align-items:center;gap:9px;padding:7px;border:1px solid #ffffff13;border-radius:9px;background:#ffffff05}
.life-outfit-card>span:nth-child(2){min-width:0;flex:1}
.life-outfit-card b,.life-outfit-card small{display:block}
.life-outfit-card b{font-size:10px;font-weight:500}
.life-outfit-card small{margin-top:3px;color:#98a3a6;font-size:8px}
.life-outfit-swatch{width:25px;height:25px;border:1px solid #ffffff42;border-radius:8px;background:var(--outfit-color)}
.life-outfit-card .life-action{padding:6px 9px;font-size:9px}
.life-outfit-card button:disabled{opacity:.62;cursor:default}
.life-panel--business .life-business-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.life-business-list article{padding:8px;border:1px solid #ffffff14;border-radius:8px;background:#ffffff05}
.life-business-list b,.life-business-list small{display:block}
.life-business-list b{font-size:9px;font-weight:500}
.life-business-list small{margin-top:4px;color:#98a3a6;font-size:8px;line-height:1.4}
.life-business-form{display:grid;gap:9px;margin-top:12px;padding-top:10px;border-top:1px solid #ffffff12}
.life-business-form label{display:grid;gap:5px;color:#b8c0bd;font-size:9px}
.life-business-form input,.life-business-form textarea{width:100%;padding:8px;border:1px solid #ffffff24;border-radius:8px;background:#151e27;color:#edf0e8;font:inherit;font-size:10px;resize:vertical}
.life-business-form input:focus-visible,.life-business-form textarea:focus-visible{outline:2px solid #d0dabd;outline-offset:2px}
.life-business-form button{justify-self:start}
.life-business-drafts{display:grid;gap:6px;margin-top:9px}
.life-business-draft{padding:8px;border:1px dashed #d0dabd55;border-radius:8px}
.life-business-draft b,.life-business-draft small{display:block}
.life-business-draft b{font-size:10px;font-weight:500}
.life-business-draft small{margin-top:4px;color:#98a3a6;font-size:8px;line-height:1.4}
.life-panel-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}
.life-panel-title h3{margin:0;font-size:14px;font-weight:500}
.life-panel-title>span{font-size:9px;letter-spacing:.1em;color:#9daaad}
.life-person{display:flex;align-items:center;gap:10px;padding:9px 0}
.life-person-avatar{display:grid;width:35px;height:35px;flex:0 0 auto;place-items:center;border:1px solid #ffffff24;border-radius:50%;background:#4e5b4e;color:#f2eee5;font-family:Georgia,serif}
.life-person-avatar--builder{background:#375e58}.life-person-avatar--trader{background:#435974}.life-person-avatar--steward{background:#654f70}
.life-person-info{min-width:0;flex:1}
.life-person-info b,.life-offer b,.life-group b{display:block;font-size:12px;font-weight:500}
.life-person-info small,.life-offer small,.life-group small{display:block;margin-top:3px;color:#98a3a6;font-size:10px}
.life-connect{border:0;background:transparent;color:#d0dabd;font-size:10px;cursor:pointer}
.life-connect:disabled{color:#91a392;cursor:default}
.life-panel--social{padding-top:14px;padding-bottom:12px}
.life-group{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;padding:9px 0;border:0;border-top:1px solid #ffffff0d;background:none;color:inherit;cursor:pointer}
.life-group i{color:#d0dabd;font-size:19px;font-style:normal}
.life-group:disabled i{font-size:14px}
.life-group:disabled{cursor:default}
.life-offer{display:flex;align-items:center;gap:12px}
.life-lamp{position:relative;width:36px;height:41px;margin-left:5px;clip-path:polygon(50% 0,92% 88%,8% 88%);background:linear-gradient(130deg,#eddcaa,#8f866e);filter:drop-shadow(0 0 10px #d5c69c66)}
.life-market-actions{display:flex;gap:8px;margin-top:10px}
.life-action{padding:8px 12px;border:1px solid #d0dabd;border-radius:99px;background:#d0dabd;color:#17201c;font-size:10px;cursor:pointer}
.life-action.secondary{background:transparent;color:#d0dabd}
.life-action:hover,.life-action:focus-visible{filter:brightness(1.13)}
.life-inline-status{margin:8px 0 0;color:#aeb7b9;font-size:10px}
.life-panel--activity{padding-top:12px}
.life-activity{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.life-activity li{display:flex;align-items:baseline;gap:8px;color:#aeb7b9;font-size:10px;line-height:1.45}
.life-activity li i{width:5px;height:5px;margin-top:5px;box-shadow:none}
.life-disclaimer{margin:8px 0 0;color:#899497;font-size:9px;line-height:1.55}
@media(max-width:900px){.life-layout{grid-template-columns:1fr}.life-stage{min-height:min(72vh,680px)}.life-sidebar{padding:8px 8px 30px}.life-dialog-content{grid-template-columns:1fr}.life-dispatch-panel{grid-column:auto}}
@media(max-width:700px){.life-topnav{gap:10px}.life-topnav a{font-size:9px}.life-topbar{padding:0 14px}.life-prototype{display:none}}
@media(max-width:520px){.life-topbar{height:60px;padding:0 16px}.life-topnav{gap:8px}.life-topnav a{font-size:8px}.life-topbar .pill{padding:9px 12px;font-size:10px}.life-layout{padding:12px;gap:12px}.life-stage{min-height:520px}.life-city-tag{top:18px;left:24px;font-size:8px}.life-stage-tools{top:12px;right:12px;max-width:70%;gap:5px}.life-hud-button{min-height:32px;padding:6px 9px;font-size:9px}.life-camera-modes{top:56px;right:12px;gap:3px;max-width:74%;padding:5px;font-size:8px}.life-camera-modes button{min-height:25px;padding:4px 7px}.life-stage-copy{bottom:126px;left:24px;right:18px}.life-stage-copy h1{font-size:54px}.life-stage-controls{bottom:50px;left:24px;right:18px;gap:7px;flex-wrap:wrap}.life-world-note{bottom:8px;right:10px;font-size:8px}.life-run-status{bottom:25px;left:24px;right:14px;font-size:9px}.life-editor-grid{gap:7px}.life-dialog{padding:17px}.life-dialog-content{max-height:calc(90dvh - 100px);gap:10px}.life-portfolio-map{gap:5px}.life-portfolio-map span{padding:7px;font-size:9px}}
@media(max-width:420px){.life-topnav{display:none}}
@media(max-height:520px) and (orientation:landscape){.life-stage-copy{bottom:100px}.life-stage-copy .life-overline{margin-top:8px}.life-stage-copy h1{font-size:clamp(30px,8vh,54px)}.life-stage-controls{bottom:10px}.life-run-status{bottom:10px;left:auto;right:12px;max-width:40%;text-align:right}.life-world-note{display:none}.life-stage-tools{top:8px;right:8px}}
@media(prefers-reduced-motion:reduce){.life-page *{scroll-behavior:auto!important}}

.life-topbar,.life-panel,.life-rank-card,.life-dialog,.life-dialog-section,.life-hud-button,.life-control {
  background-color: rgba(18, 28, 39, .54);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  border-color: rgba(145, 222, 255, .22);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .18), inset 0 1px rgba(227, 250, 255, .09);
}
.life-dialog { background: linear-gradient(140deg, rgba(20, 38, 52, .86), rgba(28, 25, 52, .82)); }
.life-dialog-section { background: linear-gradient(140deg, rgba(111, 211, 239, .08), rgba(176, 143, 255, .055)); }
.life-page .life-hud-button[aria-pressed="true"] {
  border-color: rgba(130, 240, 255, .72);
  box-shadow: 0 0 16px rgba(74, 216, 255, .22), inset 0 0 18px rgba(75, 202, 255, .11);
}
.life-page .life-gamepad-settings { display: grid; gap: 10px; margin-top: 12px; }
.life-page .life-gamepad-settings label { display: grid; gap: 5px; color: #c4d4df; font-size: 10px; }
.life-page .life-gamepad-settings select,.life-page .life-gamepad-settings input {
  width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid rgba(145, 222, 255, .25);
  border-radius: 8px; background: rgba(8, 16, 26, .64); color: #eef7ff; font: inherit;
}
.life-page .life-gamepad-map { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
@media(max-width:520px) {
  .life-page .onaru-footer { width: calc(100% - 24px); }
  .life-page .life-gamepad-map { grid-template-columns: 1fr; }
}
