.contact-source-screen {
  background: #eff8ff;
  color: #08245c;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.contact-source-screen .ix-status {
  background: #fff;
}

.contact-source-toolbar {
  height: 57px;
  padding: 0 10px 0 34px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px 40px;
  align-items: start;
  background: #fff;
}

.contact-source-toolbar.search {
  grid-template-columns: 40px minmax(0, 1fr) 40px;
}

.contact-source-toolbar button {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 4px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: inherit;
  cursor: pointer;
}

.contact-source-toolbar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #2878f0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-source-toolbar [data-act="back"] svg {
  stroke: #263445;
}

.contact-source-toolbar h1 {
  min-width: 0;
  margin: 2px 0 0;
  color: #08245c;
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-source-search-btn {
  justify-self: end;
  margin-right: 14px !important;
}

.contact-source-print {
  justify-self: end;
}

.contact-source-toolbar button:disabled {
  opacity: .5;
  cursor: default;
}

.contact-source-search {
  min-width: 0;
  height: 40px;
  margin: 0 8px;
  padding: 8px 12px;
  border-radius: 16px;
  background: #eff8ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-source-search span,
.contact-source-search button {
  flex: 0 0 auto;
}

.contact-source-search span svg {
  stroke: #7c8796;
}

.contact-source-search input {
  min-width: 0;
  flex: 1;
  height: 24px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #08245c;
  font-size: 14px;
  font-weight: 500;
}

.contact-source-search input::placeholder {
  color: #949fad;
}

.contact-source-search [data-act="closeSearch"] {
  width: 24px;
  height: 24px;
  padding: 0;
}

.contact-source-search .fill {
  fill: #949fad;
  stroke: #949fad;
}

.contact-source-search [data-act="closeSearch"] path:not(.fill) {
  stroke: #fdfdfd;
  stroke-width: 1.5;
}

.contact-source-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 0 16px;
  background: #eff8ff;
}

.contact-print-bar + .contact-source-list,
.contact-source-list:has(+ .contact-print-bar) {
  padding-bottom: 146px;
}

.contact-source-section {
  margin: 0 0 8px;
}

.contact-source-section > header {
  min-height: 44px;
  padding: 12px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-source-section > header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-source-section > header b {
  color: #175cd3;
  font-size: 16px;
  line-height: 22px;
  font-weight: 800;
}

.contact-source-section > header small {
  color: #78869b;
  font-size: 14px;
}

.contact-source-section > header button {
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 16px;
  background: #eff8ff;
  color: #2878f0;
  font-size: 12px;
  box-shadow: inset 0 -1px 2px rgba(83, 177, 253, .38);
}

.contact-source-row {
  width: calc(100% - 32px);
  min-height: 66px;
  margin: 0 16px 8px;
  padding: 4px 12px 4px 16px;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: #08245c;
  font: inherit;
  cursor: pointer;
}

.contact-avatar {
  width: 50px;
  height: 50px;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.contact-avatar svg {
  width: 42px;
  height: 42px;
  fill: #b2ddff;
  stroke: none;
}

.contact-copy {
  min-width: 0;
}

.contact-copy b {
  display: block;
  overflow: hidden;
  color: #08245c;
  font-size: 16px;
  line-height: 21px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contact-copy small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #78869b;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contact-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #e0e0e0;
  display: grid;
  place-items: center;
}

.contact-check.selected {
  background: #1570ef;
  box-shadow: none;
}

.contact-check svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 2.4;
}

.contact-source-permission,
.contact-source-empty {
  flex: 1;
  padding: 0 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  background: #eff8ff;
}

.contact-source-permission img,
.contact-source-empty img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.contact-source-permission h2,
.contact-source-empty h2 {
  margin: 24px 0 0;
  color: #08245c;
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
}

.contact-source-permission p {
  margin: 6px 0 24px;
  color: #78869b;
  font-size: 16px;
  line-height: 22px;
}

.contact-source-permission button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #69b7f4, #3474f1);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(52, 116, 241, .22);
}

.contact-source-empty.inline {
  min-height: 420px;
}

.contact-print-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 12px 16px;
  background: #fff;
}

.contact-ready {
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #12b76a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.contact-ready svg {
  width: 18px;
  height: 18px;
  stroke: #12b76a;
  stroke-width: 2;
  fill: none;
}

.contact-ready svg path {
  fill: none;
  stroke: #12b76a;
}

.contact-print-bar > button {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #69b7f4, #3474f1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(52, 116, 241, .22);
}

.contact-print-bar > button svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
}

.contact-print-bar > button svg path {
  fill: none;
  stroke: #fff;
}

.contact-source-progress {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .7);
}

.contact-source-progress div {
  width: 72px;
  height: 72px;
  border: 5px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.contact-system-permission {
  background: rgba(15, 23, 42, .18);
}

.contact-system-permission main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 26px;
}

.contact-system-permission section {
  width: 100%;
  max-width: 360px;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(15, 23, 42, .22);
}

.contact-system-permission h2 {
  margin: 0;
  padding: 22px 22px 12px;
  color: #08245c;
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
}

.contact-system-permission button {
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-top: 1px solid #eef2f7;
  background: #fff;
  color: #2878f0;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
}

/* Reskin: Contacts now reads as a clean print workspace instead of the older generic list. */
.contact-source-screen {
  --contact-blue: #1570ef;
  --contact-cyan: #0ea5e9;
  --contact-ink: #08245c;
  --contact-muted: #60728d;
  --contact-bg: #f3faff;
  --contact-line: #dcebf8;
  background:
    linear-gradient(180deg, #f7fcff 0%, var(--contact-bg) 46%, #eef8ff 100%);
  color: var(--contact-ink);
}

.contact-source-toolbar {
  height: 60px;
  padding: 2px 12px 0 32px;
  grid-template-columns: 40px minmax(0, 1fr) 44px 44px;
  align-items: center;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 rgba(220,235,248,.92);
}

.contact-source-toolbar.search {
  grid-template-columns: 40px minmax(0, 1fr) 44px;
}

#interactive .contact-source-toolbar > button {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 14px !important;
}

.contact-source-toolbar button:active {
  background: #edf7ff;
}

.contact-source-toolbar svg {
  width: 24px;
  height: 24px;
  stroke: var(--contact-blue);
  stroke-width: 1.8;
}

.contact-source-toolbar [data-act="back"] svg {
  stroke: #263445;
}

.contact-source-toolbar h1 {
  margin: 0 0 0 2px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0;
}

.contact-source-search-btn {
  margin-right: 6px !important;
}

.contact-source-print:not(:disabled) {
  background: #edf7ff !important;
  color: var(--contact-blue);
}

.contact-source-toolbar button:disabled {
  opacity: .44;
}

.contact-source-search {
  height: 42px;
  margin: 0 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f3f9ff;
  box-shadow: inset 0 0 0 1px var(--contact-line);
}

.contact-source-search input {
  height: 26px;
  font-size: 14px;
}

.contact-source-list {
  padding: 14px 0 18px;
  background: transparent;
}

.contact-source-section {
  margin: 0 0 12px;
}

.contact-source-section > header {
  min-height: 42px;
  padding: 10px 24px 8px;
}

.contact-source-section > header span {
  min-width: 0;
  gap: 7px;
}

.contact-source-section > header b {
  color: var(--contact-blue);
  font-size: 16px;
  line-height: 22px;
}

.contact-source-section > header small {
  color: #6d7f96;
  font-size: 14px;
}

.contact-source-section > header button {
  min-width: 70px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--contact-blue);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #d8e9fb;
}

.contact-source-row {
  width: calc(100% - 40px);
  min-height: 70px;
  margin: 0 20px 10px;
  padding: 8px 14px;
  border: 1px solid rgba(216, 233, 251, .9);
  border-radius: 18px;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.9));
  box-shadow: 0 8px 20px rgba(49, 87, 124, .06);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.contact-source-row:active {
  transform: scale(.985);
}

.contact-source-row:has(.contact-check.selected) {
  border-color: rgba(21,112,239,.48);
  background: linear-gradient(180deg, #fff, #f3f9ff);
}

.contact-avatar {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--avatar) 18%, #fff), color-mix(in srgb, var(--avatar) 9%, #fff));
  color: var(--avatar);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--avatar) 28%, #fff);
}

.contact-avatar svg {
  display: none;
}

.contact-copy b {
  color: var(--contact-ink);
  font-size: 16px;
  line-height: 21px;
  font-weight: 800;
}

.contact-copy small {
  margin-top: 3px;
  color: var(--contact-muted);
  font-size: 14px;
  line-height: 18px;
}

.contact-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #d8dee6;
}

.contact-check.selected {
  background: var(--contact-blue);
  box-shadow: 0 6px 12px rgba(21,112,239,.22);
}

.contact-check svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
}

.contact-source-permission,
.contact-source-empty {
  padding: 0 22px 88px;
  background:
    radial-gradient(circle at 50% 30%, rgba(14,165,233,.12), transparent 34%),
    transparent;
}

.contact-permission-card {
  width: 100%;
  max-width: 360px;
  padding: 34px 22px 28px;
  border-radius: 30px;
  background: rgba(255,255,255,.76);
  box-shadow: inset 0 0 0 1px rgba(216,233,251,.9);
}

.contact-permission-art {
  width: 122px;
  height: 122px;
  margin: 0 auto;
  border-radius: 34px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,.95), transparent 46%),
    linear-gradient(180deg, #e7f5ff, #f5fbff);
  box-shadow: inset 0 0 0 1px #dcebf8;
}

.contact-source-permission img,
.contact-source-empty img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.contact-source-permission h2,
.contact-source-empty h2 {
  margin: 22px 0 0;
  font-size: 24px;
  line-height: 30px;
  font-weight: 900;
}

.contact-source-permission p {
  max-width: 314px;
  margin: 8px auto 0;
  color: var(--contact-muted);
  font-size: 16px;
  line-height: 22px;
}

.contact-source-permission > button {
  width: min(100%, 390px);
  min-height: 58px;
  margin-top: 26px;
  border-radius: 18px;
  background: var(--contact-blue);
  font-size: 19px;
  box-shadow: 0 14px 26px rgba(21,112,239,.20);
}

.contact-source-permission > button:active {
  transform: scale(.985);
}

.contact-print-bar {
  padding: 12px 18px 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 -12px 28px rgba(49,87,124,.09);
}

.contact-ready {
  min-height: 32px;
  padding: 6px 12px;
  background: #eefbf6;
  color: #059669;
}

.contact-ready svg,
.contact-ready svg path {
  stroke: #059669;
}

.contact-print-bar > button {
  min-height: 56px;
  border-radius: 18px;
  background: var(--contact-blue);
  font-size: 19px;
  box-shadow: 0 14px 26px rgba(21,112,239,.20);
}
