* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: #fff; }
body { overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Screenshot status bars are cropped from the assets. The phone OS supplies
   the real clock, signal and battery; safe areas keep content clear of it. */
:root { --usable-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); --usable-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
@supports (height: 100dvh) { :root { --usable-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); } }
.stage { width: 100%; height: 100%; height: 100dvh; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); display: grid; place-items: center; }
.screen { position: relative; width: min(var(--usable-width), calc(var(--usable-height) * 1290 / 2608)); aspect-ratio: 1290 / 2608; }
.page { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.page[hidden] { display: none; }
.tabs { position: absolute; left: 18.1%; top: 92.605675%; width: 63.8%; height: 7.182975%; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 999px; }
.tabs button { appearance: none; -webkit-appearance: none; border: 0; background: transparent; border-radius: 999px; margin: 0; padding: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tabs button:focus-visible { outline: 2px solid #00b9c5; outline-offset: -4px; }
.screen.enrollment-screen { width: min(var(--usable-width), calc(var(--usable-height) * 1320 / 2680)); aspect-ratio: 1320 / 2680; }
.image-action { position: absolute; border: 0; padding: 0; background: transparent; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.image-action:focus-visible { outline: 2px solid #00b9c5; outline-offset: -2px; border-radius: 10px; }
#open-enrollment { left: 4%; top: 15.629908%; width: 17.8%; height: 8.791104%; }
#back-enrollment { left: 3.6%; top: 0.532388%; width: 9%; height: 3.745522%; }
#close-enrollment { right: 3.6%; top: 0.532388%; width: 9%; height: 3.745522%; }
#open-education { left: 2.5%; top: 36.810448%; width: 28.5%; height: 11.022537%; }
#back-education { left: 3.6%; top: 0.532388%; width: 9%; height: 3.745522%; }
#close-education { right: 3.6%; top: 0.532388%; width: 9%; height: 3.745522%; }
#back-education-title { left: 1.5%; top: 5.883134%; width: 9%; height: 4.280597%; }
.education-card { position: absolute; left: 4.24%; top: 29.640448%; width: 91.52%; height: 10.969030%; border-radius: 1.7cqw; background: linear-gradient(105deg, #19ad87, #37c895); color: white; }
.edu-field { position: absolute; border: 0; padding: 0; margin: 0; background: transparent; color: inherit; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; touch-action: none; -webkit-tap-highlight-color: transparent; }
.edu-field:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.edu-school { left: 4.6%; top: 21%; width: 74%; height: 29%; font-size: 4.5cqw; }
.edu-level { right: 4.6%; top: 24%; width: 12%; height: 24%; border-radius: 99px; background: #139b73aa; text-align: center; font-size: 3.4cqw; }
.edu-major { left: 4.6%; bottom: 18%; width: 30.5%; height: 24%; font-size: 3.4cqw; }
.edu-mode { left: 39.8%; bottom: 18%; width: 36%; height: 24%; font-size: 3.4cqw; }
.edu-divider { position: absolute; left: 35.4%; bottom: 20%; height: 18%; border-left: 1px solid #ffffffdd; }
#education-value { width: 100%; padding: 12px; border: 1px solid #c4d8db; border-radius: 10px; font: inherit; -webkit-user-select: text; user-select: text; }
#education-save { background: #00b9c5; color: white; }
#education-error { color: #b33b32; min-height: 20px; margin: 10px 0 0; }
#education-reset { display: block; background: none; color: #65777b; margin: 10px auto -8px; font-size: 13px; }
.feedback-toast { position: fixed; z-index: 10; left: 50%; bottom: max(100px, 16vh); transform: translateX(-50%); width: max-content; max-width: 85vw; padding: 10px 16px; border-radius: 12px; color: white; background: #24383bea; font: 14px/1.5 -apple-system, sans-serif; text-align: center; }
[hidden] { display: none !important; }
.screen { container-type: inline-size; }
.profile-field { position: absolute; border: 0; margin: 0; padding: 0; background: white; text-align: left; color: #383838; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; touch-action: none; -webkit-tap-highlight-color: transparent; }
.avatar-field { left: 4.4%; top: 10.119387%; width: 11.7%; height: 5.789264%; border-radius: 50%; overflow: hidden; background: #eff8f9; text-align: center; font-size: 2.6cqw; color: #829da1; }
.avatar-field img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.name-field { left: 18.6%; top: 10.430291%; width: 53%; height: 3.055445%; font-size: 3.8cqw; font-weight: 600; }
.phone-field { left: 18.6%; top: 13.860966%; width: 53%; height: 2.358589%; font-size: 2.8cqw; font-weight: 400; }
.profile-field span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-field.empty:not(.avatar-field) { color: #9a9a9a; }
.profile-field:focus-visible { outline: 2px solid #00b9c5; }
dialog { width: min(90vw, 380px); max-height: 85dvh; overflow-y: auto; padding: 24px; border: 0; border-radius: 22px; color: #24383b; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: 0 12px 60px #0002; }
dialog::backdrop { background: #10202266; }
dialog h2 { font-size: 21px; margin: 0 0 8px; }
dialog p { font-size: 14px; color: #617176; }
dialog label { display: block; font-size: 14px; margin-bottom: 6px; }
#edit-value { width: 100%; padding: 12px; border: 1px solid #c4d8db; border-radius: 10px; font: inherit; -webkit-user-select: text; user-select: text; }
.editor-actions { display: flex; gap: 12px; margin-top: 18px; }
dialog button, .choose-photo { border: 0; border-radius: 10px; padding: 11px 16px; font: inherit; cursor: pointer; text-align: center; }
.editor-actions button { flex: 1; background: #edf3f4; color: #34484b; }
#save-edit, .choose-photo { background: #00b9c5; color: white; }
#save-edit:disabled { opacity: .5; }
#reset-field { display: block; background: none; color: #65777b; margin: 10px auto -8px; font-size: 13px; }
#edit-error { color: #b33b32; min-height: 20px; margin: 10px 0 0; }
#avatar-preview { display: block; width: 100px; height: 100px; object-fit: cover; border-radius: 50%; margin: 18px auto; }
#avatar-file { max-width: 100%; font-size: 13px; }
#toast { position: fixed; z-index: 10; left: 50%; bottom: max(100px, 16vh); transform: translateX(-50%); width: max-content; max-width: 85vw; padding: 10px 16px; border-radius: 12px; color: white; background: #24383bea; font: 14px/1.5 -apple-system, sans-serif; text-align: center; }
.education-card { cursor: pointer; }
.screen.record-screen { width: min(var(--usable-width), 480px); height: var(--usable-height); aspect-ratio: auto; }
.record-page { pointer-events: auto; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; background: white; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #333; padding-bottom: max(35px, env(safe-area-inset-bottom)); }
.record-header { position: sticky; top: 0; z-index: 2; width: 100%; background: white; }
.record-header img, .record-intro { display: block; width: 100%; height: auto; pointer-events: none; }
.record-header button { position: absolute; top: 0; width: 13%; height: 100%; min-height: 32px; border: 0; padding: 0; background: transparent; cursor: pointer; touch-action: manipulation; }
#back-record { left: 2%; }
#close-record { right: 2%; }
.record-card { margin: 3.7cqw 4.24cqw 0; padding: 5.3cqw 4.3cqw 5.2cqw; border-radius: 1.7cqw; background: linear-gradient(110deg,#18ac86,#36c793); color: white; box-shadow: 0 7px 14px #14b98530; }
.record-card button { border: 0; background: transparent; color: inherit; padding: 0; margin: 0; font: inherit; text-align: left; cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.record-person { display: flex; align-items: flex-start; gap: 3.1cqw; }
.record-photo-group { flex: 0 0 12.4cqw; text-align: center; }
.record-photo-group .record-photo { display: block; width: 12.4cqw; height: 16.4cqw; border: 1px solid #d9e2dd; border-radius: 1.6cqw; overflow: hidden; }
.record-photo img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.record-photo-group > span { display: block; margin-top: 1.2cqw; font-size: 2.6cqw; white-space: nowrap; color: #e5f6f0; }
.record-identity { flex: 1; min-width: 0; padding-top: 2.3cqw; }
.record-identity > button { display: block; font-size: 4.5cqw; min-height: 5.5cqw; width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.record-identity > div { display: flex; gap: 3.2cqw; margin-top: 1cqw; font-size: 3.4cqw; }
.record-identity > div button { min-width: 3cqw; min-height: 5cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-school-row { display: flex; align-items: center; justify-content: space-between; gap: 4cqw; margin-top: 6.4cqw; font-size: 4.5cqw; }
.record-school-row [data-edu="school"] { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-school-row [data-edu="level"] { flex: 0 0 auto; max-width: 25%; border-radius: 99px; padding: .5cqw 2cqw; font-size: 3.4cqw; background: #139b7388; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.record-major-row { display: flex; gap: 3.5cqw; align-items: center; margin-top: 3.2cqw; font-size: 3.4cqw; }
.record-major-row button { min-width: 0; max-width: 51%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-major-row > span { color: #dff8ee; }
.record-table { padding: 5cqw 5cqw 0; margin: 0; }
.record-table > div { display: grid; grid-template-columns: 34% 66%; min-height: 9.1cqw; }
.record-table dt, .record-table dd { margin: 0; padding: 0; min-width: 0; }
.record-table button { display: block; width: 100%; min-height: 9.1cqw; border: 0; background: transparent; padding: 1.2cqw 0; font: 3.5cqw/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: #333; text-align: left; overflow-wrap: anywhere; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.record-table dt button { text-align: right; padding-right: 5cqw; color: #999; }
.record-table dd button:empty::after { content: ""; display: inline-block; }
.record-report { display: block; margin: 5cqw 4.24cqw 0; width: 91.52%; padding: 3.4cqw 0; border: 0; border-radius: 2px; background: #21b78e; color: white; font: 4.4cqw/1.3 -apple-system,sans-serif; }
.record-card button:focus-visible, .record-table button:focus-visible, .record-header button:focus-visible { outline: 2px solid #008d80; outline-offset: 1px; }
#record-value { width: 100%; padding: 12px; border: 1px solid #c4d8db; border-radius: 10px; font: inherit; -webkit-user-select: text; user-select: text; }
#record-save { background: #00b9c5; color: white; }
#record-save:disabled { opacity: .5; }
#record-error { color: #b33b32; min-height: 20px; margin: 10px 0 0; }
#record-reset { display: block; background: none; color: #65777b; margin: 10px auto -8px; font-size: 13px; }
#record-photo-preview { display: block; width: 90px; height: 120px; object-fit: cover; border-radius: 8px; margin: 16px auto; }
#record-photo-file { max-width: 100%; font-size: 13px; }

/* Placeholders are visual only: the stored value stays empty. */
button[data-placeholder]:empty::after { content: attr(data-placeholder); opacity: .65; }
.record-table dd button[data-placeholder]:empty::after { content: attr(data-placeholder); }
