/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[15].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Geist","arguments":[{"variable":"--font-geist-sans","subsets":["latin"]}],"variableName":"geistSans"} ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/f639721981034f88-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/9766a7e9e2e0ad5a-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/b66cf8e69499582a-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/aa016aab0e6d1295-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/22a5144ee8d83bca-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Geist Fallback';src: local("Arial");ascent-override: 95.94%;descent-override: 28.16%;line-gap-override: 0.00%;size-adjust: 104.76%
}.__className_246ccd {font-family: 'Geist', 'Geist Fallback';font-style: normal
}.__variable_246ccd {--font-geist-sans: 'Geist', 'Geist Fallback'
}

/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[15].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Geist_Mono","arguments":[{"variable":"--font-geist-mono","subsets":["latin"]}],"variableName":"geistMono"} ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/013b72fa676f92e0-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/b9408752a0c24fb9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* symbols2 */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/65f03d54ccadf4a8-s.woff2) format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
/* vietnamese */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e038a29029a234f2-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/2b5b02fc7e511755-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/7d4881bb7e1bf84d-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Geist Mono Fallback';src: local("Arial");ascent-override: 74.67%;descent-override: 21.92%;line-gap-override: 0.00%;size-adjust: 134.59%
}.__className_c29908 {font-family: 'Geist Mono', 'Geist Mono Fallback';font-style: normal
}.__variable_c29908 {--font-geist-mono: 'Geist Mono', 'Geist Mono Fallback'
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --brand-red: #a4072f;
  --brand-red-dark: #860425;
  --brand-red-soft: #d9a9b5;
  --brand-gray: #9b9da1;
  --brand-gray-dark: #6f7378;
  --brand-gray-soft: #ececed;
  --brand-ink: #3f4349;
  --surface: #ffffff;
  --surface-muted: #f7f7f8;
  --border-soft: rgba(155, 157, 161, 0.32);
  --shadow-soft: rgba(80, 52, 59, 0.12);
}

/* =========================
   Base layout / Home page
   ========================= */

body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  height: 100%;
}

:where(button, input, select, textarea):not(.li2-root *) {
  font-family: Arial, Helvetica, sans-serif;
}

.app-container {
  width: 100%;
  min-height: 100%;
  background: linear-gradient(
    135deg,
    var(--surface) 0%,
    var(--brand-gray-soft) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.content-wrapper {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.main-heading {
  font-size: 48px;
  font-weight: 700;
  color: var(--brand-red);
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.description {
  font-size: 18px;
  color: var(--brand-ink);
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.button-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-button {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  box-shadow: 0 12px 28px var(--shadow-soft);
}

.linkedin-button {
  background-color: var(--brand-red);
  color: var(--surface);
}

.linkedin-button:hover {
  background-color: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(164, 7, 47, 0.2);
}

.instagram-button {
  background: var(--brand-gray);
  color: var(--surface);
}

.instagram-button:hover {
  background: var(--brand-gray-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(111, 115, 120, 0.22);
}

@media (max-width: 768px) {
  .main-heading {
    font-size: 36px;
  }

  .description {
    font-size: 16px;
  }

  .button-container {
    flex-direction: column;
    align-items: center;
  }

  .social-button {
    width: 100%;
    max-width: 300px;
  }
}

/* Links should look like regular text, without underlines */
a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   LinkedIn / Instagram lists
   (template selection page)
   ========================= */

.template-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
}

/* Cards in the template selection list */
.template-grid .template-card {
  background-color: var(--surface);
  color: var(--brand-ink);
  border-radius: 16px;
  padding: 20px;
  width: 260px;
  text-align: left;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 36px var(--shadow-soft);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.template-grid .template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.25);
}

.template-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-gray-dark);
  margin-bottom: 8px;
}

.template-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.template-desc {
  font-size: 14px;
  color: var(--brand-ink);
  margin-bottom: 14px;
}

.template-meta {
  font-size: 12px;
  color: var(--brand-gray);
}

/* =========================
   Editor (left side for Template A/B)
   ========================= */

.editor-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 32px;
  align-items: flex-start;
}

.editor-panel {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.editor-panel h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.editor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.editor-label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.editor-input,
.editor-textarea {
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
}

.editor-input:focus,
.editor-textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.editor-textarea {
  resize: vertical;
  min-height: 80px;
}

.editor-layout > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* =========================
   TemplateBase (main card)
   ========================= */

/* Base card without a background color; the variant sets the color */
.template-card {
  border-radius: 1px;
  padding: 34px 14px 38px;
  box-shadow: 0 22px 45px var(--shadow-soft);
  border-top: 6px solid var(--brand-red);
  width: 375px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Top row of the card: logo + eye catcher + user */
.template-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Logo and eye catcher in one column */
.template-top-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.logo-row img {
  display: block;
}

/* User name on the left, avatar on the right */
.template-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Bold red-orange eye catcher */
.eye-catcher-pill {
  padding: 60px 140px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-gray));
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(164, 7, 47, 0.22);
}

/* Avatar */
.user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px dashed var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.avatar-fallback {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-red);
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11px;
  line-height: 1.3;
}

.user-name {
  font-weight: 600;
  color: var(--brand-ink);
}

.user-role {
  color: var(--brand-gray-dark);
}

.template-content {
  margin-top: 4px;
}

.template-title-main {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--brand-ink);
  margin: 8px 0 6px 0;
}

.template-subline {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--brand-gray-dark);
}

.template-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--brand-gray-dark);
}

.template-footer-note {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--brand-gray-dark);
  text-align: left;
}

/* =========================
   Variants (template-style-1..4)
   ========================= */

/* Style 1: Clean White (Protos default) */
.template-style-1 {
  background: var(--surface);
  color: var(--brand-ink);
}

/* Style 2: Dark Bold */
.template-style-2 {
  background: var(--brand-red);
  color: var(--surface);
}

.template-style-2 .template-subline,
.template-style-2 .template-body,
.template-style-2 .user-role,
.template-style-2 .template-title-main,
.template-style-2 .user-name {
  color: rgba(255, 255, 255, 0.82);
}

/* Style 3: Gradient */
.template-style-3 {
  background: linear-gradient(135deg, var(--brand-gray), var(--surface));
  color: var(--brand-ink);
}

.template-style-3 .template-subline,
.template-style-3 .template-body,
.template-style-3 .user-role {
  color: var(--brand-gray-dark);
}

/* Style 4: Corporate Blue */
.template-style-4 {
  background: linear-gradient(135deg, var(--brand-red-dark), var(--brand-red));
  color: var(--surface);
}

.template-style-4 .template-subline,
.template-style-4 .template-body {
  color: rgba(255, 255, 255, 0.82);
}

/* =========================
   User portal
   ========================= */

.portal-shell {
  align-items: flex-start;
}

.portal-wrapper {
  width: min(1180px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portal-wrapper--editor {
  width: min(1480px, 100%);
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 45px var(--shadow-soft);
}

.portal-nav__brand {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.portal-nav__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gray-dark);
}

.portal-nav__title {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-red);
}

.portal-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.portal-nav__link,
.portal-nav__auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.portal-nav__link {
  color: var(--brand-ink);
  background: var(--surface-muted);
  border: 1px solid transparent;
}

.portal-nav__link:hover,
.portal-nav__link--active {
  color: var(--brand-red);
  background: var(--surface);
  border-color: rgba(164, 7, 47, 0.22);
  transform: translateY(-1px);
}

.portal-nav__auth {
  border: 1px solid rgba(164, 7, 47, 0.16);
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: var(--surface);
  cursor: pointer;
  white-space: nowrap;
}

.portal-nav__auth:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--brand-red-dark), var(--brand-red));
}

.portal-nav__auth:disabled {
  opacity: 0.7;
  cursor: wait;
}

.portal-hero,
.portal-header-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.portal-heading,
.portal-description {
  text-align: left;
}

.portal-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-gray-dark);
}

.portal-hero-panel,
.portal-panel,
.portal-strip-card,
.portal-card,
.portal-insight-card,
.portal-list-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-ink);
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 45px var(--shadow-soft);
}

.portal-hero-panel {
  min-width: 260px;
  padding: 24px;
  text-align: left;
}

.portal-hero-label,
.portal-strip-label,
.portal-card-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-gray-dark);
}

.portal-hero-value,
.portal-strip-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.portal-hero-meta {
  margin-top: 10px;
  font-size: 14px;
  color: var(--brand-ink);
  line-height: 1.5;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.portal-card {
  padding: 24px;
  text-align: left;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.portal-card-title,
.portal-section-title {
  margin: 12px 0 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
}

.portal-card-text,
.portal-insight-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--brand-ink);
}

.portal-card-link {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-red);
}

.portal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portal-strip-card {
  padding: 18px 20px;
  text-align: left;
}

.portal-back-link {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand-gray);
  color: var(--surface);
  font-weight: 700;
  white-space: nowrap;
}

.portal-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
}

.portal-panel {
  padding: 24px;
}

.portal-list,
.portal-insight-grid {
  display: grid;
  gap: 14px;
}

.portal-list-card,
.portal-insight-card {
  padding: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: none;
}

.portal-list-title,
.portal-insight-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-ink);
}

.portal-list-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-gray-soft);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
}

.analytics-source-panel,
.analytics-table-panel {
  min-width: 0;
}

.analytics-source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analytics-source-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analytics-source-label,
.analytics-table th {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-gray-dark);
}

.analytics-source-input {
  text-overflow: ellipsis;
}

.analytics-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 126px;
  padding: 18px;
  border: 1px dashed rgba(164, 7, 47, 0.28);
  border-radius: 20px;
  background: var(--surface-muted);
}

.analytics-file-field {
  width: 100%;
}

.analytics-import-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analytics-upload-placeholder .portal-alert {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

.analytics-public-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.analytics-public-note .portal-section-title {
  margin-bottom: 0;
}

.analytics-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.analytics-section-heading .portal-eyebrow {
  margin-bottom: 8px;
}

.analytics-section-heading .portal-section-title {
  margin: 0;
}

.analytics-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--surface);
}

.analytics-table {
  width: 100%;
  min-width: 2100px;
  border-collapse: collapse;
  text-align: left;
}

.analytics-table th,
.analytics-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.analytics-table th {
  position: sticky;
  top: 0;
  background: var(--surface-muted);
  white-space: nowrap;
}

.analytics-table td {
  max-width: 240px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--brand-ink);
  overflow-wrap: anywhere;
}

.analytics-table tbody tr:last-child td {
  border-bottom: none;
}

.analytics-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.analytics-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 258px;
  padding: 22px;
}

.analytics-card .portal-list-items {
  margin-top: auto;
}

.analytics-card-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-gray-dark);
}

.analytics-card-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-red);
}

.analytics-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.analytics-time-filter {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.4fr) auto;
  align-items: end;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--surface-muted);
}

.analytics-time-filter .portal-insight-text {
  margin-top: 6px;
}

.analytics-time-filter__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
}

.analytics-filter-select {
  appearance: auto;
}

.analytics-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.analytics-tabs--sections {
  padding-top: 4px;
  border-top: 1px solid var(--border-soft);
}

.analytics-tabs--subtabs {
  padding-left: 12px;
  border-left: 3px solid rgba(164, 7, 47, 0.16);
}

.analytics-tab {
  flex: 0 1 auto;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--brand-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.analytics-tab:hover {
  border-color: rgba(164, 7, 47, 0.28);
}

.analytics-tab--subtab {
  min-height: 40px;
}

.analytics-tab--active {
  border-color: rgba(164, 7, 47, 0.34);
  background: var(--brand-red);
  color: var(--surface);
}

.analytics-activity-grid,
.analytics-strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.analytics-empty-panel,
.analytics-empty-state {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-empty-panel {
  min-height: 172px;
  justify-content: center;
}

.analytics-empty-panel .portal-eyebrow,
.analytics-empty-panel .portal-section-title {
  margin-bottom: 0;
}

.analytics-strategy-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.analytics-strategy-card,
.analytics-result-card {
  border-top: 4px solid var(--analytics-strategy-color, var(--brand-red));
}

.analytics-strategy-card--descriptive,
.analytics-result-card--descriptive {
  --analytics-strategy-color: #2563eb;
}

.analytics-strategy-card--scoring,
.analytics-result-card--scoring {
  --analytics-strategy-color: #15803d;
}

.analytics-strategy-card--feature {
  --analytics-strategy-color: #7c3aed;
}

.analytics-strategy-card--relationship,
.analytics-result-card--relationship {
  --analytics-strategy-color: #ea580c;
}

.analytics-strategy-card--classification,
.analytics-result-card--classification {
  --analytics-strategy-color: #db2777;
}

.analytics-strategy-card--monthly,
.analytics-result-card--monthly {
  --analytics-strategy-color: #0f766e;
}

.analytics-strategy-card--time {
  --analytics-strategy-color: #475569;
}

.analytics-strategy-card--recommendation,
.analytics-result-card--recommendation {
  --analytics-strategy-color: var(--brand-red);
}

.analytics-strategy-fields {
  margin: 0;
  color: var(--brand-gray-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.analytics-future-note,
.analytics-strategy-label {
  border-radius: 999px;
  background: rgba(164, 7, 47, 0.09);
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.analytics-future-note {
  margin: auto 0 0;
  padding: 11px 13px;
  border-radius: 16px;
}

.analytics-strategy-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 10px;
}

.analytics-strategy-label--descriptive {
  background: #dbeafe;
  color: #1d4ed8;
}

.analytics-strategy-label--scoring {
  background: #dcfce7;
  color: #166534;
}

.analytics-strategy-label--feature {
  background: #ede9fe;
  color: #6d28d9;
}

.analytics-strategy-label--relationship {
  background: #ffedd5;
  color: #c2410c;
}

.analytics-strategy-label--classification {
  background: #fce7f3;
  color: #be185d;
}

.analytics-strategy-label--monthly {
  background: #ccfbf1;
  color: #115e59;
}

.analytics-strategy-label--recommendation {
  background: rgba(164, 7, 47, 0.11);
  color: var(--brand-red);
}

.analytics-kpi-grid,
.analytics-class-distribution {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analytics-kpi-grid div,
.analytics-class-distribution div,
.analytics-relationship,
.analytics-answer {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border-soft);
}

.analytics-kpi-grid span,
.analytics-class-distribution span,
.analytics-relationship span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-gray-dark);
}

.analytics-kpi-grid strong,
.analytics-class-distribution strong,
.analytics-relationship strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  color: var(--brand-red);
}

.analytics-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

.analytics-formula {
  padding: 14px;
  border-radius: 16px;
  background: #fff1f2;
  color: var(--brand-red);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.analytics-relationship-grid {
  display: grid;
  gap: 10px;
}

.analytics-relationship small {
  display: block;
  margin-top: 8px;
  color: var(--brand-ink);
  line-height: 1.4;
}

.analytics-classifier-layout,
.analytics-visual-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.analytics-feature-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
}

.analytics-feature-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: var(--surface);
  text-align: left;
}

.analytics-feature-table th,
.analytics-feature-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}

.analytics-feature-table th {
  background: var(--surface-muted);
  color: var(--brand-gray-dark);
  font-weight: 800;
}

.analytics-feature-table tbody tr:last-child td {
  border-bottom: none;
}

.analytics-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.analytics-results-hero {
  padding-bottom: 26px;
}

.analytics-result-kpi {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.analytics-result-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.analytics-result-card .portal-eyebrow,
.analytics-result-card .portal-section-title {
  margin-bottom: 0;
}

.analytics-score-bars {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.analytics-score-bar {
  display: grid;
  grid-template-columns: minmax(108px, 0.9fr) minmax(0, 1.2fr) 42px;
  align-items: center;
  gap: 12px;
}

.analytics-score-bar div {
  min-width: 0;
}

.analytics-score-bar span,
.analytics-score-bar small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-score-bar span {
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 800;
}

.analytics-score-bar small {
  color: var(--brand-gray-dark);
  font-size: 12px;
}

.analytics-score-bar i {
  display: block;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.analytics-score-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-red), #d14d72);
}

.analytics-score-bar strong {
  text-align: right;
  color: var(--brand-red);
  font-size: 16px;
}

.analytics-month-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 228px;
  margin-top: auto;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-muted);
}

.analytics-month-bar {
  display: grid;
  grid-template-rows: auto minmax(122px, 1fr) auto auto;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.analytics-month-bar span,
.analytics-month-bar small {
  color: var(--brand-gray-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.analytics-month-bar i {
  display: flex;
  width: min(42px, 100%);
  height: 100%;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.14);
}

.analytics-month-bar b {
  display: block;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #2dd4bf, #0f766e);
}

.analytics-month-bar strong {
  color: #0f766e;
  font-size: 16px;
}

.analytics-mix-view {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: auto;
}

.analytics-mix-donut {
  position: relative;
  display: grid;
  width: 138px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  text-align: center;
}

.analytics-mix-donut::before {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.analytics-mix-donut strong,
.analytics-mix-donut span {
  z-index: 1;
  max-width: 90px;
}

.analytics-mix-donut strong {
  color: var(--brand-red);
  font-size: 26px;
  line-height: 1;
}

.analytics-mix-donut span {
  margin-top: 4px;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.analytics-mix-legend {
  display: grid;
  gap: 10px;
}

.analytics-mix-legend div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 800;
}

.analytics-visual-lower-grid .portal-panel {
  min-width: 0;
}

.analytics-class-bars {
  display: grid;
  gap: 14px;
}

.analytics-class-bar {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.analytics-class-bar div {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.analytics-class-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
}

.analytics-recommendation p,
.analytics-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--brand-ink);
}

.analytics-recommendation .portal-list-items {
  margin-top: 18px;
}

.analytics-assistant {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analytics-question-chips {
  margin-top: 0;
}

.analytics-question-chip {
  border: none;
  cursor: pointer;
}

.analytics-assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.analytics-assistant-form .portal-form__submit {
  width: auto;
}

.analytics-answer {
  display: grid;
  gap: 8px;
}

.analytics-answer--fallback {
  border-style: dashed;
}

.analytics-assistant-question {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface-muted);
}

.analytics-assistant-alert {
  margin: 0;
}

.portal-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.portal-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portal-profile__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.portal-profile__title {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1.1;
}

.portal-profile__text {
  margin: 14px 0 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--brand-ink);
}

.portal-profile__card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 45px var(--shadow-soft);
}

.portal-profile__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.portal-profile__avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(164, 7, 47, 0.14);
}

.portal-profile__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-ink);
}

.portal-profile__role {
  margin-top: 4px;
  font-size: 15px;
  color: var(--brand-gray-dark);
}

.portal-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.portal-alert--error {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.portal-alert--success {
  background: #effaf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-form__field--full {
  grid-column: 1 / -1;
}

.portal-form__label {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: 0.02em;
}

.portal-form__input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--brand-ink);
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.portal-form__input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(164, 7, 47, 0.12);
}

.portal-form__input--file {
  padding: 12px 14px;
}

.portal-form__submit {
  align-self: flex-start;
  min-width: 180px;
  min-height: 50px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: var(--surface);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(164, 7, 47, 0.24);
}

.portal-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 980px) {
  .portal-nav,
  .portal-hero,
  .portal-header-row,
  .portal-two-col,
  .portal-grid,
  .portal-strip {
    flex-direction: column;
  }

  .portal-grid,
  .portal-strip,
  .portal-two-col,
  .portal-form__grid,
  .analytics-source-grid,
  .analytics-public-note,
  .analytics-dashboard-grid,
  .analytics-activity-grid,
  .analytics-strategy-grid,
  .analytics-classifier-layout,
  .analytics-visual-lower-grid,
  .analytics-result-grid,
  .analytics-kpi-strip,
  .analytics-time-filter,
  .analytics-assistant-form {
    grid-template-columns: 1fr;
  }

  .portal-hero-panel {
    min-width: 0;
  }

  .portal-nav__brand,
  .portal-nav__links {
    width: 100%;
  }

  .portal-nav__auth,
  .portal-form__submit {
    width: 100%;
  }

  .portal-profile__title {
    font-size: 34px;
  }

  .analytics-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-tab {
    flex: 1 1 180px;
  }

  .analytics-score-bar,
  .analytics-mix-view {
    grid-template-columns: 1fr;
  }

  .analytics-mix-donut {
    width: min(138px, 100%);
  }

  .analytics-time-filter__controls {
    grid-template-columns: 1fr;
  }
}

