/* finesse · register=product · shell=personal-paper-notebook
 * Reuses the approved paper, sage/blue controls and compact hand-drawn navigation. */
.profile-theme .page-content--profile { width: min(100%, 960px); padding: 30px 28px 32px; }
.profile-theme .profile-page { gap: 22px; padding-top: 0; }
.profile-theme .profile-page:has(.auth-form) { max-width: 560px; margin-inline: auto; }
.profile-theme .profile-header { padding: 0 3px 9px; }
.profile-theme :is(button, input, a):focus-visible { outline: 2px solid var(--social-focus); outline-offset: 3px; }
.profile-theme .profile-page button { min-height: 44px; font-weight: 400; }

.profile-theme .profile-account { position: relative; margin: 0; padding: 26px 28px 23px; gap: 12px; border: 1px solid var(--social-line); border-radius: 7px 10px 6px 9px; background: var(--social-card) url('./social-assets/paper-fibers.png') center / 700px; box-shadow: 2px 3px 0 var(--social-shadow); }
.profile-theme .profile-account::before { content: ""; position: absolute; top: -9px; left: 22px; width: 49px; height: 19px; transform: rotate(-8deg); background: url('./social-assets/paper-tape.svg') center / 100% 100% no-repeat; pointer-events: none; }
.profile-theme .profile-account::after { content: ""; position: absolute; top: -8px; right: 24px; width: 44px; height: 17px; transform: rotate(10deg); background: url('./social-assets/paper-tape.svg') center / 100% 100% no-repeat; filter: hue-rotate(47deg) saturate(.7); pointer-events: none; }
.profile-theme :is(.profile-account__title, .profile-account__name) { margin: 0; color: var(--social-ink); font-size: 25px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.profile-theme .profile-account__description { color: var(--social-muted); font-size: 15px; line-height: 1.8; text-indent: 2em; text-wrap: pretty; }
.profile-theme .profile-account__eyebrow { color: var(--social-sage-ink); font-size: 13px; margin-bottom: 5px; }
.profile-theme .profile-account__phone { margin-top: 7px; color: var(--social-muted); font-size: 15px; }
.profile-theme .profile-account__preview { color: var(--social-muted); font-size: 12px; }
.profile-theme .profile-account__actions { gap: 12px; padding-top: 9px; border-top: 1px dashed var(--social-line); }
.profile-theme :is(.profile-account__sign-out, .profile-record__withdraw) { padding: 6px 0; color: #934b3f; font-size: 14px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.profile-theme .message-inbox-button { padding: 6px 12px; gap: 8px; border: 1px solid var(--social-line); border-radius: 6px 8px 5px 7px; background: var(--social-blue) url('./social-assets/paper-grain.svg'); color: var(--social-ink); font-size: 15px; text-decoration: none; }
.profile-theme .message-inbox-button__count { min-width: 20px; height: 20px; background: var(--social-sage); color: var(--social-sage-ink); font-size: 12px; }

.profile-theme .auth-form { gap: 10px; margin-top: 4px; }
.profile-theme .auth-form__label { color: var(--social-ink); font-size: 15px; font-weight: 400; }
.profile-theme .auth-form input:not([type="checkbox"]) { min-width: 0; min-height: 46px; border: 1px solid var(--social-line); border-radius: 6px 8px 5px 7px; background: var(--social-card) url('./social-assets/paper-grain.svg'); padding: 10px 12px; color: var(--social-ink); font: 400 16px/1.5 var(--social-font); }
.profile-theme .auth-form input::placeholder { color: var(--social-muted); opacity: .85; }
.profile-theme .auth-phone-field { min-height: 48px; border: 1px solid var(--social-line); border-radius: 6px 8px 5px 7px; background: var(--social-card) url('./social-assets/paper-grain.svg'); }
.profile-theme .auth-phone-field:focus-within { outline: 2px solid var(--social-focus); outline-offset: 3px; }
.profile-theme .auth-phone-field__prefix { min-width: 51px; border-right: 1px dashed var(--social-line); color: var(--social-muted); font-size: 15px; }
.profile-theme .auth-form .auth-phone-field input:not([type="checkbox"]) { border: 0; background: transparent; }
.profile-theme .auth-phone-field input:focus-visible { outline: none; }
.profile-theme .auth-auto-login { gap: 9px; min-height: 44px; color: var(--social-muted); font-size: 14px; }
.profile-theme .auth-auto-login input { width: 19px; height: 19px; min-height: 19px; padding: 0; border: 1px solid var(--social-line); accent-color: var(--social-sage-ink); }
.profile-theme .auth-form__submit { min-width: 142px; padding: 9px 19px; border: 1px solid var(--social-line); border-radius: 8px 11px 7px 9px; background: var(--social-blue) url('./social-assets/paper-grain.svg'); color: var(--social-ink); box-shadow: 1px 2px 0 var(--social-shadow); font-size: 16px; line-height: 1.5; }
.profile-theme :is(.auth-form__change, .message-inbox__back, .profile-record__answers-link) { padding: 6px 1px; color: var(--social-blue-ink); font-size: 14px; font-weight: 400; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.profile-theme .auth-form__feedback { color: #934b3f; font-size: 14px; line-height: 1.65; }
.profile-theme .auth-form__preview-note { margin-top: 3px; color: var(--social-muted); font-size: 12px; line-height: 1.65; }
.profile-theme .profile-page button:disabled { opacity: .6; cursor: wait; }

.profile-theme .profile-tabs { margin: 1px 0 0; padding: 0; gap: 9px; border: 0; background: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-theme .profile-tabs__tab { position: relative; padding: 9px 6px; border: 1px solid var(--social-line); border-radius: 6px 9px 5px 7px; background: var(--social-card) url('./social-assets/paper-grain.svg'); color: var(--social-muted); font-size: 15px; line-height: 1.5; white-space: nowrap; }
.profile-theme .profile-tabs__tab[aria-selected="true"] { background-color: var(--social-sage); border-color: var(--social-line); color: var(--social-sage-ink); box-shadow: 1px 2px 0 var(--social-shadow); }
.profile-theme .profile-tabs__tab[aria-selected="true"]::after { content: ""; position: absolute; bottom: 4px; left: 26%; right: 26%; height: 3px; background: url('./social-assets/pencil-underline.svg') center / 100% 100% no-repeat; }
.profile-theme .profile-records { margin: 0; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.profile-theme :is(.profile-record, .message-item, .question-answer) { min-width: 0; border: 1px solid var(--social-line); border-radius: 6px 9px 5px 8px; padding: 17px 18px; background: var(--social-card) url('./social-assets/paper-grain.svg'); box-shadow: 1px 2px 0 var(--social-shadow); }
.profile-theme .profile-record--with-action { gap: 12px; }
.profile-theme :is(.profile-record__header, .profile-record__footer) { gap: 8px; flex-wrap: wrap; }
.profile-theme .profile-record__category { color: var(--social-muted); font-size: 13px; }
.profile-theme .profile-record__status { padding: 4px 7px; border-radius: 4px 6px 4px 5px; background: var(--social-sage); color: var(--social-sage-ink); font-size: 12px; font-weight: 400; white-space: nowrap; }
.profile-theme .profile-record__status--withdrawn { background: var(--social-blue); color: var(--social-muted); }
.profile-theme .profile-record__title { margin: 10px 0 8px; color: var(--social-ink); font-size: 18px; font-weight: 400; line-height: 1.55; overflow-wrap: anywhere; }
.profile-theme .profile-record__answer { margin: 0 0 12px; color: var(--social-muted); font-size: 15px; line-height: 1.8; text-indent: 2em; }
.profile-theme :is(.profile-record__time, .message-item__time, .question-answer__time) { color: var(--social-muted); font-size: 12px; line-height: 1.5; }

.profile-theme .message-inbox { margin: 0; padding: 0; gap: 14px; border: 0; }
.profile-theme .message-inbox__header { gap: 10px; flex-wrap: wrap; border-bottom: 1px dashed var(--social-line); padding-bottom: 9px; }
.profile-theme .message-inbox__title { color: var(--social-ink); font-size: 23px; font-weight: 400; }
.profile-theme .message-item--unread { background-color: #f1f3e8; border-color: var(--social-sage-ink); }
.profile-theme .message-item--unread .message-item__title::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--social-sage-ink); vertical-align: middle; }
.profile-theme .message-item__title { color: var(--social-ink); font-size: 18px; font-weight: 400; }
.profile-theme :is(.message-item__content, .question-answer__content) { color: var(--social-muted); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.profile-theme .question-answer__content { text-indent: 2em; }
.profile-theme .question-answers__question { border: 0; border-bottom: 1px dashed var(--social-line); padding: 0 0 13px; color: var(--social-ink); font-size: 18px; font-weight: 400; line-height: 1.6; }
.profile-theme :is(.profile-account__loading, .profile-records__loading, .message-inbox__loading) { margin: 0; color: var(--social-muted); font-size: 15px; line-height: 1.65; }
.profile-theme :is(.profile-records__empty, .message-inbox__empty) { grid-column: 1 / -1; padding: 23px 18px; border: 1px dashed var(--social-line); border-radius: 6px; background: var(--social-card); color: var(--social-muted); font-size: 15px; }
.profile-theme :is(.profile-records__error, .message-inbox__error) { grid-column: 1 / -1; color: #934b3f; font-size: 15px; line-height: 1.65; }

@media (hover: hover) {
  .profile-theme :is(.auth-form__submit, .message-inbox-button):hover:not(:disabled) { background-color: var(--social-sage); }
  .profile-theme .profile-tabs__tab:hover { color: var(--social-ink); }
}

@media (min-width: 768px) {
  .profile-theme .profile-account:has(.profile-account__details) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .profile-theme .profile-account:has(.profile-account__details) .profile-account__actions { gap: 24px; padding: 0 0 0 24px; border-top: 0; border-left: 1px dashed var(--social-line); }
  .profile-theme .profile-account__preview { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .profile-theme .page-content--profile { padding: 20px 14px 25px; }
  .profile-theme .profile-page { gap: 19px; }
  .profile-theme .profile-header { padding: 0 3px 4px; }
  .profile-theme .profile-account { padding: 22px 16px 17px; gap: 10px; }
  .profile-theme .profile-account::before { left: 15px; width: 40px; height: 17px; }
  .profile-theme .profile-account::after { right: 16px; width: 37px; height: 16px; }
  .profile-theme :is(.profile-account__title, .profile-account__name) { font-size: 23px; }
  .profile-theme .profile-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .profile-theme .profile-tabs__tab { font-size: 15px; }
  .profile-theme .profile-records { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .profile-theme :is(.profile-record, .message-item, .question-answer) { padding: 14px 15px; }
  .profile-theme .profile-record__title { font-size: 17px; }
}

@media (max-width: 350px) {
  .profile-theme .profile-record--with-action { gap: 8px; }
  .profile-theme .profile-record__answers-link { font-size: 13px; }
  .profile-theme .profile-tabs__tab { font-size: 14px; }
}
