:root { color-scheme: light; font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #172237; background: #f4f6f5; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: hidden; background: #f4f6f5; }
body { min-width: 0; min-height: 100dvh; margin: 0; overflow-x: hidden; background: #f4f6f5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.roommate-shell { width: 430px; min-height: 100dvh; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom)); }
.roommate-header { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: 14px; }
.roommate-back { display: inline-flex; align-items: center; gap: 7px; color: #536686; font-size: 13px; font-weight: 760; text-decoration: none; }
.roommate-back span { font-size: 18px; line-height: 1; }
.roommate-demo { padding: 5px 8px; border: 1px solid #d7e0f4; border-radius: 999px; color: #58709c; background: rgba(255,255,255,.78); font-size: 10px; font-weight: 800; }
.roommate-hero { padding: 19px 20px 18px; border: 1px solid #d5dcd8; border-radius: 8px; color: #172237; background: #fff; box-shadow: none; }
.roommate-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.roommate-hero__icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; color: #fff; background: #1e4a76; font-size: 20px; font-weight: 800; }
.roommate-hero__live { display: inline-flex; align-items: center; gap: 6px; color: #49655c; font-size: 11px; font-weight: 800; }
.roommate-hero__live i { width: 7px; height: 7px; border-radius: 50%; background: #31a574; box-shadow: 0 0 0 4px #e3f4ea; }
.roommate-eyebrow { margin: 0; color: #567899; font-size: 10px; font-weight: 900; letter-spacing: .12em; line-height: 1.25; }
.roommate-hero .roommate-eyebrow { margin-top: 18px; color: #547794; }
.roommate-hero h1 { margin: 6px 0 0; color: #172237; font-size: clamp(29px, 8vw, 38px); letter-spacing: 0; line-height: 1.16; }
.roommate-hero > p:not(.roommate-eyebrow) { max-width: 360px; margin: 9px 0 0; color: #667788; font-size: 13px; line-height: 1.65; }
.roommate-hero__school { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 14px; color: #42566b; }
.roommate-hero__school span { color: #c58423; font-size: 12px; }
.roommate-hero__school strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.roommate-card { margin-top: 12px; border: 1px solid #d8dfdb; border-radius: 8px; background: #fff; box-shadow: none; }
.roommate-notice { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 13px 14px; border-color: #e4d9b4; background: #fffaf0; }
.roommate-notice span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #82652c; background: #f8e4a9; font-family: Georgia, serif; font-size: 14px; font-weight: 800; }
.roommate-notice p { margin: 1px 0 0; color: #7a6a48; font-size: 11px; line-height: 1.58; }
.roommate-form-card { padding: 20px; border-top: 4px solid #2b745e; }
.roommate-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.roommate-section-heading > div { min-width: 0; }
.roommate-section-heading h2, .roommate-how h2 { margin: 5px 0 0; color: #1b2c3f; font-size: 21px; letter-spacing: 0; }
.roommate-step { flex: 0 0 auto; padding: 6px 8px; border-radius: 5px; color: #267052; background: #e8f5ee; font-size: 10px; font-weight: 850; }
#roommateForm { display: grid; gap: 13px; }
#roommateForm > label:not(.roommate-consent) { display: grid; gap: 7px; color: #485c7d; font-size: 12px; font-weight: 800; }
#roommateForm select, #roommateForm input[type="text"], #roommateForm input:not([type]) { width: 100%; min-width: 0; height: 48px; padding: 0 13px; border: 1px solid #cbd5d1; border-radius: 6px; outline: none; color: #263852; background: #fff; font-size: 15px; font-weight: 650; transition: border-color .18s, box-shadow .18s; }
#roommateForm select:focus, #roommateForm input:focus { border-color: #2b745e; box-shadow: 0 0 0 3px rgba(43,116,94,.12); }
#roommateForm select:disabled, #roommateForm input:disabled { color: #a0aaba; background: #f4f6fa; }
#roommateForm small { color: #8694a8; font-size: 10px; font-weight: 600; line-height: 1.5; }
#buildingActivityHint { min-height: 16px; color: #4f8570; font-weight: 760; }
.roommate-progress-card { position: relative; padding: 16px; border: 1px solid #2a485d; border-radius: 6px; background: #183248; transition: border-color .2s, background .2s; }
.roommate-progress-card.is-empty { border-style: solid; border-color: #cbd5d1; background: #f8fbfa; }
.roommate-progress-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.roommate-progress-card__head > div { min-width: 0; }
.roommate-progress-card__head span, .roommate-progress-card__head strong { display: block; }
.roommate-progress-card__head span { overflow: hidden; color: #afc4d2; font-size: 10px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.roommate-progress-card__head strong { margin-top: 3px; color: #fff; font-size: 16px; }
.roommate-progress-card__head em { flex: 0 0 auto; padding: 5px 7px; border-radius: 4px; color: #d7eee5; background: #2c6658; font-size: 10px; font-style: normal; font-weight: 850; }
.roommate-progress-card.is-empty .roommate-progress-card__head span { color: #74889a; }
.roommate-progress-card.is-empty .roommate-progress-card__head strong { color: #35516a; }
.roommate-progress-card.is-empty .roommate-progress-card__head em { color: #52748a; background: #eaf1ee; }
.roommate-bed-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-top: 15px; }
.roommate-bed { display: grid; min-height: 47px; place-items: center; border: 1px dashed #7990a0; border-radius: 5px; color: #b7c4cc; background: #214157; font-size: 16px; transition: transform .18s, background .18s, border-color .18s; }
.roommate-bed.is-filled { border: 1px solid #71d29f; color: #183e32; background: #8ee1b2; box-shadow: none; }
.roommate-bed.is-current { border: 1px solid #8fbbe7; color: #153c5d; background: #bddaf1; }
.roommate-progress-card.is-empty .roommate-bed { border-color: #d2ddd7; color: #a4b1ad; background: #fff; }
.roommate-progress-card p { margin: 11px 0 0; color: #b8cbd5; font-size: 10px; line-height: 1.58; }
.roommate-progress-card.is-empty p { color: #76879e; }
.roommate-consent { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid #dbe3df; border-radius: 6px; color: #66758a; background: #fafcfb; font-size: 10px; font-weight: 650; line-height: 1.6; cursor: pointer; }
.roommate-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: #3e7cf0; }
.roommate-submit { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 53px; border: 0; border-radius: 6px; color: #fff; background: #2b745e; box-shadow: none; font-size: 15px; font-weight: 850; transition: transform .16s, opacity .16s, box-shadow .16s; }
.roommate-submit:hover:not(:disabled) { transform: translateY(-1px); background: #215d4a; box-shadow: none; }
.roommate-submit:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.roommate-existing-submission { display: grid; gap: 12px; padding: 14px; border: 1px solid #efcf86; border-radius: 14px; background: #fffaf0; }
.roommate-existing-submission div { display: grid; gap: 4px; }
.roommate-existing-submission span { color: #8b651d; font-size: 10px; font-weight: 850; }
.roommate-existing-submission strong { color: #5d4825; font-size: 14px; }
.roommate-existing-submission p { margin: 0; color: #776544; font-size: 11px; line-height: 1.55; }
.roommate-existing-submission button { min-height: 42px; border: 1px solid #d8bd7a; border-radius: 11px; color: #765617; background: #fff; font-size: 12px; font-weight: 850; }
.roommate-existing-submission button:disabled { cursor: not-allowed; opacity: .58; }
.roommate-how { padding: 20px 21px; }
.roommate-how h2 { font-size: 17px; }
.roommate-how ol { display: grid; gap: 10px; margin: 17px 0 0; padding: 0; list-style: none; }
.roommate-how li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; color: #68788f; font-size: 11px; line-height: 1.5; }
.roommate-how b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #376fdf; background: #ecf3ff; font-size: 9px; }
.roommate-unavailable { display: grid; justify-items: center; gap: 9px; padding: 42px 22px; margin-top: 14px; border: 1px solid #dbe4f0; border-radius: 20px; color: #63748e; background: rgba(255,255,255,.86); text-align: center; }
.roommate-unavailable > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; color: #5f84c8; background: #eff5ff; font-size: 24px; }
.roommate-unavailable h2 { margin: 6px 0 0; color: #354965; font-size: 18px; }
.roommate-unavailable p { max-width: 310px; margin: 0; font-size: 12px; line-height: 1.65; }
.roommate-unavailable a { margin-top: 7px; color: #3b76e5; font-size: 12px; font-weight: 800; text-decoration: none; }
.roommate-footer { padding: 22px 8px 7px; color: #8793a6; font-size: 10px; line-height: 1.55; text-align: center; }
.roommate-footer p { margin: 0; }
.roommate-footer .filing-record { margin-top: 6px; }
.roommate-success-overlay, .roommate-qr-overlay { position: fixed; z-index: 20; inset: 0; display: grid; place-items: end center; padding: 20px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: rgba(25,38,64,.44); backdrop-filter: blur(7px); }
.roommate-success-overlay[hidden], .roommate-qr-overlay[hidden] { display: none; }
.roommate-success-modal { position: relative; width: min(100%, 430px); max-height: min(780px, calc(100dvh - 38px)); overflow-y: auto; padding: 29px 22px 22px; border-radius: 25px; background: #fff; box-shadow: 0 26px 80px rgba(13,31,76,.31); animation: roommate-rise .22s ease both; }
.roommate-modal-close { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 59px; height: 35px; padding: 0 8px; border: 0; border-radius: 12px; color: #68788d; background: #f1f5fa; font-size: 11px; font-weight: 800; line-height: 1; }
.roommate-modal-close span:first-child { font-size: 23px; font-weight: 500; }
.roommate-success-mark { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 17px; color: #1c9b63; background: #e9f9ef; font-size: 27px; font-weight: 900; }
.roommate-success-modal h2 { margin: 7px 0 0; color: #233452; font-size: 28px; letter-spacing: -.05em; }
.roommate-success-modal > p:not(.roommate-eyebrow) { margin: 9px 0 0; color: #718199; font-size: 13px; line-height: 1.63; }
.roommate-success-exit { display: grid; grid-template-columns: 1.18fr 1fr; gap: 9px; margin-top: 16px; }
.roommate-success-exit a, .roommate-success-exit button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 850; text-align: center; text-decoration: none; }
.roommate-success-exit a { border: 0; color: #fff; background: #407cf0; box-shadow: 0 8px 16px rgba(54,112,224,.17); }
.roommate-success-exit button { border: 1px solid #d7e2f3; color: #526a92; background: #f9fbff; }
.roommate-success-progress { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; align-items: center; margin-top: 18px; padding: 13px; border: 1px solid #d8e7de; border-radius: 14px; background: #f5fbf7; }
.roommate-success-progress span, .roommate-success-progress strong { display: block; }
.roommate-success-progress span { color: #6b8b79; font-size: 10px; font-weight: 800; }
.roommate-success-progress strong { margin-top: 4px; color: #277354; font-size: 15px; }
.roommate-success-beds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.roommate-success-beds i { display: block; height: 8px; border-radius: 99px; background: #dbe7de; }
.roommate-success-beds i.is-filled { background: #43b77a; }
.roommate-bedding-overlay { position: fixed; z-index: 25; inset: 0; display: grid; place-items: center; padding: 20px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: rgba(25,38,64,.52); backdrop-filter: blur(8px); }
.roommate-bedding-overlay[hidden] { display: none; }
.roommate-bedding-modal { position: relative; width: min(100%, 390px); padding: 29px 22px 22px; border: 1px solid #f0dfae; border-radius: 24px; background: #fffdf8; box-shadow: 0 26px 80px rgba(31,43,65,.31); animation: roommate-rise .22s ease both; }
.roommate-bedding-modal__mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; color: #875d15; background: #ffedbd; font-size: 18px; font-weight: 900; }
.roommate-bedding-modal h2 { margin: 8px 0 0; color: #493c24; font-size: 25px; letter-spacing: 0; }
.roommate-bedding-modal > p:not(.roommate-eyebrow) { margin: 10px 0 0; color: #806f4e; font-size: 13px; line-height: 1.65; }
.roommate-bedding-modal__actions { display: grid; grid-template-columns: 1fr 1.1fr; gap: 9px; margin-top: 20px; }
.roommate-bedding-modal__actions button, .roommate-bedding-modal__actions a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 46px; padding: 0 10px; border-radius: 12px; font-size: 11px; font-weight: 850; text-align: center; text-decoration: none; }
.roommate-bedding-modal__actions button { border: 1px solid #e6d9bb; color: #75664e; background: #fff; }
.roommate-bedding-modal__actions a { color: #fff; background: #c98820; }
.roommate-bedding-modal__actions a b { font-size: 15px; }
.roommate-success-invite { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 14px; padding: 12px 13px; border: 1px solid #d9e5fb; border-radius: 14px; background: #f7faff; }
.roommate-success-invite > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #376fd5; background: #e9f1ff; font-size: 18px; font-weight: 900; }
.roommate-success-invite div { display: grid; gap: 3px; min-width: 0; }
.roommate-success-invite strong { color: #365273; font-size: 12px; }
.roommate-success-invite small { color: #788aa3; font-size: 10px; line-height: 1.5; }
.roommate-group-card { display: grid; gap: 13px; margin-top: 14px; padding: 15px; border: 1px solid #cfe8df; border-radius: 17px; background: linear-gradient(145deg, #f3fbf6, #f9fdfb); }
.roommate-form-card[hidden], .roommate-unavailable[hidden], .roommate-group-card[hidden], .roommate-contact-card[hidden], .roommate-activity-card[hidden] { display: none; }
.roommate-group-card__heading { display: flex; align-items: center; gap: 10px; }
.roommate-group-card__heading > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: #209567; background: #e2f6ea; font-size: 18px; }
.roommate-group-card__heading div { display: grid; gap: 3px; min-width: 0; }
.roommate-group-card__heading strong { overflow: hidden; color: #267052; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.roommate-group-card__heading small { color: #6d8b7d; font-size: 10px; line-height: 1.4; }
.roommate-group-qr { display: grid; justify-items: center; gap: 8px; width: 100%; padding: 13px; border: 1px solid #bcdccf; border-radius: 14px; color: #257255; background: #fff; font-size: 12px; font-weight: 820; }
.roommate-group-qr img { display: block; width: min(100%, 210px); aspect-ratio: 1; object-fit: contain; }
.roommate-contact-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 13px; border: 1px solid #dce5f2; border-radius: 14px; background: #f8fbff; }
.roommate-contact-card div { display: grid; min-width: 0; gap: 3px; }
.roommate-contact-card span { color: #72829a; font-size: 10px; font-weight: 760; }
.roommate-contact-card strong { overflow: hidden; color: #334863; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.roommate-contact-card button { flex: 0 0 auto; min-height: 34px; padding: 0 10px; border: 0; border-radius: 10px; color: #fff; background: #4a82ef; font-size: 11px; font-weight: 820; }
.roommate-success-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 16px; }
.roommate-success-actions button { min-height: 47px; border-radius: 13px; font-size: 13px; font-weight: 850; }
.roommate-share { border: 0; color: #fff; background: #407cf0; }
.roommate-edit { border: 1px solid #d3deef; color: #506a95; background: #fff; }
.roommate-single-submit-note { margin: 10px 0 0; padding: 10px 11px; border-radius: 11px; color: #796947; background: #fff8e8; font-size: 10px; line-height: 1.55; text-align: left; }
.roommate-withdraw { display: block; width: 100%; min-height: 38px; margin-top: 9px; border: 0; color: #7a8290; background: transparent; font-size: 11px; font-weight: 760; text-decoration: underline; text-underline-offset: 3px; }
.roommate-withdraw:hover { color: #425f90; }
.roommate-qr-overlay { place-items: center; }
.roommate-qr-modal { position: relative; width: min(100%, 410px); padding: 31px 24px 24px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 26px 80px rgba(13,31,76,.31); }
.roommate-qr-modal > button { position: absolute; top: 13px; right: 13px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 11px; color: #8594a9; background: #f4f7fb; font-size: 24px; }
.roommate-qr-modal h2 { margin: 7px 0 15px; color: #2d405c; font-size: 20px; }
.roommate-qr-modal img { display: block; width: min(100%, 300px); margin: 0 auto; aspect-ratio: 1; object-fit: contain; }
.roommate-toast { position: fixed; z-index: 30; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; width: min(calc(100% - 36px), 430px); padding: 11px 13px; border-radius: 12px; color: #fff; background: rgba(31,48,78,.94); box-shadow: 0 12px 30px rgba(16,30,56,.2); font-size: 12px; line-height: 1.5; text-align: center; transform: translateX(-50%); }
.roommate-toast[hidden] { display: none; }
.tech-countdown { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 12px; padding: 13px 16px; border: 1px solid #1e496e; border-radius: 17px; color: #eaf7ff; background: #102b43; box-shadow: 0 12px 28px rgba(16,43,67,.16); }
.tech-countdown[hidden] { display: none; }
.tech-countdown p { margin: 0; color: #b9d5e9; font-size: 11px; font-weight: 800; }
.tech-countdown div { display: flex; align-items: baseline; gap: 5px; }
.tech-countdown b { min-width: 27px; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: 0; text-align: center; }
.tech-countdown span { color: #86b8d4; font-size: 10px; }
.roommate-activity-countdown { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 13px 0; padding: 10px 12px; border: 1px solid #cde5dc; border-radius: 12px; color: #39745e; background: #f1faf5; }
.roommate-activity-countdown[hidden] { display: none; }
.roommate-activity-countdown span { font-size: 11px; font-weight: 800; }
.roommate-activity-countdown strong { color: #1d5b49; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.roommate-activity-card { padding: 20px; border-color: #e8dcba; background: #fffdf8; }
.roommate-activity-head, .roommate-activity-ranking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.roommate-activity-head h2 { margin: 5px 0 0; color: #31435d; font-size: 20px; }
.roommate-activity-head > span { flex: 0 0 auto; min-height: 28px; padding: 6px 10px; border-radius: 999px; color: #815d18; background: #fff0c9; font-size: 10px; font-weight: 850; }
.roommate-activity-description { margin: 12px 0 0; color: #66778f; font-size: 12px; line-height: 1.65; }
.roommate-activity-awards { display: grid; gap: 7px; margin-top: 14px; }
.roommate-activity-award { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #eddfb9; border-radius: 12px; background: #fff8e6; }
.roommate-activity-award > span { display: grid; min-height: 31px; place-items: center; border-radius: 9px; color: #805d1d; background: #ffebbd; font-size: 9px; font-weight: 850; text-align: center; }
.roommate-activity-award div { display: grid; gap: 2px; min-width: 0; }
.roommate-activity-award small { overflow: hidden; color: #8f7b50; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.roommate-activity-award strong { overflow: hidden; color: #554321; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.roommate-activity-rules { margin-top: 10px; color: #738198; font-size: 10px; line-height: 1.6; }
.roommate-activity-rules span { color: #526783; font-weight: 850; }
.roommate-activity-rules p { margin: 3px 0 0; }
.roommate-activity-ranking-head { align-items: flex-end; margin-top: 16px; }
.roommate-activity-ranking-head strong { color: #3a4d69; font-size: 13px; }
.roommate-activity-ranking-head small { color: #8794a7; font-size: 9px; text-align: right; }
.roommate-activity-ranking { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.roommate-activity-ranking li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 48px; padding: 8px 10px; border: 1px solid #e4e9f1; border-radius: 12px; background: #fff; }
.roommate-activity-ranking li > b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #466289; background: #edf2f9; font-size: 11px; }
.roommate-activity-ranking li.is-award > b { color: #795614; background: #fff0c7; }
.roommate-activity-ranking li div { display: grid; gap: 2px; min-width: 0; }
.roommate-activity-ranking li strong { overflow: hidden; color: #40516b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.roommate-activity-ranking li small { color: #8793a5; font-size: 9px; }
.roommate-activity-ranking li > span { color: #36577e; font-size: 10px; font-weight: 850; white-space: nowrap; }
.roommate-public-ranking { padding: 20px; border-color: #183248; background: #183248; color: #fff; }
.roommate-public-ranking__buildings { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 14px 0 18px; }
.roommate-public-ranking .roommate-section-heading { align-items: end; margin-bottom: 14px; }
.roommate-public-ranking .roommate-eyebrow { color: #89b3c7; }
.roommate-public-ranking .roommate-section-heading h2 { color: #fff; }
.roommate-public-ranking #completedRoomCount { align-self: end; padding: 7px 9px; border: 1px solid #4e7286; border-radius: 4px; color: #d7eee5; background: #285567; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 850; line-height: 1.2; text-align: right; white-space: nowrap; }
.roommate-public-ranking__buildings > div { display: grid; gap: 4px; padding: 12px; border: 1px solid #365b70; border-radius: 5px; background: #214157; }
.roommate-public-ranking__buildings strong { font-size: 14px; color: #fff; }
.roommate-public-ranking__buildings span, .roommate-public-ranking__buildings p { margin: 0; font-size: 13px; color: #a8c0cc; }
.roommate-live-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 13px; }
.roommate-live-metrics > div { display: grid; gap: 3px; padding: 11px; border-left: 3px solid #7cdfad; border-radius: 4px; background: #214157; }
.roommate-live-metrics strong { color: #a3e9c3; font-size: 24px; font-variant-numeric: tabular-nums; }
.roommate-live-metrics span, .roommate-live-update { color: #a8c0cc; font-size: 10px; line-height: 1.5; }
.roommate-live-update { min-height: 15px; margin: -5px 0 13px; }
.roommate-public-ranking .roommate-activity-ranking-head { padding-top: 13px; border-top: 1px solid #365b70; }
.roommate-public-ranking .roommate-activity-ranking-head strong { color: #fff; }
.roommate-public-ranking .roommate-activity-ranking-head small { color: #9eb7c4; }
.roommate-public-ranking .roommate-activity-ranking li { border-color: #365b70; background: #214157; }
.roommate-public-ranking .roommate-activity-ranking li > b { color: #d7eee5; background: #2c6658; }
.roommate-public-ranking .roommate-activity-ranking li strong { color: #fff; }
.roommate-public-ranking .roommate-activity-ranking li small, .roommate-public-ranking .roommate-activity-ranking li > span { color: #b1c6d0; }
.roommate-public-ranking .roommate-activity-empty { color: #aac0cb; background: #214157; }
.roommate-own-status { padding: 20px; border-color: #cfe7d9; background: #fbfffc; }
.roommate-own-status .roommate-section-heading { margin-bottom: 8px; }
.roommate-own-status .roommate-section-heading > span { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: #8d641b; background: #fff0cf; font-size: 10px; font-weight: 850; }
.roommate-own-status.is-matched .roommate-section-heading > span { color: #267052; background: #e5f7eb; }
.roommate-own-status__room, .roommate-own-status__message { margin: 0; color: #708099; font-size: 11px; line-height: 1.55; }
.roommate-own-status__progress { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; align-items: center; margin-top: 13px; padding: 12px; border: 1px solid #dceae2; border-radius: 12px; background: #fff; }
.roommate-own-status__progress strong { color: #286d53; font-size: 15px; }
.roommate-own-status__message { margin-top: 10px; }
.roommate-own-status__award { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 12px; padding: 11px; border: 1px solid #eadba9; border-radius: 12px; background: #fffaf0; }
.roommate-own-status__award div { display: grid; gap: 3px; min-width: 0; }
.roommate-own-status__award span, .roommate-own-status__award small { color: #876d3b; font-size: 10px; line-height: 1.45; }
.roommate-own-status__award span { font-weight: 850; }
.roommate-own-status__award strong { overflow: hidden; color: #5d4825; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.roommate-own-status__award code { padding: 8px 9px; border-radius: 9px; color: #3b614f; background: #eaf8ef; font: 850 15px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; }
.roommate-own-status__group { display: grid; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #dceae2; }
.roommate-own-status__group div { display: grid; gap: 2px; }
.roommate-own-status__group strong { color: #26684f; font-size: 13px; }
.roommate-own-status__group small { color: #6d8a7c; font-size: 10px; }
.roommate-completion-card { display: grid; gap: 3px; margin-top: 12px; padding: 12px; border: 1px solid #f0d28c; border-radius: 12px; color: #735622; background: #fff9ea; }
.roommate-completion-card span { font-size: 10px; font-weight: 850; }
.roommate-completion-card strong { font-size: 15px; }
.roommate-completion-card p, .roommate-return-hint { margin: 0; font-size: 10px; line-height: 1.55; }
.roommate-own-status__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.roommate-own-status__actions button { min-height: 43px; border-radius: 12px; font-size: 11px; font-weight: 850; }
.roommate-secondary-action { border: 1px solid #cddced; color: #426a99; background: #fff; }
.roommate-return-hint { margin-top: 10px; padding: 9px 10px; border-radius: 9px; color: #527164; background: #edf8f1; }
.roommate-withdraw--inline { margin-top: 7px; }
.roommate-own-status.is-updated { animation: roommate-ranking-update .75s ease-out; }
.roommate-public-ranking.is-updated { animation: roommate-ranking-update .75s ease-out; }
@keyframes roommate-ranking-update { 0% { outline: 0 solid rgba(47, 138, 102, 0); background: #fff; } 35% { outline: 3px solid rgba(47, 138, 102, .2); background: #f2fbf6; } 100% { outline: 0 solid rgba(47, 138, 102, 0); background: #fff; } }
.roommate-activity-empty { margin: 10px 0 0; padding: 12px; border-radius: 11px; color: #8491a4; background: #f6f8fb; font-size: 10px; text-align: center; }
.roommate-activity-fulfillment { margin: 10px 0 0; color: #8a7a5f; font-size: 9px; line-height: 1.55; }
.roommate-activity-progress { margin: 10px 0 0; padding: 9px 10px; border-radius: 10px; color: #72571f; background: #fff4d8; font-size: 10px; font-weight: 760; line-height: 1.55; }
.roommate-activity-progress[hidden] { display: none; }
@keyframes roommate-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (min-width: 461px) { body { display: grid; grid-template-columns: 1fr; justify-items: center; } .roommate-shell { box-shadow: 0 0 0 1px rgba(200,214,239,.7), 0 20px 60px rgba(41,70,127,.10); } }
@media (max-width: 460px) { .roommate-shell { width: 100%; padding-right: 13px; padding-left: 13px; } .roommate-hero { padding: 20px 16px 18px; border-radius: 8px; } .roommate-form-card { padding: 19px 16px; } .roommate-section-heading { gap: 9px; } .roommate-section-heading h2 { font-size: 20px; } .roommate-public-ranking .roommate-section-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: 14px; } .roommate-public-ranking #completedRoomCount { align-self: end; padding: 6px 8px; font-size: 11px; } .roommate-bed-grid { gap: 5px; } .roommate-bed { min-height: 42px; border-radius: 5px; } .roommate-success-modal, .roommate-bedding-modal { padding: 27px 17px 17px; border-radius: 12px; } .roommate-success-progress, .roommate-own-status__progress, .roommate-bedding-modal__actions, .roommate-own-status__award { grid-template-columns: 1fr; } .roommate-success-actions { grid-template-columns: 1fr; } .roommate-success-exit { gap: 7px; } .roommate-success-exit a, .roommate-success-exit button { min-height: 47px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Soft, platform-native surface treatment for student-facing interaction pages. */
.roommate-shell { width: min(430px, 100%); }
.roommate-hero, .roommate-card, .roommate-unavailable { border-radius: 24px; box-shadow: 0 12px 30px rgba(28, 45, 69, .06); }
.roommate-hero { border-color: #e1e6e3; }
.roommate-form-card { border-top-width: 3px; }
#roommateForm select, #roommateForm input[type="text"], #roommateForm input:not([type]), .roommate-consent { border-radius: 14px; }
.roommate-progress-card { border-radius: 18px; }
.roommate-bed { border-radius: 10px; }
.roommate-submit { border-radius: 15px; box-shadow: 0 9px 16px rgba(43, 116, 94, .18); }
.roommate-public-ranking { border-radius: 24px; box-shadow: 0 15px 32px rgba(21, 47, 68, .16); }
.roommate-public-ranking__buildings > div, .roommate-live-metrics > div, .roommate-public-ranking .roommate-activity-ranking li { border-radius: 14px; }
.feature-carousel { overflow: hidden; margin-top: 12px; border: 1px solid #e0e5e8; border-radius: 22px; background: #fff; box-shadow: 0 12px 28px rgba(28, 45, 69, .07); }
.feature-carousel__viewport { overflow: hidden; aspect-ratio: 4 / 1; background: #edf1f4; }
.feature-carousel__track { display: flex; width: 100%; height: 100%; transition: transform .42s ease; }
.feature-carousel__track img { display: block; flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.feature-carousel__footer { display: grid; place-items: center; min-height: 24px; padding: 0 14px; }
.feature-carousel__dots { display: flex; justify-content: center; gap: 5px; }
.feature-carousel__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: #d4dce0; transition: width .2s, background .2s; }
.feature-carousel__dots button.is-active { width: 18px; background: #2b745e; }

/* Keep the invitation compact so the school ad is a first-screen signal. */
.roommate-hero { padding: 15px 18px 14px; }
.roommate-hero__icon { width: 30px; height: 30px; border-radius: 9px; font-size: 17px; }
.roommate-hero .roommate-eyebrow { margin-top: 10px; font-size: 9px; }
.roommate-hero h1 { margin-top: 4px; font-size: clamp(24px, 5vw, 31px); line-height: 1.18; }
.roommate-hero > p:not(.roommate-eyebrow) { margin-top: 6px; font-size: 11px; line-height: 1.5; }
.roommate-hero__school { margin-top: 8px; }
.feature-carousel { margin-top: 10px; }
.feature-carousel__viewport { aspect-ratio: 4 / 1; }

/* Returning students see one clear progress surface before the public board. */
body.has-roommate-submission .roommate-header { margin-bottom: 10px; }
body.has-roommate-submission .roommate-own-status { margin-top: 8px; }
.roommate-own-status { position: relative; overflow: hidden; border-width: 2px; box-shadow: 0 16px 34px rgba(41, 118, 87, .11); }
.roommate-own-status::before { position: absolute; top: 0; right: 24px; left: 24px; height: 3px; border-radius: 0 0 999px 999px; background: #44ba7e; content: ""; }
.roommate-own-status .roommate-section-heading h2 { font-size: 24px; }
.roommate-own-status__room { margin-top: 2px; font-size: 12px; font-weight: 720; }
.roommate-own-status__progress { min-height: 76px; border-color: #cfe7d9; border-radius: 16px; background: #f7fcf9; }
.roommate-own-status__progress strong { font-size: 18px; }
.roommate-own-status__message { color: #557c6b; font-size: 12px; }
.roommate-own-status__actions button { min-height: 48px; }
.roommate-own-status .roommate-share { background: #2b745e; box-shadow: 0 9px 16px rgba(43, 116, 94, .18); }
@media (max-width: 460px) {
  .roommate-own-status { padding: 18px 15px 16px; border-radius: 22px; }
  .roommate-own-status .roommate-section-heading h2 { font-size: 22px; }
  .roommate-own-status__progress { min-height: 0; padding: 13px; }
  .roommate-own-status__progress strong { font-size: 17px; }
  .roommate-own-status__message { font-size: 11px; line-height: 1.65; }
  .roommate-own-status__actions { gap: 8px; margin-top: 15px; }
  .roommate-own-status__actions button { min-height: 47px; }
}

/* First visit is a registration task. Keep the action card within the first phone viewport. */
@media (max-width: 460px) {
  .roommate-shell { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .roommate-header { min-height: 28px; margin-bottom: 8px; }
  .roommate-back { gap: 5px; font-size: 12px; }
  .roommate-back span { font-size: 16px; }
  .roommate-hero { padding: 13px 15px 12px; border-radius: 20px; }
  .roommate-hero__icon { width: 28px; height: 28px; border-radius: 9px; font-size: 16px; }
  .roommate-hero__live { font-size: 10px; }
  .roommate-hero__live i { width: 6px; height: 6px; box-shadow: 0 0 0 3px #e3f4ea; }
  .roommate-hero .roommate-eyebrow { margin-top: 10px; font-size: 9px; }
  .roommate-hero h1 { margin-top: 4px; font-size: 24px; line-height: 1.18; }
  .roommate-hero > p:not(.roommate-eyebrow) { margin-top: 6px; font-size: 11px; line-height: 1.5; }
  .roommate-hero__school { margin-top: 8px; }
  .roommate-hero__school strong { font-size: 10px; }
  .tech-countdown { margin-top: 8px; padding: 10px 12px; border-radius: 15px; }
  .tech-countdown p { font-size: 10px; }
  .tech-countdown b { min-width: 22px; font-size: 16px; }
  .roommate-notice { grid-template-columns: 19px minmax(0, 1fr); gap: 7px; margin-top: 8px; padding: 9px 11px; border-radius: 15px; }
  .roommate-notice span { width: 18px; height: 18px; font-size: 12px; }
  .roommate-notice p { font-size: 10px; line-height: 1.45; }
  .roommate-form-card { margin-top: 10px; padding: 17px 15px; border-radius: 20px; }
  .roommate-section-heading { margin-bottom: 13px; }
  .roommate-section-heading h2 { margin-top: 3px; font-size: 18px; }
  #roommateForm { gap: 10px; }
  #roommateForm select, #roommateForm input[type="text"], #roommateForm input:not([type]) { height: 45px; font-size: 14px; }
  .roommate-progress-card { padding: 12px; }
  .roommate-bed-grid { margin-top: 10px; }
  .roommate-bed { min-height: 37px; }
  .roommate-progress-card p { margin-top: 8px; }
  .roommate-consent { padding: 9px 10px; }
  .roommate-submit { min-height: 48px; font-size: 14px; }
  .feature-carousel { margin-top: 10px; border-radius: 18px; }
  .feature-carousel__viewport { aspect-ratio: 4 / 1; }
  .feature-carousel__footer { min-height: 22px; padding: 0 12px; }
  .roommate-public-ranking { padding: 17px 15px; border-radius: 20px; }
  .roommate-live-metrics { margin-top: 10px; gap: 7px; }
  .roommate-live-metrics > div { min-height: 63px; padding: 10px; }
  .roommate-public-ranking__buildings { margin-top: 10px; }
  .roommate-public-ranking .roommate-activity-empty { margin-top: 8px; padding: 10px; }
}
