/* Account and contact layouts using the shared TDesk foundations. */
.account-stage { padding-block: 64px 80px; }
.account-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(48px, 8vw, 112px); }
.account-story { position: relative; min-width: 0; padding: 52px 44px; border-radius: 28px; background: var(--td-mist); overflow: hidden; }
.account-story h1 { max-width: 11ch; font-size: clamp(38px, 4vw, 54px); font-weight: 650; line-height: 1.13; }
.account-story > p { max-width: 34ch; margin-top: 22px; color: var(--td-muted); font-size: 16px; line-height: 1.8; }
.account-story .td-link { margin-top: 20px; }
.account-illustration { position: relative; height: 208px; margin-top: 44px; }
.account-bubble { position: absolute; display: grid; place-items: center; color: white; background: var(--td-blue); border-radius: 30px 30px 8px 30px; transform: rotate(-8deg); }
.account-bubble--question { width: 136px; height: 118px; left: 8px; top: 12px; font-size: 64px; font-weight: 600; }
.account-bubble--answer { right: 3px; top: 85px; width: 178px; height: 106px; background: var(--td-mint); color: var(--td-ink); border-radius: 26px 26px 26px 6px; transform: rotate(7deg); font-size: 38px; }
.account-spark { position: absolute; top: 14px; right: 30px; color: var(--td-blue); font-size: 38px; }
.account-form-wrap { min-width: 0; width: 100%; max-width: 460px; }
.account-form-heading { margin-bottom: 28px; }
.td-page .account-form-heading h2 { font-size: 30px; font-weight: 650; }
.account-form-heading p { margin-top: 10px; color: var(--td-muted); font-size: 14px; }
.account-form .field-group { margin-bottom: 20px; }
.account-form .form-grid .field-group { margin-bottom: 0; }
.account-form .form-grid { margin-bottom: 20px; row-gap: 20px; }
.account-form .form-control, .account-form .form-select { min-height: 50px; font-size: 16px; }
.account-form .form-control::placeholder { color: #7b8799; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 54px; }
.password-field .password-toggle { position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; color: var(--td-muted); background: transparent; }
.password-field .password-toggle:hover { color: var(--td-blue); background: var(--td-mist); }
.account-form .form-label, .account-form label, .account-form legend { font-size: 13px; font-weight: 600; }
.account-form legend { float: none; width: auto; margin-bottom: 10px; }
.account-form fieldset { min-width: 0; }
.account-form .choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.account-form .choice-control { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--td-line); border-radius: 12px; cursor: pointer; }
.account-form .choice-control:has(input:checked) { border-color: var(--td-blue); background: var(--td-mist); }
.account-form input[type=radio], .account-form input[type=checkbox] { accent-color: var(--td-blue); width: 17px; height: 17px; flex: 0 0 auto; }
.account-form .check-control { display: flex; align-items: center; gap: 10px; margin-block: 22px; color: var(--td-muted); }
.account-form .check-control label { font-weight: 400; }
.account-form .td-button--primary { width: 100%; }
.account-secondary-action { display: flex; justify-content: flex-end; margin: -8px 0 12px; }
.account-secondary-action .btn { min-height: 38px; padding: 4px 0; border: 0; color: var(--td-blue); font-size: 13px; font-weight: 600; }
.account-divider { display: flex; align-items: center; gap: 16px; margin-block: 24px; color: var(--td-muted); font-size: 12px; }
.account-divider::before, .account-divider::after { content: ''; flex: 1; border-top: 1px solid var(--td-line); }
.social-signin { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-signin .td-button { padding-inline: 14px; font-size: 13px; }
.social-signin i { font-size: 17px; }
.account-switch { margin-top: 24px !important; color: var(--td-muted); font-size: 13px; text-align: center; }
.account-switch a { color: var(--td-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.account-feedback { margin-block: 20px 0 !important; padding: 16px 18px; border-left: 3px solid var(--td-blue); border-radius: 0 10px 10px 0; background: var(--td-mist); color: var(--td-ink); font-size: 14px; }
.account-noscript { margin-top: 16px; font-size: 14px; }
.account-dialog h2 { padding-right: 20px; }
.account-dialog > p { margin-bottom: 24px; color: var(--td-muted); font-size: 14px; }
.account-dialog .account-form .field-group { margin-bottom: 24px; }
.signup-layout { align-items: start; }
.signup-layout .account-story { margin-top: 34px; }
.signup-layout .account-form-wrap { max-width: 540px; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.25fr; gap: clamp(48px, 8vw, 112px); align-items: start; }
.contact-intro h2 { font-size: 32px; font-weight: 650; max-width: 12ch; }
.contact-intro > p { margin-top: 18px; color: var(--td-muted); font-size: 15px; line-height: 1.9; }
.contact-route { display: flex; align-items: flex-start; gap: 16px; padding-block: 25px; border-bottom: 1px solid var(--td-line); }
.contact-route:first-of-type { margin-top: 18px; }
.contact-route > i { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; background: var(--td-mist); color: var(--td-blue); font-size: 19px; }
.contact-route:nth-of-type(2) > i { background: #def3e9; color: #28634f; }
.td-page .contact-route h3 { margin-bottom: 5px; font-size: 16px; letter-spacing: -.02em; }
.contact-route p { font-size: 13px; line-height: 1.8; color: var(--td-muted); }
.contact-route .td-link { font-size: 13px; min-height: 36px; }
.contact-form-panel { padding: 34px; border: 1px solid var(--td-line); border-radius: 22px; }
.contact-form-panel .account-form-heading { margin-bottom: 26px; }
.td-page .contact-form-panel h2 { font-size: 25px; }
.contact-form-panel textarea.form-control { resize: vertical; min-height: 170px; }
.contact-form-panel .form-actions { justify-content: flex-start; }
.contact-form-panel .td-button--primary { width: auto; min-width: 170px; }
.contact-form-note { margin-bottom: 24px !important; color: var(--td-muted); font-size: 12px; }
.profile-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; align-items: start; }
.profile-sidebar { display: grid; gap: 24px; }
.profile-identity { padding: 30px 24px; background: var(--td-mist); border-radius: 20px; }
.profile-avatar { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 24px 24px 24px 8px; background: var(--td-lavender); color: var(--td-ink); font-size: 24px; font-weight: 700; }
.td-page .profile-identity h2 { font-size: 19px; }
.profile-identity > p { margin-top: 4px; color: var(--td-muted); font-size: 13px; }
.profile-nav { display: grid; gap: 4px; padding-top: 20px; margin-top: 20px; border-top: 1px solid #d7e0f4; }
.profile-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.profile-nav a:hover, .profile-nav a[aria-current=page] { background: white; color: var(--td-blue); }
.profile-nav .profile-count { margin-left: auto; padding: 0 7px; background: white; border-radius: 6px; font-size: 11px; }
.ticket-summary { padding: 22px 24px; border: 1px solid var(--td-line); border-radius: 20px; }
.td-page .ticket-summary h2 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 15px; }
.ticket-summary h2 span { font-size: 12px; color: var(--td-muted); background: #f5f7fb; padding: 4px 9px; border-radius: 7px; letter-spacing: 0; }
.ticket-summary dl { margin: 0; }
.ticket-summary dl > div { display: flex; justify-content: space-between; align-items: center; padding-block: 9px; font-size: 13px; }
.ticket-summary dt { font-weight: 400; color: var(--td-muted); }
.ticket-summary dd { margin: 0; font-weight: 600; }
.ticket-summary .td-link { margin-top: 10px; font-size: 12px; }
.profile-form { min-width: 0; }
.profile-section + .profile-section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--td-line); }
.profile-section .account-form-heading { margin-bottom: 24px; }
.td-page .profile-section h2 { font-size: 23px; }
.profile-form .form-grid { column-gap: 24px; row-gap: 22px; }
.profile-form .form-actions { justify-content: flex-start; padding-top: 8px; gap: 12px; }
.profile-form .td-button--primary { width: auto; }
.profile-form .form-hint { display: block; margin-top: 7px; color: var(--td-muted); font-size: 12px; }
@media (max-width: 1000px) {
  .account-layout { gap: 40px; }
  .account-story { padding: 36px 30px; }
  .contact-layout { gap: 40px; }
  .profile-layout { gap: 32px; grid-template-columns: 230px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .account-stage { padding-block: 36px 56px; }
  .account-layout { grid-template-columns: 1fr; gap: 36px; }
  .account-story { padding: 30px; }
  .account-story h1 { max-width: 18ch; font-size: 36px; }
  .account-story > p { max-width: 48ch; margin-top: 16px; font-size: 14px; }
  .account-illustration { display: none; }
  .account-story .td-link { margin-top: 12px; }
  .account-form-wrap, .signup-layout .account-form-wrap { max-width: none; }
  .signup-layout .account-story { margin-top: 0; }
  .contact-layout, .profile-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-intro h2 { max-width: none; font-size: 28px; }
  .contact-form-panel { padding: 24px; }
  .profile-sidebar { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .account-story { padding: 26px 24px; border-radius: 20px; }
  .account-story h1 { font-size: 32px; }
  .td-page .account-form-heading h2 { font-size: 26px; }
  .contact-form-panel { padding: 24px 20px; }
  .contact-form-panel .td-button--primary { width: 100%; }
  .profile-sidebar { grid-template-columns: 1fr; }
  .profile-identity { padding: 24px; }
  .profile-nav { grid-template-columns: 1fr 1fr; }
  .profile-form .form-actions .td-button { flex: 1; }
}
