.profile-main { width: min(100%, 680px); margin: 0 auto; padding: clamp(28px, 6vw, 54px) var(--gutter) 46px; flex: 1; }
.profile-heading, .profile-options { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.profile-main h1 { margin: 0; font-size: clamp(1.75rem, 5.6vw, 2.45rem); letter-spacing: -.04em; }
.profile-main h2 { margin: 26px 0 12px; font-size: 1.2rem; }
.profile-main h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
.profile-main p { color: var(--muted); line-height: 1.5; }
.profile-main [hidden] { display: none !important; }
.profile-main fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-panel, .profile-booking { display: grid; gap: 16px; margin: 16px 0; padding: clamp(18px, 5vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--card-shadow); }
.profile-panel p { margin: 0; }
.profile-main label { display: grid; gap: 7px; font-weight: 600; font-size: .95rem; }
.profile-main :is(input:not([type="radio"]), select) { width: 100%; min-width: 0; min-height: 46px; font: inherit; font-weight: 400; color: var(--ink); border: 1px solid #abafbd; border-radius: 10px; padding: 9px 12px; background: #fff; }
.profile-main input[name="codigo"] { letter-spacing: .28em; font-variant-numeric: tabular-nums; }
.profile-modes { display: grid; grid-template-columns: 1fr 1fr; background: #f5f4f6; border-radius: 12px; padding: 3px; }
.profile-modes label { position: relative; display: block; cursor: pointer; }
.profile-modes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.profile-modes span { display: grid; place-items: center; min-height: 43px; padding: 6px; border: 1px solid transparent; border-radius: 9px; }
.profile-modes input:checked + span { color: var(--accent); background: #fff; border-color: var(--line); }
.profile-modes input:focus-visible + span { outline: 2px solid var(--accent); }
.profile-main .primary-action { margin: 0; width: 100%; max-width: none; min-height: 45px; font-size: 1rem; }
.profile-main button:disabled { opacity: .55; cursor: default; }
.profile-link { display: inline-flex; align-items: center; width: fit-content; min-height: 40px; padding: 3px 1px; border: 0; background: transparent; color: #9b1730; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.profile-slot { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.profile-slot span { color: var(--muted); }
.profile-editor { display: grid; gap: 16px; }
.profile-editor fieldset { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.profile-editor legend { padding: 0 0 9px; font-weight: 650; }
#profile-state:empty { display: none; }
