/*
 * Core dna AI assistant: the control panel of a client (CH06).
 * Served by the chat backend, loaded with control-panel.js (classes ccp-*) by
 * the page for a client's admins (shell "page") and by the Core dna admin
 * (shell "admin").
 *
 * The page of a client's admins has the look of www.coredna.com: the Brown
 * font with light headings, the warm charcoal and chalk colours, the floating
 * bar at the top, white cards with a hairline and a soft shadow. Emphasis is a
 * surface or a badge, never a stripe at the side. Inside the admin the font is
 * the admin's own, and the main action has the red of the admin.
 *
 * A setting is a row: what it is on the left, its control on the right.
 *
 * The names of the colour variables are the ones of the chat analytics pages
 * (--cca-*). Light pages only.
 */

/* The font of www.coredna.com (its files are open to each origin). Weights: 300, 400, 700 */
@font-face { font-family: "Brown"; font-weight: 300; font-style: normal; font-display: swap; src: url("https://www.coredna.com/dist/fonts/Brown-Light.woff2") format("woff2"), url("https://www.coredna.com/dist/fonts/Brown-Light.woff") format("woff"); }
@font-face { font-family: "Brown"; font-weight: 400; font-style: normal; font-display: swap; src: url("https://www.coredna.com/dist/fonts/Brown-Regular.woff2") format("woff2"), url("https://www.coredna.com/dist/fonts/Brown-Regular.woff") format("woff"); }
@font-face { font-family: "Brown"; font-weight: 700; font-style: normal; font-display: swap; src: url("https://www.coredna.com/dist/fonts/Brown-Bold.woff2") format("woff2"), url("https://www.coredna.com/dist/fonts/Brown-Bold.woff") format("woff"); }

:root {
  color-scheme: light;

  --cca-font: "Brown", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cca-accent: #1A1A1A;          /* the main action of a page: the charcoal pill of the website */
  --cca-accent-dark: #000000;
  --cca-accent-ink: #ffffff;
  --cca-link: #2B2A28;
  --cca-page: #F7F4EE;            /* chalk */
  --cca-surface: #ffffff;
  --cca-border: #E2DED7;          /* warm divider */
  --cca-ink: #2B2A28;             /* warm charcoal */
  --cca-ink-2: #6E6B66;
  --cca-radius: 16px;
  --cca-radius-control: 12px;

  --cca-ink-3: #9A968F;
  --cca-line: #EEEBE5;
  --cca-tag: #EEEBE5;
  --cca-tag-ink: #44423E;
  --cca-good: #E3F3EB;
  --cca-good-ink: #17694A;
  --cca-warn: #FBEBD6;
  --cca-warn-ink: #8A4B00;
  --cca-bad: #FADCDE;
  --cca-bad-ink: #A31624;

  /* the panel's own */
  --ccp-info: #E4ECF8;
  --ccp-info-ink: #1D4E9C;
  --ccp-field-border: #CFCAC2;
  --ccp-brand: #CC002C;
  --ccp-soft: #FAF8F4;
  --ccp-hover: #F3F0EA;
  --ccp-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  --ccp-top: 100px;               /* where a sticky part stops under the bar at the top */
  --ccp-lift: 2px;                /* the Brown font: how far the words of a pill are moved up */
  --ccp-drawer: var(--cca-page);  /* the ground of the menu of a narrow window */
  --ccp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* The page of a client's admins has the chalk ground. Inside the admin the ground is the admin's */
body:has(.ccp:not(.ccp-shell-admin)) { margin: 0; background: var(--cca-page); }

.ccp, .ccp * { box-sizing: border-box; }

.ccp {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 72px;
  color: var(--cca-ink);
  font: 15px/1.5 var(--cca-font);
  -webkit-font-smoothing: antialiased;
}

.ccp [hidden] { display: none !important; }
.ccp a { color: var(--cca-link); }
.ccp button, .ccp input, .ccp textarea, .ccp select { font: inherit; color: inherit; }
.ccp button { cursor: pointer; }
.ccp button:disabled { cursor: default; }
.ccp :focus-visible { outline: 2px solid var(--cca-ink); outline-offset: 2px; }

.ccp-muted { color: var(--cca-ink-2); font-size: 13px; margin: 8px 0 0; }
.ccp-empty { color: var(--cca-ink-2); margin: 8px 0 0; }
.ccp-loading { display: flex; align-items: center; gap: 12px; color: var(--cca-ink-2); margin: 40px 0; }
.ccp-loading::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--cca-border); border-top-color: var(--cca-ink); border-radius: 50%; animation: ccp-spin .8s linear infinite; flex: none; }
@keyframes ccp-spin { to { transform: rotate(360deg); } }
.ccp-code { font: 12px/1.4 var(--ccp-mono); background: var(--cca-tag); color: var(--cca-tag-ink); border-radius: 6px; padding: 2px 7px; overflow-wrap: anywhere; }

.ccp-link { background: none; border: 0; border-radius: 4px; padding: 0; color: var(--cca-ink); font-size: 13px; text-decoration: underline; text-decoration-color: var(--ccp-field-border); text-underline-offset: 3px; }
.ccp-link:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- buttons */

.ccp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 20px;
  background: var(--cca-surface); color: var(--cca-ink);
  border: 1px solid var(--ccp-field-border); border-radius: 999px;
  font-weight: 600; font-size: 14px; text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.ccp a.ccp-btn { color: var(--cca-ink); }
.ccp-btn:hover:not(:disabled) { border-color: var(--cca-ink); }
.ccp-btn:disabled { opacity: .45; }
/* ".ccp .ccp-btn-primary": a rule for all buttons of the panel must not win over the colour of the text */
.ccp .ccp-btn-primary, .ccp a.ccp-btn-primary { background: var(--cca-accent); border-color: var(--cca-accent); color: var(--cca-accent-ink); }
.ccp .ccp-btn-primary:hover:not(:disabled) { background: var(--cca-accent-dark); border-color: var(--cca-accent-dark); }
/* The second click of an action that is not small: the words change too */
.ccp-btn-armed { background: var(--cca-warn); border-color: var(--cca-warn-ink); color: var(--cca-warn-ink); border-style: dashed; }

.ccp-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 0; }

/* ------------------------------------------- the bar at the top of the page */

/* As the navigation of www.coredna.com: a pill that floats over the page, with the logo, the client and the person */
.ccp-head {
  position: sticky; top: 20px; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  margin: 20px 0 0; padding: 10px 12px 10px 28px;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 2px solid rgba(179, 179, 179, .2); border-radius: 60px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .06);
}
.ccp-head-main { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.ccp-brand { display: inline-flex; align-items: center; }
.ccp-brand-logo { display: block; height: 36px; width: auto; }
.ccp-brand-word { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.ccp-title { font-size: 16px; line-height: 1.25; margin: 0; font-weight: 700; color: var(--cca-ink); }
.ccp-head .ccp-title { padding-left: 20px; border-left: 1px solid #D4D4D4; line-height: 28px; }
.ccp-head-client { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; padding-left: 20px; border-left: 1px solid #D4D4D4; min-height: 28px; }
.ccp-head-client .ccp-client-name { font-size: 16px; font-weight: 400; color: var(--cca-ink); }
.ccp-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 14px; }
.ccp-person { display: inline-flex; flex-direction: column; line-height: 1.25; text-align: right; }
.ccp-person-name { font-weight: 700; font-size: 14px; }
.ccp-person-role { color: var(--cca-ink-2); font-size: 12px; }
/* "Log out" is the charcoal pill of the website's bar. The letters of the Brown font are low in their line:
   the space under the text is larger than the space over it, so that the words are in the middle of the pill */
.ccp-head .ccp-link { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px var(--ccp-lift); background: #1A1A1A; color: #fff; border-radius: 50px; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.ccp-head .ccp-link:hover { background: #000; }

/* The button of the menu, for a narrow window only */
.ccp-menu-button { display: none; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px var(--ccp-lift) 13px; background: var(--cca-surface); border: 1px solid var(--ccp-field-border); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--cca-ink); }
.ccp-menu-button-mark { flex: none; width: 18px; height: 14px; background: linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat; }
.ccp-head .ccp-menu-button { width: 40px; padding: 0; justify-content: center; background: none; border: 0; }
.ccp-head .ccp-menu-button:hover { background: var(--ccp-hover); }
.ccp-head .ccp-menu-button-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ccp-menu-row { display: none; margin-top: 12px; }
.ccp-side-top { display: none; }
.ccp-scrim { display: none; }

.ccp-sub { margin: 0; color: var(--cca-ink-2); overflow-wrap: anywhere; }
.ccp-page-name { margin: 32px 0 0; font-size: 32px; font-weight: 300; letter-spacing: -.02em; line-height: 1.15; color: var(--cca-ink); }

/* Inside the admin, the client of the page is a card of two lines:
   its name with the selector of the client, then what the client is with the links */
.ccp-client {
  display: flex; align-items: center; gap: 16px;
  margin-top: 4px; padding: 16px 22px 14px 20px;
  background: var(--cca-surface); border: 1px solid var(--cca-line); border-radius: var(--cca-radius); box-shadow: var(--ccp-shadow);
}
.ccp-client > .ccp-avatar { width: 52px; height: 52px; border-radius: 16px; font-size: 17px; }
.ccp-client-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ccp-client-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 36px; }
.ccp-client-line-2 { min-height: 28px; }
.ccp-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; background: #D6E4FF; color: #1E3A8A;
}
.ccp-avatar-1 { background: #FDE2C4; color: #7A3E00; }
.ccp-avatar-2 { background: #D6E4FF; color: #1E3A8A; }
.ccp-avatar-3 { background: #D9F2E4; color: #14532D; }
.ccp-avatar-4 { background: #EBDDFB; color: #4C1D95; }
.ccp-avatar-5 { background: #FBD9E1; color: #831843; }
.ccp-avatar-6 { background: #E5E7EB; color: #374151; }
.ccp-client .ccp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ccp-client .ccp-client-name { font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--cca-ink); }
.ccp-links { flex: 0 0 auto; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; }
.ccp .ccp-nav-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px;
  border: 1px solid var(--ccp-field-border); border-radius: 999px; background: var(--cca-surface);
  color: var(--cca-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ccp .ccp-nav-link:hover { border-color: var(--cca-ink); }
.ccp-switcher { width: auto; max-width: 240px; min-height: 36px; padding: 5px 34px 5px 14px; font-size: 13.5px; border-radius: 999px; }
/* In the card of the client the links are quiet words with a small drawing, not a row of buttons */
.ccp-client .ccp-links { gap: 4px 24px; }
.ccp .ccp-client .ccp-nav-link { gap: 7px; min-height: 0; padding: 3px 0; border: 0; border-radius: 0; background: none; font-size: 13.5px; font-weight: 500; color: var(--cca-ink-2); }
.ccp .ccp-client .ccp-nav-link:hover { color: var(--cca-ink); text-decoration: underline; text-underline-offset: 4px; }
.ccp-client .ccp-nav-link::before {
  content: ""; width: 15px; height: 15px; flex: none; background: currentColor; opacity: .75;
  -webkit-mask: var(--ccp-icon) center / 15px no-repeat; mask: var(--ccp-icon) center / 15px no-repeat;
  --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}
.ccp-client .ccp-nav-link[data-action="all-clients"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h4v4H3zm6 .5h12v3H9zM3 10h4v4H3zm6 .5h12v3H9zM3 16h4v4H3zm6 .5h12v3H9z'/%3E%3C/svg%3E"); }
.ccp-client .ccp-nav-link[data-action="analytics"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 20V11h4.500v9zm6.750 0V4h4.500v16zm6.750 0v-6H21v6z'/%3E%3C/svg%3E"); }
.ccp-client .ccp-nav-link[data-action="record-form"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 4h18v7H3zm2 2v3h14V6zM3 13h18v7H3zm2 2v3h14v-3z'/%3E%3C/svg%3E"); }
.ccp-client .ccp-switcher { max-width: 280px; }

.ccp-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 1.5; border: 1px solid transparent; white-space: nowrap; }
.ccp-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ccp-badge-production { background: var(--cca-good); color: var(--cca-good-ink); }
/* Staging is not the live site of a client: a different edge and capitals, not a colour only */
.ccp-badge-staging { background: var(--cca-warn); color: var(--cca-warn-ink); border: 1px dashed var(--cca-warn-ink); text-transform: uppercase; letter-spacing: .04em; }
.ccp-badge-off { background: var(--cca-bad); color: var(--cca-bad-ink); }

.ccp-sync { display: inline-flex; align-items: baseline; gap: 4px; }
.ccp-sync-ok { color: var(--cca-good-ink); }
.ccp-sync-bad { color: var(--cca-bad-ink); font-weight: 600; }
.ccp-sync-time { display: block; margin: 0; }

/* ---------------------------------------------------------------- notices */

.ccp-notices:empty { display: none; }
.ccp-notices { margin: 16px 0 0; }
.ccp-notice { display: flex; align-items: flex-start; gap: 10px; border-radius: 12px; padding: 12px 16px; font-size: 14px; border: 1px solid transparent; }
.ccp-notice + .ccp-notice { margin-top: 8px; }
.ccp-notice-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; font-weight: 700; line-height: 17px; text-align: center; margin-top: 1px; }
.ccp-notice-body { min-width: 0; flex: 1; }
.ccp-notice-text { margin: 0; overflow-wrap: anywhere; }
.ccp-notice-done { background: var(--cca-good); color: var(--cca-good-ink); }
.ccp-notice-info { background: var(--ccp-info); color: var(--ccp-info-ink); }
.ccp-notice-problem { background: var(--cca-bad); color: var(--cca-bad-ink); border-color: rgba(163, 22, 36, .3); }

.ccp-pre { margin: 8px 0 0; padding: 14px 16px; background: #151412; color: #F7F4EE; border: 0; border-radius: 12px; font: 12px/1.55 var(--ccp-mono); overflow: auto; max-height: 360px; white-space: pre; }

/* ------------------------------------------------------------------ cards */

/* The card of the website: white, a hairline, a soft shadow */
.ccp-card { background: var(--cca-surface); border: 1px solid var(--cca-line); border-radius: var(--cca-radius); box-shadow: var(--ccp-shadow); padding: 24px 28px; margin-top: 16px; min-width: 0; }
.ccp-card-title { font-size: 18px; line-height: 1.3; margin: 0; font-weight: 600; letter-spacing: -.008em; }
/* The first card of a page starts at the line of the top of the menu */
.ccp-panel > .ccp-card:first-child { margin-top: 0; }
.ccp-card-note { font-size: 14px; color: var(--cca-ink-2); margin: 4px 0 0; max-width: 70ch; }

.ccp-login, .ccp-failure { max-width: 460px; margin: 12vh auto 0; padding: 40px; border-radius: 24px; box-shadow: 0 14px 28px rgba(0, 0, 0, .08); }
.ccp-login .ccp-brand, .ccp-failure .ccp-brand { margin-bottom: 22px; }
.ccp-login .ccp-brand-logo, .ccp-failure .ccp-brand-logo { height: 38px; }
.ccp-login .ccp-title, .ccp-failure .ccp-title { font-size: 30px; font-weight: 300; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 4px; }
.ccp-login .ccp-notice, .ccp-failure .ccp-notice { margin: 16px 0; }
.ccp-login-client { margin: 10px 0 0; font-size: 18px; font-weight: 700; color: var(--cca-ink); overflow-wrap: anywhere; }
.ccp-login-actions { margin: 28px 0 0; }
.ccp-login-actions .ccp-btn { width: 100%; min-height: 48px; font-size: 15px; }
.ccp-login-need { margin: 12px 0 0; color: var(--cca-ink-2); }
/* ".ccp .ccp-login-domain": the rules of a field in a row of the settings (they come later) must not win here */
.ccp .ccp-login-domain .ccp-field { display: block; border: 0; padding: 0; margin-top: 32px; }
.ccp .ccp-login-domain .ccp-field-head { padding: 0; margin: 0 0 12px; }
.ccp .ccp-login-domain .ccp-help { margin: 14px 0 0; }
.ccp-login-domain .ccp-input { min-height: 48px; font-size: 16px; }

/* The list of the clients */
.ccp-new { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; padding: 16px 24px; }
.ccp-new .ccp-muted { margin: 0; flex: 1 1 260px; }
.ccp .ccp-new .ccp-btn { background: var(--cca-accent); border-color: var(--cca-accent); color: var(--cca-accent-ink); }
.ccp .ccp-new .ccp-btn:hover { background: var(--cca-accent-dark); border-color: var(--cca-accent-dark); }
.ccp-list { padding: 6px 0; }
.ccp-list .ccp-table th:first-child, .ccp-list .ccp-table td:first-child { padding-left: 24px; }
.ccp-list .ccp-table th:last-child, .ccp-list .ccp-table td:last-child { padding-right: 24px; }
/* The list is as wide as the page. A row has two lines */
.ccp.ccp-wide { max-width: none; }
.ccp-list .ccp-table th, .ccp-list .ccp-table td { vertical-align: top; padding-top: 16px; padding-bottom: 16px; }
.ccp-list .ccp-table thead th { padding-top: 10px; padding-bottom: 10px; }
.ccp-list-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ccp-list-line + .ccp-list-line, .ccp-list-sync .ccp-sync-time { margin-top: 6px; }
.ccp-list-id .ccp-code { background: none; padding: 0; color: var(--cca-ink-3); font-size: 12px; overflow-wrap: normal; white-space: nowrap; }
.ccp-list-site { color: var(--cca-ink-2); white-space: nowrap; }
.ccp-list-sync { width: 30%; min-width: 180px; }
.ccp-list-reason { font-size: 13px; color: var(--cca-ink-2); overflow-wrap: anywhere; }
.ccp-power { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ccp-power::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cca-good-ink); }
.ccp-power-off { color: var(--cca-ink-3); }
.ccp-power-off::before { background: var(--cca-ink-3); }
.ccp .ccp-row-link { color: var(--cca-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.ccp .ccp-row-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------- the menu and its pages */

.ccp-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 0 40px; align-items: start; margin-top: 32px; }
.ccp-main { min-width: 0; }
/* The left side: the menu, then the state of the content and of the settings */
/* The column stays in the window when the page moves. When the window is lower than the column, the column
   moves by itself: the menu keeps its full height, and the cards under it are a short move away */
.ccp-side { position: sticky; top: var(--ccp-top); display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - var(--ccp-top) - 20px); overflow-y: auto; scrollbar-width: none; margin: -4px; padding: 4px; }
.ccp-side::-webkit-scrollbar { display: none; }
.ccp-tabs { flex: none; display: flex; flex-direction: column; gap: 0; padding: 12px 10px; background: var(--cca-surface); border: 1px solid var(--cca-line); border-radius: var(--cca-radius); box-shadow: var(--ccp-shadow); }
.ccp-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; flex: none; min-height: 34px; padding: 5px 12px 5px 40px;
  background: none; border: 0; border-radius: 10px;
  text-align: left; font-size: 15px; font-weight: 400; color: var(--cca-ink-2);
  transition: background-color .15s, color .15s;
}
.ccp-tab:hover { background: var(--ccp-hover); color: var(--cca-ink); }
/* The page that is shown: a surface and a heavier text. No stripe at the side */
.ccp-tab-on, .ccp-tab-on:hover { background: var(--cca-tag); color: var(--cca-ink); font-weight: 700; }
.ccp-tab-count { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cca-ink); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 20px; text-align: center; }
.ccp-tab-invalid .ccp-tab-count { background: var(--cca-bad-ink); color: #fff; }
.ccp-panel > .ccp-empty { margin-top: 12px; }
/* The pages of one menu: a title with a small drawing, then the pages. A menu with no title is a plain list */
.ccp-menu { flex: none; display: flex; flex-direction: column; gap: 1px; }
.ccp-menu + .ccp-menu { margin-top: 2px; }
.ccp-menu-title {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; margin: 0; padding: 8px 12px;
  background: none; border: 0; border-radius: 10px; text-align: left;
  font-size: 15px; font-weight: 700; color: var(--cca-ink);
  transition: background-color .15s;
}
.ccp-menu-title:hover { background: var(--ccp-hover); }
/* A small arrow at the end of the name: it points down when the menu is open */
.ccp-menu-title::after {
  content: ""; width: 16px; height: 16px; margin-left: auto; flex: none; background: var(--cca-ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s;
}
.ccp-menu-open > .ccp-menu-title::after { transform: rotate(90deg); }
/* A closed menu with a change in one of its pages: a small mark */
.ccp-menu:not(.ccp-menu-open):has(.ccp-tab-count:not([hidden])) > .ccp-menu-title::after { -webkit-mask: none; mask: none; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: #D97706; }
.ccp-menu:not(.ccp-menu-open) > .ccp-tab { display: none; }
.ccp-menu-open { padding-bottom: 6px; }
.ccp-menu-title::before {
  content: ""; width: 18px; height: 18px; flex: none; background: var(--cca-ink-2);
  -webkit-mask: var(--ccp-icon) center / 18px no-repeat; mask: var(--ccp-icon) center / 18px no-repeat;
  --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}
.ccp-menu[data-menu="appearance"] .ccp-menu-title::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 0 0 0 18c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3-.3-.4-.5-.8-.5-1.3 0-1.1.9-2 2-2h2.3A4.700 4.700 0 0 0 22 9.700C22 6 17.500 3 12 3zM6.500 12a1.500 1.500 0 1 1 0-3 1.500 1.500 0 0 1 0 3zm3-4a1.500 1.500 0 1 1 0-3 1.500 1.500 0 0 1 0 3zm5 0a1.500 1.500 0 1 1 0-3 1.500 1.500 0 0 1 0 3zm3 4a1.500 1.500 0 1 1 0-3 1.500 1.500 0 0 1 0 3z'/%3E%3C/svg%3E"); }
.ccp-menu[data-menu="assistant"] .ccp-menu-title::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3l2 5.500L17.500 10.500 12 12.500 10 18l-2-5.500L2.500 10.500 8 8.500zM18.500 14l1 2.500 2.500 1-2.500 1-1 2.500-1-2.500-2.500-1 2.500-1z'/%3E%3C/svg%3E"); }
.ccp-menu[data-menu="conversations"] .ccp-menu-title::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm3 5v2h10V9zm0 4v2h7v-2z'/%3E%3C/svg%3E"); }
.ccp-menu[data-menu="features"] .ccp-menu-title::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zm10 0h8v8h-8zM3 13h8v8H3zm13 0h2v3h3v2h-3v3h-2v-3h-3v-2h3z'/%3E%3C/svg%3E"); }
.ccp-menu[data-menu="content"] .ccp-menu-title::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm7 1.500V9h5.500zM8 13v2h8v-2zm0 4v2h6v-2z'/%3E%3C/svg%3E"); }
.ccp-menu[data-menu="setup"] .ccp-menu-title::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.400 13a7.500 7.500 0 0 0 0-2l2.100-1.600-2-3.500-2.500 1a7.500 7.500 0 0 0-1.700-1L15 3h-4l-.4 2.900a7.500 7.500 0 0 0-1.700 1l-2.500-1-2 3.500L6.600 11a7.500 7.500 0 0 0 0 2l-2.100 1.600 2 3.500 2.500-1a7.500 7.500 0 0 0 1.700 1L11 21h4l.4-2.900a7.500 7.500 0 0 0 1.700-1l2.500 1 2-3.500zM13 15.500a3.500 3.500 0 1 1 0-7 3.500 3.500 0 0 1 0 7z'/%3E%3C/svg%3E"); }
.ccp-menu[data-menu="none"] .ccp-tab { padding-left: 12px; }
/* An entry of the menu that is a link to another page (the chat analytics): the look of a menu, an arrow that points out */
.ccp-menu-links { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--cca-line); }
/* The weight of the names of the menus (they are buttons, and a button of the panel takes the weight of the page) */
.ccp .ccp-menu-link { text-decoration: none; color: var(--cca-ink); font-weight: inherit; }
.ccp-menu[data-menu="analytics"] .ccp-menu-title::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 20V11h4.500v9zm6.750 0V4h4.500v16zm6.750 0v-6H21v6z'/%3E%3C/svg%3E"); }
.ccp-menu-link::after, .ccp-menu-open > .ccp-menu-link::after {
  width: 14px; height: 14px; transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 6h10v10M18 6L6 18' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 6h10v10M18 6L6 18' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* The top of a page, in the first card of the page: its menu in small capitals, its name in the light weight of
   the website, and for a page with one section a line that says what the section is */
.ccp-page-head { margin: 0; padding: 4px 0 20px; border-bottom: 1px solid var(--cca-line); }
.ccp-page-kicker { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ccp-brand); line-height: 1.4; }
.ccp-page-title { margin: 2px 0 0; font-size: 34px; font-weight: 300; letter-spacing: -.025em; line-height: 1.15; }
.ccp-page-lead { margin: 8px 0 0; font-size: 15px; color: var(--cca-ink-2); max-width: 70ch; }
.ccp-page-head + .ccp-card-title { margin-top: 22px; }
.ccp-page-head + .ccp-card-note, .ccp-page-head + .ccp-install { margin-top: 16px; }
.ccp-page-head + .ccp-content-body > .ccp-progress-large:first-child { margin-top: 20px; }

/* Is the part of a feature on the site of the client there? A badge with words, not a colour only */
.ccp-install { display: inline-flex; align-items: center; gap: 7px; margin: 12px 0 0; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ccp-install-yes { background: var(--cca-good); color: var(--cca-good-ink); }
.ccp-install-no { background: var(--cca-warn); color: var(--cca-warn-ink); border-radius: 12px; padding: 10px 14px; align-items: flex-start; font-weight: 400; }
.ccp-install-mark { font-weight: 700; }
/* A feature that the panel can install on the website: what it needs, the button, and the steps of the install */
.ccp-install-box { margin: 16px 0 0; padding: 16px 18px; border-radius: var(--cca-radius-control); background: var(--cca-warn); color: var(--cca-ink); }
.ccp-install-title { margin: 0; font-weight: 700; color: var(--cca-warn-ink); }
.ccp-install-what, .ccp-install-need { margin: 4px 0 0; font-size: 13.5px; max-width: 70ch; }
.ccp-install-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 14px 0 0; }
.ccp-install-field { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ccp-install-field .ccp-label { font-size: 13.5px; }
.ccp-install-steps { margin: 12px 0 0; padding: 0 0 0 20px; font-size: 13.5px; color: var(--cca-ink-2); }
.ccp-install-box .ccp-notices { margin-top: 12px; }
.ccp-install-box + .ccp-field { border-top: 0; }

/* --------------------------------------- the panels under the menu: state */

.ccp-aside { flex: none; display: flex; flex-direction: column; gap: 14px; }
.ccp-aside-card { display: block; width: 100%; padding: 14px 16px; text-align: left; background: var(--cca-surface); border: 1px solid var(--cca-line); border-radius: var(--cca-radius); box-shadow: var(--ccp-shadow); }
/* The card of the content is a button (it opens the page of the content), with the look of the other cards:
   no change when the pointer is on it */
button.ccp-aside-card, button.ccp-aside-card:hover, button.ccp-aside-card:active { background: var(--cca-surface); color: inherit; border: 1px solid var(--cca-line); box-shadow: var(--ccp-shadow); }
/* The numbers of the index and its name: a small list, the name of a value on the left, the value on the right */
.ccp-aside-facts { display: flex; flex-direction: column; gap: 5px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--cca-line); font-size: 12.5px; }
.ccp-aside-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ccp-aside-fact-label { flex: none; color: var(--cca-ink-2); }
.ccp-aside-fact-value { min-width: 0; text-align: right; font-weight: 700; color: var(--cca-ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ccp-aside-fact-value code { font: 12px/1.4 var(--ccp-mono); font-weight: 400; }
/* The badge of a sandbox next to the name of the configuration, in the bar at the top */
.ccp-head-client .ccp-badge { font-size: 11px; padding: 2px 9px; }
.ccp-aside-title { display: block; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cca-ink-3); }

/* The two cards under the menu: "Assistant status" (what can change) and "Configuration" (what is fixed).
   Each fact is a soft square with a drawing, a word and one or more small lines. The colour of a square is
   never the one sign of a state: the word says it too */
.ccp-items { display: flex; flex-direction: column; margin: 0; }
.ccp-items[hidden] { display: none; }
.ccp-item { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ccp-item + .ccp-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cca-line); }
.ccp-mark { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--cca-tag); color: var(--cca-ink-2); }
.ccp-mark::before {
  content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--ccp-icon) center / 22px no-repeat; mask: var(--ccp-icon) center / 22px no-repeat;
  --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3C/svg%3E");
}
.ccp-mark[data-icon="chat"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.ccp-mark[data-icon="server"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm2 2.500v2h2v-2zM4 13h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm2 2.500v2h2v-2z'/%3E%3C/svg%3E"); }
.ccp-mark[data-icon="check"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.400 14.200L6.300 12l1.500-1.500 2.800 2.800 5.600-5.600 1.500 1.500z'/%3E%3C/svg%3E"); }
.ccp-mark[data-icon="alert"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.100 5h2.200v7h-2.200zm0 8.800h2.200V18h-2.200z'/%3E%3C/svg%3E"); }
.ccp-mark[data-icon="flask"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v2h-1v5.200l5.300 8.900A1.900 1.900 0 0 1 17.700 21H6.300a1.900 1.900 0 0 1-1.600-2.900L10 9.200V4H9zm1.900 9.200L8.700 15h6.600l-2.200-3.800z'/%3E%3C/svg%3E"); }
.ccp-mark[data-icon="globe"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.900 6h-2.700a15 15 0 0 0-1.300-3.400A8 8 0 0 1 18.900 8zM12 4.100c.8 1.100 1.500 2.400 1.900 3.900h-3.800c.4-1.500 1.100-2.800 1.900-3.900zM4.300 14a8 8 0 0 1 0-4h3.200a17 17 0 0 0 0 4zm.8 2h2.700c.3 1.200.8 2.400 1.300 3.400A8 8 0 0 1 5.100 16zm2.700-8H5.100a8 8 0 0 1 4-3.400C8.600 5.600 8.100 6.800 7.800 8zM12 19.900c-.8-1.100-1.500-2.400-1.900-3.900h3.800c-.4 1.500-1.100 2.800-1.900 3.900zm2.300-5.900H9.700a15 15 0 0 1 0-4h4.600a15 15 0 0 1 0 4zm.6 5.400c.5-1 1-2.200 1.300-3.400h2.700a8 8 0 0 1-4 3.400zm1.600-5.400a17 17 0 0 0 0-4h3.200a8 8 0 0 1 0 4z'/%3E%3C/svg%3E"); }
.ccp-mark[data-icon="data"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c4.400 0 8 1.300 8 3v12c0 1.700-3.600 3-8 3s-8-1.300-8-3V6c0-1.700 3.600-3 8-3zm6 5.500c-1.500.9-3.700 1.500-6 1.500s-4.500-.6-6-1.500V12c0 .6 2.400 2 6 2s6-1.400 6-2zm0 6c-1.500.9-3.700 1.500-6 1.500s-4.500-.6-6-1.500V18c0 .6 2.400 1.500 6 1.500s6-.9 6-1.500z'/%3E%3C/svg%3E"); }
.ccp-mark[data-icon="pages"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm7 1.500V9h5.500zM8 13v2h8v-2zm0 4v2h6v-2z'/%3E%3C/svg%3E"); }
.ccp-mark[data-icon="parts"]::before { --ccp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zm10 0h8v8h-8zM3 13h8v8H3zm10 0h8v8h-8z'/%3E%3C/svg%3E"); }
.ccp-mark-good { background: var(--cca-good); color: var(--cca-good-ink); }
.ccp-mark-bad { background: var(--cca-bad); color: var(--cca-bad-ink); }
.ccp-mark-sand { background: var(--cca-warn); color: var(--cca-warn-ink); }
.ccp-mark-off { background: var(--cca-tag); color: var(--cca-ink-3); }
.ccp-item-words { min-width: 0; padding-top: 3px; }
.ccp-item-title { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.25; color: var(--cca-ink); overflow-wrap: anywhere; }
.ccp-item-title code, .ccp-item-line code { font: 12.5px/1.4 var(--ccp-mono); }
.ccp-item-line code { font-size: 11.5px; color: var(--cca-ink-3); }
.ccp-item-line { display: block; font-size: 12.5px; line-height: 1.4; color: var(--cca-ink-2); overflow-wrap: anywhere; }
.ccp-item-good .ccp-item-title { color: var(--cca-good-ink); }
.ccp-item-bad .ccp-item-title, .ccp-item-bad .ccp-state-reason { color: var(--cca-bad-ink); }
.ccp-state-reason { display: block; max-height: 5.6em; overflow: auto; }
.ccp-state-by { color: var(--cca-ink); }
/* A time as "3 days ago": the full time shows when the pointer is on it */
.ccp-time { white-space: nowrap; text-decoration: underline dotted var(--ccp-field-border); text-underline-offset: 3px; cursor: help; }

/* The progress of the content: a ring with the percentage, what happens now, and three steps */
.ccp-progress-top { display: flex; align-items: center; gap: 14px; }
.ccp-ring {
  --ccp-p: 0; --ccp-ring-color: var(--ccp-info-ink);
  position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--ccp-ring-color) calc(var(--ccp-p) * 1%), #E9E5DE 0);
  transition: background .4s;
}
.ccp-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--cca-surface); }
.ccp-ring-value { position: relative; font-size: 14px; font-weight: 700; color: var(--cca-ink); font-variant-numeric: tabular-nums; }
.ccp-ring-done { --ccp-ring-color: #1F8A5C; }
.ccp-ring-done .ccp-ring-value { color: #1F8A5C; font-size: 22px; }
.ccp-ring-failed { --ccp-ring-color: #C01A2B; }
.ccp-ring-failed .ccp-ring-value { color: #C01A2B; font-size: 22px; }
.ccp-ring-empty, .ccp-ring-unknown, .ccp-ring-queued { --ccp-ring-color: var(--cca-ink-3); }
/* No percentage is known: a part of the ring turns */
.ccp-ring-turning { animation: ccp-spin 1.4s linear infinite; }
.ccp-progress-indexing .ccp-ring, .ccp-progress-queued .ccp-ring { animation: ccp-breathe 1.6s ease-in-out infinite; }
@keyframes ccp-breathe { 50% { opacity: .55; } }
.ccp-progress-words { min-width: 0; }
.ccp-progress-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--cca-ink); }
.ccp-progress-line { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--cca-ink-2); overflow-wrap: anywhere; }
.ccp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.ccp-step { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cca-ink-3); }
.ccp-step::before { content: ""; height: 4px; border-radius: 999px; background: #E9E5DE; }
.ccp-step-done { color: var(--cca-good-ink); }
.ccp-step-done::before { background: #1F8A5C; }
.ccp-step-now { color: var(--ccp-info-ink); }
.ccp-step-now::before { background: linear-gradient(90deg, var(--ccp-info-ink) 0 40%, #9DB6DE 40% 60%, var(--ccp-info-ink) 60% 100%); background-size: 200% 100%; animation: ccp-flow 1.2s linear infinite; }
@keyframes ccp-flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* The same on the page of the content, larger */
.ccp-progress-large { margin: 18px 0 4px; padding: 20px 22px; border-radius: 16px; background: var(--ccp-soft); border: 1px solid var(--cca-line); }
.ccp-progress-large .ccp-ring { width: 88px; height: 88px; }
.ccp-progress-large .ccp-ring::before { inset: 8px; background: var(--ccp-soft); }
.ccp-progress-large .ccp-ring-value { font-size: 20px; }
.ccp-progress-large .ccp-ring-done .ccp-ring-value, .ccp-progress-large .ccp-ring-failed .ccp-ring-value { font-size: 32px; }
.ccp-progress-large .ccp-progress-top { gap: 20px; }
.ccp-progress-large .ccp-progress-title { font-size: 24px; font-weight: 300; letter-spacing: -.015em; }
.ccp-progress-large .ccp-progress-line { font-size: 14px; }
.ccp-progress-large .ccp-steps { max-width: 420px; margin-top: 18px; }

/* ----------------------------------------------------------------- fields */

.ccp-form { margin: 0; }
/* The admin of Core dna gives each fieldset a white ground, round corners and a shadow: not this one */
.ccp .ccp-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; background: none; border-radius: 0; box-shadow: none; transition: opacity .15s; }
.ccp-fieldset.ccp-busy { opacity: .6; }

/* A setting is a row: what it is on the left, its control on the right */
.ccp-field {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4px 40px; align-items: start;
  padding: 20px 0 0; margin-top: 20px; border-top: 1px solid var(--cca-line); min-width: 0;
}
.ccp-card-title + .ccp-field, .ccp-card-note + .ccp-field, .ccp-install + .ccp-field { border-top: 0; margin-top: 4px; }
.ccp-page-head + .ccp-field { border-top: 0; margin-top: 0; }
.ccp-field > * { grid-column: 2; min-width: 0; }
.ccp-field > .ccp-field-head { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; padding-top: 10px; }
.ccp-field > .ccp-help { grid-column: 1; grid-row: 2 / span 4; margin: 0; }
.ccp-label { font-weight: 700; font-size: 15px; color: var(--cca-ink); }
.ccp-flag { font-size: 11.5px; font-weight: 600; color: var(--ccp-info-ink); background: var(--ccp-info); border-radius: 999px; padding: 1px 9px; }

.ccp-input { display: block; width: 100%; min-height: 44px; padding: 9px 14px; background: var(--cca-surface); border: 1px solid var(--ccp-field-border); border-radius: var(--cca-radius-control); transition: border-color .15s, box-shadow .15s; }
.ccp-input:hover:not(:disabled) { border-color: var(--cca-ink-3); }
.ccp-input:focus { outline: 0; border-color: var(--cca-ink); box-shadow: 0 0 0 3px rgba(43, 42, 40, .12); }
.ccp-input::placeholder { color: var(--cca-ink-3); }
.ccp-input-short { max-width: 240px; }
.ccp-area { resize: vertical; line-height: 1.5; }
.ccp-mono { font: 13px/1.55 var(--ccp-mono) !important; white-space: pre; overflow: auto; }
.ccp-input:disabled { background: var(--ccp-soft); color: var(--cca-ink-2); border-color: var(--cca-border); }
.ccp-invalid .ccp-input { border-color: var(--cca-bad-ink); }
select.ccp-input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236E6B66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }

.ccp-color { display: flex; align-items: center; gap: 10px; }
.ccp-swatch { flex: none; width: 44px; height: 44px; border-radius: var(--cca-radius-control); box-shadow: inset 0 0 0 1px rgba(16, 16, 16, .15); }
/* No colour to show: a line across the square */
.ccp-swatch-none { background-image: linear-gradient(to top right, transparent 46%, var(--cca-ink-3) 47%, var(--cca-ink-3) 53%, transparent 54%); }

/* A switch: a track with a knob, and the word On or Off next to it */
.ccp-switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.ccp-switch-input {
  appearance: none; -webkit-appearance: none; flex: none; position: relative;
  width: 46px; height: 28px; margin: 0; border-radius: 999px; background: #CFCAC2; cursor: pointer;
  transition: background-color .15s;
}
.ccp-switch-input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s;
}
.ccp-switch-input:checked { background: #1F8A5C; }
.ccp-switch-input:checked::after { transform: translateX(18px); }
.ccp-switch-input:disabled { opacity: .5; cursor: default; }
.ccp-switch-word { font-size: 14px; font-weight: 600; min-width: 2em; color: var(--cca-ink-2); }
.ccp-switch-input:checked + .ccp-switch-word { color: var(--cca-good-ink); }

.ccp-readonly { padding: 11px 0; overflow-wrap: anywhere; white-space: pre-wrap; font-family: var(--ccp-mono); font-size: 13px; }
.ccp-help { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--cca-ink-2); }

/* The default of a field. A field with no value of its own shows the default text, with the word "Default" at
   its name. A field with its own text has a closed part with the default, and the way back to it */
.ccp-default-tag { font-size: 11.5px; font-weight: 600; color: var(--cca-ink-2); background: var(--cca-tag); border-radius: 999px; padding: 1px 9px; }
.ccp-default-tools { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 16px; margin: 8px 0 0; font-size: 13px; }
.ccp-default { flex: 1 1 auto; min-width: 0; color: var(--cca-ink-2); }
.ccp-default-summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; border-radius: 4px; }
.ccp-default-summary::-webkit-details-marker { display: none; }
.ccp-default-summary::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent currentColor; transition: transform .15s; }
.ccp-default[open] > .ccp-default-summary::before { transform: rotate(90deg); }
.ccp-default-summary:hover { color: var(--cca-ink); }
.ccp-default-use { flex: none; }
.ccp-default-text { margin-top: 8px; padding: 10px 14px; background: var(--ccp-soft); border-radius: var(--cca-radius-control); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; }
.ccp-locked { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; color: var(--cca-ink-3); }
.ccp-locked::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7A5 5 0 0 0 7 7v2H5v12h14V9zm-8-2a3 3 0 0 1 6 0v2H9z'/%3E%3C/svg%3E") center / 13px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7A5 5 0 0 0 7 7v2H5v12h14V9zm-8-2a3 3 0 0 1 6 0v2H9z'/%3E%3C/svg%3E") center / 13px no-repeat; }
/* An error of a field: a quiet line of the size of the help text. The red border of the field is the mark */
.ccp-field-error { margin: 6px 0 0; font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--cca-bad-ink); overflow-wrap: anywhere; }
.ccp-shell-admin .ccp-field-error { font-size: 12.5px; }

/* The page "Getting started": the steps of a new installation */
.ccp-setup { list-style: none; margin: 18px 0 0; padding: 0; }
.ccp-setup-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 16px; padding: 18px 0; border-top: 1px solid var(--cca-line); }
.ccp-setup-mark { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: var(--cca-tag); color: var(--cca-ink-2); }
.ccp-setup-done .ccp-setup-mark { background: var(--cca-good); color: var(--cca-good-ink); }
.ccp-setup-problem .ccp-setup-mark { background: var(--cca-bad); color: var(--cca-bad-ink); }
.ccp-setup-title { margin: 5px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--cca-ink); }
.ccp-setup-done .ccp-setup-title { color: var(--cca-ink-2); font-weight: 500; }
.ccp-setup-line { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--cca-ink-2); max-width: 78ch; }
.ccp-setup-action { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.ccp-setup-body .ccp-install-box, .ccp-setup-body .ccp-notices, .ccp-setup-body .ccp-notice { margin-top: 12px; }

/* The page "Snippets": a text to copy, and a list of files */
.ccp-snippet { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--cca-line); border-radius: 12px; background: var(--cca-bg, transparent); font: 12.5px/1.6 var(--ccp-mono); color: var(--cca-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ccp-snippet-note { margin-top: 12px; }
.ccp-snippet-files { list-style: none; margin: 14px 0 0; padding: 0; }
.ccp-snippet-files li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--cca-line); }
.ccp-snippet-what { flex: 1 1 240px; font-size: 13.5px; color: var(--cca-ink-2); }

/* The short form for a new client */
.ccp-new-form { max-width: 880px; }

/* ------------------------- the changes and "Save changes", under each page */

/* A card of its own under the cards of the page, as wide as they are. It does not move with the window */
.ccp-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 16px 0 0; padding: 14px 16px 14px 28px;
  background: var(--cca-surface); border: 1px solid var(--cca-line); border-radius: var(--cca-radius); box-shadow: var(--ccp-shadow);
}
.ccp-bar-count { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--cca-ink); white-space: nowrap; }
.ccp-bar-count::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D97706; }
/* Nothing to save */
.ccp-bar-idle .ccp-bar-count { font-weight: 400; color: var(--cca-ink-3); }
.ccp-bar-idle .ccp-bar-count::before { content: none; }
.ccp-bar-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ccp .ccp-bar .ccp-btn { min-height: 40px; }
/* The form for a new client has its buttons at its end, with no card */
.ccp-new-form .ccp-bar { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.ccp-new-form .ccp-bar-count::before { content: none; }

/* -------------------------------------------- the content of the assistant */

/* A few numbers as tiles, then the scrapes as a table */
.ccp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.ccp-fact { min-width: 0; padding: 16px 18px; border-radius: 14px; background: var(--cca-surface); border: 1px solid var(--cca-line); }
.ccp-fact-label { font-size: 13px; font-weight: 400; color: var(--cca-ink-2); }
.ccp-fact-value { margin: 4px 0 0; }
.ccp-fact-main { display: block; font-size: 32px; font-weight: 300; letter-spacing: -.02em; line-height: 1.15; color: var(--cca-ink); }
.ccp-fact[data-fact="last"] .ccp-fact-main, .ccp-fact[data-fact="active"] .ccp-fact-main { font-size: 20px; line-height: 1.84; font-weight: 400; letter-spacing: -.01em; }
.ccp-fact-note { display: block; margin-top: 2px; font-size: 12.5px; color: var(--cca-ink-3); }
.ccp-jobs th[scope="row"] { font-weight: 400; }
.ccp-jobs th, .ccp-jobs td { white-space: nowrap; }
.ccp-jobs td.ccp-job-notes { white-space: normal; min-width: 150px; }
.ccp-job-notes { color: var(--cca-ink-2); font-size: 13px; white-space: normal; min-width: 160px; }
.ccp-content .ccp-block-title { margin: 24px 0 6px; font-size: 15px; font-weight: 700; }

/* ------------------------------------------------------------------ staff */

.ccp-details { padding: 0; }
.ccp-summary { padding: 18px 28px; cursor: pointer; border-radius: var(--cca-radius); }
.ccp-summary:hover { background: var(--ccp-soft); }
.ccp-details-body { padding: 0 28px 20px; }
.ccp-block-title { font-size: 13px; font-weight: 700; margin: 14px 0 0; }
.ccp-state-block .ccp-notice { margin-top: 6px; }

.ccp-table-wrap { overflow-x: auto; }
.ccp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ccp-table th, .ccp-table td { text-align: left; vertical-align: middle; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--cca-line); }
.ccp-table thead th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cca-ink-3); white-space: nowrap; padding-top: 10px; padding-bottom: 10px; }
.ccp-table tbody tr:last-child th, .ccp-table tbody tr:last-child td { border-bottom: 0; }
.ccp-table tbody th { font-weight: 600; }

/* ------------------------------------------------ inside the Core dna admin */

/* The admin has the head, the ground and the space at the sides, and its own font.
   The main action has the red of the admin's buttons */
.ccp-shell-admin {
  --cca-font: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cca-accent: #EE1E3C; --cca-accent-dark: #C8102E;
  --cca-ink: #1F1F1F; --cca-ink-2: #5E5E5E; --cca-ink-3: #8A8A8A;
  --cca-line: #ECECEC; --cca-tag: #F0F0F0; --cca-border: #E2E2E2; --ccp-field-border: #D0D0D0;
  --ccp-soft: #FAFAFA; --ccp-hover: #F5F5F5; --ccp-brand: #EE1E3C;
  --ccp-top: 84px; --ccp-lift: 0px; --ccp-drawer: #F4F5F7;
  max-width: 1320px; margin: 0; padding-left: 0; padding-right: 0;
  font-size: 14px; line-height: 1.45;
}
.ccp-shell-admin .ccp-layout { margin-top: 20px; gap: 0 28px; grid-template-columns: 236px minmax(0, 1fr); }
.ccp-shell-admin .ccp-page-name { margin-top: 4px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.ccp-shell-admin .ccp-page-title { font-size: 26px; font-weight: 400; letter-spacing: -.015em; }
.ccp-shell-admin .ccp-page-head { padding: 2px 0 16px; }
.ccp-shell-admin .ccp-page-lead { font-size: 14px; }
.ccp-shell-admin .ccp-page-kicker { font-size: 12px; }
.ccp-shell-admin .ccp-bar { padding: 12px 14px 12px 24px; }
.ccp-shell-admin .ccp-item-title { font-size: 14.5px; font-weight: 500; }
.ccp-shell-admin .ccp-mark { width: 40px; height: 40px; border-radius: 12px; }
.ccp-shell-admin .ccp-tab { font-size: 14px; min-height: 34px; }
.ccp-shell-admin .ccp-menu-title { font-size: 14px; font-weight: 500; min-height: 38px; }
.ccp-shell-admin .ccp-tab-on { font-weight: 500; }
.ccp-shell-admin .ccp-label { font-size: 14px; font-weight: 500; }
.ccp-shell-admin .ccp-card-title { font-size: 16px; font-weight: 500; }
.ccp-shell-admin .ccp-card { padding: 20px 24px; }
.ccp-shell-admin .ccp-help { font-size: 12.5px; }
.ccp-shell-admin .ccp-input { min-height: 40px; }
.ccp-shell-admin .ccp-fact-main { font-size: 26px; font-weight: 500; }
.ccp-shell-admin .ccp-progress-large .ccp-progress-title { font-size: 20px; font-weight: 500; }
.ccp-shell-admin .ccp-btn { font-weight: 500; }

/* ------------------------------------------------------------------ phone */

/* A narrow window: the menu, with the two panels under it, is behind the button of the menu. It comes in from
   the left, over the page, and goes away when a person selects a page */
@media (max-width: 980px) {
  .ccp { padding-left: 24px; padding-right: 24px; }
  .ccp-layout, .ccp-shell-admin .ccp-layout { display: block; margin-top: 20px; }
  .ccp-menu-button { display: inline-flex; }
  .ccp-menu-row { display: block; }
  .ccp-side {
    position: fixed; z-index: 1001; top: 0; bottom: 0; left: 0;
    width: 330px; max-width: 88vw; max-height: none; padding: 12px 14px 24px;
    background: var(--ccp-drawer); box-shadow: 0 0 48px rgba(0, 0, 0, .2);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s;
  }
  .ccp-nav-open .ccp-side { transform: none; visibility: visible; transition: transform .22s ease; }
  .ccp-scrim { display: block; position: fixed; z-index: 1000; top: 0; right: 0; bottom: 0; left: 0; background: rgba(26, 26, 26, .42); }
  .ccp-side-top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 2px 0 8px; }
  .ccp-side-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cca-ink-3); }
  .ccp .ccp-side-close { width: 40px; height: 40px; padding: 0 0 3px; background: none; border: 0; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--cca-ink); }
  .ccp-side-close:hover { background: var(--ccp-hover); }
  .ccp-tabs { flex: none; min-height: 0; overflow: visible; }
  .ccp-head { border-radius: 28px; padding: 10px 12px 10px 14px; }
  .ccp-head-main { flex-wrap: nowrap; gap: 6px 12px; }
  .ccp-head .ccp-title { padding-left: 12px; white-space: nowrap; }
  .ccp-head-client { padding-left: 12px; }
}

/* A setting is one column: its name, its control, its help */
@media (max-width: 720px) {
  .ccp-client { align-items: flex-start; }
  .ccp-links { justify-content: flex-start; }
  .ccp-field { display: block; }
  .ccp-field > .ccp-field-head { padding-top: 0; margin-bottom: 6px; }
  .ccp-field > .ccp-help { margin-top: 6px; }
  .ccp-page-title { font-size: 28px; }
  .ccp-head-client { display: none; }
  .ccp-person-role { display: none; }
}

@media (max-width: 560px) {
  .ccp { padding: 0 12px 48px; }
  .ccp-head { top: 8px; margin-top: 8px; }
  .ccp-brand-logo { height: 28px; }
  .ccp-head .ccp-title { display: none; }
  .ccp-person { display: none; }
  .ccp-card { padding: 18px 16px; }
  .ccp-bar { padding: 14px 16px; }
  .ccp-login, .ccp-failure { margin-top: 24px; padding: 24px; }
  .ccp-input-short { max-width: none; }
  .ccp-bar-buttons { flex: 1 1 auto; justify-content: flex-end; }

  /* The list of clients and the scrapes: each row is a block (each value says what it is with its own words) */
  .ccp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ccp-table, .ccp-table tbody, .ccp-table tr, .ccp-table th, .ccp-table td { display: block; }
  .ccp-table tr { padding: 10px 0; border-bottom: 1px solid var(--cca-line); }
  .ccp-table tbody tr:last-child { border-bottom: 0; }
  .ccp-table th, .ccp-table td { border: 0; padding: 2px 0; }
  .ccp-list { padding: 6px 16px; }
  .ccp-list .ccp-table th:first-child, .ccp-list .ccp-table td:first-child { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ccp-fieldset, .ccp-btn, .ccp-input, .ccp-switch-input, .ccp-switch-input::after, .ccp-tab, .ccp-ring { transition: none; }
  .ccp-loading::before, .ccp-ring-turning { animation-duration: 3s; }
  .ccp-step-now::before, .ccp-progress-indexing .ccp-ring, .ccp-progress-queued .ccp-ring { animation: none; }
}
/* After an install that the site refused for the login: the way to a new login, under the notice */
.ccp-install-login { margin: 10px 0 0; }
/* An install that asks nothing of the person: the button at the start of the row */
.ccp-install-row-bare { justify-content: flex-start; }
/* The form of a new client: the values that are made from the three answers, as one quieter part */
.ccp-new-derived { margin-top: 22px; padding: 4px 18px 6px; border: 1px solid var(--cca-line); border-radius: 12px; background: var(--cca-bg, transparent); }
.ccp-new-derived-title { margin: 14px 0 0; font-size: 13px; color: var(--cca-ink-2); }
