#cef-chat {

  --chat-font: Arial, Helvetica, sans-serif;

  --chat-size: 16px;

  --chat-line-h: 20px;

  --chat-width: 58vw;

  --chat-max-width: 820px;

  --chat-lines: 12;

  --chat-text: #cfc7b5;

  --chat-muted: #898171;

  --chat-accent: #b46f2a;

  --chat-accent-2: #d19a4a;

  --chat-shadow: #000000;

  --chat-input-bg: rgba(12, 12, 11, 0.94);

  --chat-input-border: rgba(145, 132, 105, 0.44);



  z-index: 5;

  pointer-events: none;

}



#cef-chat.is-interactive,

#cef-chat.is-input-open,

#cef-chat.is-settings-open {

  pointer-events: auto;

}



#cef-chat .chat-root {

  position: absolute;

  left: 12px;

  top: 10px;

  width: var(--chat-width);

  max-width: var(--chat-max-width);

  font-family: var(--chat-font);

  font-size: var(--chat-size);

  font-weight: 400;

  line-height: var(--chat-line-h);

  color: var(--chat-text);

}



#cef-chat .chat-log-panel {

  background: transparent;

  border: none;

  box-shadow: none;

  opacity: 1;

  transition: opacity 0.45s ease;

}



#cef-chat.is-idle .chat-log-panel {

  opacity: 0.34;

}



#cef-chat.is-input-open .chat-log-panel,

#cef-chat.is-settings-open .chat-log-panel {

  opacity: 1;

}



#cef-chat .chat-signal-dot {

  width: 7px;

  height: 7px;

  border-radius: 999px;

  background: #b84a2d;

  box-shadow: 0 0 10px rgba(184, 74, 45, 0.75);

  flex: 0 0 auto;

}



#cef-chat .chat-log-wrap {

  position: relative;

  display: flex;

  flex-direction: column;

  height: calc(var(--chat-lines) * var(--chat-line-h) + 8px);

  min-height: calc(var(--chat-lines) * var(--chat-line-h) + 8px);

  max-height: calc(var(--chat-lines) * var(--chat-line-h) + 8px);

  padding: 4px 0 4px 4px;

  overflow-x: hidden;

  overflow-y: hidden;

  scroll-behavior: smooth;

  background: transparent;

  scrollbar-width: none;

  -ms-overflow-style: none;

}



#cef-chat.is-enabled .chat-log-wrap,

#cef-chat.is-input-open .chat-log-wrap,

#cef-chat.is-settings-open .chat-log-wrap {

  overflow-y: auto;

  pointer-events: auto;

}



#cef-chat .chat-log-wrap::-webkit-scrollbar {

  display: none;

  width: 0;

  height: 0;

}



#cef-chat .chat-log {

  margin: 0;

  margin-top: auto;

  padding: 0 8px 0 0;

  width: 100%;

  list-style: none;

  text-align: left;

}



#cef-chat .chat-line {

  margin: 0;

  padding: 0;

  min-height: var(--chat-line-h);

  word-break: break-word;

  white-space: pre-wrap;

  color: var(--chat-text);

  text-shadow:

    1px 0 0 var(--chat-shadow),

    -1px 0 0 var(--chat-shadow),

    0 1px 0 var(--chat-shadow),

    0 -1px 0 var(--chat-shadow);

  opacity: 1;

}



#cef-chat:not(.is-enabled):not(.is-input-open) .chat-line.is-fading {

  opacity: 0;

  transition: opacity 0.35s linear;

}



#cef-chat.is-enabled .chat-line,

#cef-chat.is-enabled .chat-line.is-fading {

  opacity: 1 !important;

}



#cef-chat .chat-timestamp {

  color: var(--chat-accent-2);

}



#cef-chat .chat-input-row {

  display: none;

  position: relative;

  flex-direction: column;

  align-items: stretch;

  gap: 4px;

  margin-top: 8px;

  direction: ltr;

}



#cef-chat.is-input-open .chat-input-row {

  display: flex;

}



#cef-chat .chat-input-box {

  position: relative;

  flex: 1 1 auto;

  min-width: 0;

  min-height: 30px;

  padding: 3px 8px;

  border: 1px solid var(--chat-input-border);

  border-radius: 0;

  background:

    linear-gradient(180deg, rgba(34, 32, 28, 0.96), var(--chat-input-bg)),

    linear-gradient(90deg, rgba(180, 111, 42, 0.08), transparent);

  box-shadow:

    inset 0 1px 0 rgba(255, 232, 190, 0.06),

    inset 0 -12px 20px rgba(0, 0, 0, 0.22);

}



#cef-chat .chat-command-hint {

  display: grid;

  gap: 6px;

  margin-top: 8px;

  padding: 0 2px;

}



#cef-chat .chat-command-hint.is-hidden {

  display: none;

}



#cef-chat .chat-command-arg-hint {

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 10px 12px;

  border-left: 3px solid var(--chat-accent-2);

  background: rgba(19, 18, 16, 0.72);

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);

}



#cef-chat .chat-command-arg-hint.is-hidden {

  display: none;

}



#cef-chat .chat-command-arg-prefix {

  color: var(--chat-muted);

  font-size: 14px;

  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  white-space: nowrap;

}



#cef-chat .chat-command-arg-value {

  color: #f1d8ab;

  font-size: 18px;

  font-weight: 700;

  line-height: 1.2;

  text-shadow: 0 0 12px rgba(209, 154, 74, 0.45);

}



#cef-chat .chat-command-fill.is-hidden {

  display: none;

}



#cef-chat .chat-command-fill {

  display: block;

  width: 100%;

  margin: 0;

  padding: 4px 2px;

  border: 0;

  background: transparent;

  color: var(--chat-accent-2);

  font-family: inherit;

  font-size: 17px;

  font-weight: 700;

  line-height: 1.35;

  text-align: left;

  text-shadow:

    1px 0 0 var(--chat-shadow),

    -1px 0 0 var(--chat-shadow),

    0 1px 0 var(--chat-shadow),

    0 -1px 0 var(--chat-shadow);

  cursor: pointer;

  transition: color 140ms ease;

}



#cef-chat .chat-command-fill:hover,

#cef-chat .chat-command-fill:focus-visible {

  color: #f6e2b8;

  outline: none;

  text-decoration: underline;

  text-decoration-color: rgba(209, 154, 74, 0.65);

  text-underline-offset: 3px;

}



#cef-chat .chat-command-syntax {

  pointer-events: none;

}



#cef-chat .chat-command-desc {

  color: var(--chat-muted);

  font-size: inherit;

  font-weight: 400;

  pointer-events: none;

}



#cef-chat .chat-input {

  display: block;

  width: 100%;

  min-width: 0;

  margin: 0;

  padding: 0 34px 0 0;

  border: 0;

  outline: none;

  background: transparent;

  color: #e9dfc8;

  font-family: var(--chat-font);

  font-size: var(--chat-size);

  font-weight: 400;

  line-height: var(--chat-line-h);

  caret-color: var(--chat-accent-2);

}



#cef-chat .chat-settings-btn {

  position: absolute;

  right: 4px;

  top: 50%;

  transform: translateY(-50%);

  display: flex;

  align-items: center;

  justify-content: center;

  width: 26px;

  height: 26px;

  margin: 0;

  padding: 0;

  border: 1px solid rgba(145, 132, 105, 0.42);

  border-radius: 0;

  background:

    linear-gradient(180deg, rgba(54, 51, 45, 0.92), rgba(18, 17, 15, 0.96)),

    linear-gradient(90deg, rgba(180, 111, 42, 0.13), transparent);

  color: var(--chat-accent-2);

  cursor: pointer;

  box-shadow:

    inset 0 1px 0 rgba(255, 232, 190, 0.08),

    0 4px 10px rgba(0, 0, 0, 0.28);

  transition: 140ms ease;

}



#cef-chat .chat-settings-btn:hover,

#cef-chat .chat-settings-btn:focus-visible {

  border-color: rgba(209, 154, 74, 0.86);

  color: #f2dfba;

  outline: none;

}



#cef-chat .chat-settings-btn.is-active {

  border-color: rgba(180, 111, 42, 0.9);

  color: #f1d8ab;

  box-shadow:

    inset 0 0 0 1px rgba(209, 154, 74, 0.25),

    0 0 12px rgba(180, 111, 42, 0.35);

}



#cef-chat .chat-settings-icon {

  width: 15px;

  height: 15px;

  fill: currentColor;

}



#cef-chat .chat-settings-panel {

  position: absolute;

  left: 0;

  right: 0;

  bottom: calc(100% + 6px);

  z-index: 3;

  width: 100%;

  border: 1px solid rgba(145, 132, 105, 0.42);

  color: var(--chat-text);

  background:

    linear-gradient(180deg, rgba(34, 32, 28, 0.98), rgba(13, 13, 12, 0.98)),

    radial-gradient(circle at 100% 0, rgba(180, 111, 42, 0.1), transparent 34%);

  box-shadow:

    0 14px 36px rgba(0, 0, 0, 0.72),

    inset 0 0 0 1px rgba(255, 235, 195, 0.04);

}



#cef-chat .chat-settings-panel.is-hidden {

  display: none;

}



#cef-chat .chat-settings-head {

  display: flex;

  align-items: center;

  gap: 8px;

  min-height: 30px;

  padding: 0 10px;

  border-bottom: 1px solid rgba(145, 132, 105, 0.24);

  color: #756d5f;

  background: linear-gradient(180deg, rgba(45, 43, 38, 0.72), rgba(12, 12, 11, 0.78));

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

}



#cef-chat .chat-settings-title {

  flex: 1 1 auto;

  color: var(--chat-accent-2);

}



#cef-chat .chat-settings-close {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 22px;

  height: 22px;

  margin: 0;

  padding: 0;

  border: 1px solid rgba(145, 132, 105, 0.35);

  background: rgba(18, 17, 15, 0.9);

  color: var(--chat-muted);

  font-size: 16px;

  line-height: 1;

  cursor: pointer;

}



#cef-chat .chat-settings-close:hover,

#cef-chat .chat-settings-close:focus-visible {

  border-color: rgba(209, 154, 74, 0.7);

  color: #f2dfba;

  outline: none;

}



#cef-chat .chat-settings-body {

  display: grid;

  gap: 12px;

  padding: 12px;

}



#cef-chat .chat-setting {

  display: grid;

  gap: 6px;

  margin: 0;

}



#cef-chat .chat-setting-label {

  color: var(--chat-accent-2);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;

}



#cef-chat .chat-setting-control {

  display: flex;

  align-items: center;

  gap: 10px;

}



#cef-chat .chat-setting output {

  min-width: 34px;

  color: #e9dfc8;

  font-size: 12px;

  font-weight: 700;

  text-align: right;

}



#cef-chat .chat-setting input[type="range"] {

  flex: 1 1 auto;

  min-width: 0;

  accent-color: var(--chat-accent);

}



#cef-chat .chat-setting select {

  flex: 1 1 auto;

  min-width: 0;

  height: 30px;

  padding: 0 10px;

  border: 1px solid rgba(145, 132, 105, 0.44);

  background: rgba(12, 12, 11, 0.94);

  color: #e9dfc8;

  font-family: inherit;

  font-size: 12px;

  outline: none;

}



#cef-chat .chat-setting select:focus-visible {

  border-color: rgba(209, 154, 74, 0.86);

}



#cef-chat .chat-setting-toggle {

  grid-template-columns: 1fr auto;

  align-items: center;

}



#cef-chat .chat-setting-toggle .chat-setting-label {

  margin: 0;

}



#cef-chat .chat-setting-toggle input[type="checkbox"] {

  position: absolute;

  opacity: 0;

  width: 0;

  height: 0;

  pointer-events: none;

}



#cef-chat .chat-setting-switch {

  position: relative;

  width: 42px;

  height: 22px;

  border: 1px solid rgba(145, 132, 105, 0.42);

  background: rgba(18, 17, 15, 0.96);

  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);

  cursor: pointer;

}



#cef-chat .chat-setting-switch::after {

  content: "";

  position: absolute;

  top: 2px;

  left: 2px;

  width: 16px;

  height: 16px;

  background: #756d5f;

  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);

  transition: transform 140ms ease, background 140ms ease;

}



#cef-chat .chat-setting-toggle input:checked + .chat-setting-switch {

  border-color: rgba(180, 111, 42, 0.78);

  background: linear-gradient(180deg, rgba(109, 63, 29, 0.75), rgba(31, 22, 15, 0.96));

}



#cef-chat .chat-setting-toggle input:checked + .chat-setting-switch::after {

  transform: translateX(20px);

  background: var(--chat-accent-2);

}


