﻿:root {
  --bg: #09111f;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #edf4ff;
  --muted: #9eb0ca;
  --accent: #ff8a3d;
  --accent-strong: #ff6a13;
  --accent-soft: rgba(255, 138, 61, 0.16);
  --success: #3dd598;
  --success-soft: rgba(61, 213, 152, 0.16);
  --danger: #ff6b7b;
  --danger-soft: rgba(255, 107, 123, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.28), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(89, 140, 255, 0.24), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #0b1526 45%, #0b1422 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
input,
textarea {
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.2);
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.75;
}

.ambient-one {
  top: -120px;
  left: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.28), transparent 70%);
}

.ambient-two {
  right: -120px;
  top: 220px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(90, 140, 255, 0.22), transparent 70%);
}

.sidebar,
.content {
  position: relative;
  z-index: 1;
}

.sidebar {
  padding: 24px;
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.92), rgba(11, 20, 35, 0.84));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
}

.content {
  padding: 20px 24px 24px;
}

.brand-panel {
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand-panel h1,
.hero h2,
.card h2,
.item h3 {
  margin: 0;
  font-family: Bahnschrift, Aptos, sans-serif;
  letter-spacing: -0.02em;
}

.brand-panel h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 0.98;
}

.eyebrow,
.section-kicker,
.direction,
.hero-chip-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.eyebrow,
.section-kicker,
.hero-chip-label {
  color: #ffb37f;
}

.muted {
  color: var(--muted);
}

.status-strip {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(61, 213, 152, 0.08);
  color: #d7ffe8;
  border: 1px solid rgba(61, 213, 152, 0.18);
  font-size: 0.88rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(61, 213, 152, 0.12);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  margin-top: 14px;
  font-weight: 700;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar .card {
  margin-top: 16px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.compact-header {
  margin-bottom: 8px;
}

.card-header h2 {
  font-size: 1.08rem;
}

.panel-intro {
  margin: -2px 0 12px;
  font-size: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.16), rgba(90, 140, 255, 0.1)),
    rgba(255, 255, 255, 0.05);
}

.hero-compact {
  padding: 18px 20px;
}

.hero-copy h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.02;
  max-width: 14ch;
}

.hero-text {
  max-width: 52ch;
  margin: 8px 0 0;
  color: #d7e5fa;
  font-size: 0.96rem;
  line-height: 1.5;
}

.hero-meta {
  display: grid;
  gap: 10px;
  align-content: center;
}

.hero-meta-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-chip {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-chip.soft {
  background: rgba(9, 17, 31, 0.36);
}

.hero-chip p {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
  font-size: 0.95rem;
}

.stats-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.stats-grid-compact {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.stat-card {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
}

.stat-card strong {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1;
}

.label {
  color: #d0def3;
  font-size: 0.85rem;
}

.accent-card {
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.17), rgba(255, 138, 61, 0.08));
}

.success-card {
  background: linear-gradient(180deg, rgba(61, 213, 152, 0.16), rgba(61, 213, 152, 0.07));
}

.danger-card {
  background: linear-gradient(180deg, rgba(255, 107, 123, 0.16), rgba(255, 107, 123, 0.07));
}

.neutral-card {
  background: linear-gradient(180deg, rgba(141, 173, 214, 0.14), rgba(141, 173, 214, 0.06));
}

.workspace {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.workspace-bottom {
  grid-template-columns: 1fr;
}

.workspace-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-primary {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
}

.workspace-primary-wide {
  align-items: start;
}

.workspace-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.top-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.top-stack-tight {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.panel {
  min-height: 260px;
}

.chat-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.compact-panel {
  min-height: 0;
}

.calendar-side-panel {
  min-height: 0;
}

.clients-panel {
  min-height: 720px;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.pill {
  background: var(--accent-soft);
  color: #ffd5ba;
  border: 1px solid rgba(255, 138, 61, 0.18);
}

.pill.soft {
  background: rgba(255, 255, 255, 0.06);
  color: #d7e5fa;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ghost,
button,
input {
  border-radius: 14px;
  border: 1px solid var(--line-strong);
}

.ghost,
button {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

button:hover,
.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

button[type="submit"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #fff7f0;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  color: var(--text);
  background: rgba(6, 13, 24, 0.64);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7f96b5;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sync-block {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(7, 15, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sync-status {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.sync-status + .sync-status {
  margin-top: 8px;
}

.command-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.command-list {
  padding-left: 18px;
  margin: 10px 0 0;
}

.command-list li + li {
  margin-top: 6px;
}

.command-list code {
  display: inline-block;
  padding: 2px 0;
  white-space: normal;
  line-height: 1.5;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 360px;
  overflow: auto;
  padding-right: 6px;
}

.chat-log-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.chat-panel .chat-log {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.chat-scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(199, 103, 47, 0.18);
  background: #c7672f;
  color: #fffdf8;
  box-shadow: 0 14px 30px rgba(84, 61, 40, 0.26);
  z-index: 120;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 800;
  pointer-events: auto;
}

.chat-scroll-down-global {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  z-index: 120;
}

.chat-scroll-down-inline {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  z-index: 4;
  font-size: 1.1rem;
  box-shadow: 0 10px 22px rgba(84, 61, 40, 0.22);
}

.chat-scroll-down:hover {
  background: #b45f25;
}

.chat-scroll-down.hidden {
  display: none;
}

.compact-scroll {
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

#calendarEventsList.compact-scroll {
  max-height: 300px;
}

.chat-log::-webkit-scrollbar,
.compact-scroll::-webkit-scrollbar {
  width: 8px;
}

.chat-log::-webkit-scrollbar-thumb,
.compact-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.chat-message {
  max-width: min(92%, 680px);
  padding: 13px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
}

.chat-message.in {
  align-self: flex-end;
  background: linear-gradient(180deg, rgba(61, 213, 152, 0.14), rgba(61, 213, 152, 0.07));
}

.chat-message.out {
  align-self: flex-start;
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.14), rgba(255, 138, 61, 0.07));
}

.direction {
  display: inline-block;
  color: #ffe0c8;
  margin-bottom: 6px;
}

.message-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.message-body {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.5;
}

.message-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-actions button {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  background: transparent;
}

.message-actions .action-ok {
  background: var(--success-soft);
  border-color: rgba(61, 213, 152, 0.24);
  color: #bff8de;
}

.message-actions .action-note {
  background: rgba(255, 205, 112, 0.12);
  border-color: rgba(255, 205, 112, 0.22);
  color: #ffe5b2;
}

.message-actions .action-incomplete {
  background: rgba(255, 138, 61, 0.14);
  border-color: rgba(255, 138, 61, 0.24);
  color: #ffd5ba;
}

.message-actions .action-attach {
  background: rgba(91, 214, 255, 0.12);
  border-color: rgba(91, 214, 255, 0.2);
  color: #d7f3ff;
}

.message-actions .action-ticket {
  background: rgba(255, 103, 123, 0.16);
  border-color: rgba(255, 103, 123, 0.24);
  color: #ffd3da;
}

.message-actions .action-reply {
  background: rgba(141, 173, 214, 0.1);
  border-color: rgba(141, 173, 214, 0.18);
  color: #d8e7fd;
}

.message-actions .action-generate {
  background: rgba(180, 112, 255, 0.14);
  border-color: rgba(180, 112, 255, 0.24);
  color: #ead5ff;
}

.reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-banner.hidden {
  display: none;
}

.chat-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.chat-tool-hint {
  margin: 0;
  font-size: 0.86rem;
}

.attachment-panel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.attachment-panel.hidden {
  display: none;
}

.attachment-panel-header,
.attachment-photo-kinds {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attachment-photo-kinds.hidden {
  display: none;
}

.attachment-photo-kinds p {
  margin: 0;
}

.attachment-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-photo-actions button {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(91, 214, 255, 0.2);
  background: rgba(91, 214, 255, 0.12);
  color: #d7f3ff;
}

.attachment-photo-actions button.is-active {
  border-color: rgba(61, 213, 152, 0.24);
  background: var(--success-soft);
  color: #bff8de;
}

body.theme-classic .attachment-photo-actions button {
  background: #dff7ff;
  border-color: rgba(36, 138, 171, 0.18);
  color: #0e6d88;
}

body.theme-classic .attachment-photo-actions button.is-active {
  background: #dcf7e8;
  border-color: rgba(21, 127, 89, 0.2);
  color: #157f59;
}
.attachment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.attachment-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.attachment-grid input,
.attachment-grid select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

body.theme-classic .attachment-grid input,
body.theme-classic .attachment-grid select {
  background: #fffdfa;
  border-color: #d8d0c3;
  color: #362f25;
}

.attachment-footer {
  margin-top: 12px;
}

.attachment-footer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.attachment-footer-actions button {
  min-height: 38px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
  align-items: end;
}

.chat-form textarea {
  min-height: 112px;
  max-height: 240px;
  line-height: 1.5;
}

.filter-bar {
  margin-bottom: 14px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compact-stack {
  gap: 8px;
}

.item {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.compact-item {
  padding: 11px 12px;
}

.client-card {
  background:
    radial-gradient(circle at top right, rgba(255, 138, 61, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.client-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item h3,
.item p {
  margin: 0;
}

.item h3 {
  font-size: 0.98rem;
}

.item h3 + p,
.item p + p {
  margin-top: 6px;
}

.item .meta,
.tag-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-block {
  margin-top: 10px;
}

.tag {
  background: rgba(141, 173, 214, 0.12);
  color: #dce9ff;
  border: 1px solid rgba(141, 173, 214, 0.16);
}

.tag.pending {
  background: rgba(255, 205, 112, 0.12);
  color: #ffe6a6;
  border-color: rgba(255, 205, 112, 0.2);
}

.tag.done {
  background: var(--success-soft);
  color: #bff8de;
  border-color: rgba(61, 213, 152, 0.22);
}

.tag.inacabado {
  background: rgba(255, 154, 102, 0.14);
  color: #ffd3bb;
  border-color: rgba(255, 154, 102, 0.24);
}

.tag.cancelado {
  background: rgba(255, 107, 123, 0.14);
  color: #ffc7cf;
  border-color: rgba(255, 107, 123, 0.24);
}

.tag.conflictivo {
  background: var(--danger-soft);
  color: #ffc1c9;
  border-color: rgba(255, 107, 123, 0.24);
}

.task-issue {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 138, 61, 0.12);
  border: 1px solid rgba(255, 138, 61, 0.18);
  color: #ffd9bf;
  font-weight: 600;
}

a {
  color: #ffb37f;
}

a:hover {
  color: #ffd0ae;
}

.segmented-control {
  display: inline-flex;
  gap: 6px;
}

.segment {
  border: 1px solid rgba(196, 139, 89, 0.28);
  background: rgba(255, 248, 242, 0.88);
  color: #91501f;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.segment.active {
  background: rgba(223, 123, 46, 0.16);
  border-color: rgba(223, 123, 46, 0.4);
  color: #7f3c0a;
}

body.theme-classic {
  color: #1f2933;
  background:
    radial-gradient(circle at top left, rgba(199, 103, 47, 0.18), transparent 30%),
    linear-gradient(180deg, #f6f0e5 0%, #efe9de 100%);
}

body.theme-classic .ambient {
  display: none;
}

body.theme-classic .app-shell {
  grid-template-columns: 320px 1fr;
}

body.theme-classic .sidebar {
  background: rgba(255, 253, 248, 0.86);
  border-right: 1px solid rgba(92, 103, 115, 0.15);
  backdrop-filter: blur(14px);
}

body.theme-classic .content {
  padding: 20px 24px 24px;
}

body.theme-classic .brand-panel,
body.theme-classic .card {
  background: #fffdf8;
  border: 1px solid rgba(92, 103, 115, 0.12);
  box-shadow: 0 20px 40px rgba(84, 61, 40, 0.12);
  backdrop-filter: none;
}

body.theme-classic .brand-panel h1,
body.theme-classic .hero h2,
body.theme-classic .card h2 {
  font-family: Georgia, "Times New Roman", serif;
}

body.theme-classic .eyebrow,
body.theme-classic .section-kicker,
body.theme-classic .hero-chip-label {
  color: #c7672f;
}

body.theme-classic .muted,
body.theme-classic .label,
body.theme-classic .message-meta,
body.theme-classic .direction {
  color: #5c6773;
}

body.theme-classic .status-strip {
  background: #dcf7e8;
  color: #157f59;
  border-color: rgba(21, 127, 89, 0.2);
}

body.theme-classic .status-dot {
  box-shadow: 0 0 0 6px rgba(21, 127, 89, 0.08);
}

body.theme-classic .hero {
  background: linear-gradient(135deg, rgba(199, 103, 47, 0.14), rgba(255, 253, 248, 0.96));
}

body.theme-classic .hero-text,
body.theme-classic .hero-chip p,
body.theme-classic .ghost,
body.theme-classic button,
body.theme-classic input,
body.theme-classic textarea {
  color: #1f2933;
}

body.theme-classic .hero-chip,
body.theme-classic .hero-chip.soft,
body.theme-classic .sync-block,
body.theme-classic .command-box,
body.theme-classic .reply-banner,
body.theme-classic .item,
body.theme-classic .chat-message,
body.theme-classic .tag,
body.theme-classic .pill.soft {
  background: #fffdfa;
  border-color: rgba(92, 103, 115, 0.12);
}

body.theme-classic .pill {
  background: #f6d7c8;
  color: #7a3510;
  border-color: transparent;
}

body.theme-classic .pill.soft {
  color: #5b4b3d;
}

body.theme-classic .accent-card,
body.theme-classic .success-card,
body.theme-classic .danger-card,
body.theme-classic .neutral-card {
  background: #fffdf8;
}

body.theme-classic .ghost,
body.theme-classic button,
body.theme-classic input,
body.theme-classic textarea {
  background: white;
  border-color: #d8d0c3;
}

body.theme-classic button:hover,
body.theme-classic .ghost:hover {
  background: #fff8ee;
  border-color: #cfc3b2;
}

body.theme-classic button[type="submit"] {
  background: #c7672f;
  color: white;
}

body.theme-classic input,
body.theme-classic textarea {
  background: #fffdfa;
}

body.theme-classic input::placeholder,
body.theme-classic textarea::placeholder {
  color: #6f7985;
}

body.theme-classic .chat-message.in {
  background: #edf6ff;
}

body.theme-classic .chat-message.out {
  background: #fff8ee;
}

body.theme-classic .message-actions .action-ok {
  background: #dcf7e8;
  border-color: rgba(21, 127, 89, 0.2);
  color: #157f59;
}

body.theme-classic .message-actions .action-note {
  background: #fff0d5;
  border-color: rgba(181, 71, 8, 0.2);
  color: #b54708;
}

body.theme-classic .message-actions .action-incomplete {
  background: #ffe9d8;
  border-color: rgba(181, 71, 8, 0.18);
  color: #a64811;
}

body.theme-classic .message-actions .action-attach {
  background: #dff7ff;
  border-color: rgba(36, 138, 171, 0.18);
  color: #0e6d88;
}

body.theme-classic .message-actions .action-ticket {
  background: #ffe2e7;
  border-color: rgba(201, 87, 111, 0.18);
  color: #a83f55;
}

body.theme-classic .message-actions .action-reply {
  background: #efe8dc;
  border-color: rgba(92, 103, 115, 0.12);
  color: #5b4b3d;
}

body.theme-classic .message-actions .action-generate {
  background: #f1e3ff;
  border-color: rgba(137, 89, 201, 0.18);
  color: #7c4ab2;
}

body.theme-classic .client-card {
  background: linear-gradient(180deg, #fffdfa 0%, #fff8ee 100%);
}

body.theme-classic .tag.pending {
  background: #fff0d5;
  color: #b54708;
  border-color: transparent;
}

body.theme-classic .tag.done {
  background: #dcf7e8;
  color: #157f59;
  border-color: transparent;
}

body.theme-classic .tag.inacabado {
  background: #fff0d5;
  color: #b54708;
  border-color: transparent;
}

body.theme-classic .tag.cancelado {
  background: #ffe1e6;
  color: #a11d33;
  border-color: transparent;
}

body.theme-classic .tag.conflictivo {
  background: #ffe1e6;
  color: #a11d33;
  border-color: transparent;
}

body.theme-classic .task-issue {
  background: #ffe9d8;
  border-color: rgba(181, 71, 8, 0.18);
  color: #a64811;
}

body.theme-classic .attachment-panel,
body.theme-classic .reply-banner,
body.theme-classic .chat-tools {
  background: #fffdf8;
  border-color: rgba(92, 103, 115, 0.12);
}

body.theme-classic .chat-scroll-down {
  background: #c7672f;
  border-color: rgba(199, 103, 47, 0.18);
  color: #fffdf8;
}

body.theme-classic a {
  color: #c7672f;
}

body.theme-classic a:hover {
  color: #9f4c1f;
}

@media (max-width: 1400px) {
  .stats-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .content {
    padding: 18px;
  }

  .hero,
  .workspace-primary,
  .workspace-secondary,
  .workspace-double,
  .hero-meta-inline {
    grid-template-columns: 1fr;
  }

  .clients-panel {
    min-height: auto;
  }

  .compact-scroll,
  #calendarEventsList.compact-scroll {
    max-height: none;
  }

  body.theme-classic .app-shell {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    min-height: auto;
  }

  .chat-log-shell {
    flex: 0 0 auto;
  }

  .chat-panel .chat-log {
    min-height: 360px;
    height: 360px;
    flex: 0 0 auto;
  }

  .chat-scroll-down {
    width: 50px;
    height: 50px;
  }

  .chat-scroll-down-global {
    right: 16px;
    bottom: 16px;
  }

  .chat-scroll-down-inline {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 760px) {
  .stats-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card,
  .hero,
  .brand-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .client-heading,
  .reply-banner,
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-message {
    max-width: 100%;
  }

  .chat-tools,
  .attachment-panel-header,
  .attachment-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-tools > button,
  .attachment-panel-header > button,
  .attachment-footer-actions {
    width: 100%;
  }

  .attachment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .stats-grid-compact {
    grid-template-columns: 1fr;
  }

  .content,
  .sidebar {
    padding: 14px;
  }
}
