/* DesignTap Foundation 1.0.0 presentation applied to TapTick's existing pages.
   Keep existing DOM, controls, routing, permissions and service adapters intact.
   This is product CSS, not a modified copy of the shared component. */
#app :is(#screenProfile, #screenHelp, #screenPlatformAdmin) {
  --standard-ink: #0f172a;
  --standard-muted: #475569;
  --standard-line: #dfe4eb;
  --standard-soft: #f7f8fa;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  font-synthesis: none;
  line-height: 1.5;
  color: var(--standard-ink);
  min-width: 0;
}
#app :is(#screenProfile, #screenHelp, #screenPlatformAdmin) > .screen-head {
  margin-bottom: 24px;
}
#app :is(#screenProfile, #screenHelp, #screenPlatformAdmin) .asset-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}
#app :is(#screenProfile, #screenHelp, #screenPlatformAdmin) :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Account: readable rows, modest corners and all original account actions. */
#app #profileBody.tt-card--profile {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--standard-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
#app #profileBody .tt-profile-start-page { grid-area: profile-start; }
#app #profileBody .tt-profile-start-page > label { display: block; }
#app #profileBody #ttProfileStartPage { font-size: 1rem; font-weight: 600; min-height: 44px; }
#app #profileBody .tt-profile-page-section {
  margin: 0 0 24px;
  padding: 0 0 16px;
  border-color: var(--standard-line);
  font-size: 1rem;
  font-weight: 600;
  color: var(--standard-muted);
}
#app #profileBody .tt-profile-summary {
  padding: 0;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#app #profileBody .tt-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 700;
  background: var(--standard-soft);
  color: var(--standard-ink);
  border: 1px solid var(--standard-line);
}
#app #profileBody .tt-profile-name {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
  white-space: normal;
  overflow-wrap: anywhere;
}
#app #profileBody .tt-profile-email {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--standard-muted);
  white-space: normal;
  overflow-wrap: anywhere;
}
#app #profileBody .tt-profile-list { gap: 0; margin: 24px 0; }
#app #profileBody .tt-profile-row {
  gap: 16px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--standard-line);
  border-radius: 0;
  background: transparent;
  align-items: baseline;
}
#app #profileBody .tt-profile-label {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--standard-muted);
  flex-shrink: 0;
}
#app #profileBody .tt-profile-value {
  font-size: .9375rem;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}
#app #profileBody :is(.tt-profile-section, .tt-profile-share) {
  padding: 22px;
  border: 1px solid var(--standard-line);
  border-radius: 16px;
  box-shadow: none;
  background: #fff;
  gap: 14px;
}
#app #profileBody :is(.tt-profile-section-title, .tt-profile-share-title) {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.02em;
}
#app #profileBody :is(.tt-profile-section-copy, .tt-profile-share-text) {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--standard-muted);
}
#app #profileBody :is(.tt-profile-setting-state, .tt-profile-legal-status, .tt-profile-version) {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--standard-muted);
}
#app #profileBody :is(.tt-profile-legal-links a, .tt-profile-share-actions .tt-btn, .tt-profile-actions .tt-btn) {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--standard-line);
  border-radius: 10px;
  background: #fff;
  color: var(--standard-ink);
  box-shadow: none;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  box-sizing: border-box;
}
#app #profileBody .tt-profile-legal-links { gap: 8px; }
#app #profileBody .tt-profile-share-qr-wrap { border-radius: 12px; background: #fff; }
#app #profileBody .tt-profile-share-qr { border-radius: 0; }
#app #profileBody .tt-toggle { width: 48px; height: 44px; }
#app #profileBody .tt-toggle > span[aria-hidden="true"] { inset: 8px 0; }
#app #profileBody #managerPinProfile { min-width: 0; }
#app #profileBody #managerPinProfile:empty { display: none; }

/* Help, Contact and release history retain their existing content and tabs. */
#app #screenHelp .tt-help-hero {
  padding: 0;
  margin: 0 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 16px;
}
#app #screenHelp .tt-help-title { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.025em; }
#app #screenHelp :is(.tt-help-text, .tt-help-panel-head p, .tt-help-section-body,
  .tt-help-section-body p, .tt-whats-new-card p, .tt-whats-new-main span) {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--standard-muted);
}
#app #screenHelp :is(.tt-help-section-sub, .tt-help-mode-card span, .tt-help-manager-note span,
  .tt-help-mini-card span, .tt-help-guide-group-head p, .tt-whats-new-where) {
  font-size: .9375rem;
  line-height: 1.5;
}
#app #screenHelp :is(.tt-help-kicker, .tt-whats-new-card-kicker) {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
}
#app #screenHelp .tt-help-mode-grid { gap: 0; border-bottom: 1px solid var(--standard-line); }
#app #screenHelp .tt-help-mode-card {
  padding: 18px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  min-height: 48px;
}
#app #screenHelp .tt-help-mode-card strong { font-size: 1rem; }
#app #screenHelp .tt-help-mode-card.is-active { border-bottom-color: var(--brand); background: var(--standard-soft); }
#app #screenHelp :is(.tt-help-section, .tt-whats-new-card, .tt-help-guide-group) {
  border-color: var(--standard-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
#app #screenHelp .tt-help-summary { min-height: 76px; padding: 20px 24px; box-sizing: border-box; }
#app #screenHelp .tt-help-section-title { font-size: 1.125rem; line-height: 1.3; }
#app #screenHelp .tt-help-section-body { padding: 0 24px 24px; }
#app #screenHelp :is(.tt-help-mini-card, .tt-help-summary-card, .tt-help-example-card, .tt-help-state-pill) {
  border-radius: 12px;
  box-shadow: none;
  padding: 18px;
}
#app #screenHelp .tt-help-panel-head h2 { font-size: 1.375rem; line-height: 1.25; }
#app #screenHelp .tt-whats-new-card { padding: 24px; min-height: 0; }
#app #screenHelp .tt-whats-new-card h3 { font-size: 1.25rem; }
#app #screenHelp :is(.tt-whats-new-card-footer > span, .tt-whats-new-version) { font-size: .875rem; line-height: 1.5; }
#app #screenHelp .tt-whats-new-row {
  padding: 24px;
  border-color: var(--standard-line);
  border-radius: 12px;
  background: #fff;
  gap: 24px;
  grid-template-columns: 150px minmax(0, 1fr) minmax(140px, 200px);
}
#app #screenHelp .tt-whats-new-main strong { font-size: 1.125rem; line-height: 1.4; }
#app #screenHelp .tt-help-contact-form { padding: 22px; border-radius: 12px; gap: 20px; background: var(--standard-soft); }
#app #screenHelp .tt-help-contact-field span { font-size: .9375rem; }
#app #screenHelp :is(.tt-help-contact-field input, .tt-help-contact-field select, .tt-help-contact-field textarea, #ttHelpSearch) {
  min-height: 48px;
  border: 1px solid var(--standard-line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 500;
}
#app #screenHelp .tt-help-contact-field textarea { min-height: 150px; }
#app #screenHelp :is(.tt-help-contact-state, .tt-product-help-search p) { font-size: .875rem; }
#app #screenHelp :is(.tt-help-link-btn, .tt-help-contact-submit) {
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: none;
  transform: none;
}
#app #screenHelp .tt-help-contact-submit { color: #fff; }

/* The mature Platform centre retains every card and all existing subpages. */
#app #screenPlatformAdmin .platform-control-section-title { font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; }
#app #screenPlatformAdmin .platform-control-card {
  padding: 24px;
  border: 1px solid var(--standard-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
#app #screenPlatformAdmin .platform-control-card:hover { border-color: #94a3b8; transform: none; }
#app #screenPlatformAdmin .tt-site-card-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
#app #screenPlatformAdmin .tt-site-card-body { font-size: 1rem; font-weight: 500; line-height: 1.5; color: var(--standard-muted); }
#app #screenPlatformAdmin .tt-site-card-meta { font-size: .875rem; font-weight: 600; color: var(--standard-muted); }

@media (min-width: 1000px) {
  #app #profileBody.tt-card--profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "profile-section-label profile-section-label"
      "profile-summary profile-communications" "profile-details profile-legal"
      "profile-details profile-share" "profile-pins profile-pins" "profile-actions profile-version";
    gap: 20px 32px;
  }
  #app #profileBody.tt-card--profile:has(.tt-profile-start-page) {
    grid-template-areas: "profile-section-label profile-section-label"
      "profile-summary profile-start" "profile-details profile-communications"
      "profile-details profile-legal" "profile-pins profile-share" "profile-actions profile-version";
  }
  #app #profileBody .tt-profile-page-section { margin: 0; }
  #app #profileBody .tt-profile-list { margin: 0; }
  #app #profileBody #managerPinProfile { grid-area: profile-pins; }
  #app #profileBody .tt-profile-share { grid-template-columns: minmax(0, 1fr) 112px; }
}
@media (max-width: 999px) {
  #app #profileBody.tt-card--profile { display: block; max-width: 720px; margin: 0 auto; }
  #app #profileBody :is(.tt-profile-section, .tt-profile-share) { margin: 20px 0; }
  #app #profileBody .tt-profile-share { display: flex; }
  #app #profileBody .tt-profile-version { margin-top: 24px; text-align: left; }
  #app #screenHelp .tt-whats-new-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 650px) {
  #app :is(#screenProfile, #screenHelp, #screenPlatformAdmin) .asset-title { font-size: 1.75rem; }
  #app #profileBody.tt-card--profile { padding: 20px 16px; }
  #app #profileBody :is(.tt-profile-section, .tt-profile-share) { padding: 18px 16px; }
  #app #profileBody .tt-profile-row { flex-direction: column; align-items: stretch; gap: 5px; }
  #app #profileBody .tt-profile-value { text-align: left; }
  #app #profileBody .tt-profile-share-actions { display: flex; flex-wrap: wrap; }
  #app #profileBody .tt-profile-share-actions .tt-btn { width: auto; flex: 1 1 auto; }
  #app #screenHelp .tt-help-mode-grid { grid-template-columns: 1fr; }
  #app #screenHelp :is(.tt-help-summary, .tt-whats-new-card, .tt-whats-new-row) { padding: 18px; }
  #app #screenHelp .tt-help-section-body { padding: 0 18px 18px; }
  #app #screenHelp .tt-help-contact-form { padding: 16px; }
  #app #screenPlatformAdmin .platform-control-card { padding: 20px; }
}
