.s4-composer .s4-fields { border:0; padding:0; margin:0; min-width:0; }
.s4-composer details { margin:12px 0; }
.s4-composer summary { cursor:pointer; color:#557267; }
.s4-composer textarea { min-height:140px; }
.s4-composer .photo-upload { position:relative; display:flex; gap:8px; align-items:center; justify-content:center; padding:16px; cursor:pointer; }
.s4-composer .photo-upload input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.s4-composer .photo-upload:focus-within { outline:2px solid #426d56; outline-offset:3px; }
.s4-media { display:flex; gap:12px; flex-wrap:wrap; margin:12px 0; }
.s4-media > div { display:flex; flex-direction:column; max-width:140px; }
.s4-media img { width:100%; max-height:150px; object-fit:cover; border-radius:10px; }
.s4-checkin { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0; }
.s4-choices { display:grid; gap:12px; }
.s4-choices [data-s4-results] { display:grid; gap:8px; }
.s4-choices [data-s4-results] h3 { margin:8px 0; font-size:.9rem; }
.s4-choices button { text-align:left; white-space:normal; }
.s4-map { height:260px; border-radius:12px; overflow:hidden; margin-bottom:12px; background:#eef3ec; }
.s4-composer .form-submit { flex-wrap:wrap; }
@media(max-width:480px){.s4-map{height:220px}.s4-composer .form-submit > button{flex:1;min-width:100px}}
/* External Check-in Provider v0.1: third-party suggestions are visibly labelled, never styled as GERARAI catalogue rows */
.s4-near { display:flex; gap:8px; align-items:center; font-size:.85rem; color:#5b6476; margin:-4px 0 8px; }
.s4-choices .s4-external { display:flex; justify-content:space-between; gap:8px; align-items:baseline; border-style:dashed; }
.s4-external small { color:#5b6476; font-weight:400; }
.s4-provider { flex:none; font-size:.72rem; padding:2px 8px; border-radius:999px; background:#eef0f4; color:#3a4255; white-space:nowrap; }
.s4-attribution { font-size:.72rem; color:#5b6476; margin:6px 0 0; }
.s4-attribution a { color:inherit; }
.venue-pin { display:inline-flex; align-items:center; gap:4px; transform:translate(-14px,-30px); white-space:nowrap; }
.venue-pin b { width:26px; height:26px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); background:#2d4fd8; border:2px solid #fff; box-shadow:0 2px 6px rgba(16,27,48,.35); }
.venue-pin.external b { background:#fff; border:2px solid #5b6476; }
.venue-pin span { font-size:.72rem; background:rgba(255,255,255,.92); padding:1px 6px; border-radius:6px; color:#101b30; }
/* R20 patch 2: optional Journey country for a point check-in */
.s4-country small{display:block;margin-top:4px;color:#66766d;font-size:12px;line-height:1.5}
/* QA R21: the Story / check-in action row stays visible at the bottom of the dialog (small phones) (#2) */
.s4-composer .form-submit { position:sticky; bottom:0; z-index:3; background:#fff; margin:16px -22px 0; padding:12px 22px; border-top:1px solid #edf0f5; }
@media(max-width:700px){ .s4-composer .form-submit { margin:16px -18px 0; padding:12px 18px; } }
/* QA R21: discard is separated from the save actions and asks for confirmation (#5) */
.s4-discard { margin-top:20px; padding-top:12px; border-top:1px dashed #e3e7ee; }
.s4-discard .text-button { min-height:44px; }
.s4-danger { color:#b42318; }
.s4-discard-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.s4-discard-actions button { min-height:44px; flex:1; }
.s4-discard-actions .s4-danger { border-color:#f0c2bc; }
.s4-discard-q { margin:0; font-size:.88rem; color:#7a271a; }
