:root {
  /* Ink / surfaces */
  --ink:        #0f1729;
  --ink-soft:   #475066;
  --ink-mute:   #8a93a6;
  --paper:      #fcfbf7;
  --paper-2:    #f4f1e9;
  --paper-3:    #ebe7da;
  --line:       #e7e3d4;
  --line-strong:#d2cebe;

  /* Brand */
  --primary:    #5ab14e;
  --primary-2:  #468f3b;
  --primary-soft: #ebf4e6;
  --primary-tint: #f4faf1;

  /* Signals */
  --danger:     #c84638;
  --danger-soft:#fbeae8;
  --navy:       #1f2c56;
  --warn:       #a4581d;
  --warn-soft:  #fdf2e7;
  --info:       #1f4ea3;
  --info-soft:  #e9f0fc;

  /* Elevation */
  --shadow-sm:  0 1px 2px rgba(15,23,41,.04), 0 1px 1px rgba(15,23,41,.03);
  --shadow-md:  0 6px 14px -2px rgba(15,23,41,.06), 0 2px 4px -1px rgba(15,23,41,.04);
  --shadow-lg:  0 24px 48px -10px rgba(15,23,41,.18), 0 8px 16px -8px rgba(15,23,41,.10);
  --shadow-inset: inset 0 0 0 1px rgba(15,23,41,.04);

  /* Radius scale */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Motion */
  --t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --t-mid:  180ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
*::selection { background: var(--primary-soft); color: var(--ink); }

html, body {
  margin: 0; padding: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink); background: var(--paper);
  height: 100vh;
  overflow: hidden;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Custom focus ring — calmer than the browser default, primary-tinted */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr 340px;
  height: 100vh;
}
.shell.no-panel { grid-template-columns: 240px 1fr; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 240px 1fr; }
  .shell .msg-panel { display: none; }
}
.side {
  background: #11141d; color: #d3d6e3;
  padding: 22px 14px; display: flex; flex-direction: column; gap: 2px;
  height: 100vh; overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.04);
}
.side .brand {
  display: flex; align-items: center; gap: 10px; margin: 4px 6px 24px;
  font-weight: 800; font-size: 15.5px; letter-spacing: -.01em;
  color: #f0f2f6;
}
.side .brand .dot {
  width: 30px; height: 30px; border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 10px -2px rgba(70,143,59,.5);
}
.side .nav-btn {
  background: transparent; border: none; color: #9aa0b4;
  padding: 9px 12px; border-radius: var(--r-md);
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: background var(--t-fast), color var(--t-fast);
  letter-spacing: -.005em;
}
.side .nav-btn:hover { background: rgba(255,255,255,.05); color: #fff; }
.side .nav-btn.active {
  background: rgba(90,177,78,.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(90,177,78,.22);
}
.side .nav-btn.active::before {
  content: ''; width: 3px; height: 16px; border-radius: 2px;
  background: var(--primary); margin: 0 -2px 0 -8px;
}
.side .spacer { flex: 1; }
.side .me {
  border-top: 1px solid rgba(255,255,255,.06); padding: 14px 6px 6px;
  font-size: 12px; color: #9aa0b4; line-height: 1.45;
}
.side .me strong { color: #fff; display: block; font-size: 13px; font-weight: 700; }
.side .logout {
  margin-top: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: #d3d6e3; padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.side .logout:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }

.main {
  padding: 32px 44px 56px;
  height: 100vh;
  overflow-y: auto;
}
.main > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.main h1 {
  font-size: 28px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -.025em;
  color: var(--ink);
}
.main .sub {
  color: var(--ink-soft); font-size: 14px;
  margin-bottom: 22px; max-width: 720px; line-height: 1.5;
}

/* Buttons */
.btn {
  background: var(--primary); color: #fff; border: 1px solid transparent;
  padding: 9px 16px; border-radius: var(--r-md);
  font-family: inherit; font-weight: 700; font-size: 13.5px;
  letter-spacing: -.005em; cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  box-shadow: 0 1px 2px rgba(70,143,59,.18);
}
.btn:hover { background: var(--primary-2); box-shadow: 0 3px 8px -2px rgba(70,143,59,.32); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(70,143,59,.16); }
.btn.ghost {
  background: #fff; border-color: var(--line-strong); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover {
  background: var(--paper-2); border-color: var(--ink-mute); color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn.danger { background: var(--danger); box-shadow: 0 1px 2px rgba(200,70,56,.2); }
.btn.danger:hover { background: #a53a2e; box-shadow: 0 3px 8px -2px rgba(200,70,56,.35); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.row { display: flex; gap: 12px; align-items: center; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 14px; flex-wrap: wrap; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-mid), border-color var(--t-mid), transform var(--t-mid);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card + .card { margin-top: 10px; }
.card .code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--ink-mute);
  letter-spacing: .1em; font-weight: 600;
  text-transform: uppercase;
}
.card .title {
  font-size: 17px; font-weight: 700;
  margin-top: 4px; letter-spacing: -.015em;
  color: var(--ink);
}
.card .meta { color: var(--ink-soft); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.card .row-info {
  display: flex; gap: 18px;
  font-size: 12.5px; color: var(--ink-soft);
  margin-top: 12px; flex-wrap: wrap; line-height: 1.5;
}
.card .row-info strong { color: var(--ink); font-weight: 600; }

/* Status / signal pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pill.pending      { background: var(--warn-soft); color: var(--warn); border-color: rgba(164,88,29,.14); }
.pill.in-progress  { background: var(--info-soft); color: var(--info); border-color: rgba(31,78,163,.14); }
.pill.completed    { background: var(--primary-soft); color: var(--primary-2); border-color: rgba(70,143,59,.18); }
.pill.cancelled    { background: var(--paper-2); color: var(--ink-mute); border-color: var(--line); }
.pill.high {
  background: var(--danger); color: #fff;
  margin-left: 6px; border-color: transparent;
  box-shadow: 0 1px 2px rgba(200,70,56,.25);
}

/* Form fields */
input.field, select.field, textarea.field {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit; font-size: 14px; background: #fff;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input.field::placeholder, textarea.field::placeholder { color: #b3b8c8; }
textarea.field { min-height: 80px; resize: vertical; }
input.field:hover, select.field:hover, textarea.field:hover { border-color: var(--line-strong); }
input.field:focus, select.field:focus, textarea.field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

label.lbl {
  font-size: 11px; color: var(--ink-mute);
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  display: block; margin-bottom: 6px;
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Modals */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(15,23,41,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 20px; z-index: 100; overflow-y: auto;
  animation: modal-fade .15s ease-out;
}
.modal {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 32px;
  width: 100%; max-width: 620px;
  box-shadow: var(--shadow-lg);
  animation: modal-rise .18s ease-out;
}
.modal h2 {
  margin: 0 0 4px;
  font-size: 22px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.modal .sub {
  color: var(--ink-soft);
  font-size: 14px; line-height: 1.55;
  margin-bottom: 20px;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

@keyframes modal-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* Login */
.login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(800px 600px at 30% 30%, #d8dccd 0%, transparent 60%),
    radial-gradient(700px 500px at 80% 80%, #c4cab6 0%, transparent 55%),
    linear-gradient(160deg, #d6dac9 0%, #b8bfa9 100%);
}
.login .box {
  background: #fff;
  border-radius: 22px;
  padding: 36px;
  width: 380px;
  box-shadow: var(--shadow-lg);
}
.login .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px; margin-bottom: 24px;
  color: var(--ink);
}
.login .brand .dot {
  width: 32px; height: 32px; border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 10px -2px rgba(70,143,59,.4);
}
.login h1 {
  font-size: 24px; margin: 0 0 6px; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink);
}
.login p { color: var(--ink-soft); font-size: 14px; margin: 0 0 20px; line-height: 1.5; }
.login .err { color: var(--danger); font-size: 13px; margin-top: 10px; }
.login .btn { width: 100%; margin-top: 14px; padding: 12px; font-size: 14.5px; }

.empty {
  text-align: center; padding: 60px 20px;
  color: var(--ink-mute); font-size: 14px;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

/* ---------- Dashboard ---------- */

/* Filter / window pills */
.window-tabs { display: flex; gap: 4px; }
.window-tab {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink-soft); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.window-tab:hover { background: var(--paper-2); color: var(--ink); }
.window-tab.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 2px 4px -1px rgba(15,23,41,.15);
}

/* Dashboard stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-mid), transform var(--t-mid);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: transparent;
  transition: background var(--t-mid);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .stat-label {
  font-size: 11px; font-weight: 700;
  color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .1em;
}
.stat-card .stat-value {
  font-size: 32px; font-weight: 700;
  color: var(--ink); letter-spacing: -.025em;
  line-height: 1.05;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-sub {
  font-size: 12.5px; color: var(--ink-soft);
  margin-top: 4px; line-height: 1.45;
}
.stat-card.accent-primary::before { background: var(--primary); }
.stat-card.accent-primary  .stat-value { color: var(--primary-2); }
.stat-card.accent-navy::before { background: var(--navy); }
.stat-card.accent-navy     .stat-value { color: var(--navy); }

.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.chart-card .chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.chart-card h3 {
  margin: 0; font-size: 15px; font-weight: 700;
  letter-spacing: -.01em; color: var(--ink);
}
.chart-card .chart-sub {
  font-size: 12px; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.dash-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 800px) {
  .dash-cols { grid-template-columns: 1fr; }
}
.dash-col-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.dash-col-card h3 {
  margin: 0 0 14px;
  font-size: 15px; font-weight: 700;
  letter-spacing: -.01em; color: var(--ink);
}

.item-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.item-row:last-child { border-bottom: none; }
.item-row .item-name { color: var(--ink-soft); font-size: 13.5px; }
.item-row .item-count {
  font-weight: 700; font-size: 17px;
  color: var(--ink); font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.leader-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.leader-row:last-child { border-bottom: none; }
.leader-row .leader-bar {
  flex: 1; height: 5px; margin: 0 14px;
  background: var(--paper-2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.leader-row .leader-bar::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
  width: var(--w, 0%);
  border-radius: 3px;
  transition: width 320ms cubic-bezier(.4,0,.2,1);
}

/* ---------- Right-side Messages panel (desktop only) ---------- */

.msg-panel {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border-left: 1px solid var(--line);
  height: 100vh;
  min-height: 0;
}
.msg-panel .msg-head {
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex-shrink: 0;
}
.msg-panel .msg-head h2 {
  margin: 0;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
}
.msg-panel .msg-head .meta {
  font-size: 11px; color: var(--ink-mute);
  display: flex; align-items: center; gap: 6px;
  font-weight: 500;
}
.msg-panel .msg-head .meta::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); display: inline-block;
  box-shadow: 0 0 0 2px rgba(90,177,78,.18);
}
.msg-panel .crew-tabs {
  padding: 10px 14px;
  display: flex; gap: 6px; flex-wrap: wrap;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.msg-panel .crew-tab {
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 5px 12px; border-radius: var(--r-pill);
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.msg-panel .crew-tab:hover { background: var(--paper-2); color: var(--ink); }
.msg-panel .crew-tab.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.msg-panel .msg-thread {
  flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 14px 18px;
  display: flex; flex-direction: column; gap: 3px;
  background:
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 60%, var(--paper-2) 100%);
  background-attachment: local;
}
/* Slim, calm scrollbar (WebKit-only; Firefox falls back to default) */
.msg-panel .msg-thread::-webkit-scrollbar { width: 6px; }
.msg-panel .msg-thread::-webkit-scrollbar-track { background: transparent; }
.msg-panel .msg-thread::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.main::-webkit-scrollbar { width: 8px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.msg-panel .msg-bubble {
  padding: 8px 12px 9px;
  max-width: 86%;
  font-size: 13.5px;
  line-height: 1.4;
  word-wrap: break-word;
  margin-top: 6px;            /* gap between distinct messages */
  position: relative;
  box-shadow: 0 1px 2px rgba(15,23,41,.04);
  transition: transform var(--t-fast);
}
.msg-panel .msg-bubble.compact { margin-top: 2px; }  /* tighter when same sender / same minute */

.msg-panel .msg-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(160deg, #f1f8ed, var(--primary-soft));
  border: 1px solid #cfe3c4;
  border-radius: 16px 16px 4px 16px;      /* sharp bottom-right = chat tail */
  color: #163e0f;
}
.msg-panel .msg-bubble.mine.compact { border-radius: 16px 16px 4px 16px; }

.msg-panel .msg-bubble.theirs {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;      /* sharp bottom-left */
  color: var(--ink);
}
.msg-panel .msg-bubble.theirs.compact { border-radius: 16px 16px 16px 4px; }

.msg-panel .msg-bubble .msg-meta {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.msg-panel .msg-bubble .msg-name { color: var(--ink); }
.msg-panel .msg-bubble.mine .msg-name { color: var(--primary-2); }
.msg-panel .msg-bubble .msg-role {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: rgba(15,23,41,.06);
  color: var(--ink-soft);
}
.msg-panel .msg-bubble.mine .msg-role {
  background: rgba(70,143,59,.16);
  color: var(--primary-2);
}
.msg-panel .msg-bubble .msg-time {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.msg-panel .msg-bubble .msg-body { white-space: pre-wrap; }

.msg-panel .day-sep {
  align-self: stretch;
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; color: var(--ink-mute);
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin: 18px 0 6px;
}
.msg-panel .day-sep::before,
.msg-panel .day-sep::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 50%, transparent);
}
.msg-panel .day-sep span {
  padding: 3px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.msg-panel .load-older {
  align-self: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  cursor: pointer; margin: 6px 0 10px;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.msg-panel .load-older:hover:not(:disabled) {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--line-strong);
}
.msg-panel .load-older:disabled { opacity: .55; cursor: wait; }

.msg-panel .msg-empty {
  align-self: center;
  margin: 40px 20px;
  padding: 20px 24px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
  font-style: italic;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.5);
  max-width: 240px;
}
.msg-panel .composer {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  display: flex; gap: 8px;
  background: #fff;
  flex-shrink: 0;
}
.msg-panel .composer textarea {
  flex: 1; resize: none; min-height: 40px; max-height: 120px;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit; font-size: 13.5px; line-height: 1.35;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.msg-panel .composer textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.msg-panel .composer textarea::placeholder { color: #b3b8c8; }
.msg-panel .composer button {
  background: var(--primary); color: #fff; border: none;
  padding: 0 16px; border-radius: var(--r-md);
  font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 1px 2px rgba(70,143,59,.2);
}
.msg-panel .composer button:hover:not(:disabled) {
  background: var(--primary-2);
  box-shadow: 0 3px 8px -2px rgba(70,143,59,.35);
}
.msg-panel .composer button:disabled { background: var(--line-strong); cursor: not-allowed; box-shadow: none; }
