/* UI/UX Task 4 — premium internal workspaces */
.profile-page,
.cv-page,
.applications-page,
.settings-page,
.ai-workspace {
  --workspace-accent: var(--brand);
}

/* Profile */
.profile-overview { align-items: stretch; }
.profile-health-card,
.profile-guidance-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-color: color-mix(in srgb, var(--brand) 15%, var(--line));
  background:
    radial-gradient(circle at 95% 0%, color-mix(in srgb, var(--brand-soft) 75%, transparent), transparent 42%),
    var(--surface);
}
.profile-health-card::after,
.profile-guidance-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -58px;
  bottom: -64px;
  border: 18px solid color-mix(in srgb, var(--brand) 6%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.profile-health-card .health-score {
  width: 82px;
  height: 82px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  box-shadow: inset 0 0 0 7px color-mix(in srgb, var(--brand) 7%, transparent);
}
.profile-guidance-card { display: grid; align-content: center; }
.profile-guidance-card h3 { margin-bottom: 7px; }
.profile-guidance-card p { margin: 0; color: var(--muted); }
.profile-form-premium { display: grid; gap: 14px; }
.profile-form-premium > .form-section { margin: 0; }
.profile-page .form-section {
  overflow: clip;
  padding: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-xs, var(--shadow-sm));
}
.profile-page .form-section > summary {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  padding: 18px 58px 18px 20px;
  list-style: none;
  cursor: pointer;
  background: var(--surface);
}
.profile-page .form-section > summary::-webkit-details-marker { display: none; }
.profile-page .form-section > summary::after {
  content: "";
  position: absolute;
  right: 22px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 160ms ease;
}
.profile-page .form-section[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.profile-page .form-section > summary > span {
  display: grid;
  gap: 4px;
  font-size: 15px;
  font-weight: 820;
  letter-spacing: -.015em;
}
.profile-page .form-section > summary small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 520;
  line-height: 1.45;
  letter-spacing: 0;
}
.profile-page .form-section[open] > summary {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 66%, var(--surface));
}
.profile-page .form-section-body { padding: 20px; }
.profile-page .repeater-item {
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
}
.profile-page .repeater-item:hover { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.profile-page .sticky-save {
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 18px;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--text) 8%, transparent);
}

/* CV workspace */
.cv-workspace-layout { gap: 26px; }
.cv-editor-column { display: grid; gap: 18px; }
.cv-editor-column > .section,
.cv-editor-column > .card { margin-top: 0; }
.cv-health-card {
  position: relative;
  min-height: 120px;
  border-color: color-mix(in srgb, var(--success) 16%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--success-soft) 64%, var(--surface)), var(--surface));
}
.cv-health-card .health-score {
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
  color: var(--success);
}
.cv-health-card .checklist { margin: 8px 0 0; }
.cv-editor-card {
  margin-top: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.cv-editor-card > h2 { margin-bottom: 18px; font-size: 18px; }
.cv-editor-card textarea[name="content"] {
  min-height: 300px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
}
.cv-editor-card #file-status { margin-bottom: 0; border-radius: 14px; }
.cv-template-section {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.cv-template-section .template-grid { gap: 12px; }
.cv-template-section .template-card {
  min-height: 168px;
  border-radius: 17px;
  background: var(--surface);
}
.cv-template-section .template-card.active {
  background: color-mix(in srgb, var(--brand-soft) 42%, var(--surface));
}
.premium-cv-preview {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
  box-shadow: var(--shadow-sm);
}
.premium-cv-preview .cv-preview-toolbar {
  min-height: 38px;
  margin: 0 0 12px;
  padding: 0 2px;
}
.premium-cv-preview .cv-paper {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 20px 45px color-mix(in srgb, #101828 14%, transparent);
}

/* Application tracker */
.application-overview { gap: 10px; }
.application-overview .metric-card {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  border-radius: 18px;
}
.application-overview .metric-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 5%, transparent);
  pointer-events: none;
}
.applications-page .application-filters {
  position: sticky;
  top: 86px;
  z-index: 8;
  border-color: color-mix(in srgb, var(--brand) 10%, var(--line));
  background: var(--surface-overlay);
  backdrop-filter: blur(18px);
}
.application-list { gap: 14px; }
.premium-application-card {
  position: relative;
  overflow: clip;
  gap: 22px;
  border-radius: 20px;
  box-shadow: var(--shadow-xs, var(--shadow-sm));
}
.premium-application-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand);
}
.premium-application-card[data-application-status="accepted"]::before { background: var(--success); }
.premium-application-card[data-application-status="rejected"]::before { background: var(--danger); }
.premium-application-card[data-application-status="interview"]::before { background: var(--accent); }
.premium-application-card[data-application-status="draft"]::before { background: var(--muted); }
.premium-application-card > div:first-child { padding-left: 3px; }
.premium-application-card h3 { margin: 11px 0 6px; font-size: 19px; letter-spacing: -.025em; }
.premium-application-card .job-meta { color: var(--muted); }
.premium-application-card details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.premium-application-card details > summary {
  cursor: pointer;
  color: var(--text);
  font-size: 12.5px;
}
.premium-application-card details[open] > summary { margin-bottom: 12px; color: var(--brand-text); }
.application-action-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}
.application-action-panel .status-select { width: 100%; min-height: 42px; }

/* AI command center */
.ai-workspace { gap: 16px; }
.ai-workspace-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28%),
    radial-gradient(circle at 8% 100%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 34%),
    var(--surface);
}
.ai-workspace-hero h1 { max-width: 680px; font-size: clamp(30px, 4vw, 46px); }
.ai-command-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  padding: 18px 20px;
  border-left: 0;
  border-color: color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--brand-soft) 34%, var(--surface));
}
.ai-command-status .badge { grid-row: 1 / 3; align-self: center; }
.ai-command-status h2 { margin: 0; font-size: 15px; }
.ai-command-status p { margin: 0; font-size: 12px; color: var(--muted); }
.ai-command-status .notice { grid-column: 1 / -1; margin: 10px 0 0; }
.ai-capability-grid { gap: 12px; }
.ai-capability-card {
  position: relative;
  min-height: 212px;
  padding: 20px;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.ai-capability-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 24%, var(--line));
  box-shadow: var(--shadow-md);
}
.ai-capability-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 6%, transparent);
  pointer-events: none;
}
.ai-capability-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.ai-capability-orb {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand-soft) 68%, var(--surface));
}
.ai-capability-orb::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid var(--brand);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
}
.ai-capability-card[data-capability="cv_tailoring"] .ai-capability-orb::before { border-radius: 3px; transform: rotate(45deg); }
.ai-capability-card[data-capability="application_pack"] .ai-capability-orb::before { width: 15px; height: 11px; border-radius: 3px; transform: none; }
.ai-capability-card[data-capability="interview_simulator"] .ai-capability-orb::before { width: 14px; height: 10px; border-radius: 8px; transform: none; }
.ai-capability-card h2 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.02em; }
.ai-capability-card p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.ai-capability-card .button { width: 100%; }
.premium-privacy-center {
  border-radius: 22px;
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}
.premium-privacy-center fieldset {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}
.premium-privacy-center fieldset label,
.premium-privacy-center form > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.premium-privacy-center input[type="checkbox"] { margin-top: 3px; }

/* Settings */
.settings-overview { align-items: stretch; }
.settings-overview > .card {
  position: relative;
  min-height: 175px;
  overflow: hidden;
  border-radius: 20px;
}
.settings-overview > .card::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 6%, transparent);
  pointer-events: none;
}
.settings-overview > .card h2 { margin: 14px 0 6px; font-size: 18px; }
.settings-overview > .card p { color: var(--muted); }
.settings-page > :is(section.card, details.card) {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow-xs, var(--shadow-sm));
}
.settings-page > :is(section.card, details.card) > h2,
.settings-page > :is(section.card, details.card) > summary {
  padding-left: 48px;
}
.settings-page > :is(section.card, details.card) > h2::before,
.settings-page > :is(section.card, details.card) > summary::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 22px;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand-soft) 58%, var(--surface));
}
.settings-page > :is(section.card, details.card) > h2::after,
.settings-page > :is(section.card, details.card) > summary::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 33px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand);
  border-radius: 3px;
}
.settings-page > :is(section.card, details.card) > h2 { min-height: 36px; display: flex; align-items: center; margin-bottom: 8px; font-size: 18px; }
.settings-page > :is(section.card, details.card) > p { color: var(--muted); }
.settings-page > :is(section.card, details.card) .form-actions { margin-top: 16px; }
.settings-page > :is(section.card, details.card) .notice { border-radius: 14px; }
.settings-page > details.advanced-box { overflow: clip; }
.settings-page > details.advanced-box > summary {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 18px;
  font-weight: 800;
}
.settings-page > details.advanced-box > summary::-webkit-details-marker { display: none; }
.settings-page > details.advanced-box > summary::before { top: 20px; }
.settings-page > details.advanced-box > summary::after { top: 31px; }
.settings-page > section.card:last-child { border-color: color-mix(in srgb, var(--danger) 22%, var(--line)); }
.settings-page > section.card:last-child > h2::before { background: color-mix(in srgb, var(--danger-soft) 72%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 18%, var(--line)); }
.settings-page > section.card:last-child > h2::after { border-color: var(--danger); border-radius: 50%; }
.settings-page .diagnostic-grid { gap: 8px; }
.settings-page .diagnostic-grid > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.settings-page .storage-meter { height: 8px; margin-top: 16px; }

html[data-theme="dark"] .premium-cv-preview .cv-paper { box-shadow: 0 18px 42px rgba(0,0,0,.38); }
html[data-theme="contrast"] .profile-health-card,
html[data-theme="contrast"] .profile-guidance-card,
html[data-theme="contrast"] .premium-cv-preview,
html[data-theme="contrast"] .premium-application-card,
html[data-theme="contrast"] .ai-workspace-hero,
html[data-theme="contrast"] .ai-command-status,
html[data-theme="contrast"] .premium-privacy-center,
html[data-theme="contrast"] .settings-page > :is(section.card, details.card) { border-width: 2px; box-shadow: none; }

@media (max-width: 900px) {
  .applications-page .application-filters { top: calc(var(--mobile-topbar-height, 64px) + 8px); }
  .premium-cv-preview { margin-top: 2px; }
  .cv-preview-toolbar { position: sticky; left: 0; }
}

@media (max-width: 680px) {
  .profile-page,
  .cv-page,
  .applications-page,
  .settings-page,
  .ai-workspace { padding-bottom: calc(var(--mobile-nav-height, 72px) + env(safe-area-inset-bottom) + 34px); }

  .profile-page .page-header,
  .cv-page .page-header,
  .applications-page .page-header,
  .settings-page .page-header { margin-bottom: 18px; }

  .profile-overview {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px;
  }
  .profile-health-card,
  .profile-guidance-card { min-height: 142px; padding: 15px; }
  .profile-health-card { display: grid; grid-template-columns: 1fr; gap: 10px; align-content: start; }
  .profile-health-card .health-score { width: 58px; height: 58px; font-size: 16px; }
  .profile-health-card h3,
  .profile-guidance-card h3 { font-size: 13px; margin-bottom: 5px; }
  .profile-health-card p,
  .profile-guidance-card p { font-size: 10.5px; line-height: 1.45; }
  .profile-page .form-section { border-radius: 17px; }
  .profile-page .form-section > summary { min-height: 68px; padding: 14px 48px 14px 15px; }
  .profile-page .form-section > summary::after { right: 18px; }
  .profile-page .form-section-body { padding: 15px; }
  .profile-page .repeater-item { padding: 13px; border-radius: 14px; }
  .profile-page .sticky-save {
    position: sticky;
    z-index: 18;
    bottom: calc(var(--mobile-nav-height, 72px) + env(safe-area-inset-bottom) + 8px);
    padding: 11px;
    border-radius: 16px;
    background: var(--surface-overlay);
    backdrop-filter: blur(18px);
  }
  .profile-page .sticky-save .button { min-height: 46px; }
  .profile-page .sticky-save a.button { display: none; }

  .cv-workspace-layout { gap: 14px; }
  .cv-editor-column { gap: 12px; }
  .cv-health-card { min-height: 98px; padding: 14px; }
  .cv-health-card .health-score { width: 58px; height: 58px; font-size: 16px; }
  .cv-editor-card { padding: 16px; border-radius: 18px; }
  .cv-editor-card .form-actions { display: grid; grid-template-columns: 1fr; }
  .cv-template-section .section-title { align-items: start; }
  .cv-template-section .template-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 82vw);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    padding: 2px 2px 10px;
    scrollbar-width: none;
  }
  .cv-template-section .template-grid::-webkit-scrollbar { display: none; }
  .cv-template-section .template-card { scroll-snap-align: start; min-height: 154px; grid-template-columns: 74px minmax(0, 1fr); }
  .premium-cv-preview { padding: 10px; border-radius: 18px; }
  .premium-cv-preview .cv-preview-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .premium-cv-preview .cv-preview-toolbar::-webkit-scrollbar { display: none; }
  .premium-cv-preview .cv-preview-toolbar .badge { flex: 0 0 auto; }
  .premium-cv-preview .cv-paper {
    max-width: none;
    min-height: 0;
    padding: 22px 18px;
    border-radius: 8px;
    font-size: 9px;
  }
  .premium-cv-preview .cv-paper h1 { font-size: 21px; }

  .application-overview {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(142px, 43vw);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .application-overview::-webkit-scrollbar { display: none; }
  .application-overview .metric-card { min-height: 90px; padding: 14px; }
  .applications-page .application-filters {
    position: static;
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 17px;
    backdrop-filter: none;
  }
  .premium-application-card { padding: 16px; border-radius: 18px; }
  .premium-application-card h3 { font-size: 17px; }
  .premium-application-card .actions.compact { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .premium-application-card .actions.compact::-webkit-scrollbar { display: none; }
  .premium-application-card .actions.compact .badge { flex: 0 0 auto; }
  .application-action-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
  }
  .application-action-panel > label,
  .application-action-panel .status-select,
  .application-action-panel .danger { grid-column: 1 / -1; }
  .application-action-panel .button { width: 100%; min-height: 40px; }

  .ai-workspace { gap: 12px; }
  .ai-workspace-hero { padding: 20px 17px; border-radius: 20px; }
  .ai-workspace-hero h1 { font-size: 31px; }
  .ai-workspace-hero p { font-size: 12px; }
  .ai-command-status { grid-template-columns: 1fr; padding: 15px; gap: 5px; border-radius: 16px; }
  .ai-command-status .badge { grid-row: auto; justify-self: start; margin-bottom: 4px; }
  .ai-capability-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(248px, 82vw);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    padding: 2px 2px 10px;
    scrollbar-width: none;
  }
  .ai-capability-grid::-webkit-scrollbar { display: none; }
  .ai-capability-card { min-height: 205px; scroll-snap-align: start; padding: 17px; border-radius: 18px; }
  .premium-privacy-center { padding: 17px; border-radius: 18px; }
  .premium-privacy-center .section-title { align-items: start; }
  .premium-privacy-center .actions { display: grid; grid-template-columns: 1fr; }
  .premium-privacy-center .actions .button { width: 100%; }

  .settings-overview { gap: 9px; }
  .settings-overview > .card { min-height: 148px; padding: 16px; border-radius: 18px; }
  .settings-overview > .card h2 { font-size: 15px; }
  .settings-overview > .card p { font-size: 11px; }
  .settings-page > :is(section.card, details.card) { padding: 17px; border-radius: 18px; }
  .settings-page > :is(section.card, details.card) > h2,
  .settings-page > :is(section.card, details.card) > summary { padding-left: 42px; font-size: 16px; }
  .settings-page > :is(section.card, details.card) > h2::before,
  .settings-page > :is(section.card, details.card) > summary::before { left: 17px; top: 16px; width: 30px; height: 30px; border-radius: 10px; }
  .settings-page > :is(section.card, details.card) > h2::after,
  .settings-page > :is(section.card, details.card) > summary::after { left: 27px; top: 26px; width: 8px; height: 8px; }
  .settings-page > details.advanced-box > summary::before { top: 13px; }
  .settings-page > details.advanced-box > summary::after { top: 23px; }
  .settings-page > :is(section.card, details.card) .form-actions { display: grid; grid-template-columns: 1fr; }
  .settings-page > :is(section.card, details.card) .form-actions .button,
  .settings-page > :is(section.card, details.card) .form-actions label.button { width: 100%; min-height: 44px; }
  .settings-page .diagnostic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .profile-overview { grid-template-columns: 1fr !important; }
  .profile-guidance-card { min-height: 110px; }
  .settings-overview { grid-template-columns: 1fr !important; }
}

@media print {
  .premium-cv-preview { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .premium-cv-preview .cv-paper { box-shadow: none; }
}

/* ==========================================================================\n   UI/UX TASK 5 — PREMIUM POLISH & MOBILE APP EXPERIENCE\n   Final interaction layer: touch feedback, async states, snackbar motion,\n   keyboard-safe focus, standalone PWA details, and reduced-motion parity.\n   ========================================================================== */
@media screen {
  html {
    scrollbar-gutter: stable;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    min-height: 100dvh;
    overscroll-behavior-x: none;
  }

  :where(button, a, input, select, textarea, summary) {
    -webkit-tap-highlight-color: transparent;
  }

  :where(button, .button, .icon-button, .mobile-bottom-nav a, .main-nav a, summary) {
    touch-action: manipulation;
  }

  :where(input, textarea, select) {
    accent-color: var(--brand);
    caret-color: var(--brand);
    scroll-margin-block: 92px 132px;
  }

  :where(.card, .job-card, .template-card, .premium-application-card, .ai-capability-card, .settings-page > section.card, .settings-page > details.card):focus-within {
    border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
  }

  /* Route content enters quickly without delaying input readiness. */
  #app > .page {
    animation: app-page-enter 220ms var(--ease-standard) both;
    transform-origin: 50% 0;
  }

  @keyframes app-page-enter {
    from { opacity: .72; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Async actions stay legible while clearly communicating progress. */
  :where([data-action], form)[aria-busy="true"] {
    cursor: progress;
  }

  :where(button, .button, .icon-button)[aria-busy="true"],
  form[aria-busy="true"] :where(button[type="submit"], input[type="submit"]) {
    position: relative;
    isolation: isolate;
    pointer-events: none;
  }

  :where(button, .button, .icon-button)[aria-busy="true"]::after,
  form[aria-busy="true"] button[type="submit"]::after {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: inline-block;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    opacity: .8;
    animation: app-busy-spin 680ms linear infinite;
  }

  .icon-button[aria-busy="true"]::after {
    position: absolute;
    margin: 0;
  }

  :where(form, [data-action])[aria-busy="true"] {
    --busy-sheen: color-mix(in srgb, var(--brand) 7%, transparent);
  }

  form[aria-busy="true"] {
    background-image: linear-gradient(100deg, transparent 20%, var(--busy-sheen) 50%, transparent 80%);
    background-size: 220% 100%;
    animation: app-busy-sheen 1.25s ease-in-out infinite;
  }

  @keyframes app-busy-spin { to { transform: rotate(360deg); } }
  @keyframes app-busy-sheen {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
  }

  /* Snackbar-style notifications. */
  .toast:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    animation: app-toast-in 240ms cubic-bezier(.2,.9,.2,1) both;
  }

  .toast::before {
    content: "";
    width: 5px;
    height: 26px;
    flex: 0 0 5px;
    border-radius: var(--radius-pill);
    background: var(--success);
  }

  .toast.warning::before { background: var(--warning); }
  .toast.error::before { background: var(--danger); }

  @keyframes app-toast-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* Dialogs behave like polished modal sheets on phones and compact cards elsewhere. */
  .dialog-backdrop {
    animation: app-backdrop-in 180ms ease-out both;
  }

  .dialog {
    animation: app-dialog-in 240ms cubic-bezier(.2,.9,.2,1) both;
    overscroll-behavior: contain;
  }

  @keyframes app-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes app-dialog-in {
    from { opacity: .8; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* A subtle active press keeps desktop and touch interactions consistent. */
  :where(.card[role="button"], .template-card) {
    -webkit-user-select: none;
    user-select: none;
  }

  @media (hover: hover) and (pointer: fine) {
    :where(.job-card, .premium-application-card, .ai-capability-card, .settings-overview > .card):hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
    }
  }

  @media (pointer: coarse) {
    :where(.button, .icon-button, .main-nav a) { min-height: 48px; }
    :where(.field input, .field select, .filters input, .filters select, .status-select) { min-height: 50px; }
    :where(.button, .icon-button, .main-nav a, .mobile-bottom-nav a, .mobile-bottom-nav button):active {
      filter: brightness(.97);
    }
  }

  @media (max-width: 760px) {
    html {
      scroll-padding-bottom: calc(var(--mobile-nav-height, 72px) + env(safe-area-inset-bottom) + 28px);
    }

    .topbar {
      transition: background-color var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard);
    }

    .mobile-app-brand,
    .topbar-menu-button,
    #install-button,
    #update-button {
      flex-shrink: 0;
    }

    .mobile-bottom-nav {
      isolation: isolate;
    }

    .mobile-bottom-nav :where(a, button) {
      position: relative;
    }

    .mobile-bottom-nav :where(a, button).active::after {
      content: "";
      position: absolute;
      right: 28%;
      bottom: 1px;
      left: 28%;
      height: 2px;
      border-radius: 999px;
      background: var(--brand);
      opacity: .72;
    }

    .sidebar::before,
    .dialog::before {
      content: "";
      width: 38px;
      height: 4px;
      display: block;
      margin: 0 auto 12px;
      border-radius: 999px;
      background: color-mix(in srgb, currentColor 22%, transparent);
      opacity: .55;
    }

    .sidebar::before {
      position: absolute;
      top: 8px;
      left: calc(50% - 19px);
      background: rgba(255,255,255,.34);
    }

    .sidebar-mobile-head { padding-top: 6px; }

    .dialog {
      padding-top: 12px;
      animation-name: app-sheet-in;
    }

    @keyframes app-sheet-in {
      from { opacity: .86; transform: translateY(28px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .toast {
      border-radius: 15px;
      box-shadow: 0 18px 48px rgba(8,12,30,.28);
    }

    /* Keep focused controls above Android software keyboards and bottom navigation. */
    :where(input, textarea, select):focus {
      scroll-margin-top: calc(76px + env(safe-area-inset-top));
      scroll-margin-bottom: calc(var(--mobile-nav-height, 72px) + env(safe-area-inset-bottom) + 96px);
    }
  }

  @media (display-mode: standalone) {
    #install-button { display: none !important; }
    body { min-height: 100dvh; }
  }

  @media (display-mode: standalone) and (max-width: 760px) {
    .topbar { box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 46%, transparent); }
    .mobile-app-brand { box-shadow: 0 5px 16px rgba(79,70,229,.18), inset 0 1px 0 rgba(255,255,255,.18); }
  }

  @media (prefers-reduced-motion: reduce) {
    #app > .page,
    .toast:not([hidden]),
    .dialog-backdrop,
    .dialog,
    :where(button, .button, .icon-button)[aria-busy="true"]::after,
    form[aria-busy="true"],
    form[aria-busy="true"] button[type="submit"]::after {
      animation: none !important;
    }

    :where(.job-card, .premium-application-card, .ai-capability-card, .settings-overview > .card):hover {
      transform: none;
    }
  }
}

/* ==========================================================================\n   UI/UX AUDIT TASK 1 — VISUAL CONSISTENCY & DESIGN-SYSTEM REPAIR\n   Normalizes the remaining workspace geometry and brings Pasang Lowongan\n   onto the same component language as the rest of LamarAja.\n   ========================================================================== */
@media screen {
  .profile-page .form-section,
  .cv-editor-card,
  .premium-application-card,
  .ai-capability-card,
  .settings-overview > .card,
  .settings-page > :is(section.card, details.card) {
    border-radius: var(--radius);
  }

  .profile-page .repeater-item,
  .application-overview .metric-card,
  .application-action-panel,
  .premium-privacy-center fieldset,
  .settings-page .diagnostic-grid > div {
    border-radius: var(--radius-md);
  }

  .profile-page .sticky-save,
  .ai-command-status,
  .premium-cv-preview,
  .premium-privacy-center {
    border-radius: var(--radius-card-compact);
  }

  .ai-capability-orb,
  .settings-page > :is(section.card, details.card) > h2::before,
  .settings-page > :is(section.card, details.card) > summary::before {
    border-radius: var(--radius-control);
  }

  .post-job-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr);
    gap: var(--space-5);
    align-items: start;
  }

  .post-job-form-card { padding: var(--space-6); }
  .post-job-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--line);
  }
  .post-job-card-head h2 { margin: 4px 0 7px; font-size: 22px; }
  .post-job-card-head p { max-width: 660px; margin: 0; color: var(--muted); font-size: 13px; }

  .post-job-form { display: grid; gap: var(--space-5); padding-top: var(--space-5); }
  .honeypot-fields { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .post-job-section {
    min-width: 0;
    margin: 0;
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-card-compact);
    background: color-mix(in srgb, var(--surface-soft) 64%, var(--surface));
  }
  .post-job-section legend {
    padding: 0 8px;
    color: var(--text-strong);
    font-size: 15px;
    font-weight: var(--weight-bold);
    letter-spacing: -.015em;
  }
  .post-job-section-copy { margin: 0 0 var(--space-4); color: var(--muted); font-size: 12px; line-height: 1.55; }
  .post-job-section .form-grid { gap: var(--space-4); }
  .post-job-section .field small { margin-top: 1px; color: var(--muted); font-size: 11px; line-height: 1.45; }

  .post-job-safety {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: start;
    border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
    background: color-mix(in srgb, var(--brand-soft) 52%, var(--surface));
  }
  .post-job-safety .notice-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-control);
    color: var(--brand-text);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
  }
  .post-job-safety .notice-icon .ui-icon { width: 20px; height: 20px; }
  .post-job-safety p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

  .post-job-feedback { margin: 0; }
  .post-job-feedback .feedback-title { display: flex; align-items: center; gap: 8px; }
  .post-job-feedback .feedback-title .ui-icon { width: 18px; height: 18px; }
  .post-job-feedback p { margin: 6px 0 0; }

  .post-job-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-top: var(--space-1);
  }
  .post-job-submit-row p { max-width: 620px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
  .post-job-submit-button { min-width: 220px; }

  .post-job-aside { display: grid; gap: var(--space-4); position: sticky; top: calc(var(--app-bar-height) + var(--space-4)); }
  .post-job-guide-card { min-height: 156px; }
  .post-job-guide-card .metric-icon { margin-bottom: var(--space-4); }
  .post-job-guide-card h2 { margin: 0 0 7px; font-size: 16px; }
  .post-job-guide-card p { margin: 0; color: var(--muted); font-size: 12px; }
  .post-job-review-card { padding: var(--space-5); }
  .post-job-steps { display: grid; gap: var(--space-4); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
  .post-job-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
  .post-job-steps li > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    color: var(--brand-text);
    background: var(--brand-soft);
    font-size: 11px;
    font-weight: var(--weight-bold);
  }
  .post-job-steps strong, .post-job-steps small { display: block; }
  .post-job-steps strong { font-size: 12px; }
  .post-job-steps small { margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }

  @media (max-width: 980px) {
    .post-job-layout { grid-template-columns: 1fr; }
    .post-job-aside { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  @media (max-width: 680px) {
    .post-job-page { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + var(--space-8)); }
    .post-job-form-card { padding: var(--space-4); border-radius: var(--radius-card-compact); }
    .post-job-card-head { display: grid; padding-bottom: var(--space-4); }
    .post-job-card-head .badge { justify-self: start; }
    .post-job-form { gap: var(--space-4); padding-top: var(--space-4); }
    .post-job-section { padding: var(--space-4); border-radius: var(--radius-md); }
    .post-job-section .form-grid { grid-template-columns: 1fr; gap: var(--space-3); }
    .post-job-submit-row { display: grid; }
    .post-job-submit-button { width: 100%; min-width: 0; min-height: 50px; }
    .post-job-aside { grid-template-columns: 1fr; gap: var(--space-3); }
    .post-job-guide-card { min-height: 0; padding: var(--space-4); }
    .post-job-safety { grid-template-columns: 36px minmax(0, 1fr); }
    .post-job-safety .notice-icon { width: 36px; height: 36px; }
  }

  html[data-theme="contrast"] .post-job-section,
  html[data-theme="contrast"] .post-job-safety { border-width: 2px; }
}

/* ==========================================================================
   UI/UX AUDIT TASK 2 — MOBILE ANDROID SHELL & NAVIGATION REPAIR
   Aligns touch targets, modal-sheet behavior, landscape phones, safe areas,
   and software-keyboard viewport handling without changing route semantics.
   ========================================================================== */
@media screen {
  :root { --visual-viewport-height: 100dvh; }

  .topbar-action-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.app-sheet-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.app-sheet-open .sidebar {
    touch-action: pan-y;
  }

  @media (max-width: 900px) {
    .sidebar[role="dialog"][aria-modal="true"] {
      overscroll-behavior: contain;
    }
  }

  @media (max-width: 760px), (max-width: 900px) and (max-height: 560px) and (pointer: coarse) {
    .offline-banner {
      top: max(10px, calc(env(safe-area-inset-top) + 8px));
      max-width: calc(100vw - max(24px, env(safe-area-inset-left) + env(safe-area-inset-right) + 16px));
      text-align: center;
    }

    .mobile-app-brand,
    .topbar-menu-button,
    .topbar .button.small {
      width: 44px;
      min-width: 44px;
      height: 44px;
      min-height: 44px;
      flex-basis: 44px;
    }

    .mobile-app-brand,
    .topbar .button.small {
      border-radius: 14px;
    }

    .topbar-copy strong {
      max-width: 100%;
    }

    .topbar .button.small {
      padding: 0;
    }

    .topbar .button.small > span {
      display: none;
    }

    .topbar .button.small .topbar-action-icon {
      width: 20px;
      height: 20px;
      flex-basis: 20px;
    }


    .mobile-bottom-nav span {
      font-size: 11px;
      line-height: 1.2;
    }

    .sidebar {
      max-height: min(calc(var(--visual-viewport-height, 100dvh) - 8px), 640px);
      scroll-padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .sidebar-mobile-head .icon-button {
      width: 44px;
      min-width: 44px;
      height: 44px;
      min-height: 44px;
      flex-basis: 44px;
    }

    html.mobile-keyboard-open {
      --mobile-nav-height: 0px;
    }

    html.mobile-keyboard-open .mobile-bottom-nav {
      display: none !important;
    }

    html.mobile-keyboard-open .main-column {
      padding-bottom: 0;
    }

    html.mobile-keyboard-open :where(input, textarea, select):focus {
      scroll-margin-bottom: 32px;
    }

    html.mobile-keyboard-open .toast {
      bottom: max(10px, env(safe-area-inset-bottom));
    }
  }

  @media (max-width: 360px) {
    .mobile-bottom-nav span { font-size: 10px; }
  }
}

/* ==========================================================================\n   UI/UX AUDIT TASK 4 — INTERNAL WORKSPACE FRICTION REPAIR\n   Keeps profile save state visible, brings CV preview closer to editing,\n   de-emphasizes destructive tracker actions, and progressively discloses\n   technical AI/settings controls on smaller screens.\n   ========================================================================== */
@media screen {
  /* Profile: autosave state must remain visible on mobile instead of hiding
     together with the long storage explanation. */
  .profile-page .sticky-save > div:first-child {
    min-width: 0;
  }
  .profile-page .save-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 680;
    line-height: 1.35;
  }

  /* CV: desktop keeps the preview beside the editor, while the DOM order now
     lets mobile users see the preview before history/templates. */
  .cv-workspace-layout {
    grid-template-columns: minmax(0, 1fr) 470px;
  }
  .cv-editor-column { grid-column: 1; grid-row: 1; }
  .premium-cv-preview { grid-column: 2; grid-row: 1 / span 2; }
  .cv-secondary-column {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    display: grid;
    gap: 18px;
  }
  .cv-secondary-column > .section { margin-top: 0; }

  /* Tracker: changing status is the primary action. Rollback/delete are
     deliberate secondary actions rather than permanently competing CTAs. */
  .application-status-control {
    display: grid;
    gap: 6px;
  }
  .application-control-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 760;
  }
  .application-secondary-actions {
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  .application-secondary-actions > summary {
    min-height: 36px;
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 760;
  }
  .application-secondary-actions > summary::-webkit-details-marker { display: none; }
  .application-secondary-actions > summary::after {
    content: "+";
    margin-left: auto;
    color: var(--muted);
    font-size: 18px;
    font-weight: 500;
  }
  .application-secondary-actions[open] > summary::after { content: "−"; }
  .application-secondary-actions-body {
    display: grid;
    gap: 8px;
    padding-top: 8px;
  }
  .application-secondary-actions-body .button { width: 100%; }

  /* AI: user-facing capabilities stay primary. Consent is visible when it
     needs attention; payload/entitlement diagnostics are a second disclosure. */
  .ai-governance-panel {
    overflow: clip;
    padding: 0;
    border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  }
  .ai-governance-panel > summary {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    background: color-mix(in srgb, var(--surface-soft) 60%, var(--surface));
  }
  .ai-governance-panel > summary::-webkit-details-marker { display: none; }
  .ai-governance-panel > summary > span:first-child { display: grid; gap: 4px; }
  .ai-governance-panel > summary strong { font-size: 15px; }
  .ai-governance-panel > summary small { color: var(--muted); font-size: 11.5px; line-height: 1.45; }
  .ai-governance-content {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
    border-top: 1px solid var(--line);
  }
  .ai-governance-content > .premium-privacy-center { margin-top: 18px; }
  .ai-technical-disclosure {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
  }
  .ai-technical-disclosure > summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 760;
  }
  .ai-technical-content {
    display: grid;
    gap: 12px;
    padding: 0 12px 12px;
  }
  .ai-technical-content > :is(.card, section) { margin-top: 0; }

  /* Settings: frequent controls stay visible, operational diagnostics are one
     deliberate disclosure instead of a long wall of equally weighted cards. */
  .settings-primary-card { border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
  .settings-section-heading { margin-bottom: 18px; }
  .settings-section-heading h2 { margin: 8px 0 5px; }
  .settings-section-heading p { margin: 0; color: var(--muted); }
  .settings-advanced-content {
    display: grid;
    gap: 0;
    padding-top: 8px;
  }
  .settings-subsection {
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }
  .settings-subsection:first-child { border-top: 0; }
  .settings-subsection h3 { margin: 0 0 7px; font-size: 15px; }
  .settings-subsection > p { margin: 0 0 14px; color: var(--muted); }
  .settings-subsection .diagnostic-grid { margin-top: 12px; }

  @media (max-width: 900px) {
    .cv-workspace-layout { grid-template-columns: 1fr; }
    .cv-editor-column,
    .premium-cv-preview,
    .cv-secondary-column { grid-column: 1; grid-row: auto; }
    .premium-cv-preview { position: static; }
  }

  @media (max-width: 680px) {
    /* Prevent browser auto-zoom while editing long workspaces. */
    :where(.profile-page, .cv-page, .applications-page, .settings-page, .ai-workspace)
      :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
      font-size: 16px;
    }

    .profile-page .sticky-save {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
    }
    .profile-page .sticky-save > div:first-child {
      display: flex;
      align-items: center;
      overflow: hidden;
    }
    .profile-page .sticky-save > div:first-child small { display: none; }
    .profile-page .save-status {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .profile-page .sticky-save .actions {
      display: grid;
      grid-template-columns: minmax(104px, 1fr) auto;
      width: auto;
    }
    .profile-page .sticky-save .button:nth-child(2) {
      width: auto;
      max-width: none;
      min-width: 78px;
      overflow: visible;
      padding-inline: 12px;
      color: var(--text);
      position: static;
    }
    .profile-page .sticky-save .button:nth-child(2)::after { content: none; }

    .cv-editor-card textarea[name="content"] {
      min-height: 260px;
      font-size: 16px;
      line-height: 1.55;
    }
    .premium-cv-preview { margin-top: 0; }
    .cv-secondary-column { gap: 12px; }

    .application-action-panel {
      grid-template-columns: 1fr;
    }
    .application-action-panel > *,
    .application-action-panel .status-select { grid-column: 1; }
    .application-secondary-actions > summary { min-height: 44px; }

    .ai-governance-panel > summary {
      min-height: 72px;
      align-items: flex-start;
      padding: 15px;
    }
    .ai-governance-panel > summary .badge { flex: 0 0 auto; }
    .ai-governance-content { padding: 0 12px 12px; }
    .ai-governance-content > .premium-privacy-center { margin-top: 12px; }

    .settings-advanced-group > summary { min-height: 52px; }
    .settings-subsection { padding: 17px 0; }
    .settings-subsection .form-actions { display: grid; grid-template-columns: 1fr; }
  }

  @media (max-width: 390px) {
    .profile-page .sticky-save { grid-template-columns: 1fr; }
    .profile-page .sticky-save > div:first-child { justify-content: center; }
    .profile-page .sticky-save .actions { width: 100%; grid-template-columns: 1fr auto; }
  }
}


/* ==========================================================================
   UI/UX AUDIT TASK 5 — FINAL POLISH, ACCESSIBILITY & CLEANUP
   Locks modal background scroll, preserves text selection in content cards,
   and keeps semantic feedback robust across motion/contrast preferences.
   ========================================================================== */
@media screen {
  body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .dialog-backdrop {
    overscroll-behavior: contain;
  }

  .dialog { touch-action: pan-y; }

  .job-card,
  .job-card :where(p, span, strong, small, h3, a) {
    -webkit-user-select: text;
    user-select: text;
  }

  .toast {
    border: 1px solid color-mix(in srgb, white 14%, transparent);
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
  }

  @media (forced-colors: active) {
    .toast { border: 1px solid CanvasText; }
    .toast::before { forced-color-adjust: none; background: Highlight; }
    .dialog { border: 1px solid CanvasText; }
  }
}
