/* Chatzilla-only Manager presentation. Shared Tarot output is unchanged. */
html body.cz-manager, html body.cz-manager .pusher, html body.cz-manager .page-content {background:#0b1028!important;color:#eef2ff!important;}
html body.cz-manager .ui.menu,html body.cz-manager .ui.sidebar,html body.cz-manager .page-footer {background:#080c22!important;color:#eef2ff!important;border-color:#343b60!important;}
html body.cz-manager .ui.menu .item,html body.cz-manager .ui.header,html body.cz-manager .page-title {color:#eef2ff!important;}
html body.cz-manager #manager-studio-login,html body.cz-manager .container-login_form,html body.cz-manager .container-join_form {background:#151a36!important;color:#eef2ff!important;border:1px solid #343b60!important;border-radius:16px;max-width:760px;box-sizing:border-box;}
html body.cz-manager #manager-studio-login a,html body.cz-manager .container-join_form a,html body.cz-manager .page-content a {color:#8ceaff!important;}
html body.cz-manager .ui.primary.button,html body.cz-manager #manager-studio-login .ui.primary.button {background:#80e7ff!important;border-color:#80e7ff!important;color:#070b20!important;border-radius:24px;}
html body.cz-manager .ui.form .field>label,html body.cz-manager .container-join_form label {color:#eef2ff!important;}
html body.cz-manager .ui.form input[type=text],html body.cz-manager .ui.form input[type=password],html body.cz-manager .ui.form input[type=email],html body.cz-manager .ui.form textarea {background:#0b1028!important;color:#eef2ff!important;border-color:#454f7c!important;}
html body.cz-manager table.form,html body.cz-manager table.form td,html body.cz-manager table.form th {background:#151a36;color:#eef2ff;border-color:#343b60;}
html body.cz-manager .item.logo img {width:auto;max-width:220px;max-height:44px;object-fit:contain;}
@media(max-width:767px){html body.cz-manager .item.logo img{max-width:170px;max-height:34px;}html body.cz-manager .container-login_form,html body.cz-manager .container-join_form{width:calc(100% - 24px);padding:18px;}}

/* Chatzilla Manager content surfaces and broadcaster invitation. */
html body.cz-manager .ui.segment,html body.cz-manager .ui.table {background:#151a36;color:#eef2ff;border-color:#343b60;}
html body.cz-manager .ui.table thead th {background:#202847;color:#eef2ff;border-color:#343b60;}
html body.cz-manager .ui.form select {background:#0b1028;color:#eef2ff;border-color:#454f7c;}
html body.cz-manager .container-join_form .manager-role-option {background:#202847;border-color:#454f7c;}
html body.cz-manager .container-join_form .manager-role-option.is-active {background:#26214a;border-color:#5de1ff;}
html body.cz-manager .container-join_form .manager-role-option-title {color:#eef2ff;}
html body.cz-manager .container-join_form .manager-role-option-note {color:#b8bfd8;}
html body.cz-manager .reader-invite {background:#151a36;border-color:#343b60;color:#eef2ff;}
html body.cz-manager .reader-invite h2,html body.cz-manager .reader-invite .eyebrow {color:#5de1ff!important;}
html body.cz-manager .reader-invite svg {display:none;}
html body.cz-manager .reader-invite::before {content:"";width:150px;height:100px;flex:0 0 150px;background:url('/templates/chatzilla_flat/english/images/chatzilla-brand.svg') center/contain no-repeat;}
@media(max-width:767px){html body.cz-manager .reader-invite::before{width:90px;flex-basis:90px;}}

/* Chatzilla consistent title banners, 2026-09-20. */
html body.cz-manager .ui.header.page-title {
  color:#fff!important;
  background:linear-gradient(90deg,rgba(7,10,34,.96),rgba(7,10,34,.77)),url('/templates/chatzilla_flat/english/images/chatzilla-community.png') center 40% / cover no-repeat!important;
  border:1px solid #34385b!important;
  border-radius:1rem;
  padding:1.25rem!important;
  margin-bottom:1.25rem!important;
  box-sizing:border-box;
  overflow-wrap:break-word;
}
@media(max-width:767px){html body.cz-manager .ui.header.page-title{padding:1rem!important;}}

/* Match manager title banners to the form cards below them. */
html body.cz-manager .page-content .ui.container:has(> table.contentdelimiter table.form, > .container-login_form, > .container-join_form, > .container-forgot_password) > h1.ui.header.page-title {
  width: 760px !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Chatzilla Manager welcome palette. */
html body.cz-manager #admin-area-faqs,html body.cz-manager #welcome-menu,html body.cz-manager #funds-distribution{background:#151a36!important;color:#eef2ff!important;border-color:#343b60!important;box-shadow:none!important;}
html body.cz-manager #admin-area-faqs h2,html body.cz-manager #welcome-menu h3,html body.cz-manager #funds-distribution h2{color:#8ceaff!important;border-color:#343b60!important;}
html body.cz-manager #admin-area-faqs small{color:#b8bfd8!important;}
html body.cz-manager #admin-area-faqs a.faq-button{background:#80e7ff!important;color:#070b20!important;border-color:#80e7ff!important;}
html body.cz-manager #admin-area-faqs a.faq-button:hover{background:#b4f3ff!important;}
html body.cz-manager #admin-area-faqs button:disabled{background:#252d49!important;color:#b8bfd8!important;border-color:#454f7c!important;}
html body.cz-manager #welcome-menu .ui.list>.item{background:#202847!important;border-color:#454f7c!important;color:#eef2ff!important;box-shadow:none!important;}
html body.cz-manager #welcome-menu .ui.list>.item:hover{background:#2a3657!important;border-color:#80e7ff!important;}
html body.cz-manager #welcome-menu .description{color:#eef2ff!important;}
html body.cz-manager #admin-area-faqs a:focus-visible,html body.cz-manager #welcome-menu a:focus-visible{outline:3px solid #80e7ff!important;outline-offset:3px;}
html body.cz-manager #funds-distribution table{background:#202847!important;color:#eef2ff!important;}
html body.cz-manager #funds-distribution th{background:#10162e!important;color:#8ceaff!important;}
html body.cz-manager #funds-distribution th,html body.cz-manager #funds-distribution td{border-color:#454f7c!important;}
html body.cz-manager #funds-distribution .funds-total,html body.cz-manager #funds-distribution .funds-total th{background:#263755!important;color:#eef2ff!important;}

/* 2026-09-24: consistent Chatzilla manager form layout, including legacy tables.
   Keep report/data tables full width; only table.form is a bounded form card. */
html body.cz-manager table.contentdelimiter {
  background:transparent;
  color:#eef2ff;
}
html body.cz-manager .page-content table.form {
  width:100%!important;
  max-width:760px;
  margin:0 auto 1rem!important;
  table-layout:fixed;
  box-sizing:border-box;
}
html body.cz-manager .page-content table.form>tbody>tr>td,
html body.cz-manager .page-content table.form>tbody>tr>th {
  overflow-wrap:anywhere;
  box-sizing:border-box;
}
html body.cz-manager .page-content table.form>tbody>tr>td.fieldheader {
  width:34%;
}
html body.cz-manager .page-content table.form input:is([type=text],[type=password],[type=email],[type=number],[type=url],[type=tel]),
html body.cz-manager .page-content table.form textarea,
html body.cz-manager .page-content table.form select {
  width:100%;
  max-width:100%!important;
  min-width:0;
  box-sizing:border-box;
}
html body.cz-manager .page-content td.contentdelimiter>form:has(table.form)+p {
  max-width:760px;
  margin:1rem auto;
  color:#b8bfd8;
}
@media(max-width:767px) {
  html body.cz-manager .page-content table.form,
  html body.cz-manager .page-content table.form>tbody,
  html body.cz-manager .page-content table.form>tbody>tr,
  html body.cz-manager .page-content table.form>tbody>tr>td,
  html body.cz-manager .page-content table.form>tbody>tr>th {
    display:block!important;
    width:100%!important;
    min-width:0;
  }
  html body.cz-manager .page-content table.form>tbody>tr>td.fieldheader {
    padding-bottom:4px!important;
  }
  html body.cz-manager .page-content table.form input,
  html body.cz-manager .page-content table.form select,
  html body.cz-manager .page-content table.form textarea {font-size:16px;}
}

/* 2026-09-24: Domains rows contain Semantic UI list labels that otherwise remain dark on navy. */
html body.cz-manager .page-content table:has(#domainsCheckAll) .ui.list .header {color:#eef2ff!important;}
html body.cz-manager .page-content table:has(#domainsCheckAll) .ui.list .description {color:#b8bfd8!important;}

/* Chatzilla manager login choices; leave other hosted domains unchanged. */
html body.cz-manager #manager-studio-login .cz-login-primary-action {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
}
html body.cz-manager #manager-studio-login .cz-login-primary-action .ui.button {width:auto;}
html body.cz-manager #manager-studio-login .cz-login-or {
  color:#b8bfd8;
  font-weight:700;
  letter-spacing:.08em;
}

/* Keep the Google sign-in label black on its white button, including hover and focus. */
body a.google-btn .btn-text,
body a.google-btn:hover .btn-text,
body a.google-btn:focus .btn-text { color:#000 !important; }
