/* Generated from ui/standard.json and ui/timeline-common.rules.css. */
:root{
 --ui-note-line-ratio:1.45;
 --ui-post-name-line-ratio:1.4;
 --ui-sender-name-line-ratio:1.7;
 --ui-body-font:15px;
 --ui-choice-font:14px;
 --ui-name-font:14px;
 --ui-scene-with-name:10px;
 --ui-scene-without-name:11px;
 --ui-note-font:11px;
 --ui-body-line-height:27px;
 --ui-button-line-height:20px;
 --ui-icon-text-gap:10px;
 --ui-chat-scene-name-gap:0px;
 --ui-date-scene-name-gap:1px;
 --ui-post-name-body-gap:7px;
 --ui-chat-name-body-gap:7px;
 --ui-date-name-body-gap:7px;
 --ui-card-padding:18px;
 --ui-card-gap:14px;
 --ui-choice-gap-without-note:5px;
 --ui-button-gap-with-one-line-note:26px;
 --ui-button-min-height:48px;
 --ui-icon-width:40px;
 --ui-icon-height:40px;
 --ui-note-top-gap:3px;
 --ui-button-padding-y:12px;
 --ui-button-padding-x:8px;
 --ui-scene-body-gap:7px;
 --ui-label-detail-gap:2px;
}
@media(max-width:650px){:root{
 --ui-body-font:13.5px;
 --ui-choice-font:13px;
 --ui-name-font:13px;
 --ui-scene-with-name:9px;
 --ui-scene-without-name:10px;
 --ui-note-font:10px;
 --ui-body-line-height:25px;
 --ui-button-line-height:19px;
 --ui-icon-text-gap:10px;
 --ui-chat-scene-name-gap:0px;
 --ui-date-scene-name-gap:1px;
 --ui-post-name-body-gap:5px;
 --ui-chat-name-body-gap:5px;
 --ui-date-name-body-gap:5px;
 --ui-card-padding:16px;
 --ui-card-gap:12px;
 --ui-choice-gap-without-note:4px;
 --ui-button-gap-with-one-line-note:21px;
 --ui-button-min-height:47px;
 --ui-icon-width:40px;
 --ui-icon-height:40px;
 --ui-note-top-gap:3px;
 --ui-button-padding-y:10px;
 --ui-button-padding-x:6px;
 --ui-scene-body-gap:5px;
 --ui-label-detail-gap:2px;
}}
/* Shared in-game timeline roles. Numeric standards are generated from standard.json.
   Keep colors, typefaces, portrait cropping and gameplay outside this stylesheet. */
.compact-main .timeline .post,
.compact-main .timeline #question.post,
dialog:has(.relationship-panel){
 padding:var(--ui-card-padding);
}
.compact-main .timeline .post{
 margin-block-end:var(--ui-card-gap);
 min-width:0;
}
.compact-main .timeline .post>p:not(:where(.event-action-note,.event-common-note,.choice-note,.help-text,.rp25-cost)),
.relationship-panel{
 font-size:var(--ui-body-font);
 line-height:var(--ui-body-line-height);
}
.compact-main .timeline .post>p{
 overflow-wrap:anywhere;
}
.compact-main .timeline .post>p:first-child{margin-block-start:0}
.compact-main .timeline .post-name,
.compact-main .timeline .chat-sender b,
.compact-main .timeline .encounter-card>b,
.relationship-panel .relationship-person h2{
 font-size:var(--ui-name-font);
}
.compact-main .timeline .avatar{
 width:var(--ui-icon-width);
 height:var(--ui-icon-height);
 min-width:var(--ui-icon-width);
 flex:none;
}
.compact-main .timeline .conversation-post,
.compact-main .timeline .proposal-dialogue-card{
 display:grid;
 grid-template-columns:var(--ui-icon-width) minmax(0,1fr);
 column-gap:var(--ui-icon-text-gap);
 row-gap:var(--ui-post-name-body-gap);
 align-content:start;
 min-height:0;
}
.compact-main .timeline .conversation-post .post-head{
 display:contents;
 margin:0;
}
.compact-main .timeline .conversation-post .post-head>.avatar{
 grid-column:1;
 grid-row:1 / span 2;
 align-self:start;
 margin:0;
}
.compact-main .timeline .conversation-post .post-head>div:last-child{
 grid-column:2;
 grid-row:1;
 min-width:0;
}
.compact-main .timeline .conversation-post .post-name{
 line-height:var(--ui-post-name-line-ratio);
 margin:0;
 overflow-wrap:anywhere;
}
.compact-main .timeline .conversation-post>p{
 grid-column:2;
 grid-row:2;
 min-width:0;
 margin:0;
 align-self:start;
}
.proposal-dialogue-card .confession-score-changes{grid-column:2}
.proposal-bubble-latest[data-proposal-tap]{cursor:pointer;touch-action:manipulation}
.proposal-bubble-latest[data-proposal-tap]:focus-visible{outline:2px solid #a54a68;outline-offset:2px}
.compact-main .timeline .chat-sender{
 display:flex;
 align-items:flex-end;
 gap:var(--ui-icon-text-gap);
 margin:0;
 min-width:0;
}
.compact-main .timeline .chat-sender>div{min-width:0}
.compact-main .timeline .chat-sender .eyebrow{
 display:block;
 font-size:var(--ui-scene-with-name);
 margin:0 0 var(--ui-date-scene-name-gap);
}
.compact-main .timeline .chat-sender[data-chat-sender-id] .eyebrow{
 margin-block-end:var(--ui-chat-scene-name-gap);
}
.compact-main .timeline .chat-sender b{
 display:block;
 margin:0;
 line-height:var(--ui-sender-name-line-ratio);
 overflow-wrap:anywhere;
}
.compact-main .timeline .post>.eyebrow,
.compact-main .timeline .post>h3,
.compact-main .timeline #question.post>.eyebrow{
 font-size:var(--ui-scene-without-name);
}
.compact-main .timeline .post:has(>.chat-sender)>p:first-of-type{
 margin:var(--ui-date-name-body-gap) 0 0!important;
}
.compact-main .timeline .post:has(>.chat-sender[data-chat-sender-id])>p:first-of-type{
 margin-block-start:var(--ui-chat-name-body-gap)!important;
}
.compact-main .timeline .post>.eyebrow+p,
.compact-main .timeline .post>.eyebrow+h3,
.compact-main .timeline .post>h3+p,
.compact-main .timeline .post>b+p{
 margin-block-start:var(--ui-scene-body-gap)!important;
}
.compact-main .timeline .choices,
.compact-main .timeline .goal-buttons,
.relationship-panel .relationship-action-grid,
.relationship-panel .relationship-panel-nav{
 gap:var(--ui-choice-gap-without-note)!important;
}
.compact-main .timeline .choices:not(.life-cards){
 display:flex!important;
 flex-direction:column;
 gap:0!important;
 min-width:0;
}
.compact-main .timeline .choices:not(.life-cards)>*,
.relationship-panel .relationship-action-grid>.ui-action-row{
 margin:0 0 var(--ui-choice-gap-without-note);
}
.compact-main .timeline .choices:not(.life-cards)>.event-action-control:has(>.event-action-note),
.relationship-panel .relationship-action-grid>.ui-action-row:has(.event-action-note){
 margin-block-end:calc(var(--ui-button-gap-with-one-line-note) - var(--ui-note-font) * var(--ui-note-line-ratio) - var(--ui-note-top-gap));
}
.compact-main .timeline .choices:not(.life-cards)>:last-child,
.relationship-panel .relationship-action-grid>.ui-action-row:last-child{
 margin-block-end:0;
}
.compact-main .timeline .choice,
.compact-main .timeline .post button,
.relationship-panel .relationship-action button,
.relationship-panel .relationship-panel-nav button{
 font-size:var(--ui-choice-font);
 line-height:var(--ui-button-line-height);
 min-height:var(--ui-button-min-height);
 padding:var(--ui-button-padding-y) var(--ui-button-padding-x)!important;
 height:auto;
 min-width:0;
 max-width:100%;
 white-space:normal;
 overflow-wrap:anywhere;
}
.event-action-control{min-width:0;max-width:100%}
.event-action-control>button{max-width:100%;width:100%}
.compact-main .timeline .event-action-note,
.compact-main .timeline .event-common-note,
.compact-main .timeline .choice-note,
.compact-main .timeline .help-text,
.compact-main .timeline .rp25-cost,
.compact-main .timeline .my-life-detail,
.compact-main .timeline .encounter-card>small,
.relationship-panel .relationship-action .event-action-note,
.relationship-panel .event-action-note,
.relationship-panel .relationship-action-limit,
.relationship-panel .relationship-operations>p.subtle{
 font-size:var(--ui-note-font);
 line-height:var(--ui-note-line-ratio);
 font-weight:400;
 white-space:normal;
 overflow-wrap:anywhere;
}
.compact-main .timeline .event-action-note,
.compact-main .timeline .event-common-note,
.relationship-panel .event-action-note{
 margin:var(--ui-note-top-gap) 0 0;
}
.event-action-control>.event-action-note{color:var(--muted);line-break:strict}
.compact-main .marriage-progress .event-action-note,
.compact-main .marriage-confirmation .event-action-note,
.compact-main .marriage-confirmation .event-common-note,
.compact-main .male-proposal-conversation .proposal-common-note{
 color:var(--ink);
 letter-spacing:normal;
}
.marriage-progress>.event-action-control{width:100%;max-width:100%;margin-top:8px}
.marriage-progress>.event-action-control>button{width:auto;min-width:144px}
.marriage-progress .marriage-state{margin:8px 0 6px}
.compact-main .proposal-conversation#question{padding:0}
.proposal-conversation .proposal-lines{
 display:grid;
 gap:var(--ui-card-gap);
 min-width:0;
}
.compact-main .timeline .proposal-lines>.post{margin:0}
.compact-main .proposal-conversation .proposal-choices{
 margin:0;
 min-width:0;
}
.proposal-conversation .proposal-choices .choice{width:100%}
.compact-main .my-life-question .choices.life-cards{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:start;
}
.compact-main .my-life-question .life-cards>.choice{
 display:grid;
 align-content:start;
 gap:var(--ui-label-detail-gap);
}
.my-life-question .life-cards>.choice>b{font-size:inherit;font-weight:600;line-height:inherit}
.my-life-question .life-cards>.choice>.my-life-detail{display:block;margin:0;color:var(--muted)}
.compact-main .my-life-question .life-cards>.choice:disabled{opacity:1;background:rgba(252,245,248,.45);border-color:rgba(237,211,223,.45)}
.my-life-question .life-cards>.choice:disabled>b{opacity:.45}
.relationship-panel .relationship-person{gap:var(--ui-icon-text-gap)}
.relationship-panel .relationship-person h2{line-height:var(--ui-post-name-line-ratio);margin:0 0 var(--ui-label-detail-gap)}
.relationship-panel .relationship-person p{font-size:var(--ui-body-font);line-height:var(--ui-body-line-height)}
.relationship-panel .relationship-action-section{margin-top:var(--ui-card-gap)}
.relationship-panel .relationship-action-section h3{
 font-size:var(--ui-scene-without-name);
 line-height:var(--ui-button-line-height);
 margin:0 0 var(--ui-choice-gap-without-note);
}
.relationship-panel .relationship-action-section h3.relationship-action-heading{
 display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;
 column-gap:8px;row-gap:1px;
}
.relationship-action-heading>span{white-space:nowrap}
.relationship-panel .relationship-action-grid{display:flex;flex-direction:column;gap:0!important}
.relationship-panel .ui-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-choice-gap-without-note)}
.relationship-panel .ui-action-row>.relationship-action--wide{grid-column:1/-1}
.relationship-panel .relationship-action button{width:100%;margin:0}
.relationship-panel .relationship-panel-nav{border-top:1px solid var(--line);padding-top:calc(8px + 3pt)}

/* Conversation structure only. All dimensions come from the approved roles. */
.compact-main .timeline #question.conversation-question{padding:0;margin:0}
.compact-main .timeline .conversation-speech{
 display:grid;
 grid-template-columns:var(--ui-icon-width) minmax(0,1fr);
 column-gap:var(--ui-icon-text-gap);
 row-gap:var(--ui-date-name-body-gap);
 align-content:start;
}
.compact-main .timeline .conversation-speech:has([data-chat-sender-id]){row-gap:var(--ui-chat-name-body-gap)}
.compact-main .timeline .conversation-speech>.chat-sender{display:contents}
.compact-main .timeline .conversation-speech>.chat-sender>.avatar{grid-column:1;grid-row:1 / span 2;align-self:start}
.compact-main .timeline .conversation-speech>.chat-sender>div{grid-column:2;grid-row:1;min-width:0}
.compact-main .timeline .conversation-speech:has(>.chat-sender)>p:first-of-type,
.compact-main .timeline .conversation-speech:has(>.chat-sender[data-chat-sender-id])>p:first-of-type{
 grid-column:2;grid-row:2;min-width:0;margin:0!important;
}
.compact-main .timeline .post.separated-choices{padding:0 var(--ui-card-padding);border-color:transparent;background:none;box-shadow:none}
.compact-main .timeline .separated-choices>.choices{margin:0}
.shared-choice-note{color:var(--muted)}
