/* src/styles.css */
:root {
  --ink:#12161c;
  --soft:#3a4451;
  --muted:#69737f;
  --faint:#96a0ac;
  --paper:#fff;
  --panel:#f6f8fa;
  --panel2:#eef2f6;
  --border:#e4e9ef;
  --border2:#d6dde5;
  --accent:#3b5bdb;
  --accent-soft:#eef2ff;
  --accent-ink:#2b45a8;
  --green:#0e9f6e;
  --green-soft:#e7f6ef;
  --amber:#d97706;
  --amber-soft:#fdf1e3;
  --red:#e02424;
  --red-soft:#fdecec;
  --wa:#25a35a;
  --wc:#0aa34a;
  --ln:#08b551;
  --sans:"Inter",system-ui,sans-serif;
  --disp:"Space Grotesk",sans-serif;
  --mono:"JetBrains Mono",monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--panel2);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
}
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 560px;
}
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  height: 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.brand {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
}
.brand span {
  color: var(--accent);
}
.ws {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--border2);
  padding-left: 14px;
}
.ws b {
  color: var(--soft);
  font-weight: 600;
}
.seg {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 8px;
}
.seg button.on {
  background: var(--paper);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.plan-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid #dfe6ff;
  padding: 3px 9px;
  border-radius: 20px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--disp);
}
.body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.col {
  min-height: 0;
  overflow-y: auto;
  background: var(--paper);
}
.inbox {
  flex: 1;
  display: grid;
  grid-template-columns: 200px 340px 1fr;
  min-height: 0;
}
.nav {
  border-right: 1px solid var(--border);
  padding: 16px 12px;
}
.list {
  border-right: 1px solid var(--border);
  padding: 0;
}
.nav h4 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 6px 6px 6px;
}
.navitem {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.navitem:hover {
  background: var(--panel);
}
.navitem.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.navitem .ct {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.navitem.active .ct {
  color: var(--accent);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.conv {
  display: flex;
  gap: 11px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}
.conv:hover {
  background: var(--panel);
}
.conv.sel {
  background: var(--accent-soft);
}
.conv.sel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.cav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--disp);
  flex: 0 0 auto;
}
.cbody {
  flex: 1;
  min-width: 0;
}
.crow {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cname {
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctime {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--faint);
}
.csnip {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.chan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tagclosed {
  font-size: 9.5px;
  color: var(--muted);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 1px 6px;
}
.thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
}
.thead {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.thead .cav {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.thead .tn {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 15px;
}
.thead .meta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1px;
}
.thead-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip {
  font-size: 11px;
  color: var(--soft);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn {
  border: 1px solid var(--border2);
  background: var(--paper);
  color: var(--soft);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 500;
}
.btn:hover {
  background: var(--panel);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-ink);
}
.btn.ai {
  background: var(--green-soft);
  border-color: #bfe6d5;
  color: #0b7a55;
}
.btn.ai:hover {
  background: #dcf1e8;
}
.btn.sm {
  padding: 4px 9px;
  font-size: 11.5px;
}
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.msgs {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m {
  max-width: 74%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.m.cust {
  align-self: flex-start;
}
.m.agent {
  align-self: flex-end;
  align-items: flex-end;
}
.bub {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.cust .bub {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.agent .bub {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.orig {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  padding: 2px 6px 0;
}
.mmeta {
  font-size: 10px;
  padding: 0 4px;
}
.xlate-flag {
  font-size: 9.5px;
  color: var(--green);
  font-weight: 600;
  font-family: var(--mono);
}
.composer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  flex: 0 0 auto;
}
.composer .wrap {
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 8px 10px;
}
.composer textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 13.5px;
  min-height: 40px;
  line-height: 1.5;
  background: transparent;
  color: var(--ink);
}
.crow2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.sendhint {
  font-size: 11px;
  color: var(--muted);
}
.spacer {
  flex: 1;
}
.empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
}
.adminwrap {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
}
.subnav {
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  background: var(--paper);
}
.subnav .ctx {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 8px 10px;
}
.panel {
  overflow-y: auto;
  background: var(--panel);
  padding: 26px 32px;
}
.ptitle {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0;
}
.psub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.head {
  margin-bottom: 18px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--disp);
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 600;
}
.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dtable th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.dtable td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--soft);
}
.dtable tr:last-child td {
  border-bottom: 0;
}
.uav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--disp);
  margin-right: 8px;
  vertical-align: middle;
}
.pill2 {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  font-family: var(--mono);
}
.pill2.on {
  background: var(--green-soft);
  color: #0b7a55;
}
.pill2.off {
  background: var(--panel2);
  color: var(--muted);
}
.pill2.inv {
  background: var(--amber-soft);
  color: #a76a12;
}
.pill2.dis {
  background: var(--red-soft);
  color: #b21e1e;
}
.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.fieldrow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.fieldrow:last-child {
  border-bottom: 0;
}
.fieldrow .fk {
  color: var(--muted);
}
.fieldrow .fv {
  color: var(--ink);
  font-weight: 500;
}
.selrole {
  border: 1px solid var(--border2);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--soft);
  background: var(--paper);
}
.lbl2 {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin: 10px 0 4px;
  font-weight: 500;
}
.inp {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
}
.inp[readonly] {
  background: var(--panel);
  color: var(--muted);
}
.toggle {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 20px;
  background: var(--border2);
  border: 0;
  flex: 0 0 auto;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: left .16s;
}
.toggle.on {
  background: var(--green);
}
.toggle.on::after {
  left: 17px;
}
.optrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.optrow:last-child {
  border-bottom: 0;
}
.optrow .lk {
  font-weight: 500;
}
.optrow .ld {
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 2px;
}
.locked {
  opacity: .55;
}
.authwrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel2);
}
.authcard {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 32px;
  width: 360px;
  box-shadow: 0 10px 40px rgba(18, 22, 28, .06);
}
.authcard .brand {
  font-size: 24px;
  margin-bottom: 4px;
}
.authcard h2 {
  font-family: var(--disp);
  font-size: 18px;
  margin: 14px 0 2px;
}
.err {
  color: var(--red);
  font-size: 12.5px;
  margin-top: 4px;
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: #d2dae2;
  border-radius: 6px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.toasts {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}
.toast {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  box-shadow: 0 6px 24px rgba(18, 22, 28, .12);
  min-width: 220px;
  max-width: 340px;
}
.toast.success {
  border-left-color: var(--green);
}
.toast.error {
  border-left-color: var(--red);
}
.toast.info {
  border-left-color: var(--accent);
}
.offline {
  background: var(--amber-soft);
  color: #a76a12;
  text-align: center;
  font-size: 12px;
  padding: 5px;
  border-bottom: 1px solid #f2e2c2;
  flex: 0 0 auto;
}
.spin {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loadwrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}
.aicard {
  margin: 0 20px 4px;
  background: var(--green-soft);
  border: 1px solid #bfe6d5;
  border-radius: 12px;
  padding: 12px 14px;
}
.aicard .h {
  display: flex;
  gap: 8px;
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  color: #0b7a55;
  font-weight: 600;
  margin-bottom: 6px;
}
.aicard .conf {
  margin-left: auto;
  color: #0e9f6e;
}
.aicard .txt {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.5;
}
.aicard .acts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.draftflag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  font-weight: 600;
  background: var(--amber-soft);
  border: 1px solid #f2e2c2;
  border-radius: 6px;
  padding: 2px 7px;
}
.autoflag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent-ink);
  font-weight: 600;
  background: var(--accent-soft);
  border: 1px solid #dfe6ff;
  border-radius: 6px;
  padding: 2px 7px;
}
.winclosed {
  background: var(--amber-soft);
  border: 1px solid #f2e2c2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #a76a12;
  margin-bottom: 8px;
}
.tpl {
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  cursor: pointer;
  margin-bottom: 6px;
}
.tpl:hover {
  background: var(--panel);
}
.xlate-flag {
  font-size: 9.5px;
  color: var(--green);
  font-weight: 600;
  font-family: var(--mono);
}
.devfab {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 1000;
  background: #111827;
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 12px;
  font-family: var(--mono);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.devpanel {
  position: fixed;
  bottom: 56px;
  left: 16px;
  z-index: 1000;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  width: 280px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}
.devpanel h4 {
  font-family: var(--disp);
  margin: 0 0 10px;
  font-size: 13px;
}
.devrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--soft);
}
.langsel {
  border: 1px solid var(--border2);
  border-radius: 7px;
  padding: 3px 6px;
  font-size: 11.5px;
  background: var(--paper);
  color: var(--soft);
}
@media (max-width:900px) {
  .inbox {
    grid-template-columns: 1fr;
  }
  .nav,
  .list {
    display: none;
  }
  .adminwrap {
    grid-template-columns: 1fr;
  }
  .subnav {
    display: none;
  }
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
