body.ebcrm-one {
  --one-ink: #14233d;
  --one-deep: #081830;
  --one-blue: #1a4276;
  --one-muted: #495d76;
  --one-line: #dfe6ef;
  --one-wash: #f3f6fa;
  --one-gold: #ebcb8e;
  --one-banner: url("eurobrit-one-banner.webp");
  color: var(--one-ink);
  background: linear-gradient(180deg, #edf2f9 0, #f6f8fc 30rem, #f8fafc 100%);
}
.ebcrm-one .ebcrm-client-shell {
  max-width: 87rem;
  padding: clamp(.75rem, 3.3vw, 2.65rem);
  margin-inline: auto;
}
.ebcrm-one .ebcrm-client-shell a { color: var(--one-blue); }
.ebcrm-one .ebcrm-client-shell :focus-visible { outline: 3px solid #3278bd; outline-offset: 3px; }
.ebcrm-one .ebcrm-client-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .78rem 1rem;
  padding: .95rem clamp(.8rem, 2.4vw, 1.45rem) .72rem;
  margin: 0 0 clamp(1rem, 2.3vw, 1.8rem);
  background: #fff;
  border: 1px solid var(--one-line);
  border-radius: 1.15rem;
  box-shadow: 0 6px 25px #172b4810;
}
.ebcrm-one .ebcrm-client-brand {
  align-self: start;
  width: fit-content;
  color: var(--one-ink);
  line-height: 1.04;
}
.ebcrm-one .ebcrm-brand-mark {
  flex: none;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid #19304c;
  border-radius: .82rem;
  background: linear-gradient(145deg, #254670, var(--one-deep));
  color: #f2d69c;
  font: 700 1.08rem/1 Georgia, serif;
}
.ebcrm-brand-lockup { display: grid; gap: .25rem; }
.ebcrm-brand-lockup strong { font-size: 1.28rem; letter-spacing: -.04em; }
.ebcrm-brand-lockup strong span { color: #815e26; }
.ebcrm-brand-lockup small { color: var(--one-muted); font-size: .72rem; font-weight: 650; }
.ebcrm-one .ebcrm-portal-nav {
  grid-column: 1 / -1;
  gap: .26rem .32rem;
  padding-top: .5rem;
  border-top: 1px solid #e8edf3;
}
.ebcrm-one .ebcrm-client-header:not(:has([data-ebcrm-nav-toggle])) .ebcrm-portal-nav {
  grid-column: 2;
  padding: 0;
  border: 0;
  justify-content: end;
}
.ebcrm-one .ebcrm-portal-nav a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.59rem;
  box-sizing: border-box;
  padding: .45rem .72rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  background: transparent;
  color: var(--one-muted);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
}
.ebcrm-one .ebcrm-portal-nav a:hover { background: #f0f4fa; color: var(--one-ink); }
.ebcrm-one .ebcrm-portal-nav a[aria-current="page"] { background: #e7effb; border-color: #d4e2f4; color: #183f72; }
.ebcrm-one .ebcrm-portal-nav .ebcrm-primary-link { background: var(--one-deep); color: #fff; }
.ebcrm-one .ebcrm-portal-nav .ebcrm-primary-link:hover { background: #1c3f6c; }
.ebcrm-one .ebcrm-portal-nav .ebcrm-nav-utility { margin-inline-start: auto; }
.ebcrm-one .ebcrm-portal-nav[hidden], .ebcrm-nav-toggle[hidden] { display: none; }
.ebcrm-nav-toggle {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .45rem .65rem;
  border: 1px solid var(--one-line);
  border-radius: .65rem;
  color: var(--one-ink);
  background: #f8fafd;
  font: 700 .9rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.ebcrm-nav-toggle-icon {
  width: .9rem;
  height: .65rem;
  border-block: 2px solid currentColor;
  position: relative;
}
.ebcrm-nav-toggle-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(50% - 1px);
  border-top: 2px solid currentColor;
}
.ebcrm-one .ebcrm-portal-heading { min-width: 0; }
.ebcrm-one .ebcrm-portal-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4.9vw, 4.35rem);
  font-weight: 760;
  letter-spacing: -.052em;
  line-height: 1.035;
  overflow-wrap: anywhere;
}
.ebcrm-one .ebcrm-portal-heading p {
  margin: .75rem 0 0;
  font-size: clamp(.97rem, 1.4vw, 1.16rem);
  line-height: 1.52;
}
.ebcrm-one .ebcrm-heading-banner, .ebcrm-one .ebcrm-heading-welcome {
  display: grid;
  align-items: center;
  isolation: isolate;
  min-height: clamp(13rem, 22vw, 20rem);
  padding: clamp(1.4rem, 4.65vw, 4rem);
  border: 1px solid #233b58;
  border-radius: 1.25rem;
  box-sizing: border-box;
  background: linear-gradient(90deg, #08182ef5 0%, #08182edb 34%, #08182e42 76%, #08182e1f 100%),
    var(--one-banner) 63% 56% / cover #112648;
  box-shadow: 0 16px 34px #101f3a18;
}
.ebcrm-one .ebcrm-heading-welcome {
  min-height: min(33rem, 68vh);
  align-content: end;
  background: linear-gradient(0deg, #08182efc 0%, #08182edb 48%, #0c1c3540 100%),
    var(--one-banner) 78% center / cover #112648;
}
.ebcrm-one .ebcrm-heading-banner h1,.ebcrm-one .ebcrm-heading-welcome h1 { color: #fff; }
.ebcrm-one .ebcrm-heading-banner p,.ebcrm-one .ebcrm-heading-welcome p { color: #e0eaf8; max-width: 31rem; }
.ebcrm-one .ebcrm-heading-copy::before {
  content: "";
  display: block;
  width: 2.1rem;
  height: 3px;
  border-radius: 9px;
  margin-bottom: .95rem;
  background: #ad8541;
}
.ebcrm-one .ebcrm-heading-banner .ebcrm-heading-copy::before,
.ebcrm-one .ebcrm-heading-welcome .ebcrm-heading-copy::before { background: var(--one-gold); }
.ebcrm-one .ebcrm-heading-compact { padding: clamp(.45rem, 1.9vw, 1.65rem) 0 0; }
.ebcrm-one .ebcrm-heading-compact h1 { font-size: clamp(1.84rem, 3.35vw, 3.05rem); }
.ebcrm-one .ebcrm-heading-compact p { color: var(--one-muted); }
.ebcrm-welcome-features {
  display: grid;
  gap: .6rem;
  padding: 1rem 0 0;
  margin: 1.2rem 0 0;
  list-style: none;
  border-top: 1px solid #bedaed46;
  color: #f0f5fb;
  font-size: .92rem;
}
.ebcrm-welcome-features li { display: flex; align-items: baseline; gap: .62rem; }
.ebcrm-welcome-features li::before { content: ""; flex: 0 0 .38rem; height: .38rem; background: var(--one-gold); border-radius: 100%; }
.ebcrm-one .ebcrm-one-signin {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(.9rem, 2.5vw, 2rem);
}
.ebcrm-one .ebcrm-one-signin > .ebcrm { margin: 0; max-width: none; width: 100%; }
.ebcrm-one .ebcrm-one-signin :is(.ebcrm-staff-login, .ebcrm-client-card) {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: clamp(1.35rem, 3.5vw, 3.15rem);
}
.ebcrm-one .ebcrm-one-signin h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); letter-spacing: -.04em; }
.ebcrm-one .ebcrm-one-signin input:not([type=hidden]) { max-width: none; }
.ebcrm-one .ebcrm-one-signin form { max-width: none; }
.ebcrm-one .ebcrm-one-signin button[type=submit], .ebcrm-one .ebcrm-one-signin input[type=submit] {
  width: 100%;
  min-height: 2.85rem;
  margin-top: .82rem;
  font-weight: 700;
}
.ebcrm-signin-help { color: var(--one-muted); font-size: .88rem; }
.ebcrm-one .ebcrm { --ink: var(--one-ink); --navy: var(--one-blue); --line: var(--one-line); --muted: var(--one-muted); --pale: #ecf2fb; }
.ebcrm-one :is(.ebcrm-client-card, .ebcrm-panel, .ebw-panel) {
  border: 1px solid var(--one-line);
  border-radius: 1.03rem;
  box-shadow: 0 4px 22px #132b4b0b;
}
.ebcrm-one .ebcrm-panel h2 { letter-spacing: -.033em; }
.ebcrm-one :is(.ebcrm-button, .ebw-button, .ebcrm-client-card button[type=submit], .ebcrm input[type=submit]) {
  border-radius: .65rem;
}
.ebcrm-one .ebcrm a.ebcrm-button:not(.ebcrm-quiet), .ebcrm-one .ebcrm a.ebcrm-button:not(.ebcrm-quiet):hover { color: #fff; }
.ebcrm-one .ebcrm a.ebcrm-button.ebcrm-quiet { color: var(--one-blue); }
.ebcrm-one .ebcrm-list-head { background: #edf2fa; color: var(--one-ink); }
.ebcrm-one .ebcrm-list .ebcrm-row:not(.ebcrm-list-head):hover { background: #f7f9fd; }
.ebcrm-one .ebcrm-tag { background: #eaf1fb; color: #244973; }
.ebcrm-one .ebcrm-thread { background-color: #f3f6fb; }
.ebcrm-one .ebcrm-message-mine { background: #e5eefb; border-color: #ceddf2; }
.ebcrm-one .ebcrm-message-delete button { color: #993248; }

@media (max-width: 52rem) {
  .ebcrm-one .ebcrm-client-header { gap: .65rem .35rem; }
  .ebcrm-one .ebcrm-portal-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ebcrm-one .ebcrm-client-header:not(:has([data-ebcrm-nav-toggle])) .ebcrm-portal-nav { display: flex; }
  .ebcrm-one .ebcrm-portal-nav .ebcrm-nav-utility { margin-inline-start: 0; }
  .ebcrm-one .ebcrm-portal-nav a { min-height: 2.75rem; }
}
@media (max-width: 43rem) {
  .ebcrm-one .ebcrm-one-signin { grid-template-columns: minmax(0, 1fr); }
  .ebcrm-one .ebcrm-heading-banner, .ebcrm-one .ebcrm-heading-welcome {
    min-height: 11rem;
    padding: 1.3rem 1.2rem;
    background-image: linear-gradient(90deg, #08182ef7 0%, #08182ede 56%, #08182e59 100%), var(--one-banner);
    background-position: 66% 53%;
  }
  .ebcrm-one .ebcrm-heading-welcome { min-height: 9.75rem; align-content: center; }
  .ebcrm-one .ebcrm-welcome-features { display: none; }
  .ebcrm-one .ebcrm-client-header:not(:has([data-ebcrm-nav-toggle])) .ebcrm-portal-nav a { padding-inline: .35rem; font-size: .78rem; }
  .ebcrm-one .ebcrm-client-split .ebcrm-client-card { order: initial; }
}

.ebcrm-phone-number {
  color: var(--one-ink);
  font-size: clamp(1.18rem, 2.5vw, 1.55rem);
  font-weight: 740;
  font-variant-numeric: tabular-nums;
}
.ebcrm-phone-log { list-style: none; padding: 0; margin: .8rem 0; }
.ebcrm-phone-log li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .85rem;
  flex-wrap: wrap;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
}
.ebcrm-phone-log small { display: block; color: var(--muted); }
.ebcrm-phone-log audio { min-width: min(15rem, 100%); max-width: 100%; }
.ebcrm [data-ebcrm-phone] [hidden] { display: none; }
.ebcrm [data-phone-recording] {
  margin-top: 1rem;
  padding: .85rem;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: .75rem;
}

.ebcrm [data-ebcrm-wa] [hidden] { display: none; }
.ebcrm-wa-layout {
  display: grid;
  grid-template-columns: minmax(14rem, .75fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(.75rem, 2.1vw, 1.55rem);
}
.ebcrm-wa-sidebar, .ebcrm-wa-conversation { min-width: 0; }
.ebcrm-wa-filters { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .55rem; }
.ebcrm-wa-filters a { padding: .35rem .55rem; border-radius: .5rem; font-size: .88rem; }
.ebcrm-wa-filters [aria-current="page"] { background: #e7effb; font-weight: 700; }
.ebcrm-wa-list { list-style: none; display: grid; margin: 0; padding: 0; }
.ebcrm-wa-list li + li { border-top: 1px solid var(--line); }
.ebcrm-one .ebcrm-wa-list a {
  display: flex; align-items: start; flex-wrap: wrap; gap: .3rem .6rem;
  padding: .62rem .45rem; border-radius: .5rem; min-height: 2.6rem; text-decoration: none;
}
.ebcrm-wa-list a strong { width: 100%; }
.ebcrm-one .ebcrm-wa-list a:hover, .ebcrm-one .ebcrm-wa-list [aria-current="page"] { background: #edf3fb; }
.ebcrm-wa-settings summary, .ebcrm-wa-assignment summary { font-weight: 700; cursor: pointer; }
.ebcrm-wa-conversation small { color: var(--muted); }
.ebcrm-wa-header { margin-bottom: .6rem; }
.ebcrm-wa-assignment { margin: .7rem 0 1rem; }
.ebcrm-wa-transcript {
  min-height: 9rem; max-height: clamp(14rem, 48vh, 32rem); overflow: auto;
  padding: .65rem; background: #f3f6fb; border: 1px solid var(--line); border-radius: .7rem;
}
.ebcrm-wa-message {
  box-sizing: border-box; width: fit-content; max-width: 90%; margin: .4rem 0 .55rem; padding: .55rem .7rem;
  border-radius: .7rem; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere;
}
.ebcrm-wa-message header { display: flex; flex-wrap: wrap; gap: .3rem .75rem; }
.ebcrm-wa-message p { margin: .4rem 0; white-space: pre-wrap; }
.ebcrm-wa-out, .ebcrm-wa-app { margin-left: auto; background: #e5f2ec; border-color: #cfe4db; }
.ebcrm-wa-audit { margin-inline: auto; color: var(--muted); background: transparent; font-size: .86rem; }
.ebcrm .ebcrm-wa-reply textarea { max-width: none; }
.ebcrm [data-wa-feedback]:empty { display: none; }
@media (max-width: 44rem) {
  .ebcrm-wa-layout { display: block; }
  .ebcrm-wa-sidebar { max-height: 19rem; overflow-y: auto; }
}
.ebcrm .ebcrm-booking-urgent {
	display: inline-block;
	width: fit-content;
	margin: 0.35rem 0;
	padding: 0.3rem 0.65rem;
	border-radius: 0.45rem;
	background: #fff0ef;
	color: #a72132;
	font-size: 0.85rem;
	font-weight: 700;
}

.ebcrm .ebcrm-row:has(.ebcrm-booking-urgent),
.ebcrm .ebcrm-report-table tr:has(.ebcrm-booking-urgent) {
	background: #fff5f4;
}

.ebcrm .ebcrm-attendance-meter {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.ebcrm .ebcrm-attendance-meter meter {
	width: min(6rem, 100%);
	height: 0.9rem;
	accent-color: #286b57;
}

.ebcrm #ebcrm-case-booking details,
.ebcrm #ebcrm-case-booking h3 {
	margin-top: 1rem;
}

.ebcrm #ebcrm-new-booking,
.ebcrm #ebcrm-case-booking,
.ebcrm #ebcrm-case-progress {
	scroll-margin-top: 6rem;
}
