.nav-account {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca !important;
  font-weight: 600;
}

.nav-account::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav-account:hover {
  border-color: rgba(99, 102, 241, .55);
  background: #e0e7ff;
  color: #3730a3 !important;
}

.account-page { min-height: 64vh; }
.account-shell { max-width: 860px; }
.account-hero { padding: 64px 0 48px; border-bottom: 1px solid #f1f5f9; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); text-align: center; }
.account-hero h1 { max-width: 760px; margin: 10px auto 16px; }
.account-hero > .account-shell > p { max-width: 720px; margin: 0 auto; color: #475569; font-size: 17px; line-height: 1.7; }
.account-notice { margin: 24px auto 0; padding: 13px 16px; border: 1px solid #c7d2fe; border-radius: 10px; background: #eef2ff; color: #3730a3; text-align: left; }
.account-section { padding-top: 56px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.account-card { min-width: 0; padding: 28px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 12px 34px -24px rgba(15, 23, 42, .3); }
.account-card h2 { margin: 6px 0 10px; overflow-wrap: anywhere; }
.account-card p { margin: 0 0 20px; overflow-wrap: anywhere; }
.account-card small { display: block; color: #64748b; line-height: 1.65; }
.subscription-status { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 13px; font-weight: 700; }
.subscription-status-active { background: #ecfdf5; color: #047857; }
.subscription-status-canceling, .subscription-status-past_due { background: #fff7ed; color: #9a3412; }
.subscription-status-canceled, .subscription-status-refunded { background: #f1f5f9; color: #475569; }
.subscription-action { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.subscription-action .button { width: fit-content; }
.account-card-label { color: #4f46e5; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.account-profile-card { display: flex; align-items: flex-start; gap: 18px; }
.account-profile-card > div:last-child { min-width: 0; }
.account-avatar { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 50%; background: #eef2ff; }
.account-avatar::before {
  content: "";
  width: 23px;
  height: 23px;
  background: #4f46e5;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.account-signin-card { max-width: 620px; margin: 0 auto; text-align: center; }
.account-signin-card p { max-width: 520px; margin: 0 auto 22px; }
.account-signin-card small { margin-top: 18px; }
.google-signin { display: inline-flex; width: min(100%, 260px); min-width: 0; justify-content: center; gap: 10px; }
.google-signin > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #fff; color: #4338ca; font-size: 13px; font-weight: 800; }
.account-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.account-actions p { max-width: 540px; margin: 0; color: #64748b; font-size: 14px; }

.pro-page .account-shell { max-width: 1120px; }
.pro-gate-actions, .pro-process-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pro-workspace { display: grid; gap: 20px; }
.pro-workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pro-workspace-heading h2 { margin: 6px 0 0; }
.pro-workspace-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 20px; }
.pro-workspace .account-card h3 { margin: 0 0 9px; color: #1e293b; font-size: 18px; }
.pro-workspace .account-card > p { margin-bottom: 18px; }
.pro-file-drop { position: relative; display: grid; min-height: 180px; place-content: center; gap: 6px; padding: 42px 24px 24px; border: 2px dashed #818cf8; border-radius: 14px; background: #f8faff; color: #3730a3; text-align: center; cursor: pointer; transition: border-color .2s ease-out, background-color .2s ease-out, transform .2s ease-out; }
.pro-file-drop:hover { border-color: #6366f1; background: #eef2ff; transform: translateY(-2px); }
.pro-file-drop:focus-within { box-shadow: 0 0 0 4px rgba(99, 102, 241, .18); }
.pro-file-drop span { color: #64748b; font-size: 14px; }
.pro-file-drop small { max-width: 320px; color: #64748b; font-size: 12px; line-height: 1.5; }
.pro-file-drop .pro-upload-badge { position: absolute; top: 12px; right: 12px; padding: 5px 8px; border-radius: 999px; background: #6366f1; color: #ffffff; font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: .06em; }
#pro-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pro-file-summary { margin: 14px 0 0 !important; color: #475569; font-size: 14px; overflow-wrap: anywhere; }
.pro-option-list { display: grid; gap: 10px; }
.pro-option-list label { display: flex; min-width: 0; align-items: flex-start; gap: 11px; padding: 11px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fafafa; cursor: pointer; }
.pro-option-list input { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 3px; accent-color: #6366f1; }
.pro-option-list span { display: grid; min-width: 0; gap: 2px; }
.pro-option-list strong { color: #1e293b; font-size: 14px; }
.pro-option-list small { color: #64748b; font-size: 13px; line-height: 1.5; }
.pro-process-card { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 24px; }
.pro-process-heading > p { margin: 0; }
.pro-output-options { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.pro-output-options legend { width: 100%; margin-bottom: 9px; color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pro-output-option { display: flex; min-width: 0; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid #dbe3ee; border-radius: 12px; background: #ffffff; cursor: pointer; transition: border-color .18s ease-out, background-color .18s ease-out, box-shadow .18s ease-out; }
.pro-output-option:hover { border-color: #a5b4fc; background: #f8faff; }
.pro-output-option:has(input:checked) { border-color: #6366f1; background: #eef2ff; box-shadow: 0 0 0 2px rgba(99,102,241,.12); }
.pro-output-option[data-disabled="true"] { cursor: not-allowed; opacity: .58; }
.pro-output-option input { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 5px; accent-color: #6366f1; }
.pro-output-option > span:last-child { display: grid; min-width: 0; gap: 3px; }
.pro-output-option strong { color: #1e293b; font-size: 14px; line-height: 1.35; }
.pro-output-option small { color: #64748b; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.pro-output-icon { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; border-radius: 9px; background: #e0e7ff; color: #4f46e5; }
.pro-output-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pro-process-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 2px; border-top: 1px solid #eef2f7; }
.pro-status { grid-column: 1 / -1; padding: 12px 14px; border-radius: 10px; background: #f8fafc; color: #475569; font-size: 14px; }
.pro-status[data-state="error"] { background: #fef2f2; color: #b91c1c; }
.pro-status[data-state="success"] { background: #ecfdf5; color: #047857; }
.pro-results { grid-column: 1 / -1; min-width: 0; overflow-x: auto; }
.pro-results table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.pro-results th, .pro-results td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.pro-results th { color: #334155; font-weight: 700; }
.pro-results td { color: #475569; }
.pro-privacy-note { padding: 16px 18px; border: 1px solid #c7d2fe; border-radius: 12px; background: #eef2ff; color: #3730a3; font-size: 14px; line-height: 1.65; }

@media (max-width: 767px) {
  .account-hero { padding: 44px 0 38px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-actions { align-items: flex-start; flex-direction: column; }
  .pro-workspace-heading { align-items: flex-start; flex-direction: column; }
  .pro-workspace-grid { grid-template-columns: 1fr; }
  .pro-process-card { grid-template-columns: 1fr; }
  .pro-process-actions { grid-column: 1; justify-content: flex-start; }
  .pro-status, .pro-results { grid-column: 1; }
}

@media (max-width: 520px) {
  .pro-output-options { grid-template-columns: 1fr; }
  .pro-process-actions, .pro-process-actions .button { width: 100%; }
}

@media (max-width: 480px) {
  .nav-account { width: 34px; justify-content: center; padding-inline: 0; }
  .nav-account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
