.couple-layout{
  display:grid;gap:16px;align-items:start;
  grid-template-columns:minmax(0,1fr) minmax(220px,.83fr) minmax(0,1fr);
  grid-template-areas:"husband device wife" "log log log";
}
.couple-layout[data-couple-view=husband]{grid-template-columns:minmax(0,1fr) minmax(252px,.75fr);grid-template-areas:"husband device" "log log"}
.couple-layout[data-couple-view=wife]{grid-template-columns:minmax(252px,.75fr) minmax(0,1fr);grid-template-areas:"device wife" "log log"}
[data-couple-panel=husband]{grid-area:husband}
[data-couple-panel=wife]{grid-area:wife}
.couple-device{grid-area:device}
.couple-log{grid-area:log;background:white;border:1px solid var(--line);border-radius:12px}
.couple-app,.couple-device{min-width:0;padding:0 16px 14px}
.couple-app>header,.couple-device>header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border-bottom:1px solid var(--line);padding:15px 0 12px}
.couple-device>header{display:block}
.couple-app h2,.couple-device h2{margin:0;font-size:17px}
.couple-app h3,.couple-device h3{font-size:14px;margin:15px 0 6px}
.couple-device header p,.couple-link-state{font-size:12px;color:var(--soft);margin:3px 0}
.couple-app .open-panel{white-space:nowrap}
.couple-app .message,.couple-device .message{display:grid;gap:4px;margin-bottom:6px;overflow-wrap:anywhere}
.couple-app .message button,.couple-device .message button{justify-self:start}
.couple-app .message small,.couple-device .message small{color:var(--soft)}
.couple-app .speech-buttons{gap:7px;align-items:center}.couple-app .speech-buttons label{font-size:12px}
.couple-app .send-row{flex-wrap:wrap}
.couple-app .send-row .route{flex:1 1 100%}
.couple-app .composer{margin:6px 0}
.couple-compose-hint{display:block;margin:6px 0 0;color:var(--soft);font-size:12px}.couple-compose-hint[hidden]{display:none}
.couple-mail>div,.couple-sent>div,[data-couple-claimed]{max-height:330px;overflow:auto}
.couple-inputs{display:grid;gap:7px;margin:10px 0;font-size:13px}
.couple-inputs label{display:flex;gap:8px;align-items:center}
.couple-inputs select{padding:5px;border:1px solid var(--line);border-radius:6px;background:white}
[data-couple-notice],[data-couple-reaction],.couple-feedback,[data-couple-device-feedback]{font-size:13px;margin:6px 0;line-height:1.5;overflow-wrap:anywhere}
[data-couple-notice][data-waiting=true],[data-couple-reaction]:not(:empty){background:var(--surface);padding:8px;border-radius:6px;font-weight:600}
.couple-sent>summary{font-size:13px}
.couple-room-host{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}
@media(max-width:960px){.couple-layout,.couple-layout[data-couple-view]{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"device device" "husband wife" "log log"}.couple-layout[data-couple-view=husband]{grid-template-areas:"device husband" "log log"}.couple-layout[data-couple-view=wife]{grid-template-areas:"device wife" "log log"}}
@media(max-width:640px){.couple-layout,.couple-layout[data-couple-view]{grid-template-columns:minmax(0,1fr);grid-template-areas:"device" "husband" "wife" "log"}.couple-layout[data-couple-view=husband]{grid-template-areas:"device" "husband" "log"}.couple-layout[data-couple-view=wife]{grid-template-areas:"device" "wife" "log"}}
