/* STEP6 styles are scoped to the date view. Existing TOP/home/chat rules stay intact. */
.v30-date-ui{background:#e9ddfa;color:var(--v30-ink);font-family:var(--v30-font)}
.v30-date,.v30-date *{box-sizing:border-box}.v30-date.compact-main{width:100%;max-width:none;padding:0;margin:0}
.v30-date-left{min-width:0}.v30-date-visual{position:relative;overflow:hidden;width:100%;height:clamp(340px,52svh,680px);background-position:center;background-size:cover;isolation:isolate}
.v30-date-visual canvas{display:block;width:100%;height:100%}.v30-date-label{position:absolute;top:16px;left:15px;padding:6px 11px;border-radius:999px;background:#7c4db7ed;color:#fff;font-size:13px;line-height:1.4;z-index:1}
.v30-date-status{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:10px;margin:10px 10px 16px;padding:12px;background:white;border-radius:16px;box-shadow:var(--v30-shadow);font-family:var(--v30-font)}
.v30-date-summary{min-width:0}.v30-date-summary>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px}.v30-date-name{display:inline;padding:0;margin:0;border:0;background:transparent;color:#29242b;font:750 21px/1.4 var(--v30-font);max-width:100%;overflow-wrap:anywhere;text-align:left;box-shadow:none}.v30-date-summary span{font-size:12px;white-space:nowrap}.v30-date-summary small{border-radius:999px;padding:3px 6px;background:#f0e8fa;color:#7742bd;font-size:10px;white-space:nowrap}
.v30-date-balance{display:block;padding:0;margin:4px 0 0;border:0;background:transparent;color:#7842ca;text-decoration:underline;text-underline-offset:3px;font:12px/1.5 var(--v30-font);text-align:left;box-shadow:none}
.v30-date-meter{position:relative;min-width:0;border-left:1px solid #e6dcee;padding-left:10px}.v30-date-meter p{margin:0 0 7px;font-size:12px;line-height:1.5;color:#cc4e94;display:flex;flex-wrap:wrap;align-items:baseline;white-space:normal}.v30-date-meter p span{white-space:nowrap}.v30-date-meter[data-stat="trust"] p{color:#7842ca}.v30-date-meter .meter{height:7px;background:#e9deef;overflow:hidden;border-radius:999px}.v30-date-meter .meter i{display:block;height:100%;background:#da65aa;border-radius:inherit}.v30-date-meter .meter.trust i{background:#a575dc}
.v30-date-conversation{min-width:0;background:#fff;border-radius:22px;padding:18px 16px;margin:0 10px 16px;box-shadow:var(--v30-shadow)}
.v30-date-bubble{display:flex;gap:10px;align-items:flex-start;margin:0 0 15px;font-size:15px;line-height:1.75}.v30-date-avatar.avatar{display:block;position:relative;flex:0 0 42px;width:42px;height:42px;padding:0;margin:0;border:0;border-radius:50%;overflow:hidden;background:#eee7f5;box-shadow:none;cursor:pointer}.v30-date-bubble>div{min-width:0;max-width:calc(100% - 52px);padding:10px 13px;background:#eee7f7;border-radius:16px}.v30-date-bubble b{display:block;font-size:13px;color:#7842ca;margin-bottom:4px}.v30-date-bubble p{margin:0;overflow-wrap:anywhere}.v30-date-bubble--player{justify-content:flex-end}.v30-date-bubble--player>div{background:#956ccd;color:white}.v30-date-bubble--system>div{max-width:100%;width:100%;background:#faf8fd;color:#746d82}.v30-date-context{font-size:14px;line-height:1.8;margin:0 0 16px;color:#64596f}
.v30-date-current>.choices{display:flex;flex-direction:column;gap:12px}.v30-date-choice{display:flex;align-items:center;gap:11px;width:100%;min-height:48px;text-align:left;margin:0;padding:12px;border:1px solid #d2b7f0;border-radius:12px;background:#fcfaff;box-shadow:none;font:400 15px/1.65 var(--v30-font);color:#29242b;overflow-wrap:anywhere}.v30-date-choice-index{flex:0 0 25px;width:25px;height:25px;display:grid;place-items:center;background:#b18ae5;border-radius:50%;color:#fff;font-size:14px;line-height:1}.v30-date-choice>span:last-child{min-width:0}.v30-date-choice:hover:not(:disabled){background:#f1e7fc}.v30-date-choice:active:not(:disabled){background:#e9daf9;transform:translateY(1px)}.v30-date-choice:disabled{opacity:.5;cursor:default}.v30-date .event-action-control{margin:0;padding:0}.v30-date .event-action-note,.v30-date .event-common-note{font:11px/1.6 var(--v30-font);color:#83728e;margin:4px 0 0}.v30-date-history{border-top:1px solid #e9e3ef;padding-top:18px;margin-top:24px}.v30-date-history-label{margin:0 0 18px;font-size:13px;color:#8d8197}.v30-date-bubble .v30-date-points{font-size:12px;color:#8052b8;margin-top:7px}.v30-date-bubble--player .v30-date-points{color:white}
.v30-date button:focus-visible{outline:3px solid #7842ca;outline-offset:3px}.v30-date [role="alert"]{padding:15px;color:#933}
@media(min-width:1025px){
 .v30-date-ui{--v30-pc-edge:max(24px,calc((100vw - 1392px)/2));grid-template-columns:minmax(0,1fr) minmax(340px,calc((100vw - 2 * var(--v30-pc-edge) - 24px)/2.4));padding-left:0;padding-right:var(--v30-pc-edge);column-gap:24px;row-gap:30px}
 .v30-date-ui>.v30-date{display:contents}.v30-date-left{grid-column:1;grid-row:1/span 2;align-self:start;container-type:inline-size}.v30-date-visual{height:clamp(56.25cqw,clamp(420px,calc(100svh - 126px),880px),100cqw)}.v30-date-status{margin:10px 12px 16px;padding:14px;gap:14px}.v30-date-meter p{font-size:14px}.v30-date-summary span{font-size:13px}.v30-date-balance{font-size:13px}
 .v30-date-conversation{grid-column:2;grid-row:2;margin:0;max-height:calc(100svh - 130px);min-height:300px;overflow-y:auto;scrollbar-color:#c9b5e6 transparent;padding:20px 16px;overscroll-behavior:contain}
}
@media(max-width:1024px){.v30-date-ui{display:block;position:relative;padding-inline:0;padding-bottom:8px}.v30-date-ui>.v30-header{position:absolute;top:0;left:0;right:0;z-index:5;margin:0 auto}.v30-date-label{top:94px}}
@media(max-width:360px){.v30-date-status{gap:7px;padding:10px;margin-inline:8px;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr)}.v30-date-meter{padding-left:7px}.v30-date-meter p{font-size:11px}.v30-date-name{font-size:18px}.v30-date-summary span{font-size:11px}.v30-date-balance{font-size:11px}.v30-date-conversation{padding:14px 12px;margin-inline:8px}.v30-date-bubble,.v30-date-choice{font-size:14px}}

/* Only active legacy scenes containing an actual pair use the event boundary.
   ScenePhotos adds this marker; single portraits, albums and fixed stills do not. */
@media(max-width:1024px){
 .v30-ui.event-pair-scene30{display:block;padding-inline:0}
 .v30-ui.event-pair-scene30>.compact-main.show-layout{display:block}
 .v30-ui.event-pair-scene30>.compact-main>.scene-photo-column{position:relative;top:auto;grid-column:auto;grid-row:auto;align-self:start}
 .v30-ui.event-pair-scene30>.compact-main>.timeline{grid-column:auto;grid-row:auto}
 .v30-ui.event-pair-scene30 .compact-stage[data-event-pair30]{position:relative;top:auto}
}
@media(min-width:1001px) and (max-width:1024px){
 /* Undo the older desktop header sizing only within these marked event scenes. */
 .v30-ui.event-pair-scene30>.v30-header{--v30-header-number-size:27px;width:calc(100% - 32px);max-width:1392px;margin:0 auto 18px;padding-inline:8px;grid-template-columns:minmax(140px,1.5fr) minmax(64px,.8fr) minmax(88px,1fr) minmax(88px,1fr) 42px;border-radius:0 0 22px 22px;container-type:normal}
 .v30-ui.event-pair-scene30>.v30-header>div{padding-inline:7px}
 .v30-ui.event-pair-scene30>.v30-header .v30-header__title img{max-width:200px;max-height:64px}
 .v30-ui.event-pair-scene30>.v30-header .v30-header__month small{font-size:12px}
}
@media(min-width:1025px){
 .v30-ui.event-pair-scene30>.compact-main>.scene-photo-column{grid-row:2;position:relative;top:auto;align-self:start;container-type:inline-size}
 .v30-ui.event-pair-scene30 .compact-stage[data-event-pair30]{height:clamp(56.25cqw,var(--cast-height,510px),100cqw);min-height:0}
 /* Legacy dating-save celebrations compose two portraits, rather than a fixed CG.
    Fit only that canvas within 16:9..1:1; its full-screen frame/copy stay intact. */
 .event-still-layer .dating-photo-canvas{inset:0;margin:auto;width:min(100%,calc(100dvh * 16 / 9));height:min(100%,100vw)}
}
