/* Amanda brand manual: navy leads, sky opens space, coral adds emphasis. */
:root {
  --brand-blue: #124382;
  --brand-sky: #5cc7ff;
  --brand-coral: #ff4045;
  --ink: #241b38;
  --muted: #6e6681;
  --purple: var(--brand-blue);
  --purple-dark: #0c3264;
  --line: #dce5ee;
  --canvas: #f7f9fc;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 16px;
}
h1, h2, h3, .stat-card > strong { font-family: 'Sora', 'Segoe UI', sans-serif; }
h1 { color: var(--brand-blue); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.045em; }
h2 { color: var(--brand-blue); font-size: 18px; font-weight: 600; }
h3 { color: var(--brand-blue); }
:focus-visible { outline: 3px solid #007cbd; outline-offset: 3px; }
.sidebar { width: 280px; padding: 30px 20px 18px; background: #f3f6ff; color: #243b62; border: 0; border-right: 1px solid #e1e7f3; }
.sidebar { height: 100dvh; overflow: hidden; }
.sidebar-header { flex: 0 0 auto; min-width: 0; }
.sidebar-navigation { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-right: 6px; margin-right: -6px; }
.sidebar-navigation:focus-visible { outline-offset: -3px; border-radius: 12px; }
.sidebar-bottom { flex: 0 0 auto; margin-top: 0; padding-top: 12px; }
.sidebar-navigation .help-card { margin-bottom: 0; }
.brand { display: block; padding: 0 0 20px; }
.brand img { display: block; width: 160px; max-width: 100%; height: auto; }
.brand > span { display: block; margin: 10px 0 0 30px; font-size: 9px; color: #657394; letter-spacing: .2em; }
.workspace-switch { border: 1px solid #e1e7f3; background: #ffffffb3; padding: 14px 12px; border-radius: 16px; }
.workspace-switch > div, .account > div { min-width: 0; overflow-wrap: anywhere; }
.workspace-switch strong { font-size: 13px; }
.workspace-switch small, .account small { font-size: 11px; color: #657394; }
.workspace-avatar { width: 38px; height: 38px; background: #e0e7ff; color: #3730a3; border-radius: 12px; }
.nav-label { font-size: 10px; color: #657394; letter-spacing: .15em; }
.nav-item { padding: 12px; font-size: 13px; font-weight: 500; color: #4c5d7b; border-radius: 12px; }
.nav-item.active { color: #3730a3; background: #e0e7ff; font-weight: 800; }
.nav-item.active::after { background: var(--brand-coral); width: 6px; height: 6px; }
.sidebar nav { gap: 4px; margin-bottom: 24px; }
.help-card { background: #edf1fc; border: 1px solid #dfe6f5; border-radius: 16px; }
.help-card > span { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; }
.help-card p { color: #657394; font-size: 12px; }
.help-card a { color: #4338ca; font-size: 12px; }
.account { border-color: #dfe6f5; }
.account strong { font-size: 12px; }
.account > span:last-child { color: #4338ca; }
.avatar { background: #e7f4ff; color: var(--brand-blue); width: 38px; height: 38px; }
.main-shell { margin-left: 280px; }
.topbar { height: 80px; background: #ffffffed; }
.breadcrumb { font-size: 12px; }
.breadcrumb > span, .breadcrumb b, .topbar-right { color: #6e6681; }
.topbar-right { font-size: 12px; }
.content { padding-top: 34px; }
.eyebrow { font-size: 10px; letter-spacing: .15em; color: #41699b; }
.page-heading { margin-bottom: 30px; }
.page-heading .eyebrow { margin-bottom: 3px; line-height: 1.4; }
.page-heading h1 { margin: 0; }
.page-heading p { margin: 4px 0 0; font-size: 14px; max-width: 68ch; line-height: 1.5; color: var(--muted); }
.button { border-radius: 11px; min-height: 44px; font-size: 13px; font-weight: 700; border-color: #cbd9e8; color: var(--brand-blue); }
.button.primary { background: var(--brand-blue); border-color: var(--brand-blue); box-shadow: 0 4px 10px #12438212; }
.button.dashed { color: var(--brand-blue); border-color: #7eacce; background: #f4faff; }
.button.small { font-size: 12px; min-height: 38px; }
.icon-button { color: var(--brand-blue); width: 38px; height: 38px; border-radius: 10px; }
.text-link { font-size: 13px; font-weight: 700; }
.tag { color: var(--brand-blue); background: #e7f4ff; font-size: 10px; border-radius: 6px; }
.welcome-banner { padding: 32px; border-radius: 24px; background: linear-gradient(115deg, #e8f6ff 0%, #f1faff 65%, #fff8f0 100%); border-color: #d5e7f4; min-height: 250px; }
.welcome-banner::before { content: ''; position: absolute; inset: 30px auto 30px 0; width: 4px; background: var(--brand-coral); border-radius: 0 4px 4px 0; }
.welcome-banner .tag { background: #d8edff; color: #124382; font-size: 9px; }
.welcome-banner h2 { color: var(--brand-blue); font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; }
.welcome-banner p { font-size: 13px; color: #576b87; max-width: 370px; }
.mini-note { border-radius: 18px; border: 1px solid #d5e7f4; box-shadow: 0 16px 36px #1243820f; }
.mini-note > span { color: var(--brand-blue); }
.mini-note > div { color: #b5dff7; }
.mini-note b { color: var(--brand-coral); }
.mini-note small { color: #64758d; font-size: 10px; }
.bubble { background: var(--brand-blue); color: #fff; box-shadow: 0 8px 24px #12438224; border-radius: 10px 10px 3px 10px; }
.period { color: #62718a; font-size: 11px; border-radius: 9px; }
.stat-card { border-radius: 18px; box-shadow: 0 5px 20px #12438203; }
.stat-card span { font-size: 12px; color: #596981; }
.stat-card i { color: var(--brand-blue); background: #eaf6ff; border-radius: 10px; }
.stat-card:nth-child(2) i { background: #fff0f0; color: #bf303b; }
.stat-card:nth-child(3) i { background: #f1edff; color: #6646a1; }
.stat-card > strong { color: var(--brand-blue); font-size: 32px; font-weight: 600; }
.stat-card small { font-size: 11px; color: #6e6681; }
.panel { border-radius: 18px; box-shadow: 0 4px 20px #12438203; }
.panel-heading p { font-size: 12px; color: var(--muted); }
.panel-heading h2 { font-size: 17px; }
.legend, .chart-empty { color: #67758b; font-size: 12px; }
.legend i, .bar-track > div { background: var(--brand-sky); }
.bar-track { background: #f1f7fc; }
.bar-column small { color: #64758d; }
.start-panel { background: #fff8f0; border-color: #ede4db; }
.step-link > span { color: var(--brand-blue); background: #eaf6ff; }
.step-link strong { font-size: 13px; color: var(--brand-blue); }
.step-link small { font-size: 11px; color: var(--muted); }
th { background: #f5f9fd; color: #596981; font-size: 10px; letter-spacing: .06em; }
td { font-size: 13px; }
td small { font-size: 11px; overflow-wrap: anywhere; }
.table-title { min-width: 180px; }
.table-title > div { min-width: 0; overflow-wrap: anywhere; }
.type-icon, .type-icon.nps { background: #e6f4ff; color: var(--brand-blue); }
.status { font-size: 10px; }
.status.published { background: #e6f5ee; color: #256d53; }
.status.draft { background: #edf3fa; color: #476380; }
.status.paused { background: #fff4e0; color: #805516; }
.status.closed { background: #f2edf3; color: #6e6681; }
.empty-icon { background: #eaf6ff; color: #41699b; }
.empty-state h3 { font-size: 18px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.template-card { background: #eaf6ff; border-color: #d4e8f5; border-radius: 18px; padding: 24px; }
.template-card.csat { background: #edf8f4; }
.template-card.ces { background: #fff8f0; }
.template-card.custom { background: #f3effa; }
.template-card > span { color: #41699b; }
.template-card strong { color: var(--brand-blue); font-size: 14px; }
.template-card strong b { color: #41699b; }
.template-card small { color: #6e6681; font-size: 12px; }
label { font-size: 13px; font-weight: 700; color: #3c4e69; }
input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 46px; border: 1px solid #cbd9e8; border-radius: 10px; font-size: 16px; color: #241b38; background: #fff; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: #7b8495; }
input:disabled, select:disabled { background: #f2f5f9; color: #6b7688; }
.check { font-size: 13px; line-height: 1.6; }
.check input { width: 17px; height: 17px; flex-shrink: 0; }
.field-hint { font-size: 12px; line-height: 1.65; color: #6e6681; margin: -6px 0 20px; }
.notice { border-radius: 12px; background: #edf6ff; color: #124382; border-color: #cde5f7; font-size: 13px; line-height: 1.7; }
.notice.error { background: #fff1f1; border-color: #f7c8cd; color: #a52635; }
.notice.success { background: #edf8f1; border-color: #c9e8d5; color: #25694b; }
.theme-card h2 { font-size: 17px; }
.theme-card p { font-size: 13px; }
.question-card { background: #f8fbff; border-color: #dbe7f2; border-radius: 16px; }
.question-card label { font-size: 13px; }
.question-card details { font-size: 13px; color: #526885; }
.question-top, .question-top button { color: #41699b; }
.question-top button { min-height: 34px; min-width: 34px; border-color: #d3e1ed; }
.share-strip { border-radius: 14px; }
.response-detail summary strong { font-size: 14px; }
.response-detail summary small { font-size: 12px; }
.response-body p { font-size: 14px; }
.workspace-footer { font-size: 11px; color: #6e6681; }
.workspace-footer-right { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px 22px; margin-left:auto; }
.workspace-footer-developer { display:inline-flex; align-items:center; gap:9px; white-space:nowrap; }
.workspace-footer-developer img { display:block; width:110px; height:25px; object-fit:contain; }
.workspace-footer-developer:hover span { text-decoration:underline; text-underline-offset:3px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.account-stats > div { padding: 22px 24px; border: 1px solid var(--line); background: #fff; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.account-stats span { color: #64718a; font-size: 13px; }
.account-stats strong { font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 600; color: var(--brand-blue); }
.account-stats > div:nth-child(2) { background: #eaf6ff; border-color: #cfe7f8; }
.accounts-layout { grid-template-columns: minmax(0, 1fr) 330px; }
.account-filters { gap: 14px; }
.account-filters label { min-width: 110px; flex: 1; }
.account-filters .search-label { flex: 1.5; }
.account-filters select { max-width: 100%; }
.account-editor { scroll-margin-top: 24px; }
.account-role { font-size: 12px; }
.role-guide { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; }
.role-guide summary { cursor: pointer; font-weight: 700; color: var(--brand-blue); }
.role-guide dt { font-weight: 700; margin-top: 12px; }
.role-guide dd { margin: 4px 0 0; color: var(--muted); }
.admin-overview { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border: 1px solid #d7e6f1; border-radius: 18px; background: #fff; margin-bottom: 26px; }
.admin-overview > .avatar { border-radius: 12px; }
.admin-overview > div { flex: 1; }
.admin-overview h2 { font-size: 16px; margin-bottom: 4px; }
.admin-overview p { font-size: 12px; color: var(--muted); margin: 0; }
/* Login and signup share one branded shell. */
.auth-page { padding: 20px; background: #fff8f0; }
.auth-shell { max-width: 1500px; min-height: calc(100svh - 40px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid #e8e2dc; }
.auth-story { position: relative; overflow: hidden; background: #124382; color: #fff; padding: clamp(32px, 4vw, 68px); display: flex; flex-direction: column; }
.auth-story::before { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 100px; background: #5cc7ff0c; border: 1px solid #5cc7ff1c; top: 17%; right: -250px; transform: rotate(25deg); pointer-events: none; }
.auth-brand { position: relative; width: fit-content; }
.auth-brand img { width: 240px; max-width: 100%; height: auto; display: block; }
.auth-story-copy { margin-top: clamp(44px, 8vh, 90px); position: relative; }
.auth-story .eyebrow { color: #a9dfff; font-size: 10px; letter-spacing: .18em; }
.auth-story h1 { color: #fff; font-size: clamp(34px, 3.5vw, 54px); font-weight: 600; line-height: 1.18; letter-spacing: -.055em; margin: 22px 0; }
.auth-story h1 span { color: #5cc7ff; }
.auth-story-copy > p { color: #c7def5; font-size: 15px; max-width: 390px; line-height: 1.85; }
.auth-conversation { position: relative; max-width: 380px; margin: 35px 0 50px; padding: 0 16px 28px 0; }
.conversation-question { background: #fff; color: #124382; border-radius: 20px 20px 20px 5px; padding: 25px; box-shadow: 0 18px 35px #05265329; transform: rotate(-3deg); }
.conversation-question > span { font-size: 8px; letter-spacing: .12em; color: #64758d; }
.conversation-question strong { display: block; margin: 10px 0 18px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 18px; }
.conversation-rating { display: flex; gap: 8px; }
.conversation-rating i { flex: 1; display: grid; place-items: center; min-height: 43px; background: #edf6ff; color: #41699b; border-radius: 9px; font-style: normal; font-size: 15px; }
.conversation-rating i:last-child { background: #124382; color: #fff; display: flex; align-items: center; justify-content: center; gap: 5px; }
.conversation-rating b { color: #5cc7ff; font-size: 11px; }
.conversation-reply { position: absolute; right: 0; bottom: 0; background: #ff4045; color: #241b38; border-radius: 12px 12px 4px 12px; padding: 13px 21px; transform: rotate(3deg); font-size: 13px; font-weight: 800; box-shadow: 0 10px 30px #0b244e25; }
.conversation-reply span { margin-right: 12px; letter-spacing: 2px; }
.auth-story-footer { display: flex; flex-wrap: wrap; gap: 22px; margin-top: auto; border-top: 1px solid #ffffff26; padding-top: 25px; font-size: 10px; color: #b4d6f4; }
.auth-form-panel { padding: 30px clamp(24px, 4.5vw, 72px) 24px; display: flex; flex-direction: column; }
.auth-back { align-self: flex-end; color: #6e6681; font-size: 12px; margin-bottom: 30px; }
.auth-form { margin: auto 0; background: none; border: 0; padding: 18px 0 30px; border-radius: 0; box-shadow: none; width: 100%; max-width: 440px; align-self: center; }
.auth-tabs { display: flex; gap: 4px; background: #f2f6fa; border: 1px solid #e0e9f1; border-radius: 12px; padding: 4px; margin-bottom: 32px; }
.auth-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 8px; color: #61708a; font-size: 13px; font-weight: 700; }
.auth-tabs a[aria-current] { background: #fff; color: #124382; box-shadow: 0 2px 6px #1243820d; }
.auth-form h2 { font-size: clamp(27px, 2.6vw, 38px); line-height: 1.23; letter-spacing: -.05em; margin: 14px 0 16px; color: #124382; }
.auth-form > p { color: #6e6681; font-size: 14px; line-height: 1.8; }
.auth-form form { margin: 26px 0 20px; }
.auth-form label { margin-bottom: 18px; font-size: 13px; }
.auth-form label[for=auth-password] { margin-bottom: 7px; }
.auth-form input:not([type=checkbox]) { min-height: 49px; }
.password-field { position: relative; margin-bottom: 18px; }
.password-field input { padding-right: 86px; margin-top: 0; }
.password-toggle { position: absolute; right: 5px; top: 5px; bottom: 5px; border: 0; background: transparent; color: #124382; font-size: 12px; font-weight: 700; border-radius: 7px; padding: 0 10px; }
.auth-form .button { min-height: 51px; font-size: 14px; justify-content: space-between; padding: 13px 20px; }
.auth-form .field-hint { margin-top: -10px; font-size: 11px; }
.auth-form .auth-consent { font-size: 12px; font-weight: 400; color: #6e6681; }
.auth-consent a { color: #124382; text-decoration: underline; text-underline-offset: 3px; }
.auth-form .auth-alternative { text-align: center; font-size: 13px; }
.auth-alternative a, .auth-help a { color: #124382; font-weight: 800; }
.auth-form .auth-help { border-top: 1px solid var(--line); padding-top: 20px; margin: 22px 0 0; font-size: 12px; text-align: center; }
.signup-includes { background: #f0f8ff; border: 1px solid #d9ebf8; border-radius: 12px; padding: 15px 18px; }
.signup-includes strong { display: block; color: #124382; font-size: 12px; }
.signup-includes > span { display: block; color: #41699b; font-size: 11px; margin-top: 5px; }
.signup-includes small { font-size: 10px; color: #6e6681; margin-top: 8px; line-height: 1.7; }
.auth-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; border-top: 1px solid #e7edf4; color: #6e6681; font-size: 10px; }
.auth-footer img { width: 88px; height: auto; display: block; }
.auth-mobile-brand { display: none; }
.auth-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover { background: #e9edfb; color: #3730a3; }
  .nav-item.active:hover { background: #d7dffc; color: #3730a3; }
  .button:hover { background: #edf7ff; }
  .button.primary:hover { background: #0c3264; border-color: #0c3264; }
  tbody tr:hover { background: #f8fbff; }
  .template-card:hover { border-color: #8dbbd9; box-shadow: 0 8px 22px #12438208; }
  .password-toggle:hover { background: #eaf6ff; }
  .auth-alternative a:hover, .auth-back:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 1250px) {
  .accounts-layout { grid-template-columns: 1fr; }
  .account-editor { max-width: 650px; width: 100%; }
  .banner-art { padding-right: 0; padding-left: 12px; }
  .mini-note { width: 210px; padding: 20px; }
  .mini-note > div { font-size: 24px; }
}
@media (max-width: 960px) {
  .main-shell { margin-left: 0; }
  .sidebar .mobile-close { background: #fff; border-color: #dfe6f5; color: #3730a3; top: 10px; right: 8px; }
  .sidebar { padding-top: 55px; }
  .auth-story { padding: 32px; }
  .auth-form-panel { padding: 25px; }
  .auth-story h1 { font-size: 36px; }
  .conversation-question { padding: 20px; }
  .conversation-question strong { font-size: 15px; }
  .conversation-rating { gap: 5px; }
  .auth-story-footer { gap: 12px; font-size: 9px; }
}
@media (max-width: 700px) {
  .page-heading { gap: 20px; }
  .page-heading p { font-size: 13px; }
  .topbar { height: 68px; }
  .breadcrumb { gap: 9px; font-size: 11px; }
  .breadcrumb > span, .breadcrumb > b { display: none; }
  .content { padding: 25px 18px; }
  .welcome-banner { padding: 25px; border-radius: 20px; }
  .welcome-banner h2 { font-size: 24px; }
  .stat-card { padding: 17px; }
  .stat-card span { font-size: 11px; }
  .stat-card > strong { font-size: 28px; }
  .stat-card small { font-size: 10px; }
  .section-line h2 { font-size: 16px; }
  .period { font-size: 10px; white-space: nowrap; }
  .template-card { padding: 18px; }
  .template-card strong { font-size: 12px; }
  .template-card small { font-size: 11px; }
  .workspace-footer { flex-wrap: wrap; font-size: 10px; }
  .account-stats { gap: 8px; }
  .account-stats > div { padding: 14px 12px; flex-direction: column; align-items: flex-start; gap: 8px; border-radius: 14px; }
  .account-stats span { font-size: 11px; }
  .account-stats strong { font-size: 25px; }
  .account-filters label, .account-filters .search-label { flex: 1 1 130px; }
  .account-filters .search-label { flex-basis: 100%; }
  .admin-overview { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 20px; }
  .admin-overview > div { min-width: 180px; }
  .admin-overview .button-row { width: 100%; }
  .auth-page { padding: 0; background: #fff; }
  .auth-shell { display: block; margin: 0; min-height: 100svh; border: 0; border-radius: 0; }
  .auth-story { display: none; }
  .auth-form-panel { padding: 27px 24px 22px; min-height: 100svh; border-top: 5px solid #124382; }
  .auth-mobile-brand { display: block; align-self: center; margin: 0 0 22px; }
  .auth-mobile-brand img { display: block; width: 240px; max-width: 100%; height: auto; }
  .auth-back { margin-bottom: 12px; font-size: 11px; }
  .auth-form { padding: 12px 0 26px; }
  .auth-form h2 { font-size: 30px; }
  .auth-tabs { margin-bottom: 26px; }
  .auth-footer { font-size: 9px; }
  .auth-footer img { width: 72px; }
}
@media (forced-colors: active) {
  .nav-item.active, .auth-tabs a[aria-current] { outline: 2px solid Highlight; }
}
@media (max-height: 600px) {
  .sidebar { padding-top: 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .sidebar .brand { padding-bottom: 12px; }
  .sidebar .brand img { width: 140px; }
  .sidebar .brand > span { margin-top: 6px; font-size: 8px; }
  .sidebar .workspace-switch { padding: 9px 10px; margin-bottom: 14px; }
  .sidebar-bottom { padding-top: 8px; }
  .sidebar .account { padding-top: 10px; }
}

.account-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:nowrap}.account-action{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #e1daf4;border-radius:10px;background:#f7f3ff;color:#7542cb;cursor:pointer}.account-action svg{width:17px;height:17px}.account-action:hover{background:#eee6ff;border-color:#b49adf}.account-action:focus-visible{outline:2px solid #7542cb;outline-offset:2px}.account-action.is-danger{color:#d43950;background:#fff3f5;border-color:#f4d9df}.account-action.is-danger:hover{background:#ffe4e9}

.account-list-avatar{overflow:hidden}.account-list-avatar img{display:block;width:100%;height:100%;object-fit:cover}.account-email{overflow-wrap:anywhere}
