/* PlaceAI professional workspace palette: white navigation, cool canvas, semantic accents.
   This final presentation layer changes no visibility, media, timers or permissions.
   Important declarations reconcile the legacy, dynamically loaded visual layers. */
:root {
  --pa-tone-blush: #f7eef0;
  --pa-tone-sand: #f8f2e8;
  --pa-tone-mauve: #f2eef7;
  --pa-tone-stone: #f3f0ed;
  --pa-sidebar: #ffffff;
  --pa-canvas: #f6f8fc;
  --pa-surface: #ffffff;
  --pa-accent: #68495f;
  --pa-accent-hover: #503649;
  --pa-ink: #17243b;
  --pa-muted: #526177;
  --pa-border: #e0e6ef;
  --pa-selected: #f2eaf0;
  --ink: var(--pa-ink) !important;
  --muted: var(--pa-muted) !important;
  --line: var(--pa-border) !important;
  --soft: var(--pa-canvas) !important;
  --soft2: var(--pa-canvas) !important;
  --panel: var(--pa-surface) !important;
  --surface: var(--pa-surface) !important;
  --surface-2: var(--pa-canvas) !important;
  --surface-subtle: var(--pa-canvas) !important;
  --surface-strong: var(--pa-sidebar) !important;
  --text-strong: var(--pa-ink) !important;
  --text-muted: var(--pa-muted) !important;
  --border-strong: var(--pa-border) !important;
  --accent: var(--pa-accent) !important;
  --accent-2: var(--pa-accent-hover) !important;
  --blue: var(--pa-accent) !important;
  --blue2: var(--pa-accent-hover) !important;
  --navy: var(--pa-ink) !important;
  --navy-2: var(--pa-ink) !important;
  --navy2: var(--pa-ink) !important;
  --placeai-workspace-bg: var(--pa-canvas) !important;
  --placeai-surface: var(--pa-surface) !important;
  --placeai-surface-muted: var(--pa-canvas) !important;
  --placeai-border: var(--pa-border) !important;
  --placeai-border-strong: var(--pa-border) !important;
  --placeai-text: var(--pa-ink) !important;
  --placeai-text-muted: var(--pa-muted) !important;
  --placeai-brand: var(--pa-accent) !important;
  --placeai-brand-strong: var(--pa-accent-hover) !important;
  --placeai-soft-shadow: 0 1px 3px rgb(39 35 48 / 4%) !important;
  --placeai-lift-shadow: 0 2px 6px rgb(39 35 48 / 6%) !important;
  --shadow: 0 2px 8px rgb(39 35 48 / 6%) !important;
  --radius: 6px !important;
  --radius-sm: 5px !important;
  --font-body: Calibri, Carlito, "Segoe UI", Arial, sans-serif !important;
  --font-display: Calibri, Carlito, "Segoe UI", Arial, sans-serif !important;
  --bg: var(--pa-canvas) !important;
  --brand: var(--pa-accent) !important;
  --brand-2: var(--pa-accent-hover) !important;
}
html, body, #marketing-site, .app-shell, .app-shell:not(.hidden), .app-content-wrap,
.app-content, .assessment-content {
  background: var(--pa-canvas) !important;
  color: var(--pa-ink) !important;
}
body { font-family: var(--font-body) !important; }
h1, h2, h3, h4, h5, .legal-brand, .table-primary { color: var(--pa-ink) !important; }
p, .hero-lead, .form-intro, .legal-card li, .table-secondary,
.page-head p, .panel-head p, .section-heading p { color: var(--pa-muted) !important; }
.site-header, .topbar, .app-topbar, .app-shell .app-topbar, .auth-form-panel,
.legal-card, .panel, .data-panel, .form-panel, .metric-card, .operation-card,
.assistant-card, .generic-modal-card, .command-card, .notification-panel,
.trust-card, .report-card, .question-panel, .checks-card, .setup-form,
.production-surface-card, .bento-card, .security-card, .prep-role-card,
.access-role-card, .access-requests-panel, .analysis-panel, .result-panel,
.answer-review, .answer-pane, .score-card, .score-tile, .score-summary-card {
  background: var(--pa-surface) !important;
  color: var(--pa-ink) !important;
  border-color: var(--pa-border) !important;
  box-shadow: none !important;
  border-radius: 6px !important;
}
.site-header, .topbar, .app-topbar, .app-shell .app-topbar {
  border-radius: 0 !important;
  backdrop-filter: none !important;
  color: var(--pa-ink) !important;
}
.site-header { border-bottom: 1px solid var(--pa-border); }
.app-sidebar, .assessment-sidebar, .preview-sidebar, .auth-brand-panel,
#auth-overlay .auth-brand-panel, .hero-score-card, .dark-section,
.placeai-footer, .site-footer {
  background: var(--pa-sidebar) !important;
  color: var(--pa-ink) !important;
  border-color: var(--pa-border) !important;
  box-shadow: none !important;
}
.app-sidebar :is(p, small, strong, span, a, button),
.assessment-sidebar :is(p, small, strong, span, a, button),
.auth-brand-panel :is(p, small, strong, span, h2),
.dark-section :is(p, small, strong, span, h2, li),
.hero-score-card :is(p, small, strong, span),
.placeai-footer :is(p, small, strong, span, a, h3),
.site-footer :is(p, small, strong, span, a),
.top-actions, .top-actions a, .secure {
  color: var(--pa-ink) !important;
}
.app-sidebar .nav-group-label, .assessment-brand .eyebrow,
.app-sidebar .workspace-pill small, .app-sidebar .user-info small,
.app-sidebar .ai-policy p, .auth-panel-kicker {
  color: var(--pa-muted) !important;
}
.workspace-pill, .ai-policy, .assessment-brand, .timer-card, .assessment-steps,
.sidebar-footer, .user-menu, .assessment-sidebar .timer-card {
  background: transparent !important;
  color: var(--pa-ink) !important;
  border-color: #c5c0c9 !important;
  box-shadow: none !important;
}
.app-sidebar .app-nav button { color: var(--pa-ink) !important; }
.app-sidebar .app-nav button:hover,
.app-sidebar .app-nav button.active, .section-nav button.active {
  background: var(--pa-selected) !important;
  color: var(--pa-accent) !important;
  box-shadow: none !important;
  border-color: var(--pa-border) !important;
}
.app-sidebar .app-nav button.active :is(span, svg) { color: var(--pa-accent) !important; }
.app-sidebar .app-nav button.active::after { background: var(--pa-accent) !important; }
.app-sidebar .app-nav button { border-radius: 5px !important; }
.sidebar-bottom, .sidebar-user, .account-security-button,
.app-shell .account-security-button {
  background: var(--pa-sidebar) !important;
  color: var(--pa-ink) !important;
  border-color: #c5c0c9 !important;
}
.sidebar-user em, .account-security-button :is(span, strong),
.app-sidebar .ai-policy :is(p, small, strong) { color: var(--pa-ink) !important; }
.workspace-avatar, .user-avatar, .ai-policy > span {
  background: var(--pa-surface) !important;
  color: var(--pa-accent) !important;
  box-shadow: none !important;
}
.button-primary:not(.danger), .button.primary:not(.danger),
.app-shell .button-primary, .app-shell .row-button.primary:not(.danger),
.prep-card-action .button-primary, .privacy-actions button:last-child {
  background: var(--pa-accent) !important;
  color: var(--pa-surface) !important;
  border-color: var(--pa-accent) !important;
  box-shadow: none !important;
}
.button-primary:hover:not(:disabled), .button.primary:hover:not(:disabled) {
  background: var(--pa-accent-hover) !important;
}
.button, .row-button, .auth-tab, .access-role-card, .access-mode-row button {
  border-radius: 5px !important;
}
.button-secondary, .button.secondary, .button-light, .button-ghost,
.icon-button, .mobile-menu, .privacy-settings-button {
  background: var(--pa-surface) !important;
  color: var(--pa-ink) !important;
  border-color: var(--pa-border) !important;
  box-shadow: none !important;
}
.text-button, .section-kicker, .eyebrow, .step, .card-kicker,
.prep-lab-kicker, .prep-role-badge, .prep-feature-list li::before,
.card-number, .legal-contact, .legal-kicker, .legal-nav a,
.access-role-card.is-selected em, .auth-helper-link, .forgot-password,
.hero h1 span { color: var(--pa-accent) !important; }
.eyebrow, .hero-meta span, .prep-role-badge, .workspace-role-chip,
.access-selection-summary, .legal-note, .locked-setting, .blueprint-card,
.assessment-policy, .analysis-step, .prep-lab-note, .notification-count {
  background: var(--pa-canvas) !important;
  color: var(--pa-ink) !important;
  border-color: var(--pa-border) !important;
  box-shadow: none !important;
}
.access-role-card.is-selected, .auth-tab.active, .access-mode-row button.is-active {
  background: var(--pa-canvas) !important;
  border-color: var(--pa-accent) !important;
  color: var(--pa-accent) !important;
}
.access-role-dot, .eyebrow-dot::after, .prep-lab-kicker::before,
.analysis-meter > span { background: var(--pa-accent) !important; }
.auth-proof span, .auth-role-proof, .mini-stats div {
  background: var(--pa-surface) !important;
  color: var(--pa-ink) !important;
  border-color: var(--pa-border) !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea, select, .field-input, .form-control {
  background-color: var(--pa-surface) !important;
  color: var(--pa-ink) !important;
  border-color: var(--pa-border) !important;
  border-radius: 5px !important;
}
input::placeholder, textarea::placeholder { color: var(--pa-muted) !important; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--pa-accent); }
.data-table, .section-table, .access-table, .data-table tbody tr,
.app-shell .data-table tbody tr { background: var(--pa-surface) !important; }
.data-table th, .section-table th, .access-table th,
.app-shell .data-table thead th {
  background: var(--pa-canvas) !important;
  color: var(--pa-muted) !important;
  border-color: var(--pa-border) !important;
}
.data-table td, .section-table td, .access-table td { border-color: var(--pa-border) !important; }
.data-table tbody tr:hover, .app-shell .data-table tbody tr:hover { background: var(--pa-canvas) !important; }
.proof-strip, .preparation-section, .prep-lab-section, .cta-section,
.legal-note, .skill-intel-card, .question-progress, .assessment-footer {
  background: var(--pa-canvas) !important;
  color: var(--pa-ink) !important;
  border-color: var(--pa-border) !important;
  box-shadow: none !important;
}
.cta-section :is(h2, span), .proof-strip :is(strong, span),
.production-surface-card :is(strong, h2, h3), .locked-setting strong,
.hero h1, .assessment-brand strong, .answer-review h4, .answer-score-box strong,
.panel-head h2, .legal-hero h1, .result-head h2 { color: var(--pa-ink) !important; }
.hero-score-card, .hero-photo-card, .security-card, .prep-role-card,
.production-surface-card, .legal-card, .bento-card { border-radius: 6px !important; }
#marketing-site .hero h1 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  letter-spacing: -.035em !important;
}
.page-head h1, .app-shell .page-head h1 { font-weight: 600 !important; }
.metric-card strong, .app-shell .metric-card strong { font-weight: 500 !important; }
.privacy-preferences { background: var(--pa-surface); color: var(--pa-ink); border-color: var(--pa-border); box-shadow: none; border-radius: 6px; }
.privacy-preferences a, .privacy-actions button { color: var(--pa-accent); }
.privacy-actions button { border-color: var(--pa-accent); }
.result-kicker, .assessment-brand .eyebrow, .question-counter,
.section-clock, .section-clock span, .question-time, .answer-timer { color: var(--pa-accent) !important; }
.ideal-answer-box, .answer-pane, .rubric-item, .review-detail-box,
.analysis-note, .blueprint-row, .analysis-step.active, .ai-box,
.empty-state, .production-surface-grid div {
  background: var(--pa-canvas) !important;
  border-color: var(--pa-border) !important;
}
.empty-state { border-style: solid !important; border-radius: 6px !important; }
.empty-icon, .activity-icon, .app-shell .metric-card::after {
  background: var(--pa-canvas) !important;
  color: var(--pa-accent) !important;
}
.panel-head button, .ai-box-head span, .production-surface-card .surface-kicker,
.topbar-context small { color: var(--pa-accent) !important; }
.metric-card small, .app-shell .metric-card small,
.production-surface-grid span { color: var(--pa-muted) !important; }
.progress-bar i, .signal-meter i.on { background: var(--pa-accent) !important; }
.option-button, .mcq-answer-area .option-button {
  background: var(--pa-surface) !important;
  border-color: var(--pa-border) !important;
  border-radius: 5px !important;
}
.option-button:hover, .option-button.selected,
.mcq-answer-area .option-button.selected {
  background: var(--pa-canvas) !important;
  border-color: var(--pa-accent) !important;
  box-shadow: none !important;
}
.option-button.selected .option-key, .option-button.selected::after,
.mcq-answer-area .option-button.selected .option-key,
.option-button.selected .option-select-indicator {
  background: var(--pa-accent) !important;
  color: var(--pa-surface) !important;
  border-color: var(--pa-accent) !important;
}
/* Dark media captions and the red proctoring banner retain light foregrounds. */
.assessment-sidebar .proctor-header :is(strong, span),
.assessment-sidebar .assessment-camera-meta :is(span, b) {
  color: var(--pa-surface) !important;
}
/* Keep success, warning, error, integrity and microphone activity colours semantic. */

/* Readable typography: hierarchy comes from scale, spacing and colour, not bold. */
body { font-size: 17px !important; }
body :is(h1, h2, h3, h4, h5, p, a, button, input, textarea, select, label,
  strong, b, span, small, th, td, li, em) {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
}
body :is(pre, code, kbd), body :is(pre, code, kbd) * {
  font-family: Consolas, "Courier New", monospace !important;
}
#marketing-site .hero h1 {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  font-size: clamp(40px, 4.5vw, 60px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.025em !important;
}
#marketing-site :is(.section-heading h2, .dark-section h2, .security-card h2,
  .prep-lab-intro h2, .cta-inner h2) {
  font-size: clamp(34px, 4.3vw, 58px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.018em !important;
}
#marketing-site :is(.hero-lead, .section-heading p, .prep-lab-intro p,
  .security-card p, .dark-section p) { font-size: 18px !important; line-height: 1.65 !important; }
#marketing-site :is(.bento-card h3, .prep-role-card h3, .production-surface-card h2, .production-surface-card h3) {
  font-size: 25px !important; line-height: 1.3 !important;
}
#marketing-site :is(.bento-card p, .prep-role-card p, .production-surface-card p,
  .prep-feature-list li, .production-surface-grid span) { font-size: 16px !important; }
.app-shell .page-head h1, .page-head h1 { font-size: 30px !important; font-weight: 400 !important; }
.app-shell :is(.panel-head h2, .data-toolbar h2, .form-panel h2) { font-size: 21px !important; }
.app-shell :is(.page-head p, .panel-head p, .data-table td, .table-primary,
  .form-stack label, .field-label, .table-secondary) { font-size: 15px !important; }
body .app-shell .app-nav button { font-size: 14px !important; }
body :is(.nav-label, .check-label) { font-weight: 400 !important; }
.app-sidebar { --pa-muted: #59525f; }
.app-sidebar :is(.nav-group-label, small, .account-security-button span) { opacity: 1 !important; }
.app-sidebar :is(.nav-group-label, .workspace-pill small, .account-security-button span) {
  font-size: 11px !important; letter-spacing: .06em !important;
}
.app-shell .metric-card small, .app-shell .metric-card span { font-size: 13px !important; }
.app-shell .metric-card strong { font-size: 32px !important; font-weight: 400 !important; }
.button, .app-shell .button, .privacy-actions button { font-size: 16px !important; }
.row-button, .app-shell .row-button { font-size: 14px !important; }
.auth-form-panel :is(input, select, textarea, label, .button) { font-size: 16px !important; }
.auth-form-panel h2, #auth-overlay .auth-form-panel h2 { font-size: 30px !important; }
.auth-brand-panel h2 { font-size: 34px !important; }
.access-role-card strong { font-size: 15px !important; }
.access-selection-summary :is(b, strong) { font-size: 15px !important; }
.legal-card :is(p, li), .legal-hero p { font-size: 17px !important; }
.panel-head h2, .result-head h2 { font-weight: 400 !important; }
.spoken-question-clock time { font-family: var(--font-body) !important; font-weight: 400 !important; }
#marketing-site .hero-journey-line { color: var(--pa-accent); font-size: clamp(23px, 2.3vw, 30px); line-height: 1.4; margin: 22px 0 18px; }
.learning-journey { padding: 12px 0 65px; }
.journey-heading { margin-bottom: 25px; }
.journey-heading h2 { font-size: 36px; font-weight: 400; line-height: 1.2; margin: 10px 0 0; }
.journey-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; }
.journey-card { position: relative; padding: 25px; background: var(--pa-surface); border: 1px solid var(--pa-border); border-radius: 6px; }
.journey-card::before { content: ""; position: absolute; inset: -1px 24px auto; height: 3px; background: var(--pa-accent); transform-origin: left center; animation: placeaiJourneyHighlight 1.2s ease-out both; }
.journey-card:nth-child(2)::before { animation-delay: .15s; }
.journey-card:nth-child(3)::before { animation-delay: .3s; }
.journey-index { color: var(--pa-accent); font-size: 14px; }
.journey-card h3 { font-size: 28px; line-height: 1.2; margin: 12px 0; }
.journey-card p { font-size: 17px; line-height: 1.6; margin: 0 0 22px; }
.journey-card a { color: var(--pa-accent); font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
#marketing-site :is(.hero-trust strong, .security-grid strong) { font-size: 17px !important; }
#marketing-site :is(.hero-trust span, .security-grid span) { font-size: 14px !important; }
#marketing-site .preparation-grid h3 { font-size: 23px !important; }
#marketing-site .preparation-grid p { font-size: 16px !important; }
.placeai-footer :is(p, a, span) { font-size: 15px !important; }
@keyframes placeaiJourneyHighlight { from { opacity: .15; transform: scaleX(.4); } to { opacity: 1; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .journey-card::before { animation: none; opacity: 1; } }
@media (max-width: 760px) {
  .journey-grid { grid-template-columns: 1fr; gap: 16px; }
  .learning-journey { padding-bottom: 45px; }
  .journey-card { padding: 22px; }
  .app-shell .page-head h1 { font-size: 27px !important; }
}
@media (max-width: 320px) {
  #marketing-site .hero h1 { font-size: 36px !important; }
  .auth-form-panel h2, #auth-overlay .auth-form-panel h2 { font-size: 25px !important; }
  .button, .app-shell .button { white-space: normal; }
}

/* Workspace design system: one identity, restrained hierarchy and shared controls.
   Scoped to the authenticated shell; camera overlays and assessment timers keep
   their purpose-built presentation and semantic colours. */
#app-shell {
  --type-caption: .75rem;
  --type-small: .875rem;
  --type-body: 1rem;
  --type-section: 1.3125rem;
  --type-title: 1.875rem;
  --type-metric: 2rem;
  --radius-control: 8px;
  --radius-panel: 12px;
  --radius-pill: 999px;
  --text-success: #21634a;
  --text-warning: #795414;
  --text-danger: #a12727;
  font-size: var(--type-body);
  line-height: 1.5;
  color: var(--pa-ink);
}
#app-shell [hidden] { display: none !important; }
#app-shell .sidebar-user small { display: none; }
#app-shell .sidebar-bottom .ai-policy { display: none; }
#app-shell :is(.account-security-button strong, .workspace-avatar, .user-avatar,
  .icon-button, .icon-button kbd) { font-size: var(--type-small) !important; }
#app-shell .empty-state p { font-size: var(--type-body) !important; color: var(--pa-muted) !important; }
#app-shell .workspace-pill { padding-block: 16px; }
#app-shell #workspace-kind {
  font-size: var(--type-small) !important;
  letter-spacing: normal !important;
  text-transform: none;
  color: var(--pa-ink) !important;
}
#app-shell .page-head { margin-bottom: 24px; }
#app-shell .page-head h1 {
  font-size: var(--type-title) !important;
  line-height: 1.2;
  letter-spacing: -.02em;
}
#app-shell :is(.panel-head h2, .data-toolbar h2, .form-panel h2, .empty-state h3) {
  font-size: var(--type-section) !important;
  line-height: 1.35;
}
#app-shell :is(.page-head p, .panel-head p, .data-table td, .table-primary,
  .form-stack label, .field-label, input, textarea, select) {
  font-size: var(--type-body) !important;
}
#app-shell :is(.table-secondary, .data-table th, .app-nav button, .row-button,
  .status-badge, .status-pill, .metric-card small, .metric-card span,
  .sidebar-user strong, .sidebar-user em, .topbar-context strong) {
  font-size: var(--type-small) !important;
}
#app-shell :is(.nav-group-label, .topbar-context small) {
  font-size: var(--type-caption) !important;
  text-transform: none;
  letter-spacing: normal !important;
}
#app-shell .metric-card strong { font-size: var(--type-metric) !important; }
#app-shell .panel-head button { font-size: var(--type-small) !important; }
#app-shell .section-kicker {
  font-size: var(--type-caption) !important;
  text-transform: none;
  letter-spacing: normal !important;
}
#app-shell :is(.table-primary, .topbar-context strong) { color: var(--pa-ink) !important; }
#app-shell :is(.table-secondary, .page-head p, .panel-head p, .data-table th,
  .nav-group-label, .topbar-context small) { color: var(--pa-muted) !important; }
#app-shell :is(.text-button, .section-kicker) { color: var(--pa-accent) !important; }
#app-shell :is(.status-approved, .status-hired, .status-accepted, .metric-good) {
  color: var(--text-success) !important;
}
#app-shell :is(.status-pending, .status-pending_review, .status-shortlisted) {
  color: var(--text-warning) !important;
}
#app-shell :is(.status-rejected, .status-cancelled) { color: var(--text-danger) !important; }
#app-shell :is(.panel, .data-panel, .form-panel, .metric-card, .operation-card, .empty-state) {
  border-radius: var(--radius-panel) !important;
}
#app-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select,
  .account-security-button, .app-nav button) { border-radius: var(--radius-control) !important; }
#app-shell :is(.status-badge, .status-pill) { border-radius: var(--radius-pill) !important; }
#app-shell :is(.button, .row-button, .icon-button) {
  --button-bg: var(--pa-surface);
  --button-fg: var(--pa-ink);
  --button-border: var(--pa-border);
  background: var(--button-bg) !important;
  color: var(--button-fg) !important;
  border: 1px solid var(--button-border) !important;
  border-radius: var(--radius-control) !important;
  box-shadow: none !important;
  line-height: 1.4;
}
#app-shell .button { font-size: var(--type-body) !important; }
#app-shell :is(.button-primary, .button.primary, .row-button.primary) {
  --button-bg: var(--pa-accent);
  --button-fg: var(--pa-surface);
  --button-border: var(--pa-accent);
}
#app-shell :is(.button-ghost, .button-light) {
  --button-bg: transparent;
  --button-fg: var(--pa-accent);
  --button-border: transparent;
}
#app-shell :is(.button, .row-button, .icon-button):hover:not(:disabled) {
  --button-bg: var(--pa-canvas);
  --button-border: var(--pa-accent);
}
#app-shell :is(.button-primary, .button.primary, .row-button.primary):hover:not(:disabled) {
  --button-bg: var(--pa-accent-hover);
}
#app-shell :is(.button, .row-button).danger {
  --button-bg: var(--pa-surface);
  --button-fg: var(--text-danger);
  --button-border: var(--text-danger);
}
#app-shell :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--pa-accent) !important;
  outline-offset: 3px;
}
#app-shell button:disabled { opacity: .55; cursor: not-allowed; }
#app-shell .account-security-button > span {
  text-transform: none;
  letter-spacing: normal !important;
  font-size: var(--type-small) !important;
  opacity: 1 !important;
}
@media (max-width: 760px) {
  #app-shell .page-head h1 { font-size: var(--type-section) !important; }
  #app-shell .topbar-actions .icon-button { min-width: 44px; min-height: 44px; }
}
@media (min-width: 1100px) {
  body:has(#app-shell:not(.hidden)) .privacy-preferences {
    width: calc(100% - 300px);
    max-width: 1000px;
    margin-left: 280px;
    margin-right: 20px;
  }
}

/* Readable content on light workspace surfaces. The old check-list treatment
   belongs to dark marketing sections, not authenticated feature cards. */
#app-shell .check-list {
  list-style: disc;
  margin: 12px 0;
  padding-inline-start: 22px;
}
#app-shell .check-list li {
  display: list-item;
  color: var(--pa-ink) !important;
  font-size: var(--type-body) !important;
  line-height: 1.6;
  padding: 4px 0;
  opacity: 1;
  overflow-wrap: anywhere;
}
#app-shell .check-list li::before { content: none; }
#app-shell .check-list li::marker { color: var(--pa-accent); }
#app-shell .app-nav button[aria-current="page"] .nav-icon { color: var(--pa-accent) !important; }
#app-shell :is(.activity-item small, .operation-card small, .note-box p, .ai-box p,
  .muted-copy, .roadmap-generated, .roadmap-disclaimer) {
  color: var(--pa-muted) !important;
  font-size: var(--type-small) !important;
  line-height: 1.6;
}
#app-shell .app-content .two-panel { align-items: start; }
#app-shell .roadmap-priority-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
#app-shell .roadmap-priority-grid > .panel { min-height: 0; }
#app-shell .roadmap-market-panel > .check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 8px;
}
#app-shell .roadmap-market-notes {
  margin-top: 16px;
  padding-top: 12px;
  border-color: var(--pa-border);
}
#app-shell .roadmap-market-notes > summary {
  cursor: pointer;
  color: var(--pa-accent);
  font-size: var(--type-small);
  padding-block: 6px;
}
#app-shell .roadmap-market-notes > summary:focus-visible {
  outline: 2px solid var(--pa-accent);
  outline-offset: 3px;
}
#app-shell :is(.roadmap-focus-panel, .roadmap-target-card, .roadmap-rhythm-grid > div) {
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
  border-radius: var(--radius-panel);
  box-shadow: none;
}
#app-shell .roadmap-target-card { min-height: 0; justify-content: center; }
#app-shell .roadmap-target-card small { margin-bottom: 8px; }
#app-shell .roadmap-rhythm-grid > div { min-height: 0; }
#app-shell :is(.roadmap-focus-copy > p, .roadmap-rhythm-grid span,
  .roadmap-rhythm-grid strong, .roadmap-path-head p) {
  font-size: var(--type-body) !important;
  color: var(--pa-ink) !important;
  line-height: 1.6;
}
#app-shell :is(.roadmap-chip-list span, .roadmap-focus-actions span,
  .roadmap-target-card span, .roadmap-rhythm-grid small,
  .roadmap-form-step small, .roadmap-builder-footer p,
  .roadmap-plan-toolbar-copy small, .roadmap-adjust-panel > summary small) {
  font-size: var(--type-small) !important;
  color: var(--pa-muted) !important;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
}
#app-shell .roadmap-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
#app-shell .roadmap-support-section {
  min-width: 0;
  padding: 20px;
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
  border-radius: var(--radius-panel);
}
#app-shell .roadmap-support-section h2 { margin: 0 0 12px; font-size: var(--type-section); }
#app-shell .roadmap-support-grid:empty { display: none; }
#app-shell .roadmap-disclaimer { margin: 16px 0; }
#app-shell .app-content :is(.panel > h2, .form-panel > h2) {
  font-size: var(--type-section) !important;
  line-height: 1.35;
}
#app-shell .app-content :is(.operation-card h3, .report-card h3, .activity-item strong) {
  font-size: var(--type-body) !important;
  color: var(--pa-ink) !important;
  line-height: 1.5;
}
#app-shell .app-content :is(.operation-card p, .report-card p, .announcement-card p) {
  font-size: var(--type-body) !important;
  color: var(--pa-muted) !important;
  line-height: 1.6;
}
#app-shell .app-content :is(.panel, .operation-card, .report-card, .activity-item > div) {
  min-width: 0;
  overflow-wrap: anywhere;
}
#app-shell :is(.metric-card span, .optional, .roadmap-target-card small,
  .roadmap-evidence > summary small) {
  font-size: var(--type-small) !important;
  color: var(--pa-muted) !important;
  line-height: 1.5;
  opacity: 1 !important;
  text-transform: none;
  letter-spacing: normal;
}
#app-shell :is(.roadmap-form-step strong, .roadmap-evidence > summary strong,
  .roadmap-adjust-panel > summary strong) {
  font-size: var(--type-body) !important;
  color: var(--pa-ink) !important;
}
#app-shell .status-badge.status-applied { color: var(--pa-accent) !important; }
#app-shell .progress-item span {
  color: var(--pa-muted) !important;
  font-size: var(--type-small) !important;
}

/* Readiness cards use the shared workspace hierarchy and readable evidence. */
#app-shell :is(.readiness-hero, .readiness-component, .ai-box) {
  border-radius: var(--radius-panel) !important;
}
#app-shell .readiness-hero { margin-bottom: 16px; }
#app-shell .readiness-hero h2 {
  font-size: var(--type-section) !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#app-shell .readiness-hero > div { min-width: 0; }
#app-shell .readiness-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: min(9.375rem, 100%);
  height: auto;
  aspect-ratio: 1;
  border-width: .8125rem;
  box-sizing: border-box;
  text-align: center;
}
#app-shell .readiness-score strong { font-size: var(--type-metric) !important; }
#app-shell .readiness-score span {
  font-size: var(--type-small) !important;
  line-height: 1.4;
  margin: 0;
}
#app-shell .readiness-component {
  min-width: 0;
  padding: 18px;
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
}
#app-shell .readiness-component header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}
#app-shell .readiness-component strong {
  font-size: var(--type-body) !important;
  color: var(--pa-ink) !important;
}
#app-shell .readiness-component :is(span, small) {
  font-size: var(--type-small) !important;
  color: var(--pa-muted) !important;
}
#app-shell .readiness-component header > span { white-space: nowrap; }
#app-shell .readiness-component small { display: block; margin-top: 8px; }
#app-shell :is(.readiness-component p, .readiness-hero p) {
  font-size: var(--type-body) !important;
  line-height: 1.6;
  color: var(--pa-muted) !important;
  overflow-wrap: anywhere;
}
#app-shell .readiness-component p { margin: 12px 0 0; }
#app-shell .readiness-components > article:last-child:nth-child(odd) { grid-column: 1 / -1; }
#app-shell :is(.professional-meter, .professional-meter i) { border-radius: var(--radius-pill); }
#app-shell .ai-box-head span {
  font-size: var(--type-small) !important;
  text-transform: none;
  letter-spacing: normal !important;
}
#app-shell .empty-state h2 {
  font-size: var(--type-section) !important;
  line-height: 1.35;
  margin: 0;
}
#app-shell .command-launch-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--pa-ink) !important;
}
#app-shell #document-upload-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
#app-shell #document-upload-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
  font-size: var(--type-body) !important;
  color: var(--pa-ink) !important;
}
#app-shell #document-upload-form :is(input, select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
#app-shell #document-upload-form .file-picker { grid-column: 1 / -1; }
#app-shell .command-launch kbd {
  font-size: var(--type-caption) !important;
  color: var(--pa-muted) !important;
  border-radius: var(--radius-control);
}
#app-shell .panel-head button {
  background: transparent !important;
  color: var(--pa-accent) !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-control);
  padding: 8px 12px;
  line-height: 1.4;
}
#app-shell .panel-head button:hover:not(:disabled) {
  background: var(--pa-canvas) !important;
  border-color: var(--pa-accent) !important;
}
@media (max-width: 760px) {
  #app-shell .roadmap-market-panel > .check-list { grid-template-columns: minmax(0, 1fr); }
}


/* Reference-led dashboard composition: colour belongs to categories and statuses,
   while workspace surfaces and typography remain quiet and consistent. */
#app-shell {
  --metric-blue-bg: #f3f0ed;
  --metric-blue-ink: #68495f;
  --metric-mint-bg: #f7eef0;
  --metric-mint-ink: #754559;
  --metric-amber-bg: #fff5e8;
  --metric-amber-ink: #8a500f;
  --metric-violet-bg: #f2eef7;
  --metric-violet-ink: #68495f;
}
#app-shell .app-sidebar { border-right: 1px solid var(--pa-border); }
#app-shell .sidebar-brand { padding-block: 23px; border-bottom: 1px solid var(--pa-border); }
#app-shell .workspace-pill { padding-block: 18px 12px; }
#app-shell .app-nav { padding-inline: 14px; }
#app-shell .app-nav button { min-height: 42px; padding: 10px 12px; transition: background-color .15s ease; }
#app-shell .app-nav button:hover { background: var(--pa-canvas) !important; transform: none; }
#app-shell .app-nav button.active { background: var(--pa-selected) !important; color: var(--pa-accent) !important; }
#app-shell .app-nav button.active::after { display: none; }
#app-shell .nav-group-label { padding-inline: 12px; margin-top: 20px; }
#app-shell .user-avatar { background: var(--pa-selected) !important; color: var(--pa-accent) !important; }
#app-shell .sidebar-user { padding: 12px; border: 1px solid var(--pa-border); border-radius: var(--radius-control); background: var(--pa-canvas) !important; }
#app-shell .app-topbar { min-height: 70px; padding-block: 14px; }
#app-shell .app-content { padding-top: 28px; }
#app-shell .page-head { margin-bottom: 24px; }
#app-shell .metric-grid { gap: 16px; margin-block: 24px; }
#app-shell .metric-card {
  --metric-bg: var(--metric-blue-bg);
  --metric-ink: var(--metric-blue-ink);
  background: var(--metric-bg) !important;
  border: 1px solid rgb(23 36 59 / 7%) !important;
  min-height: 150px;
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgb(23 36 59 / 3%) !important;
  transform: none;
}
#app-shell .metric-card[data-metric-tone="mint"] { --metric-bg: var(--metric-mint-bg); --metric-ink: var(--metric-mint-ink); }
#app-shell .metric-card[data-metric-tone="amber"] { --metric-bg: var(--metric-amber-bg); --metric-ink: var(--metric-amber-ink); }
#app-shell .metric-card[data-metric-tone="violet"] { --metric-bg: var(--metric-violet-bg); --metric-ink: var(--metric-violet-ink); }
#app-shell .metric-card::after { content: none; }
#app-shell .metric-card small { display: block; margin: 0 0 8px; padding-right: 30px; text-transform: none; letter-spacing: normal; }
#app-shell .metric-card strong { margin: 0 0 6px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#app-shell .metric-card .metric-symbol {
  position: absolute; right: 18px; top: 18px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px; color: var(--metric-ink) !important;
  background: var(--pa-surface); border: 1px solid rgb(23 36 59 / 7%);
}
#app-shell .metric-symbol svg { width: 16px; height: 16px; }
#app-shell .dashboard-grid { gap: 20px; align-items: start; }
#app-shell .panel { padding: 24px; }
#app-shell :is(.panel, .data-panel, .form-panel, .operation-card) { box-shadow: 0 1px 3px rgb(23 36 59 / 3%) !important; }
#app-shell .panel-head { margin-bottom: 20px; }
#app-shell .activity-item { padding-block: 16px; border-bottom-color: var(--pa-border); }
#app-shell .activity-icon { background: var(--pa-selected) !important; border-radius: var(--radius-control); }
#app-shell .data-toolbar, #app-shell .data-table thead th { background: #f8fafc !important; }
#app-shell .data-table tbody tr:hover { background: #f4f7fd; }
#app-shell .workspace-shortcuts { margin-bottom: 24px; }
#app-shell .workspace-shortcuts h2 { font-size: var(--type-section) !important; margin: 0 0 16px; }
#app-shell .workspace-shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#app-shell .workspace-shortcut {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 76px;
  padding: 14px; background: var(--pa-surface); color: var(--pa-ink); border: 1px solid var(--pa-border);
  border-radius: var(--radius-control); cursor: pointer; font-size: var(--type-small) !important;
  transition: border-color .15s ease, background-color .15s ease;
}
#app-shell .workspace-shortcut:hover { border-color: var(--pa-accent); background: var(--pa-canvas); }
#app-shell .workspace-shortcut .nav-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: var(--radius-control); background: var(--pa-selected); color: var(--pa-accent); }
#app-shell .workspace-shortcut:nth-child(2) .nav-icon { background: var(--metric-violet-bg); color: var(--metric-violet-ink); }
#app-shell .workspace-shortcut:nth-child(3) .nav-icon { background: var(--metric-amber-bg); color: var(--metric-amber-ink); }
#app-shell .workspace-shortcut:nth-child(4) .nav-icon { background: var(--metric-mint-bg); color: var(--metric-mint-ink); }
@media (max-width: 1000px) {
  #app-shell .workspace-shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #app-shell .app-content { padding: 22px 16px 48px; }
  #app-shell .panel { padding: 18px; }
  #app-shell .metric-grid { gap: 12px; }
  #app-shell .metric-card { padding: 18px; min-height: 148px; }
  #app-shell .metric-card small { padding-right: 24px; }
  #app-shell .metric-card .metric-symbol { right: 12px; top: 12px; width: 26px; height: 26px; }
  #app-shell .workspace-shortcut { flex-direction: column; justify-content: center; gap: 10px; padding: 14px 10px; min-height: 108px; text-align: center; }
  #app-shell .workspace-shortcut > span:not(.nav-icon) { width: 100%; overflow-wrap: normal; word-break: normal; }
}
@media (prefers-reduced-motion: reduce) {
  #app-shell .app-nav button, #app-shell .metric-card, #app-shell .workspace-shortcut { transition: none; }
}

/* Shared interaction details: native buttons, visible focus, restrained motion. */
:root { --control-radius: 8px; --control-height: 44px; }
#marketing-site .button {
  min-height: var(--control-height);
  border-radius: var(--control-radius) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.4;
  transition: background-color .15s ease, border-color .15s ease;
}
.button-icon { width: 18px; height: 18px; flex: 0 0 18px; }
#marketing-site :is(button, a):focus-visible {
  outline: 2px solid var(--pa-accent) !important;
  outline-offset: 4px;
}
#marketing-site .button:hover:not(:disabled) { transform: none; }
#marketing-site .button:disabled { cursor: not-allowed; opacity: .6; }
#marketing-site .hero-trust { gap: 20px; }
#marketing-site .hero-trust > div { min-width: 0; }
#marketing-site .journey-card { border-radius: 12px; display: flex; flex-direction: column; }
#marketing-site .journey-card-top { display: flex; justify-content: space-between; align-items: center; }
#marketing-site .journey-symbol {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: #f2eaf0; border-radius: 8px; font-size: 21px;
}
#marketing-site .journey-card:nth-child(2) .journey-symbol { background: #f2eef7; }
#marketing-site .journey-card:nth-child(3) .journey-symbol { background: #f7eef0; }
#marketing-site .journey-card a { margin-top: auto; padding-block: 8px; min-height: 24px; }
#app-shell .workspace-shortcut-copy { display: grid; gap: 5px; min-width: 0; }
#app-shell .workspace-shortcut-label { font-size: var(--type-body); line-height: 1.35; }
#app-shell .workspace-shortcut-hint {
  color: var(--pa-muted); font-size: var(--type-caption); line-height: 1.5;
  white-space: normal; overflow-wrap: normal;
}
#app-shell .workspace-shortcut:focus-visible { outline: 2px solid var(--pa-accent) !important; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { #marketing-site .button { transition: none; } }

/* The social mark must not inherit the SVG intrinsic 300px width. */
.placeai-footer .placeai-social-button {
  min-height: 44px; border-color: var(--pa-border); border-radius: 8px;
  background: var(--pa-canvas); font-weight: 400;
}
.placeai-footer .placeai-social-button svg {
  width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor;
}

/* Web Interface Guidelines: keyboard bypass, unobscured anchors and calm motion. */
.placeai-skip-link {
  position: fixed; top: 16px; left: 16px; z-index: 100;
  max-width: calc(100vw - 32px); padding: 12px 18px;
  background: var(--pa-surface); color: var(--pa-accent);
  border: 2px solid var(--pa-accent); border-radius: 8px;
  font-size: 16px; line-height: 1.4; text-decoration: underline;
  transform: translateY(calc(-100% - 32px));
}
.placeai-skip-link:focus { transform: translateY(0); outline: 2px solid var(--pa-ink); outline-offset: 3px; }
#marketing-site :is(section[id], main[id]), #app-content { scroll-margin-top: 100px; }
#marketing-site :is(.hero h1, .section-heading h2), #app-shell .page-head h1 { text-wrap: balance; }
#top:focus-visible, #app-content:focus-visible { outline: 2px solid var(--pa-accent); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .button { transition: none !important; }
}

/* Account identity and sign-out remain visually distinct at every sidebar width. */
#app-shell .workspace-pill .workspace-avatar { display:none !important; }
#app-shell .workspace-pill { gap:0; }
#app-shell .sidebar-user { grid-template-columns:32px minmax(0,1fr); gap:10px; }
#app-shell .sidebar-user-details { min-width:0; }
#app-shell .sidebar-user strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#app-shell .sidebar-signout {
  grid-column:1/-1; width:100%; min-height:42px; padding:9px 12px;
  border:1px solid #bba9b6; border-radius:var(--radius-control,6px);
  background:#fff; color:var(--pa-accent); font:inherit; font-weight:400;
  text-align:center; white-space:nowrap; cursor:pointer;
}
#app-shell .sidebar-signout:hover { background:var(--pa-selected); border-color:var(--pa-accent); }
#app-shell .sidebar-signout:focus-visible { outline:2px solid var(--pa-accent); outline-offset:3px; }

/* 2026-10-18: Placement operations design system.
   Reference decisions are recorded in DESIGN.md. Presentation only: do not
   override hidden, disabled, timers, media, access or submission states. */
:root {
  --pa-space-1: 8px; --pa-space-2: 16px; --pa-space-3: 24px; --pa-space-4: 32px;
  --pa-reading-width: 76ch;
}
#app-shell {
  --type-caption: .8125rem; --type-small: .875rem; --type-body: 1rem;
  --type-section: 1.25rem; --type-title: 1.875rem;
  --radius-control: 6px; --radius-panel: 10px;
  font-family: var(--font-body); letter-spacing: normal;
}
#app-shell :is(button,input,select,textarea,summary) { font-family: inherit !important; letter-spacing: normal !important; }
#app-shell .app-sidebar { width: 232px; padding: 18px 14px 14px; border-right: 1px solid var(--pa-border); }
#app-shell .sidebar-brand { padding: 0 10px 12px; }
#app-shell .sidebar-brand .brand-mark { width: 136px !important; height: 44px !important; }
#app-shell .workspace-pill { border: 0 !important; border-radius: 0 !important; padding: 12px 12px 16px !important; margin: 0 !important; }
#app-shell #workspace-kind { color: var(--pa-muted) !important; font-size: 13px !important; }
#app-shell .app-nav { padding: 0 2px; gap: 3px; }
#app-shell .app-nav .nav-group-label { font-size: 12px !important; font-weight: 500 !important; padding: 20px 10px 7px; letter-spacing: .025em !important; text-transform: none !important; color: var(--pa-muted) !important; }
#app-shell .app-nav button { min-height: 42px; padding: 10px 12px !important; gap: 11px; border: 1px solid transparent; border-radius: 6px !important; font-size: 14px !important; line-height: 1.4; }
#app-shell .app-nav button .nav-label { font-size: 14px !important; }
#app-shell .app-nav button.active { background: var(--pa-selected) !important; border-color: #d8e5ff !important; }
#app-shell .app-nav button.active::after { content: none; }
#app-shell .app-nav .nav-icon { width: 18px; height: 18px; }
#app-shell .sidebar-bottom { margin-top: 16px; padding: 12px 0 0; border-top: 1px solid var(--pa-border); }
#app-shell .sidebar-user { padding: 12px; border-color: var(--pa-border); border-radius: 8px; }
#app-shell .sidebar-user strong { font-size: 13px !important; }
#app-shell .sidebar-signout { min-height: 42px; font-size: 13px !important; }
#app-shell { grid-template-columns: 232px minmax(0,1fr); }
#app-shell .app-content-wrap { min-width: 0; }
#app-shell .app-topbar { min-height: 64px; padding: 12px 32px; background: #fff !important; border-bottom: 1px solid var(--pa-border); }
#app-shell .topbar-context strong { font-size: 14px !important; font-weight: 400 !important; }
#app-shell .command-launch { min-height: 36px; border-color: var(--pa-border); background: #fff; }
#app-shell .app-content { padding: 32px; max-width: 1400px; margin-inline: auto; width: 100%; min-width: 0; box-sizing: border-box; }
#app-shell .page-head { margin-bottom: 28px; align-items: flex-start; }
#app-shell .page-head h1 { font-size: 30px !important; line-height: 1.2; font-weight: 400 !important; letter-spacing: -.025em !important; margin: 0 0 10px; }
#app-shell .page-head p { max-width: var(--pa-reading-width); font-size: 16px !important; line-height: 1.6; margin: 0; }
#app-shell :is(.panel,.data-panel,.form-panel,.operation-card,.readiness-component) { border: 1px solid var(--pa-border); border-radius: 10px !important; box-shadow: none !important; }
#app-shell .panel, #app-shell .form-panel { padding: 24px; }
#app-shell .panel-head { margin-bottom: 20px; align-items: flex-start; gap: 16px; }
#app-shell :is(.panel-head h2,.workspace-shortcuts>h2) { font-size: 20px !important; line-height: 1.35; margin: 0 0 6px; font-weight: 400 !important; }
#app-shell .panel-head p { font-size: 14px !important; line-height: 1.5; margin: 0; max-width: var(--pa-reading-width); }
#app-shell :is(.button,.row-button,.panel-head>button) { min-height: 40px; padding: 9px 14px; border-radius: 6px !important; font-size: 14px !important; line-height: 1.4; font-weight: 500 !important; }
#app-shell :is(.button,.row-button):focus-visible { outline: 2px solid var(--pa-accent) !important; outline-offset: 3px; }
#app-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { border: 1px solid #aebdce; border-radius: 6px !important; font-size: 16px !important; color: var(--pa-ink) !important; min-height: 42px; background: #fff; }
#app-shell :is(input,select,textarea):focus-visible { outline: 2px solid var(--pa-accent); outline-offset: 2px; }
#app-shell .metric-grid { gap: 16px; margin-bottom: 24px; }
#app-shell .metric-card { background: #fff !important; border: 1px solid var(--pa-border); border-radius: 10px !important; min-height: 136px; padding: 20px !important; }
#app-shell .metric-card::before { display: none !important; }
#app-shell .metric-card small { font-size: 14px !important; color: var(--pa-muted) !important; padding-right: 28px; }
#app-shell .metric-card strong { font-size: 32px !important; line-height: 1.2; font-weight: 400 !important; margin-block: 12px 6px; }
#app-shell .metric-card>span:not(.metric-symbol) { font-size: 13px !important; line-height: 1.45; color: var(--pa-muted) !important; }
#app-shell .metric-card .metric-symbol { width: 30px; height: 30px; top: 16px; right: 16px; border-radius: 8px; }
#app-shell .workspace-shortcut-grid { gap: 12px; }
#app-shell .workspace-shortcut { min-height: 84px; background: #fff !important; border: 1px solid var(--pa-border) !important; border-radius: 8px !important; padding: 16px !important; text-align: left; }
#app-shell .workspace-shortcut:hover { border-color: #a4bce6 !important; background: #f8faff !important; transform: none; }
#app-shell .workspace-shortcut .nav-icon { background: var(--pa-selected) !important; color: var(--pa-accent) !important; border-radius: 8px; }
#app-shell .workspace-shortcut-label { font-size: 15px !important; }
#app-shell .workspace-shortcut-hint { font-size: 13px !important; }
#app-shell .dashboard-grid { gap: 24px; align-items: start; }
#app-shell .activity-item { min-width: 0; gap: 14px; padding-block: 16px; }
#app-shell .activity-item strong { font-size: 15px !important; font-weight: 500 !important; }
#app-shell .activity-item small { font-size: 13px !important; line-height: 1.5; }
#app-shell .activity-icon { width: 36px; height: 36px; border-radius: 8px; font-size: 13px; }
#app-shell .data-toolbar { padding: 18px 20px; gap: 12px; border-bottom: 1px solid var(--pa-border); }
#app-shell .data-table th { background: #f8fafc !important; color: var(--pa-muted) !important; text-transform: none !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: normal !important; padding: 14px 18px; }
#app-shell .data-table td { padding: 18px; vertical-align: middle; border-bottom: 1px solid #eaf0f6; font-size: 14px !important; }
#app-shell .data-table tbody tr:hover { background: #f8faff; }
#app-shell .table-primary { font-size: 14px !important; font-weight: 500 !important; }
#app-shell .table-secondary { font-size: 13px !important; line-height: 1.5; }
#app-shell :is(.status-pill,.badge,.skill-tag) { font-size: 12px !important; line-height: 1.5; padding: 4px 9px; font-weight: 400 !important; }
#app-shell .empty-state { padding: 48px 24px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fff; }
#app-shell .empty-state h2 { font-size: 22px !important; margin: 16px 0 8px; }
#app-shell .empty-state p { max-width: 48ch; margin-inline: auto; font-size: 15px !important; }
#app-shell :is(.roadmap-market-panel,.roadmap-learning-pattern) { align-self: start; min-height: 0 !important; }
#app-shell .roadmap-market-panel :is(p,li,small) { color: var(--pa-ink) !important; font-size: 14px !important; line-height: 1.6; }
#app-shell .roadmap-source-grid { align-items: start; }
/* Learning: catalogue → course overview → module-and-player workspace. */
#app-shell #learning-hub { gap: 24px; }
#app-shell .learning-mode-switch { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border: 1px solid var(--pa-border); border-radius: 8px; background: #eef2f7; }
#app-shell .learning-mode-switch button { border: 0 !important; border-radius: 5px !important; background: transparent !important; color: var(--pa-muted) !important; min-height: 40px; padding: 9px 20px; font-size: 14px !important; }
#app-shell .learning-mode-switch [aria-pressed=true] { background: #fff !important; color: var(--pa-accent) !important; box-shadow: 0 1px 3px #17243b14 !important; }
#app-shell .learning-video-create { padding: 32px; background: #fff !important; border-top: 3px solid var(--pa-accent); }
#app-shell .learning-video-create-copy { max-width: 65ch; }
#app-shell .learning-video-create h2 { margin: 8px 0 12px; font-size: 28px !important; letter-spacing: -.025em !important; }
#app-shell .learning-video-create p { font-size: 16px !important; line-height: 1.6; }
#app-shell .section-kicker { font-size: 12px !important; letter-spacing: .045em !important; color: var(--pa-accent) !important; font-weight: 500 !important; }
#app-shell #learning-video-form { margin-top: 24px; max-width: 840px; }
#app-shell #learning-video-form>label { display: block; margin-bottom: 8px; font-size: 14px; }
#app-shell .learning-video-search { display: flex; align-items: stretch; gap: 12px; }
#app-shell .learning-video-search input { flex: 1; min-width: 0; padding: 12px 14px; }
#app-shell .learning-video-search button { flex-shrink: 0; }
#app-shell #learning-video-form .learning-meta { font-size: 13px !important; margin-bottom: 0; max-width: 72ch; }
#app-shell .learning-video-library-panel { padding: 0; border: 0 !important; background: transparent !important; }
#app-shell .learning-video-library-panel>.panel-head { margin-bottom: 16px; }
#app-shell #learning-hub [data-video-library] { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(260px,100%),1fr)); gap: 20px; align-items: stretch; }
#app-shell #learning-hub .learning-video-course-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 !important; text-align: left; background: #fff !important; border: 1px solid var(--pa-border); border-radius: 10px !important; overflow: hidden; min-width: 0; height: 100%; cursor: pointer; }
#app-shell #learning-hub .learning-video-course-card:hover { border-color: #91abcf; box-shadow: 0 3px 12px #17243b0a !important; }
#app-shell .learning-video-card-art { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; padding: 20px 24px; background: #f2eaf0; color: var(--pa-accent); border-bottom: 1px solid #dfd2dc; }
#app-shell .learning-video-card-art svg { width: 48px; height: 48px; flex-shrink: 0; }
#app-shell .learning-video-card-art>span { font-size: 12px !important; background: #fff; padding: 5px 9px; border-radius: 4px; }
#app-shell .learning-video-card-content { display: flex; flex-direction: column; flex: 1; gap: 16px; padding: 22px; }
#app-shell .learning-video-card-title { display: block; font-size: 20px !important; line-height: 1.35; color: var(--pa-ink); font-weight: 400; }
#app-shell .learning-video-card-meta { font-size: 13px !important; line-height: 1.5; color: var(--pa-muted); }
#app-shell .learning-video-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
#app-shell .learning-video-card-arrow { font-size: 22px; color: var(--pa-accent); }
#app-shell .learning-video-card-progress { display: grid; gap: 7px; font-size: 13px !important; color: var(--pa-muted); }
#app-shell .learning-video-card-progress>span { height: 4px; overflow: hidden; border-radius: 3px; background: #e8edf5; }
#app-shell .learning-video-card-progress i { display: block; height: 100%; background: var(--pa-accent); }
#app-shell .learning-video-course-header { padding: 24px 28px; }
#app-shell .learning-video-course-header h2 { font-size: 28px !important; line-height: 1.25; letter-spacing: -.02em !important; }
#app-shell .learning-video-breadcrumb .button { background: transparent !important; border: 0 !important; padding-left: 0; color: var(--pa-accent) !important; }
#app-shell .learning-video-course-progress strong { font-size: 20px !important; }
#app-shell .learning-video-course-progress progress { height: 7px; }
#app-shell .learning-video-overview-grid { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 40px; align-items: start; margin-bottom: 32px; }
#app-shell .learning-video-course-about>p { max-width: var(--pa-reading-width); line-height: 1.75; }
#app-shell .learning-video-course-facts { padding: 22px; border: 1px solid var(--pa-border); border-radius: 8px; background: #f8fafc; }
#app-shell .learning-video-course-facts h3 { font-size: 20px !important; line-height: 1.4; margin: 8px 0 18px; }
#app-shell .learning-video-course-facts dl { margin: 0; }
#app-shell .learning-video-course-facts dl>div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pa-border); font-size: 14px; }
#app-shell .learning-video-course-facts dd { margin: 0; text-align: right; color: var(--pa-ink); }
#app-shell .learning-video-course-facts p { font-size: 13px !important; line-height: 1.6; margin: 18px 0 0; }
#app-shell .learning-video-quality { margin: 24px 0; background: #f8fafc; border: 1px solid var(--pa-border); padding: 16px 20px; }
#app-shell .learning-video-quality p { margin-bottom: 0; font-size: 14px !important; }
#app-shell .learning-video-quality summary { color: var(--pa-ink); font-size: 15px; padding: 4px 0; }
#app-shell .learning-video-syllabus details { border: 1px solid var(--pa-border); border-radius: 8px; margin-top: 12px; overflow: hidden; }
#app-shell .learning-video-syllabus summary { padding: 18px 20px; font-size: 16px; line-height: 1.5; background: #f8fafc; }
#app-shell .learning-video-syllabus ol { margin: 0; padding: 4px 20px; }
#app-shell .learning-video-syllabus li { border-top: 1px solid var(--pa-border); padding: 16px 0; }
#app-shell .learning-video-syllabus li:first-child { border-top: 0; }
#app-shell .learning-video-study-layout { grid-template-columns: minmax(235px,280px) minmax(0,1fr); gap: 24px; align-items: start; }
#app-shell [data-video-outline] { top: 84px; max-height: calc(100vh - 104px); border-radius: 8px; }
#app-shell .learning-video-outline-disclosure>summary { padding: 18px; font-size: 16px; font-weight: 500; }
#app-shell .learning-video-module { padding: 18px 8px 10px; }
#app-shell .learning-video-module h3 { font-size: 14px !important; font-weight: 500; color: var(--pa-muted) !important; }
#app-shell .learning-video-lessons>li>button { min-height: 64px; padding: 12px 10px; border-radius: 5px; }
#app-shell .learning-video-lesson-title { font-size: 14px !important; line-height: 1.5; }
#app-shell .learning-video-lessons small { font-size: 12px !important; }
#app-shell .learning-video-lesson-panel { padding: 24px; }
#app-shell .learning-video-lesson-panel>h2 { font-size: 26px !important; }
#app-shell .learning-video-player { border-radius: 8px; margin: 20px 0 16px; }
#app-shell .learning-video-playback-tools { padding-bottom: 16px; border-bottom: 1px solid var(--pa-border); }
#app-shell .learning-video-panel fieldset { border-color: var(--pa-border); padding: 20px; border-radius: 8px; }
#app-shell .learning-video-option { padding: 12px; border-radius: 6px; gap: 12px; }
#app-shell .learning-video-option:has(input:checked) { background: var(--pa-selected); }
#app-shell .learning-video-option input { accent-color: var(--pa-accent); flex-shrink: 0; }
#app-shell .learning-notebook { padding: 32px; }
#app-shell .learning-chapter { max-width: 850px; margin-inline: auto; }
#app-shell .learning-chapter p { line-height: 1.8; font-size: 17px; letter-spacing: normal; }
#app-shell .learning-chapter :is(h3,h4) { color: var(--pa-ink); }
/* Public pages: editorial spacing and a legible product story. */
#marketing-site {
  --pa-ink: #302b32; --pa-muted: #605a63;
  --pa-border: #e3dde2; --pa-canvas: #f7f5f2;
  background: #fff !important;
}
#marketing-site .site-header { min-height: 76px; padding-inline: max(24px,calc((100vw - 1280px)/2)); }
#marketing-site .marketing-nav a { font-size: 15px; font-weight: 400; }
/* Align the message with the photo, not the full height of the product column. */
#marketing-site .hero { padding-block: 80px 64px; gap: 64px; align-items: start; }
#marketing-site .hero-copy { align-self: start; padding-top: 0; }
#marketing-site .hero h1 { font-size: clamp(38px,4.2vw,60px) !important; line-height: 1.08; font-weight: 400 !important; letter-spacing: -.035em !important; }
#marketing-site .hero-journey-line { font-size: 21px !important; margin-top: 24px; color: var(--pa-accent) !important; }
#marketing-site .hero-lead { max-width: 53ch; font-size: 18px !important; line-height: 1.7; }
#marketing-site .hero-trust { border-top: 1px solid var(--pa-border); padding-top: 24px; margin-top: 32px; }
#marketing-site .hero-trust strong { font-size: 14px; font-weight: 500; }
#marketing-site .hero-trust span { font-size: 13px; line-height: 1.5; }
#marketing-site .journey-section { padding-block: 64px; border-top: 1px solid var(--pa-border); }
#marketing-site .journey-card { background: #fff !important; box-shadow: none !important; border: 1px solid var(--pa-border); padding: 28px; border-radius: 10px; }
#marketing-site .journey-card h3 { font-size: 26px !important; }
#marketing-site .journey-card p { font-size: 16px; line-height: 1.65; }
#marketing-site .section-heading h2 { font-size: clamp(30px,3.3vw,44px) !important; line-height: 1.15; letter-spacing: -.025em; font-weight: 400 !important; }
#marketing-site .section-heading p { font-size: 17px; line-height: 1.7; max-width: 50ch; }
#marketing-site :is(.bento-card,.preparation-grid article,.security-card) { border: 1px solid var(--pa-border); border-radius: 10px !important; box-shadow: none !important; padding: 28px; }
@media(max-width:1100px) {
  #app-shell .learning-video-overview-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  #app-shell .learning-video-course-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  #app-shell .learning-video-study-layout { grid-template-columns: minmax(210px,250px) minmax(0,1fr); gap: 16px; }
}
@media(max-width:1000px) {
  #app-shell .app-content { padding: 24px; }
  #app-shell .app-topbar { padding-inline: 24px; }
  #marketing-site .hero { gap: 32px; padding-block: 48px; }
}
@media(max-width:800px) {
  #app-shell .learning-video-study-layout { grid-template-columns: minmax(0,1fr); }
  #app-shell [data-video-outline] { position: static; max-height: 360px; }
  #app-shell .learning-video-course-header { grid-template-columns: minmax(0,1fr); gap: 20px; }
}
@media(max-width:650px) {
  #app-shell .app-content { padding: 20px 16px; }
  #app-shell .app-topbar { padding: 12px 16px; }
  #app-shell .page-head h1 { font-size: 26px !important; }
  #app-shell .panel, #app-shell .form-panel { padding: 20px; }
  #app-shell .learning-video-library-panel { padding: 0; }
  #app-shell .metric-grid { gap: 12px; }
  #app-shell .metric-card { min-height: 132px; padding: 16px !important; }
  #app-shell .metric-card strong { font-size: 28px !important; }
  #app-shell .metric-card small { padding-right: 0; }
  #app-shell .metric-card .metric-symbol { display: none; }
  #app-shell .workspace-shortcut { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 84px; }
  #app-shell .workspace-shortcut-grid { grid-template-columns: minmax(0,1fr); }
  #app-shell .learning-video-search { flex-direction: column; }
  #app-shell .learning-video-search button { width: 100%; }
  #app-shell .learning-video-card-title { font-size: 20px !important; }
  #app-shell .learning-video-course-facts dl { grid-template-columns: minmax(0,1fr); }
  #app-shell .learning-video-course-header h2 { font-size: 24px !important; }
  #app-shell .learning-video-panel fieldset { padding: 16px; }
  #marketing-site .hero { padding-block: 40px; }
  #marketing-site .hero h1 { font-size: 38px !important; }
  #marketing-site .hero-trust { gap: 20px; }
  #marketing-site .journey-section { padding-block: 40px; }
}

@media(max-width:760px) {
  #app-shell { grid-template-columns: minmax(0,1fr); }
  #app-shell .app-content-wrap { grid-column: 1; }
}

/* Restrained semantic surfaces retain the dashboard's category cues. */
#app-shell .metric-card:nth-child(4n+1) { background: var(--pa-tone-stone) !important; }
#app-shell .metric-card:nth-child(4n+2) { background: var(--pa-tone-blush) !important; }
#app-shell .metric-card:nth-child(4n+3) { background: var(--pa-tone-sand) !important; }
#app-shell .metric-card:nth-child(4n+4) { background: var(--pa-tone-mauve) !important; }

/* Roadmap evidence uses full body size; supporting figures stay readable. */
#app-shell .roadmap-market-panel > .check-list li { font-size: 16px !important; }
#app-shell .roadmap-summary-grid .metric-card span:not(.metric-symbol) { font-size: 14px !important; }

#app-shell .learning-video-card-title { font-family: var(--font-body) !important; }

/* A narrow desktop content column must wrap table actions before shrinking them. */
#app-shell .data-toolbar { flex-wrap: wrap; }
#app-shell .data-toolbar .search-box { flex: 1 1 220px; min-width: 0; max-width: 100%; }
#app-shell .data-toolbar :is(.row-button,.button) { flex-shrink: 0; }

/* Trust evidence is operational content, not miniature dashboard decoration. */
#app-shell .trust-check { grid-template-columns: 26px minmax(0,1fr) auto; }
#app-shell .trust-check strong { font-size: 14px !important; line-height: 1.5; }
#app-shell .trust-check small { font-size: 13px !important; line-height: 1.6; color: var(--pa-muted) !important; }
#app-shell .trust-check b, #app-shell .trust-disclaimer,
#app-shell .trust-score-wrap > div > :is(p,small) { font-size: 13px !important; line-height: 1.6; }
#app-shell .trust-disclaimer { color: var(--pa-muted) !important; }
@media(max-width:760px) {
  /* The card transformation must also remove the desktop table's min-width. */
  #app-shell table[data-placeai-responsive="true"] { display: block; width: 100%; min-width: 0 !important; max-width: 100%; }
  #app-shell table[data-placeai-responsive="true"] :is(tbody,tr,td) { min-width: 0; max-width: 100%; }
  #app-shell table[data-placeai-responsive="true"] td > * { min-width: 0; max-width: 100%; }
  #app-shell table[data-placeai-responsive="true"] tbody { grid-template-columns: minmax(0,1fr); }
  #app-shell table[data-placeai-responsive="true"] :is(.table-primary,.table-secondary) { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  #app-shell table[data-placeai-responsive="true"] tbody td::before { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--pa-muted); }
  #app-shell table[data-placeai-responsive="true"] .status-pill { justify-self: start; }
}

@media(max-width:520px) {
  #app-shell table[data-placeai-responsive="true"] tbody td { grid-template-columns: minmax(0,1fr); }
}

/* Native file pickers have different intrinsic widths across operating systems. */
#app-shell input[type="file"] { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
#app-shell #authorization-letter-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
#app-shell #authorization-letter-form label { display: grid; gap: 8px; min-width: 0; }
#app-shell #authorization-letter-form button { justify-self: start; max-width: 100%; white-space: normal; }

/* Editorial palette: quiet headings, coordinated surfaces, a distinct contact area.
   Scoped to presentation; preserve native control and workflow states. */
#marketing-site :is(h1, h2, h3) { color: #302b32 !important; }
#marketing-site .hero h1 span { color: #302b32 !important; }
#marketing-site .hero-journey-line { color: #68495f !important; }
#marketing-site .hero .eyebrow { background: var(--pa-tone-blush) !important; border-color: #d8c6cf !important; }
#marketing-site .hero-photo-card { box-shadow: 0 12px 32px rgb(48 39 51 / 8%) !important; }
#marketing-site .hero-surface-card { background: var(--pa-tone-stone) !important; }
#marketing-site :is(.journey-card, .bento-card, .prep-role-card, .preparation-grid > article) {
  border-color: #e2d9de !important;
  box-shadow: none !important;
}
#marketing-site :is(.journey-card, .bento-card, .prep-role-card, .preparation-grid > article):nth-child(4n+1) { background: var(--pa-tone-blush) !important; }
#marketing-site :is(.journey-card, .bento-card, .prep-role-card, .preparation-grid > article):nth-child(4n+2) { background: var(--pa-tone-sand) !important; }
#marketing-site :is(.journey-card, .bento-card, .prep-role-card, .preparation-grid > article):nth-child(4n+3) { background: var(--pa-tone-mauve) !important; }
#marketing-site :is(.journey-card, .bento-card, .prep-role-card, .preparation-grid > article):nth-child(4n+4) { background: var(--pa-tone-stone) !important; }
#marketing-site .journey-card::before { background: var(--pa-accent); opacity: .5; }
#marketing-site .journey-symbol { background: #fff !important; border: 1px solid #e2d9de; }
#marketing-site .prep-lab-section { background: #faf9f6; border-color: #e3e2db; }
#marketing-site .prep-role-badge { background: #fff !important; color: var(--pa-accent) !important; }
#marketing-site .dark-section { background: var(--pa-tone-stone) !important; }
#marketing-site .security-card { background: var(--pa-tone-blush) !important; }
#marketing-site .cta-section { background: #f1eaf0 !important; border-block: 1px solid #dfd2dc; }
#marketing-site .cta-section :is(h2, span) { color: var(--pa-ink) !important; }
#marketing-site .cta-section .button-light { background: var(--pa-accent) !important; color: #fff !important; border-color: var(--pa-accent) !important; }
#marketing-site :is(.placeai-footer, .site-footer) { background: #302733 !important; color: #faf6f1 !important; border-top: 1px solid #302733; }
#marketing-site :is(.placeai-footer, .site-footer) :is(p, a, span, small, strong, h3) { color: #faf6f1 !important; }
#marketing-site .placeai-footer h3 { color: #dfd1dc !important; letter-spacing: .06em; font-weight: 500 !important; }
#marketing-site .placeai-footer .brand { width: fit-content; padding: 4px 12px; background: #fff; border-radius: 8px; }
#marketing-site .placeai-footer .placeai-social-button { background: #49394b !important; border-color: #a391a1 !important; }
#marketing-site .placeai-footer .placeai-social-button:hover { background: #5b475b !important; }
#marketing-site .placeai-footer-bottom { border-top: 1px solid #8c7b8b; }
#marketing-site :is(.placeai-footer, .site-footer) a:focus-visible { outline: 2px solid #faf6f1 !important; outline-offset: 4px; }
#marketing-site :is(.placeai-footer, .site-footer) a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Activity actions retain a readable target on narrow screens. */
#app-shell .activity-item > .row-actions .row-button { min-width: 72px; flex-shrink: 0; white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 640px) {
  #app-shell .activity-item:has(> .row-actions) { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; }
  #app-shell .activity-item > .row-actions { grid-column: 2; justify-content: flex-start; min-width: 0; width: 100%; }
}
