/* Styles for the /tiktok page, using WiseWorkLife's brand blue (#2E54E0). */
:root {
  --tt-blue: #2E54E0;
  --tt-blue-dark: #2341b3;
  --tt-text: #1b1f2a;
  --tt-muted: #5b6475;
  --tt-bg: #f6f7fb;
  --tt-card: #ffffff;
  --tt-border: #dde1ea;
  --tt-alert-bg: #fdecec;
  --tt-alert-text: #9b1c1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tt-text: #eef0f5;
    --tt-muted: #a5adbd;
    --tt-bg: #12141a;
    --tt-card: #1b1e27;
    --tt-border: #2e3341;
    --tt-alert-bg: #3a1d1d;
    --tt-alert-text: #ffb4b4;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tt-text);
  background: var(--tt-bg);
  line-height: 1.55;
}
a { color: var(--tt-blue); }

.tt-topbar, .tt-footer {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  max-width: 760px; margin: 0 auto; padding: 16px;
}
.tt-topbar nav, .tt-footer { gap: 16px; }
.tt-topbar nav a, .tt-footer a { color: var(--tt-muted); text-decoration: none; margin-right: 14px; }
.tt-brand { font-weight: 700; font-size: 1.15rem; color: var(--tt-blue); text-decoration: none; }
.tt-footer { justify-content: center; border-top: 1px solid var(--tt-border); margin-top: 48px; }

.tt-main { max-width: 760px; margin: 0 auto; padding: 8px 16px; }
.tt-main h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 16px 0 8px; }
.tt-lead { color: var(--tt-muted); margin: 0 0 24px; }

.tt-card {
  background: var(--tt-card); border: 1px solid var(--tt-border); border-radius: 14px;
  padding: 24px; margin-bottom: 20px;
}
.tt-card h2 { margin-top: 0; font-size: 1.25rem; }
.tt-steps { padding-left: 20px; }

.tt-button {
  display: inline-block; background: var(--tt-blue); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 22px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.tt-button:hover { background: var(--tt-blue-dark); }
.tt-button:disabled { opacity: .6; cursor: progress; }
.tt-link-button { background: none; border: 0; color: var(--tt-blue); cursor: pointer; font-size: .95rem; padding: 6px; }

.tt-note { font-size: .85rem; color: var(--tt-muted); margin-top: 14px; }
.tt-muted { color: var(--tt-muted); }
.tt-alert { background: var(--tt-alert-bg); color: var(--tt-alert-text); padding: 10px 14px; border-radius: 8px; }

.tt-profile {
  display: flex; align-items: center; gap: 14px; background: var(--tt-card);
  border: 1px solid var(--tt-border); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px;
}
.tt-profile-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tt-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tt-avatar-empty { background: var(--tt-border); }

.tt-form { display: flex; flex-direction: column; gap: 16px; }
.tt-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.tt-field input, .tt-field select, .tt-field textarea {
  font: inherit; font-weight: 400; padding: 10px; border: 1px solid var(--tt-border);
  border-radius: 8px; background: var(--tt-bg); color: var(--tt-text); width: 100%;
}
.tt-counter { align-self: flex-end; font-weight: 400; font-size: .85rem; }
.tt-fieldset { border: 1px solid var(--tt-border); border-radius: 10px; padding: 12px 14px; margin: 0; }
.tt-fieldset legend { font-weight: 600; padding: 0 6px; }
.tt-check { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.tt-check input { margin-top: 5px; }
.tt-disabled { opacity: .55; }
.tt-sub { padding-left: 24px; }
.tt-status { font-size: 1.1rem; font-weight: 600; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
